1 2011-09-21 Uros Bizjak <ubizjak@gmail.com>
4 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
5 operand 1 predicate to register_operand and operand 2 predicate
6 to nonimmediate_operand.
7 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
8 xop_pcmov, force op_true to register. Also, force op_false to
9 register if it doesn't satisfy nonimmediate_operand predicate.
11 2011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
13 * config/i386/bmi2intrin.h (_mulx_u64): New.
16 2011-09-21 Jan Hubicka <jh@suse.cz>
18 PR tree-optimization/50433
19 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
22 2011-09-21 Jakub Jelinek <jakub@redhat.com>
24 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
25 nonimmediate_operand instead of register_operand predicate for operands
26 1 and 2, force them into registers if expanding them as comparison.
27 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
28 V8HImode force into register just operand 1.
30 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
33 * config/avr/avr.c (avr_function_arg_advance): Change error to
34 warning if a fixed register is needed as function argument.
36 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
40 * config/avr/avr.md (adjust_len): New insn attribute.
41 (*reload_insi, *reload_insf): Use it.
42 (*movsi, *movsf): Use new interface of output_movsisf.
43 * config/avr/avr-protos.h (output_movsisf): Change prototype.
44 * config/avr/avr.c (output_movsisf): Ditto.
45 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
46 lengths of insns *reload_insi, *reload_insf.
47 (output_reload_insisf_1): New static function.
48 (output_reload_insisf): Use it.
50 2011-09-21 David S. Miller <davem@davemloft.net>
52 * config/sparc/sparc.c (def_builtin): Change from macro into function.
53 (def_builtin_const): New.
54 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
55 other than alignaddr and falignaddr.
57 2011-09-21 Tom de Vries <tom@codesourcery.com>
59 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
61 2011-09-20 David S. Miller <davem@davemloft.net>
63 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
64 (aligneddrl<P:mode>_vis): New pattern.
65 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
66 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
67 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
68 alignaddrl insn, and adjust edge operations for updated types.
69 * config/sparc/visintrin.h: Likewise.
70 * doc/extend.texi: Make typing in VIS documentation match reality.
72 2011-09-20 Terry Guo <terry.guo@arm.com>
74 * config/arm/arm-arches.def: Add armv6s-m.
75 * config/arm/arm-tables.opt: Regenerate.
77 2011-09-20 Wei Guozhi <carrot@google.com>
79 PR rtl-optimization/49452
80 * postreload.c (reload_combine): Invalidate use information when across
83 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
85 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
86 Remove maintenance overhead.
87 (haifa_sched_init, sched_finish): Update.
89 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
91 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
92 to calculate unit, prefix_rep and prefix_data16 attributes.
93 (*mov<mode>_internal): Ditto for unit attribute.
94 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
95 (*movv2sf_internal): Ditto.
96 * config/i386/sse.md (VI1248_256): Remove mode iterator.
97 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
98 (*avx2_eq<mode>3): Ditto.
99 (avx2_gt<mode>3): Ditto.
101 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
103 * config/i386/i386.md (maxmin): New code iterator.
104 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
105 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
107 (*avx2_<maxmin:code><mode>3): Macroize isn from
108 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
109 maxmin code iterator.
110 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
111 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
112 <umaxmin:code>v16qi3.
114 2011-09-19 Alan Modra <amodra@gmail.com>
115 Michael Meissner <meissner@linux.vnet.ibm.com>
118 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
119 split the load of the indirect function's TOC from the call to
120 prevent the compiler from moving the load of the new TOC above
121 code that references the current function's TOC.
122 (call_indirect_aix<ptrsize>_internal): Ditto.
123 (call_indirect_aix<ptrsize>_nor11): Ditto.
124 (call_indirect_aix<ptrsize>_internal2): Ditto.
125 (call_value_indirect_aix<ptrsize>): Ditto.
126 (call_value_indirect_aix<ptrsize>_internal): Ditto.
127 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
128 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
130 2011-09-19 Jakub Jelinek <jakub@redhat.com>
132 * config/i386/sse.md (*sse4_1_extractps): Change into
133 define_insn_and_split, add =x 0 n and =x x n alternatives
134 and split them after reload.
136 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
138 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
140 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
142 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
144 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
146 PR tree-optimization/50413
147 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
148 a basic block if one of its data-refs can't be analyzed.
150 2011-09-19 Paul Brook <paul@codesourcery.com>
152 * config/arm/predicates.md (shift_amount_operand): Check constant
153 shift count is in range.
154 (const_shift_operand): Remove.
156 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
157 Iain Sandoe <developer@sandoe-acoustics.co.uk>
160 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
161 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
163 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
165 * config/i386/bmiintrin.h: Remove tmp.
166 * config/i386/tbmintrin.h: Likewise.
168 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
170 PR tree-optimization/50414
171 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
174 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
176 PR tree-optimization/50412
177 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
178 acceses that require epilogue loop if vectorizing outer loop.
180 2011-09-17 David S. Miller <davem@davemloft.net>
182 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
183 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
185 (define_attr type): New type 'edge'.
186 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
187 edge32l_vis): New patterns.
188 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
189 * config/sparc/ultra3.md: Likewise.
190 * config/sparc/niagara.md: Likewise.
191 * config/sparc/niagara2.md: Likewise.
192 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
193 builtins for VIS edge instructions.
194 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
195 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
197 (__v8qi, __v4qi): Make unsigned.
198 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
199 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
200 __vis_fpack32): Fix types.
201 * doc/extend.texi: Document new 'edge' VIS intrinsics.
203 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
205 (niagara3_costs): New.
206 (sparc_option_override): Use it.
207 * gcc/config/sparc/niagara2.md: Adjust with more accurate
208 Niagara-3 reservations.
210 2011-09-17 Jakub Jelinek <jakub@redhat.com>
212 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
213 (sse2_avx, sseinsnmode): Add V2TI.
214 (REDUC_SMINMAX_MODE): New mode iterator.
215 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
216 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
217 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
218 (sse2_lshrv1ti3): Rename to...
219 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
220 iterator. Move before umaxmin expanders.
221 * config/i386/i386.h (VALID_AVX256_REG_MODE,
222 SSE_REG_MODE_P): Accept V2TImode.
223 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
224 V16HImode, V8SImode and V4DImode.
226 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
228 (ix86_build_signbit_mask): Likewise.
229 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
230 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
231 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
232 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
233 (<code><mode>3) ... this.
234 (avx2_<code><mode>3 smaxmin expand): Rename to...
235 (<code><mode>3) ... this.
236 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
237 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
238 VI8_AVX2 mode iterator.
239 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
240 VI8_AVX2 mode iterator.
241 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
244 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
246 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
249 2011-09-16 David S. Miller <davem@davemloft.net>
251 * config/sparc/visintrin.h: New file.
252 * config.gcc: Add it to extra_headers on sparc.
254 2011-09-16 Jakub Jelinek <jakub@redhat.com>
256 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
257 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
258 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
259 reduc_smin_v4sf): Adjust callers.
260 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
263 * config/i386/sse.md (vec_extract_hi_<mode>,
264 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
265 vextracti128 instead of vextractf128 for -mavx2 and
266 integer vectors. For V4DFmode fix up mode attribute.
267 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
268 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
269 instead of V8SF mode attribute.
270 (avx2_extracti128): Change into define_expand.
271 * config/i386/i386.c (ix86_expand_vector_extract): Handle
272 32-byte vector modes if TARGET_AVX.
274 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
276 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
277 (umulqi3_highpart, smulqi3_highpart): Ditto.
278 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
279 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
280 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
282 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
285 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
286 (*maddqi4, *maddqi4.const): New insns.
287 (*msubqi4, *msubqi4.const): New insns.
288 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
289 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
290 HImode by 1 in the case of multiplying with a CONST_INT.
291 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
293 2011-09-15 Jan Hubicka <jh@suse.cz>
296 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
297 error_mark_node in the DECL_INITIAL of vtable.
299 2011-09-15 Diego Novillo <dnovillo@google.com>
301 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
302 @SYSROOT_CFLAGS_FOR_TARGET@.
303 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
304 * configure: Regenerate.
305 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
306 Remove setting of GCC_UNDER_TEST.
308 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
310 * config/i386/i386.c (output_fp_compare): Return %v prefixed
311 instruction mnemonics for TARGET_AVX.
313 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
314 "type" attribute calculation.
315 (*movdf_internal): Ditto.
316 (*movsf_internal): Ditto.
318 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
320 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
322 2011-09-15 Jason Merrill <jason@redhat.com>
325 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
327 2011-09-15 Jan Hubicka <jh@suse.cz>
329 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
330 simplify obviously true clauses.
331 (and_predicates, or_predicates): Add conditions parameter.
332 (inline_duplication_hoook): Update.
333 (mark_modified): New function.
334 (unmodified_parm): New function.
335 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
336 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
338 (estimate_function_body_sizes): Update.
339 (remap_predicate): Update.
341 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
343 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
344 read-after-read dependencies in basic block SLP.
346 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
348 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
351 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
353 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
356 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
358 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
361 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
363 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
365 * config/rs6000/constraints.md: Likewise.
367 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
369 * config/microblaze/microblaze.md: Use match_test rather than
370 eq/ne symbol_ref throughout file.
372 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
374 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
377 2011-09-14 Tom de Vries <tom@codesourcery.com>
380 * explow.c (emit_stack_restore): Set crtl->need_drap if
381 stack_restore is emitted.
383 2011-09-14 Julian Brown <julian@codesourcery.com>
385 * config/arm/arm.c (arm_override_options): Add unaligned_access
387 (arm_file_start): Emit attribute for unaligned access as appropriate.
388 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
389 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
390 (insv, extzv): Add unaligned-access support.
391 (extv): Change to expander. Likewise.
392 (extzv_t1, extv_regsi): Add helpers.
393 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
394 (unaligned_storesi, unaligned_storehi): New.
395 (*extv_reg): New (previous extv implementation).
396 * config/arm/arm.opt (munaligned_access): Add option.
397 * config/arm/constraints.md (Uw): New constraint.
398 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
399 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
400 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
401 volatile accesses when -fstrict-volatile-bitfields is in effect.
402 (extract_bit_field_1): Likewise.
404 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
406 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
407 a scalar integer before applying integer-only optimisations to
410 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
412 * config/mips/mips.c (mips_expand_epilogue): Generate a
413 simple_return only if the return address is in r31.
415 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
417 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
418 NULL for a jump that is a cc0 insn, pick the previous insn for
421 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
423 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
426 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
428 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
431 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
433 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
434 symbol_ref throughout file.
436 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
438 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
441 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
443 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
446 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
448 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
450 * config/arm/neon.md: Likewise.
451 * config/arm/vfp.md: Likewise.
452 * config/arm/thumb2.md: Likewise.
453 * config/arm/cortex-m4.md: Likewise.
455 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
457 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
458 define_insn patterns for combine.
460 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
462 * reorg.c: Always define make_return_insns.
464 2011-09-13 Jan Hubicka <jh@suse.cz>
467 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
469 2011-09-13 Jan Hubicka <jh@suse.cz>
472 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
474 2011-09-13 Paul Brook <paul@codesourcery.com>
476 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
477 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
478 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
479 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
480 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
481 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
482 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
483 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
484 enabling unwind tables.
485 (c6x_debug_unwind_info): New function.
486 (TARGET_ARM_EABI_UNWINDER): Define.
487 (TARGET_DEBUG_UNWIND_INFO): Define.
488 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
489 (TARGET_EXTRA_CFI_SECTION): Remove.
490 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
491 * ginclude/unwind-arm-common.h: New file.
493 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
496 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
497 * config/avr/avr.md: (extend_s): New code attribute.
498 (mul_r_d): New code attribute.
499 (*maddqihi4, *umaddqihi4): New insns.
500 (*msubqihi4, *umsubqihi4): New insns.
501 (*usmaddqihi4, *sumaddqihi4): New insns.
502 (*usmsubqihi4, *susubdqihi4): New insns.
503 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
504 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
505 (*umsubqihi4.uconst.ashift): New insn-and-split.
506 (*msubqihi4.sconst.ashift): New insn-and-split.
507 (*sumaddqihi4.uconst): New insn-and-split.
508 (*sumsubqihi4.uconst): New insn-and-split.
509 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
510 PLUS:HI and MINUS:HI.
512 2011-09-13 Revital Eres <revital.eres@linaro.org>
514 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
515 (optimize_sc): Adjust call to remove_node_from_ps.
516 (sms_schedule): Add print info.
518 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
520 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
523 2011-09-12 Jakub Jelinek <jakub@redhat.com>
526 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
527 NOTE_INSN_CFI notes, with the exception of
528 NOTE_INSN_SWITCH_TEXT_SECTIONS.
530 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
531 Richard Sandiford <rdsandiford@googlemail.com>
533 * config/mips/mips.c (mips_epilogue): New structure.
534 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
536 (mips_epilogue_emit_cfa_restores): New function.
537 (mips_epilogue_set_cfa): Likewise.
538 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
539 the current CFA register from the stack, redefine the CFA in terms
540 of the stack pointer.
541 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
542 to the epilogue instructions.
544 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
546 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
548 (mips16e_build_save_restore): Update accordingly.
550 2011-09-12 Jakub Jelinek <jakub@redhat.com>
552 PR rtl-optimization/50212
553 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
554 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
557 * calls.c (load_register_parameters): Use use_reg_mode instead
558 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
560 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
561 for stack CALL_INSN_FUNCTION_USAGE uses.
562 * expr.h (use_reg_mode): New prototype.
563 (use_reg): Changed into inline around use_reg_mode.
564 * expr.c (use_reg): Renamed to...
565 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
566 mode to that mode instead of VOIDmode.
567 * var-tracking.c (prepare_call_arguments): Don't track parameters
568 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
569 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
572 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
575 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
576 (progmem_section): New Variable.
577 (avr_asm_init_sections): Initialize it.
578 (TARGET_ASM_SELECT_SECTION): Define to...
579 (avr_asm_select_section): ... this new Function.
580 (avr_replace_prefix): New Function.
581 (avr_asm_function_rodata_section): Use it.
582 (avr_insert_attributes): Don't add section attribute for PROGMEM.
583 (avr_section_type_flags): Use avr_progmem_p instead of section
584 name to detect if object is in PROGMEM.
585 (avr_asm_named_section): Set section name prefix for objects in
588 2011-09-12 Jakub Jelinek <jakub@redhat.com>
591 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
592 sprintf format string.
594 2011-09-12 Richard Guenther <rguenther@suse.de>
596 PR tree-optimization/50343
597 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
598 that the reduction is over an SSA name before checking its definition.
600 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
602 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
605 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
607 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
609 * config/mips/sb1.md: Likewise.
610 * config/mips/predicates.md: Replace (match_test "!...")
611 with (not (match_test "..."))
612 * config/mips/constraints.md: Likewise.
614 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
616 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
617 * config/arm/arm-tables.opt: Regenerate.
618 * config/arm/arm-tune.md: Regenerate.
619 * config/arm/arm.c (arm_file_start): Output .arch directive when
620 user passes -mcpu=generic-*.
621 (arm_issue_rate): Add genericv7a support.
622 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
623 (ASM_CPU_SPEC): New define.
624 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
625 * config/arm/semi.h (ASM_SPEC): Likewise.
626 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
627 and -mtune=generic-*.
629 2011-09-09 Richard Guenther <rguenther@suse.de>
631 PR tree-optimization/50328
632 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
633 constant or default-def operand.
635 2011-09-09 Richard Guenther <rguenther@suse.de>
637 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
640 2011-09-09 Richard Guenther <rguenther@suse.de>
642 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
643 instead of a statement.
644 * gimple-fold.c (fold_stmt_inplace): Likewise.
645 * sese.c (graphite_copy_stmts_from_block): Adjust.
646 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
647 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
649 (forward_propagate_addr_into_variable_array_index): Likewise.
650 (forward_propagate_addr_expr_1): adjust.
651 (associate_plusminus): Likewise.
652 (ssa_forward_propagate_and_combine): Likewise.
653 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
654 (execute_cse_reciprocals): Likewise.
655 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
657 2011-09-09 Nick Clifton <nickc@redhat.com>
659 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
660 Return a positive value to indicate that the bits at the
661 bottom of the register should be cleared.
663 2011-09-09 Richard Guenther <rguenther@suse.de>
665 * tree-ssa-operands.c (swap_tree_operands): Always adjust
666 existing operand positions.
668 2011-09-09 Richard Guenther <rguenther@suse.de>
671 * tree-data-ref.c (split_constant_offset): Do not try to handle
674 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
676 PR tree-optimization/50318
677 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
678 typo in use of mult_rhs1 and mult_rhs2.
680 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
682 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
683 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
685 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
687 * config/arm/arm.md (push_multi): Emit predicates.
688 (push_fp_multi): Likewise.
689 * config/arm/arm.c (vfp_output_fstmd): Likewise.
691 2011-09-08 Dodji Seketeli <dodji@redhat.com>
693 PR c++/33255 - Support -Wunused-local-typedefs warning
694 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
695 (pushdecl): Use the new record_locally_defined_typedef.
696 (store_parm_decls): Allocate cfun->language.
697 (finish_function): Use the new maybe_warn_unused_local_typedefs,
698 and free cfun->language.
699 (c_push_function_context): Allocate cfun->language here only if needed.
700 (c_pop_function_context): Likewise, mark cfun->language
701 for collection only when it should be done.
702 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
703 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
704 maybe_record_local_typedef_use.
705 * doc/invoke.texi: Update documentation for
706 -Wunused-local-typedefs.
708 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
710 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
711 (ix86_avoid_lea_for_add): Likewise.
712 (ix86_avoid_lea_for_addr): Likewise.
713 (ix86_split_lea_for_addr): Likewise.
715 * config/i386/i386.c (LEA_MAX_STALL): New.
716 (increase_distance): Likewise.
717 (insn_defines_reg): Likewise.
718 (insn_uses_reg_mem): Likewise.
719 (distance_non_agu_define_in_bb): Likewise.
720 (distance_agu_use_in_bb): Likewise.
721 (ix86_lea_outperforms): Likewise.
722 (ix86_ok_to_clobber_flags): Likewise.
723 (ix86_avoid_lea_for_add): Likewise.
724 (ix86_avoid_lea_for_addr): Likewise.
725 (ix86_split_lea_for_addr): Likewise.
726 (distance_non_agu_define): Search in pred BBs added.
727 (distance_agu_use): Search in succ BBs added.
728 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
729 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
730 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
732 * config/i386/i386.md: Split added to transform non destructive
733 add into move and add.
734 (lea_1): transformed into insn_and_split to avoid AGU stalls.
735 (lea<mode>_2): Likewise.
737 2011-09-08 Martin Jambor <mjambor@suse.cz>
739 PR tree-optimization/50287
740 * ipa-split.c (split_function): Do not create SSA names for
741 non-gimple-registers.
743 2011-09-08 Richard Guenther <rguenther@suse.de>
745 PR tree-optimization/19831
746 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
747 skip builtins with vdefs that do not really store something.
748 (propagate_necessity): For calls to free that we can associate
749 with an allocation function do not mark the freed pointer
750 definition necessary.
751 (eliminate_unnecessary_stmts): Remove a call to free if
752 the associated call to an allocation function is not necessary.
754 2011-09-08 Richard Guenther <rguenther@suse.de>
756 PR tree-optimization/19831
757 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
758 allocation functions as necessary.
760 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
762 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
764 (darwin_default_min_version): Amended to provide defaults
765 for the cross directory case.
766 (darwin_driver_init): call darwin_default_min_version unconditionally.
767 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
768 * config/darwin9.h: Likewise.
769 * config/darwin10.h: Likewise.
770 * config/rs6000/darwin7.h: Likewise.
772 2011-09-08 Jakub Jelinek <jakub@redhat.com>
775 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
776 code early if TARGET_AVX.
777 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
779 2011-09-07 Jakub Jelinek <jakub@redhat.com>
781 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
785 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
786 "mode" attribute computation.
788 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
790 * regrename.c (struct du_head): Make nregs signed.
791 (closed_chains): Remove.
792 (create_new_chain): Return the new chain.
793 (chain_from_id): New static function.
794 (dump_def_use_chain): Change argument to be an int, indicating
795 the first ID to print. All callers changed.
796 (merge_overlapping_regs): Use chain_from_id. Assert that
797 chains don't conflict with themselves.
798 (rename_chains): Take no argument. Iterate over id_to_chain
799 rather to find chains to rename. Clear tick before the main loop.
800 (struct incoming_reg_info): New struct.
801 (struct bb_rename_info): New struct.
802 (init_rename_info, set_incoming_from_chain, merge_chains): New
804 (regrename_analyze): New static function, broken out of
805 regrename_optimize. Record and make use of open chain information
806 at basic block boundaries, and merge chains where possible.
807 (scan_rtx_reg): Make this_nregs signed. Don't update
809 (build_def_use): Return a bool to indicate success. All callers
810 changed. Don't initialize global data here.
811 (regrename_optimize): Move most code out of here into
813 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
814 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
815 static inline functions.
816 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
818 * bb-reorder.c (insert_section_boundary_note): Don't check
819 optimize_function_for_speed_p.
820 (gate_handle_partition_blocks): Do it here instead.
821 (gate_handle_reorder_blocks): Move preliminary checks here ...
822 (rest_of_handle_reorder_blocks): ... from here.
824 2011-09-07 Martin Jambor <mjambor@suse.cz>
827 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
828 function index bounds.
829 (perhaps_add_new_callers): Likewise.
831 2011-09-07 Martin Jambor <mjambor@suse.cz>
833 PR tree-optimization/49911
834 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
835 enumerations to the corresponding plain integer type.
837 2011-09-07 Richard Guenther <rguenther@suse.de>
839 PR tree-optimization/50319
840 * tree-if-conv.c (set_bb_predicate): Assert we only set
841 canonical predicates.
842 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
843 around canonical predicates.
844 (predicate_bbs): Do not re-gimplify already canonical
845 predicates. Properly unshare them though.
846 (find_phi_replacement_condition): Simplify.
848 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
851 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
852 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
853 reusing the old code from get_arm_condition_code. Return ARM_NV
854 for invalid comparison codes.
855 (get_arm_condition_code): Redefine in terms of
856 maybe_get_arm_condition_code.
857 * config/arm/predicates.md (arm_comparison_operator): Use
858 maybe_get_arm_condition_code.
860 2011-09-07 Richard Guenther <rguenther@suse.de>
862 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
863 Canonicalize negated predicates by swapping edges.
864 (forward_propagate_into_cond): Likewise.
866 2011-09-07 Richard Guenther <rguenther@suse.de>
868 PR tree-optimization/50213
869 * tree-flow.h (simple_iv_increment_p): Declare.
870 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
872 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
873 not propagate simple IV counter increments.
875 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
876 Iain Sandoe <iains@gcc.gnu.org>
878 * config/rs6000/rs6000.c (compute_save_world_info): Test
879 cfun->has_nonlocal_label to determine if the out-of-line save
880 world call may be used.
882 2011-09-07 Nick Clifton <nickc@redhat.com>
884 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
885 label on the parallel part of the insn.
887 2011-09-07 Jakub Jelinek <jakub@redhat.com>
890 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
891 avoid_constant_pool_reference first instead of last.
893 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
895 * doc/configfiles.texi (Configuration Files): Update documentation
896 about tm_p.h and remove FIXME comment.
898 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
900 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
901 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
903 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
905 * config/darwin10.h Remove duplicate LIB_SPEC.
907 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
910 * target.def (reassociation_width): New hook.
912 * doc/tm.texi.in (reassociation_width): Likewise.
914 * doc/tm.texi (reassociation_width): Likewise.
916 * doc/invoke.texi (tree-reassoc-width): New param documented.
918 * hooks.h (hook_int_uint_mode_1): New default hook.
920 * hooks.c (hook_int_uint_mode_1): Likewise.
922 * config/i386/i386.h (ix86_tune_indices): Add
923 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
925 (TARGET_REASSOC_INT_TO_PARALLEL): New.
926 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
928 * config/i386/i386.c (initial_ix86_tune_features): Add
929 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
931 (ix86_reassociation_width): New function.
933 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
935 * tree-ssa-reassoc.c (get_required_cycles): New function.
936 (get_reassociation_width): Likewise.
937 (swap_ops_for_binary_stmt): Likewise.
938 (rewrite_expr_tree_parallel): Likewise.
940 (rewrite_expr_tree): Refactored. Part of code moved into
941 swap_ops_for_binary_stmt.
943 (reassociate_bb): Now checks reassociation width to be used and
944 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
946 2011-09-06 Richard Guenther <rguenther@suse.de>
948 PR tree-optimization/47025
949 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
951 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
953 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
954 definitely points to.
955 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
956 BUILT_IN_VA_START doesn't let its va_list argument escape.
957 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
958 not make any previous stores necessary.
960 2011-09-06 Martin Jambor <mjambor@suse.cz>
962 * ipa-inline.h (struct inline_summary): Move versionable flag...
963 * cgraph.h (struct cgraph_local_info): ...here
964 * ipa-cp.c (determine_versionability): Use the new versionable flag.
965 (determine_versionability): Likewise.
966 (ipcp_versionable_function_p): Likewise.
967 (ipcp_generate_summary): Likewise.
968 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
970 (compute_inline_parameters): Do not clear the versionable flag.
971 (inline_read_section): Do not stream the versionable flag.
972 (inline_write_summary): Likewise.
973 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
974 (input_overwrite_node): Likewise.
976 2011-09-06 Richard Guenther <rguenther@suse.de>
978 PR tree-optimization/48149
979 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
980 (vn_valueize): Move earlier.
981 (valueize_expr): Use vn_valueize.
982 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
984 (simplify_unary_expression): Simplify.
986 2011-09-06 Richard Guenther <rguenther@suse.de>
988 PR tree-optimization/48317
989 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
991 (sizeof_vn_nary_op): New inline function.
992 (vn_nary_op_lookup_pieces): Adjust.
993 (vn_nary_op_insert_pieces): Likewise.
994 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
995 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
996 any number of operands.
997 (vn_nary_length_from_stmt): New function.
998 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
999 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
1001 (vn_nary_op_lookup): Likewise.
1002 (vn_nary_op_lookup_stmt): Likewise.
1003 (vn_nary_op_insert_into): Likewise.
1004 (vn_nary_op_insert_stmt): Likewise.
1005 (visit_use): Handle CONSTRUCTOR as nary.
1006 * tree-ssa-pre.c (phi_translate_1): Adjust.
1007 (create_expression_by_pieces): Likewise.
1008 (compute_avail): Likewise.
1010 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
1012 * config/arm/arm.c (arm_preferred_simd_mode): Check
1013 TARGET_NEON_VECTORIZE_DOUBLE instead of
1014 TARGET_NEON_VECTORIZE_QUAD.
1015 (arm_autovectorize_vector_sizes): Likewise.
1016 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
1017 mask of mvectorize-with-neon-double. Add RejectNegative.
1018 (mvectorize-with-neon-double): New.
1020 2011-09-06 Richard Guenther <rguenther@suse.de>
1022 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
1024 2011-09-06 Tom de Vries <tom@codesourcery.com>
1026 * recog.c (asm_labels_ok): New function.
1027 (check_asm_operands): Use asm_labels_ok.
1029 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
1032 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
1033 (PMODE_INSN): New macro.
1034 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
1035 (mips_got_load, mips_expand_synci_loop): Likewise.
1036 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
1038 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
1039 copygp_mips16 patterns.
1040 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
1041 and use_cprestore patterns.
1042 (mips_override_options): Check for incompatible -mabi and -mlong
1044 * config/mips/mips.md (unspec_got<mode>): Rename to...
1045 (unspec_got_<mode>): ...this.
1046 (copygp_mips16): Use the Pmode iterator.
1047 (potential_cprestore, cprestore, use_cprestore): Likewise.
1048 (clear_cache, indirect_jump): Use PMODE_INSN.
1049 (indirect_jump<mode>): Rename to...
1050 (indirect_jump_<mode>): ...this.
1051 (tablejump): Use PMODE_INSN.
1052 (tablejump<mode>): Rename to...
1053 (tablejump_<mode>): ...this.
1054 (exception_receiver): Handle restore_gp_si and restore_gp_di.
1055 (restore_gp): Use the Pmode iterator.
1056 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
1059 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
1061 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
1062 Fix the type of the BIT_AND_EXPR.
1064 2011-09-05 David S. Miller <davem@davemloft.net>
1066 * config.host: Add driver-sparc.o and sparc/x-sparc on
1067 native sparc*-*-linux* builds.
1068 * config/sparc/driver-sparc.c: Correct Linux strings.
1069 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
1070 * config/sparc/linux64.h: Likewise.
1071 * doc/invoke.texi: Document that Linux also supports
1072 -mcpu=native and -mtune=native on sparc.
1074 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
1075 PROCESSOR_NIAGARA4): New.
1076 * config/sparc/sparc.opt: Handle new processor types.
1077 * config/sparc/sparc.md: Add to "cpu" attribute.
1078 * config/sparc/sparc.h (TARGET_CPU_niagara3,
1079 TARGET_CPU_niagara4): New, treat as niagara2.
1080 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
1081 * config/sparc/sol2.h: Likewise.
1082 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
1083 * config/sparc/sparc.c (sparc_option_override): Add
1084 niagara3 and niagara4 handling.
1085 (sparc32_initialize_trampoline): Likewise.
1086 (sparc64_initialize_trampoline): Likewise.
1087 (sparc_use_sched_lookahead): Likewise.
1088 (sparc_issue_rate): Likewise.
1089 (sparc_register_move_cost): Likewise.
1090 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
1091 and niagara4 as appropriate.
1092 * doc/invoke.texi: Document new processor types.
1093 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
1094 and --with-tune options.
1096 * config/sparc/sol2-64.h: Move ...
1097 * config/sparc/default-64.h: ... to here. Update comment.
1098 * config.gcc: Update Solaris sparc to use default-64.h, also
1099 prefix this header into the list on sparc64-*-linux.
1100 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
1101 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
1104 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
1107 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
1108 that contain global register variable.
1110 2011-09-05 Richard Guenther <rguenther@suse.de>
1112 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
1114 2011-09-05 Richard Guenther <rguenther@suse.de>
1116 * stor-layout.c (layout_type): Use size_binop for array size
1119 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
1121 * config/avr/avr.h (progmem_section): Remove Declaration.
1122 * config/avr/avr.c (progmem_section): Make static and rename to
1123 progmem_swtable_section.
1124 (avr_output_addr_vec_elt): No need to switch sections.
1125 (avr_asm_init_sections): Use output_section_asm_op as section
1126 callback for progmem_swtable_section.
1127 (avr_output_progmem_section_asm_op): Remove Function.
1128 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
1129 (avr_asm_function_rodata_section): New static Function.
1130 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
1131 alignment 2**1 for jump tables.
1133 2011-09-04 Jan Hubicka <jh@suse.cz>
1135 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
1136 parameter is SSA name.
1138 2011-09-04 Richard Guenther <rguenther@suse.de>
1141 2011-08-31 Richard Guenther <rguenther@suse.de>
1143 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
1146 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
1149 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
1151 2011-09-04 Jakub Jelinek <jakub@redhat.com>
1152 Ira Rosen <ira.rosen@linaro.org>
1154 PR tree-optimization/50208
1155 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
1156 argument. Check that def_stmt is inside the loop.
1157 (vect_recog_widen_mult_pattern): Update calls to
1158 vect_handle_widen_mult_by_cons.
1159 (vect_operation_fits_smaller_type): Check that def_stmt is
1162 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
1164 * tree-vectorizer.c (vect_print_dump_info): Print line
1165 number when dumping to a file.
1166 (vectorize_loops): Add new messages to dump file.
1168 2011-09-03 Martin Jambor <mjambor@suse.cz>
1170 * ipa-prop.h (ipa_jump_func_t): New typedef.
1171 (struct ipa_edge_args): Removed field argument_count, field
1172 jump_functions turned into a vector.
1173 (ipa_set_cs_argument_count): Removed.
1174 (ipa_get_cs_argument_count): Updated to work on vectors.
1175 (ipa_get_ith_jump_func): Likewise.
1176 * ipa-prop.c (ipa_count_arguments): Removed.
1177 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
1178 jump functions. Update caller.
1179 (compute_pass_through_member_ptrs): Likewise.
1180 (compute_cst_member_ptr_arguments): Likewise.
1181 (ipa_compute_jump_functions_for_edge): Get number of arguments from
1182 the statement, allocate vector.
1183 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
1184 (duplicate_ipa_jump_func_array): Removed.
1185 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
1186 (ipa_read_node_info): Allocate vector.
1188 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1191 * config/pa/pa.md (return): Define "return" insn pattern.
1192 (epilogue): Use it when no epilogue is needed.
1193 * config/pa/pa.c (pa_can_use_return_insn): New function.
1194 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
1196 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
1198 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
1199 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
1200 Force at least BITS_PER_UNIT alignment on the new variable.
1202 2011-09-02 Gary Funck <gary@intrepid.com>
1204 * opts.c (print_specific_help): Fix off-by-one compare in
1206 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
1207 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
1208 Increase by +5 to allow for more languages.
1209 * optc-gen.awk: Generate #if that ensures that the number of
1210 languages is within the implementation-defined limit.
1212 2011-09-02 Michael Matz <matz@suse.de>
1215 * ipa-split.c (split_function): Call add_referenced_var.
1217 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
1218 (cond_if_else_store_replacement_1): Ditto.
1219 * tree-ssa-pre.c (get_representative_for): Ditto.
1220 (create_expression_by_pieces): Ditto.
1221 (insert_into_preds_of_block): Ditto.
1222 * tree-sra.c (create_access_replacement): Ditto.
1223 (get_replaced_param_substitute): Ditto.
1225 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
1227 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
1229 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
1230 (l1w, s1w, l2w, s2w): Define in the main automaton.
1231 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
1233 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
1234 (c6x_unit_names): Add the new units.
1235 (c6x_unit_codes): New static array.
1236 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
1237 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
1238 UNIT_QID_SIDE_OFFSET): New macros.
1239 (RESERVATION_S2): Adjust value.
1240 (c6x_option_override): Compute c6x_unit_codes.
1241 (assign_reservations): Take the unit_mask of the last instruction
1242 into account. Detect floating point reservations by looking for
1243 the new units. Don't assign reservations if the field is already
1245 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
1246 (init_sched_state): Initialize it.
1247 (c6x_clear_sched_context): Free it.
1248 (insn_set_clock): Clear reservation.
1249 (prev_cycle_state): New static variable.
1250 (c6x_init_sched_context): Save it.
1251 (c6x_sched_init): Allocate space for it and clear it.
1252 (c6x_sched_dfa_pre_cycle_insn): New static function.
1253 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
1254 (c6x_variable_issue): Only record units in the unit_mask that
1255 were not set at the start of the cycle.
1256 (c6x_variable_issue): Compute and store the unit_mask from the
1258 (reorg_split_calls): Ensure the new information remains correct.
1259 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
1260 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
1261 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
1262 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
1263 Add special reservations.
1264 * config/c6x/c6x-sched.md: Regenerate.
1266 2011-09-02 Martin Jambor <mjambor@suse.cz>
1268 * ipa-prop.h (ipa_node_params): Removed fields
1269 called_with_var_arguments and node_versionable.
1270 (ipa_set_called_with_variable_arg): Removed.
1271 (ipa_is_called_with_var_arguments): Likewise.
1272 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
1273 (determine_versionability): Do not check for type attributes and va
1274 builtins. Record versionability into inline summary.
1275 (initialize_node_lattices): Do not check
1276 ipa_is_called_with_var_arguments.
1277 (propagate_constants_accross_call): Likewise, ignore arguments we do
1278 not have PARM_DECLs for, set variable flag for parameters that were
1280 (create_specialized_node): Dump info that we cannot change signature.
1281 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
1282 number of arguments.
1283 (ipa_make_edge_direct_to_target): Likewise.
1284 (ipa_update_after_lto_read): Likewise.
1285 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
1286 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
1289 2011-09-02 Richard Guenther <rguenther@suse.de>
1291 PR tree-optimization/27460
1293 * doc/md.texi (vcond): Document.
1294 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
1295 optab with two modes.
1296 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
1297 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
1298 (vcond_optab): Adjust.
1299 (vcondu_optab): Likewise.
1300 (expand_vec_cond_expr_p): Adjust prototype.
1301 * optabs.c (get_vcond_icode): Adjust.
1302 (expand_vec_cond_expr_p): Likewise.
1303 (expand_vec_cond_expr): Likewise.
1304 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
1306 (vectorizable_condition): Allow differing types for comparison
1308 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
1310 * config/i386/sse.md (vcond<mode>): Split to
1311 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
1312 vcond<V_128:mode><VI124_128:mode> and
1313 vcondu<V_128:mode><VI124_128:mode>.
1314 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
1315 (vconduv2di): Likewise.
1316 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
1317 (vcondu<mode>): Likewise.
1318 * config/ia64/vect.md (vcond<mode>): Likewise.
1319 (vcondu<mode>): Likewise.
1320 (vcondv2sf): Likewise.
1321 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
1322 * config/rs6000/paired.md (vcondv2sf): Likewise.
1323 * config/rs6000/vector.md (vcond<mode>): Likewise.
1324 (vcondu<mode>): Likewise.
1325 * config/spu/spu.md (vcond<mode>): Likewise.
1326 (vcondu<mode>): Likewise.
1328 2011-09-02 Richard Guenther <rguenther@suse.de>
1330 * pretty-print.h (pp_unsigned_wide_integer): New.
1331 * tree-pretty-print.c (dump_generic_node): Print unsigned
1332 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
1334 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
1337 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
1338 valid CONST_VECTOR operands.
1339 (rs6000_expand_vector_init): Likewise.
1341 2011-09-02 Martin Jambor <mjambor@suse.cz>
1343 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
1344 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
1345 BINFO_VTABLE. Parameter delta removed, all callers updated.
1346 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
1348 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
1350 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
1351 handling of thunk_delta.
1352 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
1353 (devirtualization_time_bonus): Do not handle thunk deltas.
1354 (ipcp_discover_new_direct_edges): Likewise.
1355 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1356 (try_make_edge_direct_simple_call): Likewise.
1357 (try_make_edge_direct_virtual_call): Likewise.
1358 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
1359 parameter set as unused.
1360 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
1361 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
1362 parameter set as unused.
1363 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
1364 (input_edge_opt_summary): Likewise.
1365 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
1366 BINFO_VIRTUALS at all.
1367 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
1369 2011-09-02 Richard Guenther <rguenther@suse.de>
1371 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
1372 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
1374 2011-08-31 Richard Guenther <rguenther@suse.de>
1376 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
1377 handling here, from ...
1378 (expand_expr_real_1): ... here.
1379 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
1381 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
1382 a GIMPLE_TERNARY_RHS.
1383 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
1384 and VEC_COND_EXPR here ...
1385 (verify_gimple_assign_single): ... not here.
1386 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
1387 * tree-object-size.c (cond_expr_object_size): Adjust.
1388 (collect_object_sizes_for): Likewise.
1389 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
1390 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
1391 (ssa_forward_propagate_and_combine): Adjust.
1392 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
1394 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
1395 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
1396 * tree-vect-stmt.c (vectorizable_condition): Likewise.
1397 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
1398 (extract_range_from_assignment): Likewise.
1400 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
1402 * config/i386/i386.md: Use (match_test ...) for attribute tests.
1403 * config/i386/mmx.md: Likewise.
1404 * config/i386/sse.md: Likewise.
1405 * config/i386/predicates.md (call_insn_operand): Use
1406 (not (match_test "...")) instead of (match_test "!...")
1407 * config/i386/constraints.md (w): Likewise.
1409 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
1411 * doc/md.texi: Describe the use of match_tests in attribute tests.
1412 * rtl.def (MATCH_TEST): Update commentary.
1413 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
1414 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
1416 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
1418 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
1419 (attr_string): Use copy_md_ptr_loc.
1421 2011-08-31 Martin Jambor <mjambor@suse.cz>
1424 * ipa-inline-analysis.c (compute_inline_parameters): Set
1425 can_change_signature of noes with typde attributes.
1426 * ipa-split.c (split_function): Do not skip any arguments if
1427 can_change_signature is set.
1429 2011-08-31 Martin Jambor <mjambor@suse.cz>
1431 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
1434 2011-08-31 Richard Guenther <rguenther@suse.de>
1436 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
1439 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
1441 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
1443 2011-08-31 Tom de Vries <tom@codesourcery.com>
1446 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
1447 * tree-ssa-ccp.c (params.h): Include.
1448 (fold_builtin_alloca_for_var): New function.
1449 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
1451 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
1453 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1456 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
1458 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
1461 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
1463 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
1466 2011-08-30 Richard Guenther <rguenther@suse.de>
1469 * gimple.h (maybe_fold_offset_to_address): Remove.
1470 (maybe_fold_offset_to_reference): Likewise.
1471 (maybe_fold_stmt_addition): Likewise.
1472 (may_propagate_address_into_dereference): Likewise.
1473 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
1475 * gimple-fold.c (canonicalize_constructor_val): Likewise.
1476 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
1478 (may_propagate_address_into_dereference): Remove.
1479 (maybe_fold_offset_to_array_ref): Likewise.
1480 (maybe_fold_offset_to_reference): Likewise.
1481 (maybe_fold_offset_to_address): Likewise.
1482 (maybe_fold_stmt_addition): Likewise.
1483 (fold_gimple_assign): Do not reconstruct array references but
1484 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
1486 (gimple_fold_stmt_to_constant_1): Likewise.
1487 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1488 * gimplify.c (gimplify_conversion): Likewise.
1489 (gimplify_expr): Likewise.
1491 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
1493 * config/i386/fmaintrin.h: New.
1494 * config.gcc: Add fmaintrin.h.
1495 * config/i386/i386.c
1496 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
1497 <IX86_BUILTIN_VFMADDSD3>: Likewise.
1498 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
1499 (*fmai_fmadd_<mode>): Likewise.
1500 (*fmai_fmsub_<mode>): Likewise.
1501 (*fmai_fnmadd_<mode>): Likewise.
1502 (*fmai_fnmsub_<mode>): Likewise.
1503 * config/i386/immintrin.h: Add fmaintrin.h.
1505 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
1507 * genautomata.c (NO_COMB_OPTION): New macro.
1508 (no_comb_flag): New static variable.
1509 (gen_automata_option): Handle NO_COMB_OPTION.
1510 (comb_vect_p): False if no_comb_flag.
1511 (add_vect): Move computation of min/max values. Return early if
1513 * doc/md.texi (automata_option): Document no-comb-vect.
1515 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
1516 "__x86.get_pc_thunk".
1518 * bb-reorder.c (insert_section_boundary_note): Only do it if
1519 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
1521 2011-08-30 Christian Bruel <christian.bruel@st.com>
1523 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
1526 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
1528 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
1529 to off. Document switch.
1530 * doc/invoke.texi (-msave-toc-indirect): Ditto.
1532 2011-08-29 Jakub Jelinek <jakub@redhat.com>
1534 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
1535 conditionals and comments inside macro arguments.
1537 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
1538 Richard Guenther <rguenther@suse.de>
1540 * tree.h (constant_boolean_node): Adjust prototype.
1541 * fold-const.c (fold_convert_loc): Move aggregate conversion
1543 (constant_boolean_node): Make value parameter boolean, add
1544 vector type handling.
1545 (fold_unary_loc): Use constant_boolean_node.
1546 (fold_binary_loc): Preserve types properly when folding
1547 COMPLEX_EXPR <__real x, __imag x>.
1548 * gimplify.c (gimplify_expr): Handle vector comparison.
1549 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
1551 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
1554 2011-08-29 Jakub Jelinek <jakub@redhat.com>
1557 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
1558 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
1559 (verify_rtl_sharing): Likewise and verify_rtx_sharing
1561 (unshare_all_rtl_in_chain): For CALL_INSNs
1562 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
1564 2011-08-29 Richard Guenther <rguenther@suse.de>
1566 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
1567 on the built ADDR_EXPR.
1569 2011-08-29 Jakub Jelinek <jakub@redhat.com>
1572 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
1573 before adding ENTRY_VALUE to val->locs.
1575 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
1578 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
1581 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
1583 * doc/rtl.texi (simple_return): Document.
1584 (parallel, PATTERN): Here too.
1585 * doc/md.texi (return): Mention it's allowed to expand to simple_return
1587 (simple_return): Document standard pattern.
1588 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
1589 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
1590 * reorg.c (function_return_label, function_simple_return_label):
1591 New static variables, replacing...
1592 (end_of_function_label): ... this.
1593 (simplejump_or_return_p): New static function.
1594 (optimize_skip, steal_delay_list_from_fallthrough,
1595 fill_slots_from_thread): Use it.
1596 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
1597 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
1598 (find_end_label): Take a new arg which is one of the two return
1599 rtxs. Depending on which, set either function_return_label or
1600 function_simple_return_label. All callers changed.
1601 (make_return_insns): Make both kinds.
1602 (dbr_schedule): Adjust for two kinds of end labels.
1603 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
1604 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
1605 (gen_expand, gen_split): Use ANY_RETURN_P.
1606 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
1607 * rtl.def (SIMPLE_RETURN): New code.
1608 * ifcvt.c (find_if_case_1): Be more careful about
1609 redirecting jumps to the EXIT_BLOCK.
1610 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
1611 returnjump_p_1): Handle SIMPLE_RETURNs.
1612 * print-rtl.c (print_rtx): Likewise.
1613 * rtl.c (copy_rtx): Likewise.
1614 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
1615 * combine.c (simplify_set): Likewise.
1616 * resource.c (find_dead_or_set_registers, mark_set_resources):
1618 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
1619 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
1620 (init_emit_regs): Initialize simple_return_rtx.
1621 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
1622 force_nonfallthru_and_redirect.
1623 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
1624 (GR_SIMPLE_RETURN): New enum value.
1625 (simple_return_rtx): New macro.
1626 * basic-block.h (force_nonfallthru_and_redirect): Adjust
1628 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
1629 argument. All callers changed. Be careful about what kinds of
1630 returnjumps to generate.
1631 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
1632 ix86_pad_short_function): Likewise.
1633 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
1635 * config/mips/mips.md (any_return): New code_iterator.
1636 (optab): Add cases for return and simple_return.
1637 (return): Expand to a simple_return.
1638 (simple_return): New pattern.
1639 (*<optab>, *<optab>_internal for any_return): New patterns.
1640 (return_internal): Remove.
1641 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
1642 a simple_return_internal.
1644 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
1646 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
1647 (vec_extract_lo_<mode>): Prevent both operands in memory.
1648 (vec_extract_lo_v16hi): Ditto.
1649 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
1651 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
1653 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
1654 (*sse2_mulv4si3): Ditto.
1656 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
1659 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
1662 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
1663 when all outputs are unused.
1664 (sse4_2_pcmpistr): Ditto.
1666 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
1668 * config/i386/i386.md (round<mode>2): New expander.
1669 * config/i386/i386.c (enum ix86_builtins): Add
1670 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
1671 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
1673 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
1674 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
1676 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
1679 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
1680 only when TARGET_C99_FUNCTIONS.
1681 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
1682 <BUILT_IN_RINT{,F,L}>: Ditto.
1684 2011-08-26 Michael Matz <matz@suse.de>
1685 Jakub Jelinek <jakub@redhat.com>
1688 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
1689 don't call strlen twice, use memcpy.
1691 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
1693 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
1694 * config/i386/bmiintrin.h: Likewise.
1695 * config/i386/lzcntintrin.h: Likewise.
1697 * config/i386/immintrin.h: Include <lzcntintrin.h>,
1698 <bmiintrin.h> and <bmi2intrin.h>.
1700 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1703 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
1704 * configure: Regenerate.
1706 2011-08-26 Jakub Jelinek <jakub@redhat.com>
1709 * c-typeck.c (c_process_expr_stmt): Skip over nops and
1710 call mark_exp_read even if exprv is ADDR_EXPR.
1712 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
1714 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
1715 to df_set_dead_notes_for_mw.
1717 2011-08-26 Richard Guenther <rguenther@suse.de>
1719 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
1721 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
1722 Tom de Vries <tom@codesourcery.com>
1724 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
1725 (struct ivopts_data): Add loop_single_exit_p field.
1726 (niter_for_exit): Change parameter desc_p into return value. Return
1727 desc if desc->may_be_zero. Free desc if unused.
1728 (niter_for_single_dom_exit): Change return type.
1729 (find_induction_variables): Handle changed return type of
1730 niter_for_single_dom_exit. Dump may_be_zero.
1731 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
1732 (set_use_iv_cost): Add and handle comp parameter.
1733 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
1734 comp argument to set_use_iv_cost.
1735 (strip_wrap_conserving_type_conversions, expr_equal_p)
1736 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
1737 (may_eliminate_iv): Add comp parameter. Handle new return type of
1738 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
1739 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
1740 and may_eliminate_iv.
1741 (rewrite_use_compare): Move call to iv_elimination_compare to ...
1742 (may_eliminate_iv): Here.
1743 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
1745 2011-08-26 Tom de Vries <tom@codesourcery.com>
1747 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
1748 accessing TREE_TYPE.
1750 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
1752 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
1753 (*ior_scc_scc_cmp): Likewise
1754 (*and_scc_scc): Likewise.
1755 (*and_scc_scc_cmp): Likewise.
1756 (*and_scc_scc_nodom): Likewise.
1757 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
1759 2011-08-26 Jakub Jelinek <jakub@redhat.com>
1761 * rtlanal.c (nonzero_bits1): Handle CLRSB.
1763 2011-08-26 Richard Guenther <rguenther@suse.de>
1765 * expr.c (string_constant): Handle &MEM_REF.
1767 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
1769 * config/arm/arm.c (struct four_ints): New type.
1770 (count_insns_for_constant): Delete function.
1771 (find_best_start): Delete function.
1772 (optimal_immediate_sequence): New function.
1773 (optimal_immediate_sequence_1): New function.
1774 (arm_gen_constant): Move constant splitting code to
1775 optimal_immediate_sequence.
1776 Rewrite constant negation/invertion code.
1778 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
1780 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
1781 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
1782 Remove prototype. Remove static function type.
1783 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
1785 * config/arm/constraints.md (Pj, PJ): New constraints.
1787 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1789 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
1790 ("cortex_a9_multiply_long"): New and use above. Handle all
1791 long multiply cases.
1792 ("cortex_a9_multiply"): Handle smmul and smmulr.
1793 ("cortex_a9_mac"): Handle smmla.
1795 2011-08-25 Richard Henderson <rth@redhat.com>
1799 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
1800 non-constant stack adjutment.
1801 * expr.c (find_args_size_adjust): Break out from ...
1802 (fixup_args_size_notes): ... here.
1803 * rtl.h (find_args_size_adjust): Declare.
1805 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
1807 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
1808 sse4 and sse4_noavx.
1809 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
1810 (*pushdf_rex64): Change Y2 register constraint to x.
1811 (*movdf_internal_rex64): Ditto.
1812 (*zero_extendsidi2_rex64): Ditto.
1813 (*movdi_internal): Change Y2 register constraint to x
1814 and update "isa" attribute.
1816 (*movdf internal): Ditto.
1817 (zero_extendsidi2_1): Ditto.
1818 (*truncdfdf_mixed): Ditto.
1819 (*truncxfdf2_mixed): Ditto.
1820 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
1821 register constraint to x.
1822 (*movv2sf_internal_rex64): Ditto.
1823 (*mov<mode>_internal): Change Y2 register constraint to x
1824 and add "isa" attribute.
1825 (*movv2sf_internal): Ditto.
1826 (*vec_extractv2si_1): Ditto.
1827 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
1828 constraints to x and update "isa" attribute.
1829 (*vec_interleave_highv2df): Change Y3 registerconstraint
1830 to x and update "isa" attribute.
1831 (*vec_interleave_lowv2df): Ditto.
1832 (*vec_concatv2df): Change Y2 register constraint to x and
1833 update "isa" attribute.
1834 (sse2_loadld): Ditto.
1835 (*vec_extractv2di_1): Ditto.
1836 (*vec_dupv4si): Ditto.
1837 (*vec_dupv2di): Ditto.
1838 (*vec_concatv4si): Ditto.
1839 (vec_concatv2di): Ditto.
1840 * config/i386/constraints.md (Y2): Remove.
1844 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
1846 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
1847 dump_def_use_chain): Don't declare.
1848 (mark_conflict, create_new_chain): Move before users.
1849 (regrename_optimize): Move to near end of file.
1851 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
1853 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
1854 (secondary_input_reload_class): Remove Prototype.
1855 * config/avr/avr.c (byte_immediate_operand): Remove Function.
1856 * config/avr/avr.md (setmemhi): Use u8_operand.
1857 (strlenhi): Use const0_rtx for comparison.
1858 * config/avr/avr.h (avr_reg_order): Remove Declaration.
1860 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
1862 * config/avr/avr.c (reg_class_tab): Make local to
1863 avr_regno_reg_class. Return smallest register class available.
1865 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
1867 * config/avr/avr.c (STR_PREFIX_P): New Define.
1868 (avr_asm_declare_function_name): Use it.
1869 (avr_asm_named_section): Use it.
1870 (avr_section_type_flags): Use it.
1872 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
1874 * doc/md.texi (automata_option): Document collapse-ndfa.
1875 * genautomata.c (COLLAPSE_OPTION): New macro.
1876 (collapse_flag): New static variable.
1877 (struct description): New member normal_decls_num.
1878 (struct automaton): New members advance_ainsn and collapse_ainsn.
1879 (gen_automata_option): Check for COLLAPSE_OPTION.
1880 (collapse_ndfa_insn_decl): New static variable.
1881 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
1882 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
1883 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
1884 necessary. Use normal_decls_num rather than decls_num, remove
1885 test for special decls.
1886 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
1887 (make_automaton); Likewise. Use the new advance_cycle_insn member
1888 of struct automaton.
1889 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
1891 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
1892 transition. Create the necessary transitions for it.
1893 (create_ainsns): Return void. Take an automaton_t argument, and
1894 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
1896 (COLLAPSE_NDFA_VALUE_NAME): New macro.
1897 (output_tables): Output code to define it.
1898 (output_internal_insn_code_evaluation): Output code to accept
1899 const0_rtx as collapse-ndfa transition.
1900 (output_default_latencies, output_print_reservation_func,
1901 output_print_description): Reorganize loops to use normal_decls_num
1902 as loop bound; remove special case for advance_cycle_insn_decl.
1903 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
1904 (check_automata_insn_issues): Check for collapse_ainsn.
1905 (expand_automate): Allocate sufficient space. Initialize
1908 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
1910 * config/avr/avr.md: Fix indentation from r177991.
1912 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
1914 * regrename.c (struct du_head): Remove member terminated.
1915 (create_new_chain): Don't initialize it.
1916 (scan_rtx_reg): Don't set or test it, test the open_chains_set
1918 (tick, this_tick): New global variables, moved out of
1920 (current_id, open_chains, closed_chains, open_chains_set,
1921 live_in_chains, live_hard_regs): Reorder declarations.
1922 (dump_def_use_chain): Move function earlier in the file.
1923 (rename_chains): New static function, broken out of
1925 (regrename_optimize): Use it. Remove #if 0'ed code.
1927 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1929 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
1931 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
1934 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
1936 2011-08-24 Richard Guenther <rguenther@suse.de>
1938 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
1939 ref in the basic-block case. Move stripping array-refs
1940 to the place we create an access-function for it. Remove
1941 bogus stripping down a MEM_REF to its base.
1943 2011-08-24 Richard Guenther <rguenther@suse.de>
1945 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
1946 with -fno-strict-overflow.
1948 2011-08-24 Richard Guenther <rguenther@suse.de>
1950 * tree-vectorizer.c (vect_print_dump_info): Avoid the
1951 file and location clutter when dumping to dump files.
1953 2011-08-24 Simon Baldwin <simonb@google.com>
1955 * gengtype-state.c (write_state): Remove timestamped header line.
1957 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1959 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
1960 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
1961 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
1962 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
1963 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
1964 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
1965 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
1967 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
1969 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1971 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
1973 2011-08-24 Richard Guenther <rguenther@suse.de>
1975 PR tree-optimization/50067
1976 * tree-data-ref.c (dr_analyze_indices): Do not add an access
1977 function for a MEM_REF base that has no evolution in the loop
1978 nest or that is not analyzable.
1980 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
1982 * ira.c (ira_init_register_move_cost): Check small subclasses
1983 through ira_reg_class_max_nregs and ira_available_class_regs.
1985 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
1987 * config/i386/constraints.md (Yp): New register constraint.
1988 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
1989 Yp register constraint.
1990 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
1991 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
1992 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
1994 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
1996 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
1998 2011-08-23 Mark Heffernan <meheff@google.com>
2001 * common.opt (Wfree-nonheap-object): New option.
2002 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
2003 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
2005 (expand_builtin): Make warning conditional.
2007 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
2009 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
2010 (length_immediate): Handle imulx, ishiftx and rotatex.
2013 (enabled): Handle bmi2.
2014 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
2015 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
2016 (*bmi2_umulditi3_1): New insn pattern.
2017 (*bmi2_umulsidi3_1): Ditto.
2018 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
2019 (*bmi2_ashl<mode>3_1): New insn pattern.
2020 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
2021 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
2022 (*bmi2_ashlsi3_1_zext): New insn pattern.
2023 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
2024 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
2025 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
2026 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
2027 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
2029 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
2030 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
2031 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
2033 (*bmi2_rorx<mode>3_1): New insn pattern.
2034 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
2035 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
2036 (*rotatert<mode>3_1 splitter): Ditto.
2037 (*bmi2_rorxsi3_1_zext): New insn pattern.
2038 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
2039 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
2040 (*rotatertsi3_1_zext splitter): Ditto.
2042 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
2044 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
2045 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
2046 (ix86_handle_option): Handle OPT_mbmi2 case.
2047 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
2048 (x86_64-*-*): Likewise.
2049 * config/i386/bmi2intrin.h: New file.
2050 * config/i386/cpuid.h (bit_BMI2): New.
2051 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2053 * config/i386/i386-c.c (ix86_target_macros_internal):
2054 Conditionally define __BMI2__.
2055 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
2057 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
2058 (print_reg): New code.
2059 (ix86_print_operand): Likewise.
2060 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
2061 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
2062 IX86_BUILTIN_PEXT64.
2063 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
2064 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
2065 IX86_BUILTIN_PEXT64.
2066 * config/i386/i386.h (TARGET_BMI2): New.
2067 * config/i386/i386.md (UNSPEC_PDEP): New.
2068 (UNSPEC_PEXT): Likewise.
2069 (*bmi2_bzhi_<mode>3): Likewise.
2070 (*bmi2_pdep_<mode>3): Likewise.
2071 (*bmi2_pext_<mode>3): Likewise.
2072 * config/i386/i386.opt (mbmi2): New.
2073 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
2075 * doc/extend.texi: Document BMI2 built-in functions.
2076 * doc/invoke.texi: Document -mbmi2.
2078 2011-08-23 Jakub Jelinek <jakub@redhat.com>
2081 * simplify-rtx.c (simplify_const_unary_operation): If
2082 op is CONST_INT, don't look at op_mode, but use instead mode.
2083 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
2084 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
2085 operation and TRUNCATE/ZERO_EXTEND if needed.
2086 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
2087 Document that operand mode must be same as operation mode,
2089 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
2090 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
2091 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
2092 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
2093 use the mode of operand for the operation and add truncate
2094 or zero_extend around if needed.
2095 * config/c6x/c6x.md (ctzdi2): Likewise.
2096 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
2098 2011-08-12 Michael Matz <matz@suse.de>
2100 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
2101 (gimple_expand_cfg): Merge alignment info for coalesced pointer
2104 2011-08-23 Richard Guenther <rguenther@suse.de>
2106 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
2107 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
2108 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
2110 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
2111 (mem_refs_may_alias_p): Adjust.
2112 * tree-data-ref.h (dr_may_alias_p): Adjust.
2113 * tree-data-ref.c: Include tree-affine.h.
2114 (dr_analyze_indices): Do nothing for the non-loop case.
2115 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
2116 more cases in the non-loop case.
2117 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
2118 calls to dr_may_alias_p.
2119 (write_alias_graph_to_ascii_ecc): Likewise.
2120 (write_alias_graph_to_ascii_dot): Likewise.
2121 (build_alias_set_optimal_p): Likewise.
2123 2011-08-23 Richard Guenther <rguenther@suse.de>
2125 PR tree-optimization/50162
2126 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
2128 2011-08-23 Richard Guenther <rguenther@suse.de>
2130 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
2131 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
2132 (create_data_ref): Also dump access functions for the created data-ref.
2134 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
2135 Kirill Yukhin <kirill.yukhin@intel.com>
2138 * config/i386/sse.md (VI_AVX2): New.
2139 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
2140 (*<plusminus_insn><mode>3): Ditto.
2141 (<sse2_avx2>_andnot<mode>3): Ditto.
2142 (*andnot<mode>3): Fix order of cond operands.
2143 Add asserts for correct TARGET_xxx.
2144 (*<any_logic:code><mode>3): Ditto.
2146 2011-08-22 Anatoly Sokolov <aesok@post.ru>
2148 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
2149 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
2150 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
2151 regclass argument type to reg_class_t. Change 'max' and 'v' vars
2152 and return types to unsigned char. Use reg_class_contents instead
2154 (TARGET_CLASS_MAX_NREGS): Define.
2156 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
2158 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
2159 to make computed_jump_p return true.
2161 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2163 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
2164 (PICFLAG_FOR_TARGET): Substitute.
2165 * aclocal.m4: Regenerate.
2166 * configure: Regenerate.
2168 2011-08-22 Dodji Seketeli <dodji@redhat.com>
2170 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
2171 after reading in the pch.
2173 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
2175 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
2176 * configure: Regenerated.
2178 2011-08-22 Jakub Jelinek <jakub@redhat.com>
2180 PR tree-optimization/50133
2181 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
2182 from stmt instead of some statement around gsi.
2185 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
2186 innerdecl is a VAR_DECL.
2188 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
2190 * config/i386/avx2intrin.h: New file.
2191 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
2192 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
2193 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
2194 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
2195 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
2196 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
2197 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
2198 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
2199 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
2200 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
2201 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
2202 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
2203 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
2204 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
2205 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
2206 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
2207 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
2208 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
2209 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
2210 VOID_FTYPE_PV8SI_V8SI_V8SI,
2211 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
2212 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
2213 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
2214 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
2215 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
2216 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
2217 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
2218 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
2219 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
2220 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
2221 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
2222 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
2223 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
2224 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
2225 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
2226 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
2227 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
2228 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
2229 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
2230 V4DI_FTYPE_V4DI_INT_CONVERT,
2231 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
2232 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
2233 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
2234 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
2235 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
2236 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
2237 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
2238 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
2239 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
2240 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
2241 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
2242 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
2243 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
2244 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
2245 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
2246 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
2247 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
2248 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
2249 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
2250 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
2251 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
2252 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
2253 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
2254 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
2255 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
2256 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
2257 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
2258 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
2259 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
2260 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
2261 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
2262 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
2263 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
2264 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
2265 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
2266 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
2267 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
2268 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
2269 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
2270 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
2271 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
2272 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
2273 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
2274 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
2275 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
2276 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
2277 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
2278 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
2279 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
2280 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
2281 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
2282 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
2283 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
2284 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
2285 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
2286 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
2287 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
2288 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
2289 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
2290 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
2291 IX86_BUILTIN_VBROADCASTSS_PS256,
2292 IX86_BUILTIN_VBROADCASTSD_PD256,
2293 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
2294 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
2295 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
2296 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
2297 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
2298 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
2299 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
2300 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
2301 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
2302 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
2303 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
2304 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
2305 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
2306 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
2307 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
2308 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
2309 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
2310 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
2311 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
2312 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
2313 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
2314 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
2315 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
2316 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
2317 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
2318 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
2319 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
2320 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
2321 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
2322 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
2323 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
2324 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
2325 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
2326 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
2327 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
2328 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
2329 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
2330 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
2331 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
2332 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
2333 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
2334 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
2335 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
2336 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
2337 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
2338 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
2339 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
2340 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
2341 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
2342 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
2343 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
2344 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
2345 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
2346 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
2347 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
2348 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
2349 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
2350 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
2351 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
2352 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
2353 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
2354 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
2355 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
2356 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
2357 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
2358 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
2359 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
2360 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
2361 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
2362 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
2363 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
2364 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
2365 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
2366 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
2367 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
2368 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
2369 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
2370 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
2371 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
2372 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
2373 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
2374 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
2375 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
2376 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
2377 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
2378 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
2379 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
2380 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
2381 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
2382 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
2383 IX86_BUILTIN_VBROADCASTSD_PD256,
2384 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
2385 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
2386 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
2387 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
2388 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
2389 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
2390 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
2391 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
2392 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
2393 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
2394 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
2395 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
2396 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
2397 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
2398 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
2399 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
2400 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
2401 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
2402 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
2403 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
2404 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
2405 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
2406 IX86_BUILTIN_GATHERDIV8SI.
2407 (ix86_preferred_simd_mode): Support AVX2 modes.
2408 (ix86_expand_args_builtin): Support AVX2 builtins.
2409 (ix86_expand_special_args_builtin): Likewise.
2410 (ix86_expand_builtin): Likewise.
2411 * config/i386/i386.md (UNSPEC_VPERMSI): New.
2412 (UNSPEC_VPERMDF): Likewise.
2413 (UNSPEC_VPERMSF): Likewise.
2414 (UNSPEC_VPERMDI): Likewise.
2415 (UNSPEC_VPERMTI): Likewise.
2416 (UNSPEC_GATHER): Likewise.
2417 (ssemodesuffix): Extend.
2418 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
2420 * config/i386/predicates.md (const1248_operand): New.
2421 * config/i386/sse.md (VI1_AVX2): New mode iterator.
2422 (VI2_AVX2): Likewise.
2423 (VI4_AVX2): Likewise.
2424 (VI8_AVX2): Likewise.
2425 (VIMAX_AVX2): Likewise.
2426 (SSESCALARMODE): Likewise.
2427 (VI12_AVX2): Likewise.
2428 (VI24_AVX2): Likewise.
2429 (VI124_AVX2): Likewise.
2430 (VI248_AVX2): Likewise.
2431 (VI48_AVX2): Likewise.
2432 (VI4SD_AVX2): Likewise.
2433 (V48_AVX2): Likewise.
2434 (AVX256MODE2P): Likewise.
2435 (AVXMODE48P_DI): Likewise.
2436 (sse2_avx2): New mode attribute.
2437 (ssse3_avx2): Likewise.
2438 (sse4_1_avx2): Likewise.
2439 (avx_avx2): Likewise.
2440 (ssebytemode): Likewise.
2441 (AVXTOSSEMODE): Likewise.
2442 (AVXMODE48P_DI): Likewise.
2443 (gthrfirstp): Likewise.
2444 (gthrlastp): Likewise.
2445 (lshift): New code_iterator
2446 (lshift): New code attribute.
2448 (ssescalarmodesuffix): Update.
2449 (sseunpackmode): Likewise.
2450 (ssepackmode): Likewise.
2451 (avx2_vec_dupv4sf): New insn pattern.
2452 (avx2_vec_dupv8sf): Likewise.
2453 (avx2_interleave_highv4di): Likewise.
2454 (avx2_interleave_lowv4di): Likewise.
2455 (avx2_umulv4siv4di3): Likewise
2456 (*avx2_umulv4siv4di3): Likewise
2457 (avx2_pmaddwd): Likewise.
2458 (*avx2_pmaddwd): Likewise.
2459 (avx2_lshrqv4di3): Likewise.
2460 (avx2_lshlqv4di3): Likewise.
2461 (avx2_lshl<mode>3): Likewise.
2462 (avx2_<umaxmin:code><mode>3): Likewise.
2463 (*avx2_<umaxmin:code><mode>3): Likewise.
2464 (avx2_<smaxmin:code><mode>3): Likewise.
2465 (*avx2_<smaxmin:code><mode>3): Likewise.
2466 (avx2_eq<mode>3): Likewise.
2467 (*avx2_eq<mode>3): Likewise.
2468 (avx2_gt<mode>3): Likewise.
2469 (avx2_interleave_highv32qi): New.
2470 (avx2_interleave_lowv32qi): Likewise.
2471 (avx2_interleave_highv16hi): Likewise.
2472 (avx2_interleave_lowv16hi): Likewise.
2473 (avx2_interleave_highv8si): Likewise.
2474 (avx2_interleave_lowv8si): Likewise.
2475 (avx2_pshufd): Likewise.
2476 (avx2_pshufd_1): Likewise.
2477 (avx2_pshuflwv3): Likewise.
2478 (avx2_pshuflw_1): Likewise.
2479 (avx2_pshufhwv3): Likewise.
2480 (avx2_pshufhw_1): Likewise.
2481 (avx2_uavgv32qi3): Likewise.
2482 (*avx2_uavgv32qi3): Likewise.
2483 (avx2_uavgv16hi3): Likewise.
2484 (*avx2_uavgv16hi3): Likewise.
2485 (avx2_pmovmskb): Likewise.
2486 (avx2_phaddwv16hi3): Likewise.
2487 (avx2_phadddv8si3): Likewise.
2488 (avx2_phaddswv16hi3): Likewise.
2489 (avx2_phsubwv16hi3): Likewise.
2490 (avx2_phsubdv8si3): Likewise.
2491 (avx2_phsubswv16hi3): Likewise.
2492 (avx2_pmaddubsw256): Likewise.
2493 (avx2_umulhrswv16hi3): Likewise.
2494 (*avx2_umulhrswv16hi3): Likewise.
2495 (avx2_packusdw): Likewise.
2496 (avx2_pblendd<mode>): Likewise.
2497 (avx2_<code>v16qiv16hi2): Likewise.
2498 (avx2_<code>v8qiv8si2): Likewise.
2499 (avx2_<code>v8hiv8si2): Likewise.
2500 (avx2_<code>v4qiv4di2): Likewise.
2501 (avx2_<code>v4hiv4di2): Likewise.
2502 (avx2_<code>v4siv4di2): Likewise.
2503 (avx2_pbroadcast<mode>): Likewise.
2504 (avx2_permvarv8si): Likewise.
2505 (avx2_permv4df): Likewise.
2506 (avx2_permvarv8sf): Likewise.
2507 (avx2_permv4di): Likewise.
2508 (avx2_permv2ti): Likewise.
2509 (avx2_vec_dupv4df): Likewise.
2510 (avx2_vbroadcasti128_<mode>): Likewise.
2511 (avx2_vec_set_lo_v4di): Likewise.
2512 (avx2_vec_set_hi_v4di): Likewise.
2513 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
2514 (avx2_extracti128): Likewise.
2515 (avx2_inserti128): Likewise.
2516 (avx2_ashrvv8si): Likewise.
2517 (avx2_ashrvv4si): Likewise.
2518 (avx2_<lshift>vv8si): Likewise.
2519 (avx2_<lshift>v<mode>): Likewise.
2520 (avx2_<lshift>vv2di): Likewise.
2521 (avx2_gathersi<mode>): Likewise.
2522 (*avx2_gathersi<mode>): Likewise.
2523 (avx2_gatherdi<mode>): Likewise.
2524 (*avx2_gatherdi<mode>): Likewise.
2525 (avx2_gatherdi<mode>256): Likewise.
2526 (*avx2_gatherdi<mode>256): Likewise.
2527 (<plusminus_insn><mode>3): Use VI mode iterator.
2528 (*<plusminus_insn><mode>3): Use VI mode iterator.
2529 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
2530 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
2531 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
2532 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
2533 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
2534 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
2535 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
2536 Use VI2_AVX2 mode iterator.
2537 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
2538 Use VI2_AVX2 mode iterator.
2539 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
2540 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
2541 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
2542 Use VI4_AVX2 mode iterator.
2543 (ashr<mode>3): Use VI24_AVX2 mode iterator.
2544 (lshr<mode>3): Use VI248_AVX2 mode iterator.
2545 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
2546 Use VIMAX_AVX2 mode iterator.
2547 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
2548 Use VI mode iterator.
2549 (*andnot<mode>3): Update for AVX2.
2550 (*<any_logic:code><mode>3): Likewise.
2551 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
2552 Use VI1_AVX mode iterator.
2553 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
2554 Use VI2_AVX mode iterator.
2555 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
2556 Use VI1_AVX mode iterator.
2557 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
2558 Use VI8_AVX2 mode iterator.
2559 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
2560 Use VI1_AVX2 mode iterator.
2561 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
2562 Use VI124_AVX2 mode iterator.
2563 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
2564 Use SSESCALARMODE mode iterator.
2565 (abs<mode>2): Use VI124_AVX2 mode iterator.
2566 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
2567 Use VI8_AVX2 mode iterator.
2568 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
2569 Use VI1_AVX2 mode iterator.
2570 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
2571 Use VI1_AVX2 mode iterator.
2572 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
2573 Use VI2_AVX2 mode iterator.
2574 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
2575 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
2576 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
2577 avx_maskstore<ssemodesuffix><avxsizesuffix>.
2578 Use V48_AVX2 mode iterator.
2579 * doc/extend.texi: Document AVX2 built-in functions.
2580 * doc/invoke.texi: Document -mavx2.
2582 2011-08-22 Matthias Klose <doko@debian.org>
2585 2011-07-11 Arthur Loiret <aloiret@debian.org>
2586 Matthias Klose <doko@debian.org>
2587 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
2588 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
2590 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
2592 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
2595 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
2596 to #ifndef HONOR_REG_ALLOC_ORDER block.
2598 2011-08-21 Richard Henderson <rth@redhat.com>
2600 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
2601 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
2602 * resource.c (next_insn_no_annul): Likewise.
2603 (mark_set_resources): Likewise.
2604 * reorg.c (delete_from_delay_slot): Likewise.
2605 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
2606 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
2608 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
2610 * config/i386/i386.md (any_div): Remove.
2611 (sgnprefix): Update for removal.
2614 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
2616 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
2617 for ira_reg_class_max_nregs. Increase pressure by 1.
2618 (mark_pseudo_regno_subword_dead): Use allocno class
2619 for ira_reg_class_max_nregs.
2621 2011-08-20 Richard Henderson <rth@redhat.com>
2623 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
2624 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
2625 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
2626 config/c6x/ltf.c: Adjust include path for soft-fp.
2628 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
2631 * config.gcc (tm_file): Add initfini-array.h if
2632 .init_arrary/.fini_array are supported.
2634 * crtstuff.c: Don't generate .ctors nor .dtors sections if
2635 USE_INITFINI_ARRAY is defined.
2637 * output.h (default_elf_init_array_asm_out_constructor): New.
2638 (default_elf_fini_array_asm_out_destructor): Likewise.
2639 * varasm.c (elf_init_array_section): Likewise.
2640 (elf_fini_array_section): Likewise.
2641 (get_elf_initfini_array_priority_section): Likewise.
2642 (default_elf_init_array_asm_out_constructor): Likewise.
2643 (default_elf_fini_array_asm_out_destructor): Likewise.
2645 * config/initfini-array.h: New.
2647 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
2649 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
2650 OK for ST_REGS and FP_REGS before taking those classes into account.
2652 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
2654 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
2655 before checking for annulled branches.
2657 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
2659 * config/i386/i386.c (ix86_binary_operator_ok): Use
2660 satisfies_constraint_L.
2662 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
2663 Michael Matz <matz@suse.de>
2665 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
2666 trunc (a + copysign (nextafter (0.5, 0.0), a)).
2668 2011-08-20 Anatoly Sokolov <aesok@post.ru>
2670 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2671 * doc/tm.texi: Regenerate.
2672 * targhooks.c (default_preferred_output_reload_class): Don't use
2673 PREFERRED_OUTPUT_RELOAD_CLASS macro.
2674 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
2676 2011-08-20 Jakub Jelinek <jakub@redhat.com>
2678 PR tree-optimization/48739
2679 * tree-ssa.c: Include cfgloop.h.
2680 (execute_update_addresses_taken): When updating ssa, if in loop closed
2681 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
2682 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
2684 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
2686 PR rtl-optimization/49936
2687 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
2688 for calculation of max register move costs.
2690 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2692 * c-parser.c (c_parser_postfix_expression): Convert operands of
2693 __builtin_complex to their semantic types.
2695 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
2698 * explow.c (convert_memory_address_addr_space): Also permute the
2699 conversion and addition of constant for zero-extend.
2701 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2703 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
2704 * doc/extend.texi (__builtin_complex): Document.
2706 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2708 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
2710 (convert_mult_to_widen): Convert constant inputs to the right type.
2711 (convert_plusminus_to_widen): Don't automatically reject inputs that
2712 are not an SSA_NAME.
2713 Convert constant inputs to the right type.
2715 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2717 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
2718 to the correct type.
2720 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2722 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
2723 unsigned inputs of different modes.
2724 (convert_plusminus_to_widen): Likewise.
2726 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2728 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
2730 Use 'type' from caller, not inferred from 'rhs'.
2731 Don't reject non-conversion statements. Do return lhs in this case.
2732 (is_widening_mult_p): Add new argument 'type'.
2733 Use 'type' from caller, not inferred from 'stmt'.
2734 Pass type to is_widening_mult_rhs_p.
2735 (convert_mult_to_widen): Pass type to is_widening_mult_p.
2736 (convert_plusminus_to_widen): Likewise.
2738 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2740 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
2741 Ensure the the larger type is the first operand.
2743 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2745 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
2746 unsupported unsigned multiplies to signed.
2747 (convert_plusminus_to_widen): Likewise.
2749 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2751 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
2752 conversion statement separating multiply-and-accumulate.
2754 2011-08-19 Richard Guenther <rguenther@suse.de>
2756 PR tree-optimization/50067
2757 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
2758 offset only if we accounted for it.
2760 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2762 * config/arm/arm.md (maddhidi4): Remove '*' from name.
2763 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
2764 * optabs.c (find_widening_optab_handler_and_mode): New function.
2765 (expand_widen_pattern_expr): Use find_widening_optab_handler.
2766 (expand_binop_directly): Likewise.
2767 (expand_binop): Likewise.
2768 * optabs.h (find_widening_optab_handler): New macro define.
2769 (find_widening_optab_handler_and_mode): New prototype.
2770 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
2771 type precision rules.
2772 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
2773 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
2774 (is_widening_mult_rhs_p): Allow widening by more than one mode.
2775 Explicitly disallow mis-matched input types.
2776 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
2777 input types to fit the new handler.
2778 (convert_plusminus_to_widen): Likewise.
2780 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2782 * expr.c (expand_expr_real_2): Use widening_optab_handler.
2783 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
2784 (gen_insn): $N now means $a must be wider than $b, not consecutive.
2785 * optabs.c (widened_mode): New function.
2786 (expand_widen_pattern_expr): Use widening_optab_handler.
2787 (expand_binop_directly): Likewise.
2788 (expand_binop): Likewise.
2789 * optabs.h (widening_optab_handlers): New struct.
2790 (optab_d): New member, 'widening'.
2791 (widening_optab_handler): New function.
2792 (set_widening_optab_handler): New function.
2793 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
2794 widening_optab_handler.
2795 (convert_plusminus_to_widen): Likewise.
2797 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2799 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
2801 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
2802 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
2804 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2806 * opth-gen.awk: Do not declare target save/restore structures and
2807 functions if IN_RTS defined.
2809 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2812 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
2813 when stack was realigned in interrupt handler prologue.
2815 2011-08-18 Joseph Myers <joseph@codesourcery.com>
2817 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
2818 (quals_from_declspecs): Assert _Noreturn not present.
2819 (grokdeclarator): Handle _Noreturn.
2820 (build_null_declspecs): Initialize noreturn_p.
2821 (declspecs_add_scspec): Handle RID_NORETURN.
2822 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
2823 (c_parser_attributes): Handle RID_NORETURN.
2824 * c-tree.h (struct c_declspecs): Add noreturn_p.
2825 * ginclude/stdnoreturn.h: New.
2826 * Makefile.in (USER_H): Add stdnoreturn.h.
2828 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
2830 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
2831 (OPTION_MASK_ISA_AVX_UNSET): Update.
2832 (OPTION_MASK_ISA_AVX2_UNSET): New.
2833 (ix86_handle_option): Handle OPT_mavx2 case.
2834 * config/i386/cpuid.h (bit_AVX2): New.
2835 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2837 * config/i386/i386-c.c (ix86_target_macros_internal):
2838 Conditionally define __AVX2__.
2839 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
2840 Define "core-avx2" processor alias. Handle avx2 option.
2841 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
2842 * config/i386/i386.h (TARGET_AVX2): New.
2843 * config/i386/i386.opt (mavx2): New.
2844 * doc/invoke.texi: Document -mavx2.
2846 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
2848 PR rtl-optimization/49890
2849 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
2850 subclasses of class which is superset of a pressure class.
2852 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
2853 Igor Zamyatin <igor.zamyatin@intel.com>
2855 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
2856 with HOST_WIDE_INT for isa_flag.
2857 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
2860 * config/i386/i386.c (ix86_target_string): Replace int with
2861 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
2862 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
2863 (pta_flags): Removed.
2864 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
2865 (pta): Use HOST_WIDE_INT on flags.
2866 (builtin_isa): Use HOST_WIDE_INT on isa.
2867 (ix86_add_new_builtins): Likewise.
2868 (def_builtin): Use HOST_WIDE_INT on mask.
2869 (def_builtin_const): Likewise.
2870 (builtin_description): Likewise.
2872 * config/i386/i386.opt (ix86_isa_flags): Replace int with
2874 (ix86_isa_flags_explicit): Likewise.
2875 (x_ix86_isa_flags_explicit): Likewise.
2877 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
2879 PR rtl-optimization/50107
2880 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
2881 (ira_hard_reg_in_set_p): New.
2883 * ira-color.c (calculate_saved_nregs): New.
2884 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
2886 (allocno_reload_assign, fast_allocation): Use
2887 ira_hard_reg_set_intersection_p instead of
2888 ira_hard_reg_not_in_set_p.
2890 * ira.c (setup_reg_renumber): Use
2891 ira_hard_reg_set_intersection_p instead of
2892 ira_hard_reg_not_in_set_p.
2893 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
2894 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
2896 * ira-costs.c (ira_tune_allocno_costs): Use
2897 ira_hard_reg_set_intersection_p instead of
2898 ira_hard_reg_not_in_set_p.
2900 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
2901 Igor Zamyatin <igor.zamyatin@intel.com>
2903 * hwint.h (HOST_WIDE_INT_1): New.
2905 * opt-functions.awk (switch_bit_fields): Initialize the
2906 host_wide_int field.
2907 (host_wide_int_var_name): New.
2908 (var_type_struct): Check and return HOST_WIDE_INT.
2910 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
2912 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
2914 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
2915 check masks for HOST_WIDE_INT.
2917 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
2918 (option_enabled): Likewise.
2919 (get_option_state): Likewise.
2921 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
2924 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2925 Marc Glisse <marc.glisse@normalesup.org>
2927 PR libstdc++-v3/1773
2928 * target.def (decl_mangling_context): New C++ hook.
2929 * doc/tm.texi: Regenerate.
2930 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
2931 * config/sol2-protos.h: Group by source file.
2932 (solaris_cxx_decl_mangling_context): Declare.
2933 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
2934 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
2936 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
2937 Add sol2-stubs.o to extra_objs.
2939 2011-08-18 Jakub Jelinek <jakub@redhat.com>
2942 * stor-layout.c (update_alignment_for_field): Don't ICE on
2943 packed flexible array members if ms_bitfield_layout_p.
2946 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
2947 on the result before returning it.
2950 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
2951 is a debug stmt, use location of the first non-debug stmt after it.
2953 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
2955 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
2956 (arm_size_rtx_costs): Likewise.
2958 2011-08-18 Richard Guenther <rguenther@suse.de>
2960 * tree.h (tree_int_cst_msb): Remove.
2961 * tree.c (tree_int_cst_msb): Likewise.
2962 (tree_int_cst_sign_bit): Move from ...
2963 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
2965 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
2967 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
2968 * doc/tm.texi: Regenerate.
2969 * target.def (rtx_costs): Add an opno parameter.
2970 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
2971 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
2972 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
2973 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
2974 * cse.c (COST_IN): Add an opno parameter.
2975 (notreg_cost): Likewise. Update call to rtx_cost.
2976 (COST, fold_rtx): Update accordingly.
2977 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
2978 * expmed.c (emit_store_flag): Likewise.
2979 * optabs.c (avoid_expensive_constant): Add an opno parameter.
2980 Update call to rtx_cost.
2981 (expand_binop_directly, expand_binop): Likewise.
2982 (expand_twoval_binop, prepare_cmp_insn): Likewise.
2983 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
2984 (set_src_cost, get_full_set_src_cost): Update accordingly.
2985 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
2987 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
2988 (default_adress_cost): Update calls to rtx_cost.
2990 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
2991 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
2992 (arm_rtx_costs): Add an opno parameter.
2993 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
2994 adjust any recursive rtx-cost calls.
2995 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
2996 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2997 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
2998 * config/cris/cris.c (cris_rtx_costs): Likewise.
2999 * config/frv/frv.c (frv_rtx_costs): Likewise.
3000 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
3001 * config/i386/i386.c (ix86_rtx_costs): Likewise.
3002 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
3003 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
3004 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
3005 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
3006 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
3007 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
3008 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
3009 * config/mep/mep.c (mep_rtx_cost): Likewise.
3010 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
3011 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
3012 (mips_zero_extend_cost): Add an opno parameter.
3013 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
3014 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
3016 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
3018 * config/pa/pa.c (hppa_rtx_costs): Likewise.
3019 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
3020 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
3021 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
3022 (rs6000_debug_rtx_costs): Likewise.
3023 * config/s390/s390.c (s390_rtx_costs): Likewise.
3024 * config/score/score-protos.h (score_rtx_costs): Likewise.
3025 * config/score/score.c (score_rtx_costs): Likewise.
3026 * config/sh/sh.c (andcosts): Update call to rtx_cost.
3027 (sh_rtx_costs): Add an opno parameter.
3028 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
3029 * config/spu/spu.c (spu_rtx_costs): Likewise.
3030 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
3031 * config/v850/v850.c (v850_rtx_costs): Likewise.
3032 * config/vax/vax.c (vax_rtx_costs): Likewise.
3033 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
3035 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
3037 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
3038 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
3040 * calls.c (precompute_register_parameters): Likewise.
3041 * combine.c (expand_compound_operation, make_extraction): Likewise.
3042 (force_to_mode, distribute_and_simplify_rtx): Likewise.
3043 * dse.c (find_shift_sequence): Likewise.
3044 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
3045 * expr.c (compress_float_constant): Likewise.
3046 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
3047 * gcse.c (want_to_gcse_p): Likewise.
3048 * ifcvt.c (noce_try_sign_mask): Likewise.
3049 * loop-doloop.c (doloop_optimize): Likewise.
3050 * loop-invariant.c (create_new_invariant): Likewise.
3051 * optabs.c (avoid_expensive_constant): Likewise.
3052 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
3053 (try_replace_in_use, reload_cse_move2add): Likewise.
3054 * reload1.c (calculate_elim_costs_all_insns): Likewise.
3055 (note_reg_elim_costly): Likewise.
3056 * rtlanal.c (insn_rtx_cost): Likewise.
3057 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3058 * stmt.c (lshift_cheap_p): Likewise.
3059 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
3060 * config/avr/avr.c (final_prescan_insn): Likewise.
3061 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
3062 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
3064 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
3066 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
3067 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
3068 * cfgloopanal.c (seq_cost): Likewise.
3069 * loop-invariant.c (create_new_invariant): Likewise.
3070 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
3071 (reload_cse_move2add): Use get_full_set_rtx_cost.
3073 2011-08-18 Richard Guenther <rguenther@suse.de>
3075 * expr.c (get_inner_reference): Fix typo in last change.
3077 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
3078 Joseph Myers <joseph@codesourcery.com>
3080 PR tree-optimization/49963
3081 * hwint.c (absu_hwi): Define.
3082 * hwint.h (absu_hwi): Declare.
3083 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
3085 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3086 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
3088 2011-08-18 Richard Guenther <rguenther@suse.de>
3090 * expr.c (get_inner_reference): Sign-extend the constant
3091 twos-complement offset before doing arbitrary precision
3093 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
3094 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
3095 to get_constraint_for_ptr_offset.
3097 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
3100 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
3102 2011-08-17 Richard Guenther <rguenther@suse.de>
3104 * tree.h (convert_to_ptrofftype_loc): New function.
3105 (convert_to_ptrofftype): Define.
3106 * builtins.c (expand_builtin_bzero): Use size_type_node.
3107 (fold_builtin_bzero): Likewise.
3108 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
3109 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
3110 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
3111 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
3112 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
3113 * fold-const.c (build_range_check): Negate using the original type.
3114 (fold_unary_loc): Use fold_build_pointer_plus_loc.
3115 * gimple-fold.c (gimple_adjust_this_by_delta): Use
3116 convert_to_ptrofftype.
3117 * gimplify.c (gimplify_self_mod_expr): Likewise.
3118 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
3119 (graphite_create_new_loop_guard): Likewise.
3120 * graphite-sese-to-poly.c (my_long_long): Remove.
3121 (scop_ivs_can_be_represented): Adjust.
3122 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
3123 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
3124 * tree-loop-distribution.c (build_size_arg_loc): Use
3126 (generate_memset_zero): Simplify.
3127 * tree-mudflap.c: Use fold_convert, not convert.
3128 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
3130 (determine_offset): Likewise for DR_STEP.
3131 (valid_initializer_p): Likewise.
3132 * tree-profile.c (prepare_instrumented_value): Convert the pointer
3133 to an integer type of same size.
3134 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
3135 to sizetype without need.
3136 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
3137 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
3138 * tree-ssa-loop-manip.c (create_iv): Likewise.
3139 (determine_exit_conditions): Adjust comment.
3140 * tree-ssa-pre.c (create_expression_by_pieces): Use
3141 convert_to_ptrofftype.
3142 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
3143 * varasm.c (array_size_for_constructor): Compute using double_ints.
3145 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3147 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
3148 when generating an integer result where possible. Short-cut
3149 comparison against 0 also for QImode.
3151 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3153 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
3154 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
3156 * config/spu/spu.c (spu_legitimize_reload_address): New function.
3157 (spu_legitimate_address_p): Do not check displacement if the base
3158 is an eliminable stack register.
3160 2011-08-16 Anatoly Sokolov <aesok@post.ru>
3162 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
3163 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
3164 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
3165 m32c_preferred_output_reload_class): Remove.
3166 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
3167 Change rclass argument and return types to reg_class_t. Use
3168 reg_class_subset_p instead of class_sizes.
3169 (m32c_preferred_output_reload_class): Make static. Change rclass
3170 argument and return types to reg_class_t.
3171 (TARGET_PREFERRED_RELOAD_CLASS,
3172 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3174 2011-08-16 Kai Tietz <ktietz@redhat.com>
3176 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
3178 2011-08-16 Richard GUenther <rguenther@suse.de>
3180 PR tree-optimization/50082
3181 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
3182 warnings here, instead of ...
3183 (ssa_forward_propagate_and_combine): ... here.
3184 (forward_propagate_into_comparison_1): Adjust.
3185 (forward_propagate_into_comparison): Likewise.
3186 (forward_propagate_into_gimple_cond): Likewise.
3187 (forward_propagate_into_cond): Likewise.
3189 2011-08-16 Andreas Schwab <schwab@redhat.com>
3191 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
3192 instead of ggc_alloc_zone_vec_rtvec_def.
3194 2011-08-16 Richard Guenther <rguenther@suse.de>
3196 * tree.h (ptrofftype_p): New helper function.
3197 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
3198 offset verification.
3199 (verify_gimple_assign_binary): Likewise.
3200 * tree.c (build2_stat): Likewise.
3201 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
3202 (reset_evolution_in_loop): Likewise.
3203 * tree-chrec.h (build_polynomial_chrec): Likewise.
3205 2011-08-16 Liang Wang <lwang1@marvell.com>
3207 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
3208 ggc_alloc_zone_vec_rtvec_def.
3210 2011-08-16 Richard Guenther <rguenther@suse.de>
3212 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
3213 helper factored out from ...
3214 (extract_range_from_binary_expr_1): ... here. Re-structure
3215 to not glob handling too different tree codes.
3217 2011-08-15 Richard Henderson <rth@redhat.com>
3220 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
3221 setting out to include allocate_stack named pattern as well.
3222 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
3223 * stmt.c (expand_stack_restore): Likewise.
3225 2011-08-15 Richard Guenther <rguenther@suse.de>
3228 * fold-const.c (maybe_canonicalize_comparison_1): Properly
3229 convert the modified operand to the other operand type.
3230 (fold_comparison): Call maybe_canonicalize_comparison_1 with
3231 useless conversions stripped from comparison operands.
3233 2011-08-15 Richard Guenther <rguenther@suse.de>
3235 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
3236 (extract_range_from_unary_expr_1): Restructure.
3238 2011-08-15 Richard Guenther <rguenther@suse.de>
3240 PR tree-optimization/50058
3241 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
3244 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3247 * config/arm/arm.c (output_move_double): Add 2 parameters
3248 to count the number of insns emitted and whether to emit or not.
3249 Use the flag to decide when to emit and count number of instructions
3250 that will be emitted.
3251 Handle case where output_move_double might be called for calculating
3252 lengths with an invalid constant.
3253 (arm_count_output_move_double_insns): Define.
3254 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
3255 (output_move_double): Adjust prototype.
3256 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
3258 ("*movdi_vfp_cortexa8"): Likewise and add attribute
3260 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
3261 ("*movdf_soft_insn"): Likewise.
3262 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
3263 ("*cirrus_thumb2_movdi"): Likewise.
3264 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
3265 ("*cirrus_movdf_hard_insn"): Likewise.
3266 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
3267 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
3268 ("mov<mode>_internal VMMX"): Likewise.
3269 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
3271 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
3273 * config/i386/i386.c (ix86_expand_round_sse4): New function.
3274 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
3275 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
3278 (rint<mode>2): Simplify TARGET_ROUND check.
3279 (floor<mode>2): Ditto.
3280 (ceil<mode>2): Ditto.
3281 (btrunc<mode>2): Ditto.
3283 2011-08-14 Anatoly Sokolov <aesok@post.ru>
3285 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
3286 as mmix_preferred_output_reload_class.
3288 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
3291 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
3292 (branch_unspec): New insn.
3293 (branch): Beauty farm.
3294 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
3296 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
3297 New static functions.
3298 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
3299 Use CONST_INT_P. Beauty.
3301 2011-08-12 Richard Henderson <rth@redhat.com>
3304 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
3305 * sched-deps.c (init_deps): Clear it.
3306 (deps_analyze_insn): Consume it.
3307 (sched_analyze_insn): Fill it.
3309 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3312 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
3313 for tbh instructions.
3315 2011-08-12 Diego Novillo <dnovillo@google.com>
3317 * data-streamer.h (streamer_write_zero): Rename from output_zero.
3318 (streamer_write_uhwi): Rename from lto_output_uleb128.
3319 (streamer_write_hwi): Rename from output_sleb128.
3320 (streamer_write_string): Rename from lto_output_string.
3321 (streamer_string_index): Rename from lto_string_index.
3322 (streamer_write_string_with_length): Rename from
3323 lto_output_string_with_length.
3324 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
3325 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
3326 (streamer_read_string): Rename from lto_input_string.
3327 (streamer_read_indexed_string): Rename from input_string_internal.
3328 (streamer_read_uhwi): Rename from lto_input_uleb128.
3329 (streamer_read_hwi): Rename from lto_input_sleb128.
3330 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
3331 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
3332 (streamer_write_enum): Rename from lto_output_enum.
3333 (streamer_read_enum): Rename from lto_input_enum.
3334 (streamer_write_record_start): Rename from output_record_start.
3335 (streamer_read_record_start): Rename from input_record_start.
3336 (streamer_write_bitpack): Rename from lto_output_bitpack.
3337 (streamer_read_bitpack): Rename from lto_input_bitpack.
3338 (streamer_write_char_stream): Rename from lto_output_1_stream.
3339 (streamer_read_uchar): Rename from lto_input_1_unsigned.
3340 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
3341 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
3342 (streamer_read_string_cst): Rename from input_string_cst.
3343 (streamer_read_chain): Rename from lto_input_chain.
3344 (streamer_alloc_tree): Rename from lto_materialize_tree.
3345 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
3346 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
3347 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
3348 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
3349 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
3350 (streamer_write_chain): Rename from lto_output_chain.
3351 (streamer_write_tree_header): Rename from lto_output_tree_header.
3352 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
3353 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
3354 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
3355 (streamer_write_builtin): Rename from lto_output_builtin_tree.
3356 (streamer_check_handled_ts_structures): Rename from
3357 check_handled_ts_structures.
3358 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
3359 (streamer_tree_cache_insert_at): Rename from
3360 lto_streamer_cache_insert_at.
3361 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
3362 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
3363 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
3364 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
3365 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
3366 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
3367 (write_identifier): Rename from output_identifier.
3368 (write_ts_common_tree_pointers): Rename from
3369 lto_output_ts_common_tree_pointers.
3370 (write_ts_vector_tree_pointers): Rename from
3371 lto_output_ts_vector_tree_pointers.
3372 (write_ts_complex_tree_pointers): Rename from
3373 lto_output_ts_complex_tree_pointers.
3374 (write_ts_decl_minimal_tree_pointers): Rename from
3375 lto_output_ts_decl_minimal_tree_pointers.
3376 (write_ts_decl_common_tree_pointers): Rename from
3377 lto_output_ts_decl_common_tree_pointers.
3378 (write_ts_decl_non_common_tree_pointers): Rename from
3379 lto_output_ts_decl_non_common_tree_pointers.
3380 (write_ts_decl_with_vis_tree_pointers): Rename from
3381 lto_output_ts_decl_with_vis_tree_pointers.
3382 (write_ts_field_decl_tree_pointers): Rename from
3383 lto_output_ts_field_decl_tree_pointers.
3384 (write_ts_function_decl_tree_pointers): Rename from
3385 lto_output_ts_function_decl_tree_pointers.
3386 (write_ts_type_common_tree_pointers): Rename from
3387 lto_output_ts_type_common_tree_pointers.
3388 (write_ts_type_non_common_tree_pointers): Rename from
3389 lto_output_ts_type_non_common_tree_pointers.
3390 (write_ts_list_tree_pointers): Rename from
3391 lto_output_ts_list_tree_pointers.
3392 (write_ts_vec_tree_pointers): Rename from
3393 lto_output_ts_vec_tree_pointers.
3394 (write_ts_exp_tree_pointers): Rename from
3395 lto_output_ts_exp_tree_pointers.
3396 (write_ts_block_tree_pointers): Rename from
3397 lto_output_ts_block_tree_pointers.
3398 (write_ts_binfo_tree_pointers): Rename from
3399 lto_output_ts_binfo_tree_pointers.
3400 (write_ts_constructor_tree_pointers): Rename from
3401 lto_output_ts_constructor_tree_pointers.
3402 (write_ts_target_option): Rename from lto_output_ts_target_option.
3403 (write_ts_translation_unit_decl_tree_pointers): Rename from
3404 lto_output_ts_translation_unit_decl_tree_pointers.
3405 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
3406 Rename from lto_streamer_cache_add_to_node_array.
3407 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
3408 (record_common_node): Rename from lto_record_common_node.
3410 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
3412 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
3414 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
3416 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
3417 (ipa-reference.o): Likewise.
3418 * lto-section-out.c: Include data-streamer.h.
3419 * ipa-reference.c: Include data-streamer.h.
3421 2011-08-12 Nick Clifton <nickc@redhat.com>
3423 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
3424 * doc/md.texi (cmpstrn): Note that the comparison stops if both
3425 fetched bytes are zero.
3427 (cmpmem): Note that the comparison does not stop if both of the
3428 fetched bytes are zero.
3430 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
3432 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
3433 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
3434 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
3435 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
3436 to integer_type_node.
3437 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
3438 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
3439 * builtins.c (expand_builtin_in): Ditto.
3440 (mathfn_built_in_1): Ditto.
3441 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
3443 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
3445 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
3446 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
3447 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
3449 2011-08-12 Richard Guenther <rguenther@suse.de>
3451 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
3453 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
3455 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
3457 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
3459 * config/arm/arm.c (get_label_padding): New function.
3460 (create_fix_barrier, arm_reorg): Use it.
3462 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
3465 * config/i386/i386.md (*lea_5_zext): New.
3466 (*lea_6_zext): Ditto.
3467 * config/i386/predicates.md (const_32bit_mask): New predicate.
3468 (lea_address_operand): Reject AND.
3469 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
3470 const_32bit_mask immediate.
3471 (ix86_print_operand_address): Handle AND.
3472 (memory_address_length): Ditto.
3474 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
3475 Brian Hackett <bhackett1024@gmail.com>
3477 * plugin.def: Add event for finish_decl.
3478 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
3479 * c-decl.c (finish_decl): Invoke callbacks on above event.
3480 * doc/plugins.texi: Document above event.
3482 2011-08-11 Richard Guenther <rguenther@suse.de>
3484 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
3485 lookups, make looking through aggregate copies stronger.
3487 2011-08-11 Richard Henderson <rth@redhat.com>
3490 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
3492 2011-08-11 Richard Guenther <rguenther@suse.de>
3494 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
3495 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
3496 (vrp_visit_stmt): Likewise.
3498 2011-08-11 Richard Guenther <rguenther@suse.de>
3501 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
3502 load of the other piece with TREE_NO_WARNING.
3503 * tree-flow.h (warn_uninit): Adjust prototype.
3504 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
3505 the base variable and the expression that is used separately.
3506 Properly query all TREE_NO_WARNING flags.
3507 (struct walk_data): Remove.
3508 (warn_uninitialized_var): Likewise.
3509 (warn_uninitialized_vars): Do not walk gimple pieces but simply
3510 look at all SSA uses of the statement. Handle unused memory
3512 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
3514 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
3516 * config/rx/rx.md (movsicc): Allow register to register transfers.
3517 (*movsicc): Likewise.
3518 (*stcc): Restrict this pattern to EQ and NE compares.
3519 (*stcc_reg): New pattern. Works for any comparison but only for
3522 2011-08-11 Diego Novillo <dnovillo@google.com>
3524 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
3525 Call stream_write_tree instead of output_record_start.
3526 (lto_output_ts_binfo_tree_pointers): Likewise.
3528 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
3529 Convert it to a macro.
3530 (stream_read_tree): Likewise.
3532 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
3533 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
3535 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
3536 and tree_read_bitfields.
3537 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
3538 (lto_write_tree): Call it.
3539 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
3540 * streamer-hooks.h (struct streamer_hooks): Remove fields
3541 name, is_streamable and alloc_tree. Update all users.
3542 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
3543 (lto_materialize_tree): ... here.
3544 Handle CALL_EXPR codes.
3545 Remove call to lto_streamer_cache_append.
3546 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
3547 * tree-streamer.h (tree_read_bitfields): Declare.
3549 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
3550 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
3551 * tree-streamer.h (stream_read_tree): New. Replace all calls
3552 to lto_input_tree with it.
3553 (stream_write_tree): New. Replace all calls to lto_output_tree,
3554 lto_output_tree_ref and lto_output_tree_or_ref with it.
3555 * lto-streamer-in.c (lto_read_tree): Inline code from
3556 lto_streamer_read_tree.
3557 (lto_input_tree): Move from tree-streamer-in.c.
3558 * lto-streamer-out.c (lto_output_tree_ref): Make static.
3559 Remove handling of NULL values for EXPR.
3560 Do not handle EXPRs that are not indexable.
3561 (lto_write_tree): Move from tree-streamer-out.c.
3562 Inline lto_streamer_write_tree.
3563 (lto_output_tree): Move from tree-streamer-out.c.
3564 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
3565 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
3566 (lto_preload_common_nodes): Likewise.
3567 Remove assertions and adjustments for nodes
3568 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
3569 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
3570 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
3571 * lto-streamer.h (lto_input_tree): Declare.
3572 (lto_output_tree_ref): Remove.
3573 * streamer-hooks.h (struct streamer_hooks): Remove fields
3574 preload_common_nodes, indexable_with_decls_p,
3575 pack_value_fields, unpack_value_fields and output_tree_header.
3577 * tree-streamer-in.c (lto_materialize_tree): Make extern.
3578 (lto_input_tree_pointers): Likewise.
3579 (lto_read_tree): Move to lto-streamer-in.c.
3580 (lto_input_integer_cst): Make extern.
3581 (lto_get_pickled_tree): Likewise.
3582 (lto_get_builtin_tree): Likewise.
3583 (lto_input_tree): Move to lto-streamer-in.c.
3584 * tree-streamer-out.c (pack_value_fields): Make extern.
3585 (lto_output_tree_or_ref): Remove. Replace all callers with
3586 calls to stream_write_tree.
3587 (lto_output_builtin_tree): Make extern.
3588 (lto_streamer_write_tree): Inline into lto_write_tree.
3589 (lto_output_tree_pointers): Make extern.
3590 (lto_output_tree_header): Likewise.
3591 (lto_output_integer_cst): Likewise.
3592 (lto_write_tree): Move to lto-streamer-out.c.
3593 (lto_output_tree): Likewise.
3594 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
3595 (preload_common_nodes): Likewise.
3596 (lto_streamer_cache_create): Call it.
3597 * tree-streamer.h: Include streamer-hooks.h.
3598 (stream_write_tree): New.
3599 (stream_read_tree): New.
3600 (lto_input_tree): Remove.
3601 (lto_materialize_tree): Declare.
3602 (lto_input_tree_pointers): Declare.
3603 (lto_get_pickled_tree): Declare.
3604 (lto_get_builtin_tree): Declare.
3605 (lto_input_integer_cst): Declare.
3606 (lto_output_tree_header): Declare.
3607 (pack_value_fields): Declare.
3608 (lto_output_tree_pointers): Declare.
3609 (lto_output_integer_cst): Declare.
3610 (lto_output_builtin_tree): Declare.
3612 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3614 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
3615 only if producer writes to the register given by regno.
3617 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3618 Alexander Monakov <amonakov@ispras.ru>
3620 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
3621 (sched_get_condition_with_rev_uncached): ... this. Factor out
3622 condition caching logic into ...
3623 (sched_get_condition_with_rev): ... this. Reimplement. Do not
3624 attempt to use cache for instructions with zero luid.
3625 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
3626 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
3628 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3630 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
3631 get_seqno_for_a_jump. Update the caller.
3632 (get_seqno_by_succs): New. Use it ...
3633 (get_seqno_for_a_jump): ... here to find a seqno if looking at
3634 predecessors was not sufficient.
3635 (get_seqno_by_preds): Include head in iteration range, exclude insn.
3637 2011-08-11 Dmitry Melnik <dm@ispras.ru>
3639 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
3641 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3643 * sel-sched-ir.h (register_unavailable_p): Declare.
3644 * sel-sched-ir.c (register_unavailable_p): New. Use it...
3645 (set_unavailable_target_for_expr): ... here to properly test
3646 availability of a register.
3647 (speculate_expr): Ditto.
3648 * sel-sched.c (substitute_reg_in_expr): Ditto.
3649 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
3651 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3653 * sel-sched.c (verify_target_availability): Fix usage of
3656 2011-08-11 Dmitry Melnik <dm@ispras.ru>
3658 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
3659 recognized by cannot_copy_insn_p hook and volatile instructions.
3661 2011-08-11 Dmitry Melnik <dm@ispras.ru>
3663 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
3665 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
3667 * doc/md.texi (define_bypass): Say that the instruction names can
3668 be filename-style globs.
3669 * Makefile.in (FNMATCH_H): Define.
3670 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
3671 * genattrtab.c: Include fnmatch.h.
3672 (bypass_list): Change field name from "insn" to "pattern".
3673 (gen_bypass_1): Update accordingly.
3674 (process_bypasses): Use fnmatch to check for matches between
3675 insn reservations and define_bypasses.
3676 * genautomata.c: Include fnmatch.h.
3677 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
3678 and out_pattern respectively.
3679 (gen_bypass, insert_bypass): Update accordingly.
3680 (for_each_matching_insn, process_bypass_2, process_bypass_1)
3681 (process_bypass): New functions.
3682 (process_decls): Use process_bypass. Update after field name changes.
3684 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
3687 * config/avr/avr.md (smulqi3_highpart): New insn.
3688 (umulqi3_highpart): New insn.
3689 (*subqi3.ashiftrt7): New insn.
3690 (smulhi3_highpart): New expander.
3691 (umulhi3_highpart): Nex expander.
3692 (*smulhi3_highpart_call): New insn.
3693 (*umulhi3_highpart_call): New insn.
3694 (extend_u): New code attribute.
3695 (extend_prefix): Rename code attribute to extend_su.
3696 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
3697 widening QI/HI multiply.
3699 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
3701 PR tree-optimization/50039
3702 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
3703 that DEF_STMT has a stmt_vec_info.
3705 2011-08-10 Richard Guenther <rguenther@suse.de>
3707 * tree.h (can_trust_pointer_alignment): Remove.
3708 * builtins.c (can_trust_pointer_alignment): Remove.
3710 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3712 * c-typeck.c (scalar_to_vector): New function. Try scalar to
3714 (stv_conv): New enum for scalar_to_vector return type.
3715 (build_binary_op): Adjust.
3716 * doc/extend.texi: Description of scalar to vector expansion.
3718 2011-08-10 Richard Guenther <rguenther@suse.de>
3720 * tree.h (get_pointer_alignment): Remove max-align argument.
3721 (get_object_alignment): Likewise.
3722 * builtins.c (get_object_alignment_1): Adjust.
3723 (get_object_alignment): Remove max-align argument.
3724 (get_pointer_alignment): Likewise.
3725 (expand_builtin_strlen): Adjust.
3726 (expand_builtin_memcpy): Likewise.
3727 (expand_builtin_mempcpy_args): Likewise.
3728 (expand_builtin_strncpy): Likewise.
3729 (expand_builtin_memset_args): Likewise.
3730 (expand_builtin_memcmp): Likewise.
3731 (expand_builtin_strcmp): Likewise.
3732 (expand_builtin_strncmp): Likewise.
3733 (get_builtin_sync_mem): Likewise.
3734 (fold_builtin_memset): Likewise.
3735 (fold_builtin_memory_op): Likewise.
3736 (expand_builtin_memory_chk): Likewise.
3737 * emit-rtl.c (get_mem_align_offset): Likewise.
3738 (set_mem_attributes_minus_bitpos): Likewise.
3739 * expr.c (expand_assignment): Likewise.
3740 (expand_expr_real_1): Likewise.
3741 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
3742 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
3743 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
3744 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
3745 * value-prof.c (gimple_stringops_transform): Likewise.
3747 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
3749 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
3750 * doc/tm.texi: Regenerate.
3752 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
3755 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
3756 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
3757 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
3758 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
3759 shift target is unused.
3761 2011-08-10 Richard Guenther <rguenther@suse.de>
3763 PR tree-optimization/49937
3764 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
3765 using get_object_alignment_1.
3767 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
3769 * config/i386/i386.c (ix86_emit_i387_round): New function.
3770 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
3771 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
3772 Use ix86_emit_i387_round to expand round function for i387 math.
3773 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
3774 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
3776 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3778 * config/sync.c: Move to ../libgcc.
3779 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
3780 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
3783 2011-08-09 Anatoly Sokolov <aesok@post.ru>
3785 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
3786 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
3787 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
3788 Change 'from' and 'to' arguments type to reg_class_t.
3789 (TARGET_REGISTER_MOVE_COST): Define.
3791 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
3795 PR rtl-optimization/49990
3796 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
3797 ignore classes which can not change mode.
3798 (find_costs_and_classes): Ditto.
3800 2011-08-09 Richard Guenther <rguenther@suse.de>
3802 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
3803 information for ranges with only negative values.
3804 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
3805 BIT_AND_EXPR handling to handle ranges with negative values.
3807 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
3809 * config/i386/i386.c: Remove traling spaces.
3810 * config/i386/sse.md: Likewise.
3811 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
3812 (*fma_fmsub_<mode>): Likewise.
3813 (*fma_fnmadd_<mode>): Likewise.
3814 (*fma_fnmsub_<mode>): Likewise.
3816 2011-08-09 Nick Clifton <nickc@redhat.com>
3818 * config/rx/rx.md: Disable extender peepholes at -O3.
3820 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
3823 * config/i386/i386.md (reload_noff_load): New.
3824 (reload_noff_store): Ditto.
3825 * config/i386/i386.c (ix86_secondary_reload): Use
3826 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
3827 double-word moves from/to non-offsetable addresses instead of
3828 generating XMM temporary.
3830 2011-08-09 Anatoly Sokolov <aesok@post.ru>
3832 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
3834 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
3836 PR tree-optimization/50014
3837 * tree-vect-loop.c (vectorizable_reduction): Get def type before
3838 calling vect_get_vec_def_for_stmt_copy ().
3840 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
3842 PR rtl-optimization/49990
3843 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
3844 ignore classes which can not change mode.
3845 (find_costs_and_classes): Ditto.
3847 2011-08-08 Richard Henderson <rth@redhat.com>
3850 * config/i386/i386.c (ix86_expand_prologue): Call
3851 for SEH target gen_prologue_use instead of gen_blockage
3854 2011-08-08 Martin Jambor <mjambor@suse.cz>
3857 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
3860 2011-08-08 Diego Novillo <dnovillo@google.com>
3862 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
3863 (DATA_STREAMER_H): New.
3864 (GIMPLE_STREAMER_H): New.
3865 (TREE_STREAMER_H): New.
3866 (STREAMER_HOOKS_H): New.
3867 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
3868 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
3869 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
3870 (data-streamer.o): New.
3871 (data-streamer-in.o): New.
3872 (data-streamer-out.o): New.
3873 (gimple-streamer-in.o): New.
3874 (gimple-streamer-out.o): New.
3875 (streamer-hooks.o): New.
3876 (tree-streamer.o): New.
3877 (tree-streamer-in.o): New.
3878 (tree-streamer-out.o): New.
3879 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
3880 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
3881 GIMPLE_STREAMER_H and TREE_STREAMER_H.
3882 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
3883 GIMPLE_STREAMER_H and TREE_STREAMER_H.
3884 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
3885 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
3886 (ipa-inline-analysis.o): Likewise.
3887 (ipa-pure-const.o): Likewise.
3888 * data-streamer-in.c: New.
3889 * data-streamer-out.c: New.
3890 * data-streamer.c: New.
3891 * data-streamer.h: New.
3892 * gimple-streamer-in.c: New.
3893 * gimple-streamer-out.c: New.
3894 * gimple-streamer.h: New.
3895 * ipa-inline-analysis.c: Include data-streamer.h.
3896 * ipa-prop.c: Include data-streamer.h.
3897 * ipa-pure-const.c: Include data-streamer.h.
3898 * lto-cgraph.c: Include data-streamer.h.
3899 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
3900 (lto_input_widest_uint_uleb128): Likewise.
3901 (lto_input_sleb128): Likewise.
3902 (bp_unpack_var_len_unsigned): Likewise.
3903 (bp_unpack_var_len_int): Likewise.
3904 * lto-section-out.c (lto_output_uleb128_stream): Move to
3905 data-streamer-out.c.
3906 (lto_output_widest_uint_uleb128_stream): Likewise.
3907 (lto_output_sleb128_stream): Likewise.
3908 (bp_pack_var_len_unsigned): Likewise.
3909 (bp_pack_var_len_int): Likewise.
3910 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
3911 (struct string_slot): Remove. Update all users.
3912 (lto_tag_check_set): Make extern.
3913 (lto_tag_check_range): Move to lto-streamer.h.
3914 (lto_tag_check): Likewise.
3915 (hash_string_slot_node): Remove. Update all users.
3916 (eq_string_slot_node): Remove. Update all users.
3917 (string_for_index): Move to data-streamer-in.c
3918 (input_string_internal): Likewise.
3919 (input_string_cst): Move to tree-streamer-in.c.
3920 (input_identifier): Likewise.
3921 (lto_input_string): Move to data-streamer-in.c
3922 (input_record_start): Move to data-streamer.h
3923 (canon_file_name): Use new definition of struct string_slot
3924 from data-streamer.h. Set S_SLOT.LEN.
3925 (lto_input_location): Make extern.
3926 (lto_input_chain): Move to tree-streamer-in.c.
3927 (lto_init_eh): Make extern.
3928 (input_phi): Move to gimple-streamer-in.c.
3929 (input_gimple_stmt): Likewise.
3930 (input_bb): Likewise.
3931 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
3932 (unpack_ts_real_cst_value_fields): Likewise.
3933 (unpack_ts_fixed_cst_value_fields): Likewise.
3934 (unpack_ts_decl_common_value_fields): Likewise.
3935 (unpack_ts_decl_wrtl_value_fields): Likewise.
3936 (unpack_ts_decl_with_vis_value_fields): Likewise.
3937 (unpack_ts_function_decl_value_fields): Likewise.
3938 (unpack_ts_type_common_value_fields): Likewise.
3939 (unpack_ts_block_value_fields): Likewise.
3940 (unpack_ts_translation_unit_decl_value_fields): Likewise.
3941 (unpack_value_fields): Likewise.
3942 (lto_materialize_tree): Likewise.
3943 (lto_input_ts_common_tree_pointers): Likewise.
3944 (lto_input_ts_vector_tree_pointers): Likewise.
3945 (lto_input_ts_complex_tree_pointers): Likewise.
3946 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
3947 (lto_input_ts_decl_common_tree_pointers): Likewise.
3948 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
3949 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
3950 (lto_input_ts_field_decl_tree_pointers): Likewise.
3951 (lto_input_ts_function_decl_tree_pointers): Likewise.
3952 (lto_input_ts_type_common_tree_pointers): Likewise.
3953 (lto_input_ts_type_non_common_tree_pointers): Likewise.
3954 (lto_input_ts_list_tree_pointers): Likewise.
3955 (lto_input_ts_vec_tree_pointers): Likewise.
3956 (lto_input_ts_exp_tree_pointers): Likewise.
3957 (lto_input_ts_block_tree_pointers): Likewise.
3958 (lto_input_ts_binfo_tree_pointers): Likewise.
3959 (lto_input_ts_constructor_tree_pointers): Likewise.
3960 (lto_input_ts_target_option): Likewise.
3961 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
3962 (lto_input_tree_pointers): Likewise.
3963 (lto_get_pickled_tree): Likewise.
3964 (lto_get_builtin_tree): Likewise.
3965 (lto_read_tree): Likewise.
3966 (lto_input_integer_cst): Likewise.
3967 (lto_input_tree): Likewise.
3968 * lto-streamer-out.c: Include data-streamer.h,
3969 gimple-streamer.h and streamer-hooks.h.
3970 (struct string_slot): Move to data-streamer.h.
3971 (hash_string_slot_node): Likewise.
3972 (eq_string_slot_node): Likewise.
3973 (lto_string_index): Move to data-streamer-out.c.
3974 (lto_output_string_with_length): Likewise.
3975 (lto_output_string): Likewise.
3976 (output_string_cst): Move to tree-streamer-out.c.
3977 (output_identifier): Likewise.
3978 (output_zero): Move to data-streamer-out.c
3979 (output_uleb128): Likewise.
3980 (output_sleb128): Likewise.
3981 (output_record_start): Move to data-streamer.h
3982 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
3983 (pack_ts_real_cst_value_fields): Likewise.
3984 (pack_ts_fixed_cst_value_fields): Likewise.
3985 (pack_ts_decl_common_value_fields): Likewise.
3986 (pack_ts_decl_wrtl_value_fields): Likewise.
3987 (pack_ts_decl_with_vis_value_fields): Likewise.
3988 (pack_ts_function_decl_value_fields): Likewise.
3989 (pack_ts_type_common_value_fields): Likewise.
3990 (pack_ts_block_value_fields): Likewise.
3991 (pack_ts_translation_unit_decl_value_fields): Likewise.
3992 (pack_value_fields): Likewise.
3993 (lto_output_chain): Likewise.
3994 (lto_output_ts_common_tree_pointers): Likewise.
3995 (lto_output_ts_vector_tree_pointers): Likewise.
3996 (lto_output_ts_complex_tree_pointers): Likewise.
3997 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
3998 (lto_output_ts_decl_common_tree_pointers): Likewise.
3999 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
4000 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
4001 (lto_output_ts_field_decl_tree_pointers): Likewise.
4002 (lto_output_ts_function_decl_tree_pointers): Likewise.
4003 (lto_output_ts_type_common_tree_pointers): Likewise.
4004 (lto_output_ts_type_non_common_tree_pointers): Likewise.
4005 (lto_output_ts_list_tree_pointers): Likewise.
4006 (lto_output_ts_vec_tree_pointers): Likewise.
4007 (lto_output_ts_exp_tree_pointers): Likewise.
4008 (lto_output_ts_block_tree_pointers): Likewise.
4009 (lto_output_ts_binfo_tree_pointers): Likewise.
4010 (lto_output_ts_constructor_tree_pointers): Likewise.
4011 (lto_output_ts_target_option): Likewise.
4012 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
4013 (lto_output_tree_pointers): Likewise.
4014 (lto_output_tree_header): Likewise.
4015 (lto_output_builtin_tree): Likewise.
4016 (lto_write_tree): Likewise.
4017 (lto_output_integer_cst): Likewise.
4018 (lto_output_tree): Likewise.
4019 (output_phi): Move to gimple-streamer-out.c.
4020 (output_gimple_stmt): Likewise.
4021 (output_bb): Likewise.
4022 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
4023 (streamer_hooks): Move to streamer-hooks.c.
4024 (check_handled_ts_structures): Move to tree-streamer.c
4025 (lto_streamer_cache_add_to_node_array): Likewise.
4026 (lto_streamer_cache_insert_1): Likewise.
4027 (lto_streamer_cache_insert): Likewise.
4028 (lto_streamer_cache_insert_at): Likewise.
4029 (lto_streamer_cache_append): Likewise.
4030 (lto_streamer_cache_lookup): Likewise.
4031 (lto_streamer_cache_get): Likewise.
4032 (lto_record_common_node): Likewise.
4033 (lto_preload_common_nodes): Likewise.
4034 (lto_streamer_cache_create): Likewise.
4035 (lto_streamer_cache_delete): Likewise.
4036 (streamer_hooks_init): Move to streamer-hooks.c.
4037 * lto-streamer.h: Include diagnostic.h
4038 (struct output_block, struct lto_input_block,
4039 struct data_in, struct bitpack_d): Remove forward declarations.
4040 (struct bitpack_d): Move to data-streamer.h.
4041 (struct lto_streamer_cache_d): Move to tree-streamer.h.
4042 (struct streamer_hooks): Move to streamer-hooks.h.
4043 (bp_pack_var_len_unsigned): Move to data-streamer.h.
4044 (bp_pack_var_len_int): Likewise.
4045 (bp_unpack_var_len_unsigned): Likewise.
4046 (bp_unpack_var_len_int): Likewise.
4047 (lto_input_location): Declare.
4048 (lto_tag_check_set): Declare.
4049 (lto_init_eh): Declare.
4050 (lto_output_tree_ref): Declare.
4051 (lto_output_location): Declare.
4052 (bitpack_create): Move to data-streamer.h.
4053 (bp_pack_value): Likewise.
4054 (lto_output_bitpack): Likewise.
4055 (lto_input_bitpack): Likewise.
4056 (bp_unpack_value): Likewise.
4057 (lto_output_1_stream): Likewise.
4058 (lto_input_1_unsigned): Likewise.
4059 (lto_output_int_in_range): Likewise.
4060 (lto_input_int_in_range): Likewise.
4061 (bp_pack_int_in_range): Likewise.
4062 (bp_unpack_int_in_range): Likewise.
4063 (lto_output_enum): Likewise.
4064 (lto_input_enum): Likewise.
4065 (bp_pack_enum): Likewise.
4066 (bp_unpack_enum): Likewise.
4067 * streamer-hooks.c: New.
4068 * streamer-hooks.h: New.
4069 * tree-streamer-in.c: New.
4070 * tree-streamer-out.c: New.
4071 * tree-streamer.c: New.
4072 * tree-streamer.h: New.
4074 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4076 * gthr-posix95.h: Remove.
4077 * gthr.h [_PTHREADS95]: Remove.
4078 * configure.ac (enable_threads): Remove posix95.
4079 * configure: Regenerate.
4080 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
4082 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
4085 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
4087 (ix86_print_operand_address): Handle zero-extended addresses.
4088 (memory_address_length): Add length of addr32 prefix for
4089 zero-extended addresses.
4090 (ix86_secondary_reload): Handle moves to/from double-word general
4091 registers from/to zero-extended addresses.
4092 * config/i386/predicates.md (lea_address_operand): Reject
4093 zero-extended operands.
4095 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
4098 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
4100 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
4101 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
4103 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
4104 (_Unwind_Context_Reg_Val): Likewise.
4105 (_Unwind_Get_Unwind_Word): Likewise.
4106 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
4107 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
4108 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
4109 for EXTENDED_CONTEXT_BIT.
4110 (__frame_state_for): Likewise.
4111 (uw_init_context_1): Likewise.
4112 (_Unwind_GetGR): Updated.
4113 (_Unwind_SetGR): Likewise.
4114 (_Unwind_GetGRPtr): Likewise.
4115 (_Unwind_SetGRPtr): Likewise.
4116 (_Unwind_SetGRValue): Likewise.
4117 (_Unwind_GRByValue): Likewise.
4118 (uw_install_context_1): Likewise.
4120 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
4121 ASSUME_EXTENDED_UNWIND_CONTEXT.
4122 * doc/tm.texi: Regenerated.
4124 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4126 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
4128 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4130 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
4132 (DEC Alpha Options, -mtune): Likewise.
4133 (MIPS Options, -march): native is supported on IRIX.
4135 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4137 * config/sparc/driver-sparc.c: New file.
4138 * config/sparc/x-sparc: New file.
4139 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
4140 * config/sparc/sparc.opt (native): New value for enum processor_type.
4141 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
4142 * config/sparc/sparc.c (sparc_option_override): Abort if
4143 PROCESSOR_NATIVE gets here.
4144 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
4145 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
4146 DRIVER_SELF_SPECS): Define.
4147 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
4148 (SPARC Options, -mtune): Likewise.
4149 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
4151 * configure: Regenerate.
4152 * Makefile.in (EXTRA_GCC_LIBS): Set.
4153 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
4154 (cpp$(exeext)): Likewise.
4156 2011-08-08 Richard Guenther <rguenther@suse.de>
4158 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
4160 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
4163 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
4165 PR tree-optimization/50005
4166 * ipa-inline-analysis (remap_predicate): Add cast to
4167 silence signed/unsigned comparison warning.
4169 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
4171 * modulo-sched.c (get_sched_window): Use a table for the debug output.
4172 Print the current ii.
4173 (sms_schedule_by_order): Reduce whitespace in dump line.
4175 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
4177 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
4178 and one loop for successors. Fix upper bound of memory range.
4180 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
4183 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
4184 (TARGET_INSTANTIATE_DECLS): New define.
4186 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
4187 Mikael Morin <mikael.morin@sfr.fr>
4189 * Makefile.in (INCLUDES_FOR_TARGET): New.
4190 (LIBGCC2_CFLAGS): Use it.
4191 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
4193 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
4195 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
4196 frame->save_regs_using_mov calculation.
4198 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
4200 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
4201 * config/i386/sse.md (castmode): New mode attribute.
4202 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
4203 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
4205 2011-08-05 Jan Hubicka <jh@suse.cz>
4208 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
4210 2011-08-05 Jan Hubicka <jh@suse.cz>
4213 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
4215 (create_emultls_var):New function.
4216 (ipa_lower_emutls): Handle aliases correctly.
4218 2011-08-05 Jan Hubicka <jh@suse.cz>
4221 * ipa-inline.c (recursive_inlining): Look through aliases.
4223 2011-08-05 Jason Merrill <jason@redhat.com>
4225 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
4226 declarations to beginning of function.
4228 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
4230 PR rtl-optimization/49900
4231 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
4232 ensure basic blocks stay in the same order.
4234 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
4236 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
4238 (s390_expand_atomic): Same.
4240 2011-08-05 Richard Henderson <rth@redhat.com>
4243 * dwarf2cfi.c (scan_insn_after): Split out of ...
4244 (scan_trace): ... here. Correctly place notes wrt sequences.
4246 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
4247 Richard Henderson <rth@redhat.com>
4250 * expr.c (fixup_args_size_notes): Look through no-op moves.
4252 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
4254 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
4255 of "m" for operand 0. Add type and mode attribute.
4256 (*pushxf_nointeger"): Use "<" constraint for operand 0.
4257 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
4258 constraint instead of "o" for opreand 1.
4259 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
4260 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
4261 operand 0, alternative 4.
4262 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
4264 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
4266 * config/i386/predicates.md (lea_address_operand): Rename from
4267 no_seg_address_operand.
4268 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
4269 (*lea_1_zext): Ditto.
4271 (*lea_2_zext): Ditto.
4273 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
4275 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
4276 parts.base and parts.index.
4277 * config/i386/predicates.md (aligned_operand): Ditto.
4278 (cmpxchg8b_pic_memory_operand): Ditto.
4280 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4282 * config/soft-fp: Move to ../libgcc.
4283 * Makefile.in (SFP_MACHINE): Remove.
4284 (libgcc-support): Remove $(SFP_MACHINE) dependency.
4285 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
4286 * config/arm/t-arm-softfp: Move to
4287 ../libgcc/config/arm/t-softfp.
4288 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
4289 * config/c6x/t-c6x-softfp: Remove.
4290 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
4291 * config/i386/t-fprules-softfp: Move to
4292 ../libgcc/config/t-softfp-tf.
4293 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
4294 * config/ia64/t-fprules-softfp: Remove.
4295 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
4296 * config/lm32/t-fprules-softfp: Remove.
4297 * config/moxie/sfp-machine.h: Remove.
4298 * config/moxie/t-moxie-softfp: Remove.
4299 * config/rs6000/darwin-ldouble-format: Move to
4300 ../libgcc/config/rs6000/ibm-ldouble-format.
4301 * config/rs6000/darwin-ldouble.c: Move to
4302 ../libgcc/config/rs6000/ibm-ldouble.c
4303 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
4304 * config/rs6000/libgcc-ppc64.ver: Likewise.
4305 * config/rs6000/sfp-machine.h: Likewise.
4306 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
4307 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
4308 (LIB2FUNCS_EXTRA): Remove.
4309 (TARGET_LIBGCC2_CFLAGS): Remove.
4310 * config/rs6000/t-aix52: Likewise
4311 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
4312 $(srcdir)/config/rs6000/darwin-ldouble.c.
4313 (SHLIB_MAPFILES): Remove.
4314 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
4315 $(srcdir)/config/rs6000/darwin-ldouble.c.
4316 * config/rs6000/t-fprules-softfp: Move to
4317 ../libgcc/config/t-softfp-sfdf.
4318 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
4319 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
4320 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
4321 $(srcdir)/config/rs6000/darwin-ldouble.c.
4322 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
4323 * config/score/t-score-softfp: Remove.
4324 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
4325 soft-fp/t-softfp from tmake_file.
4326 (arm*-*-uclinux*): Likewise.
4327 (arm*-*-ecos-elf): Likewise.
4328 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
4329 (arm*-*-rtems*): Likewise.
4330 (arm*-*-elf): Likewise.
4331 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
4333 (moxie-*-uclinux*): Likewise.
4334 (moxie-*-rtems*): Likewise.
4335 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
4337 (lm32-*-rtems*): Likewise.
4338 (lm32-*-uclinux*): Likewise.
4339 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
4340 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
4341 (powerpc-*-linux*, powerpc64-*-linux*): Remove
4342 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
4343 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
4345 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
4347 (tic6x-*-uclinux): Likewise.
4348 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
4349 soft-fp/t-softfp from tmake_file.
4350 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
4351 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
4352 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
4353 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
4354 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
4356 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4358 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
4359 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
4360 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
4362 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
4363 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
4365 * config/arm/t-vxworks: Likewise.
4366 * config/arm/t-wince-pe: Likewise.
4367 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
4368 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4369 * config/bfin/t-bfin-elf: Likewise.
4370 * config/bfin/t-bfin-linux: Likewise.
4371 * config/bfin/t-bfin-uclinux: Likewise.
4372 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
4374 * config/fr30/t-fr30: Likewise.
4375 * config/frv/t-frv: Likewise.
4376 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
4377 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4378 * config/m32c/t-m32c: Likewise.
4379 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
4380 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4381 * config/mcore/t-mcore: Likewise.
4382 * config/mep/t-mep: Likewise.
4383 * config/microblaze/t-microblaze: Likewise.
4384 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
4385 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4386 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
4387 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4388 * config/mn10300/t-linux: Remove.
4389 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4390 * config/pdp11/t-pdp11: Likewise.
4391 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
4392 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
4393 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4394 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
4395 * config/rs6000/t-aix52: Likewise.
4396 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
4397 $(srcdir)/config/rs6000/ppc64-fp.c.
4398 * config/rs6000/t-fprules-fpbit: Remove.
4399 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
4400 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4401 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
4402 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4403 * config/sparc/t-elf: Likewise.
4404 * config/sparc/t-leon: Likewise.
4405 * config/sparc/t-leon3: Likewise.
4406 * config/spu/t-spu-elf: Likewise.
4407 (DPBIT_FUNCS): Remove.
4408 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4409 * config/v850/t-v850: Likewise.
4410 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
4411 (avr-*-*): Likewise.
4412 (h8300-*-rtems*): Set libgcc_tm_file.
4413 (h8300-*-elf*): Likewise.
4414 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
4416 (powerpc-*-eabisim*): Likewise.
4417 (powerpc-*-elf*): Likewise.
4418 (powerpc-*-eabialtivec*): Likewise.
4419 (powerpc-xilinx-eabi*): Likewise.
4420 (powerpc-*-eabi*): Likewise.
4421 (powerpc-*-rtems*): Likewise.
4422 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
4423 (powerpcle-*-elf*): Likewise.
4424 (powerpcle-*-eabisim*): Likewise.
4425 (powerpcle-*-eabi*): Likewise.
4426 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
4427 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
4428 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
4431 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4433 * Makefile.in (UNWIND_H): Remove.
4434 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
4435 ../libgcc/Makefile.in.
4436 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
4437 (LIBUNWINDDEP): Remove.
4438 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
4439 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
4440 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
4441 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
4442 Don't copy $(UNWIND_H).
4443 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
4444 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
4445 * aclocal.m4: Regenerate.
4446 * configure: Regenerate.
4447 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
4448 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
4449 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
4450 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
4451 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
4452 * config/arm/libunwind.S, config/arm/pr-support.c,
4453 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
4454 ../libgcc/config/arm.
4455 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
4456 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
4457 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
4458 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
4459 ($(T)frvend$(objext)): Likewise.
4460 * config/ia64/t-glibc (LIB2ADDEH): Remove.
4461 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
4462 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
4463 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
4464 ../libgcc/config/ia64.
4465 * config/ia64/t-hpux (LIB2ADDEH): Remove.
4466 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
4467 * config/ia64/t-vms (LIB2ADDEH): Remove.
4468 * config/ia64/vms.h (UNW_IVMS_MODE,
4469 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
4470 * config/picochip/t-picochip (LIB2ADDEH): Remove.
4471 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
4472 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
4473 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
4474 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
4475 $(srcdir)/../libgcc to refer to unwinder sources.
4476 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
4477 * config/t-darwin (LIB2ADDEH): Remove.
4478 * config/t-freebsd (LIB2ADDEH): Remove.
4479 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
4480 * config/t-libunwind-elf: Move to ../libgcc/config.
4481 * config/t-linux (LIB2ADDEH): Remove.
4482 * config/t-sol2 (LIB2ADDEH): Remove.
4483 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
4484 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
4486 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
4488 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
4490 * doc/invoke.texi: Document core-avx-i.
4492 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4494 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
4496 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
4498 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
4499 result of multiple results reduction when extracting the final
4500 value using scalar code.
4502 2011-08-05 Richard Guenther <rguenther@suse.de>
4504 PR tree-optimization/49984
4505 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
4507 2011-08-05 Richard Guenther <rguenther@suse.de>
4509 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
4510 return true for constant integer ranges.
4511 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
4512 BIT_IOR_EXPR handling.
4514 2011-08-04 Kai Tietz <ktietz@redhat.com>
4516 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
4517 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
4519 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
4521 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
4522 pattern def statement, and its access macro.
4523 (NUM_PATTERNS): Set to 5.
4524 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
4525 pattern def statement.
4526 (vect_transform_loop): Likewise.
4527 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
4528 function vect_recog_over_widening_pattern ().
4529 (vect_operation_fits_smaller_type): New function.
4530 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
4532 (vect_pattern_recog_1): Move the code that marks pattern
4533 statements to vect_mark_pattern_stmts (), and call it. Update
4535 * tree-vect-stmts.c (vect_supportable_shift): New function.
4536 (vect_analyze_stmt): Handle pattern def statement.
4537 (new_stmt_vec_info): Initialize pattern def statement.
4539 2011-08-04 Richard Henderson <rth@redhat.com>
4542 * config/i386/i386.c (ix86_expand_call): Don't create nested
4543 PARALLELs for TARGET_VZEROUPPER.
4544 (ix86_split_call_vzeroupper): Fix extraction of the original call.
4545 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
4546 recognize nested PARALLELs.
4547 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
4548 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
4549 *sibcall_value_pop_vzeroupper): Likewise.
4551 2011-08-04 Richard Henderson <rth@redhat.com>
4554 * calls.c (expand_call): Use fixup_args_size_notes for
4556 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
4557 in non-standard modes.
4559 2011-08-04 Jakub Jelinek <jakub@redhat.com>
4561 * gcc.c (self_spec): New variable.
4562 (static_specs): Add self_spec.
4563 (main): Call do_self_spec on "self_spec" specs after reading
4564 user specs files. Move compare_debug handling right after that.
4566 2011-08-04 Richard Guenther <rguenther@suse.de>
4568 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
4569 (value_range_nonnegative_p): New function.
4570 (ssa_name_nonnegative_p): Use it.
4571 (value_range_constant_singleton): New function.
4572 (op_with_constant_singleton_value_range): Use it.
4573 (extract_range_from_binary_expr_1): New function, split out from ...
4574 (extract_range_from_binary_expr): ... this. Remove fallback
4575 constant folding done here.
4577 2011-08-04 Richard Guenther <rguenther@suse.de>
4579 PR tree-optimization/49806
4580 * tree-vrp.c (op_with_boolean_value_range_p): New function.
4581 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
4582 a new statement for a final conversion to bool.
4584 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
4586 * gengtype-state.c: Include "bconfig.h" if
4587 GENERATOR_FILE is defined, "config.h" otherwise.
4588 * gengtype.c: Likewise.
4589 * gengtype-lex.l: Likewise.
4590 * gengtype-parse.c: Likewise.
4591 * Makefile.in (gengtype-lex.o-warn): New variable.
4592 (plugin_resourcesdir): Likewise.
4593 (plugin_bindir): Likewise.
4594 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
4595 (MOSTLYCLEANFILES): Add gengtype$(exeext).
4596 (native): Depend on gengtype$(exeext) is $enable_plugin
4598 (gtype.state): Depend on s-gtype. Use temporary file.
4599 (gengtype-lex.o): New rule.
4600 (gengtype-parse.o): Likewise.
4601 (gengtype-state.o): Likewise.
4602 (gengtype$(exeext)): Likewise.
4603 (install-gengtype): Likewise.
4604 (gengtype.o): Likewise.
4605 (build/gengtype.o): Depend on version.h.
4606 (build/gengtype-state): Depend on double-int.h, version.h,
4607 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
4608 (install-plugin): Depend on install-gengtype.
4610 2011-08-04 Jakub Jelinek <jakub@redhat.com>
4613 * tree.h (init_attributes): New prototype.
4614 * attribs.c (init_attributes): No longer static.
4616 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4618 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
4621 2011-08-03 David Li <davidxl@google.com>
4623 * tree-optimize.c (execute_fixup_cfg): Fix up entry
4624 outgoing edge counts after inlining.
4626 2011-08-03 David Li <davidxl@google.com>
4628 * profile.c (compute_branch_probabilities): Compute
4629 function frequency after profile annotation.
4631 2011-08-04 Alan Modra <amodra@gmail.com>
4633 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
4634 use_backchain_to_restore_sp initialisation.
4635 (rs6000_legitimate_offset_address_p): Simplify offset test.
4637 2011-08-03 Richard Henderson <rth@redhat.com>
4639 * config/spu/spu.md: Use define_c_enum instead of define_constants.
4640 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
4643 2011-08-03 Richard Henderson <rth@redhat.com>
4646 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
4648 2011-08-03 Jakub Jelinek <jakub@redhat.com>
4650 PR tree-optimization/49948
4651 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
4653 2011-08-03 Anatoly Sokolov <aesok@post.ru>
4655 * config/m32c/m32c.c (class_sizes): Remove.
4656 (reduce_class): Change arguments and return type to reg_class_t.
4657 Change type cc var to HARD_REG_SET. Change type best var to
4658 reg_class_t. Change type best_size var to unsigned int. Remove
4659 initialization class_sizes var. Use reg_class_size array instead
4660 of class_sizes. Use reg_class_contents array instead
4663 2011-08-03 Richard Guenther <rguenther@suse.de>
4666 * fold-const.c (fold_binary_loc): Only associate
4667 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
4670 2011-08-03 Alan Modra <amodra@gmail.com>
4672 PR rtl-optimization/49941
4673 * jump.c (mark_jump_label): Comment.
4674 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
4675 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
4676 (mark_used_flags): Don't mark RETURN.
4678 2011-08-03 Richard Guenther <rguenther@suse.de>
4680 PR tree-optimization/49938
4681 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
4682 deal with a POLYNOMIAL_CHREC.
4684 2011-08-03 Revital Eres <revital.eres@linaro.org>
4686 * modulo-sched.c (calculate_stage_count,
4687 calculate_must_precede_follow, get_sched_window,
4688 try_scheduling_node_in_cycle, remove_node_from_ps): Add
4690 (update_node_sched_params, set_must_precede_follow, optimize_sc):
4692 (reset_sched_times): Call update_node_sched_params.
4693 (sms_schedule): Call optimize_sc.
4694 (get_sched_window): Change function arguments.
4695 (sms_schedule_by_order): Update call to get_sched_window.
4696 Call set_must_precede_follow.
4697 (calculate_stage_count): Add function argument.
4699 2011-08-02 Richard Henderson <rth@redhat.com>
4703 * reg-notes.def (REG_ARGS_SIZE): New.
4704 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
4705 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
4706 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
4707 different stack levels.
4708 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
4709 (maybe_move_args_size_note): New.
4710 (combine_stack_adjustments_for_block): Use it.
4711 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
4712 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
4713 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
4714 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
4716 (queued_args_size): Remove.
4717 (add_cfi_args_size): Assert size is non-negative.
4718 (stack_adjust_offset, dwarf2out_args_size): Remove.
4719 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
4720 (notice_args_size, notice_eh_throw): New.
4721 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
4722 (dwarf2out_frame_debug_adjust_cfa): Likewise.
4723 (dwarf2out_frame_debug_cfa_offset): Likewise.
4724 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
4725 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
4726 (change_cfi_row): Don't emit args_size.
4727 (maybe_record_trace_start_abnormal): Split out from ...
4728 (maybe_record_trace_start): Here. Set args_size_undefined.
4729 (create_trace_edges): Update to match.
4730 (scan_trace): Handle REG_ARGS_SIZE.
4731 (connect_traces): Connect args_size between EH insns.
4732 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
4733 * explow.c (suppress_reg_args_size): New.
4734 (adjust_stack_1): Split out from ...
4735 (adjust_stack): ... here.
4736 (anti_adjust_stack): Use it.
4737 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
4738 * expr.c (mem_autoinc_base): New.
4739 (fixup_args_size_notes): New.
4740 (emit_single_push_insn_1): Rename from emit_single_push_insn.
4741 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
4742 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
4743 * reload1.c (reload_as_needed): Likewise.
4744 * rtl.h (fixup_args_size_notes): Declare.
4746 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
4749 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
4751 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4752 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
4754 2011-08-02 Richard Henderson <rth@redhat.com>
4756 * config/h8300/h8300.c (push, pop): Return the insn.
4757 (h8300_swap_into_er6): Generate correct unwind info.
4758 (h8300_swap_out_of_er6): Likewise.
4759 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
4760 complex cfa expression.
4761 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
4763 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
4765 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4767 2011-08-02 Richard Henderson <rth@redhat.com>
4770 * config/h8300/h8300.c (h8300_move_ok): New.
4771 * config/h8300/h8300-protos.h: Declare it.
4772 * config/h8300/h8300.md (P): New mode iterator.
4773 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
4774 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
4775 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
4776 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
4777 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
4778 and pushqi1_h8300hs_normal; use PRE_MODIFY and
4779 register_no_sp_elim_operand.
4780 (*pushhi1_h8300hs_<P>): Similarly.
4781 (pushqi1, pushhi1, pushhi1_h8300): Remove.
4782 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
4784 2011-08-02 Richard Henderson <rth@redhat.com>
4787 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
4789 2011-08-02 Jakub Jelinek <jakub@redhat.com>
4791 * c-parser.c (enum c_parser_prec): New enum, moved from within
4792 c_parser_binary_expression.
4793 (c_parser_binary_expression): Add PREC argument. Stop parsing
4794 if operator has lower or equal precedence than PREC.
4795 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
4797 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
4798 Adjust c_finish_omp_atomic caller.
4799 (c_parser_omp_taskyield): New function.
4800 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
4801 (c_parser_omp_clause_name): Handle final and mergeable clauses.
4802 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
4804 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
4805 and PRAGMA_OMP_CLAUSE_MERGEABLE.
4806 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
4807 (c_parser_omp_clause_reduction): Handle min and max.
4808 * c-typeck.c (c_finish_omp_clauses): Don't complain about
4809 const qualified predetermined vars in firstprivate clause.
4810 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4811 Handle MIN_EXPR and MAX_EXPR.
4812 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
4813 and OMP_CLAUSE_MERGEABLE.
4814 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
4815 and OMP_ATOMIC_CAPTURE_NEW.
4816 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
4817 OMP_CLAUSE_MERGEABLE.
4818 (omp_clause_code_name): Likewise.
4819 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4820 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
4821 and OMP_CLAUSE_MERGEABLE.
4822 (OMP_CLAUSE_FINAL_EXPR): Define.
4823 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
4824 OMP_CLAUSE_MERGEABLE.
4825 (expand_task_call): Likewise.
4826 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
4827 (expand_omp_atomic_fetch_op): Handle cases where old or new
4828 value is needed afterwards.
4829 (expand_omp_atomic): Call expand_omp_atomic_load resp.
4830 expand_omp_atomic_store.
4831 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
4832 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
4833 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
4834 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4835 * tree-nested.c (convert_nonlocal_omp_clauses,
4836 convert_local_omp_clauses): Likewise.
4837 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
4838 OMP_ATOMIC_CAPTURE_NEW): New.
4839 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
4840 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
4842 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
4843 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
4844 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4846 2011-08-02 Kai Tietz <ktietz@redhat.com>
4848 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
4850 (ssa_forward_propagate_and_combine): Interprete result of
4851 forward_propagate_comparison.
4852 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
4853 boolean-typed operands for comparisons.
4855 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
4857 * config/avr/libgcc.S: Gather related function in the
4859 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
4860 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
4862 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
4863 __udivmodsi4, __divmodsi4, __prologue_saves__,
4864 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
4865 __do_copy_data, __do_clear_bss, __do_global_ctors,
4866 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
4868 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
4871 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
4872 (stack_protect_test): The pattern compares ptr_mode value.
4874 2011-08-02 Alan Modra <amodra@gmail.com>
4876 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
4877 note for save_LR_around_toc_setup sequence.
4879 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
4881 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
4883 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
4884 Joseph Myers <joseph@codesourcery.com>
4886 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
4887 * hwint.c: Include diagnostic-core.h.
4889 (gcd): Moved here...
4892 (least_common_multiple): Moved here...
4893 * hwint.h (gcd): ... from here.
4894 (least_common_multiple): ... from here.
4895 (HOST_WIDE_INT_MIN): New.
4896 (HOST_WIDE_INT_MAX): New.
4897 (abs_hwi): Declared.
4899 (pos_mul_hwi): Declared.
4900 (mul_hwi): Declared.
4901 (least_common_multiple): Declared.
4902 * omega.c (check_pos_mul): Removed.
4903 (check_mul): Removed.
4904 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
4905 mul_hwi instead of check_mul.
4907 2011-08-01 Richard Henderson <rth@redhat.com>
4910 * config/avr/avr.h (PUSH_ROUNDING): New.
4911 * config/avr/avr.md (pushqi1): Rename from *pushqi.
4912 (*pushhi, *pushsi, *pushsf): Remove.
4913 (MPUSH): New mode iterator.
4914 (push<MPUSH>1): New expander.
4916 2011-08-01 Anatoly Sokolov <aesok@post.ru>
4918 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
4919 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
4920 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
4921 mmix_preferred_output_reload_class): Remove.
4922 * config/mmix/mmix.c (mmix_preferred_reload_class,
4923 mmix_preferred_output_reload_class): Make static. Change rclass
4924 argument and return type to reg_class_t.
4925 (TARGET_PREFERRED_RELOAD_CLASS,
4926 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4928 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
4930 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
4933 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
4936 * config/i386/i386.md (PTR): New.
4937 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
4938 (stack_protect_test): Likewise.
4939 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
4940 (stack_tls_protect_set_<mode>): Likewise.
4941 (stack_tls_protect_test_<mode>): Likewise.
4943 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
4946 * config/i386/i386.c (ix86_address_subreg_operand): New.
4947 (ix86_decompose_address): Use ix86_address_subreg_operand.
4948 (ix86_legitimate_address_p): Do not assert that subregs satisfy
4949 register_no_elim_operand in DImode.
4951 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
4953 PR tree-optimization/49926
4954 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
4955 in a chain doesn't have uses both inside and outside the loop.
4957 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
4959 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
4960 * config/avr/avr-devices.c (avr_mcu_types): Use it.
4961 * config/avr/avr-mcus.def (AVR_MCU): Use it.
4962 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
4963 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
4964 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
4965 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
4966 to detect if XJMP must not be skipped.
4968 2011-08-02 Alan Modra <amodra@gmail.com>
4970 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
4972 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
4973 (rs6000_emit_prologue): Don't prematurely return when
4974 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
4975 save_toc_in_prologue case.
4976 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
4979 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
4981 * config/avr/avr-devices.c: Delete SVN property svn:executable.
4982 * config/avr/predicates.md: Ditto.
4983 * config/avr/driver-avr.c: Ditto.
4984 * config/avr/genopt.sh: Set SVN property svn:executable to *.
4986 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
4988 * calls.c (emit_library_call_value_1): Declare size only if
4989 BLOCK_REG_PADDING is defined.
4991 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
4994 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
4995 (x86_64-*-*): Likewise.
4996 * config/i386/i386.opt (mlzcnt): New.
4997 * config/i386/abmintrin.h: File removed.
4998 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
4999 * config/i386/lzcntintrin.h: ... here. New file.
5000 (__lzcnt): Rename to ...
5001 (__lzcnt32): ... this.
5002 * config/i386/bmiintrin.h (head): Update copyright year.
5003 (__lzcnt_u16): Removed.
5004 (__lzcnt_u32): Likewise.
5005 (__lzcnt_u64): Likewise.
5006 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
5007 is defined, remove abmintrin.h.
5008 * config/i386/cpuid.h (bit_LZCNT): New.
5009 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5011 * config/i386/i386-c.c (ix86_target_macros_internal): Define
5012 __LZCNT__ if needed.
5013 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
5014 (ix86_option_override_internal): Handle LZCNT option.
5015 (ix86_valid_target_attribute_inner_p): Likewise.
5016 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
5017 * config/i386/i386.h (TARGET_LZCNT): New.
5018 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
5019 * config/i386/i386.md (clz<mode>2): Update insn constraint.
5020 (clz<mode>2_lzcnt): Likewise.
5021 * doc/invoke.texi: Mention -mlzcnt option.
5022 * doc/extend.texi: Likewise.
5024 2011-08-01 Julian Brown <julian@codesourcery.com>
5026 * configure.ac (fixed-point): Add ARM support.
5027 * configure: Regenerate.
5028 * config/arm/arm.c (arm_fixed_mode_set): New struct.
5029 (arm_set_fixed_optab_libfunc): New.
5030 (arm_set_fixed_conv_libfunc): New.
5031 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
5033 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
5034 return values in SImode.
5035 (arm_return_in_msb): Return fixed-point types in the msb.
5036 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
5038 (arm_scalar_mode_supported_p): Support fixed-point modes.
5039 (arm_vector_mode_supported_p): Support vector fixed-point modes.
5040 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
5041 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
5042 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
5043 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
5044 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
5046 (qaddsub_suf): New mode attribute.
5047 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
5049 * config/arm/predicates.md (sat_shift_operator): New predicate.
5050 * config/arm/arm-fixed.md: New.
5051 * config/arm/arm.md: Include arm-fixed.md.
5052 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
5054 2011-08-01 Julian Brown <julian@codesourcery.com>
5056 * calls.c (emit_library_call_value_1): Support padding for libcall
5057 arguments and return values.
5058 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
5059 downwards in big-endian mode.
5061 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5064 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
5065 * config/sol2-protos.h: Likewise.
5066 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
5068 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
5069 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
5071 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
5073 2011-08-01 Julian Brown <julian@codesourcery.com>
5075 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
5077 2011-08-01 Julian Brown <julian@codesourcery.com>
5079 * final.c (output_addr_const): Print fixed-point constants as
5082 2011-08-01 Richard Guenther <rguenther@suse.de>
5084 * stor-layout.c (initialize_sizetypes): Properly sign-extend
5085 bitsiztype TYPE_MAX_VALUE.
5087 2011-08-01 Julian Brown <julian@codesourcery.com>
5089 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
5092 2011-07-31 Richard Henderson <rth@redhat.com>
5094 * config/h8300/crti.asm: Add flags to .section directive.
5095 * config/h8300/crtn.asm: Likewise.
5097 2011-07-31 Richard Henderson <rth@redhat.com>
5099 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
5100 * tree.c (build_common_tree_nodes): Likewise.
5102 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
5105 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
5106 (divsi3_i1): Likewise.
5108 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5110 PR tree-optimization/49749
5111 * tree-ssa-reassoc.c (get_rank): New forward declaration.
5112 (PHI_LOOP_BIAS): New macro.
5113 (phi_rank): New function.
5114 (loop_carried_phi): Likewise.
5115 (propagate_rank): Likewise.
5116 (get_rank): Add calls to phi_rank and propagate_rank.
5118 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
5120 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
5122 (PTRDIFF_TYPE): Likewise.
5124 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
5127 * config/i386/i386.md (strset): Do not expand strset_singleop
5128 when %eax or $edi are fixed.
5129 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
5130 (*strsetsi_1): Ditto.
5131 (*strsethi_1): Ditto.
5132 (*strsetqi_1): Ditto.
5133 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
5134 (*rep_stossi): Ditto.
5135 (*rep_stosqi): Ditto.
5136 (*strlenqi_1): Ditto.
5137 (cmpstrnsi): Also fail when %ecx is fixed.
5138 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
5139 (*cmpstrnqi_1): Ditto.
5140 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
5141 (*strmovsi_1): Ditto.
5142 (*strmovhi_1): Ditto.
5143 (*strmovqi_1): Ditto.
5144 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
5145 (*rep_movsi): Ditto.
5146 (*rep_movqi): Ditto.
5148 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
5151 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
5152 Disable instruction scheduling for non-ColdFire targets.
5153 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
5155 2011-07-31 Revital Eres <revital.eres@linaro.org>
5157 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
5158 of anti-dep edge from a branch.
5159 (add_cross_iteration_register_deps): Create anti-dep edge from
5162 2011-07-31 Revital Eres <revital.eres@linaro.org>
5164 * modulo-sched.c: Change comment.
5165 (reset_sched_times): Fix print message.
5166 (print_partial_schedule): Add print info.
5168 2011-07-31 Tom de Vries <tom@codesourcery.com>
5171 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
5172 get_object_alignment and TYPE_ALIGN.
5174 2011-07-30 Tom de Vries <tom@codesourcery.com>
5177 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
5178 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
5180 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5182 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
5184 (cpu_types): New array.
5185 (cputype): New function.
5186 (host_detect_local_cpu): Only define buf, f if !__sgi__.
5187 Use scaninvent instead of /proc/cpuinfo if __sgi__.
5188 * config.host: Also use driver-native.o, mips/x-native on
5190 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
5191 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
5192 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
5194 2011-07-29 Jakub Jelinek <jakub@redhat.com>
5198 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
5199 in nested parallel and outer is a gimple_reg, mark it as addressable
5200 and set its bit in task_shared_vars bitmap too.
5202 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
5204 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
5206 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5208 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
5209 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
5210 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
5211 AMASK_LOCKPFTCHOK): Define.
5212 (host_detect_local_cpu): Remove buf, f, cpu_names.
5213 Define cpu_types, implver, amask.
5214 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
5216 * config.host: Also use driver-alpha.o, alpha/x-alpha on
5218 * config/alpha/osf5.h [__alpha__ || __alpha]
5219 (host_detect_local_cpu): Declare.
5220 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
5221 (DRIVER_SELF_SPECS): Define.
5223 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
5226 * config/i386/i386.md (*load_tp_x32): New.
5227 (*load_tp_x32_zext): Ditto.
5228 (*add_tp_x32): Ditto.
5229 (*add_tp_x32_zext): Ditto.
5230 (*load_tp_<mode>): Disable for TARGET_X32 targets.
5231 (*add_tp_<mode>): Ditto.
5232 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
5233 ptr_mode and convert to Pmode if needed.
5235 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
5238 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
5239 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
5240 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
5241 Add X to register footprint: Clobber r26/r27.
5243 2011-07-29 Richard Guenther <rguenther@suse.de>
5245 * builtins.c (fold_builtin_signbit): Build the comparison
5248 2011-07-29 Richard Guenther <rguenther@suse.de>
5250 PR tree-optimization/49893
5251 * tree-predcom.c (suitable_reference_p): Volatile references
5254 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
5257 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
5258 (__ctzsi2): Result for 0 may be undefined.
5259 (__ctzhi2): Result for 0 may be undefined.
5260 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
5261 (__popcountsi2): Ditto. And don't clobber r26.
5262 (__popcountdi2): Ditto. And don't clobber r27.
5263 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
5264 (parityhi2): New expand.
5265 (paritysi2): New expand.
5266 (popcounthi2): New expand.
5267 (popcountsi2): New expand.
5268 (clzhi2): New expand.
5269 (clzsi2): New expand.
5270 (ctzhi2): New expand.
5271 (ctzsi2): New expand.
5272 (ffshi2): New expand.
5273 (ffssi2): New expand.
5274 (copysignsf3): New insn.
5275 (bswapsi2): New expand.
5276 (*parityhi2.libgcc): New insn.
5277 (*parityqihi2.libgcc): New insn.
5278 (*paritysihi2.libgcc): New insn.
5279 (*popcounthi2.libgcc): New insn.
5280 (*popcountsi2.libgcc): New insn.
5281 (*popcountqi2.libgcc): New insn.
5282 (*popcountqihi2.libgcc): New insn-and-split.
5283 (*clzhi2.libgcc): New insn.
5284 (*clzsihi2.libgcc): New insn.
5285 (*ctzhi2.libgcc): New insn.
5286 (*ctzsihi2.libgcc): New insn.
5287 (*ffshi2.libgcc): New insn.
5288 (*ffssihi2.libgcc): New insn.
5289 (*bswapsi2.libgcc): New insn.
5291 2011-07-29 Richard Guenther <rguenther@suse.de>
5293 * tree-vrp.c (get_value_range): Only set parameter default
5294 definitions to varying, leave others at undefined.
5295 (extract_range_from_binary_expr): Fix undefined handling.
5296 (vrp_visit_phi_node): Handle merged undefined state.
5298 2011-07-29 Wei Guozhi <carrot@google.com>
5300 PR rtl-optimization/49799
5301 * combine.c (make_compound_operation): Check if the bit field is valid
5302 before change it to bit field extraction.
5304 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
5306 PR rtl-optimization/49891
5307 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
5308 newly created returnjumps.
5310 2011-07-28 DJ Delorie <dj@redhat.com>
5312 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
5313 local frame in a naked function, and produce a suitable error for
5316 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
5317 registers to be reloaded in HI classes when the target is HI.
5319 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
5321 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
5322 bound_one, bound_two.
5324 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
5327 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
5329 (translate_clast): Same.
5330 (translate_clast_assignment): New.
5332 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
5334 PR tree-optimization/49876
5335 * sese.c (rename_uses): Do not return false on gloog_error: set
5336 the new_expr to integer_zero_node and continue code generation.
5337 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
5339 2011-07-28 Jakub Jelinek <jakub@redhat.com>
5342 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
5343 arguments also check if they aren't initialized with a MODE_INT
5344 mode of the same size.
5346 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
5348 * expr.c (get_bit_range): Handle *MEM_REF's.
5350 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
5352 * rtlanal.c (tablejump_p): False for returns.
5353 * reorg.c (first_active_target_insn): New static function.
5354 (find_end_label): Set JUMP_LABEL for a new returnjump.
5355 (optimize_skip, get_jump_flags, rare_destination,
5356 mostly_true_jump, get_branch_condition,
5357 steal_delay_list_from_target, own_thread_p,
5358 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
5359 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
5360 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
5361 * jump.c (delete_related_insns): Likewise.
5362 (jump_to_label_p): New function.
5363 (redirect_target): New static function.
5364 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
5365 (redirect_jump_1): Assert that the new label is nonnull.
5366 (redirect_jump): Likewise.
5367 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
5368 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
5370 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
5371 changed. Ensure that the right label is passed to redirect_jump.
5372 * function.c (emit_return_into_block,
5373 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
5374 ret_rtx in their JUMP_LABEL.
5375 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
5376 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
5377 pass ret_rtx as label.
5378 * cfglayout.c (fixup_reorder_chain): Use
5379 force_nonfallthru_and_redirect rather than force_nonfallthru.
5380 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
5381 * rtl.h (ANY_RETURN_P): New macro.
5382 (jump_to_label_p): Declare.
5383 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
5385 (mark_target_live_regs): Likewise.
5386 * basic-block.h (force_nonfallthru_and_redirect): Declare.
5387 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
5388 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
5389 alpha_tablejump_best_label): Remove functions.
5390 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
5391 alpha_tablejump_best_label): Remove declarations.
5392 * config/sh/sh.c (barrier_align, split_branches): Adjust for
5393 ret_rtx in JUMP_LABELs.
5394 * config/arm/arm.c (is_jump_table): Likewise.
5396 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
5398 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
5399 special predicate. Remove explicit mode checks.
5401 2011-07-28 Jakub Jelinek <jakub@redhat.com>
5403 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
5404 DW_AT_data_member_location containing just DW_OP_plus_uconst.
5407 * dwarf2out.c (size_of_die, value_format, output_die): Use
5408 DW_FORM_udata instead of DW_FORM_data[48] for
5409 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
5411 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
5413 * config/i386/i386.md (*tls_global_dynamic_64): Update
5416 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
5419 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
5420 tls_symbolic_operand check. Update code sequence for TARGET_X32.
5421 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
5422 (tls_dynamic_gnu2_64): Ditto.
5423 (*tls_dynamic_gnu2_lea_64): Ditto.
5424 (*tls_dynamic_gnu2_call_64): Ditto.
5425 (*tls_dynamic_gnu2_combine_64): Ditto.
5427 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
5429 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
5431 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
5434 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
5436 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5438 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
5439 before the core constraints. Adjust attributes.
5440 ("*thumb2_movdf_vfp"): Likewise.
5442 2011-07-28 Kai Tietz <ktietz@redhat.com>
5444 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
5445 (simplify_truth_ops_using_ranges): Likewise.
5446 (build_assert_expr_for): Likewise.
5447 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
5448 and handle BIT_NOT_EXPR for truth-operation.
5450 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
5453 Undo r176835 from trunk
5454 2011-07-27 Georg-Johann Lay
5456 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
5459 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
5460 Add _muluhisi3, _mulshisi3, _usmulhisi3.
5461 * config/avr/libgcc.S (__mulsi3): Rewrite.
5462 (__mulhisi3): Rewrite.
5463 (__umulhisi3): Rewrite.
5464 (__usmulhisi3): New.
5468 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
5470 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
5471 (pseudo_register_or_const_int_operand): New.
5472 (combine_pseudo_register_operand): New.
5476 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
5477 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
5478 (any_extend, any_extend2): New code iterators.
5479 (extend_prefix): New code attribute.
5480 (mulsi3): Rewrite. Turn insn to expander.
5483 (usmulhisi3): New expander.
5484 (*mulsi3): New insn-and-split.
5485 (mulu<mode>si3): New insn-and-split.
5486 (muls<mode>si3): New insn-and-split.
5487 (mulohisi3): New insn-and-split.
5488 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
5489 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
5490 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
5491 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
5493 (*mulsi3_call): Rewrite.
5494 (*mulhisi3_call): Rewrite.
5495 (*umulhisi3_call): Rewrite.
5496 (*usmulhisi3_call): New insn.
5497 (*muluhisi3_call): New insn.
5498 (*mulshisi3_call): New insn.
5499 (*mulohisi3_call): New insn.
5500 (extendqihi2): Use combine_pseudo_register_operand as predicate
5502 (extendqisi2): Ditto.
5503 (zero_extendqihi2): Ditto.
5504 (zero_extendqisi2): Ditto.
5505 (zero_extendhisi2): Ditto.
5506 (extendhisi2): Ditto. Don't early-clobber operand 0.
5508 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
5510 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
5512 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
5514 PR tree-optimization/49471
5515 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
5516 iv only when the largest type is unsigned. Do not call
5517 lang_hooks.types.type_for_size.
5519 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
5522 * graphite-poly.c (apply_poly_transforms): Disable legality check
5523 after an openscop read.
5525 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
5528 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
5529 copy_bb_and_scalar_dependences.
5530 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
5531 (graphite_copy_stmts_from_block): Update call to rename_uses.
5532 (copy_bb_and_scalar_dependences): Update call to
5533 graphite_copy_stmts_from_block.
5534 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
5536 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
5539 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
5540 (__ctzsi2): Result for 0 may be undefined.
5541 (__ctzhi2): Result for 0 may be undefined.
5542 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
5543 (__popcountsi2): Ditto. And don't clobber r26.
5544 (__popcountdi2): Ditto. And don't clobber r27.
5545 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
5546 (parityhi2): New expand.
5547 (paritysi2): New expand.
5548 (popcounthi2): New expand.
5549 (popcountsi2): New expand.
5550 (clzhi2): New expand.
5551 (clzsi2): New expand.
5552 (ctzhi2): New expand.
5553 (ctzsi2): New expand.
5554 (ffshi2): New expand.
5555 (ffssi2): New expand.
5556 (copysignsf3): New insn.
5557 (bswapsi2): New expand.
5558 (*parityhi2.libgcc): New insn.
5559 (*parityqihi2.libgcc): New insn.
5560 (*paritysihi2.libgcc): New insn.
5561 (*popcounthi2.libgcc): New insn.
5562 (*popcountsi2.libgcc): New insn.
5563 (*popcountqi2.libgcc): New insn.
5564 (*popcountqihi2.libgcc): New insn-and-split.
5565 (*clzhi2.libgcc): New insn.
5566 (*clzsihi2.libgcc): New insn.
5567 (*ctzhi2.libgcc): New insn.
5568 (*ctzsihi2.libgcc): New insn.
5569 (*ffshi2.libgcc): New insn.
5570 (*ffssihi2.libgcc): New insn.
5571 (*bswapsi2.libgcc): New insn.
5573 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
5575 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
5576 the mode of symbolic_opreand RTXes.
5578 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
5580 * config/i386/predicates.md (x86_64_movabs_operand): Return false
5581 for pic_32bit_operand RTXes.
5582 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
5585 2011-07-27 Kai Tietz <ktietz@redhat.com>
5587 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
5589 (ix86_handle_abi_attribute): Allow function attributes
5590 ms_abi/sysv_abi in 32-bit mode, too.
5591 * doc/extend.texi: Adjust attribute documentation.
5593 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
5594 expression handling.
5595 (and_var_with_comparison_1): Likewise.
5597 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
5599 * params.h (ALLOW_STORE_DATA_RACES): New.
5600 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
5601 * Makefile.in (expr.o): Depend on PARAMS_H.
5602 * machmode.h (get_best_mode): Add argument.
5603 * fold-const.c (optimize_bit_field_compare): Add argument to
5605 (fold_truthop): Same.
5606 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
5607 * expr.c (emit_group_store): Same.
5608 (copy_blkmode_from_reg): Same.
5609 (write_complex_part): Same.
5610 (optimize_bitfield_assignment_op): Add argument.
5611 Add argument to get_best_mode.
5612 (get_bit_range): New.
5613 (expand_assignment): Calculate maxbits and pass it down accordingly.
5614 (store_field): New argument.
5615 (expand_expr_real_2): New argument to store_field. Include params.h.
5616 * expr.h (store_bit_field): New argument.
5617 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
5618 into account maxbits.
5619 * calls.c (store_unaligned_arguments_into_pseudos): New argument
5621 * expmed.c (store_bit_field_1): New argument. Use it.
5622 (store_bit_field): Same.
5623 (store_fixed_bit_field): Same.
5624 (store_split_bit_field): Same.
5625 (extract_bit_field_1): Pass new argument to get_best_mode.
5626 (extract_bit_field): Same.
5627 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
5628 * doc/invoke.texi: Document parameter allow-store-data-races.
5630 2011-07-27 Jakub Jelinek <jakub@redhat.com>
5632 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
5634 2011-07-27 Kai Tietz <ktietz@redhat.com>
5636 * tree-vrp.c (extract_range_from_binary_expr): Remove
5637 TRUTH-binary cases and add new bitwise-cases.
5638 (extract_range_from_assignment): Likewise.
5639 (register_edge_assert_for_1): Likeiwise.
5640 (register_edge_assert_for): Likewise.
5641 (simplify_truth_ops_using_ranges): Likewise.
5642 (simplify_stmt_using_ranges): Likewise.
5644 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
5647 * config/i386/i386.c (ix86_delegitimize_address): Call
5648 simplify_gen_subreg for PIC with mode of x only if modes of
5649 x and orig_x are different.
5651 2011-07-26 Jakub Jelinek <jakub@redhat.com>
5653 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
5654 to GC allocated copy of the string.
5655 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
5656 before .debug_line, not after it.
5658 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
5661 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
5662 evolution_function_is_affine_p on CHREC_RIGHT.
5664 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
5666 * tree-data-ref.c (max_stmt_executions_tree): Do not call
5667 lang_hooks.types.type_for_size.
5669 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
5672 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
5673 loops using wrapping semantics.
5675 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
5678 * tree-scalar-evolution.c (instantiate_scev_r): Return
5679 chrec_dont_know for ADDR_EXPR.
5681 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
5682 H.J. Lu <hongjiu.lu@intel.com>
5686 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
5687 if legitimize_tls_address returned operand in wrong mode. Allow
5688 SImode and DImode symbolic operand for PIC. Call convert_to_mode
5689 if legitimize_pic_address returned operand in wrong mode.
5691 2011-07-26 Martin Jambor <mjambor@suse.cz>
5693 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
5694 return false for invariants.
5696 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
5698 * config/i386/i386.md (add->lea splitter): Implement using SWI
5699 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
5700 (add->lea zext splitter): Change operand 2 predicate to
5701 x86_64_nonmemory_operand.
5703 2011-07-26 Richard Guenther <rguenther@suse.de>
5705 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
5706 frequency makes everything hot.
5708 2011-07-26 Richard Guenther <rguenther@suse.de>
5710 PR tree-optimization/49840
5711 * tree-vrp.c (range_fits_type_p): Properly handle full
5712 double-int precision.
5714 2011-07-26 Martin Jambor <mjambor@suse.cz>
5717 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
5719 (update_specialized_profile): Likewise.
5721 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
5722 H.J. Lu <hongjiu.lu@intel.com>
5727 * config/i386/i386.md (i): Change SImode attribute to "e".
5728 (g): Change SImode attribute to "rme".
5729 (di): Change SImode attribute to "nF".
5730 (general_operand): Change SImode attribute to x86_64_general_operand.
5731 (general_szext_operand): Change SImode attribute to
5732 x86_64_szext_general_operand.
5733 (immediate_operand): Change SImode attribute to
5734 x86_64_immediate_operand.
5735 (nonmemory_operand): Change SImode attribute to
5736 x86_64_nonmemory_operand.
5737 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
5738 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
5739 (*lea_1): Use SWI48 mode iterator.
5740 (*lea_1_zext): New insn pattern.
5741 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
5743 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
5744 Update operand constraints.
5745 (addsi_1_zext): Ditto.
5746 (*add<mode>2): Ditto.
5747 (*addsi_3_zext): Ditto.
5748 (*subsi_1_zext): Ditto.
5749 (*subsi_2_zext): Ditto.
5750 (*subsi_3_zext): Ditto.
5751 (*addsi3_carry_zext): Ditto.
5752 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
5753 (*mulsi3_1_zext): Ditto.
5755 (*andsi_1_zext): Ditto.
5756 (*andsi_2_zext): Ditto.
5757 (*<any_or:code>si_1_zext): Ditto.
5758 (*<any_or:code>si_2_zext): Ditto.
5759 (*test<mode>_1): Use <general_operand> predicate for operand 1.
5760 (*and<mode>_2): Ditto.
5761 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
5762 (add->lea splitter): Check operand modes in insn constraint. Extend
5763 operands less than SImode wide to SImode.
5764 (add->lea zext splitter): Do not extend input operands to DImode.
5765 (*lea_general_1): Handle only QImode and HImode operands.
5766 (*lea_general_2): Ditto.
5767 (*lea_general_3): Ditto.
5768 (*lea_general_1_zext): Remove.
5769 (*lea_general_2_zext): Ditto.
5770 (*lea_general_3_zext): Ditto.
5771 (*lea_general_4): Check operand modes in insn constraint. Extend
5772 operands less than SImode wide to SImode.
5773 (ashift->lea splitter): Ditto.
5774 * config/i386/i386.c (ix86_print_operand_address): Print address
5775 registers with 'q' modifier on 64bit targets.
5776 * config/i386/predicates.md (pic_32bit_opreand): Define as special
5777 predicate. Reject non-SI and non-DI modes.
5779 2011-07-25 Andrew Pinski <apinski@cavium.com>
5782 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
5783 TREE_THIS_NOTRAP into the inner most MEM_REF.
5784 Always copy TREE_THIS_VOLATILE.
5785 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
5786 arguments are not volatile references.
5788 2011-07-25 Richard Henderson <rth@redhat.com>
5790 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
5791 * final.c (final_scan_insn): Don't test for it.
5792 (rest_of_clean_state): Likewise.
5794 2011-07-25 Richard Henderson <rth@redhat.com>
5797 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
5798 (emit_frame_save): Likewise.
5799 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
5800 insn onto a dummy blockage insn after the join label.
5802 2011-07-25 Richard Henderson <rth@redhat.com>
5804 * dwarf2cfi.c (dw_trace_info): Add ID member.
5805 (get_trace_index): Remove. Change users to use ID member.
5806 (before_next_cfi_note): New.
5807 (connect_traces): Remove unreachable traces before the main loop.
5808 Look across one trace and generate remember/restore_state if needed.
5810 2011-07-25 Richard Henderson <rth@redhat.com>
5812 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
5814 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
5816 * genattr.c (write_upcase, gen_attr <enum definition writing>):
5818 * genattr-common.c ... here.
5819 (main): Call gen_attr.
5820 * optc-gen.awk: Make generated program include insn-attr-common.h .
5821 * Makefile.in (oprions.o): Depend on insn-attr-common.h
5823 2011-07-25 Anatoly Sokolov <aesok@post.ru>
5825 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5826 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
5827 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
5828 m32c_print_operand, m32c_print_operand_address): Remove.
5829 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
5830 Change return type to bool. Change argument type to bool.
5831 (m32c_print_operand, m32c_print_operand_address): Make static.
5832 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
5833 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5835 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5837 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
5838 attributes): Document mmap.
5840 2011-07-25 Anatoly Sokolov <aesok@post.ru>
5842 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5843 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
5844 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
5845 mmix_print_operand, mmix_print_operand_address): Remove.
5846 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
5847 Change return type to bool. Change argument type to bool.
5848 (mmix_print_operand, mmix_print_operand_address): Make static.
5849 (mmix_intval, mmix_output_condition): Change 'x' argument type
5851 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
5852 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5854 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
5857 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
5858 shift counter for x << x and x >> x shifts.
5860 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5863 * config.gcc: Reject *-*-solaris2 configuration.
5865 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
5867 PR tree-optimization/49809
5868 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
5869 gimple_get_lhs instead of gimple_assign_lhs.
5871 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5873 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
5875 2011-07-25 Richard Guenther <rguenther@suse.de>
5877 PR tree-optimization/49822
5878 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
5879 more. Make sure to preserve stmts with side-effects. Properly
5880 handle virtual defs, follow a longer def chain.
5882 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
5887 * Makefile.in: Do not flatten c-family directory when installing
5890 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
5892 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
5893 original nodes if we are dealing with virtual clones.
5895 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
5897 * common/config/c6x/c6x-common.c: New file.
5899 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
5901 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
5903 2011-07-25 Richard Guenther <rguenther@suse.de>
5905 PR tree-optimization/49715
5906 * tree-vrp.c: Include expr.h and optabs.h.
5907 (range_fits_type_): New function.
5908 (simplify_float_conversion_using_ranges): Likewise.
5909 (simplify_stmt_using_ranges): Call it.
5910 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
5911 * optabs.c (can_float_p): Export.
5912 * optabs.h (can_float_p): Declare.
5914 2011-07-25 Richard Guenther <rguenther@suse.de>
5916 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
5917 (get_value_range): For out-of-range SSA names or names created
5918 after propagation return a read-only varying range.
5919 (dump_all_value_ranges): Adjust.
5920 (vrp_initialize): Likewise.
5921 (vrp_finalize): Likewise.
5923 2011-07-24 Richard Henderson <rth@redhat.com>
5926 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
5929 2011-07-24 Richard Henderson <rth@redhat.com>
5932 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
5933 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
5935 2011-07-24 Richard Henderson <rth@redhat.com>
5938 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
5940 2011-07-24 Richard Henderson <rth@redhat.com>
5942 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
5943 Zero args_size for abnormal edges. Adjust all callers.
5945 2011-07-24 Richard Henderson <rth@redhat.com>
5948 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
5950 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
5953 * collect2.c (demangle_flag): Removed.
5955 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
5957 * configure.ac (demangler_in_ld): Default to yes.
5958 * configure: Regenerated.
5959 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
5960 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
5961 --no-demangle options straight through to ld. When
5962 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
5963 way that has the intended effect on Windows.
5965 2011-07-23 Richard Henderson <rth@redhat.com>
5967 * dwarf2cfi.c: Include basic-block.h.
5968 (dw_label_info): Remove.
5969 (trace_work_list, trace_index): New.
5970 (remember_row, emit_cfa_remember): Remove.
5971 (dw_trace_info_hash, dw_trace_info_eq): New.
5972 (get_trace_index, get_trace_info): New.
5973 (save_point_p): New.
5974 (free_cfi_row): Remove.
5975 (add_cfi): Do not emit DW_CFA_remember_state.
5976 (cfa_row_equal_p): New.
5977 (barrier_args_size): Remove.
5978 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
5979 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
5980 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
5981 (dwarf2out_cfi_begin_epilogue): Remove.
5982 (dwarf2out_frame_debug_restore_state): Remove.
5983 (connect_traces, create_pseudo_cfg): New.
5984 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
5985 * Makefile.in (dwarf2cfi.o): Update.
5987 2011-07-23 Richard Henderson <rth@redhat.com>
5989 * dwarf2cfi.c (dw_trace_info): New.
5990 (dw_label_info): New.
5991 (cie_return_save): New.
5993 (queued_args_size): Rename from args_size. Update all users.
5994 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
5995 (def_cfa_1): Use cur_trace instead of cfa_*.
5996 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
5997 (clobbers_queued_reg_save, reg_saved_in): Likewise.
5998 (dwarf2out_frame_debug_expr): Likewise.
5999 (create_cie_data): Split out from ...
6000 (execute_dwarf2_frame): ... here. Initialize cur_trace.
6002 2011-07-23 Richard Henderson <rth@redhat.com>
6004 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
6005 Update all users to match.
6006 (execute_dwarf2_frame): Free reg_saved_in_data.
6008 2011-07-23 Richard Henderson <rth@redhat.com>
6010 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
6011 (queued_reg_saves): Don't GTY. Change to a VEC.
6012 (queue_reg_save): Update to match.
6013 (dwarf2out_flush_queued_reg_saves): Likewise.
6014 (clobbers_queued_reg_save): Likewise.
6015 (reg_saved_in): Likewise.
6016 (execute_dwarf2_frame): Free queued_reg_saves.
6018 2011-07-23 Richard Henderson <rth@redhat.com>
6020 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
6022 2011-07-23 Richard Henderson <rth@redhat.com>
6024 * dwarf2cfi.c (add_cfi_args_size): Split out from...
6025 (dwarf2out_args_size): ... here.
6026 (add_cfi_restore): Split out from ...
6027 (dwarf2out_frame_debug_cfa_restore): ... here.
6028 (def_cfa_0): Split out from ...
6029 (def_cfa_1): ... here.
6030 (cfi_oprnd_equal_p, cfi_equal_p): New.
6031 (change_cfi_row): New.
6032 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
6033 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
6034 (output_cfis): Remove.
6035 * dwarf2out.c (output_fde): Simplify output_cfi loop.
6036 (dwarf2out_switch_text_section): Don't call output_cfis.
6037 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
6038 * dwarf2out.h: Update decls.
6039 (enum dw_val_class): Add dw_val_class_none.
6041 2011-07-23 Richard Henderson <rth@redhat.com>
6043 * dwarf2cfi.c (update_row_reg_save): New.
6044 (dwarf2out_frame_debug_cfa_expression): Use it.
6045 (dwarf2out_frame_debug_cfa_restore): Likewise.
6046 (reg_save): Likewise. Do not emit DW_CFA_same_value.
6048 2011-07-23 Richard Henderson <rth@redhat.com>
6050 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
6052 2011-07-23 Richard Henderson <rth@redhat.com>
6054 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
6056 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
6057 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
6058 (cur_row, remember_row): New.
6059 (def_cfa_1): Use cur_row instead of the old_* variables.
6060 (dwarf2out_frame_debug_restore_state): Similarly.
6061 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
6062 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
6063 (dwarf2out_frame_debug_adjust_cfa): Likewise.
6064 (dwarf2out_frame_debug_cfa_offset): Likewise.
6065 (dwarf2out_frame_debug_expr): Likewise.
6066 (execute_dwarf2_frame): Set up cur_row.
6067 * dwarf2out.h (struct cfa_loc): Mark for GTY.
6069 2011-07-23 Richard Henderson <rth@redhat.com>
6071 * basic-block.h (EDGE_PRESERVE): New.
6072 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
6073 * bb-reorder.c: Include except.h.
6074 (fix_up_crossing_landing_pad): New.
6075 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
6076 landing pads in the right partition. Duplicate as necessary.
6077 (partition_hot_cold_basic_blocks): Fix up DF info after
6078 duplicating landing pads.
6079 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
6080 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
6081 is set properly. Validate that EH edges are not CROSSING.
6082 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
6083 (dw2_build_landing_pads): ... here.
6084 (convert_to_eh_region_ranges): Remove code to fixup crossing
6086 * except.h (expand_dw2_landing_pad_for_region): Declare.
6087 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
6089 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
6092 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
6094 2011-07-22 Jason Merrill <jason@redhat.com>
6096 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
6098 2011-07-22 Richard Henderson <rth@redhat.com>
6100 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
6102 2011-07-22 Richard Henderson <rth@redhat.com>
6104 * jump.c (maybe_propagate_label_ref): Split out of...
6105 (mark_all_labels): ... here. Do not attempt label_ref
6106 propagation while in cfglayout mode.
6108 2011-07-22 Jakub Jelinek <jakub@redhat.com>
6110 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
6111 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
6112 (dwarf_attr_name): Handle DW_AT_GNU_macros.
6113 (dwarf2out_define): If the vector is empty and
6114 lineno is 0, emit a dummy entry first.
6115 (dwarf2out_undef): Likewise. Remove redundant semicolon.
6116 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
6117 optimize_macinfo_range): New functions.
6118 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
6119 mergeable, optimize longer strings using
6120 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
6121 optimize longer sequences of define/undef ops from headers
6122 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
6123 emit a section headers.
6124 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
6125 and macinfo_section_label to DEBUG_MACRO_SECTION
6126 resp. DEBUG_MACRO_SECTION_LABEL.
6127 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
6128 instead of DW_AT_macro_info.
6131 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
6133 * dwarf2out.c: Include opts.h.
6134 (dchar_p): New typedef. Define heap VEC for it.
6135 (producer_string): New variable.
6136 (gen_producer_string): New function.
6137 (gen_compile_unit_die): Use it.
6138 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
6139 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
6140 * doc/invoke.texi: Document -grecord-gcc-switches and
6141 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
6142 to -frecord-gcc-switches description.
6144 2011-07-22 Jason Merrill <jason@redhat.com>
6147 * c-decl.c (c_linkage_bindings): Define.
6149 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
6152 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
6154 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
6156 * config/i386/i386.c (ix86_option_override_internal): Disallow
6158 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
6159 only for TARGET_LP64.
6160 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
6162 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
6164 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
6165 avoid warnings when GCC is built with a C++ compiler.
6167 2011-07-22 Martin Jambor <mjambor@suse.cz>
6170 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
6171 if decl node is in another partition, call cgraph_get_node only once.
6173 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
6175 * config.gcc (x86_64-*-linux*): Set
6176 default_gnu_indirect_function to yes.
6178 2011-07-22 Richard Guenther <rguenther@suse.de>
6180 PR tree-optimization/45819
6181 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
6182 preserve volatile and notrap flags.
6184 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6185 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6188 * configure.ac: Test AM_ICONV with CXX.
6189 * configure: Regenerate.
6190 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
6192 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6195 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
6196 (set_cloog_options): Use it.
6198 2011-07-22 Jakub Jelinek <jakub@redhat.com>
6201 * gcc.c (main): Call stack_limit_increase (64MB).
6202 * toplev.c (toplev_main): Likewise.
6204 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
6206 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
6207 instead of force_reg.
6209 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
6211 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
6212 needed and use force_reg after convert.
6213 (ix86_expand_call): Likewise.
6214 (ix86_expand_special_args_builtin): Likewise.
6215 (ix86_expand_builtin): Likewise.
6217 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6221 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
6222 in parameter. Initialize v1 and v2 based on the values returned
6223 by clast_name_to_lb_ub.
6224 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
6226 (type_for_clast_bin): Same.
6227 (type_for_clast_expr): Same.
6228 (type_for_clast_eq): Update calls to type_for_clast_expr.
6229 (type_for_clast_for): Same.
6230 (build_iv_mapping): Same.
6231 * graphite-ppl.h (value_min): New.
6233 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6235 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
6236 types whenever possible.
6238 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6240 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
6242 (new_clast_name_index): Add lb and ub parameters.
6243 (free_clast_name_index): New.
6244 (clast_name_to_lb_ub): New.
6245 (save_clast_name_index): Add lb and ub parameters.
6246 (compute_bounds_for_param): New.
6247 (type_for_level): Removed.
6248 (type_for_clast_for): Removed level parameter. Do not call
6250 (graphite_create_new_loop): Store the lb and ub for the clast_name
6251 of the iterator of the loop that has been generated.
6252 (graphite_create_new_loop_guard): Remove parameter level.
6253 (create_params_index): Store the lb and ub of each parameter.
6254 (gloog): Use free_clast_name_index. Pass to create_params_index
6257 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6259 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
6260 (max_precision_type): Inline max_signed_precision_type.
6261 (type_for_clast_red): Use max_precision_type.
6262 (type_for_clast_bin): Same.
6263 (type_for_clast_for): Same.
6265 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6267 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
6269 (gcc_type_for_value): Renamed type_for_value.
6270 (gcc_type_for_clast_term): Renamed type_for_clast_term.
6271 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
6272 (gcc_type_for_clast_red): Renamed type_for_clast_red.
6273 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
6274 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
6275 (graphite_translate_clast_equation): Update calls.
6276 (compute_type_for_level): Renamed type_for_level.
6277 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
6278 (build_iv_mapping): Update calls.
6279 (graphite_create_new_loop_guard): Same.
6281 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6283 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
6286 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6288 * graphite-clast-to-gimple.c (struct ivs_params): New.
6289 (clast_name_to_gcc): Use ivs_params to pass around parameters.
6290 (clast_to_gcc_expression): Same.
6291 (clast_to_gcc_expression_red): Same.
6292 (gcc_type_for_clast_term): Same.
6293 (gcc_type_for_clast_expr): Same.
6294 (gcc_type_for_clast_red): Same.
6295 (gcc_type_for_clast_bin): Same.
6296 (gcc_type_for_clast_eq): Same.
6297 (graphite_translate_clast_equation): Same.
6298 (graphite_create_guard_cond_expr): Same.
6299 (graphite_create_new_guard): Same.
6300 (graphite_create_new_loop): Same.
6301 (build_iv_mapping): Same.
6302 (translate_clast_user): Same.
6303 (graphite_create_new_loop_guard): Same.
6304 (translate_clast): Same.
6305 (translate_clast_for_loop): Same.
6306 (translate_clast_for): Same.
6307 (translate_clast_guard): Same.
6308 (initialize_cloog_names): Fix typo.
6309 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
6311 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6313 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
6314 (new_clast_name_index): Add level parameter.
6315 (clast_name_to_level): New.
6316 (save_clast_name_index): Add level parameter.
6317 (newivs_to_depth_to_newiv): Removed.
6318 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
6319 (graphite_create_new_loop): Add level parameter. Pass level to
6320 save_clast_name_index.
6321 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
6322 (create_params_index): Pass level to save_clast_name_index.
6324 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6326 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
6327 recompute type, lb, and ub. Get them from...
6328 (graphite_create_new_loop_guard): ...here. Pass in parameter
6329 pointers to type, lb, and ub.
6330 (translate_clast_for_loop): Update function calls.
6331 (translate_clast_for): Same.
6333 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6335 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
6337 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
6338 (gcc_type_for_iv_of_clast_loop): Update use of level.
6339 (gloog): Start counting nesting level from 0.
6340 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
6341 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
6342 psct_dynamic_dim on level.
6344 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
6346 * config/i386/i386.c (ix86_legitimize_address): Convert to
6349 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
6351 * config/i386/i386.c (function_value_64): Always return pointers
6353 (ix86_promote_function_mode): New.
6354 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
6356 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6358 PR tree-optimization/49749
6359 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
6360 remove no-longer-used maxrank variable.
6362 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
6364 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
6366 2011-07-21 Jason Merrill <jason@redhat.com>
6368 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
6369 * recog.h (struct insn_data_d): Check it instead of
6370 HAVE_DESIGNATED_INITIALIZERS.
6371 * genoutput.c (output_insn_data): Likewise.
6373 2011-07-21 Richard Guenther <rguenther@suse.de>
6375 PR tree-optimization/49770
6376 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
6377 valueized any operand. Renamed from ...
6378 (valueize_refs): ... this. New wrapper around valueize_refs_1.
6379 (valueize_shared_reference_ops_from_ref): Return whether we
6380 valueized any operand.
6381 (vn_reference_lookup): Only when we valueized any operand
6382 use the valueized reference for alias analysis. Do not preserve
6383 the original reference tree in this case.
6385 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
6387 * config/i386/i386.c (ix86_decompose_address): Reject all but
6388 register operands and subregs of DImode hard registers in index.
6390 2011-07-21 Kai Tietz <ktietz@redhat.com>
6392 * fold-const.c (fold_unary_loc): Preserve indirect
6393 comparison cast to none-boolean type.
6394 * tree-ssa.c (useless_type_conversion_p): Preserve cast
6395 from/to boolean-type.
6396 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
6397 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
6398 * tree-cfg.c (verify_gimple_comparison): Check result
6399 type of comparison expression.
6400 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
6401 of condition result and disallow type-cast sinking into comparison.
6403 2011-07-21 Richard Guenther <rguenther@suse.de>
6405 * tree-ssa-forwprop.c (combine_conversions): Return whether
6406 we have to run cfg-cleanup. Properly remove dead stmts.
6407 (ssa_forward_propagate_and_combine): Adjust.
6409 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
6411 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
6413 2011-07-21 Kai Tietz <ktietz@redhat.com>
6415 * tree-ssa-propagate.c (substitute_and_fold): Use
6416 do_dce flag to deside, if BB's statements are scanned
6417 in last to first, or first to last order.
6419 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
6421 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
6423 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
6424 Uros Bizjak <ubizjak@gmail.com>
6425 Richard Henderson <rth@redhat.com>
6427 * config/i386/constraints.md (w): New.
6429 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
6430 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
6432 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
6433 instead of TARGET_64BIT.
6435 * config/i386/i386.md (indirect_jump): Replace
6436 nonimmediate_operand with indirect_branch_operand.
6437 (*indirect_jump): Likewise. Replace constraint "m" with "w".
6438 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
6439 Convert operand 0 to Pmode for x32 if not PIC.
6440 (*tablejump_1): Replace nonimmediate_operand with
6441 indirect_branch_operand. Replace constraint "m" with "w".
6442 (*call_vzeroupper): Replace constraint "m" with "w".
6444 (*call_rex64_ms_sysv_vzeroupper): Likewise.
6445 (*call_rex64_ms_sysv): Likewise.
6446 (*call_value_vzeroupper): Likewise.
6447 (*call_value): Likewise.
6448 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
6449 (*call_value_rex64_ms_sysv): Likewise.
6450 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
6452 * config/i386/predicates.md (indirect_branch_operand): New.
6453 (call_insn_operand): Support x32.
6455 2011-07-20 Michael Eager <eager@eagercon.com>
6457 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
6459 2011-07-20 Richard Henderson <rth@redhat.com>
6461 * cfg.c (dump_bb_info): Dump basic_block->flags.
6462 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
6464 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
6466 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6467 of DImode hard registers in index.
6468 (ix86_legitimate_address_p): Allow subregs of base and index to span
6469 more than a word. Assert that subregs of base and index satisfy
6470 register_no_elim_operand predicates. Reject addresses where
6471 base and index have different modes.
6473 2011-07-20 Robert Millan <rmh@gnu.org>
6475 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
6477 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6479 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
6480 removing now-unnecessary assignment.
6482 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6484 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
6485 memory address space to the type's address space.
6487 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
6491 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
6492 and expand appropriately if there is a CONST_INT in operand2.
6493 (usmulqihi3): New insn.
6494 (*sumulqihi3): New insn.
6495 (*osmulqihi3): New insn.
6496 (*oumulqihi3): New insn.
6497 (*muluqihi3.uconst): New insn_and_split.
6498 (*muluqihi3.sconst): New insn_and_split.
6499 (*mulsqihi3.sconst): New insn_and_split.
6500 (*mulsqihi3.uconst): New insn_and_split.
6501 (*mulsqihi3.oconst): New insn_and_split.
6502 (*ashifthi3.signx.const): New insn_and_split.
6503 (*ashifthi3.signx.const7): New insn_and_split.
6504 (*ashifthi3.zerox.const): New insn_and_split.
6505 (mulsqihi3): New insn.
6506 (muluqihi3): New insn.
6507 (muloqihi3): New insn.
6508 * config/avr/predicates.md (const_2_to_7_operand): New.
6509 (const_2_to_6_operand): New.
6514 (register_or_s9_operand): New.
6516 2011-07-20 Kai Tietz <ktietz@redhat.com>
6518 * builtins.c (fold_builtin_expect): See through the cast
6519 from truthvalue_type_node to long.
6521 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
6523 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
6524 where we can use them from the standard and altivec instruction
6525 sets, instead of always using the 3 operand VSX forms that require
6526 the destination to overlap one of the inputs.
6531 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
6533 (fmsdf4_fpr): Ditto.
6534 (nfmadf4_fpr): Ditto.
6535 (nfmsdf4_fpr): Ditto.
6537 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
6539 * genrecog.c (make_insn_sequence): Correct position numbering
6540 when filtering out match_scratch and match_dup.
6542 2011-07-20 Richard Guenther <rguenther@suse.de>
6544 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
6545 against already removed statements.
6546 (forward_propagate_into_comparison): Remove dead defining stmts.
6547 (forward_propagate_into_gimple_cond): Likewise.
6548 (forward_propagate_into_cond): Simplify.
6549 (ssa_forward_propagate_and_combine): Handle changed cfg from
6550 forward_propagate_into_comparison.
6551 * tree-ssa-phiopt.c (conditional_replacement): Use proper
6552 locations for newly built statements.
6554 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
6556 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
6558 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6560 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
6561 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
6563 2011-07-20 Richard Guenther <rguenther@suse.de>
6566 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
6567 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
6568 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
6570 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
6572 * config/frv/frv.c (frv_register_move_cost): Define explicitly
6573 costs for subclasses of GR_REGS.
6575 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
6578 * config/i386/predicates.md (no_seg_addres_operand): No more special.
6579 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6580 of DImode hard registers in base.
6581 (ix86_legitimate_address_p): Allow SImode and DImode base and index
6584 2011-07-20 Richard Guenther <rguenther@suse.de>
6586 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
6587 (unify_nodes): Deal with that.
6588 (solve_graph): Likewise.
6590 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
6592 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
6593 canonicalize left operand from ZERO_EXTEND to AND.
6595 2011-07-20 Anatoly Sokolov <aesok@post.ru>
6597 * target.def (class_max_nregs): New hook.
6598 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
6599 * doc/tm.texi: Regenerate.
6600 * targhooks.c (default_class_max_nregs): New function.
6601 * targhooks.h (default_class_max_nregs): Declare.
6602 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
6603 x_ira_reg_class_min_nregs arrays to unsigned char.
6604 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
6605 hook instead of CLASS_MAX_NREGS macro.
6606 * reginfo.c (restore_register_info): Ditto.
6607 * ira-conflicts.c (process_regs_for_copy): Use
6608 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
6609 Change type rclass and aclass vars to reg_class_t.
6610 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
6611 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
6613 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
6614 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
6616 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
6617 * config/i386/i386.c (ix86_class_max_nregs): New function.
6618 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
6619 instead of CLASS_MAX_NREGS macro.
6620 (TARGET_CLASS_MAX_NREGS): Define.
6621 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
6622 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
6623 * config/avr/avr.c (class_max_nregs): Remove function.
6624 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
6625 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
6626 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
6627 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
6628 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
6629 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
6630 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
6631 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
6632 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
6633 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
6634 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
6635 * config/score/score.h (CLASS_MAX_NREGS): Remove.
6636 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
6637 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
6638 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
6640 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
6642 * cif-code.def (OVERWRITABLE): Fix typo and move around.
6643 (TARGET_OPTIMIZATION_MISMATCH): Delete.
6644 (EH_PERSONALITY): Fix typo.
6645 (NON_CALL_EXCEPTIONS): Fix message.
6646 (OPTIMIZATION_MISMATCH): Adjust message.
6647 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
6649 2011-07-19 Ian Lance Taylor <iant@google.com>
6651 * doc/install.texi (Configuration): Document
6652 --enable-build-poststage1-with-cxx.
6654 2011-07-19 Robert Millan <rmh@gnu.org>
6656 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
6657 (GLIBC_DYNAMIC_LINKER): Remove.
6659 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
6660 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
6661 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
6662 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
6663 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
6664 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
6666 * config/mips/linux.h: Remove everything except for ...
6667 (GLIBC_DYNAMIC_LINKER): ... this macro.
6669 * config/mips/linux64.h: Remove everything except for ...
6670 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
6671 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
6672 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
6673 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
6674 (GNU_USER_LINK_EMULATIONN32): New macros.
6676 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
6677 Use the new headers.
6679 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6681 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
6682 Add offset_known_p and size_known_p fields.
6683 (MEM_OFFSET_KNOWN_P): Update accordingly.
6684 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
6685 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
6686 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
6687 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
6688 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
6689 (init_emit_regs): Likewise.
6691 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6693 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
6694 (MEM_OFFSET): Change from returning an rtx to returning a
6696 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
6697 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
6698 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
6699 (clear_mem_offset): Declare.
6700 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
6701 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
6702 MEM_OFFSET to get a HOST_WIDE_INT offset.
6703 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
6704 (adjust_offset_for_component_ref): Take a bool "known_p"
6705 parameter and a HOST_WIDE_INT "offset" parameter.
6706 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
6707 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
6708 than an rtx. Use clear_mem_offset to clear the offset.
6709 * cfgcleanup.c (merge_memattrs): Likewise.
6710 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
6711 * function.c (assign_parm_find_stack_rtl): Likewise.
6712 (assign_parm_setup_stack): Likewise.
6713 * print-rtl.c (print_rtx): Likewise.
6714 * reload.c (find_reloads_subreg_address): Likewise.
6715 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
6716 * var-tracking.c (INT_MEM_OFFSET): Likewise.
6717 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
6718 (get_mem_align_offset): Likewise.
6719 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
6720 (clear_mem_offset): New function.
6721 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
6722 offset rather than an rtx. Assume both the expressio and offset
6724 (r10k_needs_protection_p_1): Update accordingly, checking the
6725 expression and offset availability here instead.
6727 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6729 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
6730 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
6731 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
6732 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
6733 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
6734 (clear_mem_size): Declare.
6735 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
6736 (clear_mem_size): New function.
6737 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
6738 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
6739 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
6740 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
6742 (nonoverlapping_memrefs_p): Likewise.
6743 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
6744 (expand_builtin_init_trampoline): Likewise.
6745 * calls.c (compute_argument_addresses): Likewise.
6746 * cfgcleanup.c (merge_memattrs): Likewise.
6747 * dce.c (find_call_stack_args): Likewise.
6748 * dse.c (record_store, scan_insn): Likewise.
6749 * dwarf2out.c (dw_sra_loc_expr): Likewise.
6750 * expr.c (emit_block_move_hints): Likewise.
6751 * function.c (assign_parm_find_stack_rtl): Likewise.
6752 * print-rtl.c (print_rtx): Likewise.
6753 * reload.c (find_reloads_subreg_address): Likewise.
6754 * rtlanal.c (may_trap_p_1): Likewise.
6755 * var-tracking.c (track_expr_p): Likewise.
6756 * varasm.c (assemble_trampoline_template): Likewise.
6757 * config/arm/arm.c (arm_print_operand): Likewise.
6758 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
6759 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
6760 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
6761 (expand_constant_setmem_prologue): Likewise.
6762 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
6763 * config/rs6000/rs6000.c (expand_block_move): Likewise.
6764 (adjacent_mem_locations): Likewise.
6765 * config/s390/s390.c (s390_expand_setmem): Likewise.
6766 (s390_expand_insv): Likewise.
6767 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
6768 (*extendqi<mode>2_short_displ): Likewise.
6769 * config/sh/sh.c (expand_block_move): Likewise.
6770 * config/sh/sh.md (extv, extzv): Likewise.
6772 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6774 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
6775 (mem_attrs_htab_eq): ...here.
6776 (find_mem_attrs): Replace with...
6777 (set_mem_attrs): ...this function. Take a mem_attrs structure
6778 rather than individual fields.
6779 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
6780 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
6781 (set_mem_size, change_address, adjust_address_1, offset_address)
6782 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
6785 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6787 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
6788 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
6789 Provide a dummy definition of MEM_ADDR_SPACE for generators.
6790 (target_rtl): Add x_mode_mem_attrs.
6791 (mode_mem_attrs): New macro.
6792 (get_mem_attrs): New function.
6793 * emit-rtl.c (get_mem_attrs): Rename to...
6794 (find_mem_attrs): ...this.
6795 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
6796 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
6797 (set_mem_size, change_address, adjust_address_1, offset_address)
6798 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
6800 (init_emit_regs): Initialize mode_mem_attrs.
6802 2011-07-19 Richard Guenther <rguenther@suse.de>
6804 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
6805 TRUTH_*_EXPR handling.
6806 * tree-ssa-operands.c (get_expr_operands): Likewise.
6807 * tree-ssa-pre.c (fully_constant_expression): Likewise.
6808 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
6810 (is_and_or_or): Likewise.
6811 (is_norm_cond_subset_of): Likewise.
6813 2011-07-19 Richard Guenther <rguenther@suse.de>
6815 * tree.h (fold_build_pointer_plus_loc): New helper function.
6816 (fold_build_pointer_plus_hwi_loc): Likewise.
6817 (fold_build_pointer_plus): Define.
6818 (fold_build_pointer_plus_hwi): Likewise.
6819 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
6820 (fold_builtin_memory_op): Likewise.
6821 (fold_builtin_stpcpy): Likewise.
6822 (fold_builtin_memchr): Likewise.
6823 (fold_builtin_strstr): Likewise.
6824 (fold_builtin_strchr): Likewise.
6825 (fold_builtin_strrchr): Likewise.
6826 (fold_builtin_strpbrk): Likewise.
6827 (fold_builtin_strcat): Likewise.
6828 (expand_builtin_memory_chk): Likewise.
6829 (fold_builtin_memory_chk): Likewise.
6830 * c-typeck.c (build_unary_op): Likewise.
6831 * cgraphunit.c (thunk_adjust): Likewise.
6832 * fold-const.c (build_range_check): Likewise.
6833 (fold_binary_loc): Likewise.
6834 * omp-low.c (extract_omp_for_data): Likewise.
6835 (expand_omp_for_generic): Likewise.
6836 (expand_omp_for_static_nochunk): Likewise.
6837 (expand_omp_for_static_chunk): Likewise.
6838 * tree-affine.c (add_elt_to_tree): Likewise.
6839 * tree-data-ref.c (split_constant_offset_1): Likewise.
6840 * tree-loop-distribution.c (generate_memset_zero): Likewise.
6841 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
6842 * tree-predcom.c (ref_at_iteration): Likewise.
6843 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
6844 (add_to_parts): Likewise.
6845 (create_mem_ref): Likewise.
6846 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
6847 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
6848 (number_of_iterations_le): Likewise.
6849 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
6850 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
6851 (vect_create_addr_base_for_vector_ref): Likewise.
6852 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
6853 (vect_create_cond_for_alias_checks): Likewise.
6854 * tree-vrp.c (extract_range_from_assert): Likewise.
6855 * config/alpha/alpha.c (alpha_va_start): Likewise.
6856 (alpha_gimplify_va_arg_1): Likewise.
6857 * config/i386/i386.c (ix86_va_start): Likewise.
6858 (ix86_gimplify_va_arg): Likewise.
6859 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6860 * config/mep/mep.c (mep_expand_va_start): Likewise.
6861 (mep_gimplify_va_arg_expr): Likewise.
6862 * config/mips/mips.c (mips_va_start): Likewise.
6863 (mips_gimplify_va_arg_expr): Likewise.
6864 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6865 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
6866 (rs6000_gimplify_va_arg): Likewise.
6867 * config/s390/s390.c (s390_va_start): Likewise.
6868 (s390_gimplify_va_arg): Likewise.
6869 * config/sh/sh.c (sh_va_start): Likewise.
6870 (sh_gimplify_va_arg_expr): Likewise.
6871 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
6872 * config/spu/spu.c (spu_va_start): Likewise.
6873 (spu_gimplify_va_arg_expr): Likewise.
6874 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
6876 (xstormy16_gimplify_va_arg_expr): Likewise.
6877 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
6878 (xtensa_gimplify_va_arg_expr): Likewise.
6880 2011-07-19 Richard Guenther <rguenther@suse.de>
6882 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
6883 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
6887 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
6888 result of BIT_*_EXPR to bitfield precision.
6890 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
6892 PR tree-optimization/49742
6893 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
6894 as a potential write.
6896 2011-07-19 Richard Guenther <rguenther@suse.de>
6898 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
6899 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
6900 (forward_propagate_comparison): Simplify, remove obsolete code.
6902 2011-07-19 Richard Guenther <rguenther@suse.de>
6904 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
6905 BIT_XOR_EXPR, same as the RTL expander does.
6906 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
6907 (verify_gimple_assign_unary): Likewise.
6908 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
6909 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
6910 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
6912 2011-07-19 Jakub Jelinek <jakub@redhat.com>
6914 PR tree-optimization/49768
6915 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
6916 if offset is smaller than bitoffset, but offset+size is bigger
6919 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
6921 PR tree-optimization/49771
6922 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
6923 zero step, set segment length to the size of the data-ref's type.
6925 2011-07-18 Martin Jambor <mjambor@suse.cz>
6927 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
6929 (ipcp_values_pool): Declare.
6930 (ipcp_sources_pool): Likewise.
6931 (ipcp_lattice): Changed to forward declaration.
6932 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
6933 cannot_devirtualize.
6934 (ipa_node_params): New fields descriptors, lattices, known_vals,
6935 clone_for_all_contexts and node dead, removed fields params and
6937 (ipa_set_param_count): Removed.
6938 (ipa_get_param_count): Made to work with descriptors vector.
6939 (ipa_get_param): Updated.
6940 (ipa_param_cannot_devirtualize_p): Removed.
6941 (ipa_param_types_vec_empty): Likewise.
6942 (ipa_set_param_used): New function.
6943 (ipa_get_param_used): Updated to use descriptors vector.
6944 (ipa_func_list): Removed.
6945 (ipa_init_func_list): Removed declaration.
6946 (ipa_push_func_to_list_1): Likewise.
6947 (ipa_pop_func_from_list): Likewise.
6948 (ipa_push_func_to_list): Removed.
6949 (ipa_lattice_from_jfunc): Remove declaration.
6950 (ipa_get_jf_pass_through_result): Declare.
6951 (ipa_get_jf_ancestor_result): Likewise.
6952 (ipa_value_from_jfunc): Likewise.
6953 (ipa_get_lattice): Update.
6954 (ipa_lat_is_single_const): New function.
6955 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
6956 (ipa_init_func_list): Likewise.
6957 (ipa_pop_func_from_list): Likewise.
6958 (ipa_get_param_decl_index): Fix coding style.
6959 (count_formal_params): Removed.
6960 (count_formal_params_1): Renamed to count_formal_params.
6961 (ipa_populate_param_decls): Update to use descriptors vector.
6962 (ipa_initialize_node_params): Likewise.
6963 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
6964 (ipa_analyze_params_uses): Likewise.
6965 (ipa_free_node_params_substructures): Likewise and free also lattices
6967 (duplicate_array): Removed.
6968 (ipa_edge_duplication_hook): Add the new edge to the list of edge
6970 (ipa_node_duplication_hook): Update to use new lattices.
6971 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
6972 (ipa_free_all_structures_after_iinln): Likewise.
6973 (ipa_write_node_info): Update to use new lattices.
6974 (ipa_read_node_info): Likewise.
6975 (ipa_get_jf_pass_through_result): New function.
6976 (ipa_get_jf_ancestor_result): Likewise.
6977 (ipa_value_from_jfunc): Likewise.
6978 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
6979 * ipa-cp.c: Reimplemented.
6980 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
6981 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
6982 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
6983 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
6984 * doc/invoke.texi (devirt-type-list-size): Removed description.
6985 (ipa-cp-value-list-size): Added description.
6987 2011-07-18 Richard Henderson <rth@redhat.com>
6989 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
6990 before calling create_basic_block.
6992 2011-07-18 Jakub Jelinek <jakub@redhat.com>
6995 * tree.c (build_common_builtin_nodes): Register
6996 __builtin_return_address, __cyg_profile_func_enter
6997 and __cyg_profile_func_exit.
6999 2011-07-18 Richard Henderson <rth@redhat.com>
7001 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
7002 (add_labels_and_missing_jumps): ... here.
7003 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
7005 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
7008 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
7009 of DImode hard registers in PLUS address chains.
7011 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7014 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
7015 (alpha*-*-freebsd*): Likewise.
7016 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
7017 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
7018 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
7019 crtprec80.o, crtfastmath.o to extra_parts for all targets.
7020 (ia64*-*-elf*): Remove extra_parts.
7021 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
7022 (sparc64-*-linux*): Likewise.
7023 (sparc64-*-freebsd*): Likewise.
7026 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
7027 (ia64*-*-linux*): Likewise.
7028 (mips64*-*-linux*): Likewise.
7029 (mips*-*-linux*): Likewise.
7031 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
7033 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
7035 2011-07-18 Richard Guenther <rguenther@suse.de>
7037 * gimplify.c (gimplify_expr): Use input_location, not saved_location
7038 when building new trees.
7040 2011-07-18 Richard Guenther <rguenther@suse.de>
7042 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
7043 expansion result to bitfield precision if required.
7045 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7047 * config.gcc (i[3456x]86-*-netware*): Remove.
7049 * gthr-nks.h: Remove.
7050 * configure.ac (enable_threads): Remove nks.
7051 * configure: Regenerate.
7053 * config/i386/i386.c (ix86_encode_section_info): Remove netware
7055 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
7056 <netware.h> reference.
7058 * config/i386/netware-libgcc.c,
7059 gcc/config/i386/netware-libgcc.def,
7060 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
7061 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
7062 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
7063 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
7065 * doc/extend.texi (Function Attributes,
7066 callee_pop_aggregate_return): Remove i?86-netware reference.
7067 * doc/install.texi (Configuration, --enable-threads): Remove nks.
7069 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7073 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7075 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
7078 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
7081 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
7083 2011-07-16 Matthias Klose <doko@ubuntu.com>
7085 * doc/install.texi: Document --enable-static-libjava.
7087 2011-07-15 Richard Henderson <rth@redhat.com>
7089 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
7090 Replace all three arguments by returning a VEC of edges.
7091 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
7092 pointers and counts.
7093 (fix_edges_for_rarely_executed_code): Merge ...
7094 (rest_of_handle_partition_blocks): ... into...
7095 (partition_hot_cold_basic_blocks): ... here. Return todo items if
7096 any work was performed.
7097 (pass_partition_blocks): Clear todo_flags_finish.
7099 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
7100 Jakub Jelinek <jakub@redhat.com>
7101 Jonathan Wakely <jwakely.gcc@gmail.com>
7104 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
7105 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
7107 2011-07-15 Jason Merrill <jason@redhat.com>
7110 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
7111 rather than --tool_opts.
7113 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
7115 * doc/plugins.texi (Building GCC plugins): gengtype needs its
7116 corresponding gtype.state.
7118 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7121 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
7123 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
7126 * doc/md.texi (Standard Names): Document window_save.
7127 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
7128 expand_debug_expr and expand_debug_source_expr. If the target has
7129 a window_save instruction, adjust the ENTRY_VALUE_EXP.
7130 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
7131 SSA_NAME_VAR is a parameter.
7132 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
7133 * var-tracking.c (parm_reg_t): New type and associated vector type.
7134 (windowed_parm_regs): New variable.
7135 (adjust_insn): If the target has a window_save instruction and this
7136 is the instruction, make its effect on parameter registers explicit.
7137 (next_non_note_insn_var_location): New function.
7138 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
7139 (vt_add_function_parameter): If the target has a window_save insn,
7140 adjust the incoming RTL and record that in windowed_parm_regs.
7141 (vt_finalize): Free windowed_parm_regs.
7143 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
7145 * doc/invoke.texi (C6X Options): New section.
7146 * doc/md.texi (TI C6X family): New section.
7147 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
7149 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
7150 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
7151 Provide C6X definitions.
7152 * config/c6x/c6x.md: New file.
7153 * config/c6x/constraints.md: New file.
7154 * config/c6x/predicates.md: New file.
7155 * config/c6x/c6x-sched.md.in: New file.
7156 * config/c6x/c6x-sched.md: New file.
7157 * config/c6x/gensched.sh: New file.
7158 * config/c6x/c6x-mult.md.in: New file.
7159 * config/c6x/genmult.sh: New file.
7160 * config/c6x/c6x-mult.md: New file.
7161 * config/c6x/sync.md: New file.
7162 * config/c6x/c6x-protos.h: New file.
7163 * config/c6x/sfp-machine.h: New file.
7164 * config/c6x/c6x.c: New file.
7165 * config/c6x/c6x.h: New file.
7166 * config/c6x/crti.s: New file.
7167 * config/c6x/crtn.s: New file.
7168 * config/c6x/lib1funcs.asm: New file.
7169 * config/c6x/c6x-modes.def: New file.
7170 * config/c6x/genopt.sh: New file.
7171 * config/c6x/c6x.opt: New file.
7172 * config/c6x/c6x-tables.opt: New file.
7173 * config/c6x/c6x-opts.h: New file.
7174 * config/c6x/c6x-isas.def: New file.
7175 * config/c6x/elf.h: New file.
7176 * config/c6x/elf-common.h: New file.
7177 * config/c6x/uclinux-elf.h: New file.
7178 * config/c6x/t-c6x: New file.
7179 * config/c6x/t-c6x-elf: New file.
7180 * config/c6x/t-c6x-uclinux: New file.
7181 * config/c6x/t-c6x-softfp: New file.
7182 * config/c6x/gtd.c: New file.
7183 * config/c6x/gtf.c: New file.
7184 * config/c6x/ltd.c: New file.
7185 * config/c6x/ltf.c: New file.
7186 * config/c6x/ged.c: New file.
7187 * config/c6x/gef.c: New file.
7188 * config/c6x/led.c: New file.
7189 * config/c6x/lef.c: New file.
7190 * config/c6x/eqd.c: New file.
7191 * config/c6x/eqf.c: New file.
7192 * config/c6x/libgcc-c6xeabi.ver: New file.
7195 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
7196 PR rtl-optimization/11320
7197 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
7198 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
7199 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
7200 current_sched_info->compute_jump_reg_dependencies. Record which
7201 registers are used and which registers are set by the jump.
7202 Clear deps->reg_conditional_sets after a barrier.
7203 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
7204 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
7205 (init_deps): Initialize reg_conditional_sets.
7206 (free_deps): Clear reg_conditional_sets.
7207 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
7208 Mark registers live on entry of the fallthrough block and conditionally
7209 set as set by the jump. Mark registers live on entry of non-fallthrough
7210 blocks as used by the jump.
7211 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
7212 Mark new parameters as unused.
7214 2011-07-14 Andrew Pinski <pinskia@gmail.com>
7217 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
7218 Use fold_build2_loc instead of build2.
7219 Use the correct type for the new tree.
7221 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
7223 PR rtl-optimization/11320
7224 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
7225 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
7227 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
7230 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
7232 (*rotw<mode>): Use const_int_operand for operand2.
7233 Use match_scatch for operand3.
7234 (*rotb<mode>): Ditto
7235 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
7237 2011-07-14 Richard Guenther <rguenther@suse.de>
7239 PR tree-optimization/49651
7240 * tree-ssa-structalias.c (get_constraint_for_1): Properly
7241 handle dereferences with subvariables.
7243 2011-07-14 Richard Guenther <rguenther@suse.de>
7245 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
7246 (fold_stmt_1): Do it here directly on gimple and as a first thing.
7248 2011-07-14 Richard Guenther <rguenther@suse.de>
7250 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
7251 not bool_var when folding bool_var != 1 or bool_var == 0.
7253 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
7255 * haifa-sched.c (schedule_insns): Remove outdated comment.
7256 (schedule_block): When computing a known value for TODO_SPEC,
7257 just set it rather than using logical operations.
7258 (try_ready): Likewise. Use a local variable rather than a
7259 pointer to TODO_SPEC. Reorder an if statement to move the
7260 easy case to the then block.
7261 * sched-deps.c (dep_spec_p): New static function.
7262 (update_dep): Use it to decide whether to call
7263 change_spec_dep_to_hard.
7264 (get_back_and_forw_lists): Use it.
7265 (sd_resolve_dep): Likewise.
7266 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
7267 (haifa_note_mem_dep): Likewise.
7268 (check_dep): Likewise.
7269 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
7270 (sched_free_deps): Free in two passes.
7272 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
7275 * expr.c (all_zeros_p): Undo bogus part of last change.
7277 2011-07-14 Matthias Klose <doko@ubuntu.com>
7279 * doc/extend.texi (optimize attribute): Fix typo.
7281 2011-07-14 Richard Guenther <rguenther@suse.de>
7283 * gimplify.c (gimplify_expr): Only do required conversions.
7285 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
7288 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
7289 i.e. use default_elf_select_section.
7290 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
7291 (READONLY_DATA_SECTION_ASM_OP): Remove.
7292 (TARGET_ASM_NAMED_SECTION): Move from here...
7293 * config/avr/avr.c: ...to here.
7294 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
7295 (avr_asm_named_section): Make static.
7297 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7300 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
7301 and crtfastmath.o for Linux/x86.
7303 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
7305 * haifa-sched.c: Include "hashtab.h"
7306 (sched_no_dce): New global variable.
7307 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
7308 SHADOW_P): New macros.
7309 (last_clock_var, cycle_issued_insns): Move declarations.
7310 (must_backtrack): New static variable.
7311 (struct delay_pair): New structure.
7312 (delay_htab, delay_htab_i2): New static variables.
7313 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
7314 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
7316 (dep_cost_1): If delay pairs exist, try to look up the insns and
7317 use the correct pair delay if we find them.
7318 (rank-for_schedule): Tweak priority for insns that must be scheduled
7319 soon to avoid backtracking.
7320 (queue_insn): Detect conditions which force backtracking.
7321 (ready_add): Likewise.
7322 (struct sched_block_state): Add member shadows_only_p.
7323 (struct haifa_save_data): New structure.
7324 (backtrack_queue): New static variable.
7325 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
7326 unschedule_insns_until, restore_last_backtrack_point,
7327 free_topmost_backtrack_point, free_backtrack_queue,
7328 estimate_insn_tick, estimate_shadow_tick): New functions.
7329 (prune_ready_list): New arg shadows_only_p. All callers changed.
7330 If true, remove everything that isn't SHADOW_P. Look up delay
7331 pairs and estimate ticks to avoid scheduling the first insn too early.
7332 (verify_shadows): New function.
7333 (schedule_block): Add machinery to enable backtracking.
7334 (sched_init): Take sched_no_dce into account when setting
7336 (free_delay_pairs): New function.
7337 (init_h_i_d): Initialize INSN_EXACT_TICK.
7338 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
7339 * sched-deps.c (sd_unresolve_dep): New function.
7340 * sched-int. (struct haifa_sched_info): New fields save_state
7342 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
7343 feeds_backtrack_insn and shadow_p.
7344 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
7345 (sched_no_dce): Declare variable.
7346 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
7347 sd_unresolve_dep): Declare functions.
7348 * modulo-sched.c (sms_sched_info): Clear the two new fields.
7349 * sched-rgn.c (rgn_const_sched_info): Likewise.
7350 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7351 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
7352 (ebb_sched_info): Add them for the two new fields.
7353 (add_deps_for_risky_insns): Call add_delay_dependencies.
7355 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
7357 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
7359 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
7360 (rs6000_call_indirect_aix): Ditto.
7361 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
7362 (call_indirect_aix<ptrsize>_internal): Ditto.
7363 (call_indirect_aix<ptrsize>_nor11): Ditto.
7364 (call_indirect_aix<ptrsize>_internal2): Ditto.
7365 (call_value_indirect_aix<ptrsize>): Ditto.
7366 (call_value_indirect_aix<ptrsize>_internal): Ditto.
7367 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
7368 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
7369 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
7371 2011-07-13 Jason Merrill <jason@redhat.com>
7373 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
7375 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7377 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
7378 * config/spu/spu.md ("clrsb<mode>2"): New expander.
7380 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
7382 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
7383 * configure: Regenerate.
7385 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7387 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
7388 (asm_file_start): Remove.
7389 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
7390 free_bb_for_insn around code that modifies insns before
7391 restarting df analysis.
7393 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7396 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
7397 (LINK_SPEC): ... here.
7399 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
7401 * haifa-sched.c (struct sched_block_state): New.
7402 (schedule_block): Move some local variables into such a structure.
7404 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7406 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
7407 * config/i386/t-crtpc: Remove.
7408 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
7409 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
7411 (x86_64-*-darwin*): Likewise.
7412 (i[34567]86-*-linux*): Likewise.
7413 (x86_64-*-linux*): Likewise.
7415 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
7416 Handle -mpc32, -mpc64, -mpc80.
7418 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7420 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
7421 * config/alpha/t-crtfm: Remove.
7422 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
7423 * config/i386/t-crtfm: Remove.
7424 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
7425 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
7426 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
7427 * config/sparc/t-crtfm: Remove.
7429 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
7430 (alpha*-*-freebsd*): Likewise.
7431 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
7432 (x86_64-*-darwin*): Likewise.
7433 (i[34567]86-*-linux*): Likewise.
7434 (x86_64-*-linux*): Likewise.
7435 (x86_64-*-mingw*): Likewise.
7436 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
7437 (ia64*-*-freebsd*): Likewise.
7438 (ia64*-*-linux*): Likewise.
7439 (mips64*-*-linux*): Likewise.
7440 (mips*-*-linux*): Likewise.
7441 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
7442 (sparc64-*-linux*): Likewise.
7443 (sparc64-*-freebsd*): Likewise.
7445 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7447 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
7448 * config/darwin-crt3.c: Move to ../libgcc/config.
7449 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
7450 ($(T)crt3$(objext)): Remove.
7451 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
7452 ($(T)crt2$(objext)): Remove.
7453 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
7454 (powerpc64-*-darwin*): Likewise.
7456 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
7458 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
7460 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
7461 (addsi_1_zext): This.
7463 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
7465 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
7466 * doc/tm.texi: Regenerate.
7467 * target.def (mergeable_rodata_prefix): New defhookpod.
7468 * varasm.c (mergeable_string_section, mergeable_constant_section):
7469 Use it. Allocate name with alloca.
7471 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
7473 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
7475 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
7477 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
7480 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
7482 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
7483 (count_type_elements): Delete.
7484 (complete_ctor_at_level_p): Declare.
7485 * expr.c (flexible_array_member_p): New function, split out from...
7486 (count_type_elements): ...here. Make static. Replace allow_flexarr
7487 parameter with for_ctor_p. When for_ctor_p is true, return the
7488 number of elements that should appear in the top-level constructor,
7489 otherwise return an estimate of the number of scalars.
7490 (categorize_ctor_elements): Replace p_must_clear with p_complete.
7491 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
7492 (complete_ctor_at_level_p): New function, borrowing union logic
7493 from old categorize_ctor_elements_1.
7494 (mostly_zeros_p): Return true if the constructor is not complete.
7495 (all_zeros_p): Update call to categorize_ctor_elements.
7496 * gimplify.c (gimplify_init_constructor): Update call to
7497 categorize_ctor_elements. Don't call count_type_elements.
7498 Unconditionally prevent clearing for variable-sized types,
7499 otherwise rely on categorize_ctor_elements to detect
7500 incomplete initializers.
7502 2011-07-13 Richard Guenther <rguenther@suse.de>
7504 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
7505 the final type is integral.
7507 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
7509 * sched-int.h (struct _dep): Add member cost.
7510 (DEP_COST, UNKNOWN_DEP_COST): New macros.
7511 * sched-deps.c (init_dep_1): Initialize DEP_COST.
7512 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
7513 (sched_change_pattern): Reset it for dependent insns.
7515 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7517 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
7518 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
7519 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
7520 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
7521 (CRT0_S, MCRT0_S): Remove.
7522 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
7525 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
7527 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
7529 * cse.c (insert_with_costs): Put semi-colon after empty loop body
7531 * emit-rtl.c (push_to_sequence): Likewise.
7532 * haifa-sched.c (max_issue): Likewise.
7533 * matrix-reorg.c (add_allocation_site): Likewise.
7534 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
7535 * reload.c (alternative_allows_const_pool_ref): Likewise.
7536 * sched-rgn.c (rgn_add_block): Likewise.
7537 (rgn_fix_recovery_cfg): Likewise.
7538 * tree.c (attribute_list_contained): Likewise.
7540 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
7542 * config/i386/i386.c: Tidy processor feature bitmasks.
7545 2011-07-12 Andrew Pinski <pinskia@gmail.com>
7548 * cprop.c (find_implicit_sets): Correct the condition.
7550 2011-07-12 Richard Henderson <rth@redhat.com>
7553 * dwarf2out.h (dwarf_frame_regnum): Remove.
7554 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
7555 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
7556 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
7557 (execute_dwarf2_frame): Initialize them.
7558 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
7559 users of the macros with the variables.
7560 (expand_builtin_dwarf_sp_column): Revert last change.
7561 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
7562 result of DWARF_FRAME_REGNUM into a local variable.
7564 2011-07-12 Richard Henderson <rth@redhat.com>
7567 * config/i386/i386.c (x86_output_mi_thunk): Use
7568 machopic_indirect_call_target instead of machopic_indirection_name
7571 2011-07-12 Laurent GUERBY <laurent@guerby.net>
7572 Eric Botcazou <ebotcazou@adacore.com>
7574 * prefix.h: Wrap up in extern "C" block.
7576 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
7578 AMD bdver2 Enablement
7579 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
7580 (case ${target}): Add bdver2.
7581 * config/i386/driver-i386.c (host_detect_local_cpu): Let
7582 -march=native recognize bdver2 processors.
7583 * config/i386/i386-c.c (ix86_target_macros_internal): Add
7584 bdver2 def_and_undef
7585 * config/i386/i386.c (struct processor_costs bdver2_cost): New
7587 (m_BDVER2): New definition.
7588 (m_AMD_MULTIPLE): Includes m_BDVER2.
7589 (initial_ix86_tune_features): Add bdver2 tuning.
7590 (processor_target_table): Add bdver2 entry.
7591 (static const char *const cpu_names): Add bdver2 entry.
7592 (ix86_option_override_internal): Add bdver2 instruction sets.
7593 (ix86_issue_rate): Add bdver2.
7594 (ix86_adjust_cost): Add bdver2.
7595 (has_dispatch): Add bdver2.
7596 * config/i386/i386.h (TARGET_BDVER2): New definition.
7597 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
7598 (enum processor_type): Add PROCESSOR_BDVER2.
7599 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
7600 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
7603 2011-07-12 Richard Henderson <rth@redhat.com>
7606 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
7607 destination address in memory on some paths.
7609 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
7611 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
7612 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
7613 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
7614 * function.c (locate_and_pad_parm): Take it into account.
7615 * target.def (function_arg_round_boundary): New hook.
7616 * targhooks.c (default_function_arg_round_boundary): New function.
7617 * targhooks.h (default_function_arg_round_boundary): Declare.
7618 * doc/tm.texi: Regenerate.
7620 2011-07-12 Richard Guenther <rguenther@suse.de>
7622 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
7623 Do not perform no-op changes.
7625 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
7627 * config/arm/predicates.md (neon_struct_operand): Make a normal
7629 (neon_struct_or_register_operand): New predicate.
7630 * config/arm/neon.md (movmisalign<mode>): Replace predicates
7631 with neon_struct_or_register_operand.
7632 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
7633 neon_struct_operand instead of memory_operand.
7635 2011-07-12 Martin Jambor <mjambor@suse.cz>
7637 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
7638 * cgraph.c (cgraph_get_node_or_alias): Removed.
7639 (change_decl_assembler_name): Changed all calls to
7640 cgraph_get_node_or_alias to a call to cgraph_get_node.
7641 (cgraph_make_decl_local): Likewise.
7642 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
7643 * varasm.c (default_binds_local_p_1): Likewise.
7644 (decl_binds_to_current_def_p): Likewise.
7646 2011-07-12 Jakub Jelinek <jakub@redhat.com>
7648 PR tree-optimization/49712
7649 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
7651 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
7653 * genautomata.c (add_arc): Return void. All callers changed.
7654 (make_automaton): Remove dead code.
7656 2011-07-11 Richard Henderson <rth@redhat.com>
7658 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
7659 (DW_FRAME_POINTER_REGNUM): New.
7660 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
7661 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
7663 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
7664 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
7665 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
7667 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
7668 * dwarf2out.h (dwarf_frame_regnum): New.
7669 (struct cfa_loc): Document the domain of the reg member.
7671 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
7673 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
7674 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
7676 2011-07-11 Jakub Jelinek <jakub@redhat.com>
7679 * dwarf2out.c (int_shift_loc_descriptor): New function.
7680 (int_loc_descriptor): If shorter, emit i as
7681 (i >> shift), shift, DW_OP_shl for suitable shift value.
7682 Similarly, try to optimize large negative values using
7683 DW_OP_neg of a positive value if shorter.
7684 (size_of_int_shift_loc_descriptor): New function.
7685 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
7687 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
7688 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
7689 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
7691 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
7692 addend as added DW_OP_plus if it is shorter.
7694 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7696 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
7697 (DTORS_SECTION_ASM_OP): Define.
7699 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7701 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
7702 * config/t-dfprules: Move to ../libgcc/config.
7703 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
7704 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
7705 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
7706 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
7708 (i[34567]86-*-cygwin*): Likewise.
7709 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
7710 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
7711 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
7712 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
7713 D64PBIT_FUNCS, D128PBIT_FUNCS.
7715 2011-07-11 Richard Guenther <rguenther@suse.de>
7717 * tree-vrp.c (simplify_conversion_using_ranges): Manually
7718 translate the source value-range through the conversion chain.
7720 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
7722 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
7724 2011-07-11 Arthur Loiret <aloiret@debian.org>
7726 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
7727 a bi-arch compiler defaulting to 31-bit. In this case:
7728 (tmake_file): Add s390/t-linux64.
7729 * doc/install.texi: Add s390-linux to the list of targets supporting
7730 --enable-targets=all.
7732 2011-07-11 Arthur Loiret <aloiret@debian.org>
7733 Matthias Klose <doko@debian.org>
7735 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
7736 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
7737 (tm_file): Add mips/linux64.h.
7738 (tmake_file): Add mips/t-linux64.
7739 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
7740 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
7741 instead of hardcoded mabi=n32.
7742 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
7743 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
7746 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7748 * passes.c (init_optimization_passes): Add invariant motion pass
7749 after induction variable optimization.
7751 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
7754 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
7755 offsets 1..5 set cc0 in a usable way.
7757 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
7759 * tree.h (call_expr_arg): Remove.
7760 (call_expr_argp): Likewise.
7762 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
7764 * config/sparc/sparc.md (save_register_window_1): Rename to...
7765 (window_save): ...this.
7766 * config/sparc/sparc.c (emit_save_register_window): Rename to...
7767 (emit_window_save): ...this.
7768 (sparc_expand_prologue): Adjust to above renaming.
7770 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
7772 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
7775 2011-07-10 Richard Henderson <rth@redhat.com>
7777 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
7778 run final, instead of emitting text directly.
7780 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
7782 * config/i386/i386.c (ix86_option_override_internal): Turn on
7783 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
7784 small PIC models for TARGET_X32.
7786 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
7789 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
7793 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
7794 stray notes and debug insns by using prev_nonnote_nondebug_insn
7795 instead of PREV_INSN.
7797 2011-07-09 Richard Henderson <rth@redhat.com>
7799 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
7800 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
7801 * dwarf2out.c: ... here.
7802 (output_all_cfis): Remove.
7803 (dwarf2out_switch_text_section): Use output_cfis directly.
7804 (size_of_locs): Export.
7805 (output_loc_sequence, output_loc_sequence_raw): Export.
7806 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
7807 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
7808 output_cfa_loc_raw): Move to ...
7809 * dwarfcfi.c: ... here.
7810 * dwarf2out.h: Update decls.
7812 2011-07-09 Richard Henderson <rth@redhat.com>
7814 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
7815 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
7816 * dwarf2cfi.c: ... here.
7817 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
7818 (DWARF_ROUND, DWARF_CIE_ID): Remove.
7819 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
7820 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
7821 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
7823 2011-07-09 Richard Henderson <rth@redhat.com>
7825 * dwarf2cfi.c (cie_return_save): New.
7826 (queue_reg_save): Use compare_reg_or_pc.
7827 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
7828 (dwarf2out_frame_debug_expr): Likewise.
7829 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
7830 (initial_return_save): Likewise.
7831 (execute_dwarf2_frame): Save and restore initial return save from
7833 * config/mips/mips.c (mips_frame_set): Remove special case for
7834 DWARF_FRAME_RETURN_COLUMN.
7836 2011-07-09 Richard Henderson <rth@redhat.com>
7838 * dwarf2cfi.c (lookup_cfa): Remove.
7839 (execute_dwarf2_frame): Assert queues are empty on entry.
7840 Setup initial cfa directly, not via lookup_cfa.
7841 Don't clear args_size state here.
7843 2011-07-09 Richard Henderson <rth@redhat.com>
7845 * dwarf2cfi.c (add_cfi_vec): New.
7846 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
7847 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
7848 (execute_dwarf2_frame): Set add_cfi_vec.
7850 2011-07-09 Richard Henderson <rth@redhat.com>
7852 * defaults.h (ASM_COMMENT_START): Move here...
7853 * dwarf2asm.c: ... from here.
7854 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
7855 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
7856 * varasm.c: Likewise.
7858 2011-07-09 Richard Henderson <rth@redhat.com>
7861 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
7862 (create_cfi_notes): ... do it here instead.
7864 2011-07-09 Jakub Jelinek <jakub@redhat.com>
7867 * dwarf2out.c (size_of_int_loc_descriptor): New function.
7868 (address_of_int_loc_descriptor): Use it.
7869 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
7871 2011-07-09 Richard Henderson <rth@redhat.com>
7873 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
7874 (prologue, epilogue): New.
7875 (return, *rts): New.
7876 (blockage, setd, seti): New.
7877 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
7878 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
7879 (pdp11_saved_regno): New.
7880 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
7881 generate rtl instead of text.
7882 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
7883 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
7884 * config/pdp11/pdp11-protos.h: Update.
7886 2011-07-09 Richard Henderson <rth@redhat.com>
7888 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
7889 try to insert an rtl prologue here.
7890 (rs6000_output_function_epilogue): Similarly.
7891 * config/rs6000/rs6000.md (prologue): Emit a barrier to
7892 satisfy !TARGET_SCHED_PROLOG.
7893 (epilogue, sibcall_epilogue): Likewise.
7895 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
7897 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
7899 (IN_OR_GLOBAL_P): Likewise.
7901 2011-07-08 Jason Merrill <jason@redhat.com>
7904 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
7905 compound assignment.
7907 * cgraph.c (cgraph_add_to_same_comdat_group): New.
7908 * cgraph.h: Declare it.
7909 * ipa.c (function_and_variable_visibility): Make sure thunks
7910 have the right visibility.
7912 2011-07-08 Richard Henderson <rth@redhat.com>
7915 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
7916 any tablejump vector.
7919 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
7920 end of the prologue.
7922 2011-07-08 Jakub Jelinek <jakub@redhat.com>
7925 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
7926 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
7927 * config/rs6000/vector.md (vector_select_<mode>,
7928 vector_select_<mode>_uns): Change second operand of NE to
7929 CONST0_RTX (<MODE>mode) instead of const0_rtx.
7930 * config/rs6000/altivec.md (*altivec_vsel<mode>,
7931 *altivec_vsel<mode>_uns): Expect second operand of NE to be
7932 zero_constant of the corresponding vector mode.
7933 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
7936 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
7938 * graphite-dependences.c (build_alias_set_powerset): Remove
7939 continue from loop, add one more assert.
7941 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
7944 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
7945 In particular, allow 8-bit values in r28 and r29.
7946 (avr_hard_regno_scratch_ok): Disallow any register that might be
7947 part of the frame pointer.
7948 (avr_hard_regno_rename_ok): Same.
7949 (avr_legitimate_address_p): Don't allow SUBREGs.
7951 2011-07-08 Julian Brown <julian@codesourcery.com>
7953 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
7955 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
7956 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
7957 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
7958 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
7959 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
7960 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
7961 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
7962 registers in big-endian mode.
7964 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
7966 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
7967 in terms of another.
7968 (write_attr_value): Write a cast if necessary.
7970 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
7971 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
7972 (REG_WORDS_BIG_ENDIAN): Document.
7973 * doc/tm.texi: Regenerate.
7974 * reload.c (operands_match_p): Take it into account.
7975 (reload_adjust_reg_for_mode): Likewise.
7976 * rtlanal.c (subreg_get_info): Likewise.
7978 2011-07-08 Richard Guenther <rguenther@suse.de>
7980 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
7983 2011-07-08 Kai Tietz <ktietz@redhat.com>
7985 * fold-const.c (fold_truth_andor): Factored out truth_andor
7986 label from fold_binary as function.
7987 (fold_binary_loc): Replace truth_andor lable
7988 by function fold_truth_andor.
7990 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
7993 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
7994 check if address is stored in register. If so - give up.
7995 (check_sibcall_argument_overlap_1): Do not perform check of
7996 overlapping when it is call to address.
7998 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
8000 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
8003 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
8005 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
8006 GET_MODE_BITSIZE where appropriate.
8007 (widen_leading, expand_parity, expand_ctz, expand_ffs,
8008 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
8009 expand_float, expand_fix): Likewise.
8010 * expr.c (convert_move, convert_modes, expand_expr_real_2,
8011 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
8012 * stor-layout.c (get_mode_bounds): Likewise.
8013 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
8015 * convert.c (convert_to_integer): Likewise.
8016 * expmed.c (expand_shift_1): Likewise.
8018 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
8021 * optabs.c (expand_binop): Tighten conditions for doubleword
8023 (widen_bswap): Assert that mode bitsize and precision are the same.
8024 * stor-layout.c (get_best_mode): Skip modes that have lower
8025 precision than bitsize.
8026 * recog.c (simplify_while_replacing): Assert that bitsize and
8027 precision are the same.
8029 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8031 * Makefile.in (LIBGCOV): Remove.
8032 (libgcc.mvars): Remove LIBGCOV.
8033 * libgov.c: Move to ../libgcc.
8035 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8037 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
8039 2011-07-08 Martin Jambor <mjambor@suse.cz>
8041 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
8042 is too big for total scalarization.
8044 2011-07-07 Richard Henderson <rth@redhat.com>
8046 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
8047 (DBX_DEBUGGING_INFO): Undef.
8049 2011-07-07 Richard Henderson <rth@redhat.com>
8051 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
8052 Handle some opcodes specially for debugging.
8053 * print-rtl.c: Include dwarf2out.h
8054 (print_rtx): Handle NOTE_INSN_CFI.
8055 * Makefile.in (print-rtl.o): Update.
8057 2011-07-07 Richard Henderson <rth@redhat.com>
8059 * tree-pass.h (pass_dwarf2_frame): Declare.
8060 * passes.c (init_optimization_passes): Add it.
8061 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
8062 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
8063 make static, do not call add_cfis_to_fde.
8064 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
8065 dwarf2out_frame_init): Merge into...
8066 (execute_dwarf2_frame): ... here. New function.
8067 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
8068 saved_do_cfi_asm to a tri-state variable.
8069 (gate_dwarf2_frame, pass_dwarf2_frame): New.
8070 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
8071 if it has yet to be done. Don't call dwarf2cfi_function_init.
8072 * dwarf2out.h, debug.h: Update decls.
8073 * final.c (final_start_function): Don't call
8074 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
8075 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
8076 * toplev.c (lang_dependent_init): Likewise.
8078 2011-07-07 Richard Henderson <rth@redhat.com>
8080 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
8081 FDE_TABLE_INCREMENT): Replace with...
8082 (fde_vec): ... this, a new vector.
8083 (current_fde): Remove. Replace all users with cfun->fde.
8084 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
8085 (size_of_aranges, dwarf2out_finish): Likewise.
8086 (dwarf2out_alloc_current_fde): Break out from ...
8087 (dwarf2out_begin_prologue): ... here.
8088 (dwarf2out_frame_init): Remove.
8089 * dwarf2cfi.c: Update all users of current_fde.
8090 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
8091 * dwarf2out.h: Update decls.
8092 (dw_fde_node): Add fde_index member.
8093 * function.h (struct function): Add fde member.
8095 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
8096 Richard Henderson <rth@redhat.com>
8098 * dwarf2cfi.c (add_cfi): Remove.
8099 (dwarf2out_cfi_label): Remove force argument. Only generate the
8101 (add_fde_cfi): Simplify the different code paths.
8103 (old_cfa, old_cfa_remember): New.
8104 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
8105 (last_reg_save_label): Remove.
8106 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
8107 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
8108 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
8109 dwarf2out_frame_debug_cfa_expression,
8110 dwarf2out_frame_debug_cfa_restore,
8111 dwarf2out_frame_debug_cfa_window_save,
8112 dwarf2out_frame_debug_expr): Remove label parameter.
8113 (cfi_label_required_p, add_cfis_to_fde): New.
8114 (dwarf2out_frame_debug_after_prologue): New.
8115 (dwarf2cfi_frame_init): Initialize old_cfa.
8116 (dwarf2out_frame_debug_restore_state): Likewise.
8117 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
8118 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
8119 * final.c (final_start_function): Call
8120 dwarf2out_frame_debug_after_prologue.
8122 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
8123 Richard Henderson <rth@redhat.com>
8125 * dwarf2cfi.c (cfi_insn): New.
8126 (dwarf2out_cfi_label): Don't emit cfi label here.
8127 (add_fde_cfi): Create a NOTE_INSN_CFI.
8128 (dwarf2out_frame_debug): Setup cfi_insn.
8129 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
8130 (dwarf2out_cfi_begin_epilogue): Make static.
8131 (dwarf2out_frame_debug_restore_state): Make static.
8132 * dwarf2out.c (output_cfi_directive): Make static.
8133 (dwarf2out_emit_cfi): New.
8134 * dwarf2out.h: Update.
8135 * final.c (final): Remove CFI notes.
8136 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
8137 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
8138 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
8139 * insn-notes.def (NOTE_INSN_CFI): New.
8140 (NOTE_INSN_CFI_LABEL): New.
8141 * rtl.h (union rtunion_def): Add rt_cfi member.
8142 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
8144 2011-07-07 Richard Henderson <rth@redhat.com>
8146 * dwarf2cfi.c: New file.
8147 * Makefile.in (OBJS): Add it.
8148 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
8149 * gengtype.c (open_base_files): Include dwarf2out.h.
8150 * coretypes.h (enum var_init_status): Move from ...
8152 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
8153 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
8154 expand_builtin_dwarf_sp_column, init_return_column_size,
8155 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
8156 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
8157 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
8158 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
8159 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
8160 compute_barrier_args_size, dwarf2out_args_size,
8161 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
8162 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
8163 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
8164 queue_reg_save, dwarf2out_flush_queued_reg_saves,
8165 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
8166 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
8167 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
8168 dwarf2out_frame_debug_cfa_expression,
8169 dwarf2out_frame_debug_cfa_restore,
8170 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
8171 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
8172 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
8173 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
8174 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
8175 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
8176 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
8177 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
8178 dw_loc_descr_node): Move to dwarf2out.h.
8179 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
8180 mem_loc_descriptor): Export.
8181 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
8182 (dwarf2out_frame_init): Extract CIE generation code to
8183 dwarf2cfi_frame_init.
8185 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
8188 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
8189 MASK_V8PLUS, remove commented out flag and reorder.
8191 2011-07-07 Jakub Jelinek <jakub@redhat.com>
8194 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
8195 one non-complex and one complex argument, call c_save_expr on both
8198 2011-07-07 Martin Jambor <mjambor@suse.cz>
8201 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
8202 (verify_cgraph_node): Some functinality moved to
8203 verify_edge_corresponds_to_fndecl, call it.
8205 2011-07-07 Joseph Myers <joseph@codesourcery.com>
8207 * config.gcc (*local*): Remove.
8208 * doc/install-old.texi: Don't mention local configurations.
8210 2011-07-07 Jakub Jelinek <jakub@redhat.com>
8213 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
8214 referencing debug insns that have been reset.
8215 (dead_debug_insert_before): Don't assert reg is non-NULL,
8216 instead return immediately if it is NULL.
8218 2011-07-07 Joseph Myers <joseph@codesourcery.com>
8220 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
8222 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
8224 * hw-doloop.c: New file.
8225 * hw-doloop.h: New file.
8226 * Makefile.in (OBJS): Add hw-doloop.o.
8227 (hw-doloop.o): New rule.
8228 ($(obj_out_file)): Add hw-doloop.h dependency.
8229 * config/bfin/bfin.c: Include "hw-doloop.h".
8230 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
8231 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
8232 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
8233 type changed to hwloop_info. Return bool, true if the loop was
8234 successfully optimized. Remove code that was moved to
8235 hw-doloop.c, and adjust other parts.
8236 (hwloop_fail): New static function, containing parts that used
8237 to be in bfin_optimize_loop.
8238 (bfin_discover_loop, bfin_discover_loops, free_loops,
8239 bfin_reorder_loops): Remove.
8240 (hwloop_pattern_reg): New static function.
8241 (bfin_doloop_hooks): New variable.
8242 (bfin_reorg_loops): Remove most code, call reorg_loops.
8243 * config/bfin/bfin.md (doloop_end splitter): Also enable if
8244 loop counter is a memory_operand.
8246 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
8248 * config.gcc: Support --with-multilib-list for x86 Linux targets.
8250 * configure.ac: Mention x86-64 for --with-multilib-list.
8251 * configure: Regenerated.
8253 * config/i386/gnu-user64.h (SPEC_64): Support x32.
8254 (SPEC_32): Likewise.
8255 (ASM_SPEC): Likewise.
8256 (LINK_SPEC): Likewise.
8257 (TARGET_THREAD_SSP_OFFSET): Likewise.
8258 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
8261 * config/i386/i386.h (TARGET_X32): New.
8263 (LONG_TYPE_SIZE): Likewise.
8264 (POINTER_SIZE): Likewise.
8265 (POINTERS_EXTEND_UNSIGNED): Likewise.
8266 (OPT_ARCH64): Support x32.
8267 (OPT_ARCH32): Likewise.
8269 * config/i386/i386.opt (mx32): New.
8271 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
8272 (GLIBC_DYNAMIC_LINKERX32): Likewise.
8273 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
8274 (GLIBC_DYNAMIC_LINKERX32): Likewise.
8276 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
8277 (BIONIC_DYNAMIC_LINKERX32): Likewise.
8278 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
8280 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
8282 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
8284 * doc/invoke.texi: Document -mx32.
8286 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
8288 * doc/invoke.texi (mwords-little-endian): Deprecate.
8289 * config/arm/arm.opt (mwords-little-endian): Likewise.
8290 * config/arm/arm.c (arm_option_override): Warn about the deprecation
8291 of -mwords-little-endian.
8293 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
8295 * reload1.c (choose_reload_regs): Use mode sizes to check whether
8296 an old reload register completely defines the required value.
8298 2011-07-07 Richard Guenther <rguenther@suse.de>
8300 * fold-const.c (fold_unary_loc): Do not strip sign-changes
8303 2011-07-07 Richard Guenther <rguenther@suse.de>
8305 * tree-vrp.c (simplify_conversion_using_ranges): New function.
8306 (simplify_stmt_using_ranges): Call it.
8308 2011-07-07 Kai Tietz <ktietz@redhat.com>
8310 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
8311 (lookup_logical_inverted_value): Likewise.
8312 (simplify_bitwise_binary_1): Likewise.
8313 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
8315 2011-07-07 Joseph Myers <joseph@codesourcery.com>
8317 * gcc.c (%[Spec]): Don't document.
8318 (struct spec_list): Update comment.
8319 (do_spec_1): Don't handle %[Spec].
8320 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
8322 2011-07-07 Joseph Myers <joseph@codesourcery.com>
8324 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
8325 default based on TARGET_ASM_NAMED_SECTION.
8326 * common/common-target.def (have_named_sections): Default to true.
8327 * common/config/default-common.c: Don't include tm.h.
8328 * common/config/picochip/picochip-common.c
8329 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
8330 * common/config/m32c/m32c-common.c: Remove.
8331 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
8332 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8333 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8334 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8335 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8336 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8337 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8339 2011-07-07 Jakub Jelinek <jakub@redhat.com>
8342 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
8343 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
8345 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8348 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
8350 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8353 * configure.ac (gcc_cv_as_hidden): Also accept
8354 x86_64-*-solaris2.1[0-9]*.
8355 (gcc_cv_as_cfi_directive): Likewise.
8356 (gcc_cv_as_comdat_group_group): Likewise.
8357 (set_have_as_tls): Likewise.
8358 * configure: Regenerate.
8359 * config.gcc (i[34567]86-*-solaris2*): Also handle
8360 x86_64-*-solaris2.1[0-9]*.
8361 * config.host (i[34567]86-*-solaris2*): Likewise.
8362 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
8363 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
8364 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
8365 (TARGET_LD_EMULATION): Use it.
8366 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
8367 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
8368 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
8369 (ASM_CPU64_DEFAULT_SPEC): Define.
8370 (ASM_CPU_SPEC): Use %(asm_cpu_default).
8371 (ASM_SPEC): Redefine.
8372 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
8373 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
8374 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
8375 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
8377 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
8379 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8381 * config/sol2.h (ASM_SPEC): Split into ...
8382 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
8383 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
8384 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
8385 (ASM_SPEC): Use ASM_SPEC_BASE.
8386 * config/sparc/sol2.h (ASM_SPEC): Redefine.
8388 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
8390 * config/avr/avr.md (*reload_insi): Change predicate #1 to
8391 const_int_operand. Ditto for peep2 producing this insn.
8392 Add argument to output_reload_insisf call.
8393 (*movsi,*movsf): Add argument to output_movsisf call.
8394 (*reload_insf): New insn and new peep2 to produce it.
8395 * config/avr/avr-protos.h (output_movsisf): Change prototype.
8396 (output_reload_insisf): Change prototype.
8397 * config/avr/avr.c (avr_asm_len): New function.
8398 (output_reload_insisf): Rewrite.
8399 (output_movsisf): Change prototype. output_reload_insisf for
8400 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
8401 (adjust_insn_length): Add argument to output_movsisf and
8402 output_reload_insisf call.
8404 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
8406 * emit-rtl.c (paradoxical_subreg_p): New function.
8407 * rtl.h (paradoxical_subreg_p): Declare.
8408 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
8409 apply_distributive_law, simplify_comparison, simplify_set): Use it.
8410 * cse.c (record_jump_cond, cse_insn): Likewise.
8411 * expr.c (force_operand): Likewise.
8412 * rtlanal.c (num_sign_bit_copies1): Likewise.
8413 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
8414 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
8415 (push_reload): Use precision to check for paradoxical subregs.
8416 * expmed.c (extract_bit_field_1): Likewise.
8418 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
8419 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
8420 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
8421 simplify_set, simplify_logical, expand_compound_operation,
8422 make_extraction, force_to_mode, if_then_else_cond, extended_count,
8423 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
8424 record_value_for_reg): Likewise.
8425 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
8426 * simplify-rtx. c (simplify_unary_operation_1,
8427 simplify_binary_operation_1, simplify_const_relational_operation):
8430 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
8431 instead of GET_MODE_BITSIZE where appropriate.
8432 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
8433 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
8434 init_num_sign_bit_copies_in_rep): Likewise.
8435 * cse.c (fold_rtx, cse_insn): Likewise.
8436 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
8437 * simplify-rtx.c (simplify_unary_operation_1,
8438 simplify_const_unary_operation, simplify_binary_operation_1,
8439 simplify_const_binary_operation, simplify_ternary_operation,
8440 simplify_const_relational_operation, simplify_subreg): Likewise.
8441 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
8442 simplify_if_then_else, simplify_set, expand_compound_operation,
8443 expand_field_assignment, make_extraction, if_then_else_cond,
8444 make_compound_operation, force_to_mode, make_field_assignment,
8445 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
8446 extended_count, try_widen_shift_mode, simplify_shift_const_1,
8447 simplify_comparison, record_promoted_value, simplify_compare_const,
8448 record_dead_and_set_regs_1): Likewise.
8451 * simplify-rtx.c (simplify_const_binary_operation): Use the
8452 shift_truncation_mask hook instead of performing modulo by width.
8453 Compare against mode precision, not bitsize.
8454 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
8455 Use shift_truncation_mask instead of constructing the value manually.
8457 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
8459 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
8461 (rs6000_save_toc_in_prologue_p): Ditto.
8463 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
8464 up the static chain (r11) during indirect function calls.
8465 (-msave-toc-indirect): New undocumented debug switch.
8467 * config/rs6000/rs6000.c (struct machine_function): Add
8468 save_toc_in_prologue field to note whether the prologue needs to
8469 save the TOC value in the reserved stack location.
8470 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
8471 to save the TOC in the prologue, do so.
8472 (rs6000_trampoline_init): Don't allow creating AIX style
8473 trampolines if -mno-r11 is in effect.
8474 (rs6000_call_indirect_aix): New function to create AIX style
8475 indirect calls, adding support for -mno-r11 to suppress loading
8476 the static chain, and saving the TOC in the prologue instead of
8478 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
8479 TOC in the prologue.
8481 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
8483 (TOC_REGNUM): Ditto.
8484 (STATIC_CHAIN_REGNUM): Ditto.
8485 (ARG_POINTER_REGNUM): Ditto.
8486 (SFP_REGNO): Delete, unused.
8487 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
8488 function descriptor offsets.
8489 (TOC_SAVE_OFFSET_64BIT): Ditto.
8490 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
8491 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
8492 (AIX_FUNC_DESC_SC_32BIT): Ditto.
8493 (AIX_FUNC_DESC_SC_64BIT): Ditto.
8494 (ptrload): New mode attribute for the appropriate load of a pointer.
8495 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
8496 (call_indirect_aix64): Ditto.
8497 (call_value_indirect_aix32): Ditto.
8498 (call_value_indirect_aix64): Ditto.
8499 (call_indirect_nonlocal_aix32_internal): Ditto.
8500 (call_indirect_nonlocal_aix32): Ditto.
8501 (call_indirect_nonlocal_aix64_internal): Ditto.
8502 (call_indirect_nonlocal_aix64): Ditto.
8503 (call): Rewrite AIX indirect function calls. Add support for
8504 eliminating the static chain, and for moving the save of the TOC
8505 to the function prologue.
8506 (call_value): Ditto.
8507 (call_indirect_aix<ptrsize>): Ditto.
8508 (call_indirect_aix<ptrsize>_internal): Ditto.
8509 (call_indirect_aix<ptrsize>_internal2): Ditto.
8510 (call_indirect_aix<ptrsize>_nor11): Ditto.
8511 (call_value_indirect_aix<ptrsize>): Ditto.
8512 (call_value_indirect_aix<ptrsize>_internal): Ditto.
8513 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
8514 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
8515 (call_nonlocal_aix32): Relocate in the rs6000.md file.
8516 (call_nonlocal_aix64): Ditto.
8518 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
8519 -mno-r11 documentation.
8521 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8524 * doc/extend.texi (Compound Literals): Fix typo.
8526 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
8528 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
8530 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
8532 * configure.ac (plugin-version.h): Generate
8533 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
8534 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
8537 * configure: Regenerate.
8539 * doc/plugins.texi (Building GCC plugins): Mention
8540 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
8542 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
8544 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
8545 * combine.c (make_extraction, gen_lowpart_or_truncate,
8546 apply_distributive_law, simplify_comparison,
8547 reg_truncated_to_mode, record_truncated_value): Use it.
8548 * cse.c (notreg_cost): Likewise.
8549 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
8550 * expr.c (convert_move, convert_modes): Likewise.
8551 * optabs.c (expand_binop, expand_unop): Likewise.
8552 * postreload.c (move2add_last_label): Likewise.
8553 * regmove.c (optimize_reg_copy_3): Likewise.
8554 * rtlhooks.c (gen_lowpart_general): Likewise.
8555 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
8557 2011-07-06 Joseph Myers <joseph@codesourcery.com>
8559 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
8561 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
8563 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
8564 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
8565 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
8566 (simplify_const_unary_operation, simplify_binary_operation_1,
8567 simplify_const_binary_operation, simplify_const_relational_operation):
8568 Use them. Use GET_MODE_MASK for masking and sign-extensions.
8569 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
8570 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
8571 simplify_shift_const_1, simplify_comparison): Likewise.
8572 * expr.c (convert_modes): Likewise.
8573 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
8574 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
8575 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
8577 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
8579 2011-07-06 Richard Guenther <rguenther@suse.de>
8581 PR tree-optimization/49645
8582 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
8584 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
8585 in type qualification here ...
8586 (copy_reference_ops_from_ref): ... not here.
8587 (vn_reference_lookup_3): ... or here.
8588 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
8589 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
8591 2011-07-06 Ian Lance Taylor <iant@google.com>
8593 * doc/install.texi (Configuration): It's
8594 --enable-gnu-indirect-function, not --enable-indirect-function.
8596 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
8598 * simplify-rtx.c (simplify_const_binary_operation): Use the
8599 shift_truncation_mask hook instead of performing modulo by width.
8600 Compare against mode precision, not bitsize.
8601 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
8602 Use shift_truncation_mask instead of constructing the value manually.
8604 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
8607 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
8608 address computation and convert to address_mode if needed.
8610 2011-07-06 Richard Guenther <rguenther@suse.de>
8612 * tree.c (build_common_tree_nodes_2): Merge with
8613 build_common_tree_nodes.
8614 * tree.h (build_common_tree_nodes): Adjust prototype.
8615 (build_common_tree_nodes_2): Remove.
8616 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
8617 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
8619 2011-07-05 Jakub Jelinek <jakub@redhat.com>
8621 PR tree-optimization/49618
8622 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
8623 t recurse on the decl.
8624 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
8625 return true if expr isn't known to be defined in current
8626 TU or some other LTO partition.
8628 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
8630 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
8631 override CASE_VALUES_THRESHOLD.
8633 * stmt.c (toplevel): Include params.h.
8634 (case_values_threshold): Use the --param case-values-threshold
8635 value if non-zero, otherwise use machine dependent value.
8636 (expand_case): Use case_values_threshold.
8638 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
8640 * doc/invoke.texi (--param case-values-threshold): Document.
8642 2011-07-05 Richard Henderson <rth@redhat.com>
8644 * dwarf2out.c (dwarf2out_cfi_label): Make static.
8645 (dwarf2out_flush_queued_reg_saves): Make static.
8646 (dwarf2out_reg_save): Remove.
8647 (dwarf2out_return_save): Remove.
8648 (dwarf2out_return_reg): Remove.
8649 (dwarf2out_reg_save_reg): Remove.
8650 (dwarf2out_def_cfa): Merge into ...
8651 (dwarf2out_frame_init): ... here.
8652 * dwarf2out.h, tree.h: Remove declarations as necessary.
8654 2011-07-05 Richard Henderson <rth@redhat.com>
8656 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
8657 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8658 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
8661 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
8662 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
8663 (process_epilogue): Don't call dwarf2out_def_cfa.
8665 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
8666 indicate the return address save.
8667 (process_cfa_register): Likewise.
8669 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
8670 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
8672 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
8673 for ar.pfs save at alloc insn.
8675 2011-07-05 Richard Henderson <rth@redhat.com>
8677 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
8678 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8679 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
8681 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
8682 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
8683 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
8684 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
8686 2011-07-05 Richard Henderson <rth@redhat.com>
8688 * config/vax/vax.md (define_c_enum unspecv): New. Define the
8689 VUNSPEC_* constants here instead of via define_constants.
8690 (VUNSPEC_PEM): New constant.
8691 (procedure_entry_mask): New insn.
8692 (prologue): New expander.
8693 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
8694 (vax_expand_prologue): Rename from vax_output_function_prologue;
8695 emit rtl instead of text.
8696 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
8697 (print_operand): Add 'x' prefix.
8699 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
8702 * calls.c (precompute_register_parameters): Promote the function
8703 argument before checking non-legitimate constant.
8705 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
8707 PR tree-optimization/47654
8708 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
8709 (lst_do_strip_mine_loop): Return an int.
8710 (lst_do_strip_mine): Same.
8711 (scop_do_strip_mine): Same.
8712 (scop_do_block): Loop blocking should strip-mine at least two loops.
8713 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
8714 (scop_do_interchange): Same.
8715 * graphite-poly.h (scop_do_interchange): Update declaration.
8716 (scop_do_strip_mine): Same.
8718 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
8720 * graphite-clast-to-gimple.c (precision_for_value): Removed.
8721 (precision_for_interval): Removed.
8722 (gcc_type_for_interval): Use mpz_sizeinbase.
8724 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
8726 * graphite-ppl.h (value_max): Correct computation of max.
8728 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
8730 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
8732 2011-07-05 Richard Guenther <rguenther@suse.de>
8734 * c-decl.c (c_init_decl_processing): Defer building common
8735 tree nodes to c_common_nodes_and_builtins.
8737 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
8739 PR tree-optimization/49580
8740 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
8741 the loop's number of iterations.
8742 * tree-parloops.c (transform_to_exit_first_loop): Add the
8743 handling of the loop's number of iterations before the call
8744 to gimple_duplicate_sese_tail.
8745 Insert the stmt caclculating the new rhs of the loop's
8746 condition stmt to the preheader instead of iters_bb.
8748 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
8750 PR rtl-optimization/47449
8751 * fwprop.c (forward_propagate_subreg): Don't propagate hard
8752 register nor zero/sign extended hard register.
8754 2011-07-05 Richard Guenther <rguenther@suse.de>
8756 PR tree-optimization/49518
8757 PR tree-optimization/49628
8758 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
8759 irrelevant and invariant data-references.
8760 (vect_analyze_data_ref_access): For invariant loads clear the
8763 2011-07-04 Jakub Jelinek <jakub@redhat.com>
8765 PR rtl-optimization/49619
8766 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
8767 pass VOIDmode as op0_mode to recursive call, and return temp even
8768 when different from tor, just if it is not IOR of the original
8771 PR rtl-optimization/49472
8772 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
8773 negating MULT, negate the second operand instead of first.
8774 (simplify_binary_operation_1) <case MULT>: If one operand is
8775 a NEG and the other is MULT, don't attempt to optimize by negation
8776 of the MULT operand if it only moves the NEG operation around.
8779 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
8780 get_current_def return value if it can't be trusted to be
8781 the current value of the variable in the current bb.
8783 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
8786 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
8787 general register to memory for !TARGET_INTER_UNIT_MOVES.
8789 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
8792 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
8793 instead of TREE_READONLY.
8795 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
8797 * doc/extend.texi (AVR Built-in Functions): Update documentation
8798 of __builtin_avr_fmul*.
8799 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
8800 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
8801 * config/avr/avr.md (fmul): Rename to fmul_insn.
8802 (fmuls): Rename to fmuls_insn.
8803 (fmulsu): Rename to fmulsu_insn.
8804 (fmul,fmuls,fmulsu): New expander.
8805 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
8806 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
8807 * config/avr/libgcc.S (__fmul): New function.
8808 (__fmuls): New function.
8809 (__fmulsu,__fmulsu_exit): New function.
8811 2011-07-04 Richard Guenther <rguenther@suse.de>
8813 PR tree-optimization/49615
8814 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
8815 basic-block index check.
8817 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
8819 * longlong.h (count_leading_zeros, count_trailing_zeros,
8820 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
8823 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
8825 PR tree-optimization/49610
8826 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
8829 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
8830 Olivier Hainque <hainque@adacore.com>
8831 Nicolas Setton <setton@adacore.com>
8833 * tree.h (TYPE_ARTIFICIAL): New flag.
8834 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
8835 the DIE of the type if it is artificial.
8836 (gen_array_type_die): Likewise.
8837 (gen_enumeration_type_die): Likewise.
8838 (gen_struct_or_union_type_die): Likewise.
8839 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
8840 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
8842 2011-07-01 Jakub Jelinek <jakub@redhat.com>
8844 * tree-object-size.c (pass_through_call): Handle
8845 BUILT_IN_ASSUME_ALIGNED.
8847 2011-07-01 Martin Jambor <mjambor@suse.cz>
8849 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
8851 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
8854 * explow.c (update_nonlocal_goto_save_area): Use proper mode
8855 for stack save area.
8856 * function.c (expand_function_start): Likewise.
8858 2011-07-01 Richard Guenther <rguenther@suse.de>
8861 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
8862 may have unknown refs.
8864 2011-07-01 Kai Tietz <ktietz@redhat.com>
8866 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
8868 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8870 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
8871 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
8872 (Specific, mips-sgi-irix6): Likewise.
8874 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8877 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
8879 2011-07-01 Jakub Jelinek <jakub@redhat.com>
8881 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
8882 [idx]= and [idx1 ... idx2]= before initializers if needed for
8885 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
8887 * config.gcc (score-*-elf): Remove score7.o.
8888 * config/score/t-score-elf: Likewise.
8889 * config/score/score.c: Merge score7 to score.c and
8890 remove forwarding functions.
8891 * config/score/score7.c: Deleted.
8892 * config/score/score7.h: Deleted.
8894 2011-07-01 Richard Guenther <rguenther@suse.de>
8896 PR tree-optimization/49603
8897 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
8899 2011-06-30 Martin Jambor <mjambor@suse.cz>
8901 * tree-sra.c (struct access): Rename total_scalarization to
8902 grp_total_scalarization
8903 (completely_scalarize_var): New function.
8904 (sort_and_splice_var_accesses): Set total_scalarization in the
8905 representative access.
8906 (analyze_access_subtree): Propagate total scalarization accross the
8907 tree, no holes in totally scalarized trees, simplify coverage
8909 (analyze_all_variable_accesses): Call completely_scalarize_var instead
8910 of completely_scalarize_record.
8912 2011-06-30 Richard Henderson <rth@redhat.com>
8914 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
8915 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
8916 * config/i386/i386.c: Don't include dwarf2out.h.
8917 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
8918 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
8919 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
8920 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
8921 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
8923 2011-06-30 Richard Henderson <rth@redhat.com>
8925 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
8926 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
8927 * final.c (final_scan_insn): Look for it, and invoke
8928 dwarf2out_frame_debug before the insn if found.
8930 2011-06-30 Richard Henderson <rth@redhat.com>
8932 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
8933 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
8935 2011-06-30 Richard Henderson <rth@redhat.com>
8937 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
8938 Define a vector of this type.
8939 (regs_saved_in_regs): Use a VEC.
8940 (num_regs_saved_in_regs): Remove.
8941 (compare_reg_or_pc): New.
8942 (record_reg_saved_in_reg): Split out from...
8943 (dwarf2out_flush_queued_reg_saves): ... here.
8944 (clobbers_queued_reg_save): Update for VEC.
8945 (reg_saved_in): Likewise.
8946 (dwarf2out_frame_debug_init): Likewise.
8947 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
8948 (dwarf2out_frame_debug_cfa_register): Likewise.
8950 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
8952 PR tree-optimization/49572
8953 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
8954 type of the RHS instead of that of the LHS for the expression type.
8956 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
8958 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
8961 2011-06-30 Richard Guenther <rguenther@suse.de>
8963 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
8964 * tree-ssa-structalias.c (create_variable_info_for): Do not
8965 add initial constraints for non-var-decls. Properly handle
8966 globals in other ltrans partitions.
8967 (intra_create_variable_infos): Manually create constraints for
8968 the fake no-alias parameter.
8969 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
8970 and assert there are no clones.
8972 2011-06-30 Richard Guenther <rguenther@suse.de>
8974 PR tree-optimization/46787
8975 * tree-data-ref.c (dr_address_invariant_p): Remove.
8976 (find_data_references_in_stmt): Invariant accesses are ok now.
8977 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
8978 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
8981 2011-06-30 Martin Jambor <mjambor@suse.cz>
8983 PR tree-optimization/49094
8984 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
8985 (build_accesses_from_assign): Use it.
8987 2011-06-30 Jakub Jelinek <jakub@redhat.com>
8989 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
8990 handling of BUILT_IN_ASSUME_ALIGNED.
8993 * dwarf2out.c (output_abbrev_section): Don't return early
8994 if abbrev_die_table_in_use is 1.
8995 (dwarf2out_finish): Instead don't call output_abbrev_section
8996 nor emit abbrev_section_label in that case.
8998 2011-06-30 Nick Clifton <nickc@redhat.com>
9000 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
9003 2011-06-30 Jakub Jelinek <jakub@redhat.com>
9005 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
9006 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
9008 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
9010 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
9011 both pattern and original statements if necessary.
9012 (vect_transform_loop): Likewise.
9013 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
9014 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
9015 Mark the pattern statement only if the original statement doesn't
9017 (process_use): Call vect_mark_relevant with additional parameter.
9018 (vect_mark_stmts_to_be_vectorized): Likewise.
9019 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
9020 (vect_analyze_stmt): Handle both pattern and original statements
9022 (vect_transform_stmt): Don't store vectorized pattern statement
9023 in the original statement.
9024 (vect_is_simple_use_1): Use related pattern statement only if the
9025 original statement is irrelevant.
9026 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
9028 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
9030 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
9032 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
9034 (TARGET_AVX128_OPTIMAL): New definition.
9035 * config/i386/i386.c (initial_ix86_tune_features): Initialize
9036 X86_TUNE_AVX128_OPTIMAL entry.
9037 (ix86_option_override_internal): Enable the generation
9038 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
9039 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
9040 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
9042 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
9044 PR tree-optimization/49539
9045 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
9046 names by means of stmt_references_abnormal_ssa_name.
9047 (associate_plusminus): Call can_propagate_from before propagating
9048 from definition statements.
9049 (ssa_forward_propagate_and_combine): Remove superfluous newline.
9051 2011-06-29 Richard Guenther <rguenther@suse.de>
9053 * doc/invoke.texi: Document -scev dump modifier.
9054 * tree-pass.h (TDF_SCEV): New dump flag.
9055 * tree-dump.c (dump_option_value_in): Add scev.
9056 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
9057 * tree-scalar-evolution.c: Likewise.
9059 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
9061 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
9062 (cxa_type_match): Correct declaration.
9063 (__gnu_unwind_pr_common): Reconstruct additional indirection
9064 when __cxa_type_match returns succeeded_with_ptr_to_base.
9066 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9068 PR rtl-optimization/49114
9069 * reload.c (struct replacement): Remove SUBREG_LOC member.
9070 (push_reload): Do not set it.
9071 (push_replacement): Likewise.
9072 (subst_reload): Remove dead code.
9073 (copy_replacements): Remove assertion.
9074 (copy_replacements_1): Do not handle SUBREG_LOC.
9075 (move_replacements): Likewise.
9076 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
9077 Detect subregs via recursive descent instead of via SUBREG_LOC.
9079 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
9081 * config/avr/avr.c (avr_encode_section_info): Dispatch to
9082 default_encode_section_info.
9084 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
9086 PR tree-optimization/49545
9087 * builtins.c (get_object_alignment_1): Update function comment.
9088 Do not use DECL_ALIGN for functions, but test
9089 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
9090 * fold-const.c (get_pointer_modulus_and_residue): Don't check
9092 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
9094 2011-06-29 Jakub Jelinek <jakub@redhat.com>
9097 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
9098 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
9100 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
9103 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
9104 about uninitialized data attributed 'progmem' from here...
9105 (avr_encode_section_info): ...to this new function.
9106 (TARGET_ENCODE_SECTION_INFO): New define.
9107 (avr_section_type_flags): For data in ".progmem.data", remove
9108 section flag SECTION_WRITE.
9110 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
9112 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
9114 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
9115 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
9116 (__umulhisi3): Ditto.
9117 * config/avr/avr.md (mulhisi3): New insn expender.
9118 (umulhisi3): New insn expender.
9119 (*mulhisi3_call): New insn.
9120 (*umulhisi3_call): New insn.
9122 2011-06-28 Joseph Myers <joseph@codesourcery.com>
9124 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
9126 2011-06-28 Richard Henderson <rth@redhat.com>
9128 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
9129 all code and arguments that handled pushes. Update all callers.
9131 2011-06-28 Richard Henderson <rth@redhat.com>
9133 * config/arm/arm.c (arm_output_function_prologue): Don't call
9134 thumb1_output_function_prologue.
9135 (arm_expand_prologue): Avoid dead store.
9136 (number_of_first_bit_set): Use ctz_hwi.
9137 (thumb1_emit_multi_reg_push): New.
9138 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
9139 to emit the entire prologue as rtl.
9140 (thumb1_output_interwork): Split out from
9141 thumb1_output_function_prologue.
9142 (thumb1_output_function_prologue): Remove.
9143 (arm_attr_length_push_multi): Handle thumb1.
9144 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
9145 (prologue_thumb1_interwork): New.
9146 (*push_multi): Allow thumb1; use push_mult_memory_operand.
9147 * config/arm/predicates.md (push_mult_memory_operand): New.
9149 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
9151 * config/sparc/sync.md (*stbar): Delete.
9152 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
9154 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
9156 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
9158 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9160 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
9161 (TARGET_64BIT_DEFAULT): Define.
9162 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
9164 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
9166 2011-06-28 Joseph Myers <joseph@codesourcery.com>
9168 * common.opt (in_lto_p): New Variable entry.
9169 * flags.h (in_lto_p): Move to common.opt.
9170 * gcc.c: Include params.h.
9171 (set_option_handlers): Also use common_handle_option and
9172 target_handle_option.
9173 (main): Call global_init_params, finish_params and init_options_struct.
9174 * opts.c (debug_type_names): Move from toplev.c.
9175 (print_filtered_help): Access quiet_flag through opts pointer.
9176 (common_handle_option): Return early in the driver for some options.
9177 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
9179 * toplev.c (in_lto_p): Move to common.opt.
9180 (debug_type_names): Move to opts.c.
9181 * Makefile.in (OBJS): Remove opts.o.
9182 (OBJS-libcommon-target): Add opts.o.
9183 (gcc.o): Update dependencies.
9185 2011-06-28 Kai Tietz <ktietz@redhat.com>
9187 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
9189 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9191 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
9192 with '=' constraint modifier.
9193 (*divdf3_vfp): Likewise.
9194 ("*mulsf3_vfp"): Likewise.
9195 ("*muldf3_vfp"): Likewise.
9196 ("*mulsf3negsf_vfp"): Likewise.
9197 ("*muldf3negdf_vfp"): Likewise.
9199 2011-06-28 Nick Clifton <nickc@redhat.com>
9201 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
9202 relaxation when performing an incremental link.
9204 2011-06-28 Kai Tietz <ktietz@redhat.com>
9206 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
9207 within BB from last to first.
9209 2011-06-28 Joseph Myers <joseph@codesourcery.com>
9211 * genattr-common.c: New. Based on genattr.c.
9212 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
9213 (MOSTLYCLEANFILES): Add insn-attr-common.h.
9214 (opts.o): Update dependencies.
9215 (.PRECIOUS): Add insn-attr-common.h.
9216 (simple_rtl_generated_h): Add insn-attr-common.h.
9217 (build/genattr-common.o): New.
9218 (genprogrtl): Add attr-common.
9219 * genattr.c (main): Include insn-attr-common.h. Don't generate
9220 definitions of DELAY_SLOTS or INSN_SCHEDULING.
9221 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
9223 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
9225 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
9226 avr-*-* and avr-*-rtems* targets.
9228 * config/avr/elf.h: New file.
9229 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
9230 (TARGET_ASM_SELECT_SECTION): Define.
9231 (INIT_SECTION_ASM_OP): Undefine.
9232 (FINI_SECTION_ASM_OP): Undefine.
9233 (READONLY_DATA_SECTION_ASM_OP): Undefine.
9234 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
9235 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
9237 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
9238 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
9239 (MAX_OFILE_ALIGNMENT): Move to elf.h.
9240 (STRING_LIMIT): Move to elf.h.
9241 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
9242 (ASM_DECLARE_OBJECT_NAME): Remove.
9244 (ASM_OUTPUT_SKIP): Remove.
9245 (DWARF2_DEBUGGING_INFO): Remove.
9246 (OBJECT_FORMAT_ELF): Remove.
9247 (USER_LABEL_PREFIX): Remove.
9248 (ASM_OUTPUT_EXTERNAL): Remove.
9249 (ASM_OUTPUT_ASCII): Remove.
9250 (TYPE_ASM_OP): Remove.
9251 (SIZE_ASM_OP): Remove.
9252 (WEAK_ASM_OP): Remove.
9253 (STRING_ASM_OP): Remove.
9254 (SET_ASM_OP): Remove.
9255 (ASM_WEAKEN_LABEL): Remove.
9256 (TYPE_OPERAND_FMT): Remove.
9257 (ASM_DECLARE_FUNCTION_SIZE): Remove.
9258 (ASM_FINISH_DECLARE_OBJECT): Remove.
9259 (NO_DOLLAR_IN_LABEL): Remove.
9260 (ASM_GENERATE_INTERNAL_LABEL): Remove.
9261 (ASM_OUTPUT_CASE_LABEL): Remove.
9262 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
9263 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
9264 (gas_output_ascii): Remove.
9265 (gas_output_limited_string): Remove.
9266 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
9267 * config/avr/avr-protos.h
9268 (gas_output_ascii): Remove prototye.
9269 (gas_output_limited_string): Remove prototype.
9271 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
9274 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
9277 2011-06-27 Jan Hubicka <jh@suse.cz>
9279 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
9280 node instead of references in node.
9282 2011-06-27 Richard Henderson <rth@redhat.com>
9284 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
9285 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
9288 2011-06-27 Jakub Jelinek <jakub@redhat.com>
9290 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
9292 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
9293 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
9294 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
9295 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
9296 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
9297 (evaluate_stmt, execute_fold_all_builtins): Handle
9298 BUILT_IN_ASSUME_ALIGNED.
9299 * tree-ssa-dce.c (propagate_necessity): Likewise.
9300 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
9301 call_may_clobber_ref_p_1): Likewise.
9302 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
9303 (expand_builtin_assume_aligned): New function.
9304 * doc/extend.texi (__builtin_assume_aligned): Document.
9307 * cselib.c (promote_debug_loc): If cselib_preserve_constants
9308 and l has two DEBUG_INSN owned locs instead of just one, adjust
9309 the second location's setting_insn too.
9311 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9314 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
9316 2011-06-27 Nick Clifton <nickc@redhat.com>
9318 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
9319 bit position of highest bit set into a count of the high zero bits.
9321 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
9323 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
9325 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
9328 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
9331 2011-06-27 Richard Guenther <rguenther@suse.de>
9333 PR tree-optimization/49394
9334 * passes.c (execute_one_pass): Restore current_pass after
9335 applying IPA transforms.
9337 2011-06-27 Kai Tietz <ktietz@redhat.com>
9339 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
9340 out of type precision after operation.
9341 (find_bswap): Take for limit value the integer auto-promotion
9344 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
9346 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
9347 forward scan as well.
9349 2011-06-27 Tristan Gingold <gingold@adacore.com>
9352 * config/vms/vms-protos.h: New file.
9353 * config/vms/vms-crtlmap.map: New file.
9354 * config/vms/vms.c: New file.
9355 * config/vms/make-crtlmap.awk: New file.
9356 * config/vms/vms-crtl.h: File removed.
9357 * config/vms/vms-crtl-64.h: File removed.
9358 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
9359 * config/alpha/vms64.h: Do not include vms-crtl-64.h
9360 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
9361 clear some builtins on VMS. Calls vms_patch_builtins.
9362 (avms_asm_output_external): Remove.
9363 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
9364 (struct crtl_name_spec): Remove
9365 (DO_CTRL_NAMES): Remove.
9366 * config/ia64/vms.h (struct crtl_name_spec): Remove
9367 (DO_CTRL_NAMES): Remove.
9368 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
9369 clear some builtins on VMS. Calls vms_patch_builtins.
9370 (ia64_asm_output_external): Remove DO_CRTL_NAME.
9371 * config/ia64/vms64.h: Do not include vms-crtl-64.h
9372 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
9374 2011-06-27 Tristan Gingold <gingold@adacore.com>
9376 * config/alpha/alpha.c (alpha_end_function): Always generate .end
9379 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
9381 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
9382 the function receives nonlocal gotos.
9384 2011-06-27 Richard Guenther <rguenther@suse.de>
9386 PR tree-optimization/49536
9387 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
9388 For non-scalar inner types use a scalar type according to
9389 the scalar inner mode.
9391 2011-06-27 Richard Guenther <rguenther@suse.de>
9393 PR tree-optimization/49365
9394 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
9396 2011-06-27 Richard Guenther <rguenther@suse.de>
9398 PR tree-optimization/49169
9399 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
9400 the alignment of function decls.
9402 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
9405 * config/darwin.c (darwin_mergeable_string_section): Place string
9406 constants in '.cstring' rather than '.const' when CF/NSStrings are
9409 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
9411 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
9412 (emit_save_register_window): Likewise.
9413 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
9414 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
9415 Swap back %o7/%i7 in register naming.
9417 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
9420 * config/darwin.c (darwin_override_options): Improve warning when
9421 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
9422 is given with fpie/fPIE.
9423 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
9424 * config/darwin9.h (PIE_SPEC): New.
9426 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
9428 * timevar.c (timevar_print): Increase width for display of timevar
9431 2011-06-24 Jakub Jelinek <jakub@redhat.com>
9434 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
9435 instead of TYPE_CHAIN for chain_next for types.
9437 2011-06-24 Richard Henderson <rth@redhat.com>
9439 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
9440 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
9441 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
9442 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
9443 (sparc_flat_expand_prologue): Emit individual instructions
9444 instead of one of the above.
9446 2011-06-24 Easwaran Raman <eraman@google.com>
9448 PR rtl-optimization/49429
9450 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
9451 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
9452 used to copy y into x.
9453 * calls.c (initialize_argument_information): Mark
9454 an argument addressable if it is passed by invisible reference.
9455 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
9456 if it is passed by reference.
9458 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
9460 PR rtl-optimization/49504
9461 * rtlanal.c (nonzero_bits1): Properly handle addition or
9462 subtraction of a pointer in Pmode if pointers extend unsigned.
9463 (num_sign_bit_copies1): Likewise.
9465 2011-06-24 Martin Jambor <mjambor@suse.cz>
9467 PR tree-optimizations/49516
9468 * tree-sra.c (sra_modify_assign): Choose the safe path for
9469 aggregate copies if we also did scalar replacements.
9471 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9474 * config/arm/predicates.md (add_operator): New.
9475 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
9477 2011-06-24 Andi Kleen <ak@linux.intel.com>
9479 * tree-sra.c (type_internals_preclude_sra_p): Add msg
9480 parameter. Split up ifs and report reason in *msg.
9482 (find_var_candiate): Add msg variable.
9483 Split up ifs and report reason to reject.
9484 (find_param_candidates): Add msg variable.
9485 Pass msg to type_internals_preclude_sra_p.
9487 2011-06-23 Jeff Law <law@redhat.com>
9490 * reload.h (reload): Change to return a bool.
9491 * ira.c (ira): If requested by reload, run a fast DCE pass after
9492 reload has completed. Fix comment typo.
9493 * reload1.c (need_dce): New file scoped static.
9494 (reload): Set reload_completed here. Return whether or not a DCE
9495 pass after reload is needed.
9496 (delete_dead_insn): Set need_dce as needed.
9499 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
9500 to detect threading through joiner block. If there was already
9501 an edge to the new target, then do not change the PHI nodes.
9503 2011-06-23 Jakub Jelinek <jakub@redhat.com>
9505 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
9506 get_pointer_alignment to see if base isn't sufficiently aligned.
9508 2011-06-23 Jan Hubicka <jh@suse.cz>
9510 PR tree-optimize/49373
9511 * tree-pass.h (all_late_ipa_passes): Declare.
9512 * cgraphunit.c (init_lowered_empty_function): Fix properties.
9513 (cgraph_optimize): Execute late passes; remove unreachable funcions
9514 after materialization.
9515 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
9517 * passes.c (all_late_ipa_passes): Declare.
9518 (dump_passes, register_pass): Handle late ipa passes.
9519 (init_optimization_passes): Move ipa_pta to late passes; schedule
9520 fixup_cfg at beggining of all_passes.
9521 (apply_ipa_transforms): New function.
9522 (execute_one_pass): When doing simple ipa pass, apply all transforms.
9524 2011-06-23 Joseph Myers <joseph@codesourcery.com>
9526 * params.c: Include common/common-target.h. Don't include tm.h.
9527 (lang_independent_params): Move from toplev.c.
9528 (global_init_params): New.
9529 * params.h (global_init_params): Declare.
9530 * target.def (default_params): Move to common-target.def.
9531 * toplev.c (lang_independent_options): Remove.
9532 (lang_independent_params): Move to params.c.
9533 (general_init): Use global_init_params.
9534 * common/common-target.def (option_default_params): Move from
9536 * common/config/ia64/ia64-common.c: Include params.h.
9537 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9539 * common/config/rs6000/rs6000-common.c: Include params.h.
9540 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9542 * common/config/sh/sh-common.c: Include params.h.
9543 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9545 * common/config/spu/spu-common.c: Include params.h.
9546 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9548 * config/ia64/ia64.c (ia64_option_default_params,
9549 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
9550 * config/rs6000/rs6000.c (rs6000_option_default_params,
9551 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
9552 * config/sh/sh.c (sh_option_default_params,
9553 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
9554 * config/spu/spu.c (spu_option_default_params,
9555 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
9556 * Makefile.in (OBJS): Remove params.o.
9557 (OBJS-libcommon-target): Add params.o.
9558 (params.o, $(common_out_object_file)): Update dependencies.
9559 * doc/tm.texi: Regenerate.
9561 2011-06-23 Alan Modra <amodra@gmail.com>
9564 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
9565 invocation for 2011-06-09 changes.
9567 2011-06-22 Jakub Jelinek <jakub@redhat.com>
9570 * omp-low.c (expand_omp_for_static_nochunk): Only
9571 use n ceil/ nthreads size for the first n % nthreads threads in the
9572 team instead of all threads except for the last few ones which
9573 get less work or none at all.
9576 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
9579 2011-06-22 Richard Guenther <rguenther@suse.de>
9581 PR tree-optimization/49493
9582 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
9583 Refer to the alias target of variables.
9584 (associate_varinfo_to_alias_1): Remove.
9585 (ipa_pta_execute): Do not associate aliases with anything.
9586 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
9587 (cgraph_function_node): Likewise.
9588 (cgraph_function_or_thunk_node): Likewise.
9589 (varpool_variable_node): Likewise.
9591 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
9593 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
9594 * config.gcc (arm*-*-linux*): Default to gnu tls.
9595 (arm*-*-*): Add --with-tls option.
9596 (all_defaults): Add 'tls'.
9598 2011-06-22 Richard Henderson <rth@redhat.com>
9600 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
9601 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
9602 (dwarf2out_frame_debug_cfa_window_save): Rename from
9603 dwarf2out_window_save; make static.
9604 * tree.h (dwarf2out_window_save): Don't declare.
9606 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
9607 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9608 (emit_save_register_window): Rename from gen_save_register_window;
9609 emit the insn and add REG_CFA_* notes.
9610 (sparc_expand_prologue): Update to match.
9611 * config/sparc/sparc.md (save_register_window_1): Simplify from
9612 save_register_window<P:mode>.
9614 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
9617 * config/i386/i386.md (*lea_general_2): Always allow SImode.
9618 (*lea_general_2_zext): Likewise.
9619 (imul to lea peepholes): Use const359_operand and check
9620 TARGET_PARTIAL_REG_STALL.
9622 * config/i386/predicates.md (const359_operand): New.
9624 2011-06-22 Michael Matz <matz@suse.de>
9626 * cgraphunit.c (assemble_thunk): Use correct return type.
9628 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
9629 Dmitry Melnik <dm@ispras.ru>
9631 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
9632 (neon_output_shift_immediate): Ditto.
9633 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
9635 (neon_output_shift_immediate): Ditto.
9636 * config/arm/neon.md (vashl<mode>3): Modified constraint.
9637 (vashr<mode>3_imm): New insn pattern.
9638 (vlshr<mode>3_imm): Ditto.
9639 (vashr<mode>3): Modified constraint.
9640 (vlshr<mode>3): Ditto.
9641 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
9643 (imm_for_neon_rshift_operand): Ditto.
9644 (imm_lshift_or_reg_neon): Ditto.
9645 (imm_rshift_or_reg_neon): Ditto.
9647 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
9649 2011-06-22 Jakub Jelinek <jakub@redhat.com>
9651 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
9652 builtin calls even if likelyvalue is not CONSTANT.
9653 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
9654 Return get_value_for_expr of first operand
9655 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
9656 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9657 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
9658 their non-checking counterparts.
9659 (call_may_clobber_ref_p_1): Likewise.
9660 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
9661 like their non-checking counterparts.
9662 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9663 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
9664 like their non-checking counterparts.
9665 (find_func_clobbers): Likewise.
9666 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
9667 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
9669 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
9670 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
9671 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
9672 of base type reference as argument.
9673 (resolve_addr_in_expr): Likewise. Fix keep computation.
9674 (convert_descriptor_to_signed): Renamed to...
9675 (convert_descriptor_to_mode): ... this. For wider types convert to
9676 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
9677 (typed_binop): New function.
9678 (scompare_loc_descriptor, ucompare_loc_descriptor,
9679 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
9680 default to unsigned type instead of signed.
9683 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
9684 (gimple_build_debug_source_bind_stat): New prototype.
9685 (gimple_build_debug_source_bind): Define.
9686 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
9687 gimple_debug_source_bind_get_value,
9688 gimple_debug_source_bind_get_value_ptr,
9689 gimple_debug_source_bind_set_var,
9690 gimple_debug_source_bind_set_value): New inlines.
9691 * gimple.c (gimple_build_debug_source_bind_stat): New function.
9692 * gimple-pretty-print.c (dump_gimple_debug): Handle
9693 GIMPLE_DEBUG_SOURCE_BIND.
9694 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
9695 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9696 * tree-parloops.c (eliminate_local_variables,
9697 separate_decls_in_region): Likewise.
9698 (separate_decls_in_region_debug): Renamed from
9699 separate_decls_in_region_debug_bind. Handle
9700 gimple_debug_source_bind_p.
9701 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
9703 (DECL_HAS_DEBUG_ARGS_P): Define.
9704 (struct tree_function_decl): Add has_debug_args_flag field.
9705 * tree.c (debug_args_for_decl): New variable.
9706 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
9707 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
9708 (rewrite_debug_stmt_uses): New function.
9709 (rewrite_stmt): Use it to rewrite debug stmt uses.
9710 * rtl.def (DEBUG_PARAMETER_REF): New.
9711 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
9712 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
9713 DEBUG_PARAMETER_REF.
9714 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
9715 * print-rtl.c (print_rtx): Likewise.
9716 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
9717 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
9718 debug stmts in the first bb.
9719 * tree-inline.c (remap_ssa_name): If remapping default def
9720 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
9721 a source bind debug stmt.
9722 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
9723 (maybe_move_debug_stmts_to_successors): Likewise.
9724 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
9725 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
9726 debug args vector from old_decl to new_decl.
9727 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
9728 or modified parameters, add debug bind stmts before call
9729 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
9730 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
9731 on DECL_DEBUG_EXPRs from debug args vector.
9732 (expand_debug_source_expr): New function.
9733 (expand_debug_locations): Use it for source bind insns.
9734 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
9735 * var-tracking.c (prepare_call_arguments): Add debug args
9736 to call_arguments if any.
9737 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
9738 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
9739 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
9740 (get_ref_die_offset, parameter_ref_descriptor): New functions.
9741 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
9742 (gen_subprogram_die): Handle parameters identified by
9743 DEBUG_PARAMETER_REF.
9745 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
9747 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
9748 * doc/install.texi (Configuration): Document --with-tls.
9749 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
9750 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
9751 (arm_tls_descseq_addr): New.
9752 (legitimize_tls_address): Add tlsdesc support.
9753 (arm_cannot_copy_insn_p): Check for tlscall.
9754 (arm_emit_tls_decoration): Likewise.
9755 * config/arm/arm.h (TARGET_GNU2_TLS): New.
9756 (OPTION_DEFAULT_SPECS): Add with-tls support.
9757 * config/arm/arm.md (R1_REGNUM): Define.
9759 * config/arm/arm.opt (tls_type): New enumeration type and values.
9760 (mtls-dialect): New switch.
9761 * config/arm/arm-opts.h (enum tls_type): New.
9763 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
9765 * attribs.c (register_attribute): Added assert to check that all
9766 attribute specs are registered with a name that is not empty and
9767 does not start with '_'.
9768 (decl_attributes): Avoid the lookup of the "naked" attribute spec
9769 if the function has no attributes.
9770 * tree.c (is_attribute_with_length_p): Removed.
9771 (is_attribute_p): Removed.
9772 (private_is_attribute_p): New.
9773 (private_lookup_attribute): New.
9774 (lookup_attribute): Removed.
9775 (lookup_ident_attribute): New.
9776 (remove_attribute): Require the first argument to be in the form
9777 'text', not '__text__'. Updated asserts.
9778 (merge_attributes): Use lookup_ident_attributes instead of
9780 (merge_dllimport_decl_attributes): Use remove_attribute.
9781 (attribute_list_contained): Likewise.
9782 (attribute_list_equal): Immediately return 1 if the arguments are
9784 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
9785 'int'. Require the first argument to be in the form 'text', not
9786 '__text__'. Require the second argument to be an identifier.
9787 (lookup_attribute): Made inline. Require the first argument to be
9788 in the form 'text', not '__text__'.
9789 (private_is_attribute_p, private_lookup_attribute): New.
9792 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
9794 * builtins.c: Add sync_ or SYNC__ to builtin names.
9795 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
9796 * omp-low.c: Add sync_ or SYNC__ to builtin names.
9798 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
9801 * config/avr/avr.md (extzv): New expander.
9803 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
9804 * config/avr/constraints.md (C04): New constraint.
9805 * doc/md.texi (Machine Constraints): Document it.
9807 2011-06-21 Jakub Jelinek <jakub@redhat.com>
9810 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
9811 unsignedp argument instead of 1 for clrsb_optab.
9812 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
9813 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
9814 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
9815 * optabs.c (widen_leading): Call widen_operand and expand_unop
9816 with 0 as unsignedp argument instead of 1 for clrsb_optab.
9817 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
9819 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
9821 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
9823 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
9825 * gensupport.c (add_define_attr): New static function.
9826 (is_predicable): Allow multi-alternative lists for the "predicable"
9828 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
9829 (process_one_cond_exec): Call alter_attrs_for_insn.
9830 * doc/md.texi (Defining Attributes): Mention some standard names.
9831 (Conditional Execution): Update documentation for "predicable".
9833 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
9834 __builtin_clrsbll): Document.
9835 * doc/rtl.texi (clrsb): New entry.
9836 * optabs.c (widen_leading): Renamed from widen_clz. New argument
9837 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
9838 (expand_unop): Handle clrsb_optab.
9839 (init_optabs): Initialize it.
9840 * optabs.h (enum optab_index): New entry OTI_clrsb.
9841 (clrsb_optab): Define.
9842 * genopinit.c (optabs): Add an entry for it.
9843 * builtins.c (expand_builtin): Handle clrsb builtin functions.
9844 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
9845 BUILT_IN_CLRSBLL): New.
9846 * rtl.def (CLRSB): New code.
9847 * dwarf2out.c (mem_loc_descriptor): Handle it.
9848 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9849 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
9851 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
9852 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
9853 (__ctzDI2): Move declaration.
9854 * config/bfin/bfin.md (clrsbsi2): New expander.
9855 (signbitssi2): Use the CLRSB rtx.
9856 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
9857 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
9859 2011-06-21 Richard Guenther <rguenther@suse.de>
9861 * ipa-inline-transform.c (inline_transform): Fix previous change.
9863 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
9865 PR tree-optimization/49478
9866 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
9867 with constant operand.
9869 2011-06-21 Richard Guenther <rguenther@suse.de>
9871 * ipa-inline-transform.c (inline_transform): Fix typo.
9873 2011-06-21 Richard Guenther <rguenther@suse.de>
9875 PR tree-optimization/49483
9876 * tree-vect-stmts.c (vectorizable_assignment): Also handle
9877 VIEW_CONVERT_EXPR conversions.
9879 2011-06-21 Joseph Myers <joseph@codesourcery.com>
9881 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
9882 * config/avr/avr-tables.opt: New file (generated).
9883 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
9884 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
9886 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
9887 (avr_option_override): Don't process -mmcu= argument here. Set
9888 avr_current_device using avr_mcu_index.
9889 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
9890 * config/avr/avr.opt (mmcu=): Use Enum.
9891 * config/avr/t-avr (avr-devices.o): Update dependencies.
9892 ($(srcdir)/config/avr/avr-tables.opt): New.
9893 * target.def (help): Remove.
9894 * doc/tm.texi.in (TARGET_HELP): Remove.
9895 * doc/tm.texi: Regenerate.
9896 * opts.c: Don't include target.h.
9897 (common_handle_option): Don't call targetm.help.
9898 * system.h (TARGET_HELP): Poison.
9899 * Makefile.in (opts.o): Update dependencies.
9901 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9903 * config/usegld.h: New file.
9904 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
9905 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
9906 (LIB_SPEC): Likewise. Search /lib.
9907 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
9908 (RDYNAMIC_SPEC): Handle GNU ld.
9909 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
9911 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
9912 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
9913 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
9914 (STACK_CHECK_STATIC_BUILTIN): Define.
9915 * config/sol2.opt (compat-bsd): Remove.
9916 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
9917 * config/sol2-bi.h: New file.
9918 * config/sol2-gld.h: Remove.
9919 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
9920 (NO_DBX_BNSYM_ENSYM): Remove.
9921 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
9922 (STACK_CHECK_STATIC_BUILTIN): Remove.
9923 Test USE_GLD instead of TARGET_GNU_LD.
9924 * config/i386/sol2-10.h: Rename to ...
9925 * config/i386/sol2-bi.h .. this.
9926 (SUBTARGET_EXTRA_SPECS): Redefine.
9927 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
9928 (MULTILIB_DEFAULTS): Remove.
9929 (DEFAULT_ARCH32_P): Define.
9930 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
9931 (ARCH64_SUBDIR): Define.
9932 Test USE_GLD instead of TARGET_GNU_LD.
9933 (I386_EMULATION): Rename to ...
9934 (ARCH32_EMULATION): ... this.
9935 (X86_64_EMULATION): Rename to ...
9936 (ARCH64_EMULATION): ... this.
9937 (TARGET_LD_EMULATION): Remove.
9938 (LINK_ARCH_SPEC): Remove.
9939 * config/i386/sol2-gas.h: Remove.
9940 * config/i386/t-sol2-10: Rename to ...
9941 * config/i386/t-sol2-64: ... this.
9942 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
9943 (AS_SPARC64_FLAG): Define.
9944 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
9945 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
9946 depending on TARGET_CPU_DEFAULT.
9947 (CPP_CPU_SPEC): Redefine.
9948 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
9949 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
9950 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
9951 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
9952 ASM_ARCH_DEFAULT_SPEC): Redefine.
9953 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
9954 LINK_ARCH_DEFAULT_SPEC.
9955 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
9956 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
9957 (ARCH64_SUBDIR): Define.
9958 (LINK_ARCH64_SPEC): Redefine.
9959 (CC1_SPEC): Redefine.
9960 (OPTION_DEFAULT_SPECS): Redefine.
9961 (MULTILIB_DEFAULTS): Define.
9962 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
9963 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
9964 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
9965 (NO_DBX_BNSYM_ENSYM): Remove.
9966 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
9967 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
9968 (TARGET_ASM_NAMED_SECTION): Likewise.
9969 (STACK_CHECK_STATIC_BUILTIN): Remove.
9970 * config/sparc/sol2-bi.h: Remove.
9971 * config/sparc/sol2-gas-bi.h: Remove.
9972 * config/sparc/sol2-gas.h: Remove.
9973 * config/sparc/sol2-gld-bi.h: Remove.
9974 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
9976 (*-*-solaris2*): ... here.
9978 2011-06-21 Christian Bruel <christian.bruel@st.com>
9981 * ipa-inline.c (can_inline_edge_p): Check
9982 !DECL_DISREGARD_INLINE_LIMITS.
9984 2011-06-21 Christian Bruel <christian.bruel@st.com>
9987 * cgraphunit.c (process_function_and_variable_attributes): warn when
9988 always_inline functions that are not inline.
9989 * ipa-inline-transform.c (inline_transform): Always call
9991 * tree-inline.c (tree_inlinable_function_p): Use error instead
9993 (expand_call_inline): Likewise.
9995 2011-06-21 Jakub Jelinek <jakub@redhat.com>
9997 * Makefile.in (dg_target_exps): Set.
9998 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
9999 instead of 7, try to divide it more evenly.
10001 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
10004 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
10005 (avx256_split_unaligned_store): New definition.
10006 (ix86_option_override_internal): Enable avx256 unaligned load/store
10007 splitting only when avx256_split_unaligned_load/store is set.
10009 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
10011 * regrename.c (scan_rtx_reg): Handle the case where we write to an
10012 open chain in a smaller mode without failing the entire block.
10014 2011-06-21 Alan Modra <amodra@gmail.com>
10016 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
10017 CONST high part large-toc address.
10018 (rs6000_tls_referenced_p): Make static.
10019 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
10021 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10024 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
10025 one of the operands is a register.
10027 2011-06-20 Kai Tietz <ktietz@redhat.com>
10029 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
10030 operations in combination with binary and.
10032 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
10034 * regrename.c (do_replace): Don't update notes.
10036 2011-06-20 Alan Modra <amodra@gmail.com>
10038 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
10039 of toc-relative address in CONST.
10040 (rs6000_delegitimize_address): Recognize changed address.
10041 (rs6000_legitimize_reload_address): Likewise.
10042 (rs6000_emit_move): Don't force these constants to memory.
10043 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
10044 toc-relative address in CONST.
10045 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
10046 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
10048 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
10050 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
10051 (count_trailing_zeros): Likewise.
10053 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
10056 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
10057 .init_array can be used with .ctors on targets.
10058 * configure: Regenerated.
10060 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
10062 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
10063 if the element type is volatile.
10065 2011-06-18 Jan Hubicka <jh@suse.cz>
10067 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
10068 extra name aliases.
10069 (lto_symtab_resolve_can_prevail_p): Likewise.
10070 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
10071 * cgraphbuild.c (record_reference): Remove extra body alias code.
10072 (mark_load): Likewise.
10073 (mark_store): Likewise.
10074 * cgraph.h (varpool_node): Remove extra_name filed;
10075 add alias_of and extraname_alias.
10076 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
10077 (varpool_alias_aliased_node): New inline function.
10078 (varpool_variable_node): New function.
10079 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
10080 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
10081 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
10082 (input_varpool_node): Likewise.
10083 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
10084 (varpool_externally_visible_p): Remove extra body alias code.
10085 (function_and_variable_visibility): Likewise.
10086 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
10087 (ipa_pta_execute): Use it.
10088 * varpool.c (varpool_remove_node): Remove extra name alias code.
10089 (varpool_mark_needed_node): Likewise.
10090 (varpool_analyze_pending_decls): Analyze aliases.
10091 (assemble_aliases): New functoin.
10092 (varpool_assemble_decl): Use it.
10093 (varpool_create_variable_alias): New function.
10094 (varpool_extra_name_alias): Rewrite.
10095 (varpool_for_node_and_aliases): New function.
10097 2011-06-18 Jakub Jelinek <jakub@redhat.com>
10100 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
10101 last_arg_constant and last argument doesn't match its predicate,
10102 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
10103 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
10104 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
10105 spelling of error message.
10106 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
10107 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
10108 const_0_to_255_operand instead of const_int_operand.
10111 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
10113 * config/i386/sse.md (blendbits): Remove mode attribute.
10114 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
10115 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
10116 Check integer value of operand 3 in insn constraint.
10118 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
10120 PR rtl-optimization/48542
10121 * reload.c (find_equiv_reg): Stop looking when finding a
10123 * reload1.c (reload_as_needed): Invalidate all reload
10124 registers when crossing a setjmp-type call.
10126 2011-06-16 Jeff Law <law@redhat.com>
10128 * tree-ssa-threadupdate.c (struct redirection_data): New field
10130 (THREAD_TARGET2): Define.
10131 (redirection_data_eq): Also check that the intermediate edge is equal.
10132 (lookup_redirection_data): Drop useless argument. Extract the
10133 outgoing_edge and intermediate edge from E. Callers updated.
10134 (copy_phi_args, update_destination_phis): New functions.
10135 (fix_duplicate_block_edges): Likewise.
10136 (create_edge_and_update_destination_phis): Duplicate all the edges
10137 hung off e->aux. Use copy_phi_args.
10138 (create_duplicates): Use fix_duplicate_block_edges.
10139 (fixup_template_block): Likewise.
10140 (redirect_edges): If necessary, redirect the joiner block's incoming
10141 edge to the duplicate of the joiner block.
10142 (thread_block): Don't muck up loops when threading through a joiner
10144 (thread_through_loop_header): Handle threading through a joiner block.
10145 (mark_threaded_blocks, register_jump_thread): Likewise.
10146 * tree-flow.h (register_jump_thread): Add new argument. Callers
10148 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
10149 (thread_across_edge): Handle threading through a joiner block.
10151 2011-06-16 Martin Jambor <mjambor@suse.cz>
10153 PR tree-optimization/49343
10154 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
10155 calculate offset, provide 2nd operand for the new COMPONENT_REF.
10157 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
10159 * config/darwin-protos.h (machopic_select_rtx_section): Move to
10160 inside RTX_CODE ifdef.
10162 2011-06-16 Tom de Vries <tom@codesourcery.com>
10165 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
10166 Disallow NULL pointer for pointer arithmetic.
10168 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10172 2011-06-10 Wei Guozhi <carrot@google.com>
10175 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
10176 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
10177 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
10179 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
10181 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
10182 (arm_legitimate_ldrd_p): New prototype.
10183 (arm_output_ldrd): New prototype.
10184 * config/arm/arm.c (arm_check_ldrd_operands): New function.
10185 (arm_legitimate_ldrd_p): New function.
10186 (arm_output_ldrd): New function.
10188 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
10190 PR middle-end/46500
10191 * doc/tm.texi.in: Update Copyright date.
10192 * doc/tm.texi: Regenerate.
10193 * targhooks.c (default_setup_incoming_varargs): Replace
10194 CUMULATIVE_ARGS* argument type with cumulative_args_t.
10195 (default_pretend_outgoing_varargs_named): Likewise.
10196 (hook_pass_by_reference_must_pass_in_stack): Likewise.
10197 (hook_callee_copies_named): Likewise.
10198 (default_function_arg_advance): Likewise.
10199 (default_function_arg): Likewise.
10200 (default_function_incoming_arg): Likewise.
10201 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
10202 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
10203 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
10204 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
10205 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
10206 * targhooks.h (default_setup_incoming_varargs): Likewise.
10207 (default_pretend_outgoing_varargs_named): Likewise.
10208 (hook_pass_by_reference_must_pass_in_stack): Likewise.
10209 (hook_callee_copies_named): Likewise.
10210 (default_function_arg_advance): Likewise.
10211 (default_function_arg): Likewise.
10212 (default_function_incoming_arg): Likewise.
10213 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
10214 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
10215 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
10216 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
10217 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
10218 * target.def (pass_by_reference): Likewise.
10219 (setup_incoming_varargs, strict_argument_naming): Likewise.
10220 (pretend_outgoing_varargs_named, callee_copies): Likewise.
10221 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
10222 (function_incoming_arg): Likewise.
10223 * target.h: Don't include "tm.h" .
10224 (cumulative_args_t): New typedef.
10225 [GCC_TM_H] (get_cumulative_args): New static inline function.
10226 [GCC_TM_H] (pack_cumulative_args): Likewise.
10227 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
10228 argument type with cumulative_args_t.
10229 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
10230 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
10231 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
10232 (frv_arg_partial_bytes, frv_function_arg): Likewise.
10233 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
10234 (frv_function_arg_1): Likewise.
10235 * config/s390/s390.c (s390_pass_by_reference): Likewise.
10236 (s390_function_arg_advance, s390_function_arg): Likewise.
10237 * config/m32c/m32c.c (m32c_function_arg): Likewise.
10238 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
10239 (m32c_strict_argument_naming): Likewise.
10240 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
10241 (spu_function_arg_advance): Likewise.
10242 (spu_setup_incoming_varargs): Likewise. Make static.
10243 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
10245 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
10246 CUMULATIVE_ARGS* argument type with cumulative_args_t.
10247 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
10248 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
10249 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
10250 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
10251 (mep_pass_by_reference, mep_function_arg): Likewise.
10252 (mep_function_arg_advance): Likewise.
10253 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
10254 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
10255 (m32r_function_arg, m32r_function_arg_advance): Likewise.
10256 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
10257 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
10258 (ix86_function_arg, ix86_pass_by_reference): Likewise.
10259 (ix86_setup_incoming_varargs): Likewise.
10260 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
10261 (sh_strict_argument_naming): Likewise.
10262 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
10263 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
10264 (sh_function_arg_advance, sh_function_arg): Likewise.
10265 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
10266 (pdp11_function_arg_advance): Likewise.
10267 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
10269 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
10270 * config/avr/avr.c (avr_function_arg): Likewise.
10271 (avr_function_arg_advance): Likewise.
10272 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
10273 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
10274 (xtensa_function_arg_1): Likewise.
10275 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
10277 (xstormy16_function_arg): Likewise.
10278 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
10279 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
10280 (fr30_function_arg_advance): Likewise.
10281 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
10282 (lm32_function_arg, lm32_function_arg_advance): Likewise.
10283 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
10284 (moxie_function_arg, moxie_function_arg_advance): Likewise.
10285 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
10286 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
10287 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
10288 (cris_function_arg, cris_function_incoming_arg): Likewise.
10289 (cris_function_arg_advance, cris_function_arg_1): Likewise.
10290 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
10291 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
10292 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
10293 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
10294 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
10295 (mn10300_arg_partial_bytes): Likewise.
10296 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
10297 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
10298 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
10299 (ia64_function_arg_1): Likewise.
10300 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
10301 (m68k_function_arg): Likewise.
10302 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
10303 (rs6000_function_arg, setup_incoming_varargs): Likewise.
10304 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
10305 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
10306 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
10307 (picochip_arg_advance): Likewise.
10308 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
10309 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
10310 (mcore_function_arg_advance): Likewise.
10311 * config/score/score.c (score_pass_by_reference): Likewise.
10312 (score_function_arg_advance): Likewise.
10313 (score_arg_partial_bytes): Likewise. Make static.
10314 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
10315 * config/arm/arm.c (arm_arg_partial_bytes): Replace
10316 CUMULATIVE_ARGS* argument type with cumulative_args_t.
10317 (arm_function_arg, arm_function_arg_advance): Likewise.
10318 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
10319 * config/pa/pa.c (pa_pass_by_reference): Likewise.
10320 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
10321 (pa_function_arg): Likewise.
10322 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
10323 (mips_function_arg, mips_function_arg_advance): Likewise.
10324 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
10325 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
10326 * config/vax/vax.c (vax_function_arg): Likewise.
10327 (vax_function_arg_advance): Likewise.
10328 * config/h8300/h8300.c (h8300_function_arg): Likewise.
10329 (h8300_function_arg_advance): Likewise.
10330 * config/v850/v850.c (v850_pass_by_reference): Likewise.
10331 (v850_strict_argument_naming, v850_function_arg): Likewise.
10332 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
10333 (v850_setup_incoming_varargs): Likewise.
10334 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
10335 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
10336 (mmix_function_arg, mmix_pass_by_reference): Likewise.
10337 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
10339 * config/bfin/bfin.c (setup_incoming_varargs): Replace
10340 CUMULATIVE_ARGS* argument type with cumulative_args_t.
10341 (bfin_function_arg_advance, bfin_function_arg): Likewise.
10342 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
10343 * calls.c (emit_call_1): Change type of args_so_far to
10344 cumulative_args_t. Changed all callers.
10345 (initialize_argument_information): Likewise.
10346 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
10347 * dse.c (get_call_args): Likewise.
10348 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
10349 * function.c (pass_by_reference, reference_callee_copied): Likewise.
10350 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
10351 New member args_so_far_v. Changed all users.
10352 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
10353 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
10354 * config/mips/mips.c (mips_output_args_xfer): Likewise.
10355 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
10356 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
10357 * config/microblaze/microblaze.c (microblaze_expand_prologue):
10359 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
10360 m32r_pass_by_reference.
10362 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
10364 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
10365 argument to be a VEC of statements.
10366 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
10367 assert that pattern statements have to have their vector type set.
10368 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
10369 Change the first argument to be a VEC of statements. Update
10371 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
10372 (vect_handle_widen_mult_by_const): New function.
10373 (vect_recog_widen_mult_pattern): Change the first argument to be a
10374 VEC of statements. Update documentation. Check that the constant is
10375 INTEGER_CST. Support multiplication by a constant that fits an
10376 intermediate type - call vect_handle_widen_mult_by_const.
10377 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
10378 call. Handle additional pattern statements if necessary.
10380 2011-06-16 Nick Clifton <nickc@redhat.com>
10383 * config.gcc: Set cpu_type to v850 for any V850 architecture.
10384 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
10385 md_file, extra_modes, out_file and extra_options are these are all
10386 deduced from cpu_type.
10388 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
10390 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
10391 truncation mask to 63.
10393 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
10397 * longlong.h: Add AVR support:
10398 (count_leading_zeros): New macro.
10399 (count_trailing_zeros): New macro.
10400 (COUNT_LEADING_ZEROS_0): New macro.
10401 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
10402 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
10403 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
10404 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
10405 (LIB2FUNCS_EXCLUDE): Add _clz.
10406 * config/avr/libgcc.S (XCALL): Move up in file.
10407 (XJMP): New C Macro.
10408 (DEFUN): New asm macro.
10409 (ENDF): New asm macro.
10410 (__ffssi2): New function.
10411 (__ffshi2): New function.
10412 (__loop_ffsqi2): New function.
10413 (__ctzsi2): New function.
10414 (__ctzhi2): New function.
10415 (__clzdi2): New function.
10416 (__clzsi2): New function.
10417 (__clzhi2): New function.
10418 (__paritydi2): New function.
10419 (__paritysi2): New function.
10420 (__parityhi2): New function.
10421 (__parityqi2): New function.
10422 (__popcounthi2): New function.
10423 (__popcountsi2): New function.
10424 (__popcountdi2): New function.
10425 (__popcountqi2): New function.
10426 (__bswapsi2): New function.
10427 (__bswapdi2): New function.
10428 (__ashldi3): New function.
10429 (__ashrdi3): New function.
10430 (__lshrdi3): New function.
10431 Fix suspicous lines.
10433 2011-06-16 Richard Guenther <rguenther@suse.de>
10435 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
10436 the same as x != 0.
10437 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
10439 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
10440 equality compares against zero for the lower bit.
10442 2011-06-16 Jakub Jelinek <jakub@redhat.com>
10444 PR tree-optimization/49419
10445 * tree-vrp.c (execute_vrp): Call init_range_assertions
10446 before estimate_numbers_of_iterations, call
10447 free_number_of_iterations_estimates before calling
10448 remove_range_assertions.
10450 2011-06-16 Revital Eres <revital.eres@linaro.org>
10452 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
10453 (struct partial_schedule): Add rows_length field.
10454 (verify_partial_schedule): Check rows_length.
10455 (ps_insert_empty_row): Handle rows_length.
10456 (create_partial_schedule): Likewise.
10457 (free_partial_schedule): Likewise.
10458 (reset_partial_schedule): Likewise.
10459 (create_ps_insn): Remove rest_count argument.
10460 (remove_node_from_ps): Update rows_length.
10461 (add_node_to_ps): Update rows_length and call create_ps_insn
10462 without passing row_rest_count.
10463 (rotate_partial_schedule): Update rows_length.
10465 2011-06-16 Revital Eres <revital.eres@linaro.org>
10467 * ddg.c (add_intra_loop_mem_dep): New function.
10468 (build_intra_loop_deps): Call it.
10470 2011-06-13 Jeff Law <law@redhat.com>
10472 * df-problems.c (df_lr_local_compute): Manually CSE
10473 PIC_OFFSET_TABLE_REGNUM.
10474 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
10475 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
10477 2011-06-13 Jan Hubicka <jh@suse.cz>
10479 * cgraphunit.c (handle_alias_pairs): New function.
10480 (cgraph_finalize_compilation_unit): Use it.
10481 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
10482 as externally visible.
10484 2011-06-15 Richard Guenther <rguenther@suse.de>
10486 * expr.c (expand_expr_real_2): Reduce all integral types to
10487 bitfield precision.
10488 (expand_expr_real_1): Likewise.
10490 2011-06-15 Martin Jambor <mjambor@suse.cz>
10492 PR tree-optimization/48613
10493 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
10494 ipa_node_params_vector is NULL.
10496 2011-06-15 Jakub Jelinek <jakub@redhat.com>
10499 * dwarf2out.c (dw_loc_list_node): Add force field.
10500 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
10501 location in the list, even if it is modified before first real insn.
10502 (output_loc_list): Emit empty ranges with force flag set.
10503 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
10505 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
10508 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
10509 (fence_to_rewind). Use it to notice when bookkeeping will be placed
10510 above a fence. Update comments.
10511 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
10512 placed just above it. Do not allow NULL place_to_insert.
10514 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
10516 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
10517 (slpeel_tree_peel_loop_to_edge): Don't call
10518 remove_dead_stmts_from_loop.
10519 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
10520 remove irrelevant pattern statements. For irrelevant statements
10521 check if it is the last statement of a detected pattern, use
10522 corresponding pattern statement instead.
10523 (destroy_loop_vec_info): No need to remove pattern statements,
10524 only free stmt_vec_info.
10525 (vect_transform_loop): For irrelevant statements check if it is
10526 the last statement of a detected pattern, use corresponding
10527 pattern statement instead.
10528 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
10529 pattern statements. Set basic block for the new statement.
10530 (vect_pattern_recog): Update documentation.
10531 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
10532 operands of pattern statements.
10533 (vectorizable_call): Fix printing. In case of a pattern statement
10534 use the lhs of the original statement when creating a dummy
10535 statement to replace the original call.
10536 (vect_analyze_stmt): For irrelevant statements check if it is
10537 the last statement of a detected pattern, use corresponding
10538 pattern statement instead.
10539 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
10540 statements use gsi of the original statement.
10542 2011-06-14 Joseph Myers <joseph@codesourcery.com>
10544 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
10545 common/common-target-def.h.
10546 * target.def (default_target_flags, handle_option,
10547 supports_split_stack, optimization_table, init_struct,
10548 except_unwind_info, unwind_tables_default, have_named_sections):
10549 Move to common/common-target.def.
10550 * target.h (enum opt_levels, struct default_options): Move to
10551 common/common-target.h.
10552 * targhooks.c (default_except_unwind_info,
10553 dwarf2_except_unwind_info, sjlj_except_unwind_info,
10554 default_target_handle_option, empty_optimization_table): Move to
10555 common/common-targhooks.c.
10556 * targhooks.h (default_except_unwind_info,
10557 dwarf2_except_unwind_info, sjlj_except_unwind_info,
10558 default_target_handle_option, empty_optimization_table): Move to
10559 common/common-targhooks.h.
10560 * common/common-target-def.h: Include common/common-targhooks.h.
10561 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
10563 * common/common-target.def (handle_option, option_init_struct,
10564 option_optimization_table, default_target_flags,
10565 except_unwind_info, supports_split_stack, unwind_tables_default,
10566 have_named_sections): Move from target.def.
10567 (HOOK_PREFIX): Undefine at end of file.
10568 * common/common-target.h: Include input.h.
10569 (enum opt_levels, struct default_options): Move from target.h.
10570 * common/common-targhooks.c, common/common-targhooks.h: New.
10571 * config.gcc (target_has_targetm_common): Default to yes.
10572 (moxie*): Set target_has_targetm_common=no.
10573 (hppa*-*-*): Don't set target_has_targetm_common=yes.
10574 * doc/tm.texi: Regenerate.
10575 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
10576 (C_TARGET_DEF_H): Add common/common-targhooks.h.
10577 (GCC_OBJS): Remove vec.o.
10578 (OBJS): Remove hooks.o and vec.o.
10579 (OBJS-libcommon-target): Add vec.o, hooks.o and
10580 common/common-targhooks.o.
10581 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
10582 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
10583 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
10584 cfglayout.o, $(out_object_file), $(common_out_object_file)):
10585 Update dependencies.
10586 (common/common-targhooks.o): New.
10587 * common/config/default-common.c: Include tm.h. Add FIXME comment.
10588 * common/config/pa/pa-common.c: Include more headers. Take
10589 copyright dates from pa.c.
10590 (pa_option_optimization_table, pa_handle_option,
10591 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
10592 TARGET_HANDLE_OPTION): Move from pa.c.
10593 * common/config/alpha/alpha-common.c,
10594 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
10595 common/config/bfin/bfin-common.c,
10596 common/config/cris/cris-common.c,
10597 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
10598 common/config/h8300/h8300-common.c,
10599 common/config/i386/i386-common.c,
10600 common/config/ia64/ia64-common.c,
10601 common/config/iq2000/iq2000-common.c,
10602 common/config/lm32/lm32-common.c,
10603 common/config/m32c/m32c-common.c,
10604 common/config/m32r/m32r-common.c,
10605 common/config/m68k/m68k-common.c,
10606 common/config/mcore/mcore-common.c,
10607 common/config/mep/mep-common.c,
10608 common/config/microblaze/microblaze-common.c,
10609 common/config/mips/mips-common.c,
10610 common/config/mmix/mmix-common.c,
10611 common/config/mn10300/mn10300-common.c,
10612 common/config/pdp11/pdp11-common.c,
10613 common/config/picochip/picochip-common.c,
10614 common/config/rs6000/rs6000-common.c,
10615 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
10616 common/config/score/score-common.c, common/config/sh/sh-common.c,
10617 common/config/sparc/sparc-common.c,
10618 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
10619 common/config/vax/vax-common.c,
10620 common/config/xstormy16/xstormy16-common.c,
10621 common/config/xtensa/xtensa-common.c: New.
10622 * config/alpha/alpha.c: Include common/common-target.h.
10623 (alpha_option_optimization_table, alpha_handle_option,
10624 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10625 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
10626 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
10627 * config/arm/arm.c (arm_option_optimization_table,
10628 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10629 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
10631 * config/avr/avr.c (avr_option_optimization_table,
10632 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
10634 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
10635 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
10636 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
10637 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
10638 * config/cris/cris.c (cris_option_optimization_table,
10639 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10640 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
10642 * config/fr30/fr30.c (fr30_option_optimization_table,
10643 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
10645 * config/frv/frv.c (frv_option_optimization_table,
10646 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
10647 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
10648 * config/h8300/h8300.c (h8300_option_optimization_table,
10649 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10650 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
10651 * config/i386/i386-protos.h (ix86_handle_option): Declare.
10652 * config/i386/i386.c: Include common/common-target.h.
10653 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
10654 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
10655 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
10656 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
10657 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
10658 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
10659 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
10660 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
10661 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
10662 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
10663 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
10664 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
10665 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
10666 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
10667 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
10668 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
10669 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
10670 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
10671 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
10672 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
10673 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
10674 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
10675 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
10676 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
10677 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
10678 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
10679 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
10680 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
10681 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
10682 ix86_option_optimization_table, ix86_option_init_struct,
10683 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
10684 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10685 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
10687 * config/i386/t-i386 (i386.o): Update dependencies.
10688 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
10689 * config/ia64/ia64.c (ia64_option_optimization_table,
10690 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
10691 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10692 ia64_handle_option): Move to ia64-common.c.
10693 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
10694 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
10695 * config/lm32/lm32.c (lm32_option_optimization_table,
10696 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
10698 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
10700 * config/m32r/m32r.c (m32r_option_optimization_table,
10701 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10702 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
10703 m32r_handle_option): Move to m32r-common.c.
10704 (m32r_memory_move_cost): Remove comment referring to
10705 TARGET_HANDLE_OPTION.
10706 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
10707 Move to m68k-common.c.
10708 * config/mcore/mcore.c (mcore_option_optimization_table,
10709 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10710 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
10711 * config/mep/mep.c (mep_option_optimization_table,
10712 mep_handle_option, TARGET_HANDLE_OPTION,
10713 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
10714 Move to mep-common.c.
10715 * config/microblaze/microblaze.c
10716 (microblaze_option_optimization_table,
10717 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10718 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
10719 * config/mips/mips.c (mips_handle_option,
10720 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
10721 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
10723 * config/mmix/mmix.c (mmix_option_optimization_table,
10724 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
10725 Move to mmix-common.c.
10726 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
10727 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
10728 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10729 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
10730 * config/pa/pa.c: Include common/common-target.h.
10731 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
10732 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10733 pa_handle_option): Move to pa-common.c.
10734 (pa_option_override): Use targetm_common.except_unwind_info.
10735 (pa_asm_output_mi_thunk, pa_function_section): Use
10736 targetm_common.have_named_sections.
10737 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
10738 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10739 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
10740 pdp11_handle_option, pdp11_option_init_struct): Move to
10742 * config/picochip/picochip.c (picochip_option_optimization_table,
10743 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
10744 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
10745 * config/rs6000/rs6000.c: Include common/common-target.h.
10746 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
10747 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
10748 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
10749 rs6000_handle_option): Move to rs6000-common.c.
10750 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10751 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
10752 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10753 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
10754 * config/s390/s390.c (processor_flags_table,
10755 s390_option_optimization_table, s390_option_init_struct,
10756 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
10757 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10758 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
10759 * config/s390/s390.h (processor_flags_table): Declare.
10760 * config/score/score.c (score_option_optimization_table,
10761 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10762 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
10763 score_handle_option): Move to score-common.c.
10764 * config/sh/sh.c (sh_option_optimization_table,
10765 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
10766 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10767 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
10768 * config/sparc/sparc.c: Include common/common-target.h.
10769 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
10770 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
10771 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
10772 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
10773 spu_option_init_struct): Move to spu-common.c.
10774 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
10775 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
10776 * config/v850/v850.c (small_memory_physical_max,
10777 v850_handle_memory_optionn v850_handle_option,
10778 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
10779 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
10781 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
10782 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
10783 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
10784 Move to xtensa-common.c.
10785 * cfglayout.c: Include common/common-target.h.
10786 (fixup_reorder_chain): Use targetm_common.have_named_sections.
10787 * cfgrtl.c: Include common/common-target.h.
10788 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
10789 targetm_common.have_named_sections.
10790 * dbxout.c: Include common/common-target.h.
10791 (dbxout_function_end): Use targetm_common.have_named_sections.
10792 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
10793 targetm_common.except_unwind_info.
10794 * dwarf2out.c: Include common/common-target.h.
10795 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
10796 dwarf2out_begin_prologue, dwarf2out_frame_init,
10797 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
10798 targetm_common.except_unwind_info.
10799 * except.c: Include common/common-target.h.
10800 (init_eh, finish_eh_generation,
10801 output_one_function_exception_table): Use
10802 targetm_common.except_unwind_info.
10803 (switch_to_exception_section): Use targetm_common.have_named_sections.
10804 * explow.c: Include common/common-target.h.
10805 * expr.c: Include common/common-target.h.
10806 (build_personality_function): Use targetm_common.except_unwind_info.
10807 * function.c: Include common/common-target.h.
10808 (expand_function_end): Use targetm_common.except_unwind_info.
10809 * haifa-sched.c: Include common/common-target.h.
10810 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
10811 * lto-opts.c: Include common/common-target.h instead of target.h.
10812 (lto_reissue_options): Use targetm_common.handle_option.
10813 * opts.c: Include common/common-target.h.
10814 (target_handle_option): Use targetm_common.handle_option.
10815 (init_options_struct): Update comment referring to
10816 targetm.target_option.optimization. Use
10817 targetm_common.default_target_flags,
10818 targetm_common.unwind_tables_default and
10819 targetm_common.option_init_struct.
10820 (default_options_optimization): Use
10821 targetm_common.option_optimization_table.
10822 (finish_options): Use targetm_common.except_unwind_info,
10823 targetm_common.unwind_tables_default,
10824 targetm_common.have_named_sections and
10825 targetm_common.supports_split_stack.
10826 * toplev.c: Include common/common-target.h.
10827 (process_options): Use targetm_common.have_named_sections.
10828 * tree-tailcall.c: Include common/common-target.h.
10829 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
10830 * tree.c: Include common/common-target.h.
10831 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
10832 * varasm.c: Include common/common-target.h.
10833 (resolve_unique_section, hot_function_section,
10834 default_function_section): Use targetm_common.have_named_sections.
10836 2011-06-14 Easwaran Raman <eraman@google.com>
10838 PR rtl-optimization/44194
10839 * dse.c: Include tree-flow.h
10840 (insn_info): Add new field non_frame_wild_read.
10841 (group_info): Add new fields escaped_n and escaped_p.
10842 (kill_on_calls): New variable.
10843 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
10844 (dse_step0): Initialize kill_on_calls.
10845 (can_escape): New function.
10846 (set_usage_bits): Add additional parameter; record information
10847 about escaped locations.
10848 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
10849 (dse_step2_nospill): Set kill_on_calls based on
10850 group->escaped_n and group->escaped_n.
10851 (add_wild_read): Refactor into...
10852 (reset_active_stores): ... New function, and
10853 (free_read_records): ... New function.
10854 (add_non_frame_wild_read): New function.
10855 (scan_insn): Call add_non_frame_wild_read on non-const calls.
10856 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
10857 (dse_step5_nospill): Call scan_reads_nospill for instructions
10858 marked as non_frame_wild_read.
10859 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
10861 2011-06-14 Joseph Myers <joseph@codesourcery.com>
10863 * common/common-target-def.h, common/common-target.def,
10864 common/common-target.h, common/config/default-common.c,
10865 common/config/pa/pa-common.c: New files.
10866 * Makefile.in (common_out_file, common_out_object_file,
10867 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
10868 (OBJS-libcommon-target): Include $(common_out_object_file).
10869 (prefix.o): Update dependencies.
10870 ($(common_out_object_file), common/common-target-hooks-def.h,
10871 s-common-target-hooks-def-h): New.
10872 (s-tm-texi): Also check timestamp on common-target.def.
10873 (build/genhooks.o): Update dependencies.
10874 * config.gcc (common_out_file, target_has_targetm_common): Define.
10875 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
10876 TARGET_ALWAYS_STRIP_DOTDOT.
10877 * configure.ac (common_out_object_file): Define.
10878 (common_out_file, common_out_object_file): Substitute.
10879 (common): Create directory.
10880 * configure: Regenerate.
10881 * doc/tm.texi.in (targetm_common): Document.
10882 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
10883 * doc/tm.texi: Regenerate.
10884 * genhooks.c (hook_array): Also include common/common-target.def.
10885 * prefix.c (tm.h): Don't include.
10886 (common/common-target.h): Include.
10887 (ALWAYS_STRIP_DOTDOT): Don't define.
10888 (update_path): Use targetm_common.always_strip_dotdot instead of
10889 ALWAYS_STRIP_DOTDOT.
10890 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
10892 2011-06-14 David Li <davidxl@google.com>
10894 * passes.c (execute_function_todo): Remove TODO_dump_func.
10895 (execute_one_pass): Remove TODO_dump_func.
10896 (execute_function_dump): New function.
10897 * tree-vrp.c: Remove TODO_dump_func.
10898 * regrename.c: Remove TODO_dump_func.
10899 * fwprop.c: Remove TODO_dump_func.
10900 * tree-into-ssa.c: Remove TODO_dump_func.
10901 * tree-complex.c: Remove TODO_dump_func.
10902 * tracer.c: Remove TODO_dump_func.
10903 * tree-loop-distribution.c: Remove TODO_dump_func.
10904 * postreload-gcse.c: Remove TODO_dump_func.
10905 * postreload.c: Remove TODO_dump_func.
10906 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
10907 * tree-tailcall.c: Remove TODO_dump_func.
10908 * ipa-cp.c: Remove TODO_dump_func.
10909 * final.c: Remove TODO_dump_func.
10910 * tree-emutls.c: Remove TODO_dump_func.
10911 * omp-low.c: Remove TODO_dump_func.
10912 * tree-ssa-dse.c: Remove TODO_dump_func.
10913 * tree-ssa-uncprop.c: Remove TODO_dump_func.
10914 * auto-inc-dec.c: Remove TODO_dump_func.
10915 * reorg.c: Remove TODO_dump_func.
10916 * tree-ssa-copyrename.c: Remove TODO_dump_func.
10917 * tree-ssa-ccp.c: Remove TODO_dump_func.
10918 * compare-elim.c: Remove TODO_dump_func.
10919 * mode-switching.c: Remove TODO_dump_func.
10920 * modulo-sched.c: Remove TODO_dump_func.
10921 * tree-call-cdce.c: Remove TODO_dump_func.
10922 * cse.c: Remove TODO_dump_func.
10923 * web.c: Remove TODO_dump_func.
10924 * tree-stdarg.c: Remove TODO_dump_func.
10925 * lto-streamer-out.c: Remove TODO_dump_func.
10926 * tree-ssa-math-opts.c: Remove TODO_dump_func.
10927 * tree-ssa-dom.c: Remove TODO_dump_func.
10928 * tree-nrv.c: Remove TODO_dump_func.
10929 * loop-init.c: Remove TODO_dump_func.
10930 * gimple-low.c: Remove TODO_dump_func.
10931 * ipa-inline.c: Remove TODO_dump_func.
10932 * tree-ssa-sink.c: Remove TODO_dump_func.
10933 * jump.c: Remove TODO_dump_func.
10934 * ifcvt.c: Remove TODO_dump_func.
10935 * tree-ssa-loop.c: Remove TODO_dump_func.
10936 * recog.c: Remove TODO_dump_func.
10937 * dse.c: Remove TODO_dump_func.
10938 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
10939 * matrix-reorg.c: Remove TODO_dump_func.
10940 * tree-eh.c: Remove TODO_dump_func.
10941 * regmove.c: Remove TODO_dump_func.
10942 * function.c: Remove TODO_dump_func.
10943 * tree-vectorizer.c: Remove TODO_dump_func.
10944 * ipa-split.c: Remove TODO_dump_func.
10945 * gcse.c: Remove TODO_dump_func.
10946 * tree-if-conv.c: Remove TODO_dump_func.
10947 * init-regs.c: Remove TODO_dump_func.
10948 * tree-ssa-phiopt.c: Remove TODO_dump_func.
10949 * implicit-zee.c: Remove TODO_dump_func.
10950 * lower-subreg.c: Remove TODO_dump_func.
10951 * bt-load.c: Remove TODO_dump_func.
10952 * tree-dfa.c: Remove TODO_dump_func.
10953 * except.c: Remove TODO_dump_func.
10954 * emit-rtl.c: Remove TODO_dump_func.
10955 * store-motion.c: Remove TODO_dump_func.
10956 * cfgexpand.c: Remove TODO_dump_func.
10957 * tree-cfgcleanup.c: Remove TODO_dump_func.
10958 * cfgcleanup.c: Remove TODO_dump_func.
10959 * tree-ssa-pre.c: Remove TODO_dump_func.
10960 * tree-sra.c: Remove TODO_dump_func.
10961 * tree-mudflap.c: Remove TODO_dump_func.
10962 * tree-ssa-copy.c: Remove TODO_dump_func.
10963 * cfglayout.c: Remove TODO_dump_func.
10964 * tree-ssa-forwprop.c: Remove TODO_dump_func.
10965 * tree-ssa-dce.c: Remove TODO_dump_func.
10966 * ira.c: Remove TODO_dump_func.
10967 * tree-ssa.c: Remove TODO_dump_func.
10968 * integrate.c: Remove TODO_dump_func.
10969 * tree-optimize.c: Remove TODO_dump_func.
10970 * tree-ssa-phiprop.c: Remove TODO_dump_func.
10971 * tree-object-size.c: Remove TODO_dump_func.
10972 * combine.c: Remove TODO_dump_func.
10973 * bb-reorder.c: Remove TODO_dump_func.
10974 * cprop.c: Remove TODO_dump_func.
10975 * var-tracking.c: Remove TODO_dump_func.
10976 * tree-profile.c: Remove TODO_dump_func.
10977 * tree-vect-generic.c: Remove TODO_dump_func.
10978 * reg-stack.c: Remove TODO_dump_func.
10979 * sched-rgn.c: Remove TODO_dump_func.
10980 * tree-ssa-structalias.c: Remove TODO_dump_func.
10981 * tree-switch-conversion.c: Remove TODO_dump_func.
10982 * tree-cfg.c: Remove TODO_dump_func.
10983 * tree-ssa-reassoc.c: Remove TODO_dump_func.
10984 * combine-stack-adj.c: Remove TODO_dump_func.
10985 * dce.c: Remove TODO_dump_func.
10986 * tree-ssanames.c: Remove TODO_dump_func.
10987 * regcprop.c: Remove TODO_dump_func.
10989 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
10991 PR middle-end/47364
10992 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
10993 and properly handle result not in Pmode.
10995 2011-06-14 Robert Millan <rmh@gnu.org>
10997 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
10998 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
11001 * config/i386/kfreebsd-gnu64.h: New file.
11002 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
11003 with `i386/kfreebsd-gnu64.h'.
11005 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
11006 (GNU_USER_LINK_EMULATION64): New macros.
11007 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
11008 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
11009 of hardcoding `elf_i386' and `elf_x86_64'.
11011 2011-06-14 Nick Clifton <nickc@redhat.com>
11014 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
11017 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
11019 2011-06-14 Jakub Jelinek <jakub@redhat.com>
11022 * tree.h (DECL_NONSHAREABLE): Define.
11023 (struct tree_decl_common): Change decl_common_unused to
11024 decl_nonshareable_flag.
11025 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
11026 Ignore vars with DECL_NONSHAREABLE bit set.
11027 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
11028 on stores to automatic aggregate vars.
11030 PR rtl-optimization/49390
11032 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
11034 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
11037 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
11038 Tom de Vries <tom@codesourcery.com>
11041 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
11042 Document changed semantics.
11043 (max_stmt_executions, max_stmt_executions_int): Declare.
11044 * tree-data-ref.c (estimated_loop_iterations)
11045 (estimated_loop_iterations_int): Move functions...
11046 * tree-ssa-loop-niter.c (estimated_loop_iterations)
11047 (estimated_loop_iterations_int): here.
11048 (record_estimate): Change nb_iterations_upper_bound and
11049 nb_iterations_estimate semantics.
11050 (max_stmt_executions, max_stmt_executions_int): New function.
11051 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
11052 (max_stmt_executions_tree): this.
11053 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
11054 estimated_loop_iterations_tree.
11055 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
11056 max_stmt_executions_int instead of estimated_loop_iterations_int.
11057 * predict.c (predict_loops): Idem.
11058 * tree-parloops.c (parallelize_loops): Idem.
11059 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
11060 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
11061 (init_omega_for_ddr_1): Idem.
11062 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
11063 (loop_prefetch_arrays): Idem
11064 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
11065 max_stmt_executions instead of estimated_loop_iterations.
11066 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
11067 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
11068 instead of nb_iterations_upper_bound.
11070 2011-06-13 Jan Hubicka <jh@suse.cz>
11072 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
11074 2011-06-14 Richard Henderson <rth@redhat.com>
11077 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
11078 (based_loc_descr): Assert it's true.
11079 (compute_frame_pointer_to_fb_displacement): Set it, rather than
11080 aborting immediately.
11082 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
11083 Mingfeng Wu <mingfeng@faraday-tech.com>
11085 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
11087 2011-06-13 Jan Hubicka <jh@suse.cz>
11089 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
11091 2011-06-13 Jan Hubicka <jh@suse.cz>
11093 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
11094 similarly to DECL_COMDAT.
11095 * cgraphunit.c (cgraph_analyze_function): Likewise.
11096 * ipa.c (function_and_variable_visibility): Likewise.
11098 2011-06-13 Jan Hubicka <jh@suse.cz>
11100 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
11101 BINFO_VIRTUALS when streaming for ltrans unit.
11103 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
11105 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
11106 (movdi_internal64): Same.
11108 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
11111 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
11112 a set of similar patterns, where the MATCH_OPERAND for the function
11113 argument is replaced with individual references to hardware registers.
11114 (save_fpregs_<mode>): Ditto
11115 (restore_gpregs_<mode>): Ditto
11116 (return_and_restore_gpregs_<mode>): Ditto
11117 (return_and_restore_fpregs_<mode>): Ditto
11118 (return_and_restore_fpregs_aix_<mode>): Ditto
11120 2011-06-13 Jan Hubicka <jh@suse.cz>
11122 * ipa-utils.c (postorder_stack): New structure.
11123 (ipa_reverse_postorder): Handle aliases.
11125 2011-06-13 Jan Hubicka <jh@suse.cz>
11127 * ipa-inline.c (reset_edge_caches): Walk aliases.
11128 (update_caller_keys): Do not test inlinability of aliases.
11129 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
11130 (do_estimate_growth): Fix typo.
11132 2011-06-13 Jan Hubicka <jh@suse.cz>
11134 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
11135 (can_remove_node_now_p): ... here; handle same comdat groups.
11136 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
11137 (inline_call): Update use of can_remove_node_now_p.
11139 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
11141 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
11142 condition to disallow non-identical memory locations.
11143 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
11144 preference to bit manipulation instructions.
11146 2011-06-13 Jan Hubicka <jh@suse.cz>
11148 * cgraph.c (cgraph_for_node_thunks_and_aliases,
11149 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
11150 (nonremovable_p): New function.
11151 (cgraph_can_remove_if_no_direct_calls_p): New function.
11152 (used_from_object_file_p): New functoin.
11153 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
11154 references from aliases.
11155 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
11156 * ipa-inline.c (check_caller_edge): New function.
11157 (want_inline_function_called_once_p): Use it; accept aliases called
11159 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
11161 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11164 * config/arm/neon.md (vec_pack_trunc): Set the lengths
11165 correctly for the case with Quad vectors.
11167 2011-06-13 Jakub Jelinek <jakub@redhat.com>
11168 Ira Rosen <ira.rosen@linaro.org>
11170 PR tree-optimization/49352
11171 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
11172 all, make sure loop_use_stmt after the loop is a def stmt of a used
11173 SSA_NAME that is the only one defined inside of the loop. Don't
11174 check for COND_EXPR and GIMPLE_BINARY_RHS.
11175 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
11176 check_reduction is true.
11178 2011-06-11 Jan Hubicka <jh@suse.cz>
11180 PR middle-end/49373
11181 * ipa.c (cgraph_externally_visible_p): Check resolution info.
11183 2011-06-11 Jan Hubicka <jh@suse.cz>
11185 PR middle-end/48836
11186 * ipa-inline-transform.c: Include tree-pass.h
11187 (inline_transform): Set TODO_update_ssa_only_virtuals.
11188 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
11190 2011-06-11 Jan Hubicka <jh@suse.cz>
11192 PR middle-end/49378
11193 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
11194 aliases and thunks.
11196 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
11198 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
11199 Take number of iterations to peel into account for equally frequent
11200 misalignment values.
11202 2011-06-11 Jan Hubicka <jh@suse.cz>
11204 * lto-streamer-out.c (produce_symtab): Stream out the newly
11205 represented aliases.
11207 2011-06-11 Jan Hubicka <jh@suse.cz>
11209 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
11211 (ipa_update_after_lto_read): Likewise.
11212 (ipa_write_node_info): Do not sream call_with_var_arguments.
11213 (ipa_read_node_info): Likewise.
11215 2011-06-11 Jan Hubicka <jh@suse.cz>
11217 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
11219 2011-06-11 Jan Hubicka <jh@suse.cz>
11221 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
11222 (lto_symtab_resolve_can_prevail_p): Likewise.
11223 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
11224 * cgraph.c (same_body_aliases_done): New global var.
11225 (cgraph_same_body_alias_1): Rename to ...
11226 (cgraph_create_function_alias): ... this one; reorg to new
11228 (cgraph_same_body_alias): Use cgraph_create_function_alias;
11229 record references when asked to.
11230 (cgraph_add_thunk): Fix formating.
11231 (cgraph_get_node): Kill same body alias code.
11232 (cgraph_node_for_asm): Likewise.
11233 (cgraph_remove_same_body_alias): Remove.
11234 (cgraph_remove_node): Kill same body alias code.
11235 (cgraph_mark_address_taken_node): Mark also the aliased function
11236 as having address taken.
11237 (dump_cgraph_node): Dump same body aliases.
11238 (cgraph_for_node_thunks_and_aliases): Update for new alias
11240 (cgraph_for_node_and_aliases): Likewise.
11241 * cgraph.h (same_body): Kll pointer.
11242 (same_body_alias): Update comment.
11243 (same_body_aliases_done): Declare.
11244 (cgraph_remove_same_body_alias): Remove declaration.
11245 (cgraph_create_function_alias): Declare.
11246 (cgraph_process_same_body_aliases): Declare.
11247 (cgraph_function_with_gimple_body_p): Check for alias.
11248 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
11249 (cgraph_alias_aliased_node): New function.
11250 (cgraph_function_node): Update for new aliases.
11251 (cgraph_function_or_thunk_node): Likewise.
11252 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
11253 (inline_call): Remove dead aliases.
11254 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
11255 name hack for same body aliases.
11256 (clone_of_p): Look through aliases.
11257 (verify_cgraph_node): Verify aliases.
11258 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
11259 (cgraph_process_same_body_aliases): New function.
11260 (process_function_and_variable_attributes): Disable weakref warning on
11262 (cgraph_analyze_functions): Handle aliases.
11263 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
11264 (assemble_thunks): Rename to ...
11265 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
11266 (cgraph_expand_function): Remove alias output code.
11267 (cgraph_output_in_order): Skip aliases.
11268 (cgraph_preserve_function_body_p): Aliases don't need preserving.
11269 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
11270 (ipa_record_reference): Do not assert on alias references.
11271 (ipa_ref_has_aliases_p): New function.
11272 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
11273 (ipa_ref_has_aliases_p): Declare.
11274 * lto-cgraph.c (lto_output_node): Handle aliases.
11275 (input_node): Likewise.
11276 * lto-streamer-out.c (lto_output): Skip aliases.
11277 (produce_symtab): Kill same_body_alias code.
11278 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
11279 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
11280 * ipa-inline.c (update_caller_keys): Walk aliases.
11281 (inline_small_functions): Fix thinko in previous patch.
11282 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
11283 (function_and_variable_visibility): Do not walk same body aliases.
11284 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
11285 (ipa_pta_execute): Use it.
11287 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
11289 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
11290 (*vec_dupv2df): Rename from vec_dupv2df.
11291 (vec_dupv2df): New expander.
11293 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
11295 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
11297 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
11299 * config/i386/i386.md: Use default value in "isa" attribute.
11300 * config/i386/sse.md: Ditto.
11301 * config/i386/mmx.md: Ditto.
11303 2011-06-10 Wei Guozhi <carrot@google.com>
11306 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
11307 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
11308 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
11310 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
11312 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
11313 (arm_legitimate_ldrd_p): New prototype.
11314 (arm_output_ldrd): New prototype.
11315 * config/arm/arm.c (arm_check_ldrd_operands): New function.
11316 (arm_legitimate_ldrd_p): New function.
11317 (arm_output_ldrd): New function.
11319 2011-06-10 David Li <davidxl@google.com>
11321 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
11322 * passes.c (passr_eq): New function.
11323 (create_pass_tab): New function.
11324 (pass_traverse): New function.
11325 (dump_one_pass): New function.
11326 (dump_pass_list): New function.
11327 (dump_passes): New function.
11329 2011-06-10 Jan Hubicka <jh@suse.cz>
11331 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
11332 setting the nothrow flag.
11333 * ipa-reference.c (propagate): Skip aliases.
11334 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
11335 (propagate_nothrow): Skip aliases; do not update cgraph.
11336 (local_pure_const): Do not update cgraph.
11337 * tree-profile.c (tree_profiling): Do fixup_cfg.
11339 2011-06-10 Jan Hubicka <jh@suse.cz>
11341 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
11342 (cgraph_local_node_p): ... here; handle aliases.
11343 (has_addr_references_p): Break out from ...;
11344 (cgraph_remove_unreachable_nodes) ... here.
11346 2011-06-10 Jan Hubicka <jh@suse.cz>
11348 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
11349 * common.opt (flag_inline_functions_called_once): Do not
11352 2011-06-10 Jan Hubicka <jh@suse.cz>
11354 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
11355 (ipcp_initialize_node_lattices): Do not deal with aliases;
11356 Do not try to propagate through thunks.
11357 (ipcp_change_tops_to_bottom): Do not deal with aliases.
11359 2011-06-10 Jan Hubicka <jh@suse.cz>
11361 * ipa-prop.c (ipa_write_node_info): Stream jump functions
11362 for indirect calls.
11363 (ipa_read_node_info): Likewise.
11365 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11368 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
11369 (build_and_insert_call): Likewise.
11370 (build_and_insert_ref): New.
11371 (gimple_expand_builtin_pow): Minor cleanup.
11372 (gimple_expand_builtin_cabs): New.
11373 (execute_cse_sincos): Add case for BUILT_IN_CABS.
11375 2011-06-10 Jan Hubicka <jh@suse.cz>
11377 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
11378 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
11379 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
11380 (ipcp_propagate_stage): Skip aliases when propagating.
11381 (ipcp_need_redirect_p): Skip aliases.
11382 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
11383 collect_callers_of_node.
11384 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
11386 (ipa_compute_jump_functions): Look through aliases.
11388 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11390 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
11392 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
11394 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
11396 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
11398 2011-06-10 Jan Hubicka <jh@suse.cz>
11400 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
11401 Update call of gimple_get_virt_method_for_binfo.
11402 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
11403 refuse_thunks parameter.
11404 (gimple_fold_call): Update.
11405 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
11407 2011-06-10 Jan Hubicka <jh@suse.cz>
11409 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
11410 (not_all_callers_have_enough_arguments_p): ... this one; turn into
11411 worker for cgraph_for_node_and_aliases.
11412 (convert_callers_for_node): Break out from ...
11413 (convert_callers): ... here.
11414 (modify_function): Use collect_callers_of_node.
11415 (ipa_early_sra): Use cgraph_for_node_and_aliases.
11417 2011-06-10 Richard Guenther <rguenther@suse.de>
11419 PR tree-optimization/49361
11420 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
11421 when not already in gimple form.
11423 2011-06-10 Richard Guenther <rguenther@suse.de>
11426 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
11427 FOR_EACH_PHI_OR_STMT_USE.
11429 2011-06-10 Jan Hubicka <jh@suse.cz>
11431 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
11432 (clone_inlined_nodes): ... here.
11433 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
11434 to real destination prior inlining.
11435 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
11436 can_early_inline_edge_p, want_early_inline_function_p,
11437 want_early_inline_function_p, want_inline_small_function_p,
11438 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
11439 edge_badness, update_all_callee_keys, lookup_recursive_calls,
11440 add_new_edges_to_heap, inline_small_functions, flatten_function,
11441 inline_always_inline_functions, early_inline_small_functions): Use
11442 cgraph_function_or_thunk_node.
11443 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
11444 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
11445 (do_estimate_edge_growth_1): Break out from ...
11446 (do_estimate_growth) ... here; walk aliases.
11447 (inline_generate_summary): Skip aliases.
11449 2011-06-10 Richard Guenther <rguenther@suse.de>
11451 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
11452 forward when combining, visit inserted stmts when a stmt was changed.
11454 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
11456 * tree.h (error_operand_p): Add.
11457 * dbxout.c (dbxout_type_fields): Use the latter.
11458 * c-decl.c (add_stmt): Likewise.
11459 * gimplify.c (omp_add_variable, omp_notice_variable,
11460 gimplify_scan_omp_clauses): Likewise.
11462 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
11464 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
11465 when a value is actually passed in regs.
11467 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
11468 Laurent Rougé <laurent.rouge@menta.fr>
11470 * doc/invoke.texi (SPARC options): Add -mflat.
11471 * config/sparc/sparc.opt: Likewise.
11472 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
11473 (sparc_flat_expand_prologue): Declare.
11474 (sparc_flat_expand_epilogue): Likewise.
11475 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
11476 (CPP_ENDIAN_SPEC): Replace with...
11477 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
11478 (CPP_SPEC): Adjust to above change.
11479 (EXTRA_SPECS): Likewise.
11480 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
11481 (INCOMING_REGNO): Likewise.
11482 (OUTGOING_REGNO): Likewise.
11483 (LOCAL_REGNO): Likewise.
11484 (SETUP_FRAME_ADDRESSES): Likewise.
11485 (FIXED_REGISTERS): Set 0 for %fp.
11486 (CALL_USED_REGISTERS): Likewise.
11487 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
11488 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
11489 (RETURN_ADDR_REGNUM): Define.
11490 (RETURN_ADDR_RTX): Use it.
11491 (INCOMING_RETURN_ADDR_REGNUM): Define.
11492 (INCOMING_RETURN_ADDR_RTX): Use it.
11493 (DWARF_FRAME_RETURN_COLUMN): Likewise.
11494 (EH_RETURN_REGNUM): Define.
11495 (EH_RETURN_STACKADJ_RTX): Use it.
11496 (EH_RETURN_HANDLER_RTX): Delete.
11497 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
11498 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
11500 (struct machine_function): Add frame_size, apparent_frame_size,
11501 frame_base_reg, frame_base_offset, n_global_fp_regs and
11502 save_local_in_regs_p fields.
11503 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
11504 sparc_frame_base_offset, sparc_n_global_fp_regs,
11505 sparc_save_local_in_regs_p): New macros.
11506 (sparc_option_override): Error out if -fcall-saved-REG is specified
11508 (eligible_for_restore_insn): Fix formatting.
11509 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
11510 (eligible_for_sibcall_delay): Likewise.
11511 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
11512 (sparc_legitimate_address_p): Adjust to above change.
11513 (save_global_or_fp_reg_p): New predicate.
11514 (return_addr_reg_needed_p): Likewise.
11515 (save_local_or_in_reg_p): Likewise.
11516 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
11517 (SORR_SAVE, SORR_RESTORE): Delete.
11518 (sorr_pred_t): New typedef.
11519 (sorr_act_t): New enum.
11520 (save_or_restore_regs): Rename to...
11521 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
11522 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
11523 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
11524 mechanism. Add CFI information for double-word saves in 32-bit mode.
11525 (emit_adjust_base_to_offset): New function extracted from...
11526 (emit_save_or_restore_regs): ...this. Rename the rest to...
11527 (emit_save_or_restore_regs_global_fp_regs): ...this.
11528 (emit_save_or_restore_regs_local_in_regs): New function.
11529 (gen_create_flat_frame_[123]): New functions.
11530 (sparc_expand_prologue): Use SIZE local variable. Adjust.
11531 (sparc_flat_expand_prologue): New function.
11532 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
11533 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
11534 (sparc_flat_expand_epilogue): New function.
11535 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
11536 (output_return): Likewise.
11537 (output_sibcall): Likewise.
11538 (sparc_output_mi_thunk): Likewise.
11539 (sparc_frame_pointer_required): Likewise.
11540 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
11541 function optimization.
11542 * config/sparc/sparc.md (flat): New attribute.
11543 (prologue): Add TARGET_FLAT handling.
11544 (save_register_window): Disable if TARGET_FLAT.
11545 (create_flat_frame_[123]): New patterns.
11546 (epilogue): Add TARGET_FLAT handling.
11547 (sibcall_epilogue): Likewise.
11548 (eh_return): New expander.
11549 (eh_return_internal): New insn and splitter.
11550 (return_internal): Add TARGET_FLAT handling.
11551 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
11552 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
11553 (nonlocal_goto): Add TARGET_FLAT handling.
11554 * config/sparc/t-elf: Add -mflat multilib.
11555 * config/sparc/t-leon: Likewise.
11557 2011-06-10 Jan Hubicka <jh@suse.cz>
11559 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
11560 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
11561 (self_recursive_p): Use cgraph_function_node.
11562 (propagate_pure_const): Likewise.
11563 (propagate_nothrow): Likewise.
11564 * ipa-reference.c (ipa_reference_get_not_read_global): Use
11565 cgraph_function_node.
11566 (propagate_bits): Likewise.
11567 (propagate): Likewise.
11569 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11570 Richard Earnshaw <rearnsha@arm.com>
11572 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
11573 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
11574 (*thumb2_movdi_vfp): Delete.
11575 (*arm_movdi_vfp_cortexa8): Delete.
11576 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
11577 (*movdi_vfp_cortexa8): Likewise.
11579 2011-06-10 Richard Guenther <rguenther@suse.de>
11581 * stor-layout.c (initialize_sizetypes): Give names to all
11584 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
11586 PR tree-optimization/49318
11587 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
11588 irrelevant pattern statements.
11590 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
11592 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
11595 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
11596 to last assignment.
11598 2011-06-09 Jan Hubicka <jh@suse.cz>
11600 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
11601 do not recompute reachable flag.
11602 (cgraph_finalize_function, cgraph_analyze_functions): Set
11603 redefined_extern_inline here.
11605 2011-06-09 Jan Hubicka <jh@suse.cz>
11607 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
11608 (cgraph_only_called_directly_p): ... this one; bring offline.
11609 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
11610 varpool_used_from_object_file_p): Drop names from the declaratoin.
11611 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
11612 collect_callers_of_node): New.
11613 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
11614 (cgraph_edge_recursive_p): Use cgraph_function_node.
11615 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
11616 (cgraph_node_cannot_be_local_p_1): Break out from ...
11617 (cgraph_node_can_be_local_p): ... here; walk aliases.
11618 (cgraph_for_node_thunks_and_aliases): New function.
11619 (cgraph_for_node_and_aliases): New function.
11620 (cgraph_make_node_local_1): Break out from ...
11621 (cgraph_make_node_local) ... here; use
11622 cgraph_for_node_thunks_and_aliases.
11623 (cgraph_set_nothrow_flag_1): Break out from ...
11624 (cgraph_set_nothrow_flag) ... here;
11625 use cgraph_for_node_thunks_and_aliases.
11626 (cgraph_set_const_flag_1): Break out from ...
11627 (cgraph_set_const_flag) ... here;
11628 use cgraph_for_node_thunks_and_aliases.
11629 (cgraph_set_pure_flag_1): Break out from ...
11630 (cgraph_set_pure_flag) ... here;
11631 use cgraph_for_node_thunks_and_aliases.
11632 (cgraph_propagate_frequency_1): Break out from ...
11633 (cgraph_propagate_frequency) ... here; use
11634 cgraph_for_node_thunks_and_aliases.
11635 (cgraph_used_from_object_file_p): Do not care about aliases.
11636 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
11638 (collect_callers_of_node_1, collect_callers_of_node): New functions.
11640 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
11642 PR rtl-optimization/49154
11643 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
11644 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
11645 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
11646 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
11647 * config/cris/cris.h (cris_register_move_cost): Remove
11648 !TARGET_V32 code. Tweak comments.
11650 2011-06-09 Jan Hubicka <jh@suse.cz>
11652 * cgraphbuild.c (record_eh_tables): Mark personality function as having
11655 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
11657 PR rtl-optimization/49154
11658 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
11659 is a matching slot in the hashtable, assign it to classes_ptr.
11661 PR rtl-optimization/49154
11662 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
11664 * doc/tm.texi: Regenerate.
11666 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
11669 * config/sh/sh.md (UNSPEC_CHKADD): New.
11670 (chk_guard_add): New define_insn_and_split.
11671 (symGOT_load): Use chk_guard_add instead of blockage.
11673 2011-06-09 Kai Tietz <ktietz@redhat.com>
11675 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
11677 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
11679 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
11681 2011-06-09 Wei Guozhi <carrot@google.com>
11684 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
11685 (peephole2 for conditional move): Generate 16 bit instructions.
11687 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
11689 * config/i386/i386.md (*movdi_internal_rex64): Merge
11690 alternatives 6 and 8.
11692 2011-06-09 David Li <davidxl@google.com>
11694 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
11695 * passes.c (passr_eq): New function.
11696 (create_pass_tab): New function.
11697 (pass_traverse): New function.
11698 (dump_one_pass): New function.
11699 (dump_pass_list): New function.
11700 (dump_passes): New function.
11702 2011-06-09 David Li <davidxl@google.com>
11704 * tree-complex.c (tree_lower_complex): Gate cleanup.
11705 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
11706 (execute_optimize_stdarg): Ditto.
11707 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
11708 (execute_cleanup_eh_1): Ditto.
11709 (execute_cleanup_eh): Ditto.
11710 * gcse.c (gate_rtl_pre): Ditto.
11711 (execute_rtl_pre): Ditto.
11712 * except.c (finish_eh_generation): Ditto.
11713 (convert_to_eh_region_ranges): Ditto.
11714 * cprop.c (one_cprop_pass): Ditto.
11716 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
11719 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
11720 in all basic blocks.
11722 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11724 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
11725 (HAVE_ENABLE_EXECUTE_STACK): Define.
11726 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
11727 (HAVE_ENABLE_EXECUTE_STACK): Define.
11728 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
11729 (HAVE_ENABLE_EXECUTE_STACK): Define.
11730 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
11731 (ENABLE_EXECUTE_STACK): Remove.
11732 (HAVE_ENABLE_EXECUTE_STACK): Define.
11733 [IN_LIBGCC2]: Don't include <windows.h>.
11734 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
11735 (HAVE_ENABLE_EXECUTE_STACK): Define.
11736 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
11737 (HAVE_ENABLE_EXECUTE_STACK): Define.
11738 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
11739 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
11740 (HAVE_ENABLE_EXECUTE_STACK): Define.
11741 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
11742 (HAVE_ENABLE_EXECUTE_STACK): Define.
11743 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
11744 (HAVE_ENABLE_EXECUTE_STACK): Define.
11745 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
11746 (HAVE_ENABLE_EXECUTE_STACK): Define.
11747 * config/alpha/alpha.c (alpha_trampoline_init): Test
11748 HAVE_ENABLE_EXECUTE_STACK.
11749 * config/i386/i386.c (ix86_trampoline_init): Likewise.
11750 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
11751 (sparc64_initialize_trampoline): Likewise.
11752 * libgcc2.c [L_enable_execute_stack]: Remove.
11753 * system.h (ENABLE_EXECUTE_STACK): Poison.
11754 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
11755 * doc/tm.texi: Regenerate.
11756 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
11758 2011-06-09 Jakub Jelinek <jakub@redhat.com>
11760 PR middle-end/49308
11761 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
11762 variable. After resetting and rescanning insn continue with previous
11765 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11767 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
11768 (gcc_cv_ld_hidden): Likewise.
11769 * configure: Regenerate.
11770 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
11771 (ix86_stack_protect_fail): Mark unused.
11772 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
11773 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
11774 [TARGET_MACHO]: Don't define.
11775 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
11776 (TARGET_STACK_PROTECT_FAIL): Likewise.
11777 (rs6000_stack_protect_fail): Mark unused.
11778 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
11779 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
11781 2011-06-08 Andi Kleen <ak@linux.intel.com>
11783 * varasm.c (get_section): Print location of other conflict
11784 for section conflicts.
11786 2011-06-08 Andi Kleen <ak@linux.intel.com>
11788 * config/i386/driver-i386.c (host_detect_local_cpu):
11789 Add model 0x2d Intel CPU.
11791 2011-06-08 Andi Kleen <ak@linux.intel.com>
11793 * reginfo.c (global_regs_decl): Add.
11794 (globalize_reg): Add decl parameter. Compute location. Pass location
11795 to warnings and add inform. Store decl in global_regs_decl.
11796 * rtl.h (globalize_reg): Update prototype.
11797 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
11799 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
11801 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
11803 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
11806 * config/sh/predicates.md (general_movsrc_operand): Check
11807 mode for memory with indexed address for QI and HImode.
11808 (general_movdst_operand): Likewise.
11810 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
11812 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
11814 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
11816 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
11817 (num_ssa_operands): Likewise.
11818 (op_iter_init_phiuse): Forward-declare.
11819 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
11821 2011-06-08 Nick Clifton <nickc@redhat.com>
11823 * doc/invoke.texi (ARM Options): Update description of
11826 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
11828 * config/i386/driver-i386.c (host_detect_local_cpu): Support
11829 unknown Intel family 0x6 CPUs.
11831 2011-06-08 Martin Jambor <mjambor@suse.cz>
11833 * tree-sra.c (mark_rw_status): Removed.
11834 (analyze_access_subtree): New parameter parent instead of
11835 mark_read and mark_write, propagate from that.
11837 2011-06-08 Julian Brown <julian@codesourcery.com>
11839 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
11840 for double-precision helper functions in hard-float mode if only
11841 single-precision arithmetic is supported in hardware.
11843 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
11845 PR rtl-optimization/49303
11846 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
11847 code_motion_path_driver returned 0 or 1.
11848 (sel_region_finish): Clear h_d_i_d.
11850 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
11852 * config/sh/sh.c (prepare_move_operands): Set pic register
11853 appropriately for global and local dynamic tls models even
11854 if flag_pic is unset.
11856 2011-06-07 Jason Merrill <jason@redhat.com>
11858 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
11860 2011-06-07 Xinliang David Li <davidxl@google.com>
11861 * passes.c (enable_disable_pass): Handle assembler name.
11862 (is_pass_explicitly_enabled_or_disabled): Ditto.
11864 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11866 PR tree-optimization/48497
11867 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
11869 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11871 PR tree-optimization/46728
11872 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
11873 to use gimple_val_nonnegative_real_p.
11874 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
11875 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
11877 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
11879 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
11881 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
11883 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
11886 2011-06-07 Richard Guenther <rguenther@suse.de>
11888 * stor-layout.c (initialize_sizetypes): Initialize all
11889 sizetypes based on target definitions.
11890 (set_sizetype): Remove.
11891 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
11892 * tree.h (set_sizetype): Remove.
11894 2011-06-07 Nick Clifton <nickc@redhat.com>
11896 * config.gcc: Unify V850 architecture options and add support for
11897 newer V850 architectures.
11898 * config/v850/t-v850e: Delete.
11900 2011-06-07 Richard Guenther <rguenther@suse.de>
11902 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
11903 Call set_sizetype from here.
11905 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
11907 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
11908 (*maddhisi4tb, *maddhisi4tt): New define_insns.
11910 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
11911 Andrew Stubbs <ams@codesourcery.com>
11913 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
11915 * doc/md.texi (Canonicalization of Instructions): Document widening
11916 multiply canonicalization.
11918 2011-06-07 Jakub Jelinek <jakub@redhat.com>
11920 PR gcov-profile/49299
11921 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
11923 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
11925 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
11927 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
11928 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
11929 vect_recog_pow_pattern): Likewise.
11930 (vect_pattern_recog_1): Remove declaration.
11931 (widened_name_p): Remove declaration. Add new argument to specify
11932 whether to check that both types are either signed or unsigned.
11933 (vect_recog_widen_mult_pattern): Update documentation. Handle
11934 unsigned patterns and multiplication by constants.
11935 (vect_pattern_recog_1): Update vect_recog_func references. Use
11936 statement information from the statement returned from pattern
11937 detection functions.
11938 (vect_pattern_recog): Update vect_recog_func reference.
11939 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
11940 multiplication by a constant use the type of the other operand.
11942 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
11944 PR rtl-optimization/49145
11945 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
11947 2011-06-06 Jakub Jelinek <jakub@redhat.com>
11950 * dwarf2out.c (native_encode_initializer): Decrement count in each
11954 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
11955 non-MODE_INT modes.
11958 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
11959 if stmt folded into nothing.
11960 * tree-inline.c (fold_marked_statements): If a builtin at the end of
11961 a bb folded into nothing, just update cgraph edges and move to next bb.
11962 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
11963 to be NULL. Don't compute count and frequency if new_call is NULL.
11965 2011-06-04 Diego Novillo <dnovillo@google.com>
11967 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
11968 (cgraph.o): Likewise.
11969 (cgraphunit.o): Likewise.
11970 * cgraphunit.c: Include lto-streamer.h
11971 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
11973 * lto-streamer-in.c (unpack_value_fields): Call
11974 streamer_hooks.unpack_value_fields if set.
11975 (lto_materialize_tree): For unhandled nodes, first try to
11976 call lto_streamer_hooks.alloc_tree, if it exists.
11977 (lto_input_ts_decl_common_tree_pointers): Move reading of
11978 DECL_INITIAL to lto_streamer_read_tree.
11979 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
11980 (lto_streamer_read_tree): New.
11981 (lto_reader_init): Rename from lto_init_reader.
11982 Move initialization code to lto/lto.c.
11983 * lto-streamer-out.c (pack_value_fields): Call
11984 streamer_hooks.pack_value_fields if set.
11985 (lto_output_tree_ref): For tree nodes that are not normally indexable,
11986 call streamer_hooks.indexable_with_decls_p before giving up.
11987 (lto_output_ts_decl_common_tree_pointers): Move handling
11988 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
11989 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
11990 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
11991 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
11992 (lto_streamer_write_tree): New.
11993 (lto_output): Call lto_streamer_init directly.
11994 (lto_writer_init): Remove.
11995 * lto-streamer.c (streamer_hooks): New.
11996 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
11997 instead of lto_preload_common_nodes.
11998 (lto_is_streamable): Move from lto-streamer.h
11999 (lto_streamer_hooks_init): New.
12000 (streamer_hooks): New.
12001 (streamer_hooks_init): New.
12002 * lto-streamer.h (struct output_block): Forward declare.
12003 (struct lto_input_block): Likewise.
12004 (struct data_in): Likewise.
12005 (struct bitpack_d): Likewise.
12006 (struct streamer_hooks): Declare.
12007 (streamer_hooks): Declare.
12008 (lto_streamer_hooks_init): Declare.
12009 (lto_streamer_write_tree): Declare.
12010 (lto_streamer_read_tree): Declare.
12011 (streamer_hooks_init): Declare.
12012 (lto_is_streamable): Move to lto-streamer.c
12014 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12016 * longlong.h (smul_ppmm): The resulting register pair contains the
12017 higher order word first.
12019 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12021 PR tree-optimization/46728
12022 * builtins.c (powi_table): Remove.
12023 (powi_lookup_cost): Remove.
12024 (powi_cost): Remove.
12025 (expand_powi_1): Remove.
12026 (expand_powi): Remove.
12027 (expand_builtin_pow_root): Remove.
12028 (expand_builtin_pow): Remove.
12029 (expand_builtin_powi): Eliminate handling of constant exponent.
12030 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
12032 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
12034 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
12036 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
12038 * dce.c (reset_unmarked_insns_debug_uses): New.
12039 (delete_unmarked_insns): Skip debug insns.
12040 (prescan_insns_for_dce): Likewise.
12041 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
12042 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
12043 active reg can be found.
12044 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
12045 (convert_regs_1): Use it.
12047 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
12049 * tree-pretty-print.c (dump_function_header): Add flags.
12050 Don't dump decl_uid with nouid.
12051 * tree-pretty-print.h (dump_function_header): Adjust.
12052 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
12053 * passes.c (pass_init_dump_file): Pass dump_flags on.
12054 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
12056 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
12059 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
12061 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
12063 PR tree-optimization/49243
12064 * calls.c (setjmp_call_p): Also check if fndecl has the
12065 returns_twice attribute.
12067 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12069 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
12072 2011-06-06 Richard Henderson <rth@redhat.com>
12073 Georg-Johann Lay <avr@gjlay.de>
12076 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
12078 * config/avr/avr.md ("insv"): New insn expander.
12079 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
12080 "*insv.not.io", "*insv.reg"): New insns.
12082 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
12085 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
12086 to nonimmediate_operand from memory_operand for the operand that is to
12087 be forced to memory by the expander. Lose the constraints.
12089 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
12091 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
12092 EH return when delayed branches are disabled.
12094 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
12096 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
12097 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
12099 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
12100 Simplify MODE_V1DF and MODE_V2SF handling.
12101 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
12102 Simplify MODE_SF handling.
12104 2011-06-04 Jan Hubicka <jh@suse.cz>
12106 PR tree-optimization/48893
12107 PR tree-optimization/49091
12108 PR tree-optimization/49179
12109 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
12112 2011-06-04 Jan Hubicka <jh@suse.cz>
12115 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
12118 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
12120 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
12122 2011-06-04 Jakub Jelinek <jakub@redhat.com>
12125 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
12126 to be strictly smaller than 1 << shiftcount.
12128 2011-06-04 Jan Hubicka <jh@suse.cz>
12130 PR tree-optimize/48929
12131 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
12132 of empty predicate.
12134 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
12137 * calls.c (emit_call_1): Prefer the __builtin declaration of
12140 2011-06-03 Diego Novillo <dnovillo@google.com>
12142 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
12143 (lto_input_tree_pointers): Likewise.
12144 * lto-streamer-out.c (pack_value_fields): Likewise.
12145 (lto_output_tree_pointers): Likewise.
12146 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
12147 and OPTIMIZATION_NODE.
12149 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12151 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
12152 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
12153 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
12154 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
12155 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
12156 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
12157 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
12158 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
12159 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
12160 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
12161 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
12162 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
12163 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
12164 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
12165 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
12166 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
12167 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
12168 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
12169 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
12170 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
12171 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
12172 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
12173 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
12174 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
12175 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
12176 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
12177 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
12178 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
12179 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
12180 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
12181 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
12182 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
12183 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
12184 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
12185 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
12186 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
12187 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
12188 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
12189 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
12190 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
12191 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
12192 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
12193 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
12194 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
12195 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
12196 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
12197 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
12198 * system.h (MD_UNWIND_SUPPORT): Poison.
12199 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
12200 * doc/tm.texi: Regenerate.
12201 * unwind-dw2.c: Include md-unwind-support.h instead of
12203 * config/ia64/unwind-ia64.c: Likewise.
12204 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
12206 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
12208 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
12210 2011-06-03 Richard Henderson <rth@redhat.com>
12211 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12213 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
12214 (sigill_hdlr): Correct insn, insn size.
12215 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
12217 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12219 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
12221 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
12222 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
12223 * config/mips/t-iris: Remove.
12224 * config/mips/t-irix6: New file.
12225 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
12227 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12229 * Makefile.in (LIB2ADDEHDEP): Remove.
12230 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
12231 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
12232 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
12233 * config/t-darwin (LIB2ADDEHDEP): Remove.
12234 * config/t-freebsd (LIB2ADDEHDEP): Remove.
12235 * config/t-linux (LIB2ADDEHDEP): Remove.
12237 2011-06-03 Diego Novillo <dnovillo@google.com>
12239 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
12240 (lto_register_var_decl_in_symtab): Likewise.
12241 (lto_register_function_decl_in_symtab): Likewise.
12242 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
12243 logic to uniquify_nodes.
12245 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12247 * config/alpha/t-osf5: Remove.
12248 * config/alpha/t-osf-pthread: Remove.
12249 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
12250 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
12252 2011-06-03 Julian Brown <julian@codesourcery.com>
12254 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
12255 (strongarm1110): Use strongarm tuning.
12256 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
12257 * config/arm/arm.c (arm_strongarm_tune): New.
12258 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
12259 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
12260 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
12261 setting, using previous defaults or 1 for Cortex-A5.
12262 (arm_option_override): Set max_insns_skipped from current tuning.
12264 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
12266 * doc/install.texi (Options specification): Document --with-specs.
12268 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12270 * config/arm/neon.md (orndi3_neon): Actually split it.
12272 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
12274 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
12275 * var-tracking.c (reverse_op): Limite recurse depth to 5.
12277 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
12280 * target.def (delay_sched2, delay_vartrack): New.
12281 * doc/tm.texi.in: Update.
12282 * doc/tm.texi: Rebuild.
12283 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
12284 * var-tracking.c (gate_handle_var_tracking): Likewise.
12285 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
12286 (bfin_flag_var_tracking): Drop.
12287 (output_file_start): Don't save and override flag_var_tracking.
12288 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
12289 (bfin_reorg): Test original variables.
12290 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
12291 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
12292 (ia64_flag_var_tracking): Drop.
12293 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
12294 (ia64_file_start): Don't save and override flag_var_tracking.
12295 (ia64_override_options_after_change): Ditto
12296 flag_schedule_insns_after_reload.
12297 (ia64_reorg): Test original variables.
12298 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
12299 (picochip_flag_var_tracking): Drop.
12300 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
12301 (picochip_option_override): Don't save and override
12302 flag_schedule_insns_after_reload.
12303 (picochip_asm_file_start): Ditto flag_var_tracking.
12304 (picochip_reorg): Test original variables.
12305 * config/spu/spu.c (spu_flag_var_tracking): Drop.
12306 (TARGET_DELAY_VARTRACK): Define.
12307 (spu_var_tracking): New.
12308 (spu_machine_dependent_reorg): Call it.
12309 (asm_file_start): Don't save and override flag_var_tracking.
12311 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
12314 * config/sh/predicates.md (general_movsrc_operand): Return 0
12315 for memory and memory subreg of which address is an invalid
12316 indexed address for QI and HImode.
12317 (general_movdst_operand): Likewise.
12319 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
12321 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
12322 edges only, when there is a non-local label in the function.
12323 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
12325 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
12327 * config/i386/constraints.md (Y3): New register constraint.
12328 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
12329 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
12330 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
12331 *sse2_interleave_lowv2df.
12333 2011-06-02 Julian Brown <julian@codesourcery.com>
12335 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
12336 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
12337 (arm_cortex_a5_tune): New.
12339 2011-06-02 Julian Brown <julian@codesourcery.com>
12341 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
12342 * config/arm/arm.c (arm_default_branch_cost): New.
12343 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
12344 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
12345 (arm_fa726_tune): Set branch_cost field using
12346 arm_default_branch_cost.
12347 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
12348 current_tune structure.
12349 * dojump.c (tm_p.h): Include file.
12351 2011-06-02 Julian Brown <julian@codesourcery.com>
12353 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
12355 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
12356 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
12357 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
12359 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
12360 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
12361 (arm_fa726te_tune): Add prefer_constant_pool setting.
12362 (arm_v6t2_tune, arm_cortex_tune): New.
12363 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
12364 prefer_constant_pool setting.
12366 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
12368 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
12370 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
12371 (*movdf_internal) <case 6,7,8>: Ditto.
12373 * config/i386/constraints.md (Y4): New register constraint.
12374 * config/i386/sse.md (vec_set<mode>_0): Merge with
12375 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
12376 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
12377 *vec_extractv2di_1_sse.
12378 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
12379 and *vec_concatv2di_rex64_sse.
12381 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
12384 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
12385 of cgraph_local_info for null before attempting to use it.
12387 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
12389 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
12390 (current_function_dynamic_alloc_count): Delete.
12391 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
12392 (expand_builtin_nonlocal_goto): Remove obsolete comment.
12393 (expand_builtin_update_setjmp_buf): Remove dead code.
12394 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
12395 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
12397 * function.c (instantiate_virtual_regs): Likewise.
12398 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
12399 for a block with a single abnormal incoming edge.
12400 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
12401 (SETJMP_VIA_SAVE_AREA): Delete.
12402 * config/sparc/sparc-protos.h (load_got_register): Declare.
12403 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
12404 (load_got_register): Make global.
12405 (sparc_frame_pointer_required): Add 'static'.
12406 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
12407 (sparc_builtin_setjmp_frame_value): New function.
12408 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
12409 (save_stack_nonlocal): New expander.
12410 (restore_stack_nonlocal): Likewise.
12411 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
12412 (nonlocal_goto_internal): New insn.
12413 (goto_handler_and_restore): Delete.
12414 (builtin_setjmp_setup): Likewise.
12415 (do_builtin_setjmp_setup): Likewise.
12416 (setjmp): Likewise.
12417 (builtin_setjmp_receiver): New expander.
12419 2011-06-01 David Li <davidxl@google.com>
12421 PR middle-end/49261
12422 * tree-pretty-print.c (dump_function_header): Format cleanup.
12424 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
12427 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
12428 needed when original operands are used for msw_skip comparison.
12430 2011-06-01 Jakub Jelinek <jakub@redhat.com>
12433 * var-tracking.c (add_uses, add_stores): Don't call
12434 cselib_subst_to_values on ENTRY_VALUE.
12436 2011-06-01 Diego Novillo <dnovillo@google.com>
12438 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
12439 output_record_start with LTO_null instead of output_zero.
12440 (lto_output_ts_binfo_tree_pointers): Likewise.
12441 (lto_output_tree): Likewise.
12442 (output_eh_try_list): Likewise.
12443 (output_eh_region): Likewise.
12444 (output_eh_lp): Likewise.
12445 (output_eh_regions): Likewise.
12446 (output_bb): Likewise.
12447 (output_function): Likewise.
12448 (output_unreferenced_globals): Likewise.
12449 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
12450 instead of NUM_TREE_CODES.
12451 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
12452 (lto_output_int_in_range): Change << to >> when shifting VAL.
12454 2011-06-01 Diego Novillo <dnovillo@google.com>
12456 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
12457 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
12459 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
12462 * optabs.h (valid_multiword_target_p): Declare.
12463 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
12464 doing multi-word operations.
12465 * optabs.c (expand_binop): Likewise.
12466 (expand_doubleword_bswap): Likewise.
12467 (expand_absneg_bit): Likewise.
12468 (expand_unop): Likewise.
12469 (expand_copysign_bit): Likewise.
12470 (multiword_target_p): New function.
12472 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
12474 PR rtl-optimization/48830
12475 PR rtl-optimization/48808
12476 PR rtl-optimization/48792
12477 * reload.c (push_reload): Check contains_reg_of_mode.
12478 * reload1.c (strip_paradoxical_subreg): New function.
12479 (gen_reload_chain_without_interm_reg_p): Use it to handle
12480 paradoxical subregs.
12481 (emit_output_reload_insns, gen_reload): Likewise.
12483 2011-06-01 David Li <davidxl@google.com>
12485 * predict.c : Change pass name
12488 * tree-profile.c: Ditto.
12491 2011-06-01 David Li <davidxl@google.com>
12493 * tree-pretty-print.c (dump_function_header): New function.
12494 * final.c (rest_of_clean_state): Use header dumper.
12495 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
12496 * passes.c (pass_init_dump_file): Use header dumper.
12498 2011-06-01 Jakub Jelinek <jakub@redhat.com>
12500 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
12501 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
12502 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
12504 (mem_loc_descriptor): Use them.
12506 * var-tracking.c (create_entry_value): New function.
12507 (vt_add_function_parameter): Use it.
12509 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12511 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
12512 Include <signal.h>, <ucontext.h>.
12513 (sigill_caught): Define.
12514 (sigill_hdlr): New function.
12515 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
12516 insns can be executed.
12517 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
12518 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
12520 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12522 * config/t-slibgcc-darwin: Move to ...
12523 * config/t-slibgcc-dummy: ... this. Clarify comments.
12524 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
12525 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
12526 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
12527 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
12528 Remove i386/t-crtstuff from tmake_file.
12529 (i[34567]86-*-solaris2*): Remove t-svr4,
12530 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
12532 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
12533 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
12534 sparc/t-crtfm from tmake_file.
12535 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
12536 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
12537 Remove extra_parts.
12538 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
12539 * config/i386/t-nwld (SHLIB_LINK): Remove.
12540 * config/i386/t-rtems-i386: Rename to ...
12541 * config/i386/t-rtems: ... this.
12542 ($(T)crti.o, $(T)crtn.o): Remove.
12543 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
12544 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
12545 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
12546 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
12547 EXTRA_MULTILIB_PARTS): Remove.
12548 * config/sparc/t-sol2-64: Likewise.
12549 * config/sparc/t-sol2: Remove.
12550 * config/sparc/t-crtin: Remove.
12551 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
12552 * config/i386/gmon-sol2.c: Remove.
12553 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
12554 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
12555 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
12556 * config/i386/sol2-gc1.asm: Remove.
12557 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
12558 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
12559 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
12560 * config/t-slibgcc-sld: Remove.
12562 2011-06-01 Jakub Jelinek <jakub@redhat.com>
12564 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
12565 base_type_for_mode with op_mode instead of mode.
12567 2011-06-01 Paul Brook <paul@cpodesourcery.com>
12569 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
12571 * config/arm/arm-tune.md: Regenerate.
12572 * config/arm/arm-tables.opt: Regenerate.
12573 * config/arm/arm.c (FL_DIV): Rename...
12574 (FL_THUMB_DIV): ... to this.
12575 (FL_ARM_DIV): Define.
12576 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
12577 (arm_arch_hwdiv): Remove.
12578 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
12579 (arm_issue_rate): Add cortexr5.
12580 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
12581 __ARM_ARCH_EXT_IDIV__.
12582 (TARGET_IDIV): Define.
12583 (arm_arch_hwdiv): Remove.
12584 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
12585 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
12586 (divsi3, udivsi3): New patterns.
12587 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
12588 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
12590 2011-06-01 Martin Jambor <mjambor@suse.cz>
12592 * ipa-utils.c (ipa_dfs_info): New field scc_no.
12593 * ipa-utils.c (searchc): Set scc_no.
12595 2011-06-01 Martin Jambor <mjambor@suse.cz>
12597 * ipa-utils.c (searchc_env): New field allow_overwritable.
12598 (searchc): do not ignore edges to overwritable nodes if indicated
12599 by env->allow_overwritable.
12600 (ipa_reduced_postorder): Set env.allow_overwritable.
12602 2011-06-01 Richard Guenther <rguenther@suse.de>
12604 * tree.c (free_lang_data): Do not reset boolean_type_node nor
12606 * lto-streamer.c (lto_record_common_node): Take node pointer,
12607 do not register types.
12608 (lto_preload_common_nodes): Explicitly skip preloading nodes
12609 that differ between frontends.
12611 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
12613 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
12616 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
12618 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
12619 parameter value for dump. Dump cost on outermost call only.
12620 (rs6000_memory_move_cost): Dump cost on outermost call only.
12622 2011-05-31 Jakub Jelinek <jakub@redhat.com>
12624 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
12625 DW_OP_GNU_convert ops.
12627 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
12628 cselib_preserve_constants.
12629 (cselib_lookup_1): If cselib_preserve_constants,
12630 a new VALUE is being created for REG and there is a VALUE for the
12631 same register in wider mode, add another loc with lowpart SUBREG of
12633 (cselib_subst_to_values): Handle ENTRY_VALUE.
12634 * var-tracking.c (replace_expr_with_values): Return NULL for
12636 * dwarf2out.c (convert_descriptor_to_signed): New function.
12637 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
12638 instead of two shifts.
12639 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
12640 the right mode if needed.
12641 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
12642 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
12643 convert_descriptor_to_signed.
12644 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
12645 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
12648 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
12650 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
12652 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
12653 of X87MODEI12 and SWI48x instead of SSEMODEI24.
12654 (SWI248x): New mode iterator, rename from X87MODEI.
12655 (X87MODEI): Remove mode iterator.
12656 (X87MODEI12): Ditto.
12657 (SSEMODEI24): Ditto.
12659 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
12661 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
12662 * doc/invoke.texi: Document max-vartrack-expr-depth.
12663 * var-tracking.c (EXPR_DEPTH): New.
12664 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
12666 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
12668 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
12669 * config/i386/sse.md: Add n to negated FMA pattern names.
12671 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
12673 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
12675 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
12677 * gengtype-state.c (read_state_params_structs): Initialize previous.
12679 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
12681 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
12682 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
12684 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
12686 * config/i386/i386.md (*movtf_internal): Avoid allocating general
12687 registers. Penalize F*r->o alternative to prevent partial memory
12688 stalls. Slightly penalize *roF->*r alternative. Generate SSE
12689 CONST_DOUBLE immediates when optimizing function for size. Do not move
12690 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
12691 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
12692 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
12693 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
12695 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
12697 (fp_register_operand splitters): Use fp_register_operand
12698 constraint. Do not use FP_REG_P in insn condition.
12699 (any_fp_register_operand splitters): Use any_fp_register_operand
12700 constraint. Do not use ANY_FP_REG_P in insn condition.
12702 2011-05-31 Jan Hubicka <jh@suse.cz>
12704 * cgraph.h (cgraph_inline_failed_t): Give enum a name
12705 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
12706 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
12707 (lto_output_edge): Use output_enum and var_len_unsigned.
12708 (lto_output_varpool_node): Likewise.
12709 (input_overwrite_node): Do not take resolution parameter;
12710 extract it from a bitpack.
12711 (input_node): Do not read resolution; use input_enum and
12713 (input_varpool_node): Likewise.
12714 (input_edge): Likewise.
12715 (input_cgraph_1): Likewise.
12717 2011-05-31 Richard Guenther <rguenther@suse.de>
12719 * gimple.c (gimple_register_canonical_type): Do not register
12720 any types via gimple_register_type.
12722 2011-05-31 Jan Hubicka <jh@suse.cz>
12724 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
12727 2011-05-31 Jakub Jelinek <jakub@redhat.com>
12729 PR rtl-optimization/49235
12730 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
12731 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
12733 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
12735 PR tree-optimization/49093
12736 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
12739 2011-05-31 Dodji Seketeli <dodji@redhat.com>
12742 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
12743 for concrete functions containing the code of cloned functions.
12745 2011-05-31 Richard Guenther <rguenther@suse.de>
12747 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
12749 (forward_propagate_into_comparison_1): ... this.
12750 (forward_propagate_comparison): Rename to ...
12751 (forward_propagate_into_comparison): ... this. Split out
12752 real forward propagation code to ...
12753 (forward_propagate_comparison): ... this.
12754 (forward_propagate_into_gimple_cond): Remove looping.
12755 (forward_propagate_into_cond): Likewise.
12756 (simplify_not_neg_expr): Return whether we have done something.
12757 (simplify_gimple_switch): Likewise.
12758 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
12759 (ssa_forward_propagate_and_combine): ... this. Re-structure
12760 to do a forward forward-propagation walk on BBs and a backward
12761 stmt combining walk on BBs. Consistently re-scan changed statements.
12762 (pass_forwprop): Adjust.
12764 2011-05-30 Ian Lance Taylor <iant@google.com>
12766 * godump.c (go_format_type): Correct length of name added to
12767 obstack for anonymous field.
12769 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
12772 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
12773 part of the second operand is 0.
12775 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
12777 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
12778 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
12779 to memory for !TARGET_MEMORY_MISMATCH_STALL.
12780 (*movdf_internal_rex64): Do not penalize F->r alternative.
12781 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
12782 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
12783 when optimizing function for size. Do not move CONST_DOUBLEs
12784 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
12785 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
12786 SUBREGs. Do not check for MEM_P operands in the insn condition,
12787 check for ANY_FP_REGNO_P instead.
12788 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
12789 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
12790 function for speed.
12791 * config/i386/i386.c (ix86_option_override_internal): Do not
12792 set TARGET_INTEGER_DFMODE_MOVES here.
12794 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
12797 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
12799 2011-05-30 Jakub Jelinek <jakub@redhat.com>
12801 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
12802 DW_TAG_rvalue_reference_type even for
12803 -gdwarf-4 -fno-debug-types-section.
12805 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12807 PR tree-optimization/46728
12808 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
12809 (build_and_insert_binop): New.
12810 (gimple_expand_builtin_pow): Reorder args for
12811 build_and_insert_call; use build_and_insert_binop; add more
12812 optimizations for fractional exponents.
12814 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
12819 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
12821 * tree.h (struct tree_identifier): Inherit from tree_typed, not
12823 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
12824 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
12825 TS_BASE instead of TS_COMMON.
12826 * varasm.c (assemble_name): Remove assert.
12828 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
12830 * config.gcc: Keep obselete list sorted.
12832 2011-05-30 Jakub Jelinek <jakub@redhat.com>
12833 Eric Botcazou <ebotcazou@adacore.com>
12835 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
12836 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
12837 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
12838 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
12839 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
12841 2011-05-30 Richard Guenther <rguenther@suse.de>
12843 * gimple.c (gimple_types_compatible_p_1): Compare record
12844 and union type members properly.
12846 2011-05-30 Richard Guenther <rguenther@suse.de>
12848 PR tree-optimization/49210
12849 * ipa-split.c (split_function): Care for the case where the call
12850 result is not trivially convertible to the result holding variable.
12852 2011-05-30 Richard Guenther <rguenther@suse.de>
12854 PR tree-optimization/49218
12855 * tree-vrp.c (adjust_range_with_scev): Properly check whether
12858 2011-05-30 Richard Guenther <rguenther@suse.de>
12860 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
12861 New function split out from ...
12862 (forward_propagate_into_gimple_cond): ... here. Adjust.
12863 (forward_propagate_into_cond): Likewise.
12864 (forward_propagate_comparison): Also propagate into
12865 comparisons on assignment RHS. Change return value to
12866 behave similar to forward_propagate_into_cond.
12867 (tree_ssa_forward_propagate_single_use_vars): Handle
12868 strict-overflow warnings properly for forward_propagate_comparison.
12870 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12872 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
12873 from plugin linker.
12874 * configure: Regenerate.
12876 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
12878 PR tree-optimization/49199
12879 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
12880 non-reduction operands are either defined in the loop or by induction.
12882 2011-05-29 Xinliang David Li <davidxl@google.com>
12884 * opts-global.c (handle_common_deferred_options): Handle new options.
12885 * passes.c (register_one_dump_file): Call register_pass_name.
12886 (execute_one_pass): Check explicit enable/disable flag.
12887 (passr_hash): New function.
12889 (register_pass_name): Ditto.
12890 (get_pass_by_name): Ditto.
12891 (pass_hash): Ditto.
12893 (enable_pass): Ditto.
12894 (disable_pass): Ditto.
12895 (is_pass_explicitly_enabled_or_disabled): Ditto.
12897 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
12899 * config/i386/i386.md (*movoi_internal_avx): Use
12900 standard_sse_constant_opcode for alternative 0.
12901 (*movti_internal_sse): Ditto.
12902 (*movti_internal_rex64): Use standard_sse_constant_opcode for
12904 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
12905 sselog1 type moves.
12906 (*movsi_internal): Ditto.
12907 (*movdi_internal): Ditto. Add ssecvt type moves.
12909 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
12912 * rtlanal.c (simplify_subreg_regno): Adjust comment.
12914 2011-05-29 Jakub Jelinek <jakub@redhat.com>
12916 PR rtl-optimization/49095
12917 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
12918 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
12920 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
12923 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
12924 recurse_p argument. Only follow register copies if it is set,
12925 and prevent mips_find_pic_call_symbol from recursing.
12926 (mips_find_pic_call_symbol): Add a recurse_p argument.
12927 Pass it to mips_pic_call_symbol_from_set.
12928 (mips_annotate_pic_calls): Update accordingly.
12930 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
12932 * emit-rtl.c (try_split): Use a loop to search for
12933 NOTE_INSN_CALL_ARG_LOCATIONs.
12935 2011-05-29 Richard Guenther <rguenther@suse.de>
12937 PR tree-optimization/49217
12938 * ipa-pure-const.c (propagate_pure_const): Fix typos.
12940 2011-05-28 Jan Hubicka <jh@suse.cz>
12942 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
12944 (string_slot_free): Remove
12945 (create_output_block): Initialize obstack.
12946 (destroy_output_block): Free obstack.
12947 (lto_string_index): Add PERSISTENT parameter; do not duplicate
12948 the string unless it needs to be added into the hash.
12949 (lto_output_string_with_length): Add persistent attribute;
12950 handle NULL strings.
12951 (lto_output_string): Add PERSISTENT parameter.
12952 (output_string_cst, output_identifier): Simplify.
12953 (lto_output_location_bitpack): Update.
12954 (lto_output_builtin_tree): Update.
12955 * lto-streamer.h (struct output_block): Add obstack.
12956 (lto_output_string, lto_output_string_with_length): Remove
12957 declarations; functions are static now.
12959 2011-05-28 Jan Hubicka <jh@suse.cz>
12961 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
12962 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
12963 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
12964 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
12965 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
12966 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
12967 unpack_ts_decl_with_vis_value_fields,
12968 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
12969 lto_get_builtin_tree): Use enum and variable length i/o.
12970 * basic-block.h (profile_status_d): Add PROFILE_LAST.
12971 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
12973 (bp_pack_enum, bp_unpack_enum): New macros.
12975 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
12977 * genrecog.c: Remove redundant forward declarations.
12979 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
12981 * config.gcc: Deprecate mips*-*-openbsd*.
12983 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
12986 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
12989 2011-05-27 Andrew Pinski <pinskia@gmail.com>
12991 PR middle-end/48981
12992 * gengtype.c (vec_prefix_type): New function.
12993 (note_def_vec): Use vec_prefix_type and change the length
12994 attribute to be based on the prefix.
12995 * vec.c: Include coretypes.h before vec.h.
12996 (struct vec_prefix): Remove.
12997 (vec_gc_p_reserve): Change the offsetof to sizeof.
12998 (vec_gc_p_reserve_exact): Likewise.
12999 (vec_heap_p_reserve): Likewise.
13000 (vec_heap_p_reserve_exact): Likewise.
13001 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
13002 (vec_stack_p_reserve): Change the offsetof to sizeof.
13003 (vec_stack_p_reserve_exact): Likewise.
13004 * vec.h (struct vec_prefix): New struct definition.
13005 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
13006 (VEC_T_GTY(T,B)): Likewise.
13007 (DEF_VEC_FUNC_P(T)): Use prefix field.
13008 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
13009 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
13011 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13013 PR tree-optimization/46728
13014 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
13015 (powi_as_mults): Add gimple_set_location.
13016 (build_and_insert_call): New.
13017 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
13018 0.5, 0.25, 0.75, 1./3., or 1./6.
13020 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
13022 * doc/contrib.texi: Update copyright years.
13023 (Contributors): Add Zdenek Sojka.
13025 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
13027 * c-decl.c (c_push_function_context): Copy the current statement
13029 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
13030 (finish_struct): Call building_stmt_list_p instead of checking
13032 * c-parser.c (c_parser_postfix_expression): Likewise.
13033 * c-typeck.c (c_end_compound_stmt): Likewise.
13034 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
13035 * tree-iterator.c (stmt_list_cache): Change to a VEC.
13036 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
13037 (free_stmt_list): Likewise.
13038 * tree.h (struct tree_statement_list): Include typed_tree instead
13040 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
13041 as TS_TYPED instead of TS_COMMON.
13043 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13044 Uros Bizjak <ubizjak@gmail.com>
13046 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
13047 (HAVE_AS_IX86_TLSGDPTL): Define.
13048 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
13049 (HAVE_AS_IX86_TLSLDMPLT): Define.
13050 * configure: Regenerate.
13051 * config.in: Regenerate.
13052 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
13053 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
13054 TARGET_SUN_TLS, use @tlsgdplt or @plt.
13055 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
13056 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
13057 @tlsldmplt or @plt.
13058 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
13060 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
13062 * sched-int.h (struct _haifa_deps_insn_data): New members cond
13064 (INSN_COND, INSN_REVERSE_COND): New macros.
13065 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
13067 (sched_get_condition_with_rev): Cache the results, and look them up
13069 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
13070 are clobbered by the current insn.
13071 * target.def (exposed_pipline): New sched data hook.
13072 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
13073 * doc/tm.texi: Regenerate.
13075 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13077 PR tree-optimization/49170
13078 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
13081 2011-05-27 Richard Guenther <rguenther@suse.de>
13083 PR middle-end/49189
13084 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
13087 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
13089 * haifa-sched.c (sched_scan_info): Remove.
13090 (schedule_block): Call sched_extend_luids rather than sched_init_luids
13092 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
13094 (sched_scan): Remove.
13095 (sched_extend_luids): Renamed from luids_extend_insn and no longer
13096 static. All callers changed.
13097 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
13098 static. All callers changed.
13099 (sched_init_luids): Remove all arguments except the first. All
13100 callers changed. Don't use sched_scan.
13101 (haifa_init_h_i_d): Likewise.
13102 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
13103 manually rather than using sched_init_luids. Likewise with
13104 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
13105 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
13106 rather than sched_init_luids with NULL args.
13107 * sel-sched-ir.c (new_insns): Remove variable.
13108 (sched_scan): New static function, previously in haifa-sched.c. Remove
13109 all arguments but the first two; all callers changed.
13110 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
13111 rather than sched_init_luids.
13112 (sel_init_bbs): Remove second argument. All callers changed.
13113 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
13114 with NULL arguments.
13115 (create_insn_rtx_from_pattern): Likewise.
13116 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
13117 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
13118 (sched_init_insn_luid, sched_extend_luids): Declare.
13119 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
13122 2011-05-27 Richard Guenther <rguenther@suse.de>
13124 PR middle-end/49177
13125 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
13126 A CMP B ? (T) true : (T) false for non-integral types T again.
13128 2011-05-27 Jan Hubicka <jh@suse.cz>
13130 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
13131 so 0 means NULL string.
13132 (lto_output_string_with_length): ... here.
13133 (lto_output_string, output_string_cst, output_identifier): Update
13134 handling of NULL strings.
13135 (lto_output_location_bitpack): New function.
13136 (lto_output_location): Use it.
13137 (lto_output_tree_ref): Use output_record_start.
13138 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
13140 * lto-streamer-in.c (string_for_index): Break out from ...; offset
13142 (input_string_internal): ... here;
13143 (input_string_cst, input_identifier, lto_input_string): Update handling
13145 (lto_input_location_bitpack): New function
13146 (lto_input_location): Use it.
13147 (unpack_ts_type_common_value_fields): Pack align & alias in var len
13149 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
13150 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
13151 (bp_pack_value): Sanity check the value range.
13152 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
13154 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
13157 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
13159 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
13160 call_arg_location instructions down the floor.
13162 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
13164 PR rtl-optimization/49154
13165 * ira.c (setup_pressure_classes): Process class without sublcasses
13166 as a candidate for pressure classes.
13168 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
13170 PR rtl-optimization/48575
13171 * genrecog.c (position_type): New enum.
13172 (position): New structure.
13173 (decision): Use position structure instead of a string.
13174 (root_pos, peep2_insn_pos_list): New variables.
13175 (next_position, compare_positions): New functions.
13176 (new_decision): Use position structures instead of strings.
13177 (maybe_both_true): Likewise.
13178 (change_state): Likewise.
13179 (write_tree): Likewise.
13180 (make_insn_sequence): Likewise.
13182 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
13184 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
13185 TS_BASE instead of TS_COMMON.
13186 (find_decls_types_r): Check for TS_TYPED structure before looking at
13188 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
13190 (BLOCK_CHAIN): Use new chain field.
13192 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
13194 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
13195 moves expensive on Power7 also.
13197 2011-05-26 Richard Guenther <rguenther@suse.de>
13199 * fold-const.c (fold_unary_loc): Remove bogus code.
13201 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
13203 * tree.h (struct tree_identifier): Inherit from tree_typed, not
13205 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
13206 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
13207 TS_BASE instead of TS_COMMON.
13208 * varasm.c (assemble_name): Remove assert.
13210 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
13212 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
13214 * libgcc-std.ver: Delete file.
13216 2011-05-26 Richard Guenther <rguenther@suse.de>
13218 PR tree-optimization/48702
13219 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
13220 only when we know the base address is within bounds.
13221 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
13222 assume the base address of TARGET_MEM_REFs is in bounds.
13224 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13227 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
13228 declaration in TARGET_SOLARIS.
13230 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
13232 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
13233 The instruction is then expanded explicitly.
13234 (supported_compare): Callable instruction.
13235 (compare): Likewise.
13237 2011-05-26 Jakub Jelinek <jakub@redhat.com>
13240 * gimplify.c (shortcut_cond_r): Don't special case
13241 COND_EXPRs if they have void type on one of their arms.
13243 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
13245 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
13246 to reduce duplication, and to achieve a slightly more logical order
13249 2011-05-26 Jakub Jelinek <jakub@redhat.com>
13251 PR tree-optimization/49161
13252 * tree-vrp.c (struct case_info): New type.
13253 (compare_case_labels): Sort case_info structs instead of
13254 trees, and not primarily by CASE_LABEL uids but by
13255 label_for_block indexes.
13256 (find_switch_asserts): Put case labels into struct case_info
13257 array instead of TREE_VEC, adjust sorting, compare label_for_block
13258 values instead of CASE_LABELs.
13260 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13262 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
13263 ("orndi3_neon"): Likewise.
13264 ("bic<mode>3_neon"): Likewise.
13266 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
13268 PR tree-optimization/49038
13269 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
13270 Ensure at least one epilogue iteration if required by data
13271 accesses with gaps.
13272 * tree-vectorizer.h (struct _loop_vec_info): Add new field
13273 to mark loops that require peeling for gaps.
13274 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
13275 (vect_get_known_peeling_cost): Take peeling for gaps into
13277 (vect_transform_loop): Generate epilogue if required by data
13279 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
13280 loop as requiring an epilogue if there are gaps in the end of
13283 2011-05-25 Ian Lance Taylor <iant@google.com>
13285 * godump.c (go_format_type): Output the first field with a usable
13288 2011-05-25 Ian Lance Taylor <iant@google.com>
13290 * godump.c (go_format_type): Check for invalid type names, pointer
13291 target types, and struct field types.
13293 2011-05-25 Jason Merrill <jason@redhat.com>
13295 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
13297 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
13299 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
13301 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
13303 * config/i386/i386.md (*movqi_extv_1)): Put back
13304 "register_operand" check in "type" calculation.
13305 (*movqi_extzv_2): Likewise.
13307 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
13309 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
13311 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
13314 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
13315 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
13316 __divxc3, __divtc3): Wrap definitions in #ifndef.
13318 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
13321 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
13322 "register_operand" check and replace q_regs_operand with
13323 QIreg_operand in "type" calculation.
13324 (*movqi_extv_1): Likewise.
13325 (*movqi_extzv_2_rex64): Likewise.
13326 (*movqi_extzv_2): Likewise.
13328 * config/i386/predicates.md (QIreg_operand): New.
13330 2011-05-25 Richard Guenther <rguenther@suse.de>
13332 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
13333 type-based offset disambiguation, streamline MEM_REF and
13334 TARGET_MEM_REF handling.
13336 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
13338 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
13339 (bdesc_special_args): Add pause intrinsic.
13341 * config/i386/i386.md (UNSPEC_PAUSE): New.
13343 (*pause): Likewise.
13344 * config/i386/ia32intrin.h (__pause): Likewise.
13346 * doc/extend.texi (X86 Built-in Functions): Add documentation for
13349 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13351 PR tree-optimization/46728
13352 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
13353 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
13355 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
13357 * tree.h (struct tree_exp): Inherit from struct tree_typed.
13358 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
13359 instead of TS_COMMON.
13361 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
13363 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
13364 LIBGCC2_GNU_PREFIX is defined.
13366 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
13367 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
13368 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
13369 __clz_tab): Define using __N.
13370 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
13371 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
13372 * target.def (libfunc_gnu_prefix): New hook.
13373 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
13374 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
13375 * doc/tm.texi: Regenerate.
13376 * system.h (LIBGCC2_GNU_PREFIX): Poison.
13377 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
13379 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
13380 (init_optabs): Likewise for the bswap libfuncs.
13381 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
13383 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
13384 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
13385 * libgcc-std.ver: Remove.
13386 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
13387 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
13389 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
13390 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
13391 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
13392 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
13393 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
13394 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
13395 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
13396 * config/fixed-bit.h (FIXED_OP): Define differently depending on
13397 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
13398 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
13400 2011-05-25 Jan Hubicka <jh@suse.cz>
13402 * lto-streamer-out.c (output_record_start): Use lto_output_enum
13403 (lto_output_tree): Use output_record_start.
13404 * lto-streamer-in.c (input_record_start): Use lto_input_enum
13405 (lto_get_pickled_tree): Use input_record_start.
13406 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
13407 (lto_value_range_error): New function.
13408 * lto-streamer.h (lto_value_range_error): Declare.
13409 (lto_output_int_in_range, lto_input_int_in_range): New functions.
13410 (lto_output_enum, lto_input_enum): New macros.
13412 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
13414 * common.opt (flag_stack_usage_info): New variable.
13415 (-Wstack-usage): New option.
13416 * doc/invoke.texi (Warning options): Document -Wstack-usage.
13417 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
13418 <OPT_fstack_usage>: Likewise.
13419 * toplev.c (output_stack_usage): Handle -Wstack-usage.
13420 * calls.c (expand_call): Test flag_stack_usage_info variable instead
13421 of flag_stack_usage.
13422 (emit_library_call_value_1): Likewise.
13423 * explow.c (allocate_dynamic_stack_space): Likewise.
13424 * function.c (instantiate_virtual_regs ): Likewise.
13425 (prepare_function_start): Likewise.
13426 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
13427 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
13428 * config/arm/arm.c (arm_expand_prologue): Likewise.
13429 (thumb1_expand_prologue): Likewise.
13430 * config/avr/avr.c (expand_prologue): Likewise.
13431 * config/i386/i386.c (ix86_expand_prologue): Likewise.
13432 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
13433 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
13434 * config/mips/mips.c (mips_expand_prologue): Likewise.
13435 * config/pa/pa.c (hppa_expand_prologue): Likewise.
13436 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
13437 * config/s390/s390.c (s390_emit_prologue): Likewise.
13438 * config/sh/sh.c (sh_expand_prologue): Likewise.
13439 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
13440 * config/spu/spu.c (spu_expand_prologue): Likewise.
13442 2011-05-25 Richard Guenther <rguenther@suse.de>
13444 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
13445 (gimple_canonical_types_compatible_p): Likewise.
13447 2011-05-25 Jan Hubicka <jh@suse.cz>
13449 PR middle-end/49062
13450 * ipa.c (function_and_variable_visibility): Only add to same
13451 comdat group list if DECL_ONE_ONLY.
13453 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
13455 PR rtl-optimization/49014
13456 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
13458 2011-05-25 Jakub Jelinek <jakub@redhat.com>
13461 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
13463 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
13465 PR rtl-optimization/48757
13466 * ira-build.c (loop_with_eh_edge_p): Rename to
13467 loop_with_complex_edge_p, check edges on complexity, make function
13469 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
13472 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
13474 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
13475 force flag_ira_share_save_slots to 0.
13477 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
13479 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
13480 (vt_initialize): Set PROLOGUE_BB unconditionally.
13481 Add block comment about CFA_BASE_RTX machinery.
13482 Reset FP_CFA_OFFSET to -1 on all invalid paths.
13483 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
13485 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
13488 * c-parser.c (c_parser_objc_class_instance_variables): More robust
13489 parsing of syntax error in ObjC instance variable lists. In
13490 particular, avoid an infinite loop if there is a stray ']'.
13491 Updated error message.
13493 2011-05-24 Ian Lance Taylor <iant@google.com>
13495 * godump.c (go_define): Don't accept a string immediately after
13498 2011-05-24 Ian Lance Taylor <iant@google.com>
13500 * godump.c (struct godump_container): Add invalid_hash field.
13501 (go_format_type): Return false if type is found in invalid_hash.
13502 (go_output_typedef): Add invalid type to invalid_hash.
13503 (go_finish): Create and delete invalid_hash.
13505 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13507 PR tree-optimization/46728
13508 * tree-ssa-math-opts.c (powi_table): New.
13509 (powi_lookup_cost): New.
13511 (powi_as_mults_1): New.
13512 (powi_as_mults): New.
13513 (gimple_expand_builtin_powi): New.
13514 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
13515 (gate_cse_sincos): Remove sincos/cexp restriction.
13517 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13520 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
13522 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
13523 * mips-tdump.c: Likewise.
13525 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
13528 * config/i386/driver-i386.c (host_detect_local_cpu): Always
13529 add -mno-XXX. Handle FMA.
13531 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
13533 PR rtl-optimization/48633
13534 * ira-build.c (loop_with_eh_edge_p): New function.
13535 (mark_loops_for_removal): Use it.
13537 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
13539 PR rtl-optimization/48971
13540 * ira.c (setup_pressure_classes): Don't check register move cost
13541 for classes with one registers. Don't add pressure class if there
13542 is a pressure class with the same available hard registers.
13543 Check contains_reg_of_mode. Fix a typo in collecting
13544 temp_hard_regset. Ignore hard registers not belonging to a class.
13546 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
13549 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
13551 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
13552 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13554 PR gcov-profile/48845
13555 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
13557 2011-05-24 Richard Guenther <rguenther@suse.de>
13559 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
13560 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
13561 (gimple_types_compatible_p_1): Adjust.
13562 (iterative_hash_canonical_type): Do not bother about complete vs.
13564 (gimple_canonical_types_compatible_p): Likewise.
13566 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13568 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
13570 2011-05-24 Richard Guenther <rguenther@suse.de>
13573 * gimple.c (gimple_register_canonical_type): Revert
13575 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
13576 does not for a tree for the case where it matters. Cache
13577 pointer-type alias-sets.
13579 2011-05-24 Joseph Myers <joseph@codesourcery.com>
13581 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
13582 (OBJS): Remove options.o, opts-common.o and prefix.o.
13583 (OBJS-libcommon-target): New.
13584 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
13585 (BACKEND): Include libcommon-target.a.
13586 (MOSTLYCLEANFILES): Include libcommon-target.a.
13587 (libcommon-target.a): New.
13588 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
13591 2011-05-23 Joseph Myers <joseph@codesourcery.com>
13593 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
13594 parts of output shared with the driver.
13595 * optc-gen.awk: Don't generate parts of output not shared with the
13597 * opth-gen.awk: Remove GCC_DRIVER conditionals.
13598 * doc/options.texi (SourcerInclude): Mention options-save.c.
13599 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
13600 (OBJS): Add options-save.o.
13601 (options-save.c, options-save.o): New.
13602 (options.o): Update dependencies.
13603 (gcc-options.o): Remove.
13604 (mostlyclean): Remove options-save.c.
13606 2011-05-23 Jakub Jelinek <jakub@redhat.com>
13609 * dbxout.c: Include cgraph.h.
13610 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
13611 and without value expr, return NULL if no varpool node exists for
13612 it or if it is not needed.
13613 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
13616 * c-decl.c (start_decl): Convert expr to void_type_node.
13618 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
13620 PR rtl-optimization/48826
13621 * emit-rtl.c (try_split): When splitting a call that is followed
13622 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
13624 2011-05-23 Jakub Jelinek <jakub@redhat.com>
13626 * cfgexpand.c (expand_debug_expr): For unused non-addressable
13627 parameters passed in memory prefer using DECL_INCOMING_RTL over
13628 the pseudos it will be copied into.
13630 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
13633 * config/i386/i386.c (ix86_option_override_internal): Save the
13634 initial options after checking vzeroupper.
13636 2011-05-23 David Li <davidxl@google.com>
13638 PR tree-optimization/48988
13639 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
13640 Initialize has_valid_pred for each pred chain.
13642 2011-05-23 Richard Guenther <rguenther@suse.de>
13644 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
13645 (iterative_hash_gimple_type): Always hash type names.
13647 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
13649 * c-typeck.c (build_function_call_vec): Tweak call to
13650 check_function_arguments.
13652 2011-05-23 Richard Guenther <rguenther@suse.de>
13654 PR tree-optimization/49115
13655 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
13656 is not necessarily carried out, do not claim it kills the ref.
13657 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
13659 2011-05-23 Richard Guenther <rguenther@suse.de>
13661 PR middle-end/15419
13662 * builtins.c (fold_builtin_memory_op): Be less restrictive about
13663 what pointer types we accept for folding.
13665 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13667 * gthr-gnat.c: Remove.
13668 * gthr-gnat.h: Remove.
13669 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
13670 * config/t-freebsd (LIB2ADDEH): Likewise.
13671 * config/t-linux (LIB2ADDEH): Likewise.
13672 * config/t-sol2 (LIB2ADDEH): Likewise.
13673 * config/ia64/t-vms (LIB2ADDEH): Likewise.
13674 * configure.ac (target_thread_file): Remove gnat handling.
13675 * configure: Regenerate.
13676 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
13678 2011-05-23 Tristan Gingold <gingold@adacore.com>
13679 Eric Botcazou <ebotcazou@adacore.com>
13681 * gcov.c (create_file_names): If no object directory is specified,
13682 keep the directory of the file.
13684 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13686 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
13687 * configure: Regenerate.
13689 2011-05-23 Jakub Jelinek <jakub@redhat.com>
13691 PR middle-end/48973
13692 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
13693 failed and the comparison has a single bit signed type, use
13694 constm1_rtx instead of const1_rtx for true value.
13695 (do_store_flag): If ops->type is single bit signed type, disable
13696 signel bit test optimization and pass -1 instead of 1 as last
13697 parameter to emit_store_flag_force.
13699 2011-05-23 Tom de Vries <tom@codesourcery.com>
13702 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
13704 (infer_loop_bounds_from_undefined): Use new function.
13706 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
13708 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
13709 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
13710 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
13712 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
13714 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
13716 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
13717 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
13720 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
13722 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
13724 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
13726 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
13727 UNSPEC_MOVE_PIC pattern.
13729 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
13731 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
13732 (sparc-*-rtems*): Likewise.
13733 (sparc64-*-elf*): Likewise.
13734 (sparc64-*-rtems*): Likewise.
13735 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
13736 * config/sparc/t-crtin: New file.
13737 * config/sparc/t-sol2 (crti.o): Delete rule.
13738 (crtn.o): Likewise.
13739 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
13740 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
13741 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
13742 (ENDFILE_SPEC): Add crtn.o.
13744 2011-05-22 Tom de Vries <tom@codesourcery.com>
13746 PR middle-end/48689
13747 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
13748 CODE_CONTAINS_STRUCT (TS_COMMON).
13750 2011-05-22 Jakub Jelinek <jakub@redhat.com>
13752 PR middle-end/49029
13753 * expmed.c (extract_fixed_bit_field): Test whether target can be used
13754 only after deciding which mode to use.
13756 2011-05-22 Tom de Vries <tom@codesourcery.com>
13759 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
13760 for call to get_shiftadd_cost.
13762 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
13765 * config/i386/cpuid.h (bit_MMXEXT): New define.
13767 2011-05-22 Nick Clifton <nickc@redhat.com>
13769 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
13770 initialisation of non-existant args[2] element. Use args[] array
13771 not arg[] array to pass arguments to build_function_type_list.
13773 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
13775 PR tree-optimization/49087
13776 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
13778 2011-05-21 Jason Merrill <jason@redhat.com>
13781 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
13782 static storage duration.
13784 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
13786 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
13789 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
13791 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
13792 false if there are call-saved registers here...
13793 (sparc_can_use_return_insn_p): ...but here instead.
13794 (save_or_restore_regs): Fix thinko.
13795 (sparc_expand_prologue): Use current_function_is_leaf.
13796 (sparc_frame_pointer_required): Likewise.
13798 2011-05-21 Nick Clifton <nickc@redhat.com>
13801 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
13803 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
13805 * gengtype.c (walk_type): Implemented "atomic" GTY option.
13806 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
13808 2011-05-21 Joseph Myers <joseph@codesourcery.com>
13810 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
13811 * optc-gen.awk: Move common code to opt-read.awk.
13812 * opth-gen.awk: Likewise.
13813 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
13815 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
13817 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
13819 2011-05-20 Tom de Vries <tom@codesourcery.com>
13822 * tree-ssa-loop-ivopts.c: Include expmed.h.
13823 (get_shiftadd_cost): New function.
13824 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
13826 2011-05-20 Jakub Jelinek <jakub@redhat.com>
13829 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
13830 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
13832 2011-05-20 Joseph Myers <joseph@codesourcery.com>
13834 * Makefile.in: Update comment referring to $(OBJS-common).
13836 2011-05-20 Ian Lance Taylor <iant@google.com>
13838 * godump.c (go_output_typedef): Put enum constants in the macro
13839 hash table to avoid duplicate Go const definitions.
13841 2011-05-20 Joseph Myers <joseph@codesourcery.com>
13843 * Makefile.in (LIBDEPS): Add libcommon.a.
13845 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
13846 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
13847 pretty-print.o and version.o.
13848 (OBJS-libcommon): New.
13849 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
13850 (BACKEND): Add libcommon.a.
13851 (MOSTLYCLEANFILES): Likewise.
13852 (libcommon.a): New.
13853 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
13854 (cpp$(exeext)): Likewise.
13855 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
13856 pretty-print.o and input.o.
13857 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
13858 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
13859 (errors.o): Remove.
13860 (mips-tfile): Don't explicitly use version.o.
13861 (mips-tdump): Likewise.
13862 (gcov.o): Depend on $(DIAGNOSTIC_H).
13863 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
13864 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
13865 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
13866 * gcov-dump.c: Include intl.h and diagnostic.h.
13867 (main): Initialize diagnostics.
13868 * gcov.c: Include diagnostic.h.
13870 (main): Initialize diagnostics.
13871 * lto-wrapper.c: Include diagnostic.h.
13872 (main): Initialize diagnostics.
13874 2011-05-20 Michael Matz <matz@suse.de>
13876 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
13878 2011-05-20 Michael Matz <matz@suse.de>
13879 Richard Guenther <rguenther@suse.de>
13881 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
13882 use lto_streamer_cache_append directly instead of returning a VEC.
13883 (preload_common_node): Remove.
13884 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
13886 (lto_streamer_cache_create): Call lto_preload_common_nodes.
13888 2011-05-20 Richard Guenther <rguenther@suse.de>
13890 PR tree-optimization/49079
13891 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
13892 MEM_REFs correctly for the trailing array access detection.
13893 Special case constants the same way as decls for overall size
13896 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
13898 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
13899 argument expansion.
13901 2011-05-20 Jakub Jelinek <jakub@redhat.com>
13903 PR tree-optimization/49073
13904 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
13905 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
13906 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
13908 2011-05-20 Richard Guenther <rguenther@suse.de>
13910 PR middle-end/48849
13911 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
13912 of pointer types the same way the middle-end does.
13914 2011-05-20 Richard Guenther <rguenther@suse.de>
13916 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
13917 or pointer-to chains. Delay all fixup to uniquify_nodes.
13919 2011-05-19 Quentin Neill <quentin.neill@amd.com>
13921 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
13922 (fma4_fmaddsub): Likewise
13924 2011-05-19 Jan Hubicka <jh@suse.cz>
13926 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
13927 (GIMPLE_TYPE_PAIR_SIZE): New macro.
13928 (type_pair_cache): New static var.
13929 (lookup_type_pair): Use fixed sized custom hash; make inline.
13930 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
13931 calls of lookup_type_pair.
13932 (print_gimple_types_stats): Remove cache stats.
13933 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
13936 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
13938 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
13939 when TARGET_RDRND is active.
13940 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
13941 Generate dummy SImode target register when target is NULL.
13943 2011-05-19 Joseph Myers <joseph@codesourcery.com>
13945 * config/arm/arm-fpus.def: New.
13946 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
13948 * config/arm/arm-tables.opt: Regenerate.
13949 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
13950 (arm_option_override): Don't decode FPU name to string here.
13951 * config/arm/arm.opt (mfpu=): Use Enum.
13952 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
13953 Update dependencies.
13955 2011-05-19 Joseph Myers <joseph@codesourcery.com>
13957 * collect2.c: Include diagnostic.h.
13958 (fatal_perror, fatal, error, fancy_abort): Remove.
13959 (main): Set progname. Call xmalloc_set_program_name and
13960 diagnostic_initialize.
13961 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
13962 scan_libraries, resolve_lib_name): Call fatal_error instead of
13963 fatal and fatal_perror.
13964 * collect2.h (error, fatal, fatal_perror): Don't declare.
13965 * tlink.c: Include diagnostic-core.h.
13966 (recompile_files): Call fatal_error instead of fatal_perror.
13967 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
13968 pretty-print.o and input.o.
13969 (collect2.o, tlink.o): Update dependencies.
13971 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13973 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
13975 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13978 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
13979 COMDAT group syntax, both SPARC and x86 variants.
13980 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
13981 * configure: Regenerate.
13982 * config/sol2.h (TARGET_SOLARIS): Define.
13983 (PUSHSECTION_FORMAT): Remove.
13984 (SECTION_NAME_FORMAT): Define.
13985 * config/sol2.c: Include hashtab.h.
13986 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
13987 expansion, using SECTION_NAME_FORMAT.
13988 (solaris_comdat_htab): New variable.
13989 (struct comdat_entry): Define.
13990 (comdat_hash): New function.
13991 (comdat_eq): New function.
13992 (solaris_elf_asm_comdat_section): New function.
13993 (solaris_define_comdat_signature): New function.
13994 (solaris_code_end): New function.
13995 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
13996 (solaris_code_end): Declare.
13997 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
13998 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
14000 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
14001 Remove ATTRIBUTE_UNUSED.
14002 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
14003 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
14004 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
14005 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
14006 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
14007 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
14008 (PUSHSECTION_FORMAT): Remove.
14009 (SECTION_NAME_FORMAT): Redefine.
14011 2011-05-19 Kai Tietz <ktietz@redhat.com>
14013 * tree-cfg.c (verify_gimple_assign_binary): Barf on
14014 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
14015 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
14017 2011-05-19 Anatoly Sokolov <aesok@post.ru>
14018 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14020 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
14022 2011-05-19 Richard Guenther <rguenther@suse.de>
14024 PR middle-end/48985
14025 * tree-object-size.c (addr_object_size): If the pointed-to
14026 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
14028 2011-05-19 Richard Guenther <rguenther@suse.de>
14030 * gimple.c (gimple_types_compatible_p_1): Compare names of
14031 the types themselves.
14032 (iterative_hash_gimple_type): And hash them that way.
14033 (gimple_register_type_1): If we register a main variant properly
14034 initialize the leader to ourselves.
14036 2011-05-19 Tom de Vries <tom@codesourcery.com>
14039 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
14040 get_loop_invariant_expr_id.
14041 (get_loop_invariant_expr_id): Use get_expr_id.
14042 (parm_decl_cost): New function.
14043 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
14044 Improve bound cost estimation. Use different inv_expr_id for elim and
14047 2011-05-19 Tom de Vries <tom@codesourcery.com>
14050 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
14051 cost_base.cost == 0.
14053 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
14056 * config/i386/sse.md
14057 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
14060 2011-05-18 Jakub Jelinek <jakub@redhat.com>
14062 PR tree-optimization/49039
14063 * tree-vrp.c (extract_range_from_binary_expr): For
14064 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
14065 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
14067 2011-05-18 Tom de Vries <tom@codesourcery.com>
14070 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
14072 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
14074 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
14075 (*tls_global_dynamic_64): Ditto.
14076 (*tls_local_dynamic_base_32_gnu): Ditto.
14077 (*tls_local_dynamic_base_64): Ditto.
14078 (tls_initial_exec_64_sun): Ditto.
14080 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
14082 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
14083 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
14085 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
14086 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
14087 * config/bfin/bfin.c (bfin_cpus): Add bf592.
14088 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
14089 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
14090 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
14091 * config/bfin/elf.h (LIB_SPEC): Add bf592.
14093 2011-05-18 Joseph Myers <joseph@codesourcery.com>
14095 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
14096 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
14097 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
14098 target_thread_pointer, arm_structure_size_boundary, struct
14099 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
14100 struct abi_name, arm_all_abis): Remove.
14101 (arm_option_override) Don't process most enumerated option values here.
14102 Don't process target_fpe_name here. Work with integer not string for
14103 structure size boundary; use separate diagnostics for each case.
14104 * config/arm/arm.h (enum float_abi_type, enum
14105 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
14107 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
14108 arm_structure_size_boundary): Remove.
14109 * config/arm/arm.opt (mabi=): Use Enum and Init.
14110 (arm_abi_type): New Enum and EnumValue entries.
14111 (mfloat-abi=): Use Enum and Init.
14112 (float_abi_type): New Enum and EnumValue entries.
14113 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
14114 (mfp16-format=): Use Enum and Init.
14115 (arm_fp16_format_type): New Enum and EnumValue entries.
14116 (mstructure-size-boundary=): Use UInteger and Init.
14117 (mtp=): Use Enum and Init.
14118 (arm_tp_type): New Enum and EnumValue entries.
14120 2011-05-18 Richard Guenther <rguenther@suse.de>
14122 PR tree-optimization/49018
14123 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
14124 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
14125 gimple_has_side_effects.
14127 2011-05-18 Richard Guenther <rguenther@suse.de>
14129 * gimple.c (gimple_register_type_1): New function, split out from ...
14130 (gimple_register_type): ... here. Avoid infinite recursion.
14132 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
14134 PR tree-optimization/41881
14135 * tree-vectorizer.h (struct _loop_vec_info): Add new field
14136 reduction_chains along with a macro for its access.
14137 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
14138 (destroy_loop_vec_info): Free reduction chains.
14139 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
14140 (vect_is_slp_reduction): New function.
14141 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
14142 (vect_create_epilog_for_reduction): Support SLP reduction chains.
14143 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
14144 definition types for reduction chains.
14145 (vect_supported_load_permutation_p): Don't allow permutations for
14147 (vect_analyze_slp_instance): Support reduction chains.
14148 (vect_analyze_slp): Try to build SLP instance from reduction chains.
14149 (vect_get_constant_vectors): Handle reduction chains.
14150 (vect_schedule_slp_instance): Mark the first statement of the
14151 reduction chain as reduction.
14153 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
14155 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
14156 names for group elements access.
14157 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
14158 reduction chains as well. Remove data reference and interleaving
14159 related words from the fields names.
14160 * tree-vect-loop.c (vect_transform_loop): Use new names for group
14162 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
14163 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
14164 vect_update_interleaving_chain, vect_same_range_drs,
14165 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
14166 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
14167 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
14168 vect_analyze_group_access, vect_analyze_data_ref_access,
14169 vect_create_data_ref_ptr, vect_transform_strided_load,
14170 vect_record_strided_load_vectors): Likewise.
14171 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
14172 vect_model_load_cost, vectorizable_store, vectorizable_load,
14173 vect_remove_stores, new_stmt_vec_info): Likewise.
14174 * tree-vect-slp.c (vect_build_slp_tree,
14175 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
14177 2011-05-18 Richard Guenther <rguenther@suse.de>
14179 PR middle-end/48989
14180 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
14181 operand verification.
14182 (verify_gimple_assign_binary): Likewise.
14183 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
14184 to non-1-precision BOOLEAN_TYPEs.
14186 2011-05-18 Tom de Vries <tom@codesourcery.com>
14189 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
14191 2011-05-18 Jakub Jelinek <jakub@redhat.com>
14193 PR tree-optimization/49000
14194 * tree-ssa.c (execute_update_addresses_taken): Call
14195 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
14196 be rewritten and decl has been marked for renaming, reset
14199 2011-05-17 Joseph Myers <joseph@codesourcery.com>
14201 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
14202 enum_opts_set when testing if attributes have set -mfpmath=.
14204 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
14206 * config/mips/mips.c (mips_handle_option): Remove unused variable.
14208 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
14210 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
14212 * tree-inline.c (maybe_inline_call_in_expr): Initialize
14213 id.transform_lang_insert_block with NULL.
14215 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
14217 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
14218 (output_fp_compare): Change args 3 and 4 to bool.
14219 (ix86_expand_call): Change arg 6 to bool.
14220 (ix86_attr_length_immediate_default): Change arg 2 to bool.
14221 (ix86_attr_length_vex_default): Change arg 3 to bool.
14222 * config/i386/i386.md: Update all uses.
14223 * config/i386/i386.c: Ditto.
14224 (ix86_flags_dependent): Change return type to bool.
14226 2011-05-17 Richard Guenther <rguenther@suse.de>
14228 * gimple.c (type_hash_pair_compare): Fix comparison.
14230 2011-05-17 Richard Guenther <rguenther@suse.de>
14232 * gimple.c (iterative_hash_gimple_type): Simplify singleton
14233 case some more, fix final hash value of the non-singleton case.
14235 2011-05-17 Richard Guenther <rguenther@suse.de>
14239 2011-05-16 Richard Guenther <rguenther@suse.de>
14241 * gimple.c (gimple_types_compatible_p_1): Use names of the
14242 type itself, not its main variant.
14243 (iterative_hash_gimple_type): Likewise.
14245 2011-05-17 Richard Guenther <rguenther@suse.de>
14247 * gimple.c (gimple_register_canonical_type): Use the main-variant
14248 leader for computing the canonical type.
14250 2011-05-17 Nick Clifton <nickc@redhat.com>
14252 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
14255 * config/rx/rx.md: Add peephole to remove redundant extensions
14257 (bitset_in_memory): Use rx_restricted_mem_operand.
14258 (bitinvert_in_memory): Likewise.
14259 (bitclr_in_memory): Likewise.
14261 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
14262 Nick Clifton <nickc@redhat.com>
14264 * config/rx/rx.md: Add peepholes to match a register move followed
14265 by a comparison of the moved register. Replace these with an
14266 addition of zero that does both actions in one instruction.
14268 2011-05-17 Jakub Jelinek <jakub@redhat.com>
14271 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
14272 predicate to allow CONST_INT.
14273 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
14275 2011-05-16 Joseph Myers <joseph@codesourcery.com>
14277 * opts-common.c (opt_enum_arg_to_value): New.
14278 * opts.h (opt_enum_arg_to_value): Declare.
14279 * config/i386/i386.opt (fpmath): Remove.
14280 (mfpmath=): Use Enum, Init and Save.
14281 (fpmath_unit): New Enum and EnumValue entries.
14282 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
14283 name for function fpmath state.
14284 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
14285 * config/i386/i386.c: Include diagnostic.h.
14286 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
14287 (ix86_target_string): Take enum fpmath_unit value instead of string.
14288 (ix86_debug_options): Update call to ix86_target_string.
14289 (ix86_option_override_internal): Don't process fpmath strings here.
14290 (x86_function_specific_save, ix86_function_specific_restore):
14291 Don't handle fpmath state specially.
14292 (ix86_function_specific_print): Pass fpmath state to
14293 ix86_target_string instead of printing in this function.
14294 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
14295 Handle enum attributes.
14296 (IX86_ATTR_ENUM, ix86_opt_enum): New.
14297 (ix86_valid_target_attribute_tree): Update option_strings
14298 handling. Handle fpmath as enum option.
14299 (ix86_can_inline_p): Update field names for function fpmath state.
14300 (ix86_expand_builtin): Update call to ix86_target_string.
14301 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
14302 (ix86_fpmath): Remove.
14303 * config/i386/t-i386 (i386.o): Update dependencies.
14305 2011-05-16 Joseph Myers <joseph@codesourcery.com>
14307 PR preprocessor/48677
14308 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
14309 from decoded_options[0], not from itself.
14311 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
14313 * config/i386/constraints.md (z): New constraint.
14314 * config/i386/i386.c (c): New mode attribute.
14315 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
14316 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
14317 constraint for operand 0.
14318 (*call_vzeroupper): Ditto.
14319 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
14320 (*call_rex64_ms_sysv_vzeroupper): Ditto.
14321 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
14322 Use "lzm" constraint for operand 0.
14323 (*call_pop_vzeroupper): Ditto.
14324 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
14325 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
14326 constraint for operand 0.
14327 (*sibcall_vzeroupper): Ditto.
14328 (*sibcall_rex64_ms_sysv): Ditto.
14329 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
14330 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
14331 *sibcall_pop_1. Use "Uz" constraint for operand 0.
14332 (*sibcall_pop_vzeroupper): Ditto.
14333 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
14334 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
14335 mode iterator. Use "<c>zm" constraint for operand 1.
14336 (*call_value_vzeroupper): Ditto.
14337 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
14339 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
14340 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
14341 *call_value_pop_1. Use "lzm" constraint for operand 1.
14342 (*call_value_pop_vzeroupper): Ditto.
14343 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
14344 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
14345 mode iterator. Use "Uz" constraint for operand 1.
14346 (*sibcall_value_vzeroupper): Ditto.
14347 (*sibcall_value_rex64_ms_sysv): Ditto.
14348 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
14349 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
14350 constraint for operand 1.
14351 (*sibcall_value_pop_vzeroupper): Ditto.
14352 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
14353 and "z" constraint for operand 2.
14354 (*tls_global_dynamic_32_gnu): Ditto.
14355 (*tls_local_dynamic_base_32_gnu): Ditto.
14356 (*tls_local_dynamic_base_64): Ditto.
14357 (*tls_local_dynamic_32_once): Ditto.
14358 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
14359 Update all callers.
14360 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
14362 2011-05-16 Richard Guenther <rguenther@suse.de>
14364 * gimple.c (gimple_types_compatible_p_1): Use names of the
14365 type itself, not its main variant.
14366 (iterative_hash_gimple_type): Likewise.
14368 2011-05-16 Richard Guenther <rguenther@suse.de>
14370 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
14371 always visit pointer target and function result and argument types.
14373 2011-05-16 Jason Merrill <jason@redhat.com>
14376 * tree-inline.c (copy_statement_list): Put back recursion.
14378 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
14382 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
14383 * config/avr/avr.md ("*ior<mode>qi.byte0",
14384 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
14386 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
14389 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
14390 register is needed for a function argument.
14392 2011-05-16 Richard Guenther <rguenther@suse.de>
14394 * gimple.c (struct type_hash_pair): New type.
14395 (type_hash_pair_compare): New function.
14396 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
14398 2011-05-16 Revital Eres <revital.eres@linaro.org>
14400 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
14402 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
14404 * config/i386/i386.md (floating point move splitters): Fix
14405 usage of standard_80387_constant_p.
14406 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
14408 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
14410 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
14412 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
14414 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
14415 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
14416 (tree_ssa_lim_finalize): Likewise.
14418 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
14420 * config/i386/constraint.md (Yd, Yx): New register constraints.
14421 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
14422 Yd conditional register constraint.
14423 (*movtf_internal): Use standard_sse_constant_opcode.
14424 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
14425 Yx conditional register constraint.
14426 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
14427 Yd conditional register constraint. Use standard_sse_constant_p to
14428 check for valid SSE constants and call standard_sse_constant_opcode to
14430 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
14431 constants and call standard_sse_constant_opcode to output SSE insn.
14432 * config/i386/i386.c (ix86_option_ovverride_internal): Set
14433 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
14434 optimize_size is set.
14435 (standard_sse_constant_opcode): Output conditional AVX insn templates.
14437 2011-05-14 Tobias Burnus <burnus@net-b.de>
14439 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
14441 2011-05-13 Martin Jambor <mjambor@suse.cz>
14443 * ipa-prop.c (ipa_cst_from_jfunc): New function.
14444 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
14445 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
14446 (evaluate_conditions_for_ipcp_clone): Removed.
14447 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
14448 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
14449 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
14451 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
14453 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
14454 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
14455 lieu of MAY_HAVE_DEBUG_STMTS.
14456 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
14457 debug statements if !MAY_HAVE_DEBUG_STMTS.
14459 2011-05-13 Martin Thuresson <martint@google.com>
14461 PR gcov-profile/47793
14462 * libgcov.c (gcov_exit): Support relative profile paths.
14463 * doc/invoke.texi (-fprofile-dir): Update for above change.
14465 2011-05-13 Richard Guenther <rguenther@suse.de>
14467 * gimple.c (gimple_canonical_types_compatible_p): Do not use
14468 type-pair caching, do not compare hashes.
14470 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
14472 PR middle-end/48965
14473 * tree-cfg.c (edge_to_cases_cleanup): Return true.
14474 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
14476 2011-05-13 Kai Tietz <ktietz@redhat.com>
14478 * gimplify.c (gimplify_expr): Make sure operand is boolified.
14479 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
14480 compatible type for TRUTH_NOT_EXPR.
14482 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
14484 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
14485 (ix86_hard_regno_mode_ok): Change return value to bool. Use
14486 can_create_pseudo_p ().
14488 2011-05-13 Richard Guenther <rguenther@suse.de>
14491 * gimple.c (iterative_hash_gimple_type): Revert change in
14492 pointer target and function result and argument hashing.
14494 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
14496 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
14497 (*movxf_internal_nointeger): Ditto.
14498 (*movdf_internal_rex64): Ditto.
14499 (*movdf_internal): Ditto.
14500 (*movdf_internal_nointeger): Ditto.
14501 (*movsf_internal): Ditto.
14502 (sincos splitters): Use can_create_pseudo ().
14504 2011-05-13 Joseph Myers <joseph@codesourcery.com>
14506 * config/i386/i386-opts.h: New.
14507 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
14508 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
14509 ix86_section_threshold): Remove.
14510 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
14511 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
14513 (ix86_option_override_internal): Don't decode strings for options
14514 other than -march=, -mtune= and -mfpmath=. Don't allow for
14515 __attribute__ uses in remaining diagnostics for options with
14516 string arguments. Don't check for integer arguments being negative.
14517 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
14518 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
14519 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
14520 ix86_branch_cost, ix86_section_threshold): Remove.
14521 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
14523 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
14525 (masm=): Use Enum and Init.
14526 (asm_dialect): New Enum and EnumValue entries.
14527 (mbranch-cost=): Use UInteger.
14528 (mlarge-data-threshold=): Use UInteger and Init.
14529 (mcmodel=): Use Enum and Init.
14530 (cmodel): New Enum and EnumValue entries.
14531 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
14532 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
14533 mregparm=): Use UInteger.
14534 (mstringop-strategy=): Use Enum and Init.
14535 (stringop_alg): New Enum and EnumValue entries.
14536 (mtls-dialect=): Use Enum and Init.
14537 (tls_dialect): New Enum and EnumValue entries.
14538 (mabi=): Use Enum and Init.
14539 (calling_abi): New Enum and EnumValue entries.
14540 (mveclibabi=): Use Enum and Init.
14541 (ix86_veclibabi): New Enum and EnumValue entries.
14543 2011-05-13 Nick Clifton <nickc@redhat.com>
14545 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
14546 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
14548 2011-05-13 Kai Tietz <ktietz@redhat.com>
14550 PR middle-end/48984
14551 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
14552 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
14553 (gimple_boolify): Check for cast for boolean_type_node instead for
14556 2011-05-13 Richard Guenther <rguenther@suse.de>
14558 PR tree-optimization/48172
14559 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
14560 multiplying by number of iterations for equal step.
14561 (vect_create_cond_for_alias_checks): Likewise.
14563 2011-05-13 Andreas Schwab <schwab@redhat.com>
14565 * configure.ac: Use AS_HELP_STRING throughout.
14566 * configure: Regenerate.
14568 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
14570 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
14571 (ix86_emit_restore_regs_using_mov): Likewise.
14572 (ix86_emit_restore_sse_regs_using_mov): Likewise.
14574 2011-05-12 Anatoly Sokolov <aesok@post.ru>
14576 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
14577 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
14578 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
14579 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
14580 RTX_OK_FOR_OLO10_P): ...here.
14581 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
14584 2011-05-12 Kai Tietz <ktietz@redhat.com>
14586 * gimplify.c (gimple_boolify): Re-boolify expression
14587 arguments even if expression type is of kind BOOLEAN_TYPE.
14588 (gimplify_boolean_expr): Removed.
14589 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
14590 and XOR. Additional take care that we keep expression's type.
14591 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
14592 of TRUTH_AND|OR|XOR_EXPR.
14594 2011-05-12 Jakub Jelinek <jakub@redhat.com>
14596 PR tree-optimization/48975
14597 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
14598 on all bbs here and free and clear ifc_bbs at the end.
14600 2011-05-12 Richard Guenther <rguenther@suse.de>
14602 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
14603 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
14604 until after simple checks.
14605 (gimple_types_compatible_p): Likewise.
14606 (iterative_hash_gimple_type): Always hash pointer targets
14607 and function return and argument types.
14608 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
14609 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
14610 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
14611 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
14612 completely in the simple compare section.
14613 (gimple_register_canonical_type): Query the cache again after
14616 2011-05-12 Richard Guenther <rguenther@suse.de>
14618 PR tree-optimization/48172
14619 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
14620 the number of iterations from the segment size calculation.
14621 (vect_create_cond_for_alias_checks): Adjust.
14623 2011-05-12 Jakub Jelinek <jakub@redhat.com>
14626 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
14627 if validate_subreg fails.
14629 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
14631 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
14632 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
14635 2011-05-12 DJ Delorie <dj@redhat.com>
14637 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
14638 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
14639 created builtin into rx_builtins array.
14640 (rx_builtin_decl): New function.
14641 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
14643 2011-05-12 DJ Delorie <dj@redhat.com>
14644 Nick Clifton <nickc@redhat.com>
14646 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
14647 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
14648 (rx_is_legitimate_address): Add pre-decrement and post-increment
14649 addressing in HImode and QImode. Fix test for out of range
14650 REG+INT addressing.
14651 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
14652 (rx_align_for_label): Test label before extracting its usage count.
14653 (rx_adjust_insn_lengths): Fix selection of insn codes.
14654 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
14656 2011-05-11 Jason Merrill <jason@redhat.com>
14658 * tree.c (type_hash_canon): Use struct tree_type_non_common.
14660 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
14662 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
14663 reindent the subsequent block.
14665 2011-05-11 Satoru Takabayashi <satorux@google.com>
14666 Paul Pluzhnikov <ppluzhnikov@google.com>
14668 * doc/install.texi (Configuration): Document --with-linker-hash-style.
14669 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
14670 * config.in: Add LINKER_HASH_STYLE.
14671 * configure.ac: Add --with-linker-hash-style.
14672 * configure: Regenerate.
14674 2011-05-11 Richard Guenther <rguenther@suse.de>
14676 PR middle-end/48964
14677 * gimple.c (iterative_hash_canonical_type): Fix typo.
14679 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
14681 * config/i386/i386.c (legitimize_tls_address)
14682 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
14683 expanders directly for TARGET_GNU2_TLS. Determine pic and
14684 __tls_get_addr symbol reference here. Update call to
14685 gen_tls_global_dynamic_{32,64} for added arguments.
14686 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
14687 expanders directly for TARGET_GNU2_TLS. Determine
14688 __tls_get_addr symbol reference here. Update call to
14689 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
14690 unique UNSPEC REG_EQUIV to libcall block.
14691 (ix86_tls_get_addr): Declare static.
14692 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
14693 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
14694 Do not determine pic and __tls_get_addr symbol reference here. Do not
14695 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
14696 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
14697 (tls_global_dynamic_64): Add operand 2. Do not determine
14698 __tls_get_addr symbol reference here. Do not call
14699 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
14700 (tls_local_dynamic_base64): Ditto for operand 1.
14702 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
14704 * function.c (expand_function_start): Initialize stack_check_probe_note
14705 only if the generic stack checking mechanism is used.
14707 2011-05-11 Richard Guenther <rguenther@suse.de>
14709 PR tree-optimization/15256
14710 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
14711 (A & B) | C, combine (A op CST1) op CST2.
14712 (tree_ssa_forward_propagate_single_use_vars): Only bother to
14713 visit assigns that have uses.
14715 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
14717 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
14718 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
14719 (unpack_ts_type_common_value_fields): ...this. Update comment.
14720 (unpack_value_fields): Adjust for renaming.
14721 (lto_input_ts_type_tree_pointers): Split into...
14722 (lto_input_ts_type_common_tree_pointer): ...this and...
14723 (lto_input_ts_type_non_common_tree_pointers): ...this.
14724 (lto_input_tree_pointers): Adjust for above split.
14725 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
14726 (pack_ts_type_common_value_fields): ...this. Update comment.
14727 (lto_output_ts_type_tree_pointers): Split into...
14728 (lto_output_ts_type_common_tree_pointers): ...this and...
14729 (lto_output_ts_type_non_common_tree_pointers): ...this.
14730 (lto_output_tree_pointers): Adjust for above split.
14731 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
14732 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
14733 * stor-layout.c (vector_type_mode): Adjust location of mode field.
14734 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
14736 (struct tree_type): Split into...
14737 (struct tree_type_common: ...this and...
14738 (struct tree_type_with_lang_specific): ...this and...
14739 (struct tree_type_non_common): ...this. Adjust accessor macros
14741 (TYPE_VALUES_RAW): Define.
14742 (union tree_node): Update for above changes.
14743 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
14744 TS_TYPE_NON_COMMON.
14745 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
14746 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
14747 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
14748 * treestructu.def (TS_TYPE): Remove.
14749 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
14752 2011-05-11 Jakub Jelinek <jakub@redhat.com>
14755 * tree-ssa.c (reset_debug_uses): New function.
14756 * tree-flow.h (reset_debug_uses): New prototype.
14757 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
14758 * tree-loop-distribution.c (generate_loops_for_partition): Call
14759 reset_debug_uses on the stmts that will be removed. Keep around
14760 all debug stmts, don't count them as bits in partition bitmap.
14761 (generate_builtin): Don't count debug stmts or labels as bits in
14764 2011-05-11 Richard Guenther <rguenther@suse.de>
14766 * gimple.c (gimple_type_hash_1): Merge with ...
14767 (gimple_type_hash): ... this.
14768 (gtc_visit): Remove mode parameter and simplify accordingly.
14769 (gimple_types_compatible_p_1): Likewise.
14770 (gimple_types_compatible_p): Likewise.
14771 (iterative_hash_gimple_type): Likewise.
14773 (gimple_type_eq): Adjust.
14775 2011-05-11 Revital Eres <revital.eres@linaro.org>
14777 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
14778 enters the branch create an anti edge in the opposite direction
14779 to prevent the creation of reg-moves.
14780 * modulo-sched.c: Adjust comment to reflect the fact we are
14781 scheduling closing branch.
14782 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
14783 (stage_count): New field in struct partial_schedule.
14784 (calculate_stage_count): New function.
14785 (normalize_sched_times): Rename to reset_sched_times and handle
14786 incrementing the sched time of the nodes by a constant value
14787 passed as parameter.
14788 (duplicate_insns_of_cycles): Skip closing branch.
14789 (sms_schedule_by_order): Schedule closing branch.
14790 (ps_insn_find_column): Handle closing branch.
14791 (sms_schedule): Call reset_sched_times and adjust the code to
14792 support scheduling of the closing branch.
14793 (ps_insert_empty_row): Update calls to normalize_sched_times
14794 and rotate_partial_schedule functions.
14796 2011-05-11 Richard Guenther <rguenther@suse.de>
14798 PR middle-end/48953
14799 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
14801 2011-05-11 Joseph Myers <joseph@codesourcery.com>
14803 * opts.c (finish_options): Move warning settings from process_options.
14804 * toplev.c (process_options): Move warning settings to finish_options.
14806 2011-05-11 Richard Guenther <rguenther@suse.de>
14808 PR tree-optimization/18041
14809 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
14810 (simplify_bitwise_binary): ... this. Handle operand conversions
14811 by applying them to the result instead.
14812 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
14814 2011-05-11 Richard Guenther <rguenther@suse.de>
14816 * gimple.c (gimple_canonical_types_compatible_p): Split out
14817 from gimple_types_compatible_p and friends. Do not recurse
14818 to pointed-to types.
14819 (gimple_canonical_type_eq): Use it.
14820 (iterative_hash_canonical_type): Split out from
14821 iterative_hash_gimple_type and friends. Do not recurse
14822 to pointed-to types.
14823 (gimple_canonical_type_hash): Use it, allocate the hash here.
14825 2011-05-11 Revital Eres <revital.eres@linaro.org>
14827 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
14828 recognizing doloop.
14830 2011-05-11 Revital Eres <revital.eres@linaro.org>
14832 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
14833 instead of PREV_INSN.
14835 2011-05-11 Revital Eres <revital.eres@linaro.org>
14837 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
14838 * loop-doloop.c (doloop_condition_get): Likewise.
14839 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
14841 * config/arm/arm.md (*addsi3_compare0): Remove "*".
14843 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
14845 * tree.def (CASE_LABEL_EXPR): Add an operand.
14846 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
14848 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14850 * c-decl.c (c_override_global_bindings_to_false): Remove.
14851 (global_bindings_p): Don't check
14852 c_override_global_bindings_to_false.
14853 * c-tree.h (c_override_global_bindings_to_false): Remove.
14854 * c-typeck.c (composite_type): Don't set
14855 c_override_global_bindings_to_false.
14857 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
14859 PR target/48857, 48495
14860 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
14862 (VSX_MOVE_MODE): Ditto.
14863 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
14864 VSX vector types. Add V2DImode.
14865 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
14866 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
14867 (MODES_TIEABLE_P): Ditto.
14869 * config/rs6000/rs6000.c (rs6000_emit_move): Use
14870 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
14872 (init_cumulative_args): Ditto.
14873 (rs6000_function_arg_boundary): Ditto.
14874 (rs6000_function_arg_advance_1): Ditto.
14875 (rs6000_function_arg): Ditto.
14876 (rs6000_function_ok_for_sibcall): Ditto.
14877 (emit_frame_save): Ditto.
14878 (rs6000_function_value): Ditto.
14879 (rs6000_libcall_value): Ditto.
14881 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14883 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
14884 i386/darwin-lib.h to $libgcc_tm_file.
14885 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
14887 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14889 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
14891 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14893 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
14894 * config/rs6000/rs6000-tables.opt: New file (generated).
14895 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
14896 rs6000/rs6000-tables.opt to extra_options.
14897 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
14898 * config/rs6000/rs6000.c (rs6000_select): Remove.
14899 (processor_target_table): Move contents to rs6000-cpus.def.
14900 (darwin_rs6000_override_options): Check
14901 global_options_set.x_rs6000_cpu_index instead of
14902 rs6000_select[1].string.
14903 (rs6000_option_override_internal): Likewise.
14904 (rs6000_handle_option): Don't assert that global structures are in
14905 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
14906 (rs6000_default_cpu): New variable.
14907 (rs6000_file_start): Set it instead of local default_cpu. Check
14908 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
14909 global_options_set.x_rs6000_tune_index instead of rs6000_select.
14910 (rs6000_darwin_file_start): Check rs6000_default_cpu and
14911 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
14912 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
14913 rs6000_select): Remove.
14914 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
14916 (mcpu=, mtune=): Use Var, Init, Enum and Save.
14917 * config/rs6000/t-rs6000
14918 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
14919 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
14920 global_options_set.x_rs6000_cpu_index instead of
14921 rs6000_select[1].string.
14922 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
14923 global_options_set.x_rs6000_cpu_index instead of
14924 rs6000_select[1].string.
14926 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14928 * config.gcc (libgcc_tm_file): Define instead of including files
14929 from ../../libgcc/config/ in tm_file.
14930 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
14931 * configure: Regenerate.
14932 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
14933 libgcc_tm.h, cs-libgcc_tm.h): New.
14934 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
14935 (clean): Remove libgcc_tm.h.
14936 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
14937 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
14938 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
14940 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
14943 * config/avr/avr.c (avr_ret_register): Return unsigned int
14945 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
14946 it to avr_libcall_value.
14947 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
14949 (avr_expand_binop_builtin): Ditto.
14950 (avr_expand_unop_builtin): Ditto.
14952 2011-05-10 DJ Delorie <dj@redhat.com>
14954 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
14955 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
14956 * config/rx/rx.c (rx_align_for_label): Add label and
14957 uses_threshold parameters. Do not align when the label is not
14959 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
14961 2011-05-10 Richard Guenther <rguenther@suse.de>
14963 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
14964 a series of conversions and apply foldings similar to what
14966 (tree_ssa_forward_propagate_single_use_vars): Call it.
14968 2011-05-10 Jakub Jelinek <jakub@redhat.com>
14970 PR tree-optimization/48611
14971 PR tree-optimization/48794
14972 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
14973 referenced from RESX or EH_DISPATCH arguments.
14976 * dfp.c (decimal_to_decnumber): Handle conversion from
14977 dconst{1,2,m1,half}.
14979 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
14981 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
14982 for !flag_prefer_avx128.
14983 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
14985 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
14987 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
14988 (fold_ternary_loc): Use expr_location_or.
14990 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
14993 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
14994 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
14995 Pmode and mem_mode is not VOIDmode.
14997 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
14999 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
15000 TYPE_QUAL_RESTRICT): Convert to enum.
15002 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
15004 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
15005 (const_pow2_1_to_8_operand): Ditto.
15006 (const_pow2_1_to_128_operand): Ditto.
15007 (const_pow2_1_to_32768_operand): Ditto.
15008 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
15009 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
15010 in insn constraint to check integer value of operand 3.
15011 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
15013 (PINSR_MODE): New mode iterator.
15014 (sse2p4_1): New mode attribute.
15015 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
15016 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
15017 iterator. Use const_int_operand instead of
15018 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
15019 exact_log2 in insn constraint to check integer value of operand 3.
15021 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
15023 * config/i386/sse.md (blendbits): Remove mode attribute.
15024 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
15025 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
15026 Check integer value of operand 3 in insn constraint.
15028 2011-05-09 Richard Guenther <rguenther@suse.de>
15030 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
15032 (lto_symtab_merge): Likewise. Do not register types here.
15033 (lto_symtab_merge_decls_2): Likewise.
15034 (lto_symtab_merge_decls_1): Likewise.
15035 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
15036 * gimple.c (enum gtc_mode): Declare.
15037 (gimple_types_compatible_p): Make static.
15039 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15041 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
15042 temporary register to match Pmode.
15044 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
15046 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
15047 and *vec_concatv4si_1_avx.
15049 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
15051 PR rtl-optimization/48927
15052 * ira-conflicts.c (commutative_constraint_p): Use
15053 recog_data.alternative_enabled_p to disable alternatives where
15054 "enabled" attribute is false.
15055 (get_dup_num): Ditto.
15056 * ira-lives.c (single_reg_class): Ditto.
15057 (ira_implicitly_set_insn_hard_regs): Ditto.
15059 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
15061 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
15062 (dataflow_set_preserve_mem_locs): Likewise.
15064 2011-05-09 Philipp Thomas <pth@suse.de>
15066 * config/mep/mep.c (mep_validate_vliw): Syntax description
15067 should not be translated.
15069 2011-05-09 Joseph Myers <joseph@codesourcery.com>
15071 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
15072 * config/mips/mips-tables.opt: New file (generated).
15073 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
15074 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
15075 MIPS_ARCH_OPTION_NATIVE): Define.
15076 * config/mips/mips.c (mips_cpu_info_table): Move contents to
15078 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
15079 mips_parse_cpu): Remove.
15080 (mips_cpu_info_from_opt, mips_default_arch): New.
15081 (mips_handle_option): Don't assert that global structures are in
15082 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
15083 (mips_option_override): Use new variables and functions to set
15084 state of these options. Use strcmp to check for individual CPU names.
15085 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
15087 * config/mips/mips.opt (march=): Use ToLower and Enum.
15088 (mips): Use ToLower, Enum and Var.
15089 (mtune=): Use ToLower and Enum.
15090 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
15092 2011-05-08 Jan Hubicka <jh@suse.cz>
15094 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
15095 Arrange type pairs to be UID ordered.
15096 (gimple_lookup_type_leader): Make inline.
15098 2011-05-09 Nick Clifton <nickc@redhat.com>
15101 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
15105 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
15108 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
15110 * combine.c (simplify_comparison): Abstract out parts into...
15111 (simplify_compare_const): ... new function.
15112 (try_combine): Generalize parallel arithmetic/compare combining
15113 to call simplify_compare_const() and CANONICALIZE_COMPARE().
15115 2011-05-08 Jan Hubicka <jh@suse.cz>
15117 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
15118 (cgraph_create_virtual_clone): Call hooks once virtual clone
15120 * cgraph.h (cgraph_clone_node): Update prototype.
15121 * ipa-cp.c (ipcp_estimate_growth): Use
15122 estimate_ipcp_clone_size_and_time.
15123 * ipa-inline-transform.c (clone_inlined_nodes): Update.
15124 * lto-cgraph.c (input_node): Update.
15125 * ipa-inline.c (recursive_inlining): Update.
15126 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
15127 (evaluate_conditions_for_known_args): Break out from ...
15128 (evaluate_conditions_for_edge): ... here.
15129 (evaluate_conditions_for_ipcp_clone): New function.
15130 (inline_node_duplication_hook): Update clone summary based
15132 (estimate_callee_size_and_time): Rename to ...
15133 (estimate_node_size_and_time): take NODE instead of EDGE;
15134 take POSSIBLE_TRUTHS as argument.
15135 (estimate_callee_size_and_time): Update.
15136 (estimate_ipcp_clone_size_and_time): New function.
15137 (do_estimate_edge_time): Update.
15139 2011-05-08 Richard Guenther <rguenther@suse.de>
15141 PR middle-end/48908
15142 PR middle-end/48905
15143 * expmed.c (expand_shift_1): Compute adjusted constant shift
15146 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
15148 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
15150 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
15152 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
15154 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
15156 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
15158 2011-05-07 Jan Hubicka <jh@suse.cz>
15160 * ipa-inline-transform.c (inline_call): Account when program size
15162 * ipa-inline.c (relative_time_benefit): New function.
15163 (edge_badness): Reorganize to be power 2 based; fix thinko when
15164 computing badness for negative growth; update comments to match
15165 reality; better dumps.
15167 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
15169 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
15170 type to bool and adjust comment.
15171 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
15172 (fold_mathfn_compare): Remove calls to global_bindings_p.
15173 (fold_inf_compare): Likewise.
15174 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
15175 * c-tree.h (global_bindings_p): Adjust prototype.
15176 * c-decl.c (global_bindings_p): Return bool and simplify.
15178 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
15180 PR tree-optimization/48837
15181 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
15182 when accumulator transformation is performed.
15184 2011-05-06 Jan Hubicka <jh@suse.cz>
15186 * i386.h (ix86_tune_indices): Add
15187 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
15188 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
15189 * i386.c (initial_ix86_tune_features): Add
15190 X86_SOFTARE_PREFETCHING_BENEFICIAL.
15191 (software_prefetching_beneficial_p): Remove predicate.
15192 (ix86_option_override_internal): Use new macro.
15194 2011-05-06 Jan Hubicka <jh@suse.cz>
15196 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
15198 2011-05-06 Jan Hubicka <jh@suse.cz>
15200 * cgraph.c (cgraph_add_thunk): Create real function node instead
15201 of alias node; finalize it and mark needed/reachale; arrange visibility
15202 to be right and add it into the corresponding same comdat group list.
15203 (dump_cgraph_node): Dump thunks.
15204 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
15205 cgraph_function_with_gimple_body_p,
15206 cgraph_first_function_with_gimple_body,
15207 cgraph_next_function_with_gimple_body): New functions.
15208 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
15210 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
15211 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
15212 * cgraphunit.c (cgraph_finalize_function): Only look into possible
15213 devirtualization when optimizing.
15214 (verify_cgraph_node): Verify thunks.
15215 (cgraph_analyze_function): Analyze thunks.
15216 (cgraph_mark_functions_to_output): Output thunks only in combination
15217 with function they are assigned to.
15218 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
15219 alias into normal node.
15220 (assemble_thunks): New functoin.
15221 (cgraph_expand_function): Use it.
15222 * lto-cgraph.c (lto_output_node): Stream thunks.
15223 (input_overwrite_node): Stream in thunks.
15224 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
15225 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
15226 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
15227 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
15228 (inline_analyze_function): Do not care about thunk jump functions.
15229 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
15230 * ipa-prop.c (ipa_prop_write_jump_functions): Use
15231 cgraph_function_with_gimple_body_p.
15232 * passes.c (do_per_function_toporder): Use
15233 cgraph_function_with_gimple_body_p.
15234 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
15235 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
15236 (function_called_by_processed_nodes_p): Likewise.
15238 2011-05-06 Joseph Myers <joseph@codesourcery.com>
15240 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
15241 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
15243 (mabi=): Replace with separate entries for mabi=altivec,
15244 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
15245 mabi=ieeelongdouble and mabi=ibmlongdouble.
15246 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
15247 check for -mabi=spe without SPE ABI support here.
15248 (rs6000_handle_option): Replace OPT_mabi_ handling with
15249 OPT_mabi_altivec and OPT_mabi_spe handling.
15251 2011-05-06 Cary Coutant <ccoutant@google.com>
15253 * dwarf2out.c (contains_subprogram_definition): New function.
15254 (should_move_die_to_comdat): Call it.
15256 2011-05-06 Jeff Law <law@redhat.com>
15258 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
15259 remove_ctrl_stmt_and_useless_edges.
15260 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
15261 (fixup_template_block, thread_single_edge): Likewise.
15262 (mark_threaded_blocks): Use THREAD_TARGET.
15264 2011-05-06 Alan Modra <amodra@gmail.com>
15267 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
15268 const0_rtx as the arg to the dummy __tls_get_addr libcall.
15270 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
15272 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
15273 constraint modifier to "r".
15275 2011-05-06 Joseph Myers <joseph@codesourcery.com>
15277 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
15278 fall through for OPT_mcmodel_.
15280 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15282 * config/s390/s390.c (s390_asm_trampoline_template): Comment
15284 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
15286 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15289 * config/arm/arm.opt (marm): Document it.
15290 (mthumb): Reject negative variant.
15292 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
15295 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
15296 Fix typo in "ccvt" variable name.
15298 2011-05-06 Tristan Gingold <gingold@adacore.com>
15301 * config/vms/vms-ar.c (main): Remove cwd variable.
15303 2011-05-06 Jakub Jelinek <jakub@redhat.com>
15306 * var-tracking.c (prepare_call_arguments): Move else before #endif.
15308 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
15310 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
15311 * gimplify.c (gimplify_switch_expr): Likewise.
15312 * omp-low.c (expand_omp_sections): Likewise.
15313 * tree-eh.c (lower_try_finally_switch): Likewise.
15314 (lower_eh_dispatch): Likewise.
15315 * tree.h (build_case_label): Declare.
15316 * tree.c (build_case_label): Define.
15318 2011-05-05 Jason Merrill <jason@redhat.com>
15321 * tree-inline.c (copy_tree_r): Use copy_statement_list.
15322 (copy_statement_list): Don't recurse.
15323 * stor-layout.c (copy_self_referential_tree_r): Don't allow
15326 2011-05-05 Joseph Myers <joseph@codesourcery.com>
15328 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
15329 through from -mfpu= handling.
15330 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
15332 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
15334 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
15337 2011-05-05 Steve Ellcey <sje@cup.hp.com>
15339 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
15341 (hppa[12]*-*-hpux11*): Ditto.
15342 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
15343 * config/ia64/hpux-unix2003.h: New.
15344 * config/pa/pa-hpux1131.opt: New.
15345 * config/pa/pa-hpux1131.h: New.
15346 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
15347 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
15348 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
15350 2011-05-05 Jakub Jelinek <jakub@redhat.com>
15353 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
15354 instead of mode as 3rd argument to recursive call.
15355 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
15356 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
15358 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
15359 don't give up if mode is Pmode and mem_mode is not VOIDmode.
15360 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
15361 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
15363 2011-05-05 Julian Brown <julian@codesourcery.com>
15365 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
15366 parenthesis in D-register case.
15368 2011-05-05 Joseph Myers <joseph@codesourcery.com>
15370 * opt-functions.awk (var_type_struct): Handle Enum options.
15371 * optc-gen.awk: Don't check range of variables of character type.
15372 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
15373 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
15374 rs6000_sdata_name, rs6000_explicit_options): Remove.
15375 (rs6000_option_override_internal): Check for -malign-power here.
15376 Use global_options_set instead of rs6000_explicit_options.
15377 (rs6000_parse_fpu_option): Remove.
15378 (rs6000_handle_option): Access variables via opts and opts_set
15379 pointers. Use error_at and warning_at. Add fall-through
15380 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
15381 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
15382 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
15383 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
15384 here. Don't use rs6000_parse_fpu_option.
15385 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
15386 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
15387 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
15388 (mrecip=): Use Var.
15389 (mspe): Use Var and Save.
15390 (mtraceback=): Use Enum and Var.
15391 (rs6000_traceback_type): New Enum and EnumValue entries.
15392 (mfloat-gprs=): Use Enum, Var and Save.
15393 (rs6000_float_gprs): New Enum and EnumValue entries.
15394 (mlong-double-): use Var and Save.
15395 (msched-costly-dep=, minsert-sched-nops=): Use Var.
15396 (malign-): Use Enum and Var.
15397 (rs6000_alignment_flags): New Enum and EnumValue entries.
15399 (fpu_type_t): New Enum and EnumValue entries.
15400 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15401 global_options_set instead of rs6000_explicit_options.
15402 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15403 global_options_set instead of rs6000_explicit_options.
15404 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15405 global_options_set instead of rs6000_explicit_options.
15406 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15407 global_options_set instead of rs6000_explicit_options.
15408 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
15409 global_options_set instead of rs6000_explicit_options.
15410 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15411 global_options_set instead of rs6000_explicit_options.
15412 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
15414 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15415 global_options_set instead of rs6000_explicit_options.
15416 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
15417 (rs6000_cmodel): New Enum and EnumValue entries.
15418 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15419 global_options_set instead of rs6000_explicit_options.
15420 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
15421 (mtls-size=): Use Enum and Var.
15422 (rs6000_tls_size): New Enum and EnumValue entries.
15424 2011-05-05 Michael Matz <matz@suse.de>
15426 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
15427 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
15428 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
15429 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
15430 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
15431 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
15432 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
15433 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
15434 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
15435 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
15436 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
15437 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
15438 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
15439 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
15440 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
15441 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
15443 2011-05-05 Richard Guenther <rguenther@suse.de>
15445 * expmed.c (expand_variable_shift): Rename to ...
15446 (expand_shift_1): ... this. Take an expanded shift amount.
15447 For rotates recurse directly not building trees for the shift amount.
15448 (expand_variable_shift): Wrap around expand_shift_1.
15449 (expand_shift): Adjust.
15451 2011-05-05 Jakub Jelinek <jakub@redhat.com>
15453 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
15455 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
15457 * tree.h (get_pending_sizes): Remove prototype.
15458 (put_pending_size): Likewise.
15459 (put_pending_sizes): Likewise.
15460 * stor-layout.c (pending_sizes): Delete.
15461 (get_pending_sizes): Likewise.
15462 (put_pending_size): Likewise.
15463 (put_pending_sizes): Likewise.
15464 (variable_size): Do not call put_pending_size and tidy up.
15465 * function.h (struct function): Remove dont_save_pending_sizes_p.
15466 * lto-streamer-in.c (input_function): Do not stream it.
15467 * lto-streamer-out.c (output_function): Likewise.
15468 * tree-inline.c (initialize_cfun): Do not copy it.
15469 * c-decl.c (store_parm_decls): Do not set it.
15470 * omp-low.c (create_task_copyfn): Likewise.
15471 * tree-optimize.c (tree_rest_of_compilation): Likewise.
15473 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
15475 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
15477 (*movdf_internal): Ditto.
15478 (*movdf_internal_nointeger): Ditto.
15479 (*movsf_internal): Ditto.
15481 2011-05-05 Joseph Myers <joseph@codesourcery.com>
15483 * c-decl.c (finish_decl): Don't call get_pending_sizes.
15484 (grokparm): Add parameter expr. Pass it to grokdeclarator.
15485 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
15486 (c_variable_size): Remove.
15487 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
15488 call put_pending_sizes.
15489 (get_parm_info): Add parameter expr. Use it to set
15490 arg_info->pending_sizes.
15491 (store_parm_decls): Use arg_info->pending_sizes instead or calling
15493 * c-parser.c (c_parser_parms_declarator): Update call to
15494 c_parser_parms_list_declarator.
15495 (c_parser_parms_list_declarator): Take parameter expr. Update
15496 call to push_parm_decl. Update recursive call. Don't call
15497 get_pending_sizes. Update calls to get_parm_info.
15498 (c_parser_objc_method_definition): Update calls to
15499 c_parser_objc_method_decl and objc_start_method_definition.
15500 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
15501 (c_parser_objc_method_decl): Add parameter expr. Update call to
15503 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
15504 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
15505 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
15507 2011-05-05 Michael Hope <michael.hope@linaro.org>
15510 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
15511 __ARM_EABI__ hosts.
15513 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15515 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
15516 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
15517 (spu_output_mi_thunk): New function.
15519 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15521 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
15522 targetm.asm_out.print_operand.
15523 * config/sol2.c: Include target.h.
15525 2011-05-04 Jan Hubicka <jh@suse.cz>
15527 * ipa-inline.c (reset_edge_caches): New function.
15528 (update_caller_keys): Add check_inlinablity_for; do not
15529 reset edge caches; remove now unnecesary loop.
15530 (update_callee_keys): Add comments; reset node_growth_cache of callee.
15531 (update_all_callee_keys): Likewise.
15532 (inline_small_functions): Sanity check cache; update code
15535 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
15537 PR rtl-optimization/47612
15538 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
15539 as the last insn of the sequence to be moved.
15541 2011-05-04 Tobias Burnus <burnus@net-b.de>
15544 * doc/invoke.texi (Ofast): Document that it
15545 enables Fortran's -fno-protect-parens.
15547 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
15549 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
15551 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
15553 * stor-layout.c (variable_size): Do not issue errors.
15555 2011-05-04 Richard Guenther <rguenther@suse.de>
15557 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
15558 for array-ref indices.
15559 (tree_coverage_counter_addr): Likewise.
15560 (build_fn_info_type): Use size_int for index types.
15561 (build_gcov_info): Likewise.
15563 2011-05-04 Richard Guenther <rguenther@suse.de>
15565 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
15567 * c-typeck.c (really_start_incremental_init): Use bitsize_int
15568 for constructor indices.
15569 (push_init_level): Likewise.
15571 2011-05-04 Richard Guenther <rguenther@suse.de>
15573 * explow.c (promote_mode): Move variable declarations before code.
15575 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
15577 * tree.h (build_function_type_array): Declare.
15578 (build_varargs_function_type_array): Declare.
15579 (build_function_type_vec, build_varargs_function_type_vec): Define.
15580 * tree.c (build_function_type_array_1): New function.
15581 (build_function_type_array): New function.
15582 (build_varargs_function_type_array): New function.
15584 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
15586 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
15587 before setting STMT_VINFO_TYPE.
15589 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15591 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
15592 instead of spu_pass_by_reference.
15594 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15596 * calls.c (emit_library_call_value_1): Invoke
15597 promote_function_mode hook on libcall arguments.
15598 * explow.c (promote_function_mode, promote_mode): Handle TYPE
15599 argument being NULL.
15600 * targhooks.c (default_promote_function_mode): Lisewise.
15601 * config/s390/s390.c (s390_promote_function_mode): Likewise.
15602 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
15604 * doc/tm.texi: Document that TYPE argument might be NULL.
15606 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15608 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
15610 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15613 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
15615 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15617 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
15618 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
15620 * mips-tfile.c: ... here.
15621 Don't include coretypes.h, tm.h, filenames.h.
15622 (saber_stop): Remove definition and all calls.
15623 [__SABER__]: Remove.
15624 (__LINE__): Remove default.
15625 (Size_t, Ptrdiff_t): Remove definitions.
15626 Replace by size_t, ptrdiff_t.
15627 [!MIPS_DEBUGGING_INFO]: Remove.
15628 (SHASH_SIZE, THASH_SIZE): Remove defaults.
15629 (progname): Add const.
15631 Replace all uses by static.
15632 (ALIGN_SYMTABLE_OFFSET): Remove default.
15633 * mips-tdump.c: Don't include coretypes.h, tm.h.
15634 Remove !MIPS_IS_STAB guard.
15635 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
15636 $(TM_H), filenames.h dependencies.
15637 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
15639 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15642 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
15643 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
15645 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15648 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
15649 account and save/restore RETS.
15650 (PROFILE_BEFORE_PROLOGUE): Define.
15651 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
15652 the push insn to use predecrement.
15654 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15657 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
15659 2011-05-04 Nick Clifton <nickc@redhat.com>
15661 * config/mn10300/mn10300.c: Include cfgloop.h.
15663 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
15664 Lcc or a FLcc insn into the instruction stream.
15665 (mn10300_block_contains_call): New function. Returns true if the
15666 given basic block contains a CALL insn.
15667 (mn10300_loop_contains_call_insn): New function. Returns true if
15668 the given loop contains a CALL insn.
15669 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
15670 to use the SETLB and Lcc or FLcc insns.
15671 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
15672 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
15673 * config/mn10300/mn10300.opt (msetlb): New option. Used to
15674 disable the SETLB optimization.
15675 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
15676 __SETLB__ or __NO_SETLB__.
15677 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
15678 (movsf_internal): Handle MDR register.
15679 (cmpsi): Make visible.
15680 (setlb): New pattern.
15681 (Lcc): New pattern.
15682 (FLcc): New pattern.
15684 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
15687 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
15688 for reg<->xmm moves.
15689 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
15690 (vec_concatv2di_rex64_sse): Ditto.
15691 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
15692 (*vec_extractv2di_1_rex64): Ditto.
15695 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
15697 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
15699 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
15701 2011-05-04 Richard Guenther <rguenther@suse.de>
15703 * tree.h (int_const_binop): Remove notrunc argument.
15704 * fold-const.c (int_const_binop): Remove notrunc argument. Always
15705 create integer constants that are properly truncated.
15706 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
15707 (const_binop): Remove zero notrunc argument to int_const_binop.
15708 (size_binop_loc): Likewise.
15709 (fold_div_compare): Likewise.
15710 (maybe_canonicalize_comparison_1): Likewise.
15711 (fold_comparison): Likewise.
15712 (fold_binary_loc): Likewise.
15713 (multiple_of_p): Likewise.
15714 * expr.c (store_constructor): Likewise.
15715 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
15716 (maybe_fold_stmt_addition): Likewise.
15717 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
15718 * stor-layout.c (layout_type): Likewise.
15719 * tree-data-ref.c (tree_fold_divides_p): Likewise.
15720 * tree-sra.c (build_ref_for_offset): Likewise.
15721 (build_user_friendly_ref_for_offset): Likewise.
15722 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
15723 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
15724 * tree-ssa-loop-niter.c (inverse): Likewise.
15725 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
15726 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
15727 * tree-switch-conversion.c (check_range): Likewise.
15728 (build_constructors): Likewise.
15729 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
15730 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
15731 (extract_range_from_assert): Likewise.
15732 (vrp_int_const_binop): Likewise.
15733 (extract_range_from_binary_expr): Likewise.
15734 (extract_range_from_unary_expr): Likewise.
15735 (check_array_ref): Likewise.
15736 (find_case_label_range): Likewise.
15737 (simplify_div_or_mod_using_ranges): Likewise.
15738 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
15739 comparing case labels for merging.
15741 2011-05-03 Mark Wielaard <mjw@redhat.com>
15743 * dwarf2out.c (debug_str_hash_forced): Removed.
15744 (gen_label_for_indirect_string): Removed.
15745 (get_debug_string_label): Removed.
15746 (AT_string_form): Generate label directly.
15747 (output_indirect_string): Test indirect_string_node for
15748 DW_FORM_strp instead of checking label and refcount.
15749 (prune_indirect_string): Removed.
15750 (prune_unused_types): Don't check debug_str_hash_forced or
15751 call prune_indirect_string.
15753 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
15756 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
15758 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
15762 * combine.c (try_combine): Skip debug insns at m_split tests.
15764 2011-04-26 Mark Wielaard <mjw@redhat.com>
15767 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
15768 when info_section_emitted.
15770 2011-05-03 Joseph Myers <joseph@codesourcery.com>
15772 * config/mips/mips-opts.h: New.
15773 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
15775 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
15776 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
15777 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
15779 * config/mips/mips.h (enum mips_code_readable_setting): Move to
15781 (mips_abi, mips_code_readable): Don't declare.
15782 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
15783 (mabi=): Use Enum and Var.
15784 (mips_abi): New Enum and EnumValue entries.
15785 (mcode-readable=): Use Enum and Var.
15786 (mips_code_readable_setting): New Enum and EnumValue entries.
15787 (mr10k-cache-barrier=): Use Enum and Var.
15788 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
15790 2011-05-03 Jan Hubicka <jh@suse.cz>
15792 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
15793 replace hash by pointer map.
15794 (cgraph_node_set_element_def, cgraph_node_set_element,
15795 const_cgraph_node_set_element, varpool_node_set_element_def,
15796 varpool_node_set_element, const_varpool_node_set_element): Remove.
15797 (free_cgraph_node_set, free_varpool_node_set): New function.
15798 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
15799 * tree-emutls.c: Free varpool node set.
15800 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
15801 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
15802 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
15803 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
15804 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
15805 Move here from ipa.c; implement using pointer_map
15806 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
15807 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
15808 debug_cgraph_node_set, varpool_node_set_new,
15809 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
15810 dump_varpool_node_set, debug_varpool_node_set):
15811 Move to ipa-uitls.c.
15812 * passes.c (ipa_write_summaries): Update.
15814 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15816 From Mike Frysinger:
15817 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
15818 bf542/bf544/bf547/bf548/bf549.
15820 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
15822 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
15824 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15826 From Bernd Schmidt:
15827 * config/bfin/bfin.md (MOVCC): New mode_macro.
15828 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
15829 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
15830 comments from generated assembly.
15832 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15835 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
15836 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
15837 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
15838 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
15839 * config/bfin/lib1funcs.asm (___muldi3): New function.
15841 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15843 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
15844 build_function_type_list instead of build_function_type.
15845 Rearrange initialization of `args' to do so.
15847 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15849 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
15850 instead of build_function_type.
15852 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15854 * config/rs6000/rs6000.c (spe_init_builtins): Call
15855 build_function_type_list instead of build_function_type.
15856 (paired_init_builtins, altivec_init_builtins): Likewise.
15857 (builtin_function_type): Likewise.
15859 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15861 * config/sh/sh.c (sh_media_init_builtins): Call
15862 build_function_type_list instead of build_function_type.
15864 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15866 * config/sparc/sparc.c (sparc_file_end): Call
15867 build_function_type_list instead of build_function_type.
15869 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15871 * config/alpha/alpha.c (alpha_init_builtins): Call
15872 build_function_type_list instead of build_function_type.
15874 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15876 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
15877 build_function_type_list instead of build_function_type.
15879 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15881 * config/iq2000/i2000.c (iq2000_init_builtins): Call
15882 build_function_type_list instead of build_function_type.
15883 Delete `endlink' variable.
15885 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15887 * config/avr/avr.c (avr_init_builtins): Call
15888 build_function_type_list instead of build_function_type.
15890 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15892 * config/picochip/picochip.c (picochip_init_builtins): Call
15893 build_function_type_list instead of build_function_type.
15894 Delete `endlink' variable.
15896 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15898 * config/bfin/bfin.c (bfin_init_builtins): Call
15899 build_function_type_list instead of build_function_type.
15901 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15904 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
15905 that's not CONST_INT. Seemingly redundant check is due to PR39768.
15907 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15910 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
15911 libbffastfp overrides libgcc when -mfast-fp.
15913 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15915 Originally from Bernd Schmidt
15916 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
15917 * config/bfin/bfin.c (override_options): Test it and error if
15920 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15922 Originally From Bernd Schmidt
15923 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
15926 2011-05-03 Jeff Law <law@redhat.com>
15928 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
15929 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
15930 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
15931 than accessing AUX field directly. Free the AUX field before
15933 (thread_block, thread_through_loop_header): Likewise.
15934 (thread_single_edge, mark_threaded_blocks): Likewise.
15935 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
15936 (register_jump_thread): Do not attempt to thread to a NULL edge.
15938 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
15940 * function.c (init_function_start): Call decide_function_section.
15941 * varasm.c (decide_function_section): New function.
15942 (assemble_start_function): When not using
15943 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
15944 or first_function_block_is_cold.
15945 * rtl.h (decide_function_section): Declare.
15947 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
15948 Jakub Jelinek <jakub@redhat.com>
15951 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
15952 only succeed if req_mode is the same as set_mode.
15954 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
15956 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
15957 * genemit.c (gen_exp): Handle RETURN.
15958 * emit-rtl.c (verify_rtx_sharing): Likewise.
15959 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
15960 * rtl.c (copy_rtx): RETURN is shared.
15961 * rtl.h (enum global_rtl_index): Add GR_RETURN.
15963 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
15964 * config/s390/s390.c (s390_emit_epilogue): Likewise.
15965 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
15966 * config/cris/cris.c (cris_expand_return): Likewise.
15967 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
15968 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
15969 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
15970 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
15971 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
15973 * config/v850/v850.c (expand_epilogue): Likewise.
15974 * config/bfin/bfin.c (bfin_expand_call): Likewise.
15975 * config/arm/arm.md (epilogue): Likewise.
15976 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
15977 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
15978 variable to ret_reg.
15980 2011-05-03 Richard Guenther <rguenther@suse.de>
15983 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
15984 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
15985 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
15987 2011-05-03 Richard Guenther <rguenther@suse.de>
15989 * c-decl.c (grokdeclarator): Instead of looking at
15990 TREE_OVERFLOW check if the constant fits in the index type.
15992 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
15994 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
15995 (vec_store_lanes<mode><mode>): Likewise.
15997 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
15999 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
16000 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
16001 convert_optab_index values.
16002 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
16003 * genopinit.c (optabs): Initialize the new optabs.
16004 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
16005 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
16006 (expand_STORE_LANES): New functions.
16007 * tree.h (build_array_type_nelts): Declare.
16008 * tree.c (build_array_type_nelts): New function.
16009 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
16010 (vect_model_load_cost): Likewise.
16011 (vect_store_lanes_supported, vect_load_lanes_supported)
16012 (vect_record_strided_load_vectors): Declare.
16013 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
16014 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
16015 (vect_transform_strided_load): Split out statement recording into...
16016 (vect_record_strided_load_vectors): ...this new function.
16017 * tree-vect-stmts.c (create_vector_array, read_vector_array)
16018 (write_vector_array, create_array_ref): New functions.
16019 (vect_model_store_cost): Add store_lanes_p argument.
16020 (vect_model_load_cost): Add load_lanes_p argument.
16021 (vectorizable_store): Try to use store-lanes functions for
16022 interleaved stores.
16023 (vectorizable_load): Likewise load-lanes and loads.
16024 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
16025 to vect_model_store_cost.
16026 (vect_build_slp_tree): Likewise vect_model_load_cost.
16028 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
16030 * hooks.h (hook_bool_mode_uhwi_false): Declare.
16031 * hooks.c (hook_bool_mode_uhwi_false): New function.
16032 * target.def (array_mode_supported_p): New hook.
16033 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
16034 * doc/tm.texi: Regenerate.
16035 * stor-layout.c (mode_for_array): New function.
16036 (layout_type): Use it.
16037 * config/arm/arm.c (arm_array_mode_supported_p): New function.
16038 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
16040 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
16043 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
16044 for -fstack-check if the size to allocate is negative.
16046 2011-05-02 Lawrence Crowl <crowl@google.com>
16048 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
16049 (timevar_cond_start): New for starting a timer only when it is not
16051 (timevar_cond_stop): New for stopping a timer when it was not already
16054 * timevar.c (timevar_stop): Enable start/stop timers to start again.
16055 (timevar_cond_start): New as above.
16056 (timevar_cond_stop): New as above.
16058 * timevar.def: Add start/stop timers for compiler phases,
16059 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
16060 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
16061 and TV_PHASE_FINALIZE.
16062 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
16063 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
16064 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
16065 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
16066 Make unused TV_OVERLOAD into a start/stop timer.
16068 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
16069 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
16070 to indicate that they are start/stop timers.
16072 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
16073 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
16074 Move initialization to do_compile.
16075 (do_compile): Add initialization from above.
16076 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
16078 * c-decl.c (c_write_global_declarations): Add start/stop of
16079 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
16081 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
16082 or TV_PARSE_INLINE, as appropriate.
16083 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
16084 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
16086 2011-05-02 Jason Merrill <jason@redhat.com>
16089 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
16091 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
16094 * c-decl.c (finish_decl): Only create a composite if the types are
16097 2011-05-02 Joseph Myers <joseph@codesourcery.com>
16099 * config/fr30/fr30-protos.h (Mmode): Don't define.
16100 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
16101 definition where used.
16102 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
16103 define. Expand definitions where used.
16104 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
16105 Expand definitions where used.
16106 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
16107 rx_function_arg, rx_function_arg_advance,
16108 rx_function_arg_boundary): Expand definitions of those macros.
16109 * config/v850/v850-protos.h (Mmode): Don't define. Expand
16110 definition where used.
16112 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
16114 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
16116 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
16117 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
16118 with *movv2sf_internal_rex64_avx.
16119 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
16120 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
16121 Use %v prefix in insn mnemonic to handle TARGET_AVX.
16122 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
16123 "vex" in "prefix" attribute calculation.
16124 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
16126 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
16129 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
16130 inputs match the output.
16132 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
16135 * config/m68k/m68k.c (m68k_expand_prologue): Set
16136 current_function_static_stack_size.
16138 2011-05-02 Jan Hubicka <jh@suse.cz>
16140 * lto-streamer.c (lto_streamer_cache_insert_1,
16141 lto_streamer_cache_lookup, lto_streamer_cache_create,
16142 lto_streamer_cache_delete): Use pointer map instead of hashtable.
16143 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
16145 2011-05-02 Joseph Myers <joseph@codesourcery.com>
16147 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
16148 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
16149 config/m68k/t-opts: New files.
16150 * config/m68k/m68k-tables.opt: New file (generated).
16151 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
16152 extra_options and m68k/t-opts to tmake_file.
16153 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
16154 (all_isas): Initialize using m68k-isas.def.
16155 (all_microarchs): Initialize using m68k-microarchs.def.
16156 (m68k_find_selection): Remove.
16157 (m68k_handle_option): Don't assert that global structures are in
16158 use. Use error_at. Access variables via opts pointer. Don't
16159 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
16160 directly for -m68020-40 and -m68020-60.
16161 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
16162 m68k_tune_entry here.
16163 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
16165 (m68k_library_id_string): Remove declaration.
16166 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
16167 (m68k_library_id_string): New Variable.
16168 (march=, mcpu=, mtune=): Use Enum and Var.
16170 2011-05-02 Richard Guenther <rguenther@suse.de>
16172 * varasm.c (output_constructor_regular_field): Compute zero-based
16173 index with double-ints. Make sure to ICE instead of producing
16175 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
16176 in asserts. Properly use a signed type.
16178 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
16180 * config/i386/sse.md (V): New mode iterator.
16181 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
16183 (V_256): Rename from AVX256MODE.
16184 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
16185 condition to all users.
16187 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
16188 condition to all users.
16189 (VF_128): Make V4SF mode unconditional.
16190 (VF_256): Rename from AVX256MODEF2P.
16191 (VI4F_128): Rename from SSEMODE4S.
16192 (VI8F_128): Rename from SSEMODE2D.
16193 (VI4F_256): Rename from AVX256MODE8P.
16194 (VI8F_256): Rename from AVX256MODE4P.
16195 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
16196 (ssescalarmodesuffix): Remove SF and DF modes.
16197 (SSEMODE124): Remove.
16198 (SSEMODE1248): Ditto.
16199 (SSEMODEF2P): Ditto.
16200 (AVXMODEF2P): Ditto.
16201 (AVXMODEFDP): Ditto.
16202 (AVXMODEFSP): Ditto.
16203 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
16205 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
16207 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
16208 xop_pcmov_<mode>256. Use V mode iterator.
16210 Adjust RTX patterns globally for renamed mode attributes.
16212 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16214 * haifa-sched.c (sched_emit_insn): Emit insn before first
16215 non-scheduled insn. Inform back-end about new insn. Add
16216 new insn to scheduled_insns list.
16218 2011-05-02 Richard Guenther <rguenther@suse.de>
16220 PR tree-optimization/48822
16221 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
16222 (process_scc): Indicate which iteration we start.
16224 2011-05-02 Jan Hubicka <jh@suse.cz>
16226 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
16227 (lto_section_overrun): New.
16228 * lto-section-out.c (append_block): Rename to ...
16229 (lto_append_block): ... this one; export.
16230 (lto_output_1_stream): Move lto lto-streamer.h
16231 (lto_output_data_stream): Update.
16232 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
16233 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
16236 2011-05-02 Richard Guenther <rguenther@suse.de>
16238 * tree.c (tree_code_counts): New global array.
16239 (record_node_allocation_statistics): Count individual tree codes.
16240 (dump_tree_statistics): Dump individual code stats.
16242 2011-05-01 Jan Hubicka <jh@suse.cz>
16244 * ipa-inline.c (caller_growth_limits): Fix thinko when
16245 looking for largest stack frame.
16246 * ipa-inline.h (dump_inline_summary): Declare.
16247 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
16249 (dump_inline_summary): Export.
16250 (debug_inline_summary): Declare as DEBUG_FUNCTION.
16252 2011-05-01 Anatoly Sokolov <aesok@post.ru>
16254 * reginfo.c (memory_move_cost): Change rclass argument type form
16255 'enum reg_class' to reg_class_t.
16256 * reload.h (memory_move_cost): Update prototype.
16257 * postreload.c reload_cse_simplify_set): Change type dclass var to
16259 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
16261 (ira_allocate_and_set_costs): Change aclass argument type form
16262 'enum reg_class' to reg_class_t.
16263 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
16264 Change aclass argument type to reg_class_t.
16265 (update_conflict_hard_reg_costs): Change type aclass and pref vars
16267 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
16268 memory_move_cost call.
16270 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
16271 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
16272 Change type tmp var to reg_class_t.
16274 2011-04-30 Jan Hubicka <jh@suse.cz>
16276 * ipa-inline.c (can_inline_edge_p): Disregard limits when
16277 inlining into function with flatten attribute.
16278 (want_inline_small_function_p): Be more realistic about inlining
16279 cold calls where callee size grows.
16281 2011-04-30 Jan Hubicka <jh@suse.cz>
16283 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
16286 2011-04-30 Anatoly Sokolov <aesok@post.ru>
16288 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
16289 PRINT_OPERAND_PUNCT_VALID_P): Remove.
16290 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
16291 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
16292 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16293 (print_operand): Rename to...
16294 (sparc_print_operand): ...this. Make static. Adjust
16295 sparc_print_operand function call.
16296 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
16299 2011-04-30 Jan Hubicka <jh@suse.cz>
16301 PR middle-end/48752
16302 * ipa-inline.c (early_inliner): Disable when doing late
16303 addition of function.
16305 2011-04-30 Jakub Jelinek <jakub@redhat.com>
16307 * dwarf2out.c (get_address_mode): New inline.
16308 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
16309 if not dwarf_strict emit
16310 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
16311 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
16312 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
16313 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
16314 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
16315 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
16316 mem_loc_descriptor callers.
16317 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
16318 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
16319 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
16320 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
16321 (base_types): New variable.
16322 (get_base_type_offset, calc_base_type_die_sizes,
16323 base_type_for_mode, mark_base_types, base_type_cmp,
16324 move_marked_base_types): New functions.
16325 (calc_die_sizes): Assert that die_offset is 0 or equal to
16327 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
16328 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
16329 callers. If not dwarf_strict, call mem_loc_descriptor even for
16330 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
16331 (gen_subprogram_die): Don't give up on call site parameters
16332 with non-integral or large integral modes. Adjust
16333 mem_loc_descriptor callers.
16334 (prune_unused_types): Call prune_unused_types_mark on base_types
16336 (resolve_addr): Call mark_base_types.
16337 (dwarf2out_finish): Call move_marked_base_types.
16339 PR tree-optimization/48809
16340 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
16342 (gen_inbound_check): Don't compute index_expr - range_min in utype
16343 again, instead reuse SSA_NAME initialized in build_arrays.
16344 Remove two useless gsi_for_stmt calls.
16346 2011-04-29 Jeff Law <law@redhat.com>
16348 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
16350 2011-04-29 Martin Jambor <mjambor@suse.cz>
16352 * cgraph.h (cgraph_postorder): Remove declaration.
16353 * ipa-utils.h (ipa_free_postorder_info): Declare.
16354 (ipa_reverse_postorder): Likewise.
16355 * cgraphunit.c: Include ipa-utils.h.
16356 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
16357 * ipa-inline.c: Include ipa-utils.h.
16358 (ipa_inline): Update call to ipa_reverse_postorder.
16359 * ipa-pure-const.c (propagate_pure_const): Update call to
16360 ipa_reduced_postorder and ipa_print_order. Call
16361 ipa_free_postorder_info to clean up.
16362 (propagate_nothrow): Likewise.
16363 * ipa-reference.c (propagate): Removed a useless call to
16364 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
16365 and ipa_print_order. Call ipa_free_postorder_info to clean up.
16366 * ipa.c: Include ipa-utils.h.
16367 (ipa_profile): Update call to ipa_reverse_postorder.
16368 (cgraph_postorder): Moved to...
16369 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
16370 (ipa_utils_print_order): Renamed to ipa_print_order.
16371 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
16373 (ipa_free_postorder_info): New function.
16374 * passes.c: Include ipa-utils.h.
16375 (do_per_function_toporder): Update call to ipa_reverse_postorder.
16376 (ipa_write_summaries): Likewise.
16377 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
16378 (cgraphunit.o): Likewise.
16380 (ipa-inline.o): Likewise.
16382 2011-04-29 Jan Hubicka <jh@suse.cz>
16384 * gcc.dg/tree-ssa/inline-10.c: New testcase.
16385 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
16386 * ipa-inline.h (clause_t): Turn into unsigned int.
16387 * ipa-inline-analysis.c (add_clause): Do more simplification.
16388 (and_predicates): Shortcut more cases.
16389 (predicates_equal_p): Move forward; check that clauses are properly
16391 (or_predicates): Shortcut more cases.
16392 (edge_execution_predicate): Rewrite as...
16393 (set_cond_stmt_execution_predicate): ... this function; handle
16394 __builtin_constant_p.
16395 (set_switch_stmt_execution_predicate): New .
16396 (compute_bb_predicates): New.
16397 (will_be_nonconstant_predicate): Update TODO.
16398 (estimate_function_body_sizes): Use compute_bb_predicates
16399 and free them later, always try to estimate if stmt is constant.
16400 (estimate_time_after_inlining, estimate_size_after_inlining):
16401 Gracefully handle optimized out edges.
16402 (read_predicate): Fix off by one error.
16404 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
16406 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
16408 2011-04-27 Xinliang David Li <davidxl@google.com>
16410 * tree-profile.c (init_ic_make_global_vars): Set
16411 tls attribute on ic vars.
16412 * coverage.c (coverage_end_function): Initialize
16413 function_list with zero.
16415 2011-04-29 Richard Guenther <rguenther@suse.de>
16417 * builtins.c (fold_builtin_classify_type): Use integer_type_node
16418 for the type of the result.
16419 (fold_builtin_isascii): Likewise.
16420 (fold_builtin_toascii): Use integer_type_node where appropriate.
16421 (fold_builtin_logb): Likewise.
16422 (fold_builtin_frexp): Likewise.
16423 (fold_builtin_strstr): Likewise.
16424 (fold_builtin_strpbrk): Likewise.
16425 (fold_builtin_fputs): Likewise.
16426 (fold_builtin_sprintf): Likewise.
16427 (fold_builtin_snprintf): Likewise.
16428 (fold_builtin_printf): Likewise.
16429 (do_mpfr_remquo): Use a proper type for the assigned constant.
16430 (do_mpfr_lgamma_r): Likewise.
16431 * dwarf2out.c (resolve_one_addr): Use size_int.
16432 * except.c (init_eh): Likewise.
16433 (assign_filter_values): Use integer_type_node for filter values.
16434 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
16436 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
16437 for EH region numbers.
16438 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
16439 for the shift amount.
16441 2011-04-29 Richard Guenther <rguenther@suse.de>
16443 * expr.h (expand_shift): Rename to ...
16444 (expand_variable_shift): ... this.
16445 (expand_shift): Take a constant shift amount.
16446 * expmed.c (expand_shift): Rename to ...
16447 (expand_variable_shift): ... this.
16448 (expand_shift): New wrapper around expand_variable_shift.
16449 * expr.c (convert_move, emit_group_load_1, emit_group_store,
16450 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
16451 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
16452 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
16453 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
16454 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
16455 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
16456 emit_store_flag_1, emit_store_flag): Likewise.
16457 * builtins.c (expand_builtin_signbit): Likewise.
16458 * calls.c (load_register_parameters): Likewise.
16459 * function.c (assign_parm_setup_block): Likewise.
16460 * lower-subreg.c (resolve_shift_zext): Likewise.
16461 * optabs.c (widen_bswap, expand_abs_nojump,
16462 expand_one_cmpl_abs_nojump, expand_float): Likewise.
16463 * spu/spu.c (spu_expand_extv): Likewise.
16464 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
16466 2011-04-29 Richard Guenther <rguenther@suse.de>
16468 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
16469 for the remapped region number.
16470 * predict.c (build_predict_expr): Use integer_type_node for the
16472 * fold-const.c (fold_binary_loc): Use integer_type_node for
16473 the shift amount. Use a proper type for the PLUS_EXPR operand.
16475 2011-04-29 Michael Matz <matz@suse.de>
16477 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
16478 other trees that just builtins.
16479 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
16481 2011-04-29 Richard Guenther <rguenther@suse.de>
16483 * tree-nested.c (get_trampoline_type): Use size_int.
16484 (get_nl_goto_field): Likewise.
16485 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
16487 (lower_eh_constructs_2): Likewise.
16488 (lower_resx): Likewise.
16489 (lower_eh_dispatch): Likewise.
16490 * tree-mudflap.c (mf_build_string): Use size_int.
16491 (mudflap_register_call): Use integer_type_node for the flag.
16492 (mudflap_enqueue_constant): Use size_int.
16493 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
16494 instead of rebuilding it.
16496 2011-04-29 Richard Guenther <rguenther@suse.de>
16498 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
16499 Handle OBJ_TYPE_REF.
16500 (find_func_aliases_for_call): Use it more consistently.
16502 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
16504 * haifa-sched.c (last_nondebug_scheduled_insn): New.
16505 (rank_for_schedule): Use it.
16506 (schedule_block): Set it.
16508 2011-04-28 David Li <davidxl@google.com>
16510 * tree.c (crc32_string): Use crc32_byte.
16511 (crc32_byte): New function.
16512 * tree.h (crc32_byte): New function.
16513 * gcov.c (read_graph_file): Handle new cfg_cksum.
16514 (read_count_file): Ditto.
16515 * profile.c (instrument_values): Ditto.
16516 (get_exec_counts): Ditto.
16517 (read_profile_edge_counts): Ditto.
16518 (compute_branch_probabilities): Ditto.
16519 (compute_value_histograms): Ditto.
16520 (branch_prob): Ditto.
16521 (end_branch_prob): Ditto.
16522 * coverage.c (read_counts_file): Ditto.
16523 (get_coverage_counts): Ditto.
16524 (tree_coverage_counter_addr): Ditto.
16525 (coverage_checksum_string): Ditto.
16526 (coverage_begin_output): Ditto.
16527 (coverage_end_function): Ditto.
16528 (build_fn_info_type): Ditto.
16529 (build_fn_info_value): Ditto.
16530 * libgcov.c (gcov_exit): Ditto.
16531 * gcov-dump.c (tag_function): Ditto.
16532 (compute_checksum): Remove.
16534 2011-04-29 Alan Modra <amodra@gmail.com>
16536 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16537 unspec plus offset. Tidy macho code.
16539 2011-04-29 Martin Jambor <mjambor@suse.cz>
16541 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
16542 node instead of a decl. Update all callers.
16543 * cgraph.h: Update declaration.
16545 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
16547 PR tree-optimization/48765
16548 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
16549 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
16550 to indicate if loop aware SLP is being used. Scan the statements
16551 and update the vectorization factor according to the type of
16552 vectorization before statement analysis.
16553 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
16554 pass it to vect_analyze_loop_operations.
16555 (vectorizable_reduction): Set number of copies to 1 in case of pure
16557 * tree-vect-stmts.c (vectorizable_conversion,
16558 vectorizable_assignment, vectorizable_shift,
16559 vectorizable_operation, vectorizable_type_demotion,
16560 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
16562 (vectorizable_condition): Move the check that it is not SLP
16563 vectorization before the number of copies check.
16564 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
16565 to vectorize the loop using SLP.
16567 2011-04-28 Jakub Jelinek <jakub@redhat.com>
16569 PR middle-end/48597
16570 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
16573 2011-04-28 Joseph Myers <joseph@codesourcery.com>
16575 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
16576 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
16577 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16578 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16579 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
16581 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
16582 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16583 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16584 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16585 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16586 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
16588 * config/i386/linux.h (REG_NAME): Don't define.
16589 * config/i386/linux64.h (REG_NAME): Don't define.
16590 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
16591 Undefine before defining.
16593 2011-04-28 Jan Hubicka <jh@suse.cz>
16595 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
16596 nonconstant_names array.
16597 (estimate_function_body_sizes): Build nonconstant_names array; handle
16598 BUILT_IN_CONSTANT_P.
16600 2011-04-28 Richard Guenther <rguenther@suse.de>
16604 2011-04-28 Richard Guenther <rguenther@suse.de>
16606 * tree-ssa-structalias.c (solve_constraints): Build succ graph
16607 as late as possible.
16609 2011-04-28 Richard Guenther <rguenther@suse.de>
16611 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
16612 (debug_constraint): Do it here.
16613 (dump_constraints): And here.
16614 (rewrite_constraints): And here.
16615 (dump_constraint_edge): Remove.
16616 (dump_constraint_graph): Rewrite to produce DOT output.
16617 (solve_constraints): Build succ graph as late as possible.
16618 Dump constraint graphs before and after solving.
16620 2011-04-28 Richard Guenther <rguenther@suse.de>
16622 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16623 New function split out from ...
16624 (find_func_aliases): ... here. Call it.
16625 (find_func_aliases_for_call): Likewise.
16627 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
16629 * internal-fn.h (internal_fn_name_array): Declare.
16630 (internal_fn_flags_array): Likewise.
16632 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
16634 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
16635 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
16637 (ssemodefsuffix): Remove.
16638 (ssevecmodesuffix): New mode attribute.
16639 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
16640 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
16641 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
16642 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
16643 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
16644 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
16645 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
16646 ssemodesuffix mode attribute.
16647 (float splitters): Use ssevecmodesuffix mode attribute.
16648 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
16649 (sseinsmode): Rename from avxvecmode.
16650 (avxsizesuffix): Rename from avxmodesuffix.
16651 (sseintvecmode): Rename from avxpermvecmode.
16652 (ssedoublevecmode): Rename from ssedoublesizemode.
16653 (ssehalfvecmode): Rename from avxhalfvecmode.
16654 (ssescalarmode): Rename from avxscalarmode.
16655 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
16656 templates for ssemodesuffix mode attribute.
16657 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
16660 Adjust RTX patterns globally for renamed mode attributes.
16662 2011-04-27 Jan Hubcika <jh@suse.cz>
16664 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
16665 * ipa-inline-analysis.c: Include alloc-pool.h.
16666 (edge_predicate_pool): New.
16667 (trye_predicate_p): New function
16668 (false_predicate_p): New function.
16669 (add_clause): Sanity check that false clauses are "optimized";
16670 never add clauses to predicate that is already known to be false.
16671 (and_predicate): Use flase_predicate_p.
16672 (evaulate_predicate): Rename to ...
16673 (evaluate_predicate): ... this one; update all callers; assert
16674 that false is not listed among possible truths.
16675 (dump_predicate): Use true_predicate_p.
16676 (account_size_time): Use false_predicate_p.
16677 (evaulate_conditions_for_edge): Rename to ...
16678 (evaluate_conditions_for_edge) ... this one.
16679 (edge_set_predicate): New function.
16680 (inline_edge_duplication_hook): Duplicate edge predicates.
16681 (inline_edge_removal_hook): Free edge predicates.
16682 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
16683 (dump_inline_summary): Update.
16684 (estimate_function_body_sizes): Set edge predicates.
16685 (estimate_calls_size_and_time): Handle predicates.
16686 (estimate_callee_size_and_time): Update.
16687 (remap_predicate): Add toplev_predicate; update comment.
16688 (remap_edge_predicates): New function.
16689 (inline_merge_summary): Compute toplev predicate; update.
16690 (read_predicate): New function.
16691 (read_inline_edge_summary): Use it.
16692 (inline_read_section): Likewise.
16693 (write_predicate): New function.
16694 (write_inline_edge_summary): Use it.
16695 (inline_write_summary): Likewise.
16696 (inline_free_summary): Free alloc pool and edge summary vec.
16698 2011-04-27 Richard Guenther <rguenther@suse.de>
16700 * tree-ssa-structalias.c (changed_count): Remove.
16701 (changed): Use a bitmap.
16702 (unify_nodes): Adjust.
16703 (do_sd_constraint): Likewise.
16704 (do_ds_constraint): Likewise.
16705 (do_complex_constraint): Likewise.
16706 (solve_graph): Likewise.
16708 2011-04-27 Jan Hubicka <jh@suse.cz>
16710 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
16712 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
16714 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
16715 (avx_vperm2f128_*_operand): Ditto.
16716 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
16717 Use avx_vpermilp_parallel in insn condition.
16718 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
16719 Use avx_vperm2f128_parallel in insn condition.
16721 2011-04-27 Richard Guenther <rguenther@suse.de>
16723 * Makefile.in (tree-ssa-structalias.o): Remove
16724 gt-tree-ssa-structalias.h dependency.
16725 (GTFILES): Remove tree-ssa-structalias.c.
16726 * tree.c (allocate_decl_uid): New function.
16727 (make_node_stat): Use it.
16728 (copy_node_stat): Likewise.
16729 * tree.h (allocate_decl_uid): Declare.
16730 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
16731 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
16732 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
16733 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
16734 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
16735 (struct heapvar_map): Likewise.
16736 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
16737 heapvar_insert): Likewise.
16738 (make_heapvar_for): Rename to ...
16739 (make_heapvar): ... this. Simplify.
16740 (fake_var_decl_obstack): New global var.
16741 (build_fake_var_decl): New function.
16742 (make_constraint_from_heapvar): Adjust.
16743 (handle_lhs_call): Likewise.
16744 (create_function_info_for): Likewise.
16745 (intra_create_variable_infos): Likewise.
16746 (init_alias_vars): Allocate fake_var_decl_obstack.
16747 (init_alias_heapvars, delete_alias_heapvars): Remove.
16748 (compute_points_to_sets): Do not call init_alias_heapvars.
16749 (ipa_pta_execute): Likewise.
16750 (delete_points_to_sets): Free fake_var_decl_obstack.
16752 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16754 * config/spu/divmovti4.c (union qword_UTItype): New data type.
16755 (si_from_UTItype, si_to_UTItype): New functions.
16756 (__udivmodti4): Use them to implement type-punning.
16757 * config/spu/multi3.c (union qword_TItype): New data type.
16758 (si_from_TItype, si_to_TItype): New functions.
16759 (__multi3): Use them to implement type-punning.
16761 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16763 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
16765 2011-04-27 Jan Hubicka <jh@suse.cz>
16767 * ipa-prop.c (function_insertion_hook_holder): New holder.
16768 (ipa_add_new_function): New function.
16769 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
16770 Register/deregister holder.
16772 2011-04-27 Richard Guenther <rguenther@suse.de>
16774 PR tree-optimization/48772
16775 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
16777 2011-04-27 Richard Guenther <rguenther@suse.de>
16779 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
16780 TARGET_MEM_REF handling.
16782 2011-04-27 Nick Clifton <nickc@redhat.com>
16784 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
16785 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
16786 (REG_CLASS_NAMES): Likewise.
16787 (REG_CLASS_CONTENTS): Likewise.
16788 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
16789 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
16790 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
16791 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
16792 (EVEN_REGS): New macro. Alias for QUAD_REGS.
16793 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
16794 duplicate register classes.
16795 (frv_class_likely_spilled_p): Likewise.
16796 (frv_register_move_cost): Likewise.
16798 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
16799 end of the regno_reg_class array.
16801 2011-04-27 Jakub Jelinek <jakub@redhat.com>
16804 * c-typeck.c (build_binary_op): Don't wrap arguments if
16805 int_operands is true.
16807 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
16810 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
16811 targetm.calls.must_pass_in_stack for void type.
16813 2011-04-26 Jan Hubicka <jh@suse.cz>
16815 * cgraphbuild.c (build_cgraph_edges): Update call
16816 of cgraph_create_edge and cgraph_create_indirect_edge.
16817 * cgraph.c (cgraph_create_edge_including_clones,
16818 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
16819 cgraph_update_edges_for_call_stmt_node): Do not take nest
16820 argument; do not initialize call_stmt_size/time.
16821 (dump_cgraph_node): Do not dump nest.
16822 (cgraph_clone_edge): Do not take loop_nest argument;
16823 do not propagate it; do not clone call_stmt_size/time.
16824 (cgraph_clone_node): Likewise.
16825 (cgraph_create_virtual_clone): Update.
16826 * cgraph.h (struct cgraph_edge): Remove
16827 call_stmt_size/call_stmt_time/loop_nest.
16828 (cgraph_create_edge, cgraph_create_indirect_edge,
16829 cgraph_create_edge_including_clones, cgraph_clone_node): Update
16831 * tree-emutls.c (gen_emutls_addr): Update.
16832 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
16833 loop_nest; handle indirect calls, too.
16834 (clone_inlined_nodes): Do not care about updating inline summaries.
16835 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
16836 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
16837 stream call_stmt_size/call_stmt_time/loop_nest.
16838 * ipa-inline.c (edge_badness): Update.
16839 (ipa_inline): dump summaries after inlining.
16840 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
16842 (inline_edge_summary): New function.
16843 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
16844 (inline_edge_removal_hook): Handle edge summaries.
16845 (inline_edge_duplication_hook): New hook.
16846 (inline_summary_alloc): Alloc hooks.
16847 (initialize_growth_caches): Do not register removal hooks.
16848 (free_growth_caches); Do not free removal hook.
16849 (dump_inline_edge_summary): New function.
16850 (dump_inline_summary): Use it.
16851 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
16852 (inline_update_callee_summaries): New function.
16853 (inline_merge_summary): Use it.
16854 (do_estimate_edge_time, do_estimate_edge_growth): Update.
16855 (read_inline_edge_summary): New function.
16856 (inline_read_section): Use it.
16857 (write_inline_edge_summary): New function.
16858 (inline_write_summary): Use it.
16859 (inline_free_summary): Free edge new holders.
16860 * tree-inline.c (copy_bb): Update.
16862 2011-04-26 Jason Merrill <jason@redhat.com>
16864 * tree-eh.c (lower_try_finally_switch): Create the label along with
16865 the CASE_LABEL_EXPR.
16867 2011-04-26 David S. Miller <davem@davemloft.net>
16868 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16870 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
16871 * configure: Regenerate.
16873 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16876 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
16878 (VEC_reduc): New code iterator and splitters for vector reduction.
16879 (VEC_reduc_name): Ditto.
16880 (VEC_reduc_rtx): Ditto.
16881 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
16882 (reduc_<VEC_reduc_name>_v4sf): Ditto.
16884 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
16885 support for extracting SF on VSX.
16887 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
16888 generating xscvspdp.
16889 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
16890 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
16891 double add, minimum, maximum vector reduction.
16892 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
16893 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
16894 optimize double vector reduction.
16895 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
16897 2011-04-26 Joseph Myers <joseph@codesourcery.com>
16899 * config/fr30/fr30.h (inhibit_libc): Don't define.
16900 * config/m32r/m32r-protos.h: Correct comment.
16901 * config/v850/v850.h (GHS_default_section_names,
16902 GHS_current_section_names): Use tree, not union tree_node *.
16904 2011-04-26 Xinliang David Li <davidxl@google.com>
16906 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
16907 * c-family/c-opts.c (c_common_handle_option): Set
16908 warn_maybe_uninitialized.
16909 * opts.c (common_handle_option): Ditto.
16910 * common.opt: New option.
16911 * tree-ssa.c (warn_uninit): Add one more parameter.
16912 (warn_uninitialized_var): Pass warning code.
16913 * tree-flow.h: Interface change.
16915 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16917 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
16918 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
16919 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
16921 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16923 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
16924 * config/mips/mips.opt (mmips-tfile): Remove.
16926 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
16927 mips-tdump reference to ...
16928 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
16929 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
16930 reference by Tru64 UNIX.
16932 2011-04-26 Jakub Jelinek <jakub@redhat.com>
16935 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
16936 is error_mark_node, set value to NULL.
16938 PR tree-optimization/48734
16939 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
16940 if return value from maybe_fold_*_comparsions isn't something
16941 the code is prepared to handle.
16943 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
16945 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
16947 (ext_QIreg_nomode_operands): Remove.
16948 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
16952 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
16954 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
16956 2011-04-26 Richard Guenther <rguenther@suse.de>
16958 * c-typeck.c (build_unary_op): Do not expand array-refs via
16959 pointer arithmetic. Only adjust qualifiers for function types.
16961 2011-04-26 Richard Guenther <rguenther@suse.de>
16963 PR middle-end/48694
16964 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
16965 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
16966 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
16967 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
16969 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
16971 * doc/extend.texi: Document __underlying_type.
16973 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
16975 * config/rs6000/titan.md (automata_option "progress"): Remove.
16977 2011-04-25 Jeff Law <law@redhat.com>
16979 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
16981 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16983 * system.h (ENUM_BITFIELD): Remove.
16985 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
16986 Eric Botcazou <ebotcazou@adacore.com>
16988 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
16989 for STORE_FLAG_VALUE==-1 case.
16991 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
16994 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
16995 LEGITIMATE_PIC_OPERAND_P.
16997 2011-04-24 Jan Hubicka <jh@suse.cz>
16999 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
17001 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
17002 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
17003 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
17004 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
17005 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
17006 Sanity check predicate length.
17007 (remap_predicate): Likewise; sanity check jump functions.
17008 (inline_read_section, inline_write_summary): Sanity check
17011 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
17014 * doc/extend.texi (Type Traits): Document __is_standard_layout,
17015 __is_literal_type, and __is_trivial; update throughout about
17016 possibly cv-qualified void types.
17018 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
17020 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
17021 testsuite and make it version agnostic.
17023 2011-04-22 Jan Hubicka <jh@suse.cz>
17025 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
17027 2011-04-23 Jakub Jelinek <jakub@redhat.com>
17030 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
17031 to VOID_TYPE even around MODIFY_EXPR.
17033 2011-04-22 Mike Stump <mikestump@comcast.net>
17035 * gensupport.c (read_md_rtx): Fix typo in comment.
17036 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
17039 2011-04-22 Jan Hubicka <jh@suse.cz>
17041 * gengtype.c (open_base_files): Add ipa-inline.h include.
17042 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
17043 ipa-prop.c; update all uses.
17044 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
17045 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
17046 merge summary of inlined function into former caller.
17047 * ipa-inline.c (max_benefit): Remove.
17048 (edge_badness): Compensate for removal of benefits.
17049 (update_caller_keys): Use
17050 reset_node_growth_cache/reset_edge_growth_cache.
17051 (update_callee_keys): Likewise.
17052 (update_all_callee_keys): Likewise.
17053 (inline_small_functions): Do not collect max_benefit; do not reset
17054 estimated_growth; call free_growth_caches and initialize_growth_caches.
17055 * ipa-inline.h (struct condition, type clause_t, struct predicate,
17056 struct size_time_entry): New structures.
17057 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
17058 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
17059 and estimated_growth.
17060 (edge_growth_cache_entry): New structure.
17061 (node_growth_cache, edge_growth_cache): New global vars.
17062 (estimate_growth): Turn into inline.
17063 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
17064 initialize_growth_caches, free_growth_caches): Declare.
17065 (estimate_edge_growth): Rewrite.
17066 (estimate_edge_time): Implement as inline cache lookup.
17067 (reset_node_growth_cache, reset_edge_growth_cache): New inline
17069 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
17070 (NUM_CONDITIONS): New constant.
17071 (predicate_conditions): New enum.
17072 (IS_NOT_CONSTANT): New constant.
17073 (edge_removal_hook_holder): New var.
17074 (node_growth_cache, edge_growth_cache): New global vars.
17075 (true_predicate, single_cond_predicate, false_predicate,
17076 not_inlined_predicate, add_condition, add_clause, and_predicates,
17077 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
17078 dump_clause, dump_predicate, account_size_time,
17079 evaulate_conditions_for_edge): New functions.
17080 (inline_summary_alloc): Move to heap.
17081 (inline_node_removal_hook): Clear condition and entry vectors.
17082 (inline_edge_removal_hook): New function.
17083 (initialize_growth_caches, free_growth_caches): New function.
17084 (dump_inline_summary): Update.
17085 (edge_execution_predicate): New function.
17086 (will_be_nonconstant_predicate): New function.
17087 (estimate_function_body_sizes): Compute BB and constantness predicates.
17088 (compute_inline_parameters): Do not clear estimated_growth.
17089 (estimate_edge_size_and_time): New function.
17090 (estimate_calls_size_and_time): New function.
17091 (estimate_callee_size_and_time): New function.
17092 (remap_predicate): New function.
17093 (inline_merge_summary): New function.
17094 (do_estimate_edge_time): New function based on...
17095 (estimate_edge_time): ... this one.
17096 (do_estimate_edge_growth): New function.
17097 (do_estimate_growth): New function based on....
17098 (estimate_growth): ... this one.
17099 (inline_analyze_function): Analyze after deciding on jump functions.
17100 (inline_read_section): New function.
17101 (inline_read_summary): Use it.
17102 (inline_write_summary): Write all the new data.
17103 * ipa-prop.c (ipa_get_param_decl_index): Export.
17104 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
17105 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
17107 (ipa_get_lattice): Move here from ipa-cp.c
17108 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
17109 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
17110 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
17111 cgraph_edge_inlinable_p): Remove.
17112 * cgraphunit.c: Include ipainline.h
17113 (cgraph_process_new_functions): Update call of
17114 compute_inline_parameters.
17116 2011-04-22 Richard Guenther <rguenther@suse.de>
17118 * tree.c (build_int_cst): Properly create canonicalized integer
17120 (build_int_cst_type): Remove scary comments.
17122 2011-04-22 Xinliang David Li <davidxl@google.com>
17124 * toplev.c (process_options): Enable -Werror=coverage-mismatch
17125 by default when -Wno-error is not specified.
17126 * opts-global.c (decode_options): Remove call to
17127 control_warning_options.
17129 2011-04-22 Jakub Jelinek <jakub@redhat.com>
17131 PR tree-optimization/48717
17132 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
17133 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
17135 2011-04-22 Joseph Myers <joseph@codesourcery.com>
17137 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
17138 definition where used.
17140 2011-04-22 Jakub Jelinek <jakub@redhat.com>
17143 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
17144 TREE_STATIC variables declared inside of some OpenMP construct.
17146 2011-04-22 Martin Jambor <mjambor@suse.cz>
17148 PR middle-end/48585
17149 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
17151 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
17154 * c-typeck.c (pop_init_level): Do not warn about initializing
17157 2011-04-22 Alan Modra <amodra@gmail.com>
17159 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
17160 when returning call_cookie.
17161 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
17162 pointers, to functions with no more vector args than the current
17163 function, and some non-local calls for ABI_V4.
17164 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
17165 sibcall_nonlocal_aix64): Combine to ..
17166 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
17167 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
17168 (sibcall_value_nonlocal_aix<mode>): ..likewise.
17169 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
17170 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
17172 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
17173 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
17174 sibcall_value_symbolic_64): Delete.
17176 2011-04-21 Xinliang David Li <davidxl@google.com>
17178 * cgraph.h: Remove pid.
17179 * cgraph.c: Remove pid.
17180 * value-prof.c (init_node_map): New function.
17181 (del_node_map): New function.
17182 (find_func_by_funcdef_no): New function.
17183 (gimple_ic_transform): Call new function.
17184 * cgraphunit.c (cgraph_finalize_function): Remove pid.
17185 * function.c (get_last_funcdef_no): New function.
17186 * function.h (get_last_funcdef_no): New function.
17187 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
17188 to libgcov function.
17189 (tree-profiling): Call node map init and delete function.
17191 2011-04-21 Ian Lance Taylor <iant@google.com>
17193 * godump.c (go_format_type): Use exported Go name for anonymous
17196 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
17198 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
17199 Call builtin_function_type_list instead of builtin_function_type.
17200 (UNARY, BINARY, TRINARY, QUAD): Likewise.
17202 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
17204 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
17205 build_function_type_list instead of build_function_type.
17206 Delete variable `endlink'.
17208 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
17210 * config/s390/s390.c (s390_init_builtins): Call
17211 build_function_type_list instead of build_function_type.
17213 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
17215 * config/ia64/ia64.c (ia64_init_builtins): Call
17216 build_function_type_list instead of builtin_function_type.
17218 2011-04-21 Easwaran Raman <eraman@google.com>
17220 * cfgexpand.c (stack_var): Remove OFFSET...
17221 (add_stack_var): ...and its reference here...
17222 (expand_stack_vars): ...and here.
17223 (stack_var_cmp): Sort by descending order of size.
17224 (partition_stack_vars): Change heuristic.
17225 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
17226 (dump_stack_var_partition): Add newline after each partition.
17228 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
17229 Jeff Law <law@redhat.com>
17231 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
17232 * gengtype.c (matching_file_name_substitute): Likewise.
17234 2011-04-21 Richard Guenther <rguenther@suse.de>
17237 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
17239 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
17241 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
17243 2011-04-21 Richard Guenther <rguenther@suse.de>
17245 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
17248 2011-04-21 Richard Guenther <rguenther@suse.de>
17250 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
17251 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
17252 Use DECL_P, not SSA_VAR_P.
17253 (ptr_derefs_may_alias_p): Likewise.
17254 (ptr_deref_may_alias_ref_p_1): Likewise.
17255 (decl_refs_may_alias_p): Likewise.
17256 (refs_may_alias_p_1): Likewise.
17257 (ref_maybe_used_by_call_p_1): Likewise.
17258 (call_may_clobber_ref_p_1): Likewise.
17259 (indirect_ref_may_alias_decl_p): Assume indirect refrences
17260 are either MEM_REF or TARGET_MEM_REF.
17261 (indirect_refs_may_alias_p): Likewise.
17262 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
17263 for MEM_EXPR of indirect calls.
17265 2011-04-21 Tristan Gingold <gingold@adacore.com>
17267 * vmsdbgout.c (write_srccorr): Compute file length from the string.
17268 (dst_file_info_struct): Remove flen field.
17269 (lookup_filename): Remove code that set flen field.
17271 2011-04-21 Tristan Gingold <gingold@adacore.com>
17273 * config/ia64/ia64.c (ia64_start_function): Add a guard.
17275 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
17278 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
17279 vec_extract and vec_concat for non-SSE4_1 targets.
17281 2011-04-21 Richard Guenther <rguenther@suse.de>
17283 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
17286 2011-04-21 Joseph Myers <joseph@codesourcery.com>
17288 * config/i386/cygming.h (union tree_node, TREE): Don't define or
17290 (FILE): Don't undefine.
17292 2011-04-21 Joseph Myers <joseph@codesourcery.com>
17294 * config/alpha/alpha.c (struct machine_function): Use rtx, not
17296 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
17298 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
17299 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
17300 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
17302 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
17303 definitions where used.
17304 * config/microblaze/microblaze.h (struct microblaze_args): Use
17305 rtx, not struct rtx_def *.
17306 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
17308 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
17309 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
17310 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
17311 not struct rtx_def *.
17312 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
17314 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
17316 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
17318 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
17320 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
17321 operand_equal_p to compare DR_BASE_ADDRESSes.
17322 (vect_check_interleaving): Likewise.
17324 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
17327 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
17328 for all Neon struct constants.
17330 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
17332 * target.def (legitimate_constant_p): New hook.
17333 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
17334 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
17335 * doc/tm.texi: Regenerate.
17336 * hooks.h (hook_bool_mode_rtx_true): Declare.
17337 * hooks.c (hook_bool_mode_rtx_true): Define.
17338 * system.h (LEGITIMATE_CONSTANT_P): Poison.
17339 * calls.c (precompute_register_parameters): Replace uses of
17340 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
17341 (emit_library_call_value_1): Likewise.
17342 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
17343 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
17344 * ira-costs.c (scan_one_insn): Likewise.
17345 * recog.c (general_operand, immediate_operand): Likewise.
17346 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
17347 * reload1.c (init_eliminable_invariants): Likewise.
17349 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
17351 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
17352 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
17354 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17355 * config/alpha/predicates.md (input_operand): Update call to
17356 alpha_legitimate_constant_p.
17358 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
17359 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
17360 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
17361 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17362 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
17363 (arm_legitimate_constant_p): New functions.
17364 (arm_cannot_force_const_mem): Make static.
17366 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
17368 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
17369 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
17370 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
17371 instead of bfin_legitimate_constant_p.
17372 (bfin_legitimate_constant_p): Make static. Add a mode argument.
17373 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17375 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
17377 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
17379 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
17380 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
17381 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17382 (frv_legitimate_constant_p): Make static. Add a mode argument.
17384 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
17385 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
17386 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
17388 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
17389 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
17390 * config/i386/i386.c (legitimate_constant_p): Rename to...
17391 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
17393 (ix86_cannot_force_const_mem): Update accordingly.
17394 (ix86_legitimate_address_p): Likewise.
17395 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17396 * config/i386/i386.md: Update commentary.
17398 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
17399 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
17400 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17401 (ia64_legitimate_constant_p): Make static. Add a mode argument.
17403 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
17405 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
17406 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
17407 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17408 (lm32_legitimate_constant_p): Make static. Add a mode argument.
17410 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
17411 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
17412 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
17414 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
17415 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17416 (m32r_legitimate_constant_p): New function.
17418 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
17419 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
17420 LEGITIMATE_CONSTANT_P.
17421 (LEGITIMATE_CONSTANT_P): Delete.
17422 * config/m68k/m68k.c (m68k_expand_prologue): Call
17423 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
17424 (m68k_legitimate_constant_p): New function.
17425 * config/m68k/m68k.md: Update comments.
17427 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
17428 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17429 (mcore_legitimate_constant_p): New function.
17431 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
17432 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
17433 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
17434 Add a mode argument.
17435 (mep_legitimate_address): Update accordingly.
17436 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17438 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
17440 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
17441 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
17442 static. Check OP's mode for VOIDmode.
17443 (microblaze_legitimate_constant_p): New function.
17444 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17446 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
17447 * config/mips/mips.c (mips_legitimate_constant_p): New function.
17448 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
17449 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17450 * config/mips/predicates.md: Update comments.
17452 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
17453 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
17454 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17455 (mmix_legitimate_constant_p): Make static, return a bool, and take
17457 (mmix_print_operand_address): Update accordingly.
17459 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
17461 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
17462 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
17463 static. Add a mode argument.
17464 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17466 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
17468 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
17469 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17470 (pa_legitimate_constant_p): New function.
17472 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
17474 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
17475 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17476 (pdp11_legitimate_constant_p): New function.
17478 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
17479 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17480 (rs6000_legitimate_constant_p): New function.
17482 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
17483 (rx_legitimate_constant_p): ...this.
17484 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
17485 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
17486 (rx_legitimate_constant_p): ...this.
17487 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17488 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
17490 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
17491 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
17492 * config/s390/s390.c (legitimate_constant_p): Rename to...
17493 (s390_legitimate_constant_p): ...this. Make static, return a bool,
17494 and add a mode argument.
17495 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17497 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
17499 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
17500 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17501 (sh_legitimate_constant_p): New function.
17503 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
17504 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
17505 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17506 (legitimate_constant_p): Rename to...
17507 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
17509 (constant_address_p): Update accordingly.
17511 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
17512 argument and return a bool.
17513 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
17514 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17515 (spu_legitimate_constant_p): Add a mode argument and return a bool.
17516 (spu_rtx_costs): Update accordingly.
17517 * config/spu/predicates.md (vec_imm_operand): Likewise.
17519 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
17521 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
17522 * config/v850/v850.c (v850_legitimate_constant_p): New function.
17523 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17525 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
17526 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
17527 * config/vax/vax.c (legitimate_constant_p): Likewise.
17529 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
17530 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17531 (xtensa_legitimate_constant_p): New function.
17533 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
17535 * target.def (cannot_force_const_mem): Add a mode argument.
17536 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
17537 * doc/tm.texi: Regenerate.
17538 * hooks.h (hook_bool_mode_rtx_false): Declare.
17539 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
17540 (hook_bool_mode_const_rtx_true): Likewise.
17541 (hook_bool_mode_rtx_false): New function.
17542 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
17543 to be non-VOID. Update call to cannot_force_const_mem.
17544 (find_reloads): Update accordingly.
17545 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
17546 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
17548 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
17549 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
17550 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
17551 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
17552 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
17553 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
17554 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
17555 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
17556 (m68k_cannot_force_const_mem): ...this new function.
17557 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
17559 (mips_const_insns, mips_legitimize_const_move): Update calls.
17560 (mips_secondary_reload_class): Likewise.
17561 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
17562 (pa_cannot_force_const_mem): ...this new function.
17563 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
17564 (rs6000_cannot_force_const_mem): ...this new function.
17565 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
17567 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
17568 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
17570 (xtensa_cannot_force_const_mem): ...this new function.
17572 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
17574 * config/mips/mips.c (mips16_build_function_stub): Call
17575 build_function_type_list instead of build_function_type.
17576 (mips16_build_call_stub): Likewise.
17578 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
17580 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
17581 instead of build_function_type.
17583 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
17585 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
17586 instead of build_function_type.
17588 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
17591 * config/i386/i386.md (insv): Change operand 0 constraint to
17592 "register_operand". Change operand 1 and 2 constraint to
17593 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
17594 * config/i386/sse.md (sse4_1_pinsrb): Export.
17595 (sse2_pinsrw): Ditto.
17596 (sse4_1_pinsrd): Ditto.
17597 (sse4_1_pinsrq): Ditto.
17598 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
17599 * config/i386/i386.c (ix86_expand_pinsr): New.
17601 2011-04-20 Easwaran Raman <eraman@google.com>
17603 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
17604 containing union type only with -fstrict-aliasing.
17606 2011-04-20 Jim Meyering <meyering@redhat.com>
17608 Remove useless if-before-free tests.
17609 * calls.c (expand_call, save_area): Likewise.
17610 * cfgcleanup.c (try_forward_edges): Likewise.
17611 * collect2.c (collect_execute): Likewise.
17612 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
17613 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
17614 * coverage.c (coverage_checksum_string): Likewise.
17615 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
17616 * cselib.c (cselib_init): Likewise.
17617 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
17618 (df_set_clean_cfg): Likewise.
17619 * function.c (free_after_compilation): Likewise.
17620 * gcc.c (do_spec_1, main): Likewise.
17621 * gcov.c (create_file_names): Likewise.
17622 * gensupport.c (identify_predicable_attribute): Likewise.
17623 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
17624 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
17625 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
17626 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
17627 * ipa-pure-const.c (local_pure_const): Likewise.
17628 * ipa-reference.c (propagate): Likewise.
17629 * ira-costs.c (free_ira_costs): Likewise.
17630 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
17631 * matrix-reorg.c (mat_free): Likewise.
17632 * prefix.c (get_key_value): Likewise.
17633 * profile.c (compute_value_histograms): Likewise.
17634 * reload1.c (free_reg_equiv): Likewise.
17635 * sched-deps.c (free_deps): Likewise.
17636 * sel-sched-ir.c (fence_clear): Likewise.
17637 * sese.c (set_rename, if_region_set_false_region): Likewise.
17638 * tree-data-ref.c (free_rdg): Likewise.
17639 * tree-eh.c (lower_try_finally): Likewise.
17640 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
17641 * tree-ssa-live.c (delete_var_map): Likewise.
17642 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
17643 * tree-ssa-pre.c (phi_trans_add): Likewise.
17645 2011-04-20 Jakub Jelinek <jakub@redhat.com>
17647 PR tree-optimization/48611
17648 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
17649 beyond ERT_MUST_NOT_THROW region.
17651 2011-04-20 Catherine Moore <clm@codesourcery.com>
17653 * config/mips/mips.opt (mfix-24k): New.
17654 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
17655 * config/mips/mips.md (length): Increase by 4 for stores if
17657 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
17658 all noreorder if fixing 24K errata.
17659 * doc/invoke.texi: Document mfix-24k.
17661 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
17663 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
17664 quad-word modes, reduce to 9-bit index range when above 1016 limit.
17666 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
17668 * config/arm/arm.c (arm_gen_constant): Move movw support ....
17669 (const_ok_for_op): ... to here.
17671 2011-04-20 Kai Tietz <ktietz@redhat.com>
17673 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
17674 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
17676 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
17678 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
17680 2011-04-20 Richard Guenther <rguenther@suse.de>
17682 PR tree-optimization/47892
17683 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
17684 are if-convertible.
17686 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
17688 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
17690 2011-04-20 Tristan Gingold <gingold@adacore.com>
17692 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
17694 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
17698 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
17699 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
17700 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
17701 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
17702 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
17704 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
17707 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
17708 (avr_asm_named_section, avr_asm_output_aligned_common,
17709 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
17710 New functions to update...
17711 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
17712 (avr_asm_init_sections): Overwrite section callbacks for
17713 data_section, bss_section.
17714 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
17716 (avr_file_end): ...here.
17718 2011-04-20 Richard Guenther <rguenther@suse.de>
17720 PR middle-end/48695
17721 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
17722 objects and types here. Adjust for their offset before comparing.
17724 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
17726 * tree-vect-stmts.c (vectorizable_store): Only chain one related
17727 statement per copy.
17729 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
17731 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
17732 (GIMPLE_H): Include $(INTERNAL_FN_H).
17733 (OBJS-common): Add internal-fn.o.
17734 (internal-fn.o): New rule.
17735 * internal-fn.def: New file.
17736 * internal-fn.h: Likewise.
17737 * internal-fn.c: Likewise.
17738 * gimple.h: Include internal-fn.h.
17739 (GF_CALL_INTERNAL): New gf_mask.
17740 (gimple_statement_call): Put fntype into a union with a new
17742 (gimple_build_call_internal): Declare.
17743 (gimple_build_call_internal_vec): Likewise.
17744 (gimple_call_same_target_p): Likewise.
17745 (gimple_call_internal_p): New function.
17746 (gimple_call_internal_fn): Likewise.
17747 (gimple_call_fntype): Return null for internal calls.
17748 (gimple_call_set_fntype): Assert that the function is not internal.
17749 (gimple_call_set_fn): Likewise.
17750 (gimple_call_set_fndecl): Likewise.
17751 (gimple_call_set_internal_fn): New function.
17752 (gimple_call_addr_fndecl): Handle null functions.
17753 (gimple_call_return_type): Likewise null types.
17754 * gimple.c (gimple_build_call_internal_1): New function.
17755 (gimple_build_call_internal): Likewise.
17756 (gimple_build_call_internal_vec): Likewise.
17757 (gimple_call_same_target_p): Likewise.
17758 (gimple_call_flags): Handle calls to internal functions.
17759 (gimple_call_fnspec): New function.
17760 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
17761 (gimple_has_side_effects): Handle null functions.
17762 (gimple_rhs_has_side_effects): Likewise.
17763 (gimple_call_copy_skip_args): Handle calls to internal functions.
17764 * cfgexpand.c (expand_call_stmt): Likewise.
17765 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
17766 * gimple-fold.c (gimple_fold_call): Handle null functions.
17767 (gimple_fold_stmt_to_constant_1): Don't fold
17768 calls to internal functions.
17769 * gimple-low.c (gimple_check_call_args): Handle calls to internal
17771 * gimple-pretty-print.c (dump_gimple_call): Likewise.
17772 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
17773 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
17774 (do_warn_unused_result): Likewise.
17775 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
17776 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
17777 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
17778 the target of a call.
17779 (initialize_hash_element): Update accordingly.
17780 (hashable_expr_equal_p): Use gimple_call_same_target_p.
17781 (iterative_hash_hashable_expr): Handle calls to internal functions.
17782 (print_expr_hash_elt): Likewise.
17783 * tree-ssa-pre.c (can_value_number_call): Likewise.
17784 (eliminate): Handle null functions.
17785 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
17786 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
17787 (find_func_aliases): Likewise.
17788 * value-prof.c (gimple_ic_transform): Likewise.
17789 (gimple_indirect_call_to_profile): Likewise.
17790 * lto-streamer-in.c (input_gimple_stmt): Likewise.
17791 * lto-streamer-out.c (output_gimple_stmt): Likewise.
17793 2011-04-19 Jan Hubicka <jh@suse.cz>
17795 * ipa-inline-transform.c (save_inline_function_body): Add comments.
17796 * ipa-inline.c (inline_small_functions): Compute summaries first,
17797 populate heap later.
17799 2011-04-19 Jan Hubicka <jh@suse.cz>
17801 * cgraph.h (save_inline_function_body): Remove.
17802 * ipa-inline-transform.c: New file, broke out of...
17803 * ipa-inline.c: ... this one; Update toplevel comment.
17804 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
17806 (update_noncloned_frequencies): Move to ipa-inline-transform.c
17807 (cgraph_mark_inline_edge): Rename to inline_call; move to
17808 ipa-inline-transform.c.
17809 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
17810 move to ipa-inline-transform.c
17811 (recursive_inlining, inline_small_functions, flatten_function,
17812 ipa_inline, inline_always_inline_functions,
17813 early_inline_small_functions): Update.
17814 (inline_transform): Move to ipa-inline-transform.c.
17815 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
17817 * Makefile.in (ipa-inline-transform.o): New file.
17818 * cgraphunit.c (save_inline_function_body): Move to
17819 ipa-inline-transform.c
17821 2011-04-19 DJ Delorie <dj@redhat.com>
17823 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
17824 registers if we already know there aren't any.
17825 (m32c_emit_epilogue): Don't emit a barrier here.
17826 (m32c_emit_eh_epilogue): Likewise.
17827 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
17828 operands at expand time.
17829 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
17831 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
17832 duplicates. Provide aliases instead.
17833 * config/m32c/prologue.md (eh_return): Emit a barrier here.
17834 (eh_epilogue): Add a "(return)" here as a hint to other parts of
17837 2011-04-19 Anatoly Sokolov <aesok@post.ru>
17839 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
17840 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
17841 (general_or_i64_p, sparc_register_move_cost): New function.
17843 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17845 * doc/install.texi (Configuration, --enable-threads): Remove mach.
17846 Add lynx, mipssde. Sort table.
17848 2011-04-19 Xinliang David Li <davidxl@google.com>
17850 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
17853 2011-04-19 Jakub Jelinek <jakub@redhat.com>
17856 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
17857 is a SUBREG with non-MODE_INT mode inside of it.
17859 2011-04-19 Martin Jambor <mjambor@suse.cz>
17861 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
17862 also according to actual contants.
17863 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
17864 (gimple_fold_call): Use it.
17865 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
17867 2011-04-19 Martin Jambor <mjambor@suse.cz>
17869 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
17870 non-pointer assignments.
17872 2011-04-19 Martin Jambor <mjambor@suse.cz>
17874 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
17875 account anc_offset and otr_type from the indirect edge info.
17876 * ipa-prop.c (get_ancestor_addr_info): New function.
17877 (compute_complex_ancestor_jump_func): Assignment analysis moved to
17878 get_ancestor_addr_info, call it.
17879 (ipa_note_param_call): Do not initialize information about polymorphic
17880 calls, return the indirect call graph edge. Remove the last
17881 parameter, adjust all callers.
17882 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
17883 parameters. Initialize polymorphic information in the indirect edge.
17885 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
17888 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
17889 the types if they have different enumeration identifiers.
17891 2011-04-19 Jan Hubicka <jh@suse.cz>
17893 * cgraph.h (cgraph_optimize_for_size_p): Declare.
17894 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
17895 * predict.c (cgraph_optimize_for_size_p): Break out from ...
17896 (optimize_function_for_size_p) ... here.
17898 2011-04-19 Richard Guenther <rguenther@suse.de>
17901 * tree.c (free_lang_data): Do not reset the decl-assembler-name
17904 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
17906 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
17907 if DECL_NO_INLINE_WARNING_P is set on the function.
17909 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
17912 * reload1.c (inc_for_reload): Return void. All callers changed.
17913 (emit_input_reload_insns): Don't try to delete previous output
17914 reloads to a register, or record spill_reg_store for autoincs.
17916 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
17918 * gengtype.h: Updated copyright year.
17919 (struct input_file_st): Add inpisplugin field.
17920 (type_fileloc): New function.
17922 (write_typed_struct_alloc_def): Add gcc_assert.
17923 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
17924 (write_typed_alloc_defns): Don't output for plugin files.
17925 (input_file_by_name): Clear inpisplugin field.
17926 (main): Set inpisplugin field for plugin files.
17928 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
17930 * gengtype-state.c (string_eq): New.
17931 (read_state): Use string_eq instead of strcmp when creating the
17934 2011-04-19 Wei Guozhi <carrot@google.com>
17937 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
17938 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
17940 * config/arm/constraints.md (Uu): New constraint.
17941 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
17943 2011-04-19 Tristan Gingold <gingold@adacore.com>
17945 * config.gcc (-*-*-*vms): Added.
17946 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
17948 * config/vms/vms-ld.c: New file.
17949 * config/vms/vms-ar.c: New file.
17950 * config/vms/t-vmsnative: New file.
17952 2011-04-18 Xinliang David Li <davidxl@google.com>
17954 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
17956 2011-04-18 Jakub Jelinek <jakub@redhat.com>
17958 PR middle-end/48661
17959 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
17960 if TREE_TYPE (v) is non-NULL.
17962 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
17963 gimple_get_virt_mehtod_for_binfo.
17964 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
17965 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
17967 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17969 2011-04-18 Michael Matz <matz@suse.de>
17970 Steve Ellcey <sje@cup.hp.com>
17972 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
17973 use its mode as source mode if it isn't VOIDmode.
17975 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
17977 * doc/passes.texi: Fill crossref nodes.
17979 2011-04-18 Jim Meyering <meyering@redhat.com>
17981 Fix doubled-word typos in comments and strings
17982 * config/alpha/vms-unwind.h: s/for for/for/
17983 * config/arm/unwind-arm.h: Likewise.
17984 * config/microblaze/microblaze.c: Likewise.
17985 * config/sh/constraints.md: s/in in/in/
17986 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
17988 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
17990 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
17991 (AVX_FLOAT_MODE_P): Ditto.
17992 (AVX128_VEC_FLOAT_MODE_P): Ditto.
17993 (AVX256_VEC_FLOAT_MODE_P): Ditto.
17994 (AVX_VEC_FLOAT_MODE_P): Ditto.
17995 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
17996 (UNSPEC_MASKSTORE): Ditto.
17997 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
17998 Merge from <sse>_movmsk<ssemodesuffix> and
17999 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
18000 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
18002 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
18003 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
18004 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
18006 2011-04-18 Jan Hubicka <jh@suse.cz>
18008 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
18010 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
18011 (want_inline_function_called_once_p): Break out the logic from
18013 (edge_badness): Ensure that profile is not misupdated.
18014 (lookup_recursive_calls): Prioritize by call frequencies.
18015 (inline_small_functions): Move program size estimates here;
18016 actually process whole queue even when unit growth has been
18017 met. (to properly compute inline_failed reasons and for the
18018 case unit size decrease.) Revisit comments on recursive inlining.
18019 (ipa_inline): Remove unit summary code; first inline hot calls
18020 of functions called once, cold calls next.
18021 (order, nnodes): Remove unused variables.
18022 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
18023 (GTFILES): Remove ipa-inline.c
18024 * sel-sched.c (fill_insns): Silence uninitialized var warning.
18026 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
18028 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
18030 2011-04-18 Jie Zhang <jie@codesourcery.com>
18031 Richard Earnshaw <rearnsha@arm.com>
18033 * arm.c (neon_builtin_type_bits): Remove.
18034 (typedef enum neon_builtin_mode): New.
18035 (T_MAX): Don't define.
18036 (typedef enum neon_builtin_datum): Remove bits, codes[],
18037 num_vars and base_fcode. Add mode, code and fcode.
18038 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
18039 VAR10): Change accordingly.
18040 (neon_builtin_data[]): Change accordingly
18041 (arm_init_neon_builtins): Change accordingly.
18042 (neon_builtin_compare): Remove.
18043 (locate_neon_builtin_icode): Remove.
18044 (arm_expand_neon_builtin): Change accordingly.
18046 * arm.h (enum arm_builtins): Move to ...
18047 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
18049 * arm.c (arm_builtin_decl): Declare.
18050 (TARGET_BUILTIN_DECL): Define.
18051 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
18052 (arm_builtin_decls[]): New.
18053 (arm_init_neon_builtins): Store builtin declarations in
18054 arm_builtin_decls[].
18055 (arm_init_tls_builtins): Likewise.
18056 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
18057 (arm_builtin_decl): New.
18059 2011-04-18 Richard Guenther <rguenther@suse.de>
18061 * tree.c (upper_bound_in_type): Build properly canonicalized
18063 (lower_bound_in_type): Likewise.
18065 2011-04-18 Richard Guenther <rguenther@suse.de>
18067 * gimple.h (gimple_call_addr_fndecl): New function.
18068 (gimple_call_fndecl): Use it.
18069 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
18071 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
18072 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
18074 2011-04-18 Richard Guenther <rguenther@suse.de>
18076 PR middle-end/48650
18077 * tree.c (build_string): STRING_CST is now derived from tree_typed.
18079 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
18082 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
18083 DECL_IN_CONSTANT_POOL without RTL.
18085 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
18086 Ira Rosen <ira.rosen@linaro.org>
18089 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
18090 to match neon_vzip/vuzp/vtrn_internal.
18091 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
18092 outputs explicitly dependent on both inputs.
18093 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
18095 2011-04-18 Jakub Jelinek <jakub@redhat.com>
18097 PR tree-optimization/48616
18098 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
18099 whether the shift is by scalar or vector based on whether all SLP
18100 scalar stmts have the same rhs.
18102 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
18104 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
18107 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
18110 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
18113 2011-04-17 Jan Hubicka <jh@suse.cz>
18115 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
18116 * cgrpahunit.c (cgraph_finalize_function): Do not set
18117 finalized_by_frontend.
18118 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
18119 finalized_by_frontend.
18121 2011-04-17 Jan Hubicka <jh@suse.cz>
18123 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
18124 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
18125 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
18126 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
18128 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
18130 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
18132 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
18135 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
18136 is non-null before accessing it.
18137 (input_cgraph): Remove trailing spaces.
18139 2011-04-17 Revital Eres <revital.eres@linaro.org>
18141 * params.def (sms-min-sc): New param flag.
18142 * modulo-sched.c (sms_schedule): Use it.
18143 * doc/invoke.texi (sms-min-sc): Document it.
18145 2011-04-17 Jan Hubicka <jh@suse.cz>
18147 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
18148 present, also set gimple_call_set_cannot_inline.
18149 * ipa-inline.c: Update toplevel comment.
18150 (MAX_TIME): Remove.
18151 (cgraph_clone_inlined_nodes): Fix linebreaks.
18152 (cgraph_check_inline_limits): Restructure to ...
18153 (caller_growth_limits): ... this one; be more tolerant
18154 on growth in nested inline chains; add explanatory comment;
18155 fix stack accounting thinko introduced by previous patch.
18156 (cgraph_default_inline_p): Remove.
18157 (report_inline_failed_reason): New function.
18158 (can_inline_edge_p): New function.
18159 (can_early_inline_edge_p): New function.
18160 (leaf_node_p): Move upwards in file.
18161 (want_early_inline_function_p): New function.
18162 (want_inline_small_function_p): New function.
18163 (want_inline_self_recursive_call_p): New function.
18164 (cgraph_edge_badness): Rename to ...
18165 (edge_badness) ... this one; fix linebreaks.
18166 (update_edge_key): Update call of edge_baddness; add
18167 detailed dump about queue updates.
18168 (update_caller_keys): Use can_inline_edge_p and
18169 want_inline_small_function_p.
18170 (cgraph_decide_recursive_inlining): Rename to...
18171 (recursive_inlining): Use can_inline_edge_p and
18172 want_inline_self_recursive_call_p; simplify and remove no longer
18174 (cgraph_set_inline_failed): Remove.
18175 (add_new_edges_to_heap): Use can_inline_edge_p and
18176 want_inline_small_function_p.
18177 (cgraph_decide_inlining_of_small_functions): Rename to ...
18178 (inline_small_functions): ... this one; cleanup; use
18179 can/want predicates; cleanup debug ouput; work edges till fibheap
18180 is exhausted and do not stop once unit growth is reached; remove
18181 later loop processing remaining edges.
18182 (cgraph_flatten): Rename to ...
18183 (flatten_function): ... this one; use can_inline_edge_p
18184 and can_early_inline_edge_p predicates.
18185 (cgraph_decide_inlining): Rename to ...
18186 (ipa_inline): ... this one; remove unreachable nodes before
18187 inlining functions called once; simplify the pass.
18188 (cgraph_perform_always_inlining): Rename to ...
18189 (inline_always_inline_functions): ... this one; use
18190 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
18191 (cgraph_decide_inlining_incrementally): Rename to ...
18192 (early_inline_small_functions): ... this one; simplify
18193 using new predicates; cleanup; make dumps prettier.
18194 (cgraph_early_inlining): Rename to ...
18195 (early_inliner): newer inline regular functions into always-inlines;
18196 fix updating of call stmt summaries.
18197 (pass_early_inline): Update for new names.
18198 (inline_transform): Fix formating.
18199 (gate_cgraph_decide_inlining): Rename to ...
18200 (pass_ipa_inline): ... this one.
18201 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
18202 * ipa-inline-analysis.c (dump_inline_summary): Update.
18203 (compute_inline_parameters): Do not compute disregard_inline_limits;
18204 look for mismatching arguments.
18205 (estimate_growth): Fix handlig of non-trivial self recursion.
18206 (inline_read_summary): Do not read info->disregard_inline_limits.
18207 (inline_write_summary): Do not write info->disregard_inline_limits.
18208 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
18209 and move all checks into can_inline_edge_p predicate; re-enable code
18210 comparing optimization levels.
18211 (expand_call_inline): Do not test inline_forbidden_into_p.
18212 * Makefile.in (ipa-inline.o): Update arguments.
18214 2011-04-17 Revital Eres <revital.eres@linaro.org>
18216 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
18218 2011-04-17 Revital Eres <revital.eres@linaro.org>
18220 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
18222 2011-04-17 Michael Matz <matz@suse.de>
18224 PR tree-optimization/48622
18226 * ipa-inline-analysis.c (inline_read_summary): Read size/time
18227 in same order as they're written.
18229 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18231 * config/pa/predicates.md: Reorganize and simplify predicates.
18232 Eliminate duplicate code checks.
18233 (arith_operand): Rename to arith14_operand
18234 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
18235 * config/pa/pa.md: Use renamed operands.
18236 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
18237 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
18238 arith11_operand, adddi3_operand, indexed_memory_operand,
18239 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
18240 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
18241 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
18242 move_dest_operand, move_src_operand, prefetch_cc_operand,
18243 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
18244 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
18245 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
18246 div_operand, int5_operand, movb_comparison_operator,
18247 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
18248 arith_double_operand, ireg_operand, lhs_lshift_operand,
18249 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
18250 integer_store_memory_operand): Likewise.
18251 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
18252 (integer_store_memory_operand, read_only_operand,
18253 function_label_operand, borx_reg_operand,
18254 non_hard_reg_operand): Likewise.
18255 (eq_neq_comparison_operator): Delete unused operator.
18256 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
18257 function_label_operand.
18258 (emit_move_sequence): Likewise.
18260 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
18262 * config/i386/sse.md (sseunpackmode): New mode attribute.
18263 (ssepackmode): Ditto.
18264 (vec_pack_trunc_<mode>): Macroize expander from
18265 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
18266 (vec_unpacks_lo_<mode>): Macroize expander from
18267 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18268 (vec_unpacks_hi_<mode>): Macroize expander from
18269 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18270 (vec_unpacku_lo_<mode>): Macroize expander from
18271 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18272 (vec_unpacku_hi_<mode>): Macroize expander from
18273 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18274 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
18275 ix86_expand_sse4_unpack.
18276 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
18278 2011-04-16 Jan Hubicka <jh@suse.cz>
18280 * cgraphbuild.c: Include ipa-inline.h.
18281 (reset_inline_failed): Use initialize_inline_failed.
18282 * cgraph.c: Include ipa-inline.h.
18283 (cgraph_create_node_1): Do not initialize estimated_growth.
18284 (initialize_inline_failed): More to ipa-inline-analysis.c
18285 (dump_cgraph_node): Do not dump inline flags.
18286 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
18287 and disregard_inline_limits flags.
18288 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
18289 time, size, estimated_growth.
18290 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
18292 * cgraphunit.c (cgraph_decide_is_function_needed): Use
18293 DECL_DISREGARD_INLINE_LIMITS.
18294 (cgraph_analyze_function): Do not initialize
18295 node->local.disregard_inline_limits.
18296 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
18297 inlinable, versionable and disregard_inline_limits.
18298 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
18299 cgraph_check_inline_limits, cgraph_default_inline_p,
18300 cgraph_edge_badness, update_caller_keys, update_callee_keys,
18301 add_new_edges_to_heap): Update.
18302 (cgraph_decide_inlining_of_small_function): Update; set
18303 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
18304 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
18305 cgraph_decide_inlining_incrementally): Update.
18306 * ipa-inline.h (inline_summary): Add inlinable, versionable,
18307 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
18308 time, size and estimated_growth parameters.
18309 (estimate_edge_growth): Update.
18310 (initialize_inline_failed): Declare.
18311 * ipa-split.c: Include ipa-inline.h
18312 (execute_split_functions): Update.
18313 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
18314 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
18315 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
18316 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
18317 estimated_growth to INT_MIN.
18318 (inline_node_duplication_hook): Likewise.
18319 (dump_inline_summary): Dump new fields.
18320 (compute_inline_parameters): Update.
18321 (estimate_edge_time, estimate_time_after_inlining,
18322 estimate_size_after_inlining, estimate_growth, inline_read_summary,
18323 inline_write_summary):
18324 (initialize_inline_failed): Move here from cgraph.c.
18325 * tree-sra.c: Include ipa-inline.h.
18326 (ipa_sra_preliminary_function_checks): Update.
18327 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
18330 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
18332 * config/i386/sse.md (V16): New mode iterator.
18334 (AVXMODEQI, AVXMODEDI): Remove.
18335 (sse2, sse3): New mode attribute.
18336 (mov<mode>): Use V16 mode iterator.
18337 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
18338 (push<mode>1): Use V16 mode iterator.
18339 (movmisalign<mode>): Ditto.
18340 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
18341 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
18342 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
18343 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
18344 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
18345 avx_movdqu<avxmodesuffix>.
18346 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
18347 *avx_movdqu<avxmodesuffix>.
18348 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
18349 avx_lddqu<avxmodesuffix>.
18350 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
18351 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
18352 avx_movnt<AVXMODEDI:mode>.
18353 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
18354 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
18356 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
18359 * haifa-sched.c (prune_ready_list, schedule_block): Use
18360 sched_pressure_p rather than flag_sched_pressure.
18362 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
18364 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
18365 cgraph_get_node instead of cgraph_get_create_node.
18367 2011-04-15 Jakub Jelinek <jakub@redhat.com>
18369 * cfgexpand.c (expand_debug_expr): Use
18370 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
18372 2011-04-15 Michael Matz <matz@suse.de>
18374 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
18375 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
18376 * function.c (gimplify_parameters): Ditto.
18377 * gimplify.c (gimplify_vla_decl): Ditto.
18379 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
18380 (gimple_call_set_alloca_for_var): New inline function.
18381 (gimple_call_alloca_for_var_p): Ditto.
18382 * gimple.c (gimple_build_call_from_tree): Remember
18383 CALL_ALLOCA_FOR_VAR_P state.
18384 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
18386 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
18387 calls if they were for VLA objects.
18389 2011-04-15 Martin Jambor <mjambor@suse.cz>
18391 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
18394 2011-04-15 Martin Jambor <mjambor@suse.cz>
18396 PR middle-end/48601
18397 * tree-emutls.c (lower_emutls_function_body): Call
18398 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
18399 result is non-NULL.
18401 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
18403 * c-decl.c (detect_field_duplicates): Call
18404 objc_detect_field_duplicates instead of objc_get_interface_ivars.
18406 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
18408 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
18409 * gimple.c (gimple_asm_clobbers_memory_p): Define.
18410 * ipa-pure-const.c (check_stmt): Call it.
18411 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
18413 2011-04-15 Richard Guenther <rguenther@suse.de>
18415 PR tree-optimization/48290
18416 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
18417 Properly decide inhibiting propagation based on the valueized
18418 operand. Do loop-closed SSA form preserving here ...
18419 (init_copy_prop): ... not here.
18421 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
18424 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
18425 (*ieee_smax<mode>3): Likewise.
18427 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18429 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
18430 Replace match_operand with match_dup for the third operand in
18433 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
18435 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
18436 to track processing of conditionals. Update all callers.
18437 (try_combine, simplify_if_then_else): Update.
18439 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
18441 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
18444 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
18446 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
18447 instead of match_operand for operand 3.
18449 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
18451 * recog.h (insn_operand_data): Add an "allows_mem" field.
18452 * genoutput.c (output_operand_data): Initialize it.
18453 * optabs.c (maybe_legitimize_operand_same_code): New function.
18454 (maybe_legitimize_operand): Use it when matching the original
18457 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
18459 * gimplify.c: Fix issues in comments throughout.
18460 (voidify_wrapper_expr): Fix long line.
18461 (build_stack_save_restore): Likewise.
18462 (gimplify_loop_expr): Likewise.
18463 (gimplify_compound_lval): Likewise.
18464 (gimplify_init_ctor_eval): Likewise.
18465 (gimplify_modify_expr_rhs): Likewise.
18466 (omp_notice_threadprivate_variable): Likewise.
18468 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
18470 * cfgexpand.c (expand_call_stmt): Convert the function type to the
18471 original one if this is not a builtin function.
18473 2011-04-14 Jakub Jelinek <jakub@redhat.com>
18476 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
18477 offset it as needed based on top 2 bits in operands[3], change
18478 MEM mode to SFmode and mask those 2 bits away from operands[3].
18480 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
18482 * c-parser.c (c_parser_objc_protocol_definition): Updated for
18483 change from objc_declare_protocols() to objc_declare_protocol().
18485 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
18487 * config/i386/sse.md (sse4_1): New mode attribute.
18488 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
18489 avx_blend<ssemodesuffix><avxmodesuffix> and
18490 sse4_1_blend<ssemodesuffix> using VF mode iterator.
18491 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
18492 avx_blendv<ssemodesuffix><avxmodesuffix> and
18493 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
18494 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
18495 avx_dp<ssemodesuffix><avxmodesuffix> and
18496 sse4_1_dp<ssemodesuffix> using VF mode iterator.
18497 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
18498 (sse4_1_packusdw): Merge with *avx_packusdw.
18499 (sse4_1_pblendvb): Merge with *avx_pblendvb.
18500 (sse4_1_pblendw): Merge with *avx_pblendw.
18501 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
18502 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
18503 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
18505 (sse4_1_round<ssescalarmodesuffix>): Merge with
18506 *avx_round<ssescalarmodesuffix>.
18507 (aesenc): Merge with *avx_aesenc.
18508 (aesenclast): Merge with *avx_aesenclast.
18509 (aesdec): Merge with *avx_aesdec.
18510 (aesdeclast): Merge with *avx_aesdeclast.
18511 (pclmulqdq): Merge with *pclmulqdq.
18512 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
18514 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
18516 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
18518 PR middle-end/48608
18519 * cfgexpand.c (get_decl_align_unit): Renamed to ...
18520 (align_local_variable): This. Update DECL_ALIGN.
18521 (add_stack_var): Updated.
18522 (expand_one_stack_var): Likewise.
18524 2011-04-14 Richard Guenther <rguenther@suse.de>
18526 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
18528 (dse_initialize_block_local_data, dse_leave_block,
18529 record_voperand_set, get_stmt_uid): Likewise.
18530 (dse_possible_dead_store_p): Allow any kind of killing stmt.
18531 (dse_optimize_stmt): Remove voperand set handling code.
18532 Simplify and improve to handle any kind of killing stmt.
18533 (dse_record_phi): Remove.
18534 (dse_enter_block): Simplify.
18535 (tree_ssa_dse): Likewise.
18536 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
18538 2011-04-14 Jan Hubicka <jh@suse.cz>
18540 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
18541 * cgraph.h (struct inline_summary): Move to ipa-inline.h
18542 (cgraph_local_info): Remove inline_summary.
18543 * ipa-cp.c: Include ipa-inline.h.
18544 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
18545 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
18547 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
18548 (input_overwrite_node): Do not set inline summary.
18549 (input_node): Do not stream inline summary.
18550 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
18551 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
18552 growth; we do not have inline parameters computed for that anyway.
18553 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
18554 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
18555 (inline_summary_t): New type and VECtor.
18556 (debug_inline_summary, dump_inline_summaries): Declare.
18557 (inline_summary): Use VOCtor.
18558 (estimate_edge_growth): Kill hack computing call stmt size directly.
18559 * lto-section-in.c (lto_section_name): Add inline section.
18560 * ipa-inline-analysis.c: Include lto-streamer.h
18561 (node_removal_hook_holder, node_duplication_hook_holder): New holders
18562 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
18563 (inline_summary_vec): Define.
18564 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
18565 dump_inline_summaries): New functions.
18566 (estimate_function_body_sizes): Properly compute size/time of outgoing
18568 (compute_inline_parameters): Alloc inline_summary; do not compute
18569 size/time of incomming calls.
18570 (estimate_edge_time): Avoid missing time summary hack.
18571 (inline_read_summary): Read inline summary info.
18572 (inline_write_summary): Write inline summary info.
18573 (inline_free_summary): Free all hooks and inline summary vector.
18574 * lto-streamer.h: Add LTO_section_inline_summary section.
18575 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
18576 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
18578 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18580 * tree-vectorizer.h (vect_strided_store_supported): Add a
18581 HOST_WIDE_INT argument.
18582 (vect_strided_load_supported): Likewise.
18583 (vect_permute_store_chain): Return void.
18584 (vect_transform_strided_load): Likewise.
18585 (vect_permute_load_chain): Delete.
18586 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
18587 count argument. Check that the count is a power of two.
18588 (vect_strided_load_supported): Likewise.
18589 (vect_permute_store_chain): Return void. Update after above changes.
18590 Assert that the access is supported.
18591 (vect_permute_load_chain): Likewise.
18592 (vect_transform_strided_load): Return void.
18593 * tree-vect-stmts.c (vectorizable_store): Update calls after
18594 above interface changes.
18595 (vectorizable_load): Likewise.
18596 (vect_analyze_stmt): Don't check for strided powers of two here.
18598 2011-04-14 Richard Guenther <rguenther@suse.de>
18600 PR tree-optimization/48590
18601 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18602 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
18603 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
18604 BUILT_IN_STACK_SAVE.
18605 * tree-ssa-dce.c (propagate_necessity): Handle
18606 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
18608 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
18610 * c-parser.c (c_parser_objc_class_declaration): Updated call to
18611 objc_declare_class.
18613 2011-04-14 Richard Guenther <rguenther@suse.de>
18615 * tree.h (get_object_alignment_1): Declare.
18616 * builtins.c (get_object_alignment_1): Split out worker from ...
18617 (get_object_alignment): ... here.
18618 * fold-const.c (get_pointer_modulus_and_residue): Use
18619 get_object_alignment_1.
18621 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18623 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
18625 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
18626 parameter. Generalise code to handle arrays as well as vectors.
18627 (vect_setup_realignment): Update accordingly.
18628 * tree-vect-stmts.c (vectorizable_store): Likewise.
18629 (vectorizable_load): Likewise.
18631 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18633 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
18634 within the per-copy loop.
18636 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18638 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
18641 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18643 * doc/options.texi (Negative): Explicitly mention that the
18644 Negative chain must be circular.
18646 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
18648 * function.h (block_chainon): Declare.
18649 * function.c (block_chainon): Define.
18651 2011-04-14 Anatoly Sokolov <aesok@post.ru>
18652 Eric Weddington <eric.weddington@atmel.com>
18653 Georg-Johann Lay <avr@gjlay.de>
18655 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
18657 (avr_init_builtins, avr_expand_builtin,
18658 avr_expand_delay_cycles, avr_expand_unop_builtin,
18659 avr_expand_binop_builtin ): New functions.
18660 (avr_builtin_id): New enum
18661 (struct avr_builtin_description): New struct
18662 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
18663 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
18665 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
18666 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
18667 UNSPECV_DELAY_CYCLES): new enumeration values
18668 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
18669 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
18670 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
18671 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
18672 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
18673 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
18674 "fmulsu"): New insns
18676 * config/avr/avr-c.c: fix line endings
18677 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
18678 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
18679 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
18680 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
18681 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
18683 * doc/extend.texi (AVR Built-in Functions): New node
18684 (Target Builtins): Add documentation of AVR
18685 built-in functions.
18687 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
18690 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
18691 alone. Error if non-const data has attribute progmem.
18693 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
18695 * tree.h (struct tree_constructor): Include tree_typed instead of
18697 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
18698 TS_TYPED instead of TS_COMMON.
18700 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
18702 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
18703 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
18704 (sse2_psadbw): Merge with *avx_psadbw.
18705 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
18706 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
18707 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
18708 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
18709 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
18710 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
18711 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
18712 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
18713 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
18714 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
18715 (ssse3_palignrti): Merge with *avx_palignrti.
18717 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
18719 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
18720 * tree-ssanames.c (fini_ssanames): VEC_free it.
18721 (make_ssa_name_fn): Update for VECness of free_ssanames.
18722 (release_ssa_name, release_dead_ssa_names): Likewise.
18723 * tree.h (struct tree_ssa_name): Include tree_typed instead of
18725 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
18726 TS_TYPED instead of TS_COMMON.
18728 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
18730 * postreload-gcse.c (gcse_after_reload_main): Add calls to
18731 statistics_counter_event.
18732 * tree-ssa-copyrename.c (stats): Define.
18733 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
18734 statistics_counter_event.
18735 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
18736 (bswap_stats, widen_mul_stats): Define.
18737 (insert_reciprocals): Increment rdivs_inserted.
18738 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
18739 rfuncs_inserted. Add calls to statistics_counter_event.
18740 (execute_cse_sincos_1): Increment inserted.
18741 (execute_cse_sincos): Zeroize sincos_stats. Add call to
18742 statistics_counter_event.
18743 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
18744 of bswap_stats. Add calls to statistics_counter_event.
18745 (convert_mult_to_widen): Increment widen_mults_inserted.
18746 (convert_plusminus_to_widen): Increment maccs_inserted.
18747 (convert_mult_to_fma): Increment fmas_inserted.
18748 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
18749 calls to statistics_counter_event.
18751 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
18753 PR rtl-optimization/48455
18754 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
18755 `temp_costs->mem_cost'.
18757 2011-04-13 Jan Hubicka <jh@suse.cz>
18759 * ipa-inline.h: New file.
18760 * ipa-inline-analysis.c: New file. Broken out of ...
18761 * ipa-inline.c: ... this file; update toplevel comment;
18762 include ipa-inline.h
18763 (inline_summary): Move to ipa-inline.h
18764 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
18765 ipa-inline-analysis.c.
18766 (cgraph_estimate_time_after_inlining): Rename to
18767 estiamte_time_after_inlining; move to ipa-inline-analysis.c
18768 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
18769 to estimate_edge_growth.
18770 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
18771 rename to estimate_size_after_inlining.
18772 (cgraph_mark_inline_edge): Update for new naming convention.
18773 (cgraph_check_inline_limits): Likewise.
18774 (cgraph_edge_badness): Likewise.
18775 (cgraph_decide_recursive_inlining): Likewise.
18776 (cgraph_decide_inlining_of_small_functions): Likewise.
18777 (cgraph_decide_inlining_incrementally): Likewise.
18778 (cgraph_estimate_growth): Rename to estimate_growth; move to
18779 ipa-inline-analysis.c.
18780 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
18781 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
18782 (compute_inline_parameters): Likewise.
18783 (compute_inline_parameters_for_current): Likewise.
18784 (pass_inline_parameters): Likewise.
18785 (inline_indirect_intraprocedural_analysis): Likewise.
18786 (analyze_function): Rename to inline_analyze_function; likewise.
18787 (add_new_function): Move to ipa-inline-analysis.c.
18788 (inline_generate_summary): Likewise.
18789 (inline_read_summary): Likewise.
18790 (inline_write_summary): Likewise.
18791 * Makefile.in (ipa-inline-analysis.c): New file.
18793 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18795 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
18796 * configure: Regenerate.
18798 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
18800 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
18801 instead of tree_common.
18802 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
18804 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
18805 TS_TYPED rather than TS_COMMON.
18806 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
18808 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
18811 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
18812 r20 around calls of __tablejump_elpm__
18814 2011-04-13 Jakub Jelinek <jakub@redhat.com>
18816 PR middle-end/48591
18817 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
18819 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
18821 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
18823 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
18824 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
18825 (cfi_vec): New typedef.
18826 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
18827 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
18828 (cie_cfi_vec): New static variable.
18829 (cie_cfi_head): Delete.
18830 (add_cfi): Accept a cfi_vec * as first argument. All callers and
18831 declaration changed. Use vector rather than list operations.
18832 (new_cfi): Don't initialize the dw_cfi_next field.
18833 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
18834 rather than list operations.
18835 (lookup_cfa): Use vector rather than list operations.
18836 (output_cfis): New argument upto. Accept a cfi_vec rather than
18837 a dw_cfi_ref list head as argument. All callers changed.
18838 Iterate over the vector using upto as a maximum index.
18839 (output_all_cfis): New static function.
18840 (output_fde): Use vector rather than list operations. Use the
18841 new upto argument for output_cfis rather than manipulating a
18843 (dwarf2out_begin_prologue): Change initializations to match
18844 new struct members.
18845 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
18846 from the vector length rather than searching for the end of a list.
18847 Use output_all_cfis.
18848 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
18850 2011-04-13 Nick Clifton <nickc@redhat.com>
18852 * config/rx/rx.md (movmemsi): Do not use this pattern when
18853 volatile pointers are involved.
18855 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
18857 * config/i386/sse.md (pinsrbits): Remove.
18858 (sse2_packsswb): Merge with *avx_packsswb.
18859 (sse2_packssdw): Merge with *avx_packssdw.
18860 (sse2_packuswb): Merge with *avx_packuswb.
18861 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
18862 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
18863 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
18864 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
18865 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
18866 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
18867 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
18868 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
18869 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
18870 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
18871 (sse2_loadld): Merge with *avx_loadld.
18872 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
18873 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
18874 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
18875 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
18876 (vec_concatv2di): Merge with *vec_concatv2di_avx.
18878 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
18880 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
18881 calling TREE_CHAIN.
18882 * print-tree.c (print_node): Likewise.
18883 * tree-inline.c (copy_tree_r): Likewise.
18884 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
18885 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
18886 instead of TS_COMMON.
18887 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
18888 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
18889 (copy_node_stat): Zero TREE_CHAIN only if necessary.
18890 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
18891 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
18893 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
18895 (TREE_CHAIN): Check for a TS_COMMON structure.
18896 (TREE_TYPE): Check for a TS_TYPED structure.
18898 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
18900 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
18901 cgraph_get_create_node instead of cgraph_node.
18903 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
18905 * c-parser.c (c_parser_initelt): Updated call to
18906 objc_build_message_expr.
18907 (c_parser_postfix_expression): Likewise.
18909 2011-04-12 Kai Tietz <ktietz@redhat.com>
18911 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
18912 MASK_MS_BITFIELD_LAYOUT bit.
18914 2011-04-12 Jakub Jelinek <jakub@redhat.com>
18916 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
18917 assert it is always true.
18918 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
18921 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
18923 * c-parser.c (c_lex_one_token): Rewritten conditional used when
18924 compiling Objective-C to be more efficient.
18926 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
18928 * opts-common.c (decode_cmdline_options_to_array): Remove variable
18931 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
18933 * recog.h, genoutput.c, optabs.c: Revert last patch.
18935 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18938 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
18940 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
18942 * recog.h (insn_operand_data): Add an "allows_mem" field.
18943 * genoutput.c (output_operand_data): Initialize it.
18944 * optabs.c (maybe_legitimize_operand_same_code): New function.
18945 (maybe_legitimize_operand): Use it when matching the original
18948 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
18950 * genpreds.c (process_define_predicate): Move most processing
18951 to gensupport.c. Continue to validate the expression.
18952 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
18953 (process_define_predicate): Move processing to gensupport.c.
18954 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
18955 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
18956 (compute_predicate_codes): Moved from genrecog.c. Add lineno
18958 (valid_predicate_name_p): New function, split out from old
18959 genpreds.c:process_define_predicate.
18960 (process_define_predicate): New function, combining code from
18961 old genpreds.c and genrecog.c functions.
18962 (process_rtx): Call it for DEFINE_PREDICATE and
18963 DEFINE_SPECIAL_PREDICATE.
18965 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
18967 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
18968 size of a '%A' memory reference.
18969 (T_DREG, T_QREG): New neon_builtin_type_bits.
18970 (arm_init_neon_builtins): Assert that the load and store operands
18971 are neon_struct_operands.
18972 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
18973 (NEON_ARG_MEMORY): New builtin_arg.
18974 (neon_dereference_pointer): New function.
18975 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
18976 Handle NEON_ARG_MEMORY.
18977 (arm_expand_neon_builtin): Update after above interface changes.
18978 Use NEON_ARG_MEMORY for loads and stores.
18979 * config/arm/predicates.md (neon_struct_operand): New predicate.
18980 * config/arm/iterators.md (V_two_elem): Tweak formatting.
18981 (V_three_elem): Use BLKmode for accesses that have no associated mode.
18982 (V_four_elem): Tweak formatting.
18983 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
18984 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
18985 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
18986 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
18987 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
18988 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
18989 (neon_vst4<mode>): Replace pointer operand with a memory operand.
18990 Use %A in the output template.
18991 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
18992 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
18993 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
18994 the width of the memory access. Remove post-increment.
18995 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
18997 2011-04-12 Nick Clifton <nickc@redhat.com>
18999 * config/v850/v850.c (expand_prologue): Do not use the CALLT
19000 instruction for interrupt handlers if the target is the basic V850
19002 (expand_epilogue): Likewise.
19004 2011-04-12 Jakub Jelinek <jakub@redhat.com>
19006 PR rtl-optimization/48549
19007 * combine.c (propagate_for_debug): Also stop after BB_END of
19008 this_basic_block. Process LAST and just stop processing after it.
19009 (combine_instructions): If last_combined_insn has been deleted,
19010 set last_combined_insn to its PREV_INSN.
19012 2011-04-12 Richard Guenther <rguenther@suse.de>
19014 PR tree-optimization/46076
19015 * gimple.h (struct gimple_statement_call): Add fntype field.
19016 (gimple_call_fntype): Adjust.
19017 (gimple_call_set_fntype): New function.
19018 * gimple.c (gimple_build_call_1): Set the call function type.
19019 * gimplify.c (gimplify_call_expr): Preserve the function
19020 type the frontend used for the call.
19021 (gimplify_modify_expr): Likewise.
19022 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
19024 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
19026 * tree-ssa.c (useless_type_conversion_p): Function pointer
19027 conversions are useless.
19029 2011-04-12 Martin Jambor <mjambor@suse.cz>
19031 * cgraph.h (cgraph_node): Remove function declaration.
19032 (cgraph_create_node): Declare.
19033 (cgraph_get_create_node): Likewise.
19034 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
19035 Updated all callers.
19036 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
19037 the decl does not already exist. Call cgraph_get_create_node instead
19039 (cgraph_get_create_node): New function.
19040 (cgraph_same_body_alias): Update comment.
19041 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
19042 assert it does not return NULL.
19043 (cgraph_update_edges_for_call_stmt): Likewise.
19044 (cgraph_clone_edge): Likewise.
19045 (cgraph_create_virtual_clone): Likewise.
19046 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
19047 instead of cgraph_node.
19048 (cgraph_add_new_function): Call cgraph_create_node or
19049 cgraph_get_create_node instead of cgraph_node.
19050 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
19051 instead of cgraph_node.
19052 (record_eh_tables): Likewise.
19053 (mark_address): Likewise.
19054 (mark_load): Likewise.
19055 (build_cgraph_edges): Call cgraph_get_create_node instead
19057 (rebuild_cgraph_edges): Likewise.
19058 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
19059 instead of cgraph_node.
19060 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
19062 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
19063 cgraph_create_node instead of cgraph_node.
19064 * c-decl.c (finish_function): Call cgraph_get_create_node instead
19066 * lto-cgraph.c (input_node): Likewise.
19067 * lto-streamer-in.c (input_function): Likewise.
19068 * varasm.c (mark_decl_referenced): Likewise.
19069 (assemble_alias): Likewise.
19071 2011-04-12 Martin Jambor <mjambor@suse.cz>
19073 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
19074 instead of cgraph_node and assert it does not return NULL.
19075 * lto-streamer-in.c (lto_read_body): Likewise.
19076 * omp-low.c (new_omp_context): Likewise.
19077 (create_task_copyfn): Likewise.
19078 * tree-emutls.c (lower_emutls_function_body): Likewise.
19079 * matrix-reorg.c (transform_allocation_sites): Likewise.
19081 2011-04-12 Jakub Jelinek <jakub@redhat.com>
19084 * c-typeck.c (build_asm_expr): Error out on attempts to use
19085 void type outputs or inputs for constraints that allow reg or
19086 don't allow memory.
19088 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
19089 Richard Earnshaw <rearnsha@arm.com>
19092 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
19093 to use sign-magnitude offsets. Reject unsupported unaligned
19094 cases. Add detailed description in comments.
19095 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
19096 condition from TARGET_32BIT to TARGET_ARM.
19098 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
19100 * tree.h (struct typed_tree): New.
19101 (struct tree_common): Include it instead of tree_base.
19102 (TREE_TYPE): Update for new location of type field.
19103 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
19104 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
19105 (union tree_node): Add typed field.
19106 * treestruct.def (TS_TYPED): New.
19107 * lto-streamer.c (check_handled_ts_structures): Handle it.
19108 * tree.c (MARK_TS_TYPED): New macro.
19109 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
19111 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
19113 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
19114 (force_nonfallthru): Do not alter the loop nest if no basic block
19117 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
19119 * config/i386/sse.md (VI): New mode iterator.
19120 (SSEMODEI): Remove.
19121 (AVX256MODEI): Ditto.
19122 (AVXMODEF4P): Ditto.
19123 (avxvecpsmode): Ditto.
19124 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
19125 (sse2_andnot<mode>3): New expander.
19126 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
19127 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
19128 (<any_logic:code><mode>3): Use VI mode iterator.
19129 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
19130 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
19131 (*andnottf3): Handle AVX three-operand constraints.
19132 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
19134 2011-04-11 Joseph Myers <joseph@codesourcery.com>
19135 Robert Millan <rmh@gnu.org>
19137 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
19138 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
19139 GNU_USER_DYNAMIC_LINKER64): Define.
19140 (REG_NAME): Don't undefine.
19141 (MD_UNWIND_SUPPORT): Undefine.
19142 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
19143 (REG_NAME): Don't undefine.
19144 (MD_UNWIND_SUPPORT): Undefine.
19145 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
19147 2011-04-11 Joseph Myers <joseph@codesourcery.com>
19149 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
19150 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
19152 2011-04-11 Xinliang David Li <davidxl@google.com>
19154 * value-profile.c (check_ic_target): New function.
19155 (gimple_ic_transform): Sanity check indirect call target.
19156 * gimple-low.c (gimple_check_call_args): Interface change.
19157 (gimple_check_call_matching_types): New function.
19158 * tree-inline.c (tree_can_inline_p): Call new function.
19160 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
19162 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
19163 tree-pretty-print.h & realmpfr.h.
19165 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
19167 PR middle-end/48464
19168 * ira.c (setup_pressure_classes): Fix typo in loop condition.
19169 (setup_allocno_and_important_classes): Ditto.
19171 2011-04-11 Joseph Myers <joseph@codesourcery.com>
19173 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
19174 GNU_USER_DYNAMIC_LINKER.
19175 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
19176 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19177 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
19178 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
19179 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
19180 GNU_USER_TARGET_OS_CPP_BUILTINS.
19181 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
19182 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19183 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
19184 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19185 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
19186 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
19187 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
19188 GNU_USER_TARGET_OS_CPP_BUILTINS.
19189 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19190 GNU_USER_DYNAMIC_LINKER.
19191 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
19192 GNU_USER_TARGET_OS_CPP_BUILTINS.
19193 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
19194 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19195 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
19196 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19197 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
19198 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
19199 GNU_USER_DYNAMIC_LINKER64): Remove.
19200 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
19201 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19202 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19203 GNU_USER_DYNAMIC_LINKER.
19204 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
19205 GNU_USER_TARGET_OS_CPP_BUILTINS.
19206 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
19207 GNU_USER_TARGET_OS_CPP_BUILTINS.
19208 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
19209 to GNU_USER_TARGET_OS_CPP_BUILTINS.
19210 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
19211 GNU_USER_TARGET_OS_CPP_BUILTINS.
19212 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
19213 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
19214 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
19215 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
19216 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19217 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19218 GNU_USER_DYNAMIC_LINKER.
19219 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
19220 GNU_USER_TARGET_OS_CPP_BUILTINS.
19221 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
19222 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19223 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19224 GNU_USER_DYNAMIC_LINKER.
19225 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
19226 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19227 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
19228 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19229 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19230 GNU_USER_DYNAMIC_LINKER.
19231 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
19232 GNU_USER_DYNAMIC_LINKERN32.
19233 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
19234 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
19235 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
19236 GNU_USER_DYNAMIC_LINKER32.
19237 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
19238 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19239 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19240 GNU_USER_DYNAMIC_LINKER.
19241 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
19242 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19243 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
19244 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19245 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
19246 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
19247 GNU_USER_DYNAMIC_LINKER32.
19248 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
19249 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
19250 GNU_USER_DYNAMIC_LINKER.
19251 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
19252 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19253 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
19254 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
19255 GNU_USER_DYNAMIC_LINKER64.
19256 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
19257 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19258 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19259 GNU_USER_DYNAMIC_LINKER.
19260 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
19261 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19262 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19263 GNU_USER_DYNAMIC_LINKER.
19264 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
19265 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19266 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
19267 GNU_USER_DYNAMIC_LINKER32.
19268 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
19269 GNU_USER_DYNAMIC_LINKER64.
19270 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
19271 GNU_USER_DYNAMIC_LINKER64.
19272 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
19273 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19274 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
19275 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19276 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
19278 2011-04-11 Joseph Myers <joseph@codesourcery.com>
19280 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
19281 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
19282 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
19283 GNU_USER_DYNAMIC_LINKER.
19284 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
19285 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
19286 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
19287 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
19288 GNU_USER_DYNAMIC_LINKER64.
19289 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
19290 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
19291 GNU_USER_LINK_EMULATION.
19292 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
19293 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
19294 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
19295 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
19296 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
19297 CPP_SPEC, CC1_SPEC): Remove.
19298 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
19299 (GNU_USER_DYNAMIC_LINKER): Define.
19300 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
19301 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
19302 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
19303 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
19304 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
19305 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
19306 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
19307 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
19308 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
19309 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
19310 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
19311 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
19312 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
19313 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
19314 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
19315 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
19316 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
19317 GNU_USER_DYNAMIC_LINKER.
19318 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
19319 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
19320 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
19321 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
19322 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
19323 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
19324 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
19325 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
19326 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
19327 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
19329 2011-04-11 Kai Tietz <ktietz@redhat.com>
19333 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
19334 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
19336 (ix86_is_msabi_thiscall): Removed.
19337 (ix86_is_type_thiscall): Likewise.
19338 (ix86_get_callcvt): New function.
19339 (ix86_comp_type_attributes): Simplify check.
19340 (ix86_function_regparm): Use ix86_get_callcvt for calling
19341 convention attribute checks.
19342 (ix86_return_pops_args): Likewise.
19343 (ix86_static_chain): Likewise.
19344 (x86_this_parameter): Likewise.
19345 (x86_output_mi_thunk): Likewise.
19346 (ix86_function_type_abi): Optimize check for types without attributes.
19347 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
19348 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
19349 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
19351 (IX86_BASE_CALLCVT): Helper macro.
19352 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
19353 Use ix86_get_callcvt for calling convention attribute checks and avoid
19354 symbol-decoration for stdcall in TARGET_RTD case.
19355 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
19357 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
19360 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
19362 * config/i386/sse.md (VI_128): New mode iterator.
19363 (VI12_128): Rename from SSEMODE12.
19364 (VI14_128): Rename from SSEMODE14.
19365 (VI124_128): New mode iterator.
19366 (VI24_128): Rename from SSEMODE248.
19367 (VI248_128): Rename from SSEMODE248.
19368 (SSEMODE124C8): Remove.
19369 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
19370 (*sse2_<plusminus_insn><mode>3): Merge with
19371 *avx_<plusminus_insn><mode>3.
19372 (*mulv8hi3): Merge with *avx_mulv8hi3.
19373 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
19374 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
19375 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
19376 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
19377 (ashr<mode>3): Merge with *avx_ashr<mode>3.
19378 (lshr<mode>3): Merge with *avx_lshr<mode>3.
19379 (ashl<mode>3): Merge with *avx_ashl<mode>3.
19380 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
19381 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
19382 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19383 (*<smaxmin:code>v8hi3): Ditto.
19384 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
19385 (*<smaxmin:code>v16qi3): Ditto.
19386 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
19387 (*sse2_eq<mode>3): Ditto.
19388 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
19389 (*sse2_gt<mode>3): Ditto.
19390 (vcondv2di): Split out of vcond<mode>.
19391 (vconduv2di): Split out of vcondu<mode>.
19393 2011-04-11 Richard Guenther <rguenther@suse.de>
19395 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
19396 before calling tree_low_cst.
19398 2011-04-11 Richard Guenther <rguenther@suse.de>
19400 * stor-layout.c (layout_type): Compute all array index size operations
19401 in the original type.
19402 (initialize_sizetypes): Add comment.
19403 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
19405 2011-04-11 Joseph Myers <joseph@codesourcery.com>
19407 * common.opt (Tbss=, Tdata=, Ttext=): New options.
19409 2011-04-11 Martin Jambor <mjambor@suse.cz>
19411 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
19412 of cgraph_node, handle NULL return value.
19413 (cgraph_global_info): Likewise.
19414 (cgraph_rtl_info): Likewise.
19415 * tree-inline.c (estimate_num_insns): Likewise.
19416 * gimplify.c (unshare_body): Likewise.
19417 (unvisit_body): Likewise.
19418 (gimplify_body): Likewise.
19419 * predict.c (optimize_function_for_size_p): Likewise.
19420 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
19421 (call_may_clobber_ref_p_1): Likewise.
19422 * varasm.c (function_section_1): Likewise.
19423 (assemble_start_function): Likewise.
19425 2011-04-11 Martin Jambor <mjambor@suse.cz>
19427 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
19429 * final.c (rest_of_clean_state): Likewise.
19430 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
19431 * passes.c (pass_init_dump_file): Likewise.
19432 (execute_all_ipa_transforms): Likewise.
19433 (function_called_by_processed_nodes_p): Likewise.
19434 * predict.c (maybe_hot_frequency_p): Likewise.
19435 (probably_never_executed_bb_p): Likewise.
19436 (compute_function_frequency): Likewise.
19437 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
19438 (unnest_nesting_tree_1): Likewise.
19439 (lower_nested_functions): Likewise.
19440 * tree-optimize.c (execute_fixup_cfg): Likewise.
19441 (tree_rest_of_compilation): Likewise.
19442 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
19443 * tree-sra.c (ipa_early_sra): Likewise.
19444 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
19445 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
19446 * ipa.c (record_cdtor_fn): Likewise.
19447 * ipa-inline.c (cgraph_early_inlining): Likewise.
19448 (compute_inline_parameters_for_current): Likewise.
19449 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19450 * ipa-pure-const.c (local_pure_const): Likewise.
19451 * ipa-split.c (split_function): Likewise.
19452 (execute_split_functions): Likewise.
19453 * cgraphbuild.c (build_cgraph_edges): Likewise.
19454 (rebuild_cgraph_edges): Likewise.
19455 (cgraph_rebuild_references): Likewise.
19456 (remove_cgraph_callee_edges): Likewise.
19457 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
19458 (verify_cgraph_node): Likewise.
19459 (cgraph_analyze_functions): Likewise.
19460 (cgraph_preserve_function_body_p): Likewise.
19461 (save_inline_function_body): Likewise.
19462 (save_inline_function_body): Likewise.
19463 * tree-inline.c (copy_bb): Likewise.
19464 (optimize_inline_calls): Likewise.
19466 2011-04-11 Martin Jambor <mjambor@suse.cz>
19468 PR tree-optimization/48195
19469 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
19470 ipa_check_create_edge_args.
19471 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
19472 ipa_check_create_edge_args.
19473 * ipa-inline.c (inline_generate_summary): Do not call
19474 ipa_check_create_node_params and ipa_check_create_edge_args.
19475 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
19476 ipa_check_create_edge_args.
19478 2011-04-09 Anatoly Sokolov <aesok@post.ru>
19480 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
19482 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
19483 * function.c (record_hard_reg_sets): Likewise.
19484 * ira.c (compute_regs_asm_clobbered): Likewise.
19485 * sched-deps.c (sched_analyze_1): Likewise.
19486 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
19488 2011-04-09 Xinliang David Li <davidxl@google.com>
19490 PR tree-optimization/PR48484
19491 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
19492 has_valid_pred lazily
19494 2011-04-09 Duncan Sands <baldrick@free.fr>
19496 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
19498 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
19500 * combine.c (combine_validate_cost): Adjust comments. Set registered
19501 cost of I0 to zero at the end, if any.
19503 2011-04-08 Xinliang David Li <davidxl@google.com>
19505 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
19506 to insane profile data.
19508 2011-04-08 Xinliang David Li <davidxl@google.com>
19510 * ipa-cp.c (ipcp_update_profiling): Correct
19511 negative scale factor due to insane profile data.
19513 2011-04-08 Xinliang David Li <davidxl@google.com>
19515 * final.c (dump_basic_block_info): New function.
19516 (final): Dump basic block.
19517 (final_scan_insn): Remove old dump.
19519 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
19522 * config.gcc (i386-*-freebsd): Disable unwind table generation for
19525 2011-04-08 Michael Matz <matz@suse.de>
19527 PR middle-end/48389
19528 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
19530 (rebuild_jump_labels): Call rebuild_jump_labels_1.
19531 * rtl.h (rebuild_jump_labels_chain): Declare.
19532 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
19533 insns inserted on edges.
19535 2011-04-08 Joseph Myers <joseph@codesourcery.com>
19537 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
19538 * config/arm/arm-arches.def: New.
19539 * config/arm/arm-opts.h: New.
19540 * config/arm/genopt.sh: New.
19541 * config/arm/arm-tables.opt: New (generated).
19542 * config/arm/arm.c (arm_handle_option, arm_target_help,
19543 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
19544 (all_architectures): Get most table contents from arm-arches.def.
19545 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
19546 arm_selected_tune here.
19547 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
19548 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
19549 (march=, mcpu=, mtune=): Use Enum and Var.
19550 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
19551 (arm.o): Update dependencies.
19553 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
19555 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
19557 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
19558 (write_typed_alloc_defns): Likewise.
19559 (main): Calls write_typed_alloc_defns with output_header.
19561 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
19563 PR inline-asm/48435
19564 * ira-color.c (setup_profitable_hard_regs): Add comments.
19565 Don't take prohibited hard regs into account.
19566 (setup_conflict_profitable_regs): Rename to
19567 get_conflict_profitable_regs.
19568 (check_hard_reg_p): Check prohibited hard regs.
19570 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
19572 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
19573 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
19574 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
19576 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19579 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
19580 move from floating point to shift amount register.
19581 (emit_move_sequence): Remove secondary reload support for floating
19582 point to shift amount amount register copies.
19583 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
19584 amount register copies.
19585 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
19586 register, return false if mode isn't a scalar integer mode.
19587 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
19589 2011-04-08 Richard Guenther <rguenther@suse.de>
19591 * gimple.c (gimple_call_flags): Remove kludge.
19593 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
19595 * sel-sched.c (sel_region_init): Move call to
19596 sel_setup_region_sched_flags after setup_current_loop_nest.
19598 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
19600 PR rtl-optimization/48272
19601 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
19602 init_insn_reg_pressure_info. Adjust a caller.
19603 * sched-int.h (init_insn_reg_pressure_info): Declare.
19604 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
19605 when sched-pressure is enabled.
19607 2011-04-08 Richard Guenther <rguenther@suse.de>
19609 * gimple.c (gimple_set_modified): Do not queue calls to
19610 MODIFIED_NORETURN_CALLS here ...
19611 * tree-ssa-operands.c (update_stmt_operands): ... but here.
19613 2011-04-08 Richard Guenther <rguenther@suse.de>
19616 * toplev.c (lang_dependent_init): Do not open asm_out_file
19617 in WPA mode, nor perform debug machinery initialization.
19618 (finalize): Do not unlink asm_out_file in WPA mode.
19620 2011-04-08 Richard Guenther <rguenther@suse.de>
19622 * gimple.h (gimple_call_fntype): New function.
19623 (gimple_call_return_type): Use it.
19624 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
19625 * gimple-low.c (gimple_check_call_args): Likewise.
19626 * gimple.c (gimple_call_flags): Likewise.
19627 (gimple_call_arg_flags): Likewise.
19628 (gimple_call_return_flags): Likewise.
19629 * tree-cfg.c (verify_gimple_call): Likewise.
19630 (do_warn_unused_result): Likewise.
19631 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
19632 * value-prof.c (gimple_ic_transform): Fix fndecl check.
19634 2011-04-08 Dmitry Melnik <dm@ispras.ru>
19636 PR rtl-optimization/48235
19637 * sel-sched.c (code_motion_process_successors): Recompute the last
19638 insn in basic block if control flow changed.
19639 (code_motion_path_driver): Ditto. Recompute the first insn as well.
19640 Update condition for ilist_remove.
19642 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
19644 PR rtl-optimization/48302
19645 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
19646 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
19647 it to record added preheader blocks.
19648 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
19649 on to sel_add_loop_preheaders.
19650 (sel_region_init): Move call to setup_current_loop_nest after
19653 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
19656 * cfgloop.h (loop_has_exit_edges): New helper.
19657 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
19659 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
19660 that have no exit edges.
19662 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
19664 PR rtl-optimization/48442
19665 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
19666 all callers. Adjust assert.
19668 2011-04-08 Jakub Jelinek <jakub@redhat.com>
19670 PR tree-optimization/48377
19671 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
19672 is_packed to true even for types with smaller TYPE_ALIGN than
19675 2011-04-08 Richard Guenther <rguenther@suse.de>
19678 * doc/tm.texi: Re-generate.
19680 2011-04-08 Wei Guozhi <carrot@google.com>
19683 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
19684 * config/arm/arm.c (arm_attr_length_push_multi): New function.
19685 * config/arm/arm.md (*push_multi): Change the length computation to
19688 2011-04-08 Anatoly Sokolov <aesok@post.ru>
19690 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
19691 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
19692 * doc/tm.texi: Regenerate.
19693 * system.h (ASM_OUTPUT_BSS): Poison.
19694 * varasm.c (asm_output_bss): Remove function.
19695 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
19697 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
19698 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
19699 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
19700 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19702 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19704 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19706 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
19708 2011-04-07 Joseph Myers <joseph@codesourcery.com>
19710 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
19713 2011-04-07 Joseph Myers <joseph@codesourcery.com>
19715 * config/m68k/m68k.c (m68k_handle_option): Don't handle
19716 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
19717 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
19719 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
19720 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
19721 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
19722 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
19723 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
19724 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
19725 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
19726 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
19727 options. Don't map other m68k options manually. Don't handle
19728 old-style options as canonical.
19729 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
19730 * doc/install.texi (m68k-*-*): Document binutils version requirement.
19732 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
19734 * basic-block.h (force_nonfallthru): Move to...
19735 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
19736 (force_nonfallthru): ...here.
19737 * cfghooks.c (force_nonfallthru): New function.
19738 * cfgrtl.c (force_nonfallthru): Rename into...
19739 (rtl_force_nonfallthru): ...this.
19740 (commit_one_edge_insertion): Do not set AUX field.
19741 (commit_edge_insertions): Do not discover new basic blocks.
19742 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
19743 (cfg_layout_rtl_cfg_hooks): Likewise.
19744 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
19745 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
19746 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
19748 2011-04-07 Anatoly Sokolov <aesok@post.ru>
19750 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
19753 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
19755 * config/i386/sse.md: Update copyright year.
19756 (avxcvtvecmode): Remove.
19757 (sse_movhlps): Merge with *avx_movhlps.
19758 (sse_movlhps): Merge with *avx_movlhps.
19759 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
19760 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
19761 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
19762 (sse_loadhps): Merge with *avx_loadhps.
19763 (sse_storelps): Merge with *avx_storelps.
19764 (sse_loadlps): Merge with *avx_loadlps.
19765 (sse_movss): Merge with *avx_movss.
19766 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
19767 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
19768 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
19769 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
19770 (vec_set<mode>_0): Ditto.
19771 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
19772 (sse4_1_insertps): Merge with *avx_insertps.
19773 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
19774 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
19775 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
19776 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
19777 (sse2_storehpd): Merge with *avx_storehpd.
19778 (sse2_loadhpd): Merge with *avx_loadhpd.
19779 (sse2_loadlpd): Merge with *avx_loadlpd.
19780 (sse2_movsd): Merge with *avx_movsd.
19781 (*vec_concatv2df): Merge with *vec_concatv2df.
19783 2011-04-07 Jakub Jelinek <jakub@redhat.com>
19786 * combine.c (combine_instructions): Add last_combined_insn,
19787 update it if insn is after it, pass it to all try_combine calls.
19788 (try_combine): Add last_combined_insn parameter, pass it instead of
19789 i3 to propagate_for_debug.
19791 2011-04-07 Nick Clifton <nickc@redhat.com>
19793 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
19794 to handle MDR <-> data register transfers.
19795 (movhi_internal): Likewise.
19797 2011-04-07 Alan Modra <amodra@gmail.com>
19799 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
19800 previous stack info.
19802 2011-04-07 Tom de Vries <tom@codesourcery.com>
19805 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
19806 flow_find_cross_jump. Swap variables to implement backward replacement.
19807 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
19809 2011-04-07 Tom de Vries <tom@codesourcery.com>
19812 * cfgcleanup.c (walk_to_nondebug_insn): New function.
19813 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
19815 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
19816 src1 or src2. Redirect edges to the last basic block. Update
19817 frequency and count on multiple basic blocks in case of fallthru.
19819 2011-04-07 Tom de Vries <tom@codesourcery.com>
19822 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
19824 (old_insns_match_p): Change return type. Replace return false/true
19825 with return dir_none/dir_both. Use can_replace_by.
19826 (flow_find_cross_jump): Add dir_p parameter. Init replacement
19827 direction from dir_p. Register replacement direction in dir, last_dir
19828 and afterlast_dir. Handle new return type of old_insns_match_p using
19829 merge_dir. Return replacement direction in dir_p.
19830 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
19831 return type of old_insns_match_p.
19832 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
19833 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
19834 flow_find_cross_jump.
19835 * basic-block.h (enum replace_direction): New type.
19836 (flow_find_cross_jump): Add parameter to declaration.
19838 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
19840 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
19841 (AVXMODEDCVTPS2DQ): Ditto.
19842 (VEC_FLOAT_MODE): Ditto.
19843 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
19844 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
19845 (<any_logic:code><mode>3): Use VF mode iterator.
19846 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
19847 Use VF mode iterator.
19848 (copysign<mode>3): Use VF mode iterator.
19849 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
19850 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
19851 (*<any_logic:code><MODEF:mode>3): Merge with
19852 *avx_<any_logic:code><MODEF:mode>3.
19853 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
19854 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
19855 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
19856 (avx_cvtdq2ps<avxmodesuffix>): Remove.
19857 (sse2_cvtdq2ps): Use %v modifier.
19858 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
19859 (avx_cvtps2dq<avxmodesuffix>): Remove.
19860 (sse2_cvtps2dq): Use %v modifier.
19861 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
19862 (avx_cvttps2dq<avxmodesuffix>): Remove.
19863 (sse2_cvttps2dq): Use %v modifier.
19864 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
19865 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
19866 (sse2_cvtsd2siq): Fix insn template.
19867 (sse2_cvtsd2siq_2): Ditto.
19868 (sse2_cvttsd2siq): Ditto.
19869 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
19870 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
19872 2011-04-06 Joseph Myers <joseph@codesourcery.com>
19874 * gcov-io.c: Use GCC Runtime Library Exception.
19876 2011-04-06 Jakub Jelinek <jakub@redhat.com>
19879 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
19880 as base_reg whatever register reg has been eliminated to, instead
19881 of hardcoding STACK_POINTER_REGNUM.
19883 2011-04-06 Joseph Myers <joseph@codesourcery.com>
19885 * doc/tm.texi.in: Document C target hooks as separate from general
19887 * doc/tm.texi: Regenerate.
19888 * genhooks.c (struct hook_desc): Add docname field.
19889 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
19891 (hook_array): Include c-target.def.
19892 (emit_documentation): Use docname field in output.
19893 (emit_init_macros): Take docname argument. Only emit definitions
19894 for hooks matching docname.
19895 (main): Expect additional arguments in all cases. Pass argument
19896 to emit_init_macros.
19897 * target.def: Move initial macro definitions and comments to
19898 target-hooks-macros.h.
19899 (gcc_targetcm): Move to c-family/c-target.def.
19900 * target.h (targetcm): Move declaration to c-family/c-target.h.
19901 * targhooks.c (default_handle_c_option): Move to
19903 * targhooks.h (default_handle_c_option): Move declaration to
19904 c-family/c-common.h.
19905 * target-hooks-macros.h: New file.
19906 * config.gcc (target_has_targetcm): Define and use to add to
19907 c_target_objs and cxx_target_objs.
19908 * config/default-c.c: New file.
19909 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
19910 of target.h and target-def.h.
19911 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
19912 (darwin_objc_construct_string, darwin_cfstring_ref_p,
19913 darwin_check_cfstring_format_arg): Make static.
19914 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
19915 TARGET_STRING_OBJECT_REF_TYPE_P,
19916 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
19917 * config/darwin-protos.h (darwin_objc_construct_string,
19918 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
19920 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
19921 TARGET_STRING_OBJECT_REF_TYPE_P,
19922 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
19923 * config/t-darwin (darwin-c.o): Update dependencies.
19924 * system.h (TARGET_HAS_TARGETCM): Poison.
19925 * Makefile.in (TARGET_H): Update.
19926 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
19927 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
19928 (default-c.o): New target.
19929 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
19930 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
19931 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
19933 (build/genhooks.o): Update dependencies.
19935 2011-04-06 Richard Guenther <rguenther@suse.de>
19937 * ipa-inline.c (enum inlining_mode): Remove.
19938 (cgraph_flatten): Use some other token.
19939 (cgraph_edge_early_inlinable_p): New function, split out from ...
19940 (cgraph_perform_always_inlining): New function, split out from ...
19941 (cgraph_decide_inlining_incrementally): ... here.
19942 (cgraph_mark_inline_edge): Adjust.
19943 (cgraph_early_inlining): Re-structure.
19944 (pass_early_inline): Require SSA form.
19946 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
19947 Julian Brown <julian@codesourcery.com>
19948 Mark Shinwell <shinwell@codesourcery.com>
19950 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
19951 LO_REGS only for Thumb-1.
19952 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
19953 be used in short instructions when optimising for size on Thumb-2.
19955 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
19957 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
19958 associated with user returns to be preserved.
19960 2011-04-06 Tristan Gingold <gingold@adacore.com>
19962 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
19963 symbol_queue_size, DBXOUT_DECR_NESTING,
19964 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
19965 if XCOFF_DEBUGGING_INFO.
19967 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
19969 * config/i386/i386.md (attribute isa): New.
19970 (attribute enabled): New.
19971 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
19972 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
19973 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
19974 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
19975 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
19976 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19977 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
19978 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
19980 * config/i386/sse.md (VF): New mode iterator.
19984 (SSEMODEF4): Remove.
19985 (attribute sse): Handle V8SF and V4DF modes.
19986 (<absneg:code><mode>2): Use VF mode iterator.
19987 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
19989 (<plusminus_insn><mode>3): Use VF mode iterator.
19990 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
19991 Use VF mode iterator.
19992 (<sse>_vm<plusminus_insn><mode>3): Merge with
19993 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
19994 (mul<mode>3): Use VF mode iterator.
19995 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
19996 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
19998 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
19999 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
20000 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
20001 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
20003 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
20004 Use VF1 mode iterator.
20005 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
20006 (sqrt<VF2:mode>2): New expander.
20007 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
20008 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
20009 and sqrtv2df2. Use VF mode iterator.
20010 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
20012 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
20013 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
20014 Use VF1 mode iterator.
20015 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
20016 (<smaxmin:code><mode>3): Use VF mode iterator.
20017 (*<smaxmin:code><mode>3_finite): Merge with
20018 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
20019 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
20020 (<sse>_vm<smaxmin:code><mode>2): Merge with
20021 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
20022 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
20024 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
20026 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
20027 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
20028 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
20029 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
20030 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
20032 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
20033 Use VF_128 mode iterator.
20034 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
20036 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
20037 VF_128 mode iterator.
20038 (vcond<mode>): Use VF mode iterator.
20039 * config/i386/predicates.md (sse_comparison_operator): Merge with
20040 avx_comparison_float_operator. Do not declare as special_predicate.
20041 * config/i386/i386.c (struct builtin_description): Update for renamed
20043 (ix86_expand_args_builtin): Ditto.
20044 (ix86_expand_sse_compare_mask): Ditto.
20046 2011-04-06 Richard Guenther <rguenther@suse.de>
20048 * tree-inline.c (estimate_num_insns): For calls simply account
20049 for all passed arguments and a used return value.
20051 2011-04-06 Richard Guenther <rguenther@suse.de>
20053 PR tree-optimization/47663
20054 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
20055 call_stmt_time fields.
20056 (cgraph_edge_inlinable_p): Declare.
20057 (cgraph_edge_recursive_p): New inline function.
20058 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
20059 (cgraph_clone_edge): Copy it.
20060 * ipa-inline.c (cgraph_estimate_edge_time): New function.
20061 Account for call stmt time.
20062 (cgraph_estimate_time_after_inlining): Take edge argument.
20063 (cgraph_estimate_edge_growth): Account call stmt size.
20064 (cgraph_estimate_size_after_inlining): Take edge argument.
20065 (cgraph_mark_inline_edge): Adjust.
20066 (cgraph_check_inline_limits): Likewise.
20067 (cgraph_recursive_inlining_p): Remove.
20068 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
20069 (cgraph_decide_recursive_inlining): Take edge argument and
20071 (cgraph_decide_inlining_of_small_functions): Do not avoid
20072 diags for recursive inlining here.
20073 (cgraph_flatten): Adjust.
20074 (cgraph_decide_inlining_incrementally): Likewise.
20075 (estimate_function_body_sizes): Remove call cost handling.
20076 (compute_inline_parameters): Initialize caller edge call costs.
20077 (cgraph_estimate_edge_growth): New function.
20078 (cgraph_estimate_growth): Use it.
20079 (cgraph_edge_badness): Likewise.
20080 (cgraph_check_inline_limits): Take an edge argument.
20081 (cgraph_decide_inlining_of_small_functions): Adjust.
20082 (cgraph_decide_inlining): Likewise.
20083 * tree-inline.c (estimate_num_insns): Only account for call
20084 return value if it is used.
20085 (expand_call_inline): Avoid diagnostics on recursive inline
20087 * lto-cgraph.c (lto_output_edge): Output edge call costs.
20088 (input_edge): Input edge call costs.
20090 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20092 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
20094 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
20096 * doc/invoke.texi (Spec Files): Fix typo.
20098 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
20100 * profile.c (branch_prob): Move declaration of local variable. Remove
20101 obsolete ??? comment. Expand the location explicitly instead of using
20102 the LOCATION_FILE and LOCATION_LINE macros.
20104 2011-04-06 Wei Guozhi <carrot@google.com>
20107 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
20108 (arm_cond_branch): Likewise.
20109 (arm_cond_branch_reversed): Likewise.
20110 (arm_jump): Likewise.
20111 (push_multi): Likewise.
20112 * config/arm/constraints.md (Py): New constraint.
20114 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
20117 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
20119 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
20120 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
20121 #ifdef DBX_DEBUGGING_INFO.
20123 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
20126 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
20127 if old and new states differ.
20129 2011-04-05 Joseph Myers <joseph@codesourcery.com>
20131 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
20132 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
20133 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
20134 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
20135 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
20136 mcfv4e): Use Alias.
20137 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
20138 ColdFire options to -mcpu= options.
20140 2011-04-05 Jeff Law <law@redhat.com>
20142 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
20143 check if BB is a successor of LOOP->header and return
20144 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
20146 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
20148 * cprop.c (struct reg_use): Remove.
20149 (reg_use_table): Make an array of RTX.
20150 (find_used_regs, constprop_register, local_cprop_pass,
20151 bypass_block): Simplify users of reg_use_table.
20152 (cprop_insn): Likewise. Iterate if copy propagation succeeded
20153 on one of the uses found by find_used_regs.
20155 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
20158 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
20161 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
20163 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
20165 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
20167 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
20169 PR middle-end/48441
20170 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
20172 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
20174 * combine.c: Include obstack.h.
20175 (struct insn_link): Define.
20176 (uid_log_links): Adjust type.
20177 (FOR_EACH_LOG_LINK): New macro.
20178 (insn_link_obstack): Declare.
20179 (alloc_insn_link): Define.
20180 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
20181 type of link variables.
20182 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
20183 (try_combine, record_promoted_values, distribute_notes): Likewise.
20184 (distribute_links): Likewise. Tweak prototype.
20185 (clear_log_links): Delete.
20186 (adjust_for_new_dest): Call alloc_insn_link.
20187 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
20189 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
20191 * gcse.c (modify_mem_list): Convert to an array of VECs.
20192 (canon_modify_mem_list, compute_transp): Tweak formatting.
20193 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
20194 (load_killed_in_block_p): Likewise.
20195 (record_last_mem_set_info): Likewise.
20196 (clear_modify_mem_tables): Likewise.
20198 2011-04-05 Tom de Vries <tom@codesourcery.com>
20200 PR middle-end/48461
20201 * function.c (emit_use_return_register_into_block): Only define if
20204 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
20206 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
20208 2011-04-05 Joseph Myers <joseph@codesourcery.com>
20210 * config/rx/rx-opts.h: New.
20211 * config/rx/rx.c (rx_cpu_type): Remove.
20212 (rx_handle_option): Don't assert that global structures are in
20213 use. Access variables via opts pointer. Defer most handling of
20214 OPT_mint_register_. Use error_at.
20215 (rx_option_override): Handle deferred OPT_mint_register_ here.
20216 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
20217 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
20218 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
20219 (rx_cpu_types): New Enum and EnumValue entries.
20220 (mint-register=): Use Defer and use Var accordingly.
20222 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
20224 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
20225 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
20226 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
20228 (debug_free_queue, debug_nesting, symbol_queue_index):
20230 * dbxout.c: ...to here. Make static.
20232 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
20234 * gcse.c (modify_pair): Define. Define a VEC of it.
20235 (canon_modify_mem_list): Convert to an array of VECs.
20236 (free_insn_expr_list_list): Delete.
20237 (clear_modify_mem_tables): Call VEC_free instead.
20238 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
20239 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
20240 (canon_list_insert, compute_transp): Likewise.
20242 2011-04-05 Tom de Vries <tom@codesourcery.com>
20245 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
20248 2011-04-05 Tom de Vries <tom@codesourcery.com>
20251 * function.c (emit_use_return_register_into_block): New function.
20252 (thread_prologue_and_epilogue_insns): Use
20253 emit_use_return_register_into_block.
20255 2011-04-05 Tom de Vries <tom@codesourcery.com>
20258 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
20261 2011-04-05 Tom de Vries <tom@codesourcery.com>
20263 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
20265 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
20267 * config/arm/arm.md (define_constants for unspec): Replace with
20269 (define_constants for unspecv): Replace with define_c_enum.
20270 * config/arm/neon.md (define_constants for unspec): Replace with
20273 2011-04-04 Richard Henderson <rth@redhat.com>
20276 * dwarf2out.c (output_line_info): Always emit line info from
20277 at least one section.
20278 (dwarf2out_init): Create text_section_line_info here ...
20279 (set_cur_line_info_table): ... not here.
20281 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
20284 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
20287 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
20289 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
20291 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
20292 (expr_equiv_p): Remove.
20293 (insert_set_in_table): Look at <dest, src> pair instead of expr.
20294 (hash_scan_set): Update call to insert_set_in_table.
20295 (dump_hash_table): Dump <dest, src> pair.
20296 (lookup_set): Simplify. Lookup <dest, src> pair.
20297 (compute_transp): Remove, fold heavily simplified code into...
20298 (compute_local_properties): ...here. Expect COMP and TRANSP
20300 (find_avail_set): Take set directly from struct expr.
20301 (find_bypass-set): Likewise.
20302 (bypass_block): Likewise.
20303 (cprop_insn): Likewise. Remove redundant INSN_P test.
20305 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
20306 checks on form of COND from find_implicit_sets to here.
20307 (find_implicit_sets): Cleanup control flow. Split critical edges
20308 if it exposes implicit sets. Allocate/resize implicit_sets as
20310 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
20311 changed something. Run df_analyze after find_implicit_sets if any
20312 edges were split. Do not allocate implicit_sets here.
20314 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
20315 (gcse_obstack): Renamed to cprop_obstack.
20316 (GNEW, GNEWVEC, GNEWVAR): Remove.
20318 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
20319 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
20320 (gcse_alloc): Likewise, and rename to cprop_alloc.
20321 (alloc_gcse_men, free_gcse_mem): Remove.
20322 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
20323 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
20324 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
20326 * cprop.c (oprs_not_set_p): Remove.
20327 (mark_set, mark_clobber): Remove.
20328 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
20329 (reg_not_set_p): New function.
20330 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
20331 (cprop_insn): Likewise.
20332 (cprop_jump): Use FOR_EACH_EDGE.
20334 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
20337 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
20338 (rank_for_schedule): Use scheduled_insns vector instead of
20339 last_scheduled_insn.
20340 (ok_for_early_queue_removal): Likewise.
20341 (queue_to_ready): Search forward in nonscheduled_insns_begin if
20343 (choose_ready): Likewise.
20344 (commit_schedule): Use VEC_iterate.
20345 (schedule_block): Initialize nonscheduled_insns_begin. If we have
20346 a dbg_cnt, use it and ensure the first insn is in the ready list.
20347 (haifa_sched_init): Allocate scheduled_insns.
20348 (sched_extend_ready_list): Don't allocate it; reserve space.
20349 (haifa_sched_finish): Free it.
20351 2011-04-04 Joseph Myers <joseph@codesourcery.com>
20353 * optc-gen.awk: Always remove type from Variable entry before
20354 recording in var_seen.
20356 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
20358 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
20359 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
20360 call to tidy_fallthru_edges.
20362 2011-04-04 Joseph Myers <joseph@codesourcery.com>
20364 * doc/options.texi (ToLower): Document.
20365 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
20366 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
20367 * opts.h (cl_option): Add cl_tolower field.
20368 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
20369 arguments with lowercase strings.
20370 * config/rx/rx.opt (mcpu=): Add ToLower.
20371 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
20374 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
20376 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
20378 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
20380 * config/vax/vax.c: Include reload.h.
20382 2011-04-04 Anatoly Sokolov <aesok@post.ru>
20384 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
20385 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
20386 (sparc_preferred_reload_class): New function.
20388 2011-04-04 Jakub Jelinek <jakub@redhat.com>
20391 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
20392 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
20394 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
20396 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
20397 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
20399 2011-04-03 Anatoly Sokolov <aesok@post.ru>
20401 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
20402 (ASM_OUTPUT_ALIGNED_BSS): Define.
20404 2011-04-03 Michael Matz <matz@suse.de>
20406 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
20407 and next_slot members.
20408 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
20409 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
20410 (lto_streamer_cache_append): Declare.
20411 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
20412 unsigned index, remove offset parameter, ensure that we append
20413 or update existing entries.
20414 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
20415 parameter, update next_slot for append.
20416 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
20418 (lto_streamer_cache_insert_at): Likewise.
20419 (lto_streamer_cache_append): New function.
20420 (lto_streamer_cache_lookup): Use unsigned index.
20421 (lto_streamer_cache_get): Likewise.
20422 (lto_record_common_node): Don't test tree_node_can_be_shared.
20423 (preload_common_node): Adjust call to lto_streamer_cache_insert.
20424 (lto_streamer_cache_delete): Don't free offsets member.
20425 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
20426 (lto_output_string_with_length): Use lto_output_data_stream.
20427 (lto_output_tree_header): Remove ix parameter, don't write it.
20428 (lto_output_builtin_tree): Likewise.
20429 (lto_write_tree): Adjust callers to above, don't track and write
20430 offset, write unsigned index.
20431 (output_unreferenced_globals): Don't emit all global vars.
20432 (write_global_references): Use unsigned indices.
20433 (lto_output_decl_state_refs): Likewise.
20434 (write_symbol): Likewise.
20435 * lto-streamer-in.c (lto_input_chain): Move earlier.
20436 (input_function): Use unsigned index.
20437 (input_alias_pairs): Don't read and then ignore all global vars.
20438 (lto_materialize_tree): Remove ix_p parameter, don't read index,
20439 don't pass it back, use lto_streamer_cache_append.
20440 (lto_register_var_decl_in_symtab): Use unsigned index.
20441 (lto_register_function_decl_in_symtab): Likewise.
20442 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
20444 (lto_get_builtin_tree): Don't read index, use
20445 lto_streamer_cache_append.
20446 (lto_read_tree): Adjust call to lto_materialize_tree.
20448 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
20449 don't use function calls in arguments to MIN.
20451 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
20454 * gimple.c (gimple_type_leader_entry): Mark deletable.
20456 2011-04-03 Alan Modra <amodra@gmail.com>
20458 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
20460 2011-04-03 Michael Matz <matz@suse.de>
20462 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
20464 * tree.h (tree_decl_non_common.vindex): Adjust comment.
20466 2011-04-03 Michael Matz <matz@suse.de>
20468 * cgraphbuild.c (record_reference): Canonicalize constructor values.
20469 * gimple-fold.c (canonicalize_constructor_val): Accept being called
20470 without function context.
20471 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
20472 current_function_decl and cfun.
20474 2011-04-03 Michael Matz <matz@suse.de>
20476 * tree.c (decl_init_priority_insert): Don't create entry for
20478 (decl_fini_priority_insert): Ditto.
20479 (fields_compatible_p, find_compatible_field): Remove.
20480 * tree.h (fields_compatible_p, find_compatible_field): Remove.
20481 * gimple.c (gimple_compare_field_offset): Adjust block comment.
20483 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
20485 * combine.c (try_combine): Remove useless local variable.
20487 2011-04-03 Richard Guenther <rguenther@suse.de>
20488 Ira Rosen <ira.rosen@linaro.org>
20490 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
20491 non-variable offsets and compare the remaining bases of the two
20492 accesses instead of looking for exact same data-ref.
20494 2011-04-02 Kai Tietz <ktietz@redhat.com>
20497 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
20499 * i386.c (ix86_is_msabi_thiscall): New helper function.
20500 (ix86_is_type_thiscall): New helper function.
20501 (ix86_comp_type_attributes): Handle thiscall for method-functions
20503 (init_cumulative_args): Likewise.
20504 (find_drap_reg): Likewise.
20505 (ix86_static_chain): Likewise.
20506 (x86_this_parameter): Likewise.
20507 (x86_output_mi_thunk): Likewise.
20509 2011-04-01 Olivier Hainque <hainque@adacore.com>
20510 Nicolas Setton <setton@adacore.com>
20511 Eric Botcazou <ebotcazou@adacore.com>
20513 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
20514 (add_gnat_descriptive_type_attribute): New function.
20515 (gen_array_type_die): Call it.
20516 (gen_enumeration_type_die): Likewise.
20517 (gen_struct_or_union_type_die): Likewise.
20518 (modified_type_die): Likewise.
20519 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
20520 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
20521 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
20523 2011-04-01 Jakub Jelinek <jakub@redhat.com>
20526 * dwarf2out.c (resolve_addr): Don't call force_decl_die
20527 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
20530 2011-03-17 Richard Guenther <rguenther@suse.de>
20533 * lto-cgraph.c (input_overwrite_node): Clear the abstract
20534 origin for decls in other ltrans units.
20535 (input_varpool_node): Likewise.
20537 2011-04-01 Jakub Jelinek <jakub@redhat.com>
20539 PR middle-end/48335
20540 * expr.c (expand_assignment): Handle all possibilities
20541 if TO_RTX is CONCAT.
20542 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
20543 (store_split_bit_field): If SUBREG_REG (op0) or
20544 op0 itself has smaller mode than word, return it
20545 for offset 0 and const0_rtx for out-of-bounds stores.
20546 If word is const0_rtx, skip it.
20548 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
20550 * config/h8300/h8300.c (print_operand_address): Rename to...
20551 (h8300_print_operand_address): ...this. Make static. Adjust comments.
20552 Call h8300_print_operand and h8300_print_operand_address instead of
20553 print_operand and print_operand_address. Declare.
20554 (print_operand): Renake to...
20555 (h8300_print_operand): ...this. Make static. Adjust comments.
20556 Call h8300_print_operand instead of print_operand. Declare.
20557 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
20558 (h8300_register_move_cost): Likewise.
20559 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
20560 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
20561 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
20562 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
20563 * config/h8300/h8300-protos.h (print_operand): Delete.
20564 (print_operand_address): Delete.
20566 2011-04-01 Richard Henderson <rth@redhat.com>
20569 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
20570 in strict mode before dwarf4. Re-order tests to early out
20571 before switching sections.
20573 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
20575 * config/h8300/constraints.md: New file.
20576 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
20577 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
20578 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
20579 * config/h8300/predicates.md (bit_operand): Likewise.
20580 (incdec_operand): Use satisfies_constraint_M and
20581 satisfies_constraint_O. Don't use C code block.
20582 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
20583 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
20584 (compute_mov_length): Use satisfies_constraint_G.
20585 (fix_bit_operand): Use satisfies_constraint_U.
20586 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
20587 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
20588 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
20589 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
20590 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
20591 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
20592 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20593 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
20594 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
20595 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
20596 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
20597 (EXTRA_MEMORY_CONSTRAINT): Delete.
20599 2011-04-01 Andrew Pinski <pinskia@gmail.com>
20600 Michael Meissner <meissner@linux.vnet.ibm.com>
20603 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
20604 operands, as per the specifications.
20606 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
20607 (vec_extract_evenv4sf): Ditto.
20608 (vec_extract_evenv8hi): Ditto.
20609 (vec_extract_evenv16qi): Ditto.
20610 (vec_extract_oddv4si): Ditto.
20612 2011-03-31 Mark Wielaard <mjw@redhat.com>
20614 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
20615 high_pc attribute if the CU has no associated code. Only output
20616 DW_AT_entry_pc for CU if not generating strict dwarf and
20619 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
20621 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
20622 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
20624 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
20625 * final.c (final_start_function): Call the new function rather
20626 than using a NULL argument for dwarf2out_frame_debug.
20628 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
20629 that contains the prologue.
20631 * haifa-sched.c (queue_insn): New arg REASON. All callers
20632 changed. Print it in debugging output.
20634 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
20636 * sched-ebb.c (begin_schedule_ready): Remove second argument.
20637 Split most of the code into...
20638 (begin_move_insn): ... here. New function.
20639 (ebb_sched_info): Add a pointer to it.
20640 * haifa-sched.c (scheduled_insns): New static variable.
20641 (sched_extend_ready_list): Allocate it.
20642 (schedule_block): Use it to record the order of scheduled insns.
20643 Perform RTL changes to move insns only after all scheduling
20644 decisions have been made.
20645 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
20646 begin_move_insn field.
20647 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
20648 * sched-int.h (struct haifa_sched_info): Remove second argument
20649 from begin_schedule_ready hook. Add new member begin_move_insn.
20650 * sched-rgn.c (begin_schedule_ready): Remove second argument.
20651 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
20653 * haifa-sched.c (prune_ready_list): New function, broken out of
20655 (schedule_block): Use it.
20657 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20659 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
20661 2011-04-01 Kai Tietz <ktietz@redhat.com>
20663 * config.gcc (*-*-mingw*): Allow as option the
20664 posix threading model.
20665 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
20666 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
20668 (CPP_SPEC): Add pthread/no-pthread handling.
20669 (LIB_SPEC): Likewise.
20670 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
20671 (LIB_SPEC): Likewise.
20672 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
20673 flag to pass -pthread option for shared libgcc build.
20674 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
20675 for shared libgcc build.
20676 * config/i386/t-mingw-pthread: New file.
20677 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
20678 New define to enable use of library pthread by default.
20679 * config/i386/mingw.opt (pthread): New driver option.
20680 (no-pthread): New driver option.
20681 * config/i386/cygming.opt: Make sure trailing empty line is retained.
20682 * config/i386/mingw-w64.opt: Likewise.
20684 2011-04-01 Gary Funck <gary@intrepid.com>
20686 * c-decl.c (grokdeclarator): Fix formatting.
20688 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
20690 * expr.c (emit_block_move_via_movmem): Use n_generator_args
20691 instead of n_operands.
20692 (set_storage_via_setmem): Likewise.
20693 * optabs.c (maybe_gen_insn): Likewise.
20694 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
20695 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
20696 (mips_expand_builtin_direct): Likewise.
20697 * config/spu/spu.c (expand_builtin_args): Likewise.
20699 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
20701 * recog.h (insn_data_d): Add n_generator_args.
20702 * genoutput.c (data): Likewise.
20703 (output_insn_data): Print it.
20704 (max_opno, num_dups): Delete.
20705 (scan_operands): Just fill in "d->operand[...]".
20706 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
20708 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
20710 * gensupport.h (pattern_stats): New structure.
20711 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
20712 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
20713 (max_operand_1, max_operand_vec): Delete.
20714 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
20716 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
20718 * emit-rtl.c (emit_pattern_after_setloc): New function.
20719 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
20720 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
20721 (emit_pattern_after): New function.
20722 (emit_insn_after, emit_jump_insn_after): Call it.
20723 (emit_call_insn_after, emit_debug_insn_after): Likewise.
20724 (emit_pattern_before_setloc): New function.
20725 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
20726 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
20728 (emit_pattern_before): New function.
20729 (emit_insn_before, emit_jump_insn_before): Call it.
20730 (emit_call_insn_before, emit_debug_insn_before): Likewise.
20732 2011-03-31 Richard Henderson <rth@redhat.com>
20734 * dwarf2out.c (dw_separate_line_info_ref): Remove.
20735 (dw_separate_line_info_entry): Remove.
20736 (enum dw_line_info_opcode): New.
20737 (dw_line_info_entry): Use it.
20738 (dw_line_info_table, dw_line_info_table_p): New.
20739 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
20740 (line_info_table, line_info_label_num): Remove.
20741 (line_info_table_in_use): Remove.
20742 (separate_line_info_table): Remove.
20743 (separate_line_info_table_allocated): Remove.
20744 (separate_line_info_table_in_use): Remove.
20745 (LINE_INFO_TABLE_INCREMENT): Remove.
20746 (line_info_label_num): New.
20747 (cur_line_info_table): New.
20748 (text_section_line_info, cold_text_section_line_info): New.
20749 (separate_line_info): New.
20750 (SEPARATE_LINE_CODE_LABEL): Remove.
20751 (print_dwarf_line_table): Remove.
20752 (debug_dwarf): Don't dump it.
20753 (output_one_line_info_table): New.
20754 (output_line_info): Use it.
20755 (new_line_info_table): New.
20756 (set_cur_line_info_table): New.
20757 (dwarf2out_switch_text_section): Use it.
20758 (dwarf2out_begin_function): Likewise.
20759 (push_dw_line_info_entry): New.
20760 (dwarf2out_source_line): Rewrite for new line info tables.
20761 (dwarf2out_init): Remove dead initailizations.
20763 2011-03-31 Joseph Myers <joseph@codesourcery.com>
20765 * opts.h (cl_option): Add comments to fields. Add bit-fields for
20767 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
20768 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
20769 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
20770 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
20771 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
20772 * opt-functions.awk (flag_init, switch_bit_fields): New.
20773 (switch_flags): Don't handle flags moved to bit-fields. Don't
20774 generate CL_MISSING_OK or CL_SAVE.
20775 * optc-gen.awk: Update to generate bit-field output as well as
20777 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
20778 bit-field instead of CL_REJECT_DRIVER flag.
20779 * opts-common.c (generate_canonical_option,
20780 decode_cmdline_option): Use bit-fields instead of CL_* flags.
20781 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
20782 instead of CL_REJECT_NEGATIVE flag.
20783 * toplev.c (print_switch_values): Use cl_report bit-field instead
20786 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
20788 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
20789 a zero minimum index only if it is redundant.
20791 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
20793 PR rtl-optimization/48381
20794 * ira-color.c (assign_hard_reg): Use hard reg set intersection
20795 instead of ira_class_hard_reg_index for calculating conflicting
20798 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
20800 * cprop.c: Clean up hash table building.
20801 (reg_avail_info): Remove.
20802 (oprs_available_p): Remove.
20803 (record_last_reg_set_info): Remove.
20804 (record_last_set_info): Remove.
20805 (reg_available_p): New function.
20806 (gcse_constant_p): Do not treat unfolded conditions as constants.
20807 (make_set_regs_unavailable): New function.
20808 (hash_scan_set): Simplify with new reg_available_p.
20809 (compute_hash_table_work): Traverse insns stream only once.
20810 Do not compute reg_avail_info. Traverse insns in reverse order.
20811 Record implicit sets after recording explicit sets from the block.
20813 2011-03-31 Michael Matz <matz@suse.de>
20815 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
20817 2011-03-31 Anatoly Sokolov <aesok@post.ru>
20819 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
20820 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
20821 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20822 (h8300_mode_dependent_address_p): New function.
20823 (h8300_get_index): Make static.
20825 2011-03-31 Jeff Law <law@redhat.com>
20827 * reload1.c (elimination_effects): Fix typo in recent change.
20829 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
20830 typo potentially leading to null pointer dereference.
20832 * caller-save.c (new_saved_hard_reg): Eliminate return value.
20833 (setup_save_areas): Corresponding changes to avoid useless
20836 * jump.c (reversed_comparison_code_parts): Avoid successive return
20837 statements when REVERSE_CONDITION is defined.
20839 * expr.c (expand_assignment): Avoid useless assignments.
20840 (expand_expr_real_1): Likewise.
20841 (expand_expr_real_2): Avoid useless statements.
20843 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
20845 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
20847 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
20850 * stmt.c (expand_expr_stmt): Avoid useless assignment.
20852 2011-03-31 Joseph Myers <joseph@codesourcery.com>
20855 * doc/tm.texi.in (TARGET_VERSION): Remove.
20856 * doc/tm.texi: Regenerate.
20857 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
20858 * collect2.c (main): Don't use TARGET_VERSION.
20859 * mips-tdump.c (main): Don't use TARGET_VERSION.
20860 * mips-tfile.c (main): Don't use TARGET_VERSION.
20861 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
20862 * config/rs6000/vxworksae.h: Remove.
20863 * config/alpha/alpha.h (TARGET_VERSION): Remove.
20864 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
20865 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
20866 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
20867 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
20868 * config/arm/arm.h (TARGET_VERSION): Remove.
20869 * config/arm/coff.h (TARGET_VERSION): Remove.
20870 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
20871 * config/arm/elf.h (TARGET_VERSION): Remove.
20872 * config/arm/freebsd.h (TARGET_VERSION): Remove.
20873 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
20874 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
20875 * config/arm/pe.h (TARGET_VERSION): Remove.
20876 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
20877 * config/arm/semi.h (TARGET_VERSION): Remove.
20878 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
20879 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
20880 * config/arm/vxworks.h (TARGET_VERSION): Remove.
20881 * config/avr/avr.h (TARGET_VERSION): Remove.
20882 * config/bfin/bfin.h (TARGET_VERSION): Remove.
20883 * config/fr30/fr30.h (TARGET_VERSION): Remove.
20884 * config/frv/frv.h (TARGET_VERSION): Remove.
20885 * config/h8300/h8300.h (TARGET_VERSION): Remove.
20886 * config/i386/cygwin.h (TARGET_VERSION): Remove.
20887 * config/i386/darwin.h (TARGET_VERSION): Remove.
20888 * config/i386/darwin64.h (TARGET_VERSION): Remove.
20889 * config/i386/djgpp.h (TARGET_VERSION): Remove.
20890 * config/i386/freebsd.h (TARGET_VERSION): Remove.
20891 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
20892 * config/i386/gnu.h (TARGET_VERSION): Remove.
20893 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
20894 * config/i386/i386elf.h (TARGET_VERSION): Remove.
20895 * config/i386/linux.h (TARGET_VERSION): Remove.
20896 * config/i386/linux64.h (TARGET_VERSION): Remove.
20897 * config/i386/lynx.h (TARGET_VERSION): Remove.
20898 * config/i386/mingw32.h (TARGET_VERSION): Remove.
20899 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
20900 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
20901 * config/i386/netware.h (TARGET_VERSION): Remove.
20902 * config/i386/nto.h (TARGET_VERSION): Remove.
20903 * config/i386/openbsd.h (TARGET_VERSION): Remove.
20904 * config/i386/vxworks.h (TARGET_VERSION): Remove.
20905 * config/ia64/elf.h (TARGET_VERSION): Remove.
20906 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
20907 * config/ia64/hpux.h (TARGET_VERSION): Remove.
20908 * config/ia64/linux.h (TARGET_VERSION): Remove.
20909 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
20910 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
20911 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
20912 * config/lm32/lm32.h (TARGET_VERSION): Remove.
20913 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
20914 * config/m32c/m32c.h (TARGET_VERSION): Remove.
20915 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
20916 * config/m32r/m32r.h (TARGET_VERSION): Remove.
20917 * config/m68k/linux.h (TARGET_VERSION): Remove.
20918 * config/m68k/m68k.h (TARGET_VERSION): Remove.
20919 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
20920 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
20921 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
20922 * config/mep/mep.h (TARGET_VERSION): Remove.
20923 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
20924 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
20925 * config/mips/iris6.h (MACHINE_TYPE): Remove.
20926 * config/mips/linux.h (TARGET_VERSION): Remove.
20927 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
20928 * config/mips/vxworks.h (TARGET_VERSION): Remove.
20929 * config/mmix/mmix.h (TARGET_VERSION): Remove.
20930 * config/mn10300/linux.h (TARGET_VERSION): Remove.
20931 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
20932 * config/pa/pa.h (TARGET_VERSION): Remove.
20933 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
20934 * config/picochip/picochip.h (TARGET_VERSION): Remove.
20935 * config/rs6000/aix.h (TARGET_VERSION): Remove.
20936 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
20937 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
20938 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
20939 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
20940 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
20941 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
20942 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
20943 * config/rs6000/linux.h (TARGET_VERSION): Remove.
20944 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
20945 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
20946 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
20947 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
20948 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
20949 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
20950 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
20951 * config/s390/linux.h (TARGET_VERSION): Remove.
20952 * config/s390/s390.h (TARGET_VERSION): Remove.
20953 * config/s390/tpf.h (TARGET_VERSION): Remove.
20954 * config/score/score.h (TARGET_VERSION): Remove.
20955 * config/sh/linux.h (TARGET_VERSION): Remove.
20956 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
20957 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
20958 * config/sh/sh.h (TARGET_VERSION): Remove.
20959 * config/sh/sh64.h (TARGET_VERSION): Remove.
20960 * config/sh/superh.h (TARGET_VERSION): Remove.
20961 * config/sh/vxworks.h (TARGET_VERSION): Remove.
20962 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
20963 * config/sparc/linux.h (TARGET_VERSION): Remove.
20964 * config/sparc/linux64.h (TARGET_VERSION): Remove.
20965 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
20966 TARGET_NAME32, TARGET_NAME): Remove.
20967 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
20968 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
20969 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
20970 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
20971 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
20972 * config/spu/spu.h (TARGET_VERSION): Remove.
20973 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
20974 * config/v850/v850.h (TARGET_VERSION): Remove.
20975 * config/vax/linux.h (TARGET_VERSION): Remove.
20976 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
20977 * config/xtensa/elf.h (TARGET_VERSION): Remove.
20978 * config/xtensa/linux.h (TARGET_VERSION): Remove.
20980 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
20983 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
20984 frame-related from frame-unrelated adjustments to the stack pointer.
20986 2011-03-31 Jakub Jelinek <jakub@redhat.com>
20988 * common.opt (fdebug-types-section): Move earlier.
20989 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
20991 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
20993 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
20996 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
20998 * tree.h (CASE_CHAIN): Define.
20999 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
21000 (gimple_redirect_edge_and_branch): Likewise.
21002 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
21004 PR middle-end/48367
21005 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
21008 2011-03-30 Jeff Law <law@redhat.com>
21010 * PR bootstrap/48371
21011 * reload1.c (reload): Fix botch in last change.
21013 * reload.h (struct reload): Fix typo introduced in last change.
21015 2011-03-30 Joseph Myers <joseph@codesourcery.com>
21017 * config/arm/arm.opt (mhard-float, msoft-float): Mark
21018 Undocumented. Remove help text.
21019 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
21022 2011-03-30 Joseph Myers <joseph@codesourcery.com>
21024 * doc/options.texi (NegativeAlias): Document.
21025 (Alias): Mention NegativeAlias.
21026 * opt-functions.awk: Handle NegativeAlias.
21027 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
21028 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
21029 * opts.h (CL_NEGATIVE_ALIAS): Define.
21030 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
21031 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
21033 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
21035 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
21036 mno-spe and mno-isel instead of mspe=no and -misel=no.
21038 2011-03-29 Mark Wielaard <mjw@redhat.com>
21040 * common.opt (fdebug-types-section): New flag.
21041 * doc/invoke.texi: Document new -fno-debug-types-section flag.
21042 * dwarf2out.c (use_debug_types): New define.
21043 (struct die_struct): Mark die_id with GTY desc use_debug_types.
21044 (print_die): Guard output of type unit signatures using
21046 (build_abbrev_table): Replace assert of dwarf_version >= 4
21047 with assert on use_debug_types.
21048 (size_of_die): Likewise.
21049 (unmark_dies): Likewise.
21050 (value_format): Decide AT_ref_external form on use_debug_types.
21051 (output_die): Replace dwarf_version version check guard with
21052 use_debug_types where appropriate.
21053 (modified_type_die): Likewise.
21054 (gen_reference_type_die): Likewise.
21055 (dwarf2out_start_source_file): Likewise.
21056 (dwarf2out_end_source_file): Likewise.
21057 (prune_unused_types_walk_attribs): Likewise.
21058 (dwarf2out_finish): Likewise.
21060 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
21062 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
21064 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
21066 PR rtl-optimization/48332
21067 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
21068 mode of input operand N and modeN to its actual mode.
21070 2011-03-30 Jeff Law <law@redhat.com>
21072 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
21073 define accessor macro.
21074 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
21075 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
21076 (reg_equiv_init): Likewise.
21077 (reg_equivs_size): New variable.
21078 (reg_equiv_init_size): Remove.
21079 (allocate_initial_values): Move prototype to here from....
21080 * integrate.h (allocate_initial_values): Remove prototype.
21081 * integrate.c: Include reload.h.
21082 (allocate_initial_values): Corresponding changes.
21083 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
21084 (fix_reg_equiv_init, no_equiv): Corresponding changes.
21085 (update_equiv_regs): Corresponding changes.
21086 (ira): Corresponding changes.
21087 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
21088 (push_secondary_reload): Corresponding changes.
21089 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
21090 (make_memloc, find_reloads_address): Corresponding changes.
21091 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
21092 (find_reloads_address_1): Corresponding changes.
21093 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
21094 (refers_to_regno_for_reload_p): Corresponding changes.
21095 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
21096 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
21097 * reload1.c: Include ggc.h.
21098 (grow_reg_equivs): New function.
21099 (replace_pseudos_in, reload): Corresponding changes.
21100 (calculate_needs_all_insns, alter_regs): Corresponding changes.
21101 (eliminate_regs_1, elimination_effects): Corresponding changes.
21102 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
21103 (delete_output_reload): Likewise.
21104 * caller-save.c (mark_referenced_regs): Corresponding changes.
21105 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
21106 * frv/predicates.md (frv_load_operand): Corresponding changes.
21107 * microblaze/microblaze.c (double_memory_operand): Corresponding
21109 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
21110 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
21111 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
21112 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
21113 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
21115 * pa/pa.c (emit_move_sequence): Corresponding changes.
21116 * vax/vax.c (nonindexed_address_p): Corresponding changes.
21118 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
21121 * config/arm/arm.c (coproc_secondary_reload_class): Handle
21122 structure modes. Don't check neon_vector_mem_operand for
21123 vector or structure modes.
21125 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
21126 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21129 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
21130 operand 1 and reshuffle the operands to match.
21131 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
21133 2011-03-30 Christian Schüler <cschueler@gmx.de>
21136 * config/c.opt (F): Added 'Driver' to -F option.
21139 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
21141 * config/darwin.opt: Added '-arch' option.
21143 2011-03-30 Nick Clifton <nickc@redhat.com>
21145 * config/rx/rx.md: Add peepholes and patterns to combine
21146 extending loads and simple arithmetic instructions.
21147 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
21148 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
21149 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
21150 modes to use pre-decrement and post-increment addressing.
21151 (rx_is_restricted_memory_address): Add range checking of REG+INT
21153 (rx_print_operand): Add support for %Q. Fix handling of %Q.
21154 (rx_memory_move_cost): Adjust cost of stores.
21155 (rx_adjust_insn_length): New function.
21157 2011-03-30 Jakub Jelinek <jakub@redhat.com>
21160 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
21161 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
21162 matching arg00/arg01 types.
21164 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
21166 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
21167 last_location to UNKNOWN_LOCATION.
21169 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
21172 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
21175 2011-03-30 Joseph Myers <joseph@codesourcery.com>
21176 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21179 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
21180 Init(PROCESSOR_V7).
21181 (sparc_cpu): Likewise.
21182 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
21185 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
21188 PR middle-end/48342
21189 PR rtl-optimization/48345
21190 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
21191 hard regs for given mode from profitable regs when doing secondary
21194 2011-03-29 Jeff Law <law@redhat.com>
21197 * tree-ssa-threadupdate.c (struct redirection_data): Remove
21198 do_not_duplicate field.
21199 (lookup_redirection_data): Corresponding changes.
21200 (create_duplicates): Always create a template block.
21201 (redirect_edges): Remove code which reused the original block
21202 when it was going to become unreachable code.
21203 (thread_block): Don't set do_not_duplicate field.
21205 2011-03-29 Joseph Myers <joseph@codesourcery.com>
21207 * lto-opts.c (register_user_option_p, lto_register_user_option):
21208 Make type argument unsigned.
21209 * lto-streamer.h (lto_register_user_option): Make type argument
21211 * opth-gen.awk: Make CL_* macros unsigned.
21212 * opts-common.c (find_opt): Make lang_mask argument unsigned.
21213 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
21214 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
21215 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
21216 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
21217 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
21218 (find_opt): Make lang_mask argument unsigned.
21220 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
21222 PR rtl-optimization/48331
21223 PR rtl-optimization/48334
21224 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
21225 for any used algorithm.
21227 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
21229 * ira-conflicts.c (build_object_conflicts): Add unused attribute
21232 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
21234 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
21235 (alpha_option_override): Don't set alpha_sr_alias_set.
21236 (emit_frame_store_1): Use gen_frame_mem rather than calling
21238 (alpha_expand_epilogue): Ditto.
21240 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
21242 PR tree-optimization/48290
21243 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
21244 vectorization, check that relevant phis in the basic block after
21245 the inner loop are really inner loop's exit phis.
21247 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
21250 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
21251 (cached_dw_loc_list_def): New structure.
21252 (cached_dw_loc_list): New typedef.
21253 (cached_dw_loc_list_table): New variable.
21254 (cached_dw_loc_list_table_hash): New function.
21255 (cached_dw_loc_list_table_eq): Likewise.
21256 (add_location_or_const_value_attribute): Take a bool cache_p.
21257 Cache the list when the parameter is true.
21258 (gen_formal_parameter_die): Update caller.
21259 (gen_variable_die): Likewise.
21260 (dwarf2out_finish): Likewise.
21261 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
21262 while generating debug info for the decl.
21263 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
21264 (dwarf2out_init): Initialize cached_dw_loc_list_table.
21265 (resolve_addr): Cache the result of resolving a chain of
21268 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
21270 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
21271 conflict object hard regset nodes have intersecting hard reg sets.
21273 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
21274 after regstat_init_n_sets_and_refs.
21276 * ira.c: Add more comments at the top.
21277 (setup_stack_reg_pressure_class, setup_pressure_classes):
21278 Add comments how we compute the register pressure classes.
21279 (setup_allocno_and_important_classes): Add more comments.
21280 (setup_class_translate_array, reorder_important_classes)
21281 (setup_reg_class_relations): Add comments.
21283 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
21286 * ira-color.c: Add 2011 to the Copyright line.
21287 (assign_hard_reg): Add more comments.
21288 (improve_allocation): Ditto.
21290 * ira-costs.c: Add 2011 to the Copyright line.
21291 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
21293 (setup_regno_cost_classes_by_mode): Ditto.
21295 Initial patches from ira-improv branch:
21297 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
21299 * ira-build.c (ira_create_object): Remove initialization of
21300 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
21301 (ira_create_allocno): Remove initialization of
21302 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
21303 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
21304 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
21305 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
21306 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
21307 Initialize ALLOCNO_ADD_DATA.
21308 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
21309 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
21311 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
21312 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
21314 * ira.c (ira_reallocate): Remove.
21315 (setup_pressure_classes): Call
21316 ira_init_register_move_cost_if_necessary. Use
21317 ira_register_move_cost instead of ira_get_register_move_cost.
21318 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
21319 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
21321 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
21322 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
21323 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
21324 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
21325 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
21326 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
21328 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
21329 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
21330 (struct allocno_color_data): New.
21331 (allocno_color_data_t): New typedef.
21332 (allocno_color_data): New definition.
21333 (ALLOCNO_COLOR_DATA): New macro.
21334 (struct object_color_data): New.
21335 (object_color_data_t): New typedef.
21336 (object_color_data): New definition.
21337 (OBJECT_COLOR_DATA): New macro.
21338 (update_copy_costs, calculate_allocno_spill_cost): Call
21339 ira_init_register_move_cost_if_necessary. Use
21340 ira_register_move_cost instead of ira_get_register_move_cost.
21341 (move_spill_restore, update_curr_costs): Ditto.
21342 (allocno_spill_priority): Make it inline.
21343 (color_pass): Allocate and free allocno_color_dat and object_color_data.
21344 (struct coalesce_data, coalesce_data_t): New.
21345 (allocno_coalesce_data): New definition.
21346 (ALLOCNO_COALESCE_DATA): New macro.
21347 (merge_allocnos, coalesced_allocno_conflict_p): Use
21348 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
21349 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
21350 (coalesce_allocnos): Ditto.
21351 (setup_coalesced_allocno_costs_and_nums): Ditto.
21352 (collect_spilled_coalesced_allocnos): Ditto.
21353 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
21354 (setup_slot_coalesced_allocno_live_ranges): Ditto.
21355 (coalesce_spill_slots): Ditto.
21356 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
21357 free allocno_coalesce_data.
21359 * ira-conflicts.c: Fix formatting.
21360 (process_regs_for_copy): Call
21361 ira_init_register_move_cost_if_necessary. Use
21362 ira_register_move_cost instead of ira_get_register_move_cost.
21363 (build_object_conflicts): Optimize.
21365 * ira-costs.c (record_reg_classes): Optimize. Call
21366 ira_init_register_move_cost_if_necessary. Use
21367 ira_register_move_cost, ira_may_move_in_cost, and
21368 ira_may_move_out_cost instead of ira_get_register_move_cost and
21369 ira_get_may_move_cost.
21370 (record_address_regs): Ditto.
21371 (scan_one_insn): Optimize.
21372 (find_costs_and_classes): Optimize.
21373 (process_bb_node_for_hard_reg_moves): Call
21374 ira_init_register_move_cost_if_necessary. Use
21375 ira_register_move_cost instead of ira_get_register_move_cost.
21377 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
21378 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
21379 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
21380 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
21382 (ira_initiate_emit_data, ira_finish_emit_data)
21383 (create_new_allocno): New functions.
21384 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
21385 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
21386 Use ira_register_move_cost instead of ira_get_register_move_cost.
21388 * ira-int.h: Fix some comments.
21389 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
21390 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
21391 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
21392 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
21394 (struct ira_allocno): Make mode and aclass a bitfield. Move other
21395 bitfield after mode. Make hard_regno a short int. Make
21396 hard_regno short. Remove first_coalesced_allocno and
21397 next_coalesced_allocno. Move mem_optimized_dest_p,
21398 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
21399 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
21400 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
21401 temp, colorable_p. Add new member add_data.
21402 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
21403 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
21404 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
21405 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
21406 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
21407 (ALLOCNO_ADD_DATA): New macro.
21408 (ira_emit_data_t): New typedef.
21409 (struct ira_emit_data): New. Move mem_optimized_dest_p,
21410 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
21411 from struct ira_allocno.
21412 (ALLOCNO_EMIT_DATA): New macro.
21413 (ira_allocno_emit_data, allocno_emit_reg): New.
21414 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
21415 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
21416 (OBJECT_ADD_DATA): New macro.
21417 (ira_reallocate): Remove.
21418 (ira_initiate_emit_data, ira_finish_emit_data): New.
21419 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
21420 (ira_init_register_move_cost_if_necessary): New.
21421 (ira_object_conflict_iter_next): Merge into
21422 ira_object_conflict_iter_cond.
21423 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
21425 * ira-live.c (process_single_reg_class_operands): Call
21426 ira_init_register_move_cost_if_necessary. Use
21427 ira_register_move_cost instead of ira_get_register_move_cost.
21429 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
21431 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
21433 * ira-costs.c: Fix formatting.
21434 (cost_classes, cost_classes_num): Remove.
21435 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
21436 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
21437 (cost_classes_del, cost_classes_htab): New.
21438 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
21439 (initiate_regno_cost_classes, setup_cost_classes): New.
21440 (setup_regno_cost_classes_by_aclass): New.
21441 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
21442 (record_reg_classes): Use regno_cost_classes instead of
21443 cost_classes. Move checking opposite operand up.
21444 (record_address_regs): Use regno_cost_classes
21445 instead of cost_classes.
21446 (scan_one_insn): Ditto. Use always general register.
21447 (print_allocno_costs): Use regno_cost_classes instead of
21449 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
21450 (find_costs_and_classes): Set up cost classes for each registers.
21451 Use also their mode for this. Use regno_cost_classes instead of
21453 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
21455 (free_ira_costs, ira_init_costs): Don't use cost_classes.
21456 (ira_costs, ira_set_pseudo_classes): Call
21457 initiate_regno_cost_classes and finish_regno_cost_classes.
21459 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
21461 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
21463 * target.def (ira_cover_classes): Remove.
21465 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
21467 * doc/tm.texi.in: Ditto.
21469 * ira-conflicts.c: Remove mentioning cover classes from the file.
21470 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
21471 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
21473 * targhooks.c (default_ira_cover_classes): Remove.
21475 * targhooks.h (default_ira_cover_classes): Ditto.
21477 * haifa-sched.c: Remove mentioning cover classes from the file.
21478 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
21479 ira_pressure_classes and ira_pressure_classes_num instead of
21480 ira_reg_class_cover_size and ira_reg_class_cover. Use
21481 sched_regno_pressure_class instead of sched_regno_cover_class.
21482 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
21483 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21485 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
21486 classes from the file.
21487 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
21488 (struct object_hard_regs, struct object_hard_regs_node): New.
21489 (struct ira_object): New members profitable_hard_regs,
21490 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
21491 (struct ira_allocno): Rename cover_class to aclass. Rename
21492 cover_class_cost and updated_cover_class_cost to class_cost and
21493 updated_class_cost. Remove splay_removed_p and
21494 left_conflict_size. Add new members colorable_p.
21495 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
21496 (ALLOCNO_COLORABLE_P): New macro.
21497 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
21498 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
21499 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
21500 (OBJECT_...): Rename parameter C to O.
21501 (OBJECT_PROFITABLE_HARD_REGS): New macro.
21502 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
21503 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
21504 (struct target_ira_int): New members x_ira_max_memory_move_cost,
21505 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
21506 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
21507 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
21508 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
21509 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
21510 x_ira_reg_class_subunion.
21511 (ira_max_memory_move_cost, ira_max_register_move_cost)
21512 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
21513 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
21514 (ira_important_class_nums, ira_reg_class_superunion): New macros.
21515 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
21516 (ira_reg_class_union): Rename to ira_reg_class_subunion.
21517 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
21518 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
21519 (ira_tune_allocno_costs_and_cover_classes): Rename to
21520 ira_tune_allocno_costs.
21521 (ira_debug_hard_regs_forest): New.
21522 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
21523 (ira_object_conflict_iter_next): Fix comments.
21524 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
21525 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
21526 cover_class to aclass.
21527 (ira_allocate_and_accumulate_costs): Ditto.
21528 (ira_allocate_and_set_or_copy_costs): Ditto.
21530 * opts.c (decode_options): Remove ira_cover_class check.
21532 * ira-color.c: Remove mentioning cover classes from the file. Use
21533 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
21534 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
21535 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
21536 (splay-tree.h): Remove include.
21537 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
21538 before copy_freq_compare_func.
21539 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
21540 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
21542 (hard_regs_roots, hard_regs_node_vec): Ditto.
21543 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
21544 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
21545 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
21546 (create_new_object_hard_regs_node): Ditto.
21547 (add_new_object_hard_regs_node_to_forest): Ditto.
21548 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
21549 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
21551 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
21552 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
21553 (remove_unused_object_hard_regs_nodes): Ditto.
21554 (enumerate_object_hard_regs_nodes): Ditto.
21555 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
21556 (object_hard_regs_subnode_t): Ditto.
21557 (struct object_hard_regs_subnode): Ditto.
21558 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
21559 (setup_object_hard_regs_subnode_index): Ditto.
21560 (get_object_hard_regs_subnodes_num): Ditto.
21561 (form_object_hard_regs_nodes_forest): Ditto.
21562 (finish_object_hard_regs_nodes_tree): Ditto.
21563 (finish_object_hard_regs_nodes_forest): Ditto.
21564 (allocnos_have_intersected_live_ranges_p): Rename to
21565 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
21566 (pseudos_have_intersected_live_ranges_p): Rename to
21567 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
21568 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
21569 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
21570 (update_copy_costs): Remove assert. Skip cost update if the hard
21571 reg does not belong the class.
21572 (assign_hard_reg): Process only profitable hard regs.
21573 (uncolorable_allocnos_num): Make it scalar.
21574 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
21575 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
21576 and ira_reg_class_max_nregs.
21577 (bucket_allocno_compare_func): Check frequency first.
21578 (sort_bucket): Add compare function as a parameter.
21579 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
21580 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
21581 (push_allocno_to_stack): Rewrite for checking new allocno
21583 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
21584 (push_only_colorable): Pass new parameter to sort_bucket.
21585 (push_allocno_to_spill): Remove.
21586 (allocno_spill_priority_compare): Make it inline and rewrite.
21587 (splay_tree_allocate, splay_tree_free): Remove.
21588 (allocno_spill_sort_compare): New function.
21589 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
21590 build and use splay tree. Choose first allocno in uncolorable
21591 allocno bucket to spill. Remove setting spill cost.
21592 (all_conflicting_hard_regs): Remove.
21593 (setup_allocno_available_regs_num): Check only profitable hard
21594 regs. Print info about hard regs nodes.
21595 (setup_allocno_left_conflicts_size): Remove.
21596 (put_allocno_into_bucket): Don't call
21597 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
21598 (improve_allocation): New.
21599 (color_allocnos): Call setup_profitable_hard_regs,
21600 form_object_hard_regs_nodes_forest, improve_allocation,
21601 finish_object_hard_regs_nodes_forest. Setup spill cost.
21602 (print_loop_title): Use pressure classes.
21603 (color_allocnso): Ditto.
21604 (do_coloring): Remove allocation and freeing splay_tree_node_pool
21605 and allocnos_for_spilling.
21606 (ira_sort_regnos_for_alter_reg): Don't setup members
21607 {first,next}_coalesced_allocno.
21608 (color): Remove allocating and freeing removed_splay_allocno_vec.
21609 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
21610 prohibited_class_mode_regs.
21612 * ira-lives.c: Remove mentioning cover classes from the file. Fix
21614 (update_allocno_pressure_excess_length): Use pressure classes.
21615 (inc_register_pressure, dec_register_pressure): Check for pressure
21617 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
21618 pressure class. Use ira_reg_class_nregs instead of
21619 ira_reg_class_max_nregs.
21620 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
21621 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
21622 (single_reg_class): Use ira_reg_class_nregs instead of
21623 ira_reg_class_max_nregs.
21624 (process_bb_node_lives): Use pressure classes.
21626 * ira-emit.c: Remove mentioning cover classes from the file. Use
21627 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
21628 (change_loop): Use pressure classes.
21629 (modify_move_list): Call ira_set_allocno_class instead of
21630 ira_set_allocno_cover_class.
21632 * ira-build.c: Remove mentioning cover classes from the file. Use
21633 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
21634 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
21635 ALLOCNO_UPDATED_CLASS_COST instead of
21636 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
21637 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
21638 (ira_create_allocno): Remove initialization of
21639 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
21640 ALLOCNO_COLORABLE_P.
21641 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
21642 Update conflict regs for the objects.
21643 (create_cap_allocno): Remove assert. Don't propagate
21644 ALLOCNO_AVAILABLE_REGS_NUM.
21645 (ira_free_allocno_costs): New function.
21646 (finish_allocno): Change a part of code into call of
21647 ira_free_allocno_costs.
21648 (low_pressure_loop_node_p): Use pressure classes.
21649 (object_range_compare_func): Don't compare classes.
21650 (setup_min_max_conflict_allocno_ids): Ditto.
21652 * loop-invariant.c: Remove mentioning cover classes from the file.
21653 Use ira_pressure_classes and ira_pressure_classes_num instead of
21654 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
21655 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
21656 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21657 Use reg_allocno_class instead of reg_cover_class.
21658 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
21659 STACK_REG_COVER_CLASS.
21660 (get_regno_cover_class): Rename to get_regno_pressure_class.
21661 (move_loop_invariants): Initialize and finalize regstat.
21663 * ira.c: Remove mentioning cover classes from the file. Add
21664 comments about coloring without cover classes. Use ALLOCNO_CLASS
21665 instead of ALLOCNO_COVER_CLASS. Fix formatting.
21666 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
21667 setup_class_subset_and_memory_move_costs.
21668 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
21669 (setup_cover_and_important_classes): Rename to
21670 setup_allocno_and_important_classes.
21671 (setup_class_translate_array): New.
21672 (setup_class_translate): Call it for allocno and pressure classes.
21673 (cover_class_order): Rename to allocno_class_order.
21674 (comp_reg_classes_func): Use ira_allocno_class_translate instead
21675 of ira_class_translate.
21676 (reorder_important_classes): Set up ira_important_class_nums.
21677 (setup_reg_class_relations): Set up ira_reg_class_superunion.
21678 (print_class_cover): Rename to print_classes. Add parameter.
21679 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
21680 Print pressure classes too.
21681 (find_reg_class_closure): Rename to find_reg_classes. Don't call
21682 setup_reg_subclasses.
21683 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
21684 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
21685 (setup_prohibited_class_mode_regs): Use
21686 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
21687 (clarify_prohibited_class_mode_regs): New function.
21688 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
21689 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
21690 (ira_init_once): Initialize them.
21691 (free_register_move_costs): Process them.
21692 (ira_init): Move calls of find_reg_classes and
21693 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
21694 Call clarify_prohibited_class_mode_regs.
21695 (ira_no_alloc_reg): Remove.
21696 (too_high_register_pressure_p): Use pressure classes.
21698 * sched-deps.c: Remove mentioning cover classes from the file.
21699 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
21700 ira_pressure_classes and ira_pressure_classes_num instead of
21701 ira_reg_class_cover_size and ira_reg_class_cover.
21702 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
21703 sched_regno_pressure_class instead of sched_regno_cover_class.
21704 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
21705 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21707 * ira.h: Add 2010 to Copyright.
21708 (ira_no_alloc_reg): Remove external.
21709 (struct target_ira): Rename x_ira_hard_regno_cover_class,
21710 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
21711 x_ira_class_translate to x_ira_hard_regno_allocno_class,
21712 x_ira_allocno_classes_num, x_ira_allocno_classes, and
21713 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
21714 x_ira_pressure_classes, x_ira_pressure_class_translate, and
21715 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
21716 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
21717 x_ira_no_alloc_regs.
21718 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
21719 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
21720 ira_allocno_classes_num and ira_allocno_classes.
21721 (ira_class_translate): Rename to ira_allocno_class_translate.
21722 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
21723 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
21724 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
21725 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
21726 (ira_no_alloc_regs): New.
21728 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
21729 classes from the file. Use ALLOCNO_CLASS instead of
21730 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
21731 ALLOCNO_COVER_CLASS_COST.
21732 (regno_cover_class): Rename to regno_aclass.
21733 (record_reg_classes): Use ira_reg_class_subunion instead of
21734 ira_reg_class_union.
21735 (record_address_regs): Check overflow.
21736 (scan_one_insn): Ditto.
21737 (print_allocno_costs): Print total mem cost fore regional allocation.
21738 (print_pseudo_costs): Use REG_N_REFS.
21739 (find_costs_and_classes): Use classes intersected with them on the
21740 1st pass. Check overflow. Use ira_reg_class_subunion instead of
21741 ira_reg_class_union. Use ira_allocno_class_translate and
21742 regno_aclass instead of ira_class_translate and regno_cover_class.
21743 Modify code for finding regno_aclass. Setup preferred classes for
21745 (setup_allocno_cover_class_and_costs): Rename to
21746 setup_allocno_class_and_costs. Use regno_aclass instead of
21747 regno_cover_class. Use ira_set_allocno_class instead of
21748 ira_set_allocno_cover_class.
21749 (init_costs, finish_costs): Use regno_aclass instead of
21751 (ira_costs): Use setup_allocno_class_and_costs instead of
21752 setup_allocno_cover_class_and_costs.
21753 (ira_tune_allocno_costs_and_cover_classes): Rename to
21754 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
21755 by processing objects. Use ira_reg_class_max_nregs instead of
21756 ira_reg_class_nregs.
21758 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
21760 * sched-int.h: Remove mentioning cover classes from the file.
21761 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
21763 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
21764 classes from the file.
21765 (struct reg_pref): Rename coverclass into allocnoclass.
21766 (reg_cover_class): Rename to reg_allocno_class.
21768 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
21770 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
21772 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
21774 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
21776 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
21778 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
21780 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
21782 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
21784 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
21786 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
21788 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
21789 (i386_ira_cover_classes): Ditto.
21791 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
21793 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
21795 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
21797 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
21799 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
21801 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
21803 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
21804 (mips_ira_cover_classes): Ditto.
21806 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
21808 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
21810 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
21812 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
21814 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
21816 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
21817 (IRA_COVER_CLASSES_VSX): Ditto.
21819 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
21820 (rs6000_ira_cover_classes): Ditto.
21822 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
21824 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
21826 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
21828 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
21830 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
21832 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
21834 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
21836 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
21838 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
21840 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
21842 2011-03-29 Jakub Jelinek <jakub@redhat.com>
21845 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
21846 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
21847 dw_fde_unlikely_section_end_label, cold_in_std_section,
21848 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
21849 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
21851 (output_fde): Use dw_fde_second_{begin,end} if second is
21852 true, otherwise dw_fde_{begin,end}.
21853 (output_call_frame_info): Test dw_fde_second_begin != NULL
21854 instead of dw_fde_switched_sections.
21855 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
21856 fields, initialize new fields. Initialize in_std_section
21857 unconditionally from the first partition.
21858 (dwarf2out_end_epilogue): Don't override dw_fde_end when
21859 dw_fde_second_begin is non-NULL.
21860 (dwarf2out_switch_text_section): Stop initializing removed
21861 dw_fde_struct fields, initialize new fields, initialize
21862 also dw_fde_end here. Set dw_fde_switch_cfi even when
21863 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
21864 (struct var_loc_list_def): Add last_before_switch field.
21865 (arange_table, arange_table_allocated, arange_table_in_use,
21866 ARANGE_TABLE_INCREMENT, add_arange): Removed.
21867 (size_of_aranges): Count !in_std_section and !second_in_std_section
21868 hunks in fdes, instead of looking at arange_table_in_use.
21869 (output_aranges): Add aranges_length argument, don't call
21870 size_of_aranges here. Instead of using aranges_table*
21871 emit ranges for fdes when !in_std_section resp.
21872 !second_in_std_section.
21873 (dw_loc_list): Break ranges crossing section switch.
21874 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
21875 use dw_fde_second_end instead of dw_fde_end as end of last range.
21876 (gen_subprogram_die): Don't call add_arange. Use
21877 dw_fde_{begin,end} for first partition and if switched
21878 section dw_fde_second_{begin,end} for the second.
21879 (var_location_switch_text_section_1,
21880 var_location_switch_text_section): New functions.
21881 (dwarf2out_begin_function): Initialize cold_text_section even
21882 when function_section () isn't text_section.
21883 (prune_unused_types): Don't walk arange_table.
21884 (dwarf2out_finish): Don't needlessly test
21885 flag_reorder_blocks_and_partition when testing cold_text_section_used.
21886 If info_section_emitted, call size_of_aranges and if it indicates
21887 non-empty .debug_aranges, call output_aranges with the computed
21888 size. Stop using removed dw_fde_struct fields, use
21889 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
21893 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
21894 create ENTRY_VALUE if incoming or address of incoming's MEM
21896 * dwarf2out.c (mem_loc_descriptor): Don't emit
21897 DW_OP_GNU_entry_value of DW_OP_fbreg.
21898 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
21899 on ENTRY_VALUE is able to find the canonical parameter VALUE.
21900 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
21901 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
21903 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
21904 is a REG_P or MEM_P with REG_P address, compute hash directly
21905 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
21906 (preserve_only_constants): Don't clear VALUES forwaring
21907 ENTRY_VALUE to some other VALUE.
21909 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
21911 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
21912 instead of GEN_INT.
21914 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
21916 * cfgexpand.c (expand_gimple_cond): Always set the source location and
21917 block before expanding the statement.
21918 (expand_gimple_stmt_1): Likewise. Set them here...
21919 (expand_gimple_stmt): ...and not here. Tidy.
21920 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
21923 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
21925 * Makefile.in: New rule for cprop.o.
21926 * gcse.c: Move constant/copy propagation to cprop.c.
21927 (compute_local_properties): Only handle expression tables.
21928 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
21929 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
21930 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
21931 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
21932 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
21933 compute_cprop_data, find_used_regs, try_replace_reg,
21934 find_avail_set, cprop_jump, constprop_register, cprop_insn,
21935 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
21936 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
21937 find_bypass_set, reg_killed_on_edge, bypass_block,
21938 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
21939 execute_rtl_cprop, pass_rtl_cprop): Move to...
21940 * cprop.c: ...here. New file, constant/copy propagation for RTL
21941 moved from gcse.c to here with minor cleanups in duplicated code.
21943 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
21945 * config/i386/i386.c (flag_opts): Fix a typo in
21946 -mavx256-split-unaligned-store.
21948 2011-03-28 Anatoly Sokolov <aesok@post.ru>
21950 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
21951 LIBCALL_VALUE): Remove macros.
21952 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21953 TARGET_FUNCTION_VALUE_REGNO_P): Define.
21954 (h8300_function_value, h8300_libcall_value,
21955 h8300_function_value_regno_p): New functions.
21957 2011-03-28 Anatoly Sokolov <aesok@post.ru>
21959 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
21961 2011-03-28 Jeff Law <law@redhat.com>
21963 * tree-ssa-threadupdate.c (redirect_edges): Call
21964 create_edge_and_update_destination_phis as needed.
21965 (create_edge_and_update_destination_phis): Accept new BB argument.
21966 All callers updated.
21967 (thread_block): Do not update the profile when threading around
21968 intermediate blocks.
21969 (thread_single_edge): Likewise.
21970 (determine_bb_domination_status): If BB is not a successor of the
21971 loop header, return NONDOMINATING.
21972 (register_jump_thread): Note when we register a jump thread around
21973 an intermediate block.
21974 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
21975 (thread_across_edge): Use it.
21977 2011-03-28 Tristan Gingold <gingold@adacore.com>
21979 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
21980 when for_return is 2.
21982 2011-03-28 Jeff Law <law@redhat.com>
21984 * var-tracking.c (canonicalize_values_mark): Delete unused
21986 (canonicalize_values_star, set_variable_part): Likewise.
21987 (clobber_variable_part, delete_variable_part): Likewise.
21989 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
21991 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
21993 2011-03-28 Martin Jambor <mjambor@suse.cz>
21995 * tree-inline.c (expand_call_inline): Do not check that destination
21997 (optimize_inline_calls): Assert that destination node is analyzed.
21998 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
21999 not call tree_lowering_passes.
22000 * cgraph.h (cgraph_analyze_function): Declare.
22001 * cgraphunit.c (cgraph_analyze_function): Make public.
22003 2011-03-28 Joseph Myers <joseph@codesourcery.com>
22005 * config/sparc/sparc-opts.h: New.
22006 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
22007 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
22008 (sparc_option_override): Store processor_type enumeration rather
22009 than string in cpu_default. Remove name and enumeration from
22010 cpu_table. Directly default -mcpu then default -mtune from -mcpu
22011 without using sparc_select. Use target_flags_explicit instead of
22013 * config/sparc/sparc.h (enum processor_type): Move to
22015 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
22016 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
22017 HeaderInclude entry.
22018 (mcpu=, mtune=): Use Var and Enum.
22019 (sparc_processor_type): New Enum and EnumValue entries.
22021 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22022 Iain Sandoe <iains@gcc.gnu.org>
22025 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
22027 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
22029 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
22030 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
22031 Insert new statements at it in lieu of STMT.
22032 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
22033 * tree-vect-stmts.c (vectorizable_store): Likewise.
22034 (vectorizable_load): Likewise.
22036 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
22038 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
22043 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
22045 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
22046 unaligned 256bit load/store.
22047 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
22048 (*avx_movdqu<avxmodesuffix>): Likewise.
22050 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22053 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
22054 * config/pa/pa.md (iordi3): Use new predicate in expander.
22055 (iorsi3): Likewise.
22057 2011-03-27 Anatoly Sokolov <aesok@post.ru>
22059 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
22060 FUNCTION_VALUE_REGNO_P): Remove macros.
22061 * config/mips/mips-protos.h (mips_function_value): Remove.
22062 * config/mips/mips.c (mips_function_value): Rename to...
22063 (mips_function_value_1): ... this. Make static. Handle receiving
22064 the function type in 'fn_decl_or_type' argument.
22065 (mips_function_value, mips_libcall_value,
22066 mips_function_value_regno_p): New function.
22067 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22068 TARGET_FUNCTION_VALUE_REGNO_P): Define.
22070 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
22072 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
22073 and -mavx256-split-unaligned-store.
22074 (ix86_option_override_internal): Split 32-byte AVX unaligned
22075 load/store by default.
22076 (ix86_avx256_split_vector_move_misalign): New.
22077 (ix86_expand_vector_move_misalign): Use it.
22079 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
22080 -mavx256-split-unaligned-store.
22082 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
22083 256bit load/store. Generate unaligned store on misaligned memory
22085 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
22087 (*avx_movdqu<avxmodesuffix>): Likewise.
22089 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
22090 -mavx256-split-unaligned-store.
22092 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
22095 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
22098 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
22100 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
22101 opno arguments with an expand_operand. Use create_input_operand.
22102 (mips_prepare_builtin_target): Delete.
22103 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
22105 (mips_expand_builtin_direct): Use create_output_operand and
22106 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
22107 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
22108 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
22110 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
22112 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
22114 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
22116 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
22118 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
22119 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
22120 basic blocks and call commit_edge_insertions directly.
22121 (fixup_abnormal_edges): Move from here to...
22122 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
22123 on the edges and return whether some have actually been inserted.
22124 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
22127 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
22129 PR rtl-optimization/48144
22130 * sel-sched-ir.c (merge_history_vect): Factor out from ...
22131 (merge_expr_data): ... here.
22132 (av_set_intersect): Rename to av_set_code_motion_filter.
22133 Update all callers. Call merge_history_vect when an expression
22134 is found in both sets.
22135 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
22137 2011-03-26 Alan Modra <amodra@gmail.com>
22139 * config/rs6000/predicates.md (word_offset_memref_op): Handle
22140 cmodel medium addresses.
22141 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
22142 64-bit gpr loads and stores.
22143 (rs6000_secondary_reload_ppc64): New function.
22144 * config/rs6000/rs6000-protos.h: Declare it.
22145 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
22147 2011-03-26 Alan Modra <amodra@gmail.com>
22150 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
22151 GNU Go in traceback table.
22153 2011-03-25 Richard Henderson <rth@redhat.com>
22155 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
22156 if there are exactly 6 operands.
22157 (set_storage_via_setmem): Similarly.
22159 2011-03-25 Kai Tietz <ktietz@redhat.com>
22161 * collect2.c (write_c_file_stat): Handle backslash
22162 as right-hand directory separator.
22163 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
22164 checking just for slash.
22165 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
22166 instead of checking for trailing slash.
22167 * gcc.c (record_temp_file): Use filename_cmp instead
22169 (do_spec_1): Likewise.
22170 (replace_outfile_spec_function): Likewise.
22171 (is_directory): Use filename_ncmp instead of strncmp.
22172 (print_multilib_info): Likewise.
22173 * gcov.c (find_source): Use filename_cmp instead
22175 (make_gcov_file_name): Fix order of slash/backslash
22177 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
22178 (add_standard_paths): Likewise.
22179 * mips-tfile.c (saber_stop): Handle backslash.
22180 * prefix.c (update_path): Use filename_ncmp instead of
22182 * profile.c (output_location): Use filename_cmp instead
22184 * read-md.c (handle_toplevel_file): Handle backslash.
22185 * tlink.c (frob_extension): Likewise.
22186 * tree-cfg.c (same_line_p): Use filename_cmp instead of
22188 * tree-dump.c (dequeue_and_dump): Handle backslash.
22189 * tree.c (get_file_function_name): Likewise.
22190 * gengtype.c (read_input_list): Likewise.
22191 (get_file_realbasename): Likewise.
22192 (get_output_file_with_visibility): Use filename_cmp
22195 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
22197 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
22200 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
22202 * fold-const.c (expr_location_or): New function.
22203 (fold_truth_not_expr): Call it.
22205 2011-03-25 Jeff Law <law@redhat.com>
22207 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
22209 * c-family/c-common.c (def_fn_type): Likewise.
22210 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
22211 * emit-rtl.c (gen_rtvec): Likewise.
22212 * lto/lto-lang.c (def_fn_type): Likewise.
22214 2011-03-25 Richard Guenther <rguenther@suse.de>
22216 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
22217 also generate copies.
22218 (fini_copy_prop): Handle constant values properly.
22220 2011-03-25 Jakub Jelinek <jakub@redhat.com>
22222 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
22223 mode size instead of bitsize with DWARF2_ADDR_SIZE.
22224 (hash_loc_operands, compare_loc_operands): Handle
22225 DW_OP_GNU_entry_value.
22227 2011-03-25 Kai Tietz <ktietz@redhat.com>
22229 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
22230 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
22231 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
22232 comment and use macro TARGET_64BIT_MS_ABI instead.
22233 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
22234 and change default behavior for 32-bit MS_ABI.
22235 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
22236 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
22238 (ix86_cfun_abi): Likewise.
22239 (ix86_maybe_switch_abi): Adjust comment.
22240 (init_cumulative_args): Check for bit-ness in MS_ABI case.
22241 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
22242 instead of checking for SYSV_ABI.
22243 (ix86_nsaved_sseregs): Likewise.
22244 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
22246 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
22247 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
22248 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
22249 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
22250 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
22252 2011-03-25 Richard Guenther <rguenther@suse.de>
22254 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
22255 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
22256 (verify_gimple): Remove.
22257 * tree-cfg.c (verify_gimple_call): Merge verification
22259 (verify_gimple_phi): Merge verification from verify_stmts.
22260 (verify_gimple_label): New function.
22261 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
22262 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
22263 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
22264 (verify_stmts): Rename to verify_gimple_in_cfg.
22265 (verify_gimple_in_cfg): New function.
22266 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
22267 * tree-ssa.c (verify_ssa): Likewise.
22268 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
22270 2011-03-25 Richard Guenther <rguenther@suse.de>
22272 * passes.c (init_optimization_passes): Add FRE pass after
22275 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
22276 Andrew Stubbs <ams@codesourcery.com>
22278 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
22280 (arm_movdi_vfp_cortexa8): New pattern.
22281 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
22282 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
22283 instructions when tuning for Cortex-A8. Set attribute "arch".
22284 * config/arm/arm.md: Move include arm-tune.md up a bit.
22285 (define_attr "arch"): Add "onlya8" and "nota8" values.
22286 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
22288 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
22292 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
22294 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
22295 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
22296 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
22297 * passes.c (init_optimization_passes): Move
22298 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
22300 2011-03-25 Kai Tietz <ktietz@redhat.com>
22302 * c-typeck.c (comptypes_internal): Replace target
22303 hook call of comp_type_attributes by version in tree.c file.
22304 * gimple.c (gimple_types_compatible_p_1): Likewise.
22305 * tree-ssa.c (useless_type_conversion_p): Likewise.
22306 * tree.c (build_type_attribute_qual_variant): Likewise.
22307 (attribute_value_equal): New static helper function.
22308 (comp_type_attributes): New function.
22309 (merge_attributes): Use attribute_value_equal for comparison.
22310 (attribute_list_contained): Likewise.
22311 * tree.h (comp_type_attributes): New prototype.
22313 2011-03-25 Richard Guenther <rguenther@suse.de>
22315 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
22316 of complex types at -O0.
22317 (verify_gimple_assign_binary): Likewise.
22318 (verify_gimple_assign_ternary): Likewise.
22320 2011-03-24 Mark Wielaard <mjw@redhat.com>
22322 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
22323 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
22325 2011-03-24 Mark Wielaard <mjw@redhat.com>
22328 * dwarf2out.c (output_abbrev_section): Only write table when
22329 abbrev_die_table_in_use > 1.
22331 2011-02-24 Richard Henderson <rth@redhat.com>
22333 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
22334 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
22335 (alpha_expand_unaligned_load_words): Use extql.
22336 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
22337 (emit_insxl): Handle all modes for consistency.
22339 2011-02-24 Richard Henderson <rth@redhat.com>
22341 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
22342 (alpha_expand_unaligned_load): Likewise.
22343 (alpha_expand_unaligned_store): Likewise.
22344 (alpha_expand_unaligned_load_words): Likewise.
22345 (alpha_expand_unaligned_store_words): Likewise.
22346 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
22347 (alpha_split_lock_test_and_set_12): Likewise.
22348 (print_operand, alpha_fold_builtin_extxx): Likewise.
22349 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
22350 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
22351 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
22352 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
22353 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
22354 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
22355 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
22356 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
22357 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
22358 (extwl, extll, extql): Similarly.
22359 (inswh, inslh, insqh): Similarly.
22360 (mskbl, mskwl, mskll, mskql): Similarly.
22361 (mskwh, msklh, mskqh): Similarly.
22363 2011-02-24 Richard Henderson <rth@redhat.com>
22365 * config/alpha/alpha.md (attribute isa): Add er, ner.
22366 (attribute enabled): Handle them.
22367 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
22369 2011-02-24 Richard Henderson <rth@redhat.com>
22371 * config/alpha/alpha.md (attribute isa): Add vms.
22372 (attribute enabled): Handle it.
22373 (*movsf): Merge *movsf_{nofix,fix,nofp}.
22374 (*movdf): Merge *movdf_{nofix,fix,nofp}.
22375 (*movtf): Rename from *movtf_internal for consistency.
22376 (*movsi): Merge with *movsi_nt_vms.
22377 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
22378 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
22379 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
22380 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
22382 2011-02-24 Richard Henderson <rth@redhat.com>
22384 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
22385 (extendqisi2, extendhisi2): Likewise.
22386 (extendqidi2): Simplify BWX/non-BWX expansions.
22387 (extendhidi2): Similarly.
22389 2011-02-24 Richard Henderson <rth@redhat.com>
22391 * config/alpha/alpha.md (attribute isa): New.
22392 (attribute enabled): New.
22393 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
22394 (zero_extendqisi2, zero_extendqidi2): Similarly.
22395 (zero_extendhisi2, zero_extendhidi2): Similarly.
22396 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
22398 2011-02-24 Richard Henderson <rth@redhat.com>
22400 * config/alpha/predicates.md (input_operand): Revert last change;
22401 update comment to mention 32-bit VMS rather than Windows.
22403 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
22405 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
22406 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
22407 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
22408 * passes.c (init_optimization_passes): Move
22409 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
22411 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
22413 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
22415 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
22417 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
22420 2011-03-24 Jakub Jelinek <jakub@redhat.com>
22423 * simplify-rtx.c (simplify_const_unary_operation): Call
22424 real_convert when changing mode class with FLOAT_EXTEND.
22426 2011-03-24 Nick Clifton <nickc@redhat.com>
22428 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
22429 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
22430 * config/rx/rx.c (rx_option_override): Set align_jumps,
22431 align_loops and align_labels if not set by the user.
22432 (rx_align_for_label): New function.
22433 (rx_max_skip_for_label): New function.
22434 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
22435 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
22436 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
22437 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
22438 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
22440 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
22442 PR rtl-optimization/48263
22443 * optabs.c (expand_binop_directly): Reinstate convert_modes code
22444 and original commutative_p handling. Use maybe_gen_insn.
22446 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22448 * reload.c (find_reloads_subreg_address): Add address_reloaded
22449 parameter and return true there if the full address has been
22451 (find_reloads_toplev): Pass address_reloaded flag.
22452 (find_reloads_address_1): Don't use address_reloaded parameter.
22454 2011-03-24 Jeff Law <law@redhat.com>
22456 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
22457 unused variable "ann".
22458 (remove_unused_locals): Likewise.
22460 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
22463 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
22466 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22468 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
22469 for invalid symbolic addresses.
22470 (s390_secondary_reload): Don't use s390_check_symref_alignment for
22473 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
22475 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
22476 the argument in calls to fold_truth_not_expr.
22478 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
22480 * tree.c (record_node_allocation_statistics): New function.
22481 (make_node_stat, copy_node_stat, build_string): Call it.
22482 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
22483 (build1_stat, build_omp_clause): Likewise.
22485 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
22487 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
22490 2011-03-24 Richard Guenther <rguenther@suse.de>
22492 PR tree-optimization/48271
22493 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
22494 blocks that still exist.
22496 2011-03-24 Richard Guenther <rguenther@suse.de>
22498 PR tree-optimization/48270
22499 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
22500 not free datarefs before ddrs.
22502 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
22504 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
22505 from the address built for a reference with variable offset.
22507 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
22510 * config/i386/i386.md (*movdf_internal_rex64): Do not split
22511 alternatives that can be handled with movq or movabsq insn.
22512 (*movdf_internal): Disable for !TARGET_64BIT.
22513 (*movdf_internal_nointeger): Ditto.
22514 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
22516 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
22518 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
22519 (FUNCTION_ARG_ADVANCE): Likewise.
22520 * tm.texi.in: Change references to them to hook references.
22521 * tm.texi: Regenerate.
22522 * targhooks.c (default_function_arg): Eliminate check for target macro.
22523 (default_function_incoming_arg): Likewise.
22524 (default_function_arg_advance): Likewise.
22525 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
22526 (function_arg_advance): Likewise.
22527 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
22529 2011-03-24 Richard Guenther <rguenther@suse.de>
22531 PR middle-end/48269
22532 * tree-object-size.c (addr_object_size): Do not double-account
22533 for MEM_REF offsets.
22535 2011-03-24 Diego Novillo <dnovillo@google.com>
22537 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
22538 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
22539 (lto_input_data_block): Move from lto-opts.c. Make extern.
22541 (lto_input_string): Rename from input_string. Make extern.
22543 * lto-streamer-out.c (lto_output_string_with_length): Rename from
22544 output_string_with_length.
22545 Output 0 to indicate a non-NULL string. Update all callers to
22547 (lto_output_string): Rename from output_string. Make extern.
22549 (lto_output_decl_state_streams): Make extern.
22550 (lto_output_decl_state_refs): Make extern.
22551 * lto-streamer.h (lto_input_string): Declare.
22552 (lto_input_data_block): Declare.
22553 (lto_output_string): Declare.
22554 (lto_output_string_with_length): Declare.
22555 (lto_output_decl_state_streams): Declare.
22556 (lto_output_decl_state_refs): Declare.
22558 2011-03-24 Richard Guenther <rguenther@suse.de>
22560 PR tree-optimization/46562
22561 * tree.c (build_invariant_address): New function.
22562 * tree.h (build_invariant_address): Declare.
22563 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
22564 a renamed function moved ...
22565 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
22566 Take valueization callback parameter.
22567 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
22568 * gimple-fold.h: New file.
22569 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
22570 (ccp_fold, fold_const_aggregate_ref,
22571 fold_ctor_reference, fold_nonarray_ctor_reference,
22572 fold_array_ctor_reference, fold_string_cst_ctor_reference,
22573 get_base_constructor): Move ...
22574 * gimple-fold.c: ... here.
22575 (gimple_fold_stmt_to_constant_1): New function
22576 split out from ccp_fold. Take a valueization callback parameter.
22577 Valueize all operands.
22578 (gimple_fold_stmt_to_constant): New wrapper function.
22579 (fold_const_aggregate_ref_1): New function split out from
22580 fold_const_aggregate_ref. Take a valueization callback parameter.
22581 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
22582 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
22583 invariant POINTER_PLUS_EXPRs to invariant form.
22584 (vn_valueize): New function.
22585 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
22586 * tree-vrp.c (vrp_valueize): New function.
22587 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
22588 to fold statements to constants.
22589 * tree-ssa-pre.c (eliminate): Properly guard propagation of
22590 function declarations.
22591 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
22592 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
22594 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
22596 * config/h8300/predicates.md (jump_address_operand): Fix register
22599 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
22601 * doc/invoke.texi (max-stores-to-sink): Document.
22602 * params.h (MAX_STORES_TO_SINK): Define.
22603 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
22604 if either vectorization or if-conversion is disabled.
22605 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
22606 tree-vect-data-refs.c vect_equal_offsets.
22607 (dr_equal_offsets_p): New function.
22608 (find_data_references_in_bb): Remove static.
22609 * tree-data-ref.h (find_data_references_in_bb): Declare.
22610 (dr_equal_offsets_p): Likewise.
22611 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
22612 (vect_drs_dependent_in_basic_block): Update calls to
22613 vect_equal_offsets.
22614 (vect_check_interleaving): Likewise.
22615 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
22616 (cond_if_else_store_replacement): Rename to...
22617 (cond_if_else_store_replacement_1): ... this. Change arguments and
22619 (cond_if_else_store_replacement): New function.
22620 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
22621 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
22623 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
22626 * config/arm/arm.md (casesi): Use the gen_int_mode() function
22627 to subtract lower bound instead of GEN_INT().
22629 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
22634 * doc/extend.texi (Alignment): Move section to match order in TOC.
22635 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
22636 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
22638 2011-03-23 Jeff Law <law@redhat.com>
22640 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
22641 before removing the edge.
22643 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
22644 it may have been freed by redirect_branch_edge or
22645 redirect_edge_succ_nodup.
22647 2011-03-23 Richard Guenther <rguenther@suse.de>
22649 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
22650 (check_va_list_escapes): Likewise.
22651 (check_all_va_list_escapes): Likewise.
22653 2011-03-23 Richard Guenther <rguenther@suse.de>
22655 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
22656 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
22657 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
22658 (alias.o): Likewise.
22659 (ipa-type-escape.o): Remove.
22660 (ipa-struct-reorg.o): Likewise.
22661 (GTFILES): Remove ipa-struct-reorg.c.
22662 * alias.c: Do not include ipa-type-escape.h.
22663 * tree-ssa-alias.c: Likewise.
22664 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
22665 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
22666 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
22667 and ipa-type-escape passes.
22668 * tree-pass.h (pass_ipa_type_escape): Remove.
22669 (pass_ipa_struct_reorg): Likewise.
22670 * ipa-struct-reorg.h: Remove.
22671 * ipa-struct-reorg.c: Likewise.
22672 * ipa-type-escape.h: Likewise.
22673 * ipa-type-escape.c: Likewise.
22674 * doc/invoke.texi (-fipa-struct-reorg): Remove.
22675 (--param struct-reorg-cold-struct-ratio): Likewise.
22676 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
22677 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
22678 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
22680 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22682 * config/s390/2084.md: Enable all insn reservations also for z9_ec
22683 cpu attribute value.
22684 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
22685 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
22686 * config/s390/s390.c (processor_flags_table): New constant array.
22687 (s390_handle_arch_option): Remove.
22688 (s390_handle_option): Remove s390_handle_arch_option invocations
22689 and OPT_mwarn_framesize_ handling.
22690 (s390_option_override): Remove s390_handle_arch_option invocation.
22691 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
22693 * config/s390/s390.md (cpu attribute): Add z9_ec value.
22694 * config/s390/s390.opt (s390_tune, s390_arch)
22695 (march=): Replace s390_arch_option enum and values with
22696 processor_type. Set variable name to s390_arch. Set
22697 initialization value.
22698 (mtune=): Replace s390_arch_option with processor_type. Set
22699 variable name to s390_tune. Set initialization value.
22701 2011-03-23 Julian Brown <julian@codesourcery.com>
22703 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
22704 accesses which are not naturally aligned.
22706 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
22709 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
22711 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
22713 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
22714 parameter from "int" to "enum insn_code".
22715 (expand_operand_type): New enum.
22716 (expand_operand): New structure.
22717 (create_expand_operand): New function.
22718 (create_fixed_operand, create_output_operand): Likewise
22719 (create_input_operand, create_convert_operand_to): Likewise.
22720 (create_convert_operand_from, create_address_operand): Likewise.
22721 (create_integer_operand): Likewise.
22722 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
22723 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
22724 (expand_insn, expand_jump_insn): Likewise.
22725 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
22726 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
22727 (expand_movstr, expand_builtin___clear_cache): Likewise.
22728 (expand_builtin_lock_release): Likewise.
22729 * explow.c (allocate_dynamic_stack_space): Likewise.
22730 (probe_stack_range): Likewise. Allow check_stack to FAIL,
22731 and use the default handling in that case.
22732 * expmed.c (check_predicate_volatile_ok): Delete.
22733 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
22734 (emit_cstore): Likewise.
22735 * expr.c (emit_block_move_via_movmem): Likewise.
22736 (set_storage_via_setmem, expand_assignment): Likewise.
22737 (emit_storent_insn, try_casesi): Likewise.
22738 (emit_single_push_insn): Likewise. Allow the expansion to fail.
22739 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
22740 (expand_vec_shift_expr, expand_binop_directly): Likewise.
22741 (expand_twoval_unop, expand_twoval_binop): Likewise.
22742 (expand_unop_direct, emit_indirect_jump): Likewise.
22743 (emit_conditional_move, vector_compare_rtx): Likewise.
22744 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
22745 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
22746 (expand_sync_lock_test_and_set): Likewise.
22747 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
22748 (emit_unop_insn): Likewise.
22749 (expand_copysign_absneg): Change icode to an insn_code.
22750 (create_convert_operand_from_type): New function.
22751 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
22752 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
22753 (expand_insn, expand_jump_insn): Likewise.
22754 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
22755 than const_int_operand for operand 2.
22757 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22759 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
22762 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
22764 * emit-rtl.c (emit_pattern_before_noloc): New function.
22765 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
22766 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
22767 (emit_pattern_after_noloc): New function.
22768 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
22769 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
22771 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
22773 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
22774 (__ffsDI2): Likewise.
22776 2011-03-22 Richard Henderson <rth@redhat.com>
22778 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
22779 of !TARGET_ABI_OPEN_VMS.
22780 (alpha_trampoline_init, alpha_start_function): Likewise.
22781 (alpha_expand_epilogue, alpha_file_start): Likewise.
22782 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
22783 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
22784 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
22785 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
22786 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
22788 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22790 * config/s390/s390-opts.h: New.
22791 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
22792 s390_arch_flags, s390_warn_framesize, s390_stack_size,
22793 s390_stack_guard): Remove.
22794 (s390_handle_arch_option): Return void. Take enum
22795 s390_arch_option value instead of string and searching array.
22796 (s390_handle_option): Don't assert that global structures are in
22797 use. Access variables via opts pointer. Use error_at. Don't use
22798 sscanf for -mstack-guard= or -mstack-size=. Update call to
22799 s390_handle_arch_option.
22800 (s390_option_override): Update call to s390_handle_arch_option.
22801 (s390_emit_prologue): Use %d format for s390_stack_size in
22802 diagnostic. Use %wd for HOST_WIDE_INT.
22803 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
22804 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
22805 * config/s390/s390.opt (config/s390/s390-opts.h): New
22806 HeaderInclude entry.
22807 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
22808 s390_arch_flags, s390_warn_framesize): New Variable entries.
22809 (s390_arch_option): New Enum and EnumValue entries.
22810 (march=): Use Enum instead of Var.
22811 (mstack-guard=, mstack-size=): Use UInteger and Var.
22812 (mtune=): Use Enum.
22814 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22816 * config/score/score.c (score_handle_option): Don't assert that
22817 global structures are in use. Access target_flags via opts
22818 pointer. Use value of -march= option to determine target_flags
22820 * config/score/score.opt (march=): Use Enum.
22821 (score_arch): New Enum and EnumValue entries.
22823 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22825 * config/mep/mep.c (option_mtiny_specified): Remove.
22826 (mep_option_override): Move register handling for -mivc2 from
22827 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
22828 instead of option_mtiny_specified.
22829 (mep_handle_option): Access target_flags via opts pointer. Don't
22830 assert that global structures are in use. Defer part of -mivc2
22831 handling and move it to mep_option_override.
22832 * config/mep/mep.opt (IVC2): New Mask entry.
22833 (mivc2): Use Var and Defer instead of Mask.
22835 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22837 * config/v850/v850-opts.h: New.
22838 * config/v850/v850.c (small_memory): Replace with
22839 small_memory_physical_max array. Make that array static const.
22840 (v850_handle_memory_option): Take integer value of argument. Take
22841 gcc_options pointer, option text and location. Return void.
22842 Update for changes to small memory structures.
22843 (v850_handle_option): Access target_flags via opts pointer. Don't
22844 assert that global structures are in use. Update calls to
22845 v850_handle_memory_option.
22846 (v850_encode_data_area): Update references to small memory settings.
22847 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
22848 (enum small_memory_type): Move to v850-opts.h.
22849 * config/v850/v850.opt (config/v850/v850-opts.h): New
22850 HeaderInclude entry.
22851 (small_memory_max): New Variable entry.
22852 (msda): Replace by pair of options msda= and msda-. Use UInteger.
22853 (mtda, mzda): Likewise.
22855 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22857 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
22858 pointer. Don't assert that global structures are in use.
22860 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22862 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
22863 via opts pointer. Don't assert that global structures are in use.
22865 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22867 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
22868 (munix=93): Use Var.
22869 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
22870 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
22871 * config/pa/pa-opts.h: New.
22872 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
22873 (pa_handle_option): Don't assert that global structures are in
22874 use. Access target_flags via opts pointer. Don't handle
22875 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
22877 (pa_option_override): Handle deferred OPT_mfixed_range_.
22879 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22881 * config/mn10300/mn10300-opts.h: New.
22882 * config/mn10300/mn10300.c (mn10300_processor,
22883 mn10300_tune_string): Remove.
22884 (mn10300_handle_option): Don't assert that global structures are
22885 in use. Access mn10300_processor via opts pointer. Don't handle
22887 * config/mn10300/mn10300.h (enum processor_type): Move to
22889 (mn10300_processor): Remove.
22890 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
22891 HeaderInclude entry.
22892 (mn10300_processor): New Variable entry.
22895 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22897 * config/microblaze/microblaze.c: Don't include opts.h.
22898 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
22899 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
22900 (mno-clearbss): Use Var and Warn.
22902 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22904 * config/m32r/m32r-opts.h: New.
22905 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
22906 (m32r_handle_option): Don't assert that global structures are in
22907 use. Access target_flags and m32r_cache_flush_func via opts
22908 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
22909 OPT_mno_flush_trap here.
22910 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
22911 include of m32r-opts.h.
22912 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
22913 HeaderInclude entry.
22914 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
22915 (mmodel=): Use Enum and Var.
22916 (m32r_model): New Enum and EnumValue entries.
22917 (mno-flush-trap): Use Var.
22918 (msdata=): Use Enum and Var.
22919 (m32r_sdata): New Enum and EnumValue entries.
22921 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22923 * config/m32c/m32c.c: Don't include opts.h.
22924 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
22925 m32c_handle_option): Remove.
22926 (m32c_option_override): Check global_options_set.x_target_memregs
22927 instead of target_memregs_set.
22928 * config/m32c/m32c.h (target_memregs): Remove.
22929 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
22932 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22934 * config/iq2000/iq2000-opts.h: New.
22935 * config/iq2000/iq2000.c: Don't include opts.h.
22936 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
22937 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
22938 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
22939 HeaderInclude entry.
22940 (iq2000_tune): New Variable entry.
22941 (march=): Add comment. Use Enum.
22942 (iq2000_arch): New Enum and EnumValue entries.
22943 (mcpu=): Use Enum and Var.
22944 (iq2000_tune): New Enum and EnumValue entries.
22946 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22948 * config/ia64/ia64-opts.h: New.
22949 * config/ia64/ia64.c (ia64_tune): Remove.
22950 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
22951 here. Use error_at.
22952 (ia64_option_override): Handle deferred OPT_mfixed_range_.
22953 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
22954 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
22955 HeaderInclude entry.
22956 (ia64_tune): New Variable entry.
22957 (mfixed-range=): Use Defer and Var.
22958 (mtune=): Use Enum and Var.
22959 (ia64_tune): New Enum and EnumValue entries.
22961 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22963 * config/frv/frv-opts.h: New.
22964 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
22966 (frv_cpu_type): Remove.
22967 * config/frv/frv.c: Don't include opts.h.
22968 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
22969 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
22970 (frv_cpu_type): New Variable entry.
22971 (frv_cpu): New Enum and EnumValue entries.
22973 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22975 * config/cris/cris.c (cris_handle_option): Access target_flags via
22976 opts pointer. Don't assert that global structures are in use.
22977 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
22978 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
22980 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22982 * config/bfin/bfin-opts.h: New.
22983 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
22984 bfin_si_revision, bfin_workarounds): Remove.
22985 (bfin_cpus): Make static const.
22986 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
22987 not bfin_lib_id_given.
22988 (bfin_handle_option): Don't set bfin_lib_id_given. Access
22989 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
22990 pointer. Use error_at. Don't assert that global structures are in use.
22991 * config/bfin/bfin.h: Include bfin-opts.h.
22992 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
22993 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
22994 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
22995 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
22998 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23000 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
23001 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
23002 or -msoft-float here.
23003 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
23004 -msoft-float and -mhard-float.
23005 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
23006 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
23008 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
23010 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
23011 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
23013 (LIBGCC_SPEC): Don't handle -msoft-float.
23014 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
23016 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
23018 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
23019 -mfloat-abi=*, not -msoft-float and -mhard-float.
23020 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
23022 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
23023 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
23024 mhard-float and msoft-float.
23025 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
23026 mfloat-abi=soft in comments, not mhard-float and msoft-float.
23027 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
23028 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
23030 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
23031 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
23033 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
23035 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
23038 2011-03-22 Richard Henderson <rth@redhat.com>
23040 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
23041 TARGET_ABI_WINDOWS_NT.
23042 (alpha_output_function_end_prologue): Likewise.
23043 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
23044 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
23045 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
23046 (trap, *movsi_nt_vms): Likewise.
23047 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
23048 (*tablejump_osf_nt_internal): Remove.
23049 * config/alpha/predicates.md (input_operand): Only test Pmode.
23051 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23053 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
23054 via opts pointer. Use error_at. Don't assert that global
23055 structures are in use.
23057 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23059 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
23060 (ix86_handle_option): Access ix86_isa_flags and
23061 ix86_isa_flags_explicit via opts pointer. Don't assert that
23062 global structures are in use.
23063 (ix86_function_specific_save, ix86_function_specific_restore):
23064 Update ix86_isa_flags_explicit field name.
23065 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
23066 (ix86_isa_flags_explicit): Rename TargetSave entry to
23067 x_ix86_isa_flags_explicit.
23069 2011-03-22 Richard Henderson <rth@redhat.com>
23071 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
23072 (alpha_option_override, direct_return): Likewise.
23073 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
23074 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
23075 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
23076 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
23077 (alpha_expand_epilogue, alpha_end_function): Likewise.
23078 (alpha_init_libfuncs): Likewise.
23079 (struct machine_function): Remove unicosmk members.
23080 (print_operand) ['t']: Remove.
23081 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
23082 unicosmk_output_module_name, unicosmk_output_common,
23083 current_section_align, unicosmk_output_text_section_asm_op,
23084 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
23085 unicosmk_section_type_flags, unicosmk_unique_section,
23086 unicosmk_asm_named_section, unicosmk_insert_attributes,
23087 unicosmk_output_align, unicosmk_defer_case_vector,
23088 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
23089 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
23090 unicosmk_output_ssib, unicosmk_add_call_info_word,
23091 unicosmk_extern_head, unicosmk_output_default_externs,
23092 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
23093 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
23094 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
23095 * config/alpha/alpha-protos.h: Update.
23096 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
23097 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
23098 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
23099 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
23100 (*mulsi_se, mulvsi3): Likewise.
23101 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
23102 (*divmodsi_internal, call, call_value, realign): Likewise.
23103 (moddi3, umoddi3): Likewise; remove duplicate expander.
23104 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
23105 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
23106 (*movdi_nofix): Remove r/U alternative.
23107 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
23108 * config/alpha/constraints.md ("U"): Remove.
23109 * config/alpha/predicates.md (call_operand"): Don't test
23110 TARGET_ABI_UNICOSMK.
23112 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23114 * target.def (handle_option): Take gcc_options and
23115 cl_decoded_option pointers and location_t.
23116 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
23117 * doc/tm.texi: Regenerate.
23118 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
23119 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
23120 * lto-opts.c (lto_reissue_options): Generate option structure for
23121 targetm.handle_option call.
23122 * opts.c (target_handle_option): Update call to
23123 targetm.handle_option. Remove assertions about values now passed
23125 * targhooks.c (default_target_handle_option): New.
23126 * targhooks.h (default_target_handle_option): Declare.
23127 * config/alpha/alpha.c: Include opts.h.
23128 (alpha_handle_option): Update to new hook interface.
23129 * config/arm/arm.c: Include opts.h.
23130 (arm_handle_option): Update to new hook interface.
23131 * config/arm/t-arm (arm.o): Update dependencies.
23132 * config/bfin/bfin.c: Include opts.h.
23133 (bfin_handle_option): Update to new hook interface.
23134 * config/cris/cris.c: Include opts.h.
23135 (cris_handle_option): Update to new hook interface.
23136 * config/frv/frv.c: Include opts.h.
23137 (frv_handle_option): Update to new hook interface.
23138 * config/i386/i386.c: Include opts.h.
23139 (ix86_handle_option): Update to new hook interface.
23140 (ix86_valid_target_attribute_inner_p): Generate option structure
23141 for call to ix86_handle_option.
23142 * config/i386/t-i386 (i386.o): Update dependencies.
23143 * config/ia64/ia64.c: Include opts.h.
23144 (ia64_handle_option): Update to new hook interface.
23145 * config/ia64/t-ia64 (ia64.o): Update dependencies.
23146 * config/iq2000/iq2000.c: Include opts.h.
23147 (iq2000_handle_option): Update to new hook interface.
23148 * config/m32c/m32c.c: Include opts.h.
23149 (m32c_handle_option): Update to new hook interface.
23150 * config/m32r/m32r.c: Include opts.h.
23151 (m32r_handle_option): Update to new hook interface.
23152 * config/m68k/m68k.c: Include opts.h.
23153 (m68k_handle_option): Update to new hook interface.
23154 * config/mep/mep.c: Include opts.h.
23155 (mep_handle_option): Update to new hook interface.
23156 * config/microblaze/microblaze.c: Include opts.h.
23157 (microblaze_handle_option): Update to new hook interface.
23158 * config/mips/mips.c: Include opts.h.
23159 (mips_handle_option): Update to new hook interface.
23160 * config/mn10300/mn10300.c: Include opts.h.
23161 (mn10300_handle_option): Update to new hook interface.
23162 * config/pa/pa.c: Include opts.h.
23163 (pa_handle_option): Update to new hook interface.
23164 * config/pdp11/pdp11.c: Include opts.h.
23165 (pdp11_handle_option): Update to new hook interface.
23166 * config/rs6000/rs6000.c: Include opts.h.
23167 (rs6000_handle_option): Update to new hook interface.
23168 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
23169 * config/rx/rx.c: Include opts.h.
23170 (rx_handle_option): Update to new hook interface.
23171 * config/s390/s390.c: Include opts.h.
23172 (s390_handle_option): Update to new hook interface.
23173 * config/score/score.c: Include opts.h.
23174 (score_handle_option): Update to new hook interface.
23175 * config/sh/sh.c: Include opts.h.
23176 (sh_handle_option): Update to new hook interface.
23177 * config/sparc/sparc.c: Include opts.h.
23178 (sparc_handle_option): Update to new hook interface.
23179 * config/v850/v850.c: Include opts.h.
23180 (v850_handle_option): Update to new hook interface.
23182 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23184 * gcc.c (driver_unknown_option_callback): Only permit and save
23185 unknown -Wno- options.
23186 (driver_wrong_lang_callback): Save options directly instead of via
23187 driver_unknown_option_callback.
23189 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
23191 * combine.c (simplify_set): Try harder to find the best CC mode when
23192 simplifying a nested COMPARE on the RHS.
23194 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23196 * config/alpha/gnu.h: Remove.
23197 * config/arc: Remove directory.
23198 * config/arm/netbsd.h: Remove.
23199 * config/arm/t-pe: Remove.
23200 * config/crx: Remove directory.
23201 * config/i386/netbsd.h: Remove.
23202 * config/m68hc11: Remove directory.
23203 * config/m68k/uclinux-oldabi.h: Remove.
23204 * config/mcore/mcore-pe.h: Remove.
23205 * config/mcore/t-mcore-pe: Remove.
23206 * config/netbsd-aout.h: Remove.
23207 * config/rs6000/gnu.h: Remove.
23208 * config/sh/sh-symbian.h: Remove.
23209 * config/sh/symbian-base.c: Remove.
23210 * config/sh/symbian-c.c: Remove.
23211 * config/sh/symbian-cxx.c: Remove.
23212 * config/sh/symbian-post.h: Remove.
23213 * config/sh/symbian-pre.h: Remove.
23214 * config/sh/t-symbian: Remove.
23215 * config/svr3.h: Remove.
23216 * config/vax/netbsd.h: Remove.
23217 * config.build: Don't handle i[34567]86-*-pe.
23218 * config.gcc: Remove handling of deprecations for most deprecated
23220 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
23221 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
23222 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
23223 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
23224 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
23225 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
23227 * config.host: Don't handle i[34567]86-*-pe.
23228 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
23229 (ASM_SPEC32): Don't handle -mcall-gnu.
23230 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
23232 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
23233 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
23234 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
23235 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
23236 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
23237 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
23238 conditional on SYMBIAN.
23239 * configure.ac: Don't handle powerpc*-*-gnu*.
23240 * configure: Regenerate.
23241 * doc/extend.texi (interrupt attribute): Don't mention CRX.
23242 * doc/install-old.texi (m6811, m6812): Don't mention.
23243 * doc/install.texi (arc-*-elf*): Don't document multilib option.
23244 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
23245 (m68k-uclinuxoldabi): Don't mention.
23246 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
23248 (-mcall-gnu): Remove.
23249 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
23250 families): Remove constraint documentation.
23252 2011-03-22 Marius Strobl <marius@FreeBSD.org>
23254 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
23255 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
23256 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
23258 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
23261 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
23262 vector when peeking at the next token for vector, don't expand the
23265 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
23267 * config/avr/avr-protos.h (expand_epilogue): Change prototype
23268 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
23269 * config/avr/avr.c (init_cumulative_args)
23270 (avr_function_arg_advance): Use it.
23271 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
23273 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
23274 (avr_function_ok_for_sibcall): ...this new function.
23275 (avr_lookup_function_attribute1): New static Function.
23276 (avr_naked_function_p, interrupt_function_p)
23277 (signal_function_p, avr_OS_task_function_p)
23278 (avr_OS_main_function_p): Use it.
23279 * config/avr/avr.md ("sibcall", "sibcall_value")
23280 ("sibcall_epilogue"): New expander.
23281 ("*call_insn", "*call_value_insn"): New insn.
23282 ("call_insn", "call_value_insn"): Remove
23283 ("call", "call_value", "epilogue"): Change expander to handle
23286 2011-03-21 Nick Clifton <nickc@redhat.com>
23288 * doc/invoke.texi (Overall Options): Move closing brace to end of
23290 (Optimization Options): Add missing @gol.
23291 (Directory Options): Likewise.
23292 (i386 and x86-64 Options): Likewise.
23293 (RS6000 and PowerPC Options): Likewise.
23294 (i386 and x86-64 Windows Options): Likewise.
23295 (V850 Options): Add text missing from descriptions.
23297 2011-03-22 Richard Henderson <rth@redhat.com>
23299 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
23300 (avr_incoming_return_addr_rtx): New.
23301 (emit_push_byte): New.
23302 (expand_prologue): Use it. Remove incorrect dwarf annotation for
23303 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
23304 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
23305 (emit_pop_byte): New.
23306 (expand_epilogue): Use it. Pop frame pointer by bytes.
23307 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
23308 (INCOMING_RETURN_ADDR_RTX): New.
23309 (INCOMING_FRAME_SP_OFFSET): New.
23310 (ARG_POINTER_CFA_OFFSET): New.
23311 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
23312 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
23315 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
23317 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
23319 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
23320 (FUNCTION_ARG_ADVANCE): Likewise.
23321 * tm.texi.in: Change references to them to hook references.
23322 * tm.texi: Regenerate.
23323 * targhooks.c (default_function_arg): Eliminate check for target
23325 (default_function_incoming_arg): Likewise.
23326 (default_function_arg_advance): Likewise.
23327 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
23328 (function_arg_advance): Likewise.
23329 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
23331 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
23333 * tree.c (build_call_1): New function.
23334 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
23336 2011-03-22 Richard Guenther <rguenther@suse.de>
23338 PR tree-optimization/48228
23339 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
23340 for single-arg PHIs.
23342 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
23344 PR rtl-optimization/48143
23345 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
23346 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
23347 sse2_cvtps2pd): Likewise.
23349 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23351 * recog.c (canonicalize_change_group): Use validate_unshare_change.
23353 2011-03-22 Richard Guenther <rguenther@suse.de>
23355 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
23356 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
23357 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
23358 and REALIGN_LOAD_EXPR.
23359 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
23360 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
23361 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
23362 DOT_PROD_EXPR case ...
23363 (expand_expr_real_2): ... here.
23364 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
23365 and REALIGN_LOAD_EXPR.
23366 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
23367 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
23368 (vect_create_epilog_for_reduction): Likewise.
23369 (vectorizable_reduction): Likewise.
23370 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
23371 * tree-vect-stmts.c (vectorizable_load): Likewise.
23373 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
23375 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
23377 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23379 * config/s390/s390.c (s390_delegitimize_address): Fix offset
23380 handling for PLTOFF/GOTOFF.
23382 2011-03-22 Nick Clifton <nickc@redhat.com>
23384 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
23385 trailing backslash from the end of the macro definition.
23387 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23389 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
23392 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
23394 * expr.h (prepare_operand): Move to...
23395 * optabs.h (prepare_operand): ...here and change the insn code
23396 parameter from "int" to "enum insn_code".
23397 (insn_operand_matches): Declare.
23398 * expr.c (init_expr_target): Use insn_operand_matches.
23399 (compress_float_constant): Likewise.
23400 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
23401 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
23402 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
23403 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
23405 (gen_cond_trap): Likewise.
23406 (prepare_operand): Likewise. Change icode to an insn_code.
23407 (insn_operand_matches): New function.
23408 * reload.c (find_reloads_address_1): Use insn_operand_matches.
23409 * reload1.c (gen_reload): Likewise.
23410 * targhooks.c (default_secondary_reload): Likewise.
23412 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
23414 * config/alpha/alpha.md (unspec): New define_c_enum.
23417 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
23420 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
23421 between a call and its CALL_ARG_LOCATION note.
23423 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
23425 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
23427 2011-03-21 Jakub Jelinek <jakub@redhat.com>
23431 * c-common.c (shorten_compare): If primopN is first sign-extended
23432 to opN and then zero-extended to result type, set primopN to opN.
23434 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
23436 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
23437 for barrier handlers.
23439 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
23441 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
23442 UNSPEC constants to be in the unspec enumeration, and redefine
23443 all UNSPECV constants to be in the unspecv enumeration, so that
23444 dumps print which unspec/unspec_volatile this is.
23445 * config/rs6000/vector.md (UNSPEC_*): Ditto.
23446 * config/rs6000/paired.md (UNSPEC_*): Ditto.
23447 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
23448 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
23449 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
23451 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
23452 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
23453 UNSPECV_LWSYNC, since these are used as unspec_volatile.
23454 * config/rs6000/sync.md (isync, lwsync): Ditto.
23456 2011-03-21 Richard Guenther <rguenther@suse.de>
23458 * params.def (lto-min-partition): Fix typo.
23460 2011-03-21 Richard Guenther <rguenther@suse.de>
23463 * c-decl.c (grokdeclarator): Drop to the main variant only
23464 for array types. Drop flag_gen_aux_info check.
23466 2011-03-21 Richard Guenther <rguenther@suse.de>
23468 PR translation/47911
23469 * params.def (lto-partitions): Fix typo.
23470 (lto-min-partition): Fix wording.
23472 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
23474 * config/rs6000/t-freebsd: Remove duplication from file.
23476 2011-03-21 Richard Guenther <rguenther@suse.de>
23478 PR middle-end/47661
23479 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
23481 2011-03-21 Richard Guenther <rguenther@suse.de>
23484 * params.def (lto-partitions): Require at least 1 partition.
23486 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23488 * gthr-solaris.h: Remove.
23489 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
23490 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
23491 (LIB_SPEC): Likewise.
23492 * config/sol2.opt (threads): Remove.
23493 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
23494 (sparc*-*-solaris2*): Likewise.
23495 * configure.ac (enable_threads): Enable solaris support.
23496 * configure: Regenerate.
23497 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
23498 * doc/install.texi (Configuration, --enable-threads=lib): Remove
23501 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23503 * config.gcc: Obsolete *-*-solaris2.8*.
23504 * doc/install.texi (Specific, *-*-solaris2*): Document it.
23506 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23509 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
23510 reference. Solaris 8 perl works.
23512 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23515 * doc/install.texi (Prerequisites): Move jar etc. up.
23516 Explain support library version requirements.
23518 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23521 * doc/install.texi (Prerequisites): Move Perl to build
23522 requirements. Always necessary on Solaris 2 with Sun ld.
23524 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23526 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
23528 (Specific, i?86-*-solaris2.[89]): Likewise.
23529 (Specific, i?86-*-solaris2.10): Likewise.
23530 (Specific, mips-sgi-irix6): Likewise.
23531 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
23532 Update for binutils 2.21.
23534 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23536 * configure.ac (gcc_cv_lto_plugin): Fix typo.
23537 Allow -fuse-linker-plugin for non-default plugin linker.
23538 * configure: Regenerate.
23540 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
23543 * gengtype.c (files_rules): Added rule for cp/parser.h.
23545 2011-03-21 Jakub Jelinek <jakub@redhat.com>
23548 * config/s390/s390.c (s390_delegitimize_address): Don't call
23549 lowpart_subreg if orig_x has BLKmode.
23551 2011-03-21 Kai Tietz <ktietz@redhat.com>
23554 * doc/plugins.texi: Adjust documentation for plugin register_callback.
23555 * tree.h (attribute_spec): Add new member affects_type_identity.
23556 * attribs.c (empty_attribute_table): Adjust attribute_spec
23558 * config/alpha/alpha.c: Likewise.
23559 * config/arc/arc.c: Likewise.
23560 * config/arm/arm.c: Likewise.
23561 * config/avr/avr.c: Likewise.
23562 * config/bfin/bfin.c: Likewise.
23563 * config/crx/crx.c: Likewise.
23564 * config/darwin.h: Likewise.
23565 * config/h8300/h8300.c: Likewise.
23566 * config/i386/cygming.h: Likewise.
23567 * config/i386/i386.c: Likewise.
23568 * config/ia64/ia64.c: Likewise.
23569 * config/m32c/m32c.c: Likewise.
23570 * config/m32r/m32r.c: Likewise.
23571 * config/m68hc11/m68hc11.c: Likewise.
23572 * config/m68k/m68k.c: Likewise.
23573 * config/mcore/mcore.c: Likewise.
23574 * config/mep/mep.c: Likewise.
23575 * config/microblaze/microblaze.c: Likewise.
23576 * config/mips/mips.c: Likewise.
23577 * config/rs6000/rs6000.c: Likewise.
23578 * config/rx/rx.c: Likewise.
23579 * config/sh/sh.c: Likewise.
23580 * config/sol2.h: Likewise.
23581 * config/sparc/sparc.c: Likewise.
23582 * config/spu/spu.c: Likewise.
23583 * config/stormy16/stormy16.c: Likewise.
23584 * config/v850/v850.c: Likewise.
23586 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
23588 * simplify-rtx.c (simplify_binary_operation_1): Handle
23589 (xor (and A B) C) case when B and C are both constants.
23591 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
23593 * tree-dfa.c (add_referenced_var): Fix typo in comment.
23595 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
23598 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
23600 2011-03-20 Jakub Jelinek <jakub@redhat.com>
23602 PR rtl-optimization/48156
23603 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
23604 assume df and df_lr are not NULL.
23606 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23609 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
23610 between a call and its CALL_ARG_LOCATION note.
23612 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
23615 * config/sh/sh.c (find_barrier): Don't emit a constant pool
23616 between a call and its corresponding CALL_ARG_LOCATION note.
23618 2011-03-19 Anatoly Sokolov <aesok@post.ru>
23620 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
23621 instead of loop. Use HARD_REGISTER_NUM_P predicate.
23622 * haifa-sched.c (setup_ref_regs): Ditto.
23623 * caller-save.c (add_used_regs_1): Ditto.
23624 * dse.c (look_for_hardregs): Ditto.
23625 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
23626 * sched-rgn.c (check_live_1): Ditto.
23628 2011-03-18 Joseph Myers <joseph@codesourcery.com>
23630 * c-decl.c (diagnose_mismatched_decls): Give an error for
23631 redefining a typedef with variably modified type.
23633 2011-03-18 Joseph Myers <joseph@codesourcery.com>
23635 * c-decl.c (grokfield): Don't allow typedefs for structures or
23636 unions with no tag by default.
23637 * doc/extend.texi (Unnamed Fields): Update.
23639 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
23641 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
23642 Rewrite using indirect functions.
23643 (lwp_slwpcb): Ditto.
23644 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
23645 (avx_vinsertf128<mode>): Ditto.
23647 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23649 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
23652 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23654 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
23655 splitting between a call and its corresponding CALL_ARG_LOCATION note.
23657 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
23659 PR rtl-optimization/48170
23660 * gcse.c (hoist_code): Remove bogus asserts.
23662 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
23664 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
23665 computation for prologue/epilogue.
23667 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23669 * Makefile.in (check-consistency): Remove.
23671 2011-03-18 Jakub Jelinek <jakub@redhat.com>
23674 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
23675 arange_table_in_use is 0, but either text_section_used or
23676 cold_text_section_used is true. Don't call it if
23677 !info_section_emitted.
23679 2011-03-18 Anatoly Sokolov <aesok@post.ru>
23681 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
23682 FUNCTION_VALUE_REGNO_P): Remove.
23683 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
23685 * config/avr/avr.c (avr_ret_register): Make static inline.
23686 (avr_function_value_regno_p): New function.
23687 (avr_libcall_value): Make static. Add 'func' argument.
23688 (avr_function_value): Make static. Rename 'func' argument to
23689 'fn_decl_or_type', forward it to avr_libcall_value. Call
23690 avr_ret_register function instead of RET_REGISTER macro.
23691 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
23693 2011-03-18 Jason Merrill <jason@redhat.com>
23696 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
23698 2011-03-18 Richard Guenther <rguenther@suse.de>
23700 * doc/install.texi (--enable-gold): Remove.
23701 (--with-plugin-ld): Document.
23702 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
23704 2011-03-18 Andrew Pinski <pinskia@gmail.com>
23706 PR middle-end/47790
23707 * expr.c (optimize_bitfield_assignment_op): Revamp to work
23708 again after expansion changes.
23710 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
23712 * combine.c (try_combine): Do simplification only call of
23713 subst() on i2 even when i1 is present. Update comments.
23715 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
23717 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
23718 and UNSPEC_PCREL_SYMOFF.
23720 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23722 * config/s390/s390.md: Use define_c_enum for the unspec constant
23725 2011-03-18 Richard Henderson <rth@redhat.com>
23726 Jakub Jelinek <jakub@redhat.com>
23729 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
23730 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
23732 2011-03-17 Anatoly Sokolov <aesok@post.ru>
23734 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
23735 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
23736 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
23737 Change return type to bool.
23738 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
23740 2011-03-17 Jakub Jelinek <jakub@redhat.com>
23743 * var-tracking.c (prepare_call_arguments): If CALL target
23744 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
23745 pc instead of looking it up using cselib_lookup and use
23746 Pmode for it if x has VOIDmode.
23747 * dwarf2out.c (gen_subprogram_die): If also both first and
23748 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
23751 * function.c (assign_parms): For data.passed_pointer parms
23752 use MEM of data.entry_parm instead of data.entry_parm itself
23753 as DECL_INCOMING_RTL.
23754 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
23755 also when passed and declared mode is the same, DECL_RTL
23756 is a MEM with pseudo as address and DECL_INCOMING_RTL is
23759 2011-03-16 Jeff Law <law@redhat.com>
23761 PR rtl-optimization/37273
23762 * ira-costs.c (scan_one_insn): Detect constants living in memory and
23763 handle them like argument loads from stack slots. Do not double
23764 count memory for memory constants and argument loads from stack slots.
23766 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
23769 * var-tracking.c (prepare_call_arguments): Check SUBREG.
23771 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
23774 * config/i386/i386.opt: Add Save to -mavx and -mfma.
23776 2011-03-17 Jakub Jelinek <jakub@redhat.com>
23779 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
23781 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
23782 Clear call_arg_locations and call_arg_loc_last always.
23784 PR middle-end/48152
23785 * var-tracking.c (prepare_call_arguments): If argument needs to be
23786 passed by reference, adjust argtype and mode.
23788 2011-03-17 Richard Guenther <rguenther@suse.de>
23790 PR middle-end/48134
23791 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
23792 a value make sure to fold the statement.
23794 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
23797 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
23798 return condition with !cfun->calls_alloca.
23800 2011-03-17 Richard Guenther <rguenther@suse.de>
23803 * lto-cgraph.c (input_overwrite_node): Clear the abstract
23804 origin for decls in other ltrans units.
23805 (input_varpool_node): Likewise.
23807 2011-03-17 Richard Guenther <rguenther@suse.de>
23809 PR middle-end/48165
23810 * tree-object-size.c (compute_object_offset): Properly return
23811 the offset operand of MEM_REFs as sizetype.
23813 2011-03-17 Jakub Jelinek <jakub@redhat.com>
23815 PR rtl-optimization/48141
23816 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
23817 * dse.c: Include params.h.
23818 (active_local_stores_len): New variable.
23819 (add_wild_read, dse_step1): Clear it when setting active_local_stores
23821 (record_store, check_mem_read_rtx): Decrease it when removing
23823 (scan_insn): Likewise. Increase it when adding to chain, if it
23824 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
23825 set active_local_stores to NULL before the addition.
23826 * Makefile.in (dse.o): Depend on $(PARAMS_H).
23828 PR rtl-optimization/48141
23829 * dse.c (record_store): If no positions are needed in an insn
23830 that cannot be deleted, at least unchain it from active_local_stores.
23832 2011-03-16 Dodji Seketeli <dodji@redhat.com>
23835 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
23836 (lookup_type_die_strip_naming_typedef): ... here.
23837 (get_context_die): Use it.
23838 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
23839 the anonymous struct named by the naming typedef.
23841 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
23844 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
23845 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
23847 2011-03-16 Jeff Law <law@redhat.com>
23849 * tree-vrp.c (identify_jump_threads): Slightly simplify type
23850 check for operands of conditional. Allow type to be a pointer.
23852 2011-03-16 Richard Guenther <rguenther@suse.de>
23854 PR tree-optimization/48149
23855 * fold-const.c (fold_binary_loc): Fold
23856 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
23858 2011-03-16 Richard Guenther <rguenther@suse.de>
23860 PR tree-optimization/26134
23861 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
23862 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
23863 (non_rewritable_mem_ref_base): Handle complex type component
23864 accesses, constrain offsets for vector and complex extracts
23867 2011-03-16 Richard Guenther <rguenther@suse.de>
23869 PR tree-optimization/48146
23870 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
23871 operands avoiding the need for renaming.
23873 2011-03-16 Richard Guenther <rguenther@suse.de>
23875 * gimple-fold.c (maybe_fold_reference): Open-code relevant
23876 constant folding. Move MEM_REF canonicalization first.
23877 Rely on fold_const_aggregate_ref for initializer folding.
23878 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
23880 2011-03-16 Jakub Jelinek <jakub@redhat.com>
23882 PR middle-end/48136
23883 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
23884 arg0/arg1 or their arguments are always fold converted to matching
23887 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
23890 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23893 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
23894 Handle in-tree gold.
23895 (ld_vers): Extract binutils version for gold.
23896 (gcc_cv_ld_hidden): Handle gold here.
23897 (gcc_cv_lto_plugin): Determine level of linker plugin support.
23898 * configure: Regenerate.
23899 * config.in: Regenerate.
23900 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
23901 -fuse-linker-plugin otherwise.
23902 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
23903 (LINK_COMMAND_SPEC): Use it.
23904 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
23906 2011-03-16 Jakub Jelinek <jakub@redhat.com>
23908 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
23909 * calls.c: Remove debug.h include.
23910 (emit_call_1): Don't call virtual_call_token debug hook.
23911 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
23912 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
23913 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
23914 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
23915 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
23916 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
23917 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
23918 dwarf2out_virtual_call): Remove.
23919 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
23920 copy_call_info and virtual_call hooks.
23921 (dwarf2out_init): Don't initialize vcall_insn_table,
23922 debug_dcall_section and debug_vcall_section.
23923 (prune_unused_types): Don't mark nodes from dcall_table.
23924 (dwarf2out_finish): Don't output dcall or vcall tables.
23925 * final.c (final_scan_insn): Don't call direct_call or
23926 virtual_call debug hooks.
23927 * debug.h (struct gcc_debug_hooks): Remove direct_call,
23928 virtual_call_token, copy_call_info and virtual_call hooks.
23929 (debug_nothing_uid): Remove prototype.
23930 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
23931 copy_call_info and virtual_call hooks.
23932 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
23933 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
23934 * debug.c (do_nothing_debug_hooks): Likewise.
23935 (debug_nothing_uid): Remove.
23936 * doc/invoke.texi (-fenable-icf-debug): Remove.
23937 * common.opt (-fenable-icf-debug): Likewise.
23939 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
23940 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
23941 call's MEM. Handle functions returning aggregate through a hidden
23942 first pointer. For virtual calls add clobbered pc to call arguments
23944 * dwarf2out.c (gen_subprogram_die): Emit
23945 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
23949 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
23950 * rtl.h (ENTRY_VALUE_EXP): Define.
23951 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
23952 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
23953 * print-rtl.c (print_rtx): Likewise.
23954 * gengtype.c (adjust_field_rtx_def): Likewise.
23955 * var-tracking.c (vt_add_function_parameter): Adjust
23956 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
23957 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
23958 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
23959 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
23960 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
23962 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
23963 Call var_location debug hook even on CALL_INSNs.
23964 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
23965 * rtl.def (ENTRY_VALUE): New.
23966 * dwarf2out.c: Include cfglayout.h.
23967 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
23968 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
23969 (struct call_arg_loc_node): New type.
23970 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
23971 tail_call_site_count): New variables.
23972 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
23973 DW_TAG_GNU_call_site_parameter.
23974 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
23975 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
23976 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
23977 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
23978 and DW_AT_GNU_all_source_call_sites.
23979 (mem_loc_descriptor): Handle ENTRY_VALUE.
23980 (add_src_coords_attributes): Don't add enything if
23981 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
23982 (dwarf2out_abstract_function): Save and clear call_arg_location,
23983 call_site_count and tail_call_site_count around dwarf2out_decl call.
23984 (gen_call_site_die): New function.
23985 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
23986 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
23987 (dwarf2out_function_decl): Clear call_arg_locations,
23988 call_arg_loc_last, set call_site_count and tail_call_site_count
23989 to -1 and free block_map.
23990 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
23991 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
23992 followed by any real instructions.
23993 (dwarf2out_begin_function): Set call_site_count and
23994 tail_call_site_count to 0.
23995 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
23996 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
23997 attempt to force a DIE for it and worst case remove the attribute.
23998 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
23999 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
24001 * var-tracking.c: Include tm_p.h.
24002 (vt_stack_adjustments): For calls call note_register_arguments.
24003 (argument_reg_set): New variable.
24004 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
24005 ensure the VALUE is resolved.
24006 (call_arguments): New variable.
24007 (prepare_call_arguments): New function.
24008 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
24009 (struct expand_loc_callback_data): Add ignore_cur_loc field.
24010 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
24011 always use the best expression.
24012 (vt_expand_loc): Add ignore_cur_loc argument.
24013 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
24014 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
24015 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
24016 note for all calls.
24017 (vt_add_function_parameter): Use cselib_lookup_from_insn.
24018 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
24019 argument. Don't call cselib_preserve_only_values and
24020 cselib_reset_table.
24021 (note_register_arguments): New function.
24022 (vt_initialize): Compute argument_reg_set. Call
24023 vt_add_function_parameters before processing basic blocks instead of
24024 afterwards. For calls call prepare_call_arguments before calling
24025 cselib_process_insn.
24026 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
24027 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
24028 (var-tracking.o): Depend on $(TM_P_H).
24029 * cfglayout.h (insn_scope): New prototype.
24030 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
24031 * cfglayout.c (insn_scope): No longer static.
24032 * insn-notes.def (CALL_ARG_LOCATION): New.
24033 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
24034 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
24035 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
24036 nothing for DECL_EXTERNAL BLOCK_VARS.
24038 2011-03-16 Alan Modra <amodra@gmail.com>
24041 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
24042 create invalid offset address for vsx splat insn.
24043 * config/rs6000/predicates.md (splat_input_operand): New.
24044 * config/rs6000/vsx.md (vsx_splat_*): Use it.
24046 2011-03-15 Xinliang David Li <davidxl@google.com>
24049 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
24050 (normalize_preds): New function.
24051 (is_use_properly_guarded): Normalize def predicates.
24053 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
24056 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
24057 in the output template.
24059 2011-03-15 Richard Guenther <rguenther@suse.de>
24061 PR middle-end/47650
24062 * tree-pretty-print.c (dump_function_declaration): Properly
24063 dump unprototyped and varargs function types.
24065 2011-03-15 Richard Guenther <rguenther@suse.de>
24067 PR tree-optimization/13954
24068 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
24071 2011-03-15 Richard Guenther <rguenther@suse.de>
24073 PR tree-optimization/48037
24074 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
24075 selects into BIT_FIELD_REFs.
24076 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
24079 2011-03-15 Jakub Jelinek <jakub@redhat.com>
24081 PR tree-optimization/48129
24082 * builtins.c (fold_builtin_snprintf): Convert to type of
24083 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
24084 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
24086 2011-03-15 Richard Guenther <rguenther@suse.de>
24088 PR tree-optimization/41490
24089 * tree-ssa-dce.c (propagate_necessity): Handle returns without
24090 value but with VUSE.
24091 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
24093 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
24094 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
24095 * tree-tailcall.c (find_tail_calls): Ignore returns.
24097 2011-03-15 Richard Guenther <rguenther@suse.de>
24099 PR middle-end/48031
24100 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
24101 or variable-indexed array accesses when in gimple form.
24103 2011-03-15 Richard Guenther <rguenther@suse.de>
24105 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
24107 2011-03-15 Alan Modra <amodra@gmail.com>
24110 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
24111 presume symbol_refs without a symbol_ref_decl are suitably
24112 aligned, nor other trees we may see here. Handle anchor symbols.
24113 (legitimate_constant_pool_address_p): Comment. Add mode param.
24114 Check cmodel=medium addresses. Adjust all calls.
24115 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
24116 creating cmodel=medium optimized access to locals.
24117 * config/rs6000/constraints.md (R): Pass QImode to
24118 legitimate_constant_pool_address_p.
24119 * config/rs6000/predicates.md (input_operand): Pass mode to
24120 legitimate_constant_pool_address_p.
24121 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
24124 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
24127 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
24128 64-bit constants being loaded into registers other than GPRs such
24129 as loading 0 into a VSX register.
24131 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24133 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
24135 2011-03-14 Jakub Jelinek <jakub@redhat.com>
24137 PR middle-end/47917
24138 * builtins.c (fold_builtin_snprintf): New function.
24139 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
24140 (fold_builtin_4): Likewise.
24142 PR middle-end/38878
24143 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
24144 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
24145 and C - X == X also strip nops from +/-/p+ operand.
24146 When optimizing -X == C, fold C to arg0's type.
24149 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
24150 emit it as add_AT_int instead of add_AT_unsigned.
24152 2011-03-14 Tom Tromey <tromey@redhat.com>
24154 * unwind-dw2.c: Include sys/sdt.h if it exists.
24155 (_Unwind_DebugHook): Use STAP_PROBE2.
24156 * config.in, configure: Rebuild.
24157 * configure.ac: Check for sys/sdt.h.
24159 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
24161 * config/i386/i386.md (ROUND_FLOOR): New constant.
24162 (ROUND_CEIL): Ditto.
24163 (ROUND_TRUNC): Ditto.
24164 (ROUND_MXCSR): Ditto.
24165 (ROUND_NO_EXC): Ditto.
24166 (rint<mode>2): Use new defines instead of numerical constants.
24167 (floor<mode>2): Ditto.
24168 (ceil<mode>2): Ditto.
24169 (btrunc<mode>2): Ditto.
24170 * config/i386/i386-builtin-types.def: Define ROUND function type
24172 * config/i386/i386.c (enum ix86_builtins): Add
24173 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
24174 (struct builtin_description): Add
24175 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
24176 (ix86_expand_sse_round): New static function.
24177 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
24179 (ix86_builtin_vectorized_function): Handle
24180 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
24182 2011-03-14 Tom Tromey <tromey@redhat.com>
24184 * c-parser.c (c_parser_asm_string_literal): Clear
24185 warn_overlength_strings.
24187 2011-03-14 Tom Tromey <tromey@redhat.com>
24189 * c-parser.c (disable_extension_diagnostics): Save
24190 warn_overlength_strings.
24191 (restore_extension_diagnostics): Restore warn_overlength_strings.
24193 2011-03-14 Jakub Jelinek <jakub@redhat.com>
24195 * BASE-VER: Change to 4.7.0.
24197 2011-03-14 Richard Guenther <rguenther@suse.de>
24199 PR middle-end/48098
24200 * tree.c (build_vector_from_val): Adjust assert to requirements
24203 2011-03-14 Jakub Jelinek <jakub@redhat.com>
24206 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
24208 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
24210 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
24211 terms of target_flags_explicit. Adjust copyright year.
24213 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
24214 * config/rs6000/t-freebsd: New file. Add override for
24217 2011-03-13 Chris Demetriou <cgd@google.com>
24219 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
24220 (-fno-diagnostics-show-option): this, to reflect current default.
24221 (-Werror=): Update text about -fno-diagnostics-show-option.
24223 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
24226 * config/rs6000/predicates.md (easy_vector_constant_add_self,
24227 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
24228 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
24229 mode is not V2DImode or V2DFmode.
24230 (vspltis_constant): Do not handle V2DImode and V2DFmode.
24231 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
24232 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
24234 (movdi_internal64): Likewise.
24236 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
24238 PR tree-optimization/47127
24239 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
24241 (set_cloog_options): Same.
24242 (scop_to_clast): Same.
24243 (print_clast_stmt): Do not call cloog_state_malloc and
24245 (print_generated_program): Same.
24247 * graphite-clast-to-gimple.h (cloog_state): Declared.
24248 (scop_to_clast): Adjust declaration.
24249 * graphite.c (cloog_state): Defined here.
24250 (graphite_initialize): Call cloog_state_malloc.
24251 (graphite_finalize): Call cloog_state_free.
24253 2011-03-11 Jason Merrill <jason@redhat.com>
24255 * attribs.c (lookup_attribute_spec): Take const_tree.
24258 2011-03-11 Joseph Myers <joseph@codesourcery.com>
24260 * config/sparc/sparc.c (sparc_option_override): Use
24261 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
24263 2011-03-11 Richard Guenther <rguenther@suse.de>
24265 PR tree-optimization/48067
24266 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
24267 multiplication result will be only used once on the target
24270 2011-03-11 Richard Guenther <rguenther@suse.de>
24272 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
24274 2011-03-11 Richard Guenther <rguenther@suse.de>
24277 * tree.c (find_decls_types_r): Do not walk types only reachable
24278 from IDENTIFIER_NODEs.
24280 2011-03-11 Jakub Jelinek <jakub@redhat.com>
24282 PR middle-end/48044
24283 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
24284 all vnode->force_output nodes as needed.
24286 2011-03-11 Jason Merrill <jason@redhat.com>
24289 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
24290 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
24292 2011-03-11 Martin Jambor <mjambor@suse.cz>
24294 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
24297 2011-03-11 Jakub Jelinek <jakub@redhat.com>
24299 PR tree-optimization/48063
24300 * ipa-inline.c (cgraph_decide_inlining): Don't try to
24301 inline functions called once if !tree_can_inline_p (node->callers).
24303 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
24305 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
24307 * config/score/score3.c: Delete.
24308 * config/score/score3.h: Delete.
24309 * config/score/mul-div.S: Delete.
24310 * config/score/sfp-machine.h: Add new file.
24311 * config/score/constraints.md: Add new file.
24312 * config/score/t-score-softfp: Add new file.
24313 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
24314 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
24315 (score7_extra_constraint): Delete.
24316 (score7_option_override): Remove unused code.
24317 * config/score/score.c: Remove score3 and score5 define and code.
24318 * config/score/score.h: Remove score3 and score5 define and code.
24319 * config/score/score.md: Remove score3 template and unusual insn.
24320 * config/score/score.opt: Remove score3 and score5 options.
24322 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24324 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
24325 when _HPUX_SOURCE is defined.
24326 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
24328 2011-03-10 Jason Merrill <jason@redhat.com>
24331 * stor-layout.c (layout_type): Don't set structural equality
24332 on arrays of incomplete type.
24333 * tree.c (type_hash_eq): Handle comparing them properly.
24335 2011-03-10 Jakub Jelinek <jakub@redhat.com>
24338 * config/s390/s390.c (s390_delegitimize_address): Make sure the
24339 result mode matches original rtl mode.
24341 2011-03-10 Nick Clifton <nickc@redhat.com>
24343 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
24344 (andsi3, andsi3_flags): Fix timings for three operand alternative.
24346 2011-03-09 Jakub Jelinek <jakub@redhat.com>
24348 PR rtl-optimization/47866
24349 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
24350 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
24351 if target wasn't scalar.
24352 * function.c (assign_stack_temp_for_type): Assert that neither
24353 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
24354 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
24356 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
24358 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24360 * config/s390/s390-protos.h (s390_label_align): New prototype.
24361 * config/s390/s390.c (s390_label_align): New function.
24362 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
24364 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
24367 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
24368 V2DI/V2DF constants. Only all 0's or all 1's are easy.
24369 (output_vec_const_move): Ditto.
24371 2011-03-08 Anatoly Sokolov <aesok@post.ru>
24373 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
24374 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
24375 * config/mips/mips.c (mips_preferred_reload_class): Make static.
24376 Change 'rclass' argument and result type to reg_class_t.
24377 (TARGET_PREFERRED_RELOAD_CLASS): Define.
24379 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
24381 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
24382 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
24383 (TARGET_MEMORY_MOVE_COST): Define.
24384 (avr_register_move_cost, avr_memory_move_cost): New Functions.
24386 2011-03-08 Jakub Jelinek <jakub@redhat.com>
24389 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
24392 PR tree-optimization/48022
24393 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
24396 2011-03-07 Jakub Jelinek <jakub@redhat.com>
24399 * var-tracking.c (find_use_val): Return NULL for
24400 cui->sets && cui->store_p BLKmode MEMs.
24402 2011-03-07 Anatoly Sokolov <aesok@post.ru>
24404 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
24406 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
24407 xstormy16_print_operand_address): Remove.
24408 * config/stormy16/stormy16.c (xstormy16_print_operand,
24409 xstormy16_print_operand_address): Make static.
24410 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24412 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
24415 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
24416 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
24419 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
24422 * cfgloopmanip.c (fix_bb_placements): Return immediately
24423 if FROM is BASE_LOOP's header.
24425 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
24427 * gimplify.c (gimplify_function_tree): Fix building calls
24428 to __builtin_return_address.
24430 2011-03-07 Alan Modra <amodra@gmail.com>
24432 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
24433 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
24434 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
24435 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
24437 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
24438 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
24439 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
24440 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
24441 * config/rs6000/rs6000.c
24442 (rs6000_elf_end_indicate_exec_stack): Rename to..
24443 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
24444 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
24445 (rs6000_file_start): ..here.
24446 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
24447 file scope variables.
24448 (call_ABI_of_interest): New function.
24449 (init_cumulative_args): Set above vars when function return value
24450 is a float, vector, or small struct.
24451 (rs6000_function_arg_advance_1): Likewise for function args.
24452 (rs6000_va_start): Set rs6000_passes_float if variable arg function
24453 references float args.
24455 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
24457 * doc/cfg.texi: Remove "See" before @ref.
24458 * doc/invoke.texi: Likewise.
24460 2011-03-05 Jason Merrill <jason@redhat.com>
24462 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
24464 2011-03-05 Anthony Green <green@moxielogic.com>
24466 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
24468 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
24470 PR rtl-optimization/47899
24471 * cfgloopmanip.c (fix_bb_placements): Fix first argument
24472 to flow_loop_nested_p when moving the loop upward.
24474 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
24477 * arm.md (movhi_insn_arch4): Accept any immediate constant.
24479 2011-03-05 Jakub Jelinek <jakub@redhat.com>
24481 PR tree-optimization/47967
24482 * ipa-cp.c (build_const_val): Return NULL instead of creating
24483 VIEW_CONVERT_EXPR for mismatching sizes.
24484 (ipcp_create_replace_map): Return NULL if build_const_val failed.
24485 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
24486 give up on versioning.
24488 2011-03-05 Alan Modra <amodra@gmail.com>
24491 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
24492 full cmodel medium/large lo_sum + high addresses.
24494 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24496 * config/s390/s390.c (s390_decompose_address): Reject non-literal
24497 pool references in UNSPEC_LTREL_OFFSET.
24499 2011-03-04 Jan Hubicka <jh@suse.cz>
24502 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
24503 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
24504 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
24506 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
24507 cgraph_add_thunk): Add node pointers.
24508 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
24509 associated to right node.
24510 (input_node): Update use of cgraph_same_body_alias
24511 and cgraph_add_thunk.
24513 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
24515 * config/i386/i386.opt (mprefer-avx128): New flag.
24516 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
24517 modes when the flag -mprefer-avx128 is on.
24519 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
24521 * dwarf2out.c (compare_loc_operands): Fix address handling.
24523 2011-03-04 Alan Modra <amodra@gmail.com>
24525 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
24527 2011-03-04 Richard Guenther <rguenther@suse.de>
24529 PR middle-end/47968
24530 * expmed.c (extract_bit_field_1): Prefer vector modes that
24531 vec_extract patterns can handle.
24533 2011-03-04 Richard Guenther <rguenther@suse.de>
24535 PR middle-end/47975
24536 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
24538 2011-03-04 Richard Henderson <rth@redhat.com>
24540 * explow.c (emit_stack_save): Remove 'after' parameter.
24541 (emit_stack_restore): Likewise.
24542 * expr.h: Update to match.
24543 * builtins.c, calls.c, stmt.c: Likewise.
24544 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
24545 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
24546 * function.c (expand_function_end): Insert the emit_stack_save
24547 sequence before parm_birth_insn instead of after.
24549 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
24551 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
24552 (ssse3_pmaddubsw128): Ditto.
24553 (ssse3_pmaddubsw): Ditto.
24555 2011-03-03 Steve Ellcey <sje@cup.hp.com>
24557 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
24559 2011-03-03 Jakub Jelinek <jakub@redhat.com>
24562 * gimplify.c (omp_add_variable): Only call omp_notice_variable
24563 on TYPE_SIZE_UNIT if it is a DECL.
24566 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
24567 first operand is not is_gimple_mem_ref_addr, try to fold it.
24568 If the operand still isn't is_gimple_mem_ref_addr, clear
24571 2011-03-03 Richard Guenther <rguenther@suse.de>
24573 PR middle-end/47283
24574 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
24576 (refs_may_alias_p_1): For release branches return true if
24577 we are confused by our input.
24579 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24581 * config/s390/s390.c (s390_function_value): Rename to ...
24582 (s390_function_and_libcall_value): ... this.
24583 (s390_function_value): New function.
24584 (s390_libcall_value): New function.
24585 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
24586 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
24587 target macro definitions.
24588 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
24590 2011-03-02 Joseph Myers <joseph@codesourcery.com>
24592 * config/i386/freebsd64.h (CC1_SPEC): Define.
24593 * config/i386/linux64.h (CC1_SPEC): Define.
24594 * config/i386/x86-64.h (CC1_SPEC): Don't define.
24596 2011-03-02 Anatoly Sokolov <aesok@post.ru>
24598 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
24600 * config/stormy16/stormy16.c: Include reload.h.
24601 (xstormy16_memory_move_cost): New function.
24602 (TARGET_MEMORY_MOVE_COST): Define.
24604 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
24606 PR rtl-optimization/47925
24607 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
24608 with side effects. Remove the more-specific check for volatile asms.
24610 2011-03-02 Alan Modra <amodra@gmail.com>
24613 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
24614 toc relative addresses for valid offsets.
24616 2011-03-01 Richard Guenther <rguenther@suse.de>
24618 PR tree-optimization/47890
24619 * tree-vect-loop.c (get_initial_def_for_induction): Set
24620 related stmt properly.
24622 2011-03-01 Richard Guenther <rguenther@suse.de>
24625 * lto-streamer.c (lto_record_common_node): Also register
24626 the canonical type.
24628 2011-03-01 Richard Guenther <rguenther@suse.de>
24631 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
24632 Do not stream DECL_ABSTRACT_ORIGIN.
24633 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
24634 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
24635 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
24636 Do not stream DECL_ABSTRACT_ORIGIN.
24637 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
24638 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
24640 2011-02-28 Anatoly Sokolov <aesok@post.ru>
24642 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
24643 FUNCTION_VALUE_REGNO_P): Remove.
24644 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
24645 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
24646 Add 'outgoing' argument.
24647 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
24649 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24650 TARGET_FUNCTION_VALUE_REGNO_P): Define.
24652 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
24655 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
24656 (lookup_filename): Likewise.
24657 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
24659 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
24660 Jakub Jelinek <jakub@redhat.com>
24662 PR middle-end/47893
24663 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
24664 (assign_stack_local_1): Change last argument type to int.
24665 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
24666 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
24667 don't record padding space into frame_space_list nor use those areas.
24668 (assign_stack_local): Adjust caller.
24669 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
24670 of assign_stack_local, pass 0 as last argument.
24671 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
24674 2011-02-28 Jakub Jelinek <jakub@redhat.com>
24677 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
24678 Use target address_mode and pointer_mode hooks instead of hardcoded
24679 Pmode and ptr_mode. Handle some simple cases of extending if
24680 POINTERS_EXTEND_UNSIGNED < 0.
24681 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
24682 Call convert_debug_memory_address.
24683 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
24684 convert_debug_memory_address.
24686 PR middle-end/46790
24687 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
24688 * configure: Regenerated.
24689 * config.in: Regenerated.
24690 * varasm.c (default_function_section): Return NULL
24691 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
24693 2011-02-28 Martin Jambor <mjambor@suse.cz>
24695 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
24696 the description to match the printed values.
24698 2011-02-28 Richard Guenther <rguenther@suse.de>
24700 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
24701 of the copied scope tree.
24703 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24705 * doc/extend.texi (Function Attributes): Avoid deeply (and
24706 wrongly) nested tables.
24708 2011-02-27 Jakub Jelinek <jakub@redhat.com>
24710 PR middle-end/47903
24711 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
24712 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
24713 r isn't op0 nor op1.
24715 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
24717 * config/avr/avr.md: Remove magic comment for emacs.
24719 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
24722 * config/avr/avr.c (avr_option_override): Use error on bad options.
24723 (avr_help): New function.
24724 (TARGET_HELP): Define.
24726 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
24729 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
24730 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
24732 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
24734 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
24735 (ARM Options): Ditto.
24736 (i386 and x86-64 Options): Ditto.
24737 (RX Options): Ditto.
24738 (SPARC Options): Ditto.
24740 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
24742 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
24743 FreeBSD 6 and later. Generally use cpu generic.
24745 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
24747 * doc/cpp.texi: Update copyright years.
24749 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
24752 * config/lm32/lm32.md (ashrsi3): Added needed variable.
24754 2011-02-25 Jon Beniston <jon@beniston.com>
24757 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
24758 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
24759 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
24760 (lm32_block_move_inline): Add type cast to remove warning.
24761 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
24762 (gen_int_relational): Move declarations to start of function.
24764 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
24766 PR tree-optimization/45470
24767 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
24768 can throw internally only.
24769 * tree-vect-stmts.c (vectorizable_call): Likewise.
24771 2011-02-24 Anatoly Sokolov <aesok@post.ru>
24773 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
24774 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
24775 * config/stormy16/stormy16-protos.h
24776 (xstormy16_preferred_reload_class): Remove.
24777 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
24778 static. Change 'rclass' argument and return type to reg_class_t.
24779 (TARGET_PREFERRED_RELOAD_CLASS,
24780 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
24782 2011-02-24 Richard Guenther <rguenther@suse.de>
24784 * lto-streamer-in.c (input_bb): Do not find referenced vars
24785 in debug statements.
24787 2011-02-23 Jason Merrill <jason@redhat.com>
24789 * common.opt (fabi-version): Document v5 and v6.
24791 2011-02-23 Richard Guenther <rguenther@suse.de>
24793 PR tree-optimization/47849
24794 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
24796 2011-02-23 Jie Zhang <jie@codesourcery.com>
24798 * opts-common.c (decode_cmdline_option): Print empty string
24799 argument as "" in decoded->orig_option_with_args_text.
24800 * gcc.c (execute): Print empty string argument as ""
24801 in the verbose output.
24802 (do_spec_1): Keep empty string argument.
24804 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
24806 * config.gcc: Declare score-* and crx-* obsolete.
24808 2011-02-23 Jie Zhang <jie@codesourcery.com>
24810 PR rtl-optimization/47763
24811 * web.c (web_main): Ignore naked clobber when replacing register.
24813 2011-02-22 Anatoly Sokolov <aesok@post.ru>
24815 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
24818 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
24821 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
24823 2011-02-22 Mike Stump <mikestump@comcast.net>
24825 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
24827 * configure: Regenerate.
24829 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
24831 PR rtl-optimization/46002
24832 * ira-color.c (update_copy_costs): Change class intersection
24833 test to reg_class_contents[] test of 'hard_regno'.
24835 2011-02-21 Joseph Myers <joseph@codesourcery.com>
24837 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
24838 than Driver option.
24839 * config/hpux11.opt (mt): Likewise.
24840 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
24841 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
24842 * config/vax/elf.opt (mno-asm-pic): Likewise.
24843 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
24845 2011-02-21 Mike Stump <mikestump@comcast.net>
24848 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
24849 tree so we can get save the type.
24850 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
24851 for CFString instead of trying to use past the end of the builtins.
24852 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
24853 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
24854 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
24855 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
24856 Rename to darwin_builtin_cfstring.
24857 (darwin_init_cfstring_builtins): Return the built type.
24859 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
24862 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
24863 (_mm256_insert_epi64): Use _mm_insert_epi64.
24865 2011-02-21 Anatoly Sokolov <aesok@post.ru>
24867 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24868 * config/stormy16/stormy16-protos.h
24869 (xstormy16_mode_dependent_address_p): Remove.
24870 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
24871 Make static. Change return type to bool. Change argument type to
24872 const_rtx. Remove dead code.
24873 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24875 2011-02-21 Richard Guenther <rguenther@suse.de>
24878 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
24879 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
24880 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
24882 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
24883 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
24885 2011-02-20 Richard Guenther <rguenther@suse.de>
24888 * tree.c (free_lang_data_in_decl): Clean builtins from
24889 the TU decl BLOCK_VARS.
24891 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
24895 * haifa-sched.c (fix_tick_ready): Skip tick computation
24898 2011-02-19 Richard Guenther <rguenther@suse.de>
24901 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
24902 Remove lazy BLOCK_VARS streaming.
24903 (lto_input_ts_block_tree_pointers): Likewise.
24904 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
24906 2011-02-19 Joseph Myers <joseph@codesourcery.com>
24908 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
24910 2011-02-19 Joseph Myers <joseph@codesourcery.com>
24912 * config/i386/biarch32.h, config/i386/mach.h,
24913 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
24915 2011-02-19 Jakub Jelinek <jakub@redhat.com>
24918 * config/i386/i386.md (peephole2 for shift and plus): Use
24919 operands[1] original mode in the first insn.
24921 2011-02-18 Mike Stump <mikestump@comcast.net>
24923 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
24925 2011-02-18 Jan Hubicka <jh@suse.cz>
24927 PR middle-end/47788
24928 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
24929 to zero when the function is not inlinable at all.
24931 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24933 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
24934 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
24935 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
24936 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
24937 * config/pa/t-pa64: Likewise.
24938 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
24940 2011-02-18 Jakub Jelinek <jakub@redhat.com>
24943 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
24945 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24948 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
24950 2011-02-18 Anatoly Sokolov <aesok@post.ru>
24952 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
24953 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
24954 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
24955 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
24956 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
24957 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
24958 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
24959 m32r_load_postinc_p, m32r_store_preinc_predec_p,
24960 m32r_legitimate_address_p): New functions.
24961 * config/m32r/constraints.md (constraint "S"): Don't use
24962 STORE_PREINC_PREDEC_P.
24963 (constraint "U"): Don't use LOAD_POSTINC_P.
24965 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
24967 PR rtl-optimization/46178
24968 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
24969 compute ira_hard_regno_cover_class[].
24971 2011-02-18 Richard Guenther <rguenther@suse.de>
24974 * lto-streamer.h (lto_global_var_decls): Declare.
24975 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
24976 statics for global var processing.
24978 2011-02-18 Richard Guenther <rguenther@suse.de>
24980 PR tree-optimization/47737
24981 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
24982 edge dominance check.
24984 2011-02-18 Jakub Jelinek <jakub@redhat.com>
24987 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
24988 avoid invalid rtx sharing.
24990 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
24992 * doc/cpp.texi (Obsolete Features): Add background on the
24993 origin of assertions.
24995 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
24997 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
24999 * config/darwin.c (output_objc_section_asm_op): Added support for
25001 (is_objc_metadata): New.
25002 (darwin_objc2_section): New.
25003 (darwin_objc1_section): New.
25004 (machopic_select_section): Added support for ABI v1 and v2.
25005 (darwin_emit_objc_zeroed): New.
25006 (darwin_output_aligned_bss): Detect objc metadata and treat it
25008 (darwin_asm_output_aligned_decl_common): Same.
25009 (darwin_asm_output_aligned_decl_local): Same.
25010 * config/darwin-sections.def: Updated for ABI v1 and v2.
25011 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
25012 compiling Objective-C code for the NeXT runtime, default to using
25013 ABI version 0 for 32-bit, and version 2 for 64-bit.
25015 2011-02-17 Joseph Myers <joseph@codesourcery.com>
25017 * common.opt (optimize_fast): New Variable.
25018 * opts.c (default_options_optimization): Use opts->x_optimize_fast
25019 instead of local variable ofast.
25021 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
25023 * doc/invoke.texi (fobjc-abi-version): Documented.
25024 (fobjc-nilcheck): Documented.
25025 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
25028 2011-02-17 Joseph Myers <joseph@codesourcery.com>
25031 * common.opt (export-dynamic): New Driver option.
25032 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
25034 2011-02-17 Joseph Myers <joseph@codesourcery.com>
25036 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
25038 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
25039 Jan Hubicka <jh@suse.cz>
25043 * cfgexpand.c (account_used_vars_for_block): Remove.
25044 (estimated_stack_frame_size): Use referenced vars.
25045 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
25046 that were referenced in the original function. Test src_fn
25047 rather than cfun. Drop redundant get_var_ann.
25048 (setup_one_parameter): Drop redundant get_var_ann.
25049 (declare_return_variable): Likewise.
25050 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
25051 (copy_arguments_for_versioning): Drop redundant get_var_ann.
25052 * ipa-inline.c (compute_inline_parameters): Do not compute
25053 disregard_inline_limits here.
25054 (compute_inlinable_for_current, pass_inlinable): New.
25055 (pass_inline_parameters): Require PROP_referenced_vars.
25056 * cgraphunit.c (cgraph_process_new_functions): Don't run
25057 compute_inline_parameters explicitly unless function is in SSA form.
25058 (cgraph_analyze_function): Set .disregard_inline_limits.
25059 * tree-sra.c (convert_callers): Compute inliner parameters
25060 only for functions already in SSA form.
25062 2011-02-17 Joseph Myers <joseph@codesourcery.com>
25064 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
25065 -mlittle-endian-data.
25067 2011-02-17 Joseph Myers <joseph@codesourcery.com>
25069 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
25070 -mno-fpu, not -fpu and -no-fpu.
25071 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
25072 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
25074 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
25077 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
25078 input reload with PLUS RTX.
25080 2011-02-16 Joseph Myers <joseph@codesourcery.com>
25082 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
25083 of InverseVar(MDMX).
25085 2011-02-16 Joseph Myers <joseph@codesourcery.com>
25087 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
25090 2011-02-16 Joseph Myers <joseph@codesourcery.com>
25092 * config/mn10300/mn10300.opt (mno-crt0): New.
25094 2011-02-16 Joseph Myers <joseph@codesourcery.com>
25096 * config/m68k/uclinux.opt (static-libc): New Driver option.
25098 2011-02-16 Joseph Myers <joseph@codesourcery.com>
25100 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
25102 2011-02-16 Joseph Myers <joseph@codesourcery.com>
25104 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
25105 %{muser-extend-enabled}.
25107 2011-02-16 Richard Guenther <rguenther@suse.de>
25109 PR tree-optimization/47738
25110 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
25111 the TODO from tree_predictive_commoning.
25113 2011-02-15 Jeff Law <law@redhat.com>
25116 2011-01-25 Jeff Law <law@redhat.com>
25118 PR rtl-optimization/37273
25119 * ira-costs.c (scan_one_insn): Detect constants living in memory and
25120 handle them like argument loads from stack slots. Do not double
25121 count memory for memory constants and argument loads from stack slots.
25123 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
25126 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
25127 mode for vector constants. Remove code that checks for TImode.
25129 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
25133 * cgraph.h (compute_inline_parameters): Return void.
25134 * ipa-inline.c (compute_inline_parameters): Adjust.
25136 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
25140 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
25142 * cfgexpand.c (estimated_stack_frame_size): Likewise.
25143 * ipa-inline.c (compute_inline_parameters): Adjust.
25145 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
25149 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
25150 Adjust all users. Pass FN to...
25151 * tree-flow-inline.h (first_referenced_var): ... this. Add
25153 * ipa-struct-reorg.c: Adjust.
25154 * tree-dfa.c: Adjust.
25155 * tree-into-ssa.c: Adjust.
25156 * tree-sra.c: Adjust.
25157 * tree-ssa-alias.c: Adjust.
25158 * tree-ssa-live.c: Adjust.
25159 * tree-ssa.c: Adjust.
25160 * tree-ssanames.c: Adjust.
25161 * tree-tailcall.c: Adjust.
25163 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
25167 * tree-flow.h (referenced_var_lookup): Add fn parameter.
25168 Adjust all callers.
25169 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
25170 * tree-flow-inline.h: Adjust.
25171 * gimple-pretty-print.c: Adjust.
25172 * tree-into-ssa.c: Adjust.
25173 * tree-ssa.c: Adjust.
25174 * cfgexpand.c: Adjust.
25176 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
25178 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
25179 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25180 (EXTRA_CONSTRAINT): Delete.
25181 * config/iq2000/constraints.md: New file.
25182 * config/iq2000/iq2000.md: Include it.
25183 (define_insn ""): Delete.
25184 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
25185 unsupported constraint letters from patterns.
25186 (call_value, call_value_internal1): Likewise.
25187 (call_value_multiple_internal1): Likewise.
25189 2011-02-15 Nick Clifton <nickc@redhat.com>
25191 * config/mn10300/mn10300.c: Include tm-constrs.h.
25192 (struct liw_data): New data structure describing an LIW candidate
25194 (extract_bundle): Use struct liw_data. Allow small integer
25195 operands for some instructions.
25196 (check_liw_constraints): Use struct liw_data. Remove swapped
25197 parameter. Add comments describing the checks. Fix bug when
25198 assigning the source of liw1 to the source of liw2.
25199 (liw_candidate): Delete. Code moved into extract_bundle.
25200 (mn10300_bundle_liw): Use struct liw_data. Check constraints
25202 * config/mn10300/predicates.md (liw_operand): New predicate.
25203 Allows registers and small integer constants.
25204 * config/mn10300/constraints.md (O): New constraint. Accetps
25205 integers in the range -8 to +7 inclusive.
25206 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
25207 for moving a small integer into a register. Give this alternative
25209 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
25210 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
25211 using the J,K,L and M constraints,
25212 (liw): Remove SI mode on second operands to allow for HI and QI
25214 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
25217 2011-02-15 Richard Guenther <rguenther@suse.de>
25219 PR tree-optimization/47743
25220 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
25221 for a non-type-compatible VN lookup bail out.
25223 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
25225 * config/fr30/constraints.md: New file.
25226 * config/fr30/fr30.md: Include it.
25227 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
25228 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25229 (EXTRA_CONSTRAINT): Delete.
25231 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
25233 * config/frv/constraints.md: New file.
25234 * config/frv/predicates.md: Include it.
25235 * config/frv/frv.c (reg_class_from_letter): Delete.
25236 (frv_option_override): Don't initialize it.
25237 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
25238 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
25239 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
25240 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
25241 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
25242 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25243 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
25244 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
25245 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
25246 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
25247 (REG_CLASS_FROM_CONSTRAINT): Delete.
25249 2011-02-15 Jakub Jelinek <jakub@redhat.com>
25251 PR middle-end/47581
25252 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
25253 if frame size is 0 in a leaf function.
25255 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25258 * config/alpha/host-osf.c: New file.
25259 * config/alpha/x-osf: New file.
25260 * config.host (alpha*-dec-osf*): Use it.
25262 2011-02-14 Anatoly Sokolov <aesok@post.ru>
25264 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
25265 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
25266 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
25267 (rx_mode_dependent_address_p): ...this. Make static. Change argument
25269 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25271 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
25273 * config/stormy16/constraints.md: New file.
25274 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
25275 Use satisfies_constraint_Q and satisfies_constraint_R.
25276 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
25278 (xstormy16_legitiamte_address_p): Declare.
25279 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
25280 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25281 (EXTRA_CONSTRAINT): Delete.
25282 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
25284 (xstormy16_extra_constraint_p): Delete.
25286 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
25288 PR tree-optimization/46494
25289 * loop-unroll.c (split_edge_and_insert): Adjust comment.
25290 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
25291 (pass_rtl_loop_done): Add TODO_verify_flow.
25292 * fwprop.c (pass_rtl_fwprop): Likewise.
25293 * modulo-sched.c (pass_sms): Likewise.
25294 * tree-ssa-dom.c (pass_dominator): Likewise.
25295 * tree-ssa-loop-ch.c (pass_ch): Likewise.
25296 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
25297 (pass_tree_loop_done): Likewise.
25298 * tree-ssa-pre.c (execute_pre): Likewise.
25299 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
25300 * tree-ssa-sink.c (pass_sink_code): Likewise.
25301 * tree-vrp.c (pass_vrp): Likewise.
25303 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
25305 * config/v850/constraints.md: New file.
25306 * config/v850/v850.md: Include it.
25307 * config/v850/predicates.md (reg_or_0_operand): Use
25308 satisfies_constraint_G.
25309 (special_symbolref_operand): Use satisfies_constraint_K.
25310 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
25311 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
25312 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
25313 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
25314 (EXTRA_CONSTRAINT): Delete.
25315 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
25316 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
25317 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
25319 2011-02-14 Anatoly Sokolov <aesok@post.ru>
25322 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
25325 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
25327 * config/mcore/constraints.md: New file.
25328 * config/mcore/mcore.md: Include it.
25329 * config/mcore/mcore.c (reg_class_from_letter): Delete.
25330 * config/mcore/mcore.h (reg_class_from_letter): Delete.
25331 (REG_CLASS_FROM_LETTER): Delete.
25332 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
25333 insn_const_int_ok_for_constraint.
25334 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
25335 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
25336 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25337 (EXTRA_CONSTRAINT): Delete.
25339 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25342 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
25343 (IS_SIGHANDLER): Define.
25344 (sparc64_is_sighandler): New function, split off from
25345 sparc64_fallback_frame_state.
25346 (sparc_is_sighandler): New function, split off from
25347 sparc_fallback_frame_state.
25348 (sparc64_fallback_frame_state): Merge with ...
25349 (sparc_fallback_frame_state): ... this into ...
25350 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
25351 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
25352 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
25353 stack instead of hardcoded offsets.
25355 2011-02-14 Andriy Gapon <avg@freebsd.org>
25358 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
25360 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25362 * configure: Regenerate.
25364 2011-02-12 Joseph Myers <joseph@codesourcery.com>
25367 * gcc.c (asm_options): Correct spec matching --target-help.
25369 2011-02-12 Martin Jambor <mjambor@suse.cz>
25371 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
25372 to gimple call error.
25374 2011-02-12 Mike Stump <mikestump@comcast.net>
25376 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
25377 comments in backslash regions.
25379 2011-02-12 Mike Stump <mikestump@comcast.net>
25380 Jakub Jelinek <jakub@redhat.com>
25381 Iain Sandoe <iains@gcc.gnu.org>
25384 * dwarf2out.c (output_cfa_loc): When required, apply the
25385 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
25386 (output_loc_sequence): Likewise.
25387 (output_loc_operands_raw): Likewise.
25388 (output_loc_sequence_raw): Likewise.
25389 (output_cfa_loc): Likewise.
25390 (output_loc_list): Suppress register number adjustment when
25391 calling output_loc_sequence()
25392 (output_die): Likewise.
25394 2011-02-12 Anatoly Sokolov <aesok@post.ru>
25396 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
25398 * config/xtensa/xtensa.c (xtensa_register_move_cost,
25399 xtensa_memory_move_cost): New functions.
25400 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
25402 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
25405 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
25406 in the current directory.
25407 * configure: Rebuilt.
25409 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
25411 * config/darwin.c (darwin_override_options): Add a hunk missed
25412 from the commit of r168571. Trim comment line lengths and
25413 correct indents of the preceding block.
25415 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
25417 * gcc.c (driver_handle_option): Concatenate the argument to -F with
25420 2011-02-11 Joseph Myers <joseph@codesourcery.com>
25422 * common.opt (nostartfiles): New Driver option.
25424 2011-02-11 Xinliang David Li <davidxl@google.com>
25426 PR tree-optimization/47707
25427 * tree-chrec.c (convert_affine_scev): Keep type precision.
25429 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
25431 PR tree-optimization/47420
25432 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
25434 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
25436 PR rtl-optimization/47614
25437 * rtl.h (check_for_inc_dec): Declare.
25438 * dse.c (check_for_inc_dec): Externalize...
25439 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
25440 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
25442 2011-02-11 Joseph Myers <joseph@codesourcery.com>
25445 * gcc.c (main): Do not compile inputs if there were errors in
25447 * opts-common.c (read_cmdline_option): Check for wrong language
25448 after other error checks.
25450 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
25452 * cgraph.c: Fix comment typos.
25453 * cgraph.h: Likewise.
25454 * cgraphunit.c: Likewise.
25455 * ipa-cp.c: Likewise.
25456 * ipa-inline.c: Likewise.
25457 * ipa-prop.c: Likewise.
25458 * ipa-pure-const.c: Likewise.
25459 * ipa-ref.c: Likewise.
25460 * ipa-reference.c: Likewise.
25462 2011-02-11 Jakub Jelinek <jakub@redhat.com>
25465 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
25467 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25470 * doc/sourcebuild.texi (Require Support): Document
25471 dg-require-ascii-locale.
25473 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
25475 * doc/lto.texi (Write summary): Fix missing parentheses.
25477 2011-02-10 DJ Delorie <dj@redhat.com>
25479 * config/m32c/m32c.c (m32c_option_override): Disable
25480 -fcombine-stack-adjustments until flag value tracking and compare
25481 optimization can be rewritten.
25483 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
25485 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
25487 (PROCESSOR_DEFAULT64): Likewise.
25489 2011-02-10 Richard Henderson <rth@redhat.com>
25491 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
25492 change from 2011-02-03.
25493 * config/rx/rx.c (flags_from_code): Likewise.
25494 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
25495 is valid, n/pz otherwise.
25496 (rx_select_cc_mode): Return CCmode if Y is not zero.
25498 2011-02-10 Richard Guenther <rguenther@suse.de>
25500 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
25502 2011-02-10 Richard Guenther <rguenther@suse.de>
25504 PR tree-optimization/47677
25505 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
25507 2011-02-10 Jakub Jelinek <jakub@redhat.com>
25510 * combine.c (make_compound_operation): Only change shifts into
25511 multiplication for SCALAR_INT_MODE_P.
25513 2011-02-10 Jie Zhang <jie@codesourcery.com>
25517 2011-02-05 Jie Zhang <jie@codesourcery.com>
25519 * web.c (entry_register): Don't clobber the number of the
25520 first uninitialized reference in used[].
25522 2011-02-09 Richard Guenther <rguenther@suse.de>
25524 PR tree-optimization/47664
25525 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
25528 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
25532 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
25534 (PROCESSOR_DEFAULT64): Same.
25535 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
25537 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25539 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
25541 2011-02-09 Martin Jambor <mjambor@suse.cz>
25543 PR middle-end/45505
25544 * tree-sra.c (struct access): New flags grp_scalar_read and
25545 grp_scalar_write. Changed description of assignment read and write
25547 (dump_access): Dump new flags, reorder all of them.
25548 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
25549 to detect multiple scalar reads.
25550 (analyze_access_subtree): Use the new scalar read write flags instead
25551 of the old flags. Adjusted comments.
25553 2011-02-08 DJ Delorie <dj@redhat.com>
25556 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
25559 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25561 * config/m68k/uclinux.opt: New.
25562 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
25564 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25566 * config/cris/elf.opt (sim): New Driver option.
25568 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25570 * config/xtensa/elf.opt: New.
25571 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
25573 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25575 * config/vax/elf.opt: New.
25576 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
25578 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25580 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
25582 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25584 * config/gnu-user.opt: New.
25585 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
25586 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
25587 *-*-uclinux*): Use gnu-user.opt.
25589 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
25591 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
25592 * config/i386/gnu.h (CPP_SPEC): Likewise.
25594 2011-02-08 Ian Lance Taylor <iant@google.com>
25596 * common.opt (fcx-limited-range): Add SetByCombined flag.
25597 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
25598 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
25599 (fassociative-math, freciprocal-math): Likewise.
25600 (funsafe-math-optimizations): Likewise.
25601 * opth-gen.awk: Handle SetByCombined.
25602 * optc-gen.awk: Likewise.
25603 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
25604 (set_unsafe_math_optimizations_flags): Likewise.
25605 * doc/options.texi (Option properties): Document SetByCombined.
25607 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25609 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
25610 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
25611 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
25612 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
25613 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
25615 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
25617 PR tree-optimization/46834
25618 PR tree-optimization/46994
25619 PR tree-optimization/46995
25620 * graphite-sese-to-poly.c (used_outside_reduction): New.
25621 (detect_commutative_reduction): Call used_outside_reduction.
25622 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
25623 translate_scalar_reduction_to_array only when at least one
25624 loop-phi/close-phi tuple has been detected.
25626 2011-02-08 Richard Guenther <rguenther@suse.de>
25628 PR middle-end/47639
25629 * tree-vect-generic.c (expand_vector_operations_1): Update
25631 (expand_vector_operations): ... not here. Cleanup EH info
25632 and the CFG if required.
25634 2011-02-08 Richard Guenther <rguenther@suse.de>
25636 PR tree-optimization/47641
25637 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
25638 require type compatibility.
25640 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25642 * gimple-low.c (lower_function_body): Don't remove the location of
25643 the return statement here.
25644 (lower_gimple_return): Do it here instead but only if the return
25645 statement is actually used twice.
25647 2011-02-08 Richard Guenther <rguenther@suse.de>
25649 PR tree-optimization/47632
25650 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
25651 unused up_to_stmt parameter, return whether cfg-cleanup is
25652 necessary, remove EH info properly.
25653 (forward_propagate_into_gimple_cond): Adjust caller.
25654 (forward_propagate_into_cond): Likewise.
25655 (forward_propagate_comparison): Likewise.
25656 (tree_ssa_forward_propagate_single_use_vars): Make
25657 forward_propagate_comparison case similar to the two others.
25659 2011-02-08 Nick Clifton <nickc@redhat.com>
25661 * config/mn10300/mn10300.opt (mliw): New command line option.
25662 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
25663 (liw_bundling): New automaton.
25664 (liw): New attribute.
25665 (liw_op): New attribute.
25666 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
25667 (movsi_internal): Add LIW attributes.
25668 (andsi3): Likewise.
25669 (iorsi3): Likewise.
25670 (xorsi3): Likewise.
25671 (addsi3): Separate register and immediate alternatives.
25672 Add LIW attributes.
25673 (subsi3): Likewise.
25675 (aslsi3): Likewise.
25676 (lshrsi3): Likewise.
25677 (ashrsi3): Likewise.
25678 (liw): New pattern.
25679 * config/mn10300/mn10300.c (liw_op_names): New
25680 (mn10300_print_operand): Handle 'W' operand descriptor.
25681 (extract_bundle): New function.
25682 (check_liw_constraints): New function.
25683 (liw_candidate): New function.
25684 (mn10300_bundle_liw): New function.
25685 (mn10300_reorg): New function.
25686 (TARGET_MACHINE_DEPENDENT_REORG): Define.
25687 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
25688 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
25689 __LIW__ or __NO_LIW__.
25690 * doc/invoke.texi: Describe the -mliw command line option.
25692 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25694 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
25695 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
25696 pthread_mutex_unlock): Remove.
25697 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
25698 * config/pa/t-pa64: Likewise.
25699 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
25700 shared libc if not linking against libpthread.
25701 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
25703 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
25706 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
25707 on 10.6 and later to ensure that we always use the unwinder from
25708 the system. Only add -no_compact_unwind when tarteting darwin
25711 2011-02-07 Steve Ellcey <sje@cup.hp.com>
25714 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
25715 (vec_interleave_lowv2sf): Ditto.
25716 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
25717 (vec_extract_oddv2sf): Ditto.
25719 2011-02-07 Mike Stump <mikestump@comcast.net>
25722 Add __ieee_divdc3 entry point.
25723 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
25725 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
25726 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
25727 * config/darwin.c (darwin_rename_builtins): Add.
25728 * config/darwin-protos.h (darwin_rename_builtins): Add.
25730 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
25733 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
25736 2011-02-07 Mike Stump <mikestump@comcast.net>
25738 * config/darwin.opt (mmacosx-version-min): Update default OS version.
25740 2011-02-07 Denis Chertykov <chertykov@gmail.com>
25743 * config/avr/libgcc.S (exit): Move .endfunc
25745 2011-02-07 Richard Guenther <rguenther@suse.de>
25747 PR tree-optimization/47615
25748 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
25749 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
25750 (run_scc_vn): Initialize it.
25751 (visit_reference_op_load): Use it.
25752 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
25754 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25756 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
25757 DImode trapping arithmetic libfuncs.
25759 2011-02-07 Richard Guenther <rguenther@suse.de>
25761 PR tree-optimization/47621
25762 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
25764 (execute_update_addresses_taken): ... here. Make it more
25765 conservative in what we accept.
25767 2011-02-06 Joseph Myers <joseph@codesourcery.com>
25769 * config/sparc/freebsd.h (ASM_SPEC): Define.
25770 * config/sparc/vxworks.h (ASM_SPEC): Define.
25772 2011-02-06 Joseph Myers <joseph@codesourcery.com>
25774 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
25776 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
25778 * doc/invoke.texi: Remove reference to compiler internals from
25779 user documentation.
25781 * reg-notes.def: Remove REG_VALUE_PROFILE.
25782 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
25784 2011-02-05 Jakub Jelinek <jakub@redhat.com>
25786 PR middle-end/47610
25787 * varasm.c (default_section_type_flags): If decl is NULL,
25788 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
25790 2011-02-05 Jie Zhang <jie@codesourcery.com>
25793 * web.c (entry_register): Don't clobber the number of the
25794 first uninitialized reference in used[].
25796 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
25798 PR tree-optimization/46194
25799 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
25800 (build_classic_dist_vector_1): Do not represent classic distance
25801 vectors when the access functions are variating in different loops.
25803 2011-02-04 Joseph Myers <joseph@codesourcery.com>
25805 * config/mips/iris6.opt: New.
25806 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
25808 2011-02-04 Richard Henderson <rth@redhat.com>
25809 Steve Ellcey <sje@cup.hp.com>
25812 * config/ia64/predicates.md (mux1_brcst_element): New.
25813 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
25814 * config/ia64/ia64.c (ia64_unpack_assemble): New.
25815 (ia64_unpack_sign): New.
25816 (ia64_expand_unpack): Rewrite using new routines.
25817 (ia64_expand_widen_sum): Ditto.
25818 (ia64_expand_dot_prod_v8qi): Ditto.
25819 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
25820 routines, add endian check.
25821 (pmpy2_even): Rename from pmpy2_r, add endian check.
25822 (pmpy2_odd): Rename from pmpy2_l, add endian check.
25823 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
25824 (vec_widen_smult_hi_v4hi): Ditto.
25825 (vec_widen_umult_lo_v4hi): Ditto.
25826 (vec_widen_umult_hi_v4hi): Ditto.
25827 (mulv2si3): Change endian checks.
25828 (sdot_prodv4hi): Rewrite with new calls.
25829 (udot_prodv4hi): New.
25830 (vec_pack_ssat_v4hi): Add endian check.
25831 (vec_pack_usat_v4hi): Ditto.
25832 (vec_pack_ssat_v2si): Ditto.
25833 (max1_even): Rename from max1_r, add endian check.
25834 (max1_odd): Rename from max1_l, add endian check.
25835 (*mux1_rev): Format change.
25836 (*mux1_mix): Ditto.
25837 (*mux1_shuf): Ditto.
25838 (*mux1_alt): Ditto.
25839 (*mux1_brcst_v8qi): Use new predicate.
25840 (vec_extract_evenv8qi): Remove endian check.
25841 (vec_extract_oddv8qi): Ditto.
25842 (vec_interleave_lowv4hi): Format change.
25843 (vec_interleave_highv4hi): Ditto.
25844 (mix2_even): Rename from mix2_r, add endian check.
25845 (mix2_odd): Rename from mux2_l, add endian check.
25846 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
25847 (vec_extract_evenodd_helper): Format change.
25848 (vec_extract_evenv4hi): Remove endian check.
25849 (vec_extract_oddv4hi): Remove endian check.
25850 (vec_interleave_lowv2si): Format change.
25851 (vec_interleave_highv2si): Format change.
25852 (vec_initv2si): Remove endian check.
25853 (vecinit_v2si): Add endian check.
25854 (reduc_splus_v2sf): Add endian check.
25855 (reduc_smax_v2sf): Ditto.
25856 (reduc_smin_v2sf): Ditto.
25857 (vec_initv2sf): Remove endian check.
25858 (fpack): Add endian check.
25859 (fswap): Add endian check.
25860 (vec_interleave_highv2sf): Add endian check.
25861 (vec_interleave_lowv2sf): Add endian check.
25862 (fmix_lr): Add endian check.
25863 (vec_setv2sf): Format change.
25864 (*vec_extractv2sf_0_be): Use shift to extract operand.
25865 (*vec_extractv2sf_1_be): New.
25866 (vec_pack_trunc_v4hi): Add endian check.
25867 (vec_pack_trunc_v2si): Format change.
25869 2011-02-04 Jakub Jelinek <jakub@redhat.com>
25871 PR inline-asm/23200
25872 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
25873 do bb, locus and block comparison and disallow loads if it is not set.
25874 (stmt_is_replaceable_p): New function.
25875 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
25877 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
25878 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
25880 * tree-flow.h (stmt_is_replaceable_p): New prototype.
25882 2011-02-04 Joseph Myers <joseph@codesourcery.com>
25884 * config/rs6000/xilinx.opt: New.
25885 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
25887 2011-02-04 Joseph Myers <joseph@codesourcery.com>
25889 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
25891 2011-02-03 Anatoly Sokolov <aesok@post.ru>
25893 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
25894 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
25895 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
25896 secondary_reload_info, xtensa_secondary_reload): Remove.
25897 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
25898 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
25899 (xtensa_preferred_reload_class): Make static. Change return and
25900 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
25901 Use CONST_DOUBLE_P predicate.
25902 (xtensa_preferred_output_reload_class): New function.
25903 (xtensa_secondary_reload): Make static.
25905 2011-02-03 Joseph Myers <joseph@codesourcery.com>
25907 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
25908 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
25909 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
25911 2011-02-03 Jakub Jelinek <jakub@redhat.com>
25913 PR middle-end/31490
25914 * output.h (SECTION_RELRO): Define.
25915 (SECTION_MACH_DEP): Adjust.
25916 (get_variable_section): New prototype.
25917 * varpool.c (varpool_finalize_named_section_flags): New function.
25918 (varpool_assemble_pending_decls): Call it.
25919 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
25920 * cgraphunit.c (cgraph_output_in_order): Call
25921 varpool_finalize_named_section_flags.
25922 * varasm.c (get_section): Allow section flags conflicts between
25923 relro and read-only sections if the section hasn't been declared yet.
25924 Set SECTION_OVERRIDE after diagnosing section type conflict.
25925 (get_variable_section): No longer static.
25926 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
25927 readonly sections that need relocations.
25928 (decl_readonly_section_1): New function.
25929 (decl_readonly_section): Use it.
25932 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
25933 Steve Ellcey <sje@cup.hp.com>
25935 PR middle-end/31490
25936 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
25937 if section attribute used.
25939 2011-02-03 Jakub Jelinek <jakub@redhat.com>
25941 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
25942 * config/darwin.c (SECTION_NO_ANCHOR): Define.
25943 (darwin_init_sections): Remove assertion.
25945 2011-02-03 Nick Clifton <nickc@redhat.com>
25947 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
25949 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
25950 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
25951 instead of "n" and "pz".
25952 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
25955 2011-02-03 Jakub Jelinek <jakub@redhat.com>
25958 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
25959 fma, expand FMA_EXPR as fma{,f,l} call.
25962 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
25963 copy them into a unsigned char variable and pass address of it to
25964 lto_output_data_stream.
25967 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
25968 around backend_init_target and lang_dependent_init_target calls.
25969 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
25970 (verify_cgraph_node): Don't call set_cfun here. Use
25971 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
25972 Set error_found for incorrectly represented calls to thunks.
25974 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
25977 PR rtl-optimization/43494
25978 * rtl.h (for_each_inc_dec_fn): New type.
25979 (for_each_inc_dec): Declare.
25980 * rtlanal.c (struct for_each_inc_dec_ops): New type.
25981 (for_each_inc_dec_find_inc_dec): New fn.
25982 (for_each_inc_dec_find_mem): New fn.
25983 (for_each_inc_dec): New fn.
25984 * dse.c (struct insn_size): Remove.
25985 (replace_inc_dec, replace_inc_dec_mem): Remove.
25986 (emit_inc_dec_insn_before): New fn.
25987 (check_for_inc_dec): Use it, along with for_each_inc_dec.
25988 (canon_address): Pass mem modes to cselib_lookup.
25989 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
25990 (cselib_lookup_from_insn): Likewise.
25991 (cselib_subst_to_values): Likewise.
25992 * cselib.c (find_slot_memmode): New var.
25993 (cselib_find_slot): New fn. Use it instead of
25994 htab_find_slot_with_hash everywhere.
25995 (entry_and_rtx_equal_p): Use find_slot_memmode.
25996 (autoinc_split): New fn.
25997 (rtx_equal_for_cselib_p): Rename and implement in terms of...
25998 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
25999 Deal with autoinc. Special-case recursion into MEMs.
26000 (cselib_hash_rtx): Likewise.
26001 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
26002 address and MEM modes.
26003 (cselib_subst_to_values): Add memmode, pass it on.
26005 (cselib_lookup): Add memmode argument, pass it on.
26006 (cselib_lookup_from_insn): Add memmode.
26007 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
26008 (struct cselib_record_autoinc_data): New.
26009 (cselib_record_autoinc_cb): New fn.
26010 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
26011 mode to cselib_lookup. Reset autoinced REGs here instead of...
26012 (cselib_process_insn): ... here.
26013 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
26015 (add_uses): Likewise, also to cselib_subst_to_values.
26016 (add_stores): Likewise.
26017 * sched-deps.c (add_insn_mem_dependence): Pass mode to
26018 cselib_subst_to_values.
26019 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
26020 * gcse.c (do_local_cprop): Adjusted.
26021 * postreload.c (reload_cse_simplify_set): Adjusted.
26022 (reload_cse_simplify_operands): Adjusted.
26023 * sel-sched-dump (debug_mem_addr_value): Pass mode.
26025 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
26027 PR tree-optimization/45122
26028 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
26029 unsafe assumptions when there's more than one loop exit.
26031 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26034 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26035 Document using vector double with the load/store builtins, and
26036 that the load/store builtins always use Altivec instructions.
26038 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
26039 to use altivec memory instructions, even on VSX.
26040 (vector_altivec_store_<mode>): Ditto.
26042 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
26045 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26046 V2DF, V2DI support to load/store overloaded builtins.
26048 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
26049 altivec load/store builtins for V2DF/V2DI types.
26051 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
26052 set avoid indexed addresses on power6 if -maltivec.
26053 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
26054 vector_altivec_load/vector_altivec_store builtins.
26055 (altivec_expand_st_builtin): Ditto.
26056 (altivec_expand_builtin): Add VSX memory builtins.
26057 (rs6000_init_builtins): Add V2DI types to internal types.
26058 (altivec_init_builtins): Add support for V2DF/V2DI altivec
26059 load/store builtins.
26060 (rs6000_address_for_altivec): Insure memory address is appropriate
26063 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
26064 vec_vsx_ld and vec_vsx_st.
26065 (vsx_store_<mode>): Ditto.
26067 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
26068 variables to hold long long types for VSX vector memory builtins.
26069 (RS6000_BTI_unsigned_long_long): Ditto.
26070 (long_long_integer_type_internal_node): Ditti.
26071 (long_long_unsigned_type_internal_node): Ditti.
26073 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
26074 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
26075 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
26077 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
26079 (vec_vsx_st): Ditto.
26081 2011-02-02 Joseph Myers <joseph@codesourcery.com>
26083 * config/pa/pa-hpux10.opt: New.
26084 * config/hpux11.opt (pthread): New Driver option.
26085 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
26086 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
26088 2011-02-02 Joseph Myers <joseph@codesourcery.com>
26090 * config/ia64/vms.opt: New.
26091 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
26093 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
26096 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
26097 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
26098 generator functions.
26099 (vsx_floatuns<VSi><mode>2): Ditto.
26100 (vsx_fix_trunc<mode><VSi>2): Ditto.
26101 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
26103 2011-02-02 Joseph Myers <joseph@codesourcery.com>
26105 * config/i386/djgpp.opt (posix): New Driver option.
26107 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
26109 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
26110 Move to the unsupported targets list.
26112 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
26114 PR rtl-optimization/47525
26115 * df-scan.c: Update copyright years.
26116 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
26117 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
26119 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26121 * config/i386/sysv4.h (TARGET_VERSION): Remove.
26122 (SUBTARGET_RETURN_IN_MEMORY): Remove.
26123 (ASM_OUTPUT_ASCII): Remove.
26124 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
26126 2011-02-02 Jeff Law <law@redhat.com>
26128 PR middle-end/47543
26129 * reload.c (find_reloads_address): Handle reg+d address where both
26130 components are invalid by reloading the entire address.
26132 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
26133 Richard Guenther <rguenther@suse.de>
26135 PR tree-optimization/40979
26137 * passes.c (init_optimization_passes): After LIM call copy_prop
26138 and DCE to clean up.
26139 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
26141 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
26143 PR tree-optimization/47576
26144 PR tree-optimization/47555
26145 * doc/invoke.texi (scev-max-expr-complexity): Documented.
26146 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
26147 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
26148 * tree-scalar-evolution.c (follow_ssa_edge): Use
26149 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
26151 2011-02-02 Richard Guenther <rguenther@suse.de>
26153 PR tree-optimization/47566
26154 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
26156 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
26160 * tree-inline.c (declare_return_variable): Remove unused caller
26165 * tree-flow-inline.h (clear_is_used, is_used_p): New.
26166 * cfgexpand.c (account_used_vars_for_block): Use them.
26167 * tree-nrv.c (tree_nrv): Likewise.
26168 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
26169 (dump_scope_block): Likewise.
26170 (remove_unused_locals): Likewise.
26174 * tree-inline.c (declare_return_variable): Add result decl to
26175 local decls only once.
26176 * gimple-low.c (record_vars_into): Mark newly-created variables
26179 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
26185 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
26187 (no_real_insns_p, schedule_block, set_priorities): Drop special
26188 treatment of boundary debug insns.
26189 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
26190 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
26191 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
26192 (BOUNDARY_DEBUG_INSN_P): Likewise.
26193 (SCHEDULE_DEBUG_INSN_P): Likewise.
26194 * sched-rgn.c (init_ready_list): Drop special treatment of
26195 boundary debug insns.
26196 * final.c (rest_of_clean_state): Clear notes' BB.
26198 2011-02-01 Joseph Myers <joseph@codesourcery.com>
26200 * config/openbsd.opt (assert=): New Driver option.
26202 2011-02-01 Joseph Myers <joseph@codesourcery.com>
26204 * config/i386/nto.opt: New.
26205 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
26207 2011-02-01 Joseph Myers <joseph@codesourcery.com>
26209 * config/i386/netware.opt: New.
26210 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
26212 2011-02-01 Joseph Myers <joseph@codesourcery.com>
26214 * config/interix.opt (posix): New Driver option.
26216 2011-02-01 DJ Delorie <dj@redhat.com>
26218 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
26220 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
26223 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
26225 PR tree-optimization/47561
26226 * toplev.c (process_options): Print the Graphite flags. Add
26227 flag_loop_flatten to the list of options requiring Graphite.
26229 2011-02-01 Joseph Myers <joseph@codesourcery.com>
26231 * config/i386/cygming.opt (posix): New Driver option.
26233 2011-02-01 Joseph Myers <joseph@codesourcery.com>
26235 * config/arm/vxworks.opt: New.
26236 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
26238 2011-02-01 Joseph Myers <joseph@codesourcery.com>
26240 * config/alpha/elf.opt: New.
26241 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
26242 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
26244 2011-02-01 Richard Guenther <rguenther@suse.de>
26246 PR tree-optimization/47559
26247 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
26248 store-motion on references that can throw.
26250 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
26252 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
26253 * tree-pass.h (TDF_CSELIB): New macro.
26254 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
26255 cselib_lookup): Check for it rather than for TDF_DETAILS.
26257 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
26260 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
26261 is HOST_BIT_BUCKET.
26263 * opts.c (finish_options): Don't add x_aux_base_name if it is
26266 2011-02-01 Richard Guenther <rguenther@suse.de>
26268 PR tree-optimization/47555
26270 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
26272 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
26274 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
26277 * config/lm32/t-lm32: Add multilib for all CPU options.
26279 2011-02-01 Richard Guenther <rguenther@suse.de>
26281 PR tree-optimization/47541
26282 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
26283 sure to have a field at offset zero.
26285 2011-01-31 Joseph Myers <joseph@codesourcery.com>
26287 * config/arc/arc.opt (EB, EL): New Driver options.
26289 2011-01-31 Joseph Myers <joseph@codesourcery.com>
26291 * config/alpha/osf5.opt: New.
26292 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
26294 2011-01-31 Joseph Myers <joseph@codesourcery.com>
26296 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
26298 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
26300 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
26301 -floop-interchange.
26302 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
26303 is an alias of -floop-interchange and that it requires the
26304 Graphite infrastructure.
26305 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
26306 flag_loop_interchange based on the value of flag_tree_loop_linear.
26308 2011-01-31 Jakub Jelinek <jakub@redhat.com>
26309 Richard Guenther <rguenther@suse.de>
26311 PR tree-optimization/47538
26312 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
26313 type instead of r1type, except for comparisons. For right
26314 shifts and comparisons punt if there are mismatches in
26315 sizetype vs. non-sizetype types.
26317 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26319 * doc/sourcebuild.texi (Effective-Target Keywords): Document
26322 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26324 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
26326 * configure: Regenerate.
26328 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26330 * configure.ac (gcc_cv_ld_static_option): Define.
26331 (gcc_cv_ld_dynamic_option): Define.
26332 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
26334 (HAVE_LD_STATIC_DYNAMIC): Update message.
26335 (LD_STATIC_OPTION): Define.
26336 (LD_DYNAMIC_OPTION): Define.
26337 * configure: Regenerate.
26338 * config.in: Regenerate.
26339 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
26340 HAVE_LD_STATIC_DYNAMIC]: Use them.
26342 2011-01-31 Nick Clifton <nickc@redhat.com>
26344 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
26345 registers inside interrupt handlers if the handler is not a leaf
26348 2011-01-31 Nick Clifton <nickc@redhat.com>
26350 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
26351 reg_renumber returning an INVALID_REGNUM.
26353 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
26356 * doc/install.texi: Document host options discarded when cross
26357 configuring target libraries.
26359 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
26362 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
26365 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
26367 (no_real_insns_p, schedule_block, set_priorities): Drop special
26368 treatment of boundary debug insns.
26369 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
26370 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
26371 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
26372 (BOUNDARY_DEBUG_INSN_P): Likewise.
26373 (SCHEDULE_DEBUG_INSN_P): Likewise.
26374 * sched-rgn.c (init_ready_list): Drop special treatment of
26375 boundary debug insns.
26376 * final.c (rest_of_clean-state): Clear notes' BB.
26378 2011-01-31 Alan Modra <amodra@gmail.com>
26380 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
26381 toc relative expressions as we do in print_operand_address.
26383 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
26385 * doc/extend.texi: Follow spelling conventions.
26386 * doc/invoke.texi: Fix a typo.
26388 2011-01-30 Joseph Myers <joseph@codesourcery.com>
26390 * config/hpux11.opt: New.
26391 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
26392 ia64*-*-hpux*): Use hpux11.opt.
26394 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
26396 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
26399 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
26401 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
26404 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
26406 * doc/install.texi (Binaries): Remove outdated reference for
26407 Motorola 68HC11/68HC12 downloads.
26409 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
26411 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
26414 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
26417 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
26420 2011-01-28 Ahmad Sharif <asharif@google.com>
26422 * value-prof.c (check_counter): Corrected error message.
26424 2011-01-29 Jie Zhang <jie@codesourcery.com>
26426 * config/arm/arm.c (arm_legitimize_reload_address): New.
26427 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
26428 arm_legitimize_reload_address.
26429 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
26431 2011-01-28 Ian Lance Taylor <iant@google.com>
26433 * godump.c (go_define): Ignore macros whose definitions include
26434 two adjacent operands.
26436 2011-01-28 Jakub Jelinek <jakub@redhat.com>
26439 * varasm.c (force_const_mem): Store copy of x in desc->constant
26440 instead of x itself.
26441 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
26442 itself into REG_EQUAL note.
26444 2011-01-28 Joseph Myers <joseph@codesourcery.com>
26446 * config/freebsd.opt (posix, rdynamic): New Driver options.
26448 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26450 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
26451 -Bstatic/-Bdynamic.
26452 * configure: Regenerate.
26454 2011-01-27 Joseph Myers <joseph@codesourcery.com>
26456 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
26457 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
26459 2011-01-27 Anatoly Sokolov <aesok@post.ru>
26461 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
26462 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
26463 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
26464 (s390_preferred_reload_class): Make static. Change return and
26465 'rclass' argument type to reg_class_t.
26467 2011-01-27 Jan Hubicka <jh@suse.cz>
26469 PR middle-end/46949
26470 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
26471 (process_function_and_variable_attributes): Check defined weakrefs.
26473 2011-01-27 Martin Jambor <mjambor@suse.cz>
26475 PR tree-optimization/47228
26476 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
26477 build_ref_for_offset.
26479 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26481 * config/spu/spu-elf.h (ASM_SPEC): Remove.
26483 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
26485 PR rtl-optimization/46856
26486 * postreload.c (reload_combine_recognize_const_pattern): Do not
26487 separate cc0 setter and user on cc0 targets.
26489 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
26492 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
26493 passed a VOID_TYPE expression, immediately emit an error and
26494 return error_mark_node.
26496 2011-01-26 Jeff Law <law@redhat.com>
26498 PR rtl-optimization/47464
26499 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
26500 rather than may_trap_p as needed.
26502 2011-01-26 DJ Delorie <dj@redhat.com>
26504 PR rtl-optimization/46878
26505 * combine.c (insn_a_feeds_b): Check for the implicit cc0
26506 setter/user dependency as well.
26508 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
26510 PR rtl-optimization/44469
26511 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
26512 after removing trivially dead basic blocks.
26514 2011-01-26 Joseph Myers <joseph@codesourcery.com>
26516 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
26517 * config/frv/frv.h (LINK_SPEC): Likewise.
26518 * config/i386/netware.h (LINK_SPEC): Likewise.
26519 * config/m68k/linux.h (ASM_SPEC): Likewise.
26520 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
26521 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
26522 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26523 * config/sparc/linux.h (ASM_SPEC): Likewise.
26524 * config/sparc/linux64.h (ASM_SPEC): Likewise.
26525 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26527 2011-01-26 Joseph Myers <joseph@codesourcery.com>
26529 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
26530 * config/frv/frv.h (ASM_SPEC): Likewise.
26531 * config/m68k/linux.h (ASM_SPEC): Likewise.
26532 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
26533 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
26534 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26535 * config/sparc/linux.h (ASM_SPEC): Likewise.
26536 * config/sparc/linux64.h (ASM_SPEC): Likewise.
26537 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26539 2011-01-26 Joseph Myers <joseph@codesourcery.com>
26541 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
26542 * config/frv/frv.h (LINK_SPEC): Likewise.
26543 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
26545 2011-01-26 Joseph Myers <joseph@codesourcery.com>
26547 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
26548 * config/frv/frv.h (ASM_SPEC): Likewise.
26549 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
26550 * config/m68k/linux.h (ASM_SPEC): Likewise.
26551 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
26552 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
26553 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26554 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
26555 * config/sparc/linux.h (ASM_SPEC): Likewise.
26556 * config/sparc/linux64.h (ASM_SPEC): Likewise.
26557 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26558 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
26560 2011-01-26 Steve Ellcey <sje@cup.hp.com>
26563 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
26565 (vec_extract_evenodd_help): Ditto.
26566 (vec_extract_evenv4hi): Ditto.
26567 (vec_extract_oddv4hi): Ditto.
26568 (vec_interleave_lowv2si): Ditto.
26569 (vec_interleave_highv2si): Ditto.
26570 (vec_extract_evenv2si): Ditto.
26571 (vec_extract_oddv2si: Ditto.
26572 (vec_pack_trunc_v2si): Ditto.
26574 2011-01-22 Jan Hubicka <jh@suse.cz>
26577 * cgraph.h (cgraph_local_info): New field can_change_signature.
26578 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
26579 signature can change.
26580 (ipcp_estimate_growth): Call sequence simplify only if calle signature
26582 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
26583 (cgraph_function_versioning): We can not change signature of functions
26584 that don't allow that.
26585 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
26586 (lto_input_node): Likewise.
26587 * ipa-inline.c (compute_inline_parameters): Compute
26588 local.can_change_signature.
26589 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
26590 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
26591 functions that can not change signature.
26592 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
26593 init_cumulative_args): Do not use local calling conventions
26594 for functions that can not change signature.
26596 2011-01-22 Jan Hubicka <jh@suse.cz>
26598 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
26600 2011-01-26 Richard Guenther <rguenther@suse.de>
26602 PR tree-optimization/47190
26603 * cgraphunit.c (process_common_attributes): New function.
26604 (process_function_and_variable_attributes): Use it.
26606 2011-01-26 Richard Guenther <rguenther@suse.de>
26609 * cgraphbuild.c (record_eh_tables): Record reference to personality
26612 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
26615 * sel-sched.c (moveup_expr): Don't let debug insns prevent
26616 non-debug insns from moving up.
26618 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
26621 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
26622 t-dlldir{,-x} fragment for build and add it to tmake_file.
26623 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
26624 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
26625 * config/i386/t-dlldir: New file.
26626 (SHLIB_DLLDIR): Define.
26627 * config/i386/t-dlldir-x: New file.
26628 (SHLIB_DLLDIR): Define.
26629 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
26630 (SHLIB_INSTALL): Use it.
26632 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
26635 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
26636 lower bound of the allowed Thumb-2 coprocessor load/store
26637 index range to -256. Add explaining comment.
26639 2011-01-25 Ian Lance Taylor <iant@google.com>
26641 * godump.c (go_define): Improve lexing of macro expansion to only
26642 accept expressions which match Go spec.
26644 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
26647 * tree.c (handle_dll_attribute): Handle it.
26648 * doc/extend.texi (@item dllexport): Mention it.
26649 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
26651 2011-01-25 Ian Lance Taylor <iant@google.com>
26653 PR tree-optimization/26854
26654 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
26655 (decl_jump_unsafe): Move higher in file, with no other change.
26656 (bind): Set has_jump_unsafe_decl if appropriate.
26657 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
26658 (check_earlier_gotos): Likewise.
26659 (c_check_switch_jump_warnings): Likewise.
26661 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
26663 * doc/invoke.texi (Warning Options): Add missing hyphen.
26664 (-fprofile-dir): Minor grammatical fixes.
26665 (-fbranch-probabilities): Likewise.
26667 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
26671 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
26673 (no_real_insns_p, schedule_block, set_priorities): Drop special
26674 treatment of boundary debug insns.
26675 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
26676 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
26677 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
26678 (BOUNDARY_DEBUG_INSN_P): Likewise.
26679 (SCHEDULE_DEBUG_INSN_P): Likewise.
26680 * sched-rgn.c (init_ready_list): Drop special treatment of
26681 boundary debug insns.
26682 * final.c (rest_of_clean-state): Clear notes' BB.
26684 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26686 * Makefile.in (LAMBDA_H): Removed.
26687 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
26688 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
26689 lambda-trans.o, and tree-loop-linear.o.
26690 (lto-symtab.o): Remove dependence on LAMBDA_H.
26691 (tree-loop-linear.o): Remove rule.
26692 (lambda-mat.o): Same.
26693 (lambda-trans.o): Same.
26694 (lambda-code.o): Same.
26695 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
26696 (tree-vect-slp.o): Same.
26697 * hwint.h (gcd): Moved here.
26698 (least_common_multiple): Same.
26699 * lambda-code.c: Removed.
26700 * lambda-mat.c: Removed.
26701 * lambda-trans.c: Removed.
26702 * lambda.h: Removed.
26703 * tree-loop-linear.c: Removed.
26704 * lto-symtab.c: Do not include lambda.h.
26705 * omega.c (gcd): Removed.
26706 * passes.c (init_optimization_passes): Remove pass_linear_transform.
26707 * tree-data-ref.c (print_lambda_vector): Moved here.
26708 (lambda_vector_copy): Same.
26709 (lambda_matrix_copy): Same.
26710 (lambda_matrix_id): Same.
26711 (lambda_vector_first_nz): Same.
26712 (lambda_matrix_row_add): Same.
26713 (lambda_matrix_row_exchange): Same.
26714 (lambda_vector_mult_const): Same.
26715 (lambda_vector_negate): Same.
26716 (lambda_matrix_row_negate): Same.
26717 (lambda_vector_equal): Same.
26718 (lambda_matrix_right_hermite): Same.
26719 * tree-data-ref.h: Do not include lambda.h.
26720 (lambda_vector): Moved here.
26721 (lambda_matrix): Same.
26722 (dependence_level): Same.
26723 (lambda_transform_legal_p): Removed declaration.
26724 (lambda_collect_parameters): Same.
26725 (lambda_compute_access_matrices): Same.
26726 (lambda_vector_gcd): Same.
26727 (lambda_vector_new): Same.
26728 (lambda_vector_clear): Same.
26729 (lambda_vector_lexico_pos): Same.
26730 (lambda_vector_zerop): Same.
26731 (lambda_matrix_new): Same.
26732 * tree-flow.h (least_common_multiple): Removed declaration.
26733 * tree-parloops.c (lambda_trans_matrix): Moved here.
26734 (LTM_MATRIX): Same.
26735 (LTM_ROWSIZE): Same.
26736 (LTM_COLSIZE): Same.
26737 (LTM_DENOMINATOR): Same.
26738 (lambda_trans_matrix_new): Same.
26739 (lambda_matrix_vector_mult): Same.
26740 (lambda_transform_legal_p): Same.
26741 * tree-pass.h (pass_linear_transform): Removed declaration.
26742 * tree-ssa-loop.c (tree_linear_transform): Removed.
26743 (gate_tree_linear_transform): Removed.
26744 (pass_linear_transform): Removed.
26745 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
26746 flag_loop_interchange.
26748 2011-01-25 Jakub Jelinek <jakub@redhat.com>
26750 PR tree-optimization/47265
26751 PR tree-optimization/47443
26752 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
26753 if name still has some uses.
26755 2011-01-25 Martin Jambor <mjambor@suse.cz>
26757 PR tree-optimization/47382
26758 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
26759 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
26761 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
26763 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
26764 sjlj_except_unwind_info.
26766 2011-01-25 Richard Guenther <rguenther@suse.de>
26768 PR tree-optimization/47426
26769 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
26770 visible functions results escape.
26772 2011-01-25 Jakub Jelinek <jakub@redhat.com>
26775 * config/arm/arm.c (any_sibcall_uses_r3): New function.
26776 (arm_get_frame_offsets): Use it.
26778 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26779 Jakub Jelinek <jakub@redhat.com>
26781 PR tree-optimization/47271
26782 * tree-if-conv.c (bb_postdominates_preds): New.
26783 (if_convertible_bb_p): Call bb_postdominates_preds.
26784 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
26785 (predicate_scalar_phi): Call bb_postdominates_preds.
26787 2011-01-25 Nick Clifton <nickc@redhat.com>
26789 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
26790 * config/rx/rx.c (rx_function_value): Likewise.
26791 (rx_promote_function_mode): Likewise.
26792 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
26793 in order to make it legitimate.
26794 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
26795 make sure that the first operand is the same as the result register.
26796 (addsi3_unspec): Delete.
26797 (subdi3): Do not accept immediate operands.
26798 (subdi3_internal): Likewise.
26800 2011-01-25 Jeff Law <law@redhat.com>
26802 PR rtl-optimization/37273
26803 * ira-costs.c (scan_one_insn): Detect constants living in memory and
26804 handle them like argument loads from stack slots. Do not double
26805 count memory for memory constants and argument loads from stack slots.
26807 2011-01-25 Jakub Jelinek <jakub@redhat.com>
26809 PR tree-optimization/47427
26810 PR tree-optimization/47428
26811 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
26812 coalesce if the new root var would be TREE_READONLY.
26814 2011-01-25 Richard Guenther <rguenther@suse.de>
26816 PR middle-end/47414
26817 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
26818 correct type for TBAA.
26820 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26822 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
26823 (close_phi_written_to_memory): Call for_each_index with
26824 dr_indices_valid_in_loop.
26826 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26828 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
26829 when it is initialized.
26831 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26833 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
26834 call to graphite_find_data_references_in_stmt.
26835 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
26836 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
26837 call to graphite_find_data_references_in_stmt.
26838 (analyze_drs_in_stmts): Same.
26839 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
26840 in which the scalar analysis of indices is performed.
26841 (create_data_ref): Same. Update call to dr_analyze_indices.
26842 (find_data_references_in_stmt): Update call to create_data_ref.
26843 (graphite_find_data_references_in_stmt): Same.
26844 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
26846 (create_data_ref): Same.
26847 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
26848 call to create_data_ref.
26850 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26852 * graphite-sese-to-poly.c (build_poly_scop): Move
26853 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
26855 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26857 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
26858 VAR_DECL, PARM_DECL, and RESULT_DECL.
26860 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26862 * graphite-dependences.c (reduction_dr_1): Allow several reductions
26863 in a reduction PBB.
26864 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
26865 that have already been marked as PBB_IS_REDUCTION.
26867 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26869 * graphite-scop-detection.c (same_close_phi_node): New.
26870 (remove_duplicate_close_phi): New.
26871 (make_close_phi_nodes_unique): New.
26872 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
26874 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26876 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
26877 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
26878 of both data references to be the same.
26880 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26882 * graphite-dependences.c (build_lexicographical_constraint): Remove
26883 the gdim parameter.
26884 (build_lexicographical_constraint): Adjust call to
26885 ppl_powerset_is_empty.
26886 (dependence_polyhedron): Same.
26887 (graphite_legal_transform_dr): Same.
26888 (graphite_carried_dependence_level_k): Same.
26889 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
26891 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
26893 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26895 * graphite-sese-to-poly.c
26896 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
26897 (close_phi_written_to_memory): New.
26898 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
26901 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26903 * doc/install.texi: Update the expected version number of PPL to 0.11.
26904 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
26905 #if PPL_VERSION_MINOR < 11.
26907 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26909 * graphite-dependences.c: Include graphite-cloog-util.h.
26910 (new_poly_ddr): Inlined into dependence_polyhedron.
26911 (free_poly_ddr): Moved close by new_poly_ddr.
26912 (dependence_polyhedron_1): Renamed dependence_polyhedron.
26913 Early return NULL when ppl_powerset_is_empty returns true.
26914 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
26915 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
26916 (graphite_legal_transform_dr): Call new_poly_ddr.
26917 (graphite_carried_dependence_level_k): Same.
26918 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
26919 (dot_transformed_deps_stmt_1): Removed.
26920 (dot_deps_stmt_1): Call dot_deps_stmt_2.
26921 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
26922 (dot_deps_1): Call dot_deps_2.
26923 * Makefile.in (graphite-dependences.o): Add missing dependence on
26924 graphite-cloog-util.h.
26926 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26928 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
26929 (build_lexicographical_constraint): Same.
26930 (dependence_polyhedron_1): Same.
26931 (graphite_legal_transform_dr): Same.
26932 (graphite_carried_dependence_level_k): Same.
26933 * graphite-ppl.c (ppl_powerset_is_empty): New.
26934 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
26935 * tree-data-ref.c (dump_data_reference): Print the basic block index.
26937 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26939 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
26940 the "a followed by b" relation and document it.
26942 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26944 * graphite-dependences.c (build_lexicographical_constraint): Stop the
26945 iteration when the bag of constraints is empty.
26947 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26949 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
26951 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26953 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
26954 nest and two loop depths as parameters.
26955 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
26956 lst_perfect_nestify.
26958 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26960 * graphite-dependences.c (print_pddr): Call
26961 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
26963 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26965 * graphite-ppl.c (debug_gmp_value): New.
26966 * graphite-ppl.h (debug_gmp_value): Declared.
26968 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
26970 * doc/install.texi: Document availability of cloog-0.16.
26972 2011-01-25 Vladimir Kargov <kargov@gmail.com>
26974 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
26975 invalid postdominance info.
26977 2011-01-24 Jan Hubicka <jh@suse.cz>
26980 * doc/extend.texi (weak pragma): Drop claim that it must
26981 appear before definition.
26982 * varasm.c (merge_weak, declare_weak): Only sanity check
26983 that DECL is not output at a time it is declared weak.
26985 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
26987 * machmode.def: Fixed comments.
26989 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
26991 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
26993 2011-01-24 Paul Koning <ni1d@arrl.net>
26995 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
26998 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
27001 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
27002 (block_info): Add scanned and prev.
27003 (move_or_delete_vzeroupper_2): Return if the basic block
27004 has been scanned and the upper 128bit state is unchanged
27005 from the last scan.
27006 (move_or_delete_vzeroupper_1): Return true if the exit
27008 (move_or_delete_vzeroupper): Visit basic blocks using the
27009 work-list based algorithm based on vt_find_locations in
27012 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
27014 2011-01-24 Nick Clifton <nickc@redhat.com>
27016 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
27017 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
27018 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
27019 then define __v850e1__.
27020 * doc/invoke.texi: Document -mv850es.
27022 2011-01-24 Richard Henderson <rth@redhat.com>
27024 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
27025 compound unordered comparisons.
27026 * config/rx/rx.c (rx_split_fp_compare): Remove.
27027 * config/rx/rx-protos.h: Update.
27028 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
27029 (cbranchsf4): Don't call rx_split_fp_compare.
27030 (*cbranchsf4): Use rx_split_cbranch.
27031 (*cmpsf): Don't accept "i" constraint.
27032 (*conditional_branch): Only valid after reload.
27033 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
27035 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
27038 * config/rs6000/altivec.md (vector constant splitters): Add
27039 support for creating vector single precision constants if -mvsx is
27040 used and we would create the constant using Altivec primitives.
27042 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
27043 Richard Sandiford <rdsandiford@googlemail.com>
27045 PR rtl-optimization/47166
27046 * reload1.c (emit_reload_insns): Disable the spill_reg_store
27047 mechanism for PRE_MODIFY and POST_MODIFY.
27048 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
27051 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
27053 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
27055 2011-01-22 Jan Hubicka <jh@suse.cz>
27058 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
27060 2011-01-22 Jan Hubicka <jh@suse.cz>
27062 PR tree-optimization/43884
27064 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
27065 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
27067 2011-01-22 Anatoly Sokolov <aesok@post.ru>
27069 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
27070 * config/s390/s390.c (s390_register_move_cost,
27071 s390_memory_move_cost): New.
27072 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
27074 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27076 PR middle-end/47401
27077 * except.c (sjlj_assign_call_site_values): Move setting the
27078 crtl->uses_eh_lsda flag to ...
27079 (sjlj_mark_call_sites): ... here.
27080 (sjlj_emit_function_enter): Support NULL dispatch label.
27081 (sjlj_build_landing_pads): In a function with no landing pads
27082 that still has must-not-throw regions, generate code to register
27083 a personality function with empty LSDA.
27085 2011-01-21 Richard Henderson <rth@redhat.com>
27087 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
27089 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
27091 * compare-elim.c: New file.
27092 * Makefile.in (OBJS-common): Add it.
27093 (compare-elim.o): New.
27094 * common.opt (fcompare-elim): New.
27095 * opts.c (default_options_table): Add OPT_fcompare_elim.
27096 * tree-pass.h (pass_compare_elim_after_reload): New.
27097 * passes.c (init_optimization_passes): Add it.
27098 * recog.h: Protect against re-inclusion.
27099 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
27100 * doc/invoke.texi (-fcompare-elim): Document it.
27101 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
27102 * doc/tm.texi: Rebuild.
27104 2011-01-22 Nick Clifton <nickc@redhat.com>
27106 * config/rx/rx.md (cstoresf4): Pass comparison operator to
27107 rx_split_fp_compare.
27109 2011-01-22 Nick Clifton <nickc@redhat.com>
27111 * config/rx/rx.md (UNSPEC_CONST): New.
27112 (deallocate_and_return): Wrap the amount popped off the stack in
27113 an UNSPEC_CONST in order to stop it being rejected by
27114 -mmax-constant-size.
27115 (pop_and_return): Add a "(return)" rtx.
27116 (call): Drop the immediate operand.
27117 (call_internal): Likewise.
27118 (call_value): Likewise.
27119 (call_value_internal): Likewise.
27120 (sibcall_internal): Likewise.
27121 (sibcall_value_internal): Likewise.
27122 (sibcall): Likewise. Generate an explicit call using
27124 (sibcall_value): Likewise.
27125 (mov<>): FAIL if a constant operand is not legitimate.
27126 (addsi3_unpsec): New pattern.
27128 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
27129 (ok_for_max_constant): New function.
27130 (gen_safe_add): New function.
27131 (rx_expand_prologue): Use gen_safe_add.
27132 (rx_expand_epilogue): Likewise.
27133 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
27136 2011-01-21 Jeff Law <law@redhat.com>
27138 PR tree-optimization/47053
27139 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
27140 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
27141 statements are deleted.
27142 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
27143 is nonempty, then purge dead edges and cleanup the CFG.
27145 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
27148 Temporarily revert:
27149 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
27151 * tree-dfa.c (create_var_ann): Mark variable as used.
27153 2011-01-21 Jakub Jelinek <jakub@redhat.com>
27155 PR middle-end/45566
27156 * except.c (convert_to_eh_region_ranges): Emit queued no-region
27157 notes from other section in hot/cold partitioning even if
27158 last_action is -3. Increment call_site_base.
27160 PR rtl-optimization/47366
27161 * fwprop.c (forward_propagate_into): Return bool. If
27162 any changes are made, -fnon-call-exceptions is used and
27163 REG_EH_REGION note is present, call purge_dead_edges
27164 and return true if it purged anything.
27165 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
27166 any EH edges were purged.
27168 2011-01-21 Jeff Law <law@redhat.com>
27170 PR rtl-optimization/41619
27171 * caller-save.c (setup_save_areas): Break out code to determine
27172 which hard regs are live across calls by examining the reload chains
27173 so that it is always used.
27174 Eliminate code which checked REG_N_CALLS_CROSSED.
27176 2011-01-21 Jakub Jelinek <jakub@redhat.com>
27178 PR tree-optimization/47355
27179 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
27180 NOP has non-debug uses beyond PHIs in new_bb.
27182 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
27185 * cfgexpand.c (account_used_vars_for_block): Only account vars
27186 that are annotated as used.
27187 (estimated_stack_frame_size): Don't set TREE_USED.
27188 * tree-dfa.c (create_var_ann): Mark variable as used.
27190 2011-01-21 Richard Guenther <rguenther@suse.de>
27192 PR middle-end/47395
27193 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
27195 2011-01-21 Richard Guenther <rguenther@suse.de>
27197 PR tree-optimization/47365
27198 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
27199 (vn_reference_lookup_pieces): Adjust.
27200 (vn_reference_lookup): Likewise.
27201 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
27202 (vn_reference_lookup_3): Only look through kills if in
27203 VN_WALKREWRITE mode.
27204 (vn_reference_lookup_pieces): Adjust.
27205 (vn_reference_lookup): Likewise.
27206 (visit_reference_op_load): Likewise.
27207 (visit_reference_op_store): Likewise.
27208 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
27209 (compute_avail): Likewise.
27210 (eliminate): Likewise.
27212 2011-01-21 Jakub Jelinek <jakub@redhat.com>
27214 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
27215 DECL_IGNORED_P non-reg vars if they are used.
27217 PR tree-optimization/47391
27218 * varpool.c (const_value_known_p): Return false if
27221 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
27224 * config/i386/i386.c (ix86_local_alignment): Handle
27225 case for va_list_type_node is nil.
27226 (ix86_canonical_va_list_type): Likewise.
27228 2011-01-21 Alan Modra <amodra@gmail.com>
27230 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
27231 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
27233 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27235 * config/arm/arm.md (define_attr type): Rename f_load
27236 and f_store to f_fpa_load and f_fpa_store. Update.
27237 (write_conflict): Deal with rename fallout.
27238 (*push_fp_multi): Likewise.
27239 * config/arm/fpa.md (f_load): Use f_fpa_load.
27240 (f_store): Use f_fpa_store.
27241 (*movsf_fpa): Likewise.
27242 (*movdf_fpa): Likewise.
27243 (*movxf_fpa): Likewise.
27244 (*thumb2_movsf_fpa): Likewise.
27245 (*thumb2_movdf_fpa): Likewise.
27246 (*thumb2_movxf_fpa): Likewise.
27247 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
27248 f_loadd and f_stored.
27249 (*thumb2_movdi_vfp): Likewise.
27250 (*thumb2_movsf_vfp): Fix attribute to f_loads.
27251 (*thumb2_movsi_vfp): Likewise.
27252 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
27253 Use f_loads instead of f_load.
27254 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
27256 2011-01-20 Anatoly Sokolov <aesok@post.ru>
27258 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
27259 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
27260 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27261 (xtensa_mode_dependent_address_p): New function.
27262 (constantpool_address_p): Make static. Change return type to bool.
27263 Change argument type to const_rtx. Use CONST_INT_P predicate.
27265 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
27268 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
27270 2011-01-20 Jakub Jelinek <jakub@redhat.com>
27273 * cfgexpand.c (expand_debug_expr): Instead of generating
27274 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
27277 2011-01-20 Richard Guenther <rguenther@suse.de>
27279 PR middle-end/47370
27280 * tree-inline.c (remap_gimple_op_r): Recurse manually for
27281 the pointer operand of MEM_REFs.
27283 2011-01-20 Jakub Jelinek <jakub@redhat.com>
27285 PR tree-optimization/46130
27286 * ipa-split.c (consider_split): If return_bb contains non-virtual
27287 PHIs other than for retval or if split_function would not adjust it,
27290 2011-01-20 Richard Guenther <rguenther@suse.de>
27292 PR tree-optimization/47167
27293 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
27294 Revert previous change, only avoid enumeral type changes.
27296 2011-01-19 Mike Stump <mikestump@comcast.net>
27298 * doc/tm.texi.in (BRANCH_COST): Englishify.
27299 * doc/tm.texi (BRANCH_COST): Likewise.
27301 2011-01-19 Dodji Seketeli <dodji@redhat.com>
27304 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
27305 (gen_scheduled_generic_parms_dies): New functions.
27306 (gen_struct_or_union_type_die): Schedule template parameters DIEs
27307 generation for the end of CU compilation.
27308 (dwarf2out_finish): Generate template parameters DIEs here.
27310 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
27313 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
27314 debug bind stmt on merge edges.
27316 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
27320 * function.c (instantiate_expr): Instantiate incoming rtl of
27321 implicit arguments, and recurse on VALUE_EXPRs.
27322 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
27323 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
27325 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
27327 * c-parser.c (c_parser_for_statement): Initialize
27328 collection_expression.
27330 2011-01-19 Joseph Myers <joseph@codesourcery.com>
27332 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
27334 2011-01-19 Joseph Myers <joseph@codesourcery.com>
27336 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
27337 (LINK_SHLIB_SPEC): Don't use %(link_path).
27338 (SUBTARGET_EXTRA_SPECS): Remove link_path.
27340 2011-01-19 Joseph Myers <joseph@codesourcery.com>
27342 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
27343 (NO_SHARED_LIB_SUPPORT): Remove.
27344 (LINK_SHLIB_SPEC): Remove one conditional definition.
27346 2011-01-19 Joseph Myers <joseph@codesourcery.com>
27348 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
27350 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
27351 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
27352 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
27353 %{call_shared} and conditionals on these options not being passed.
27354 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
27357 2011-01-19 Jakub Jelinek <jakub@redhat.com>
27359 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
27362 * ipa-split.c: Spelling fixes.
27364 2011-01-19 Richard Henderson <rth@redhat.com>
27366 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
27367 (*mulsi3): Likewise.
27369 * longlong.h [__mn10300__] (count_leading_zeros): New.
27370 [__mn10300__] (umul_ppmm, smul_ppmm): New.
27371 [__mn10300__] (add_ssaaaa, subddmmss): New.
27372 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
27373 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
27375 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27377 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
27379 2011-01-19 Richard Henderson <rth@redhat.com>
27381 * config/mn10300/mn10300.md (addsi3_flags): New.
27382 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
27383 (subsi3_flags, subc_internal, subdi3): New.
27384 (subdi3_internal, *subdi3_degenerate): New.
27385 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
27387 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
27388 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
27389 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
27390 * config/mn10300/mn10300-protos.h: Update.
27391 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
27392 (return_ret): Likewise. Rename from return_internal_regs.
27393 (return_internal): Remove.
27395 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
27396 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
27397 (mn10300_legitimate_constant_p): Likewise.
27398 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
27399 (mn10300_frame_size): New.
27400 (mn10300_expand_prologue): Use it.
27401 (mn10300_expand_epilogue): Likewise.
27402 (mn10300_initial_offset): Likewise.
27403 * config/mn10300/mn10300-protos.h: Update.
27404 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
27405 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
27406 (prologue, epilogue, return_internal): Tidy output code.
27407 (mn10300_store_multiple_operation, return): Likewise.
27408 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
27409 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
27410 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
27411 (load_pic, am33_load_pic): New.
27412 (mn10300_load_pic0, mn10300_load_pic1): New.
27414 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
27415 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
27416 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
27417 (cc_flags_for_mode, cc_flags_for_code): New.
27418 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
27419 overflow flag is not valid. Validate that the flags we need
27420 for the comparison are valid.
27421 (mn10300_output_cmp): Remove.
27422 (mn10300_output_add): New.
27423 (mn10300_select_cc_mode): Use cc_flags_for_code.
27424 (mn10300_split_cbranch): New.
27425 (mn10300_match_ccmode): New.
27426 (mn10300_split_and_operand_count): New.
27427 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
27429 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
27430 (addsi3): ... here. Use mn10300_output_add.
27431 (*addsi3_flags): New.
27432 (*am33_subsi3, *mn10300_subsi3): Merge...
27433 (subsi3): ... here. Use attribute isa.
27434 (*subsi3_flags): New.
27435 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
27437 (*am33_andsi3, *mn10300_andsi3): Merge...
27438 (andsi3): ... here.
27439 (*andsi3_flags): New.
27440 (andsi3 splitters): New.
27441 (*am33_iorsi3, *mn10300_iorsi3): Merge...
27442 (iorsi3): ... here.
27443 (*iorsi3_flags): New.
27444 (*am33_xorsi3, *mn10300_xorsi3): Merge...
27445 (xorsi3): ... here.
27446 (*xorsi3_flags): New.
27447 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
27448 (one_cmplsi2): ... here.
27449 (*one_cmplsi2_flags): New.
27450 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
27451 instead of "dax" in constraints. Use mn10300_split_cbranch.
27452 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
27453 use matching constraints to eliminate a self-comparison.
27454 (*integer_conditional_branch): Rename from integer_conditional_branch.
27455 Use int_mode_flags to match CC_REG.
27456 (*cbranchsi4_btst, *btstsi): New.
27457 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
27458 mn10300_split_cbranch.
27459 (*am33_cmpsf): Rename from am33_cmpsf.
27460 (*float_conditional_branch): Rename from float_conditional_branch.
27461 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
27462 (zero_extendqisi2): ... here.
27463 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
27464 (zero_extendhisi2): ... here.
27465 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
27466 (extendqisi2): ... here.
27467 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
27468 (extendhisi2): ... here.
27469 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
27470 (ashlsi3): ... here.
27471 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
27472 (lshrsi3): ... here.
27473 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
27474 (ashrsi3): ... here.
27475 (consecutive add peephole): Remove.
27476 * config/mn10300/predicates.md (label_ref_operand): New.
27477 (int_mode_flags): New.
27478 (CCZN_comparison_operator): New.
27480 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
27481 (throughput_42_latency_43): New reservation.
27482 (mulsidi3, umulsidi3): New expanders.
27483 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
27484 the MDR register to allocation; separately allocate the low and
27485 high parts of the DImode result.
27486 (umulsidi3_internal): Similarly.
27487 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
27488 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
27489 (udivsi3, umodsi3): Remove.
27490 (udivmodsi4, divmodsi4): New expanders.
27491 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
27492 (*divmodsi4): Simiarly.
27493 (ext_internal): New.
27495 * config/mn10300/constraints.md ("z"): New constraint.
27496 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
27497 (FIXED_REGISTERS): Don't fix MDR.
27498 (CALL_USED_REGSITERS): Reformat nicely.
27499 (REG_ALLOC_ORDER): Add MDR.
27500 (enum regclass): Add MDR_REGS.
27501 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
27502 (IRA_COVER_CLASSES): Add MDR_REGS.
27503 (REGNO_REG_CLASS): Handle MDR_REG.
27504 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
27505 (mn10300_register_move_cost): Likewise.
27506 * config/mn10300/mn10300.md (MDR_REG): New.
27507 (*movsi_internal): Handle moves to/from MDR_REGS.
27509 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
27511 (mn10300_secondary_reload): Tidy combination reload classes.
27512 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
27513 addresses for AM33. Allow symbolic offsets for reg+imm.
27514 (mn10300_regno_in_class_p): New.
27515 (mn10300_legitimize_reload_address): New.
27516 * config/mn10300/mn10300.h (enum reg_class): Remove
27517 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
27518 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
27519 SP_OR_GENERAL_REGS.
27520 (REG_CLASS_NAMES): Update to match.
27521 (REG_CLASS_CONTENTS): Likewise.
27522 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
27523 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
27524 (REGNO_IN_RANGE_P): Remove.
27525 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
27526 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
27527 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
27528 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
27529 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
27530 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
27531 (REGNO_GENERAL_P): New.
27532 (HAVE_POST_MODIFY_DISP): New.
27533 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
27534 (LEGITIMIZE_RELOAD_ADDRESS): New.
27535 * config/mn10300/mn10300-protos.h: Update.
27537 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
27538 DATA_REGS for AM33 stack-pointer destination.
27539 (mn10300_preferred_output_reload_class): Likewise.
27540 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
27541 into a form appropriate for ...
27542 (TARGET_SECONDARY_RELOAD): New.
27543 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
27544 * config/mn10300/mn10300-protos.h: Update.
27545 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
27546 reload_insi; use the "A" constraint for the scratch; handle AM33
27547 moves of sp to non-address registers.
27549 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
27550 (*movqi_internal): ... here.
27551 (*am33_movhi, *mn10300_movhi): Merge into...
27552 (*movhi_internal): ... here.
27553 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
27554 as the source/destination of moves from/to SP.
27555 (movsf): Only allow for AM33-2.
27556 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
27557 any integer constant constraint. Only allow for AM33-2. Tidy
27558 all of the alternative outputs.
27559 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
27560 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
27562 (udivsi3, umodsi3): New patterns for MN103 only.
27564 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
27566 * doc/tm.texi.in: Spell out that a lack of register class unions
27568 * doc/tm.texi: Regenerate.
27570 2011-01-19 Jakub Jelinek <jakub@redhat.com>
27572 PR rtl-optimization/47337
27573 * dce.c (check_argument_store): New function.
27574 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
27576 PR tree-optimization/47290
27577 * tree-eh.c (infinite_empty_loop_p): New function.
27578 (cleanup_empty_eh): Use it.
27580 2011-01-18 Steve Ellcey <sje@cup.hp.com>
27583 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
27584 (a64_expand_widen_sum): Ditto.
27585 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
27586 (vec_extract_evenodd_help): Ditto.
27587 (vec_extract_evenv4hi): Ditto.
27588 (vec_extract_oddv4hi): Ditto.
27589 (vec_extract_evenv2si): Ditto.
27590 (vec_extract_oddv2si): Ditto.
27591 (vec_extract_evenv2sf): Ditto.
27592 (vec_extract_oddv2sf): Ditto.
27593 (vec_pack_trunc_v4hi: Ditto.
27594 (vec_pack_trunc_v2si): Ditto.
27595 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
27596 (vec_interleave_highv8qi): Ditto.
27598 (vec_extract_oddv8qi): Ditto.
27599 (vec_interleave_lowv4hi): Ditto.
27600 (vec_interleave_highv4hi): Ditto.
27601 (vec_interleave_lowv2si): Ditto.
27602 (vec_interleave_highv2si): Ditto.
27604 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27606 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
27607 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
27608 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
27609 (pa_c_mode_for_suffix): New.
27610 (TARGET_EXPAND_BUILTIN): Define.
27611 (TARGET_C_MODE_FOR_SUFFIX): Define.
27612 (pa_builtins): Define.
27613 (pa_init_builtins): Register __float128 type and init new support
27615 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
27616 * config/pa/quadlib.c (_U_Qfcopysign): New.
27618 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
27620 PR middle-end/46894
27621 * explow.c (allocate_dynamic_stack_space): Do not assume more than
27622 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
27625 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27627 PR tree-optimization/47179
27628 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
27629 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
27631 2011-01-18 Richard Guenther <rguenther@suse.de>
27633 PR rtl-optimization/47216
27634 * emit-rtl.c: Include tree-flow.h.
27635 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
27636 of replicating it with different semantics.
27637 * Makefile.in (emit-rtl.o): Adjust.
27639 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27641 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
27642 (cortex_a9_dp): Handle neon types correctly.
27644 2011-01-18 Jakub Jelinek <jakub@redhat.com>
27646 PR rtl-optimization/47299
27647 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
27648 subtarget. Use normal multiplication if both operands are constants.
27649 * expmed.c (expand_widening_mult): Don't try to optimize constant
27650 multiplication if op0 has VOIDmode. Convert op1 constant to mode
27653 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27655 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
27656 spacing after 'e.g.', typos, comma, hyphenation.
27658 2011-01-17 Richard Henderson <rth@redhat.com>
27660 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
27661 (rx_restricted_mem_operand): New.
27662 (rx_shift_operand): Use register_operand.
27663 (rx_source_operand, rx_compare_operand): Likewise.
27664 * config/rx/rx.md (addsi3_flags): New expander.
27665 (adddi3): Rewrite as expander.
27666 (adc_internal, *adc_flags, adddi3_internal): New patterns.
27667 (subsi3_flags): New expander.
27668 (subdi3): Rewrite as expander.
27669 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
27671 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
27672 (rx_init_builtins): Remove sat builtin.
27673 (rx_expand_builtin): Likewise.
27674 * config/rx/rx.md (ssaddsi3): New.
27675 (*sat): Rename from sat. Represent the CC_REG input.
27677 * config/rx/predicates.md (rshift_operator): New.
27678 * config/rx/rx.c (rx_expand_insv): Remove.
27679 * config/rx/rx-protos.h: Update.
27680 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
27681 operand to the canonical position.
27682 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
27683 (*bitclr, *bitclr_in_memory): Similarly.
27684 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
27685 (insv): Retain the zero_extract in the expansion.
27687 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
27688 (bswaphi2, bitinvert, revw): Likewise.
27690 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
27691 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
27692 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
27693 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
27694 (bitset, bitset_in_memory): Likewise.
27695 (bitinvert, bitinvert_in_memory): Likewise.
27696 (bitclr, bitclr_in_memory): Likewise.
27697 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
27698 (rx_strend, rx_cmpstrn): Likewise.
27699 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
27700 (bitop peep2 patterns): Remove.
27702 * config/rx/rx.c (rx_match_ccmode): New.
27703 * config/rx/rx-protos.h: Update.
27704 * config/rx/rx.md (abssi2): Clobber, don't set flags.
27705 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
27706 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
27707 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
27708 (fix_truncsfsi2, floatsisf2): Likewise.
27709 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
27710 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
27711 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
27712 (*subsi3_flags, *xorsi3_flags): New.
27714 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
27716 * config/rx/rx.c (rx_print_operand): Remove workaround for
27717 unsplit comparison operations.
27719 * config/rx/rx.md (movsicc): Split after reload.
27720 (*movsicc): Merge *movsieq and *movsine via match_operator.
27721 (*stcc): New pattern.
27723 * config/rx/rx.c (rx_float_compare_mode): Remove.
27724 * config/rx/rx.h (rx_float_compare_mode): Remove.
27725 * config/rx/rx.md (cstoresi4): Split after reload.
27726 (*sccc): New pattern.
27728 * config/rx/predicates.md (label_ref_operand): New.
27729 (rx_z_comparison_operator): New.
27730 (rx_zs_comparison_operator): New.
27731 (rx_fp_comparison_operator): New.
27732 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
27733 Validate that the flags are set properly for the comparison.
27734 (rx_gen_cond_branch_template): Remove.
27735 (rx_cc_modes_compatible): Remove.
27736 (mode_from_flags): New.
27737 (flags_from_code): Rename from flags_needed_for_conditional.
27738 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
27739 (rx_select_cc_mode): Likewise.
27740 (rx_split_fp_compare): New.
27741 (rx_split_cbranch): New.
27742 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
27743 (*cbranchsi4): Use match_operator and rx_split_cbranch.
27744 (*cbranchsf4): Similarly.
27745 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
27746 match_operator and rx_split_cbranch.
27747 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
27748 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
27749 (*cmpsi): Rename from cmpsi.
27750 (*tstsi): Rename from tstsi.
27751 (*cmpsf): Rename from cmpsf; use CC_Fmode.
27752 (*conditional_branch): Rename from conditional_branch.
27753 (*reveresed_conditional_branch): Remove.
27754 (b<code>): Remove expander.
27755 * config/rx/rx-protos.h: Update.
27757 * config/rx/rx.c (rx_compare_redundant): Remove.
27758 * config/rx/rx.md (cmpsi): Don't use it.
27759 * config/rx/rx-protos.h: Update.
27761 * config/rx/rx-modes.def (CC_F): New mode.
27762 * config/rx/rx.c (rx_select_cc_mode): New.
27763 * config/rx/rx.h (SELECT_CC_MODE): Use it.
27764 * config/rx/rx-protos.h: Update.
27766 2011-01-17 Richard Henderson <rth@redhat.com>
27768 * except.c (dump_eh_tree): Fix stray ; after for statement.
27770 2011-01-17 Richard Guenther <rguenther@suse.de>
27772 PR tree-optimization/47313
27773 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
27774 handling before copying the body. Properly deal with
27775 by-reference result in SSA form.
27777 2011-01-17 Ian Lance Taylor <iant@google.com>
27780 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
27781 (struct_value_alias_set): Don't define.
27782 (sparc_option_override): Don't set sparc_sr_alias_set and
27783 struct_value_alias_set.
27784 (save_or_restore_regs): Use gen_frame_mem rather than calling
27786 (sparc_struct_value_rtx): Likewise.
27788 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
27791 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
27792 (_mm_maskstore_pd): Likewise.
27793 (_mm_maskload_ps): Likewise.
27794 (_mm_maskstore_ps): Likewise.
27795 (_mm256_maskload_pd): Change mask to __m256i.
27796 (_mm256_maskstore_pd): Likewise.
27797 (_mm256_maskload_ps): Likewise.
27798 (_mm256_maskstore_ps): Likewise.
27800 * config/i386/i386-builtin-types.def: Updated.
27801 (ix86_expand_special_args_builtin): Likewise.
27803 * config/i386/i386.c (bdesc_special_args): Update
27804 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
27805 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
27806 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
27807 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
27809 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
27810 Use <avxpermvecmode> on mask register.
27811 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
27813 2011-01-17 Olivier Hainque <hainque@adacore.com>
27814 Michael Haubenwallner <michael.haubenwallner@salomon.at>
27815 Eric Botcazou <ebotcazou@adacore.com>
27818 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
27819 if <= USHRT_MAX in 32-bit mode.
27821 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27823 * doc/install.texi (Configuration, Specific): Wrap long
27824 lines in examples. Allow line wrapping in long options
27825 and URLs where beneficial for PDF output.
27827 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
27829 * config/mips/mips.c (mips_classify_symbol): Don't return
27830 SYMBOL_PC_RELATIVE for nonlocal labels.
27832 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
27834 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
27836 2011-01-15 Jan Hubicka <jh@suse.cz>
27838 PR tree-optimization/47276
27839 * ipa.c (function_and_variable_visibility): Do not try to mark alias
27840 declarations as needed.
27842 2011-01-15 Martin Jambor <mjambor@suse.cz>
27844 * common.opt (fdevirtualize): New flag.
27845 * doc/invoke.texi (Option Summary): Document it.
27846 * opts.c (default_options_table): Add devirtualize flag.
27847 * ipa-prop.c (detect_type_change): Return immediately if
27848 devirtualize flag is not set.
27849 (detect_type_change_ssa): Likewise.
27850 (compute_known_type_jump_func): Likewise.
27851 (ipa_analyze_virtual_call_uses): Likewise.
27853 2011-01-14 Martin Jambor <mjambor@suse.cz>
27855 PR tree-optimization/45934
27856 PR tree-optimization/46302
27857 * ipa-prop.c (type_change_info): New type.
27858 (stmt_may_be_vtbl_ptr_store): New function.
27859 (check_stmt_for_type_change): Likewise.
27860 (detect_type_change): Likewise.
27861 (detect_type_change_ssa): Likewise.
27862 (compute_complex_assign_jump_func): Check for dynamic type change.
27863 (compute_complex_ancestor_jump_func): Likewise.
27864 (compute_known_type_jump_func): Likewise.
27865 (compute_scalar_jump_functions): Likewise.
27866 (ipa_analyze_virtual_call_uses): Likewise.
27867 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
27869 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27871 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
27872 * config/i386/i386.opt (msse5): New Alias.
27874 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27876 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
27877 * config/sparc/linux64.h (CC1_SPEC): Likewise.
27878 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
27879 * config/sparc/sparc.h (CC1_SPEC): Likewise.
27881 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27883 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
27885 * config/sparc/linux64.h (CC1_SPEC): Likewise.
27886 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
27887 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
27888 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
27890 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
27892 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27894 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
27896 2011-01-14 Mike Stump <mikestump@comcast.net>
27898 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
27899 * config/fr30/fr30.md: Likweise
27900 (movsi_push): Likewise.
27901 (movsi_pop): Likewise.
27902 (enter_func): Likewise.
27903 * config/moxie/moxie.md (movsi_push): Likewise.
27904 (movsi_pop): Likewise.
27906 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27908 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
27909 %{no_archive} %{exact_version}.
27910 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
27911 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
27912 %{no_archive} %{exact_version}.
27913 * config/mips/openbsd.h (LINK_SPEC): Likewise.
27914 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
27915 * config/mips/vxworks.h: Likewise.
27917 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27919 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
27921 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27923 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
27924 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
27926 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27928 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
27931 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27933 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
27935 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
27936 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
27938 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
27939 Don't handle -shlib.
27941 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27943 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
27944 (CC1_SPEC): Don't handle -profile.
27946 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27948 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
27949 * config/mips/mips.h (CC1_SPEC): Likewise.
27951 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27953 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
27954 * config/mips/mips.h (CC1_SPEC): Likewise.
27956 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27958 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
27959 * config/m32r/linux.h (LINK_SPEC): Likewise.
27960 * config/mips/linux.h (LINK_SPEC): Likewise.
27961 * config/mips/linux64.h (LINK_SPEC): Likewise.
27962 * config/sparc/linux.h (LINK_SPEC): Likewise.
27963 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
27964 LINK_SPEC): Likewise.
27965 * config/xtensa/linux.h (LINK_SPEC): Likewise.
27967 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27969 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
27971 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
27973 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27975 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
27976 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
27978 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27980 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
27982 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27984 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
27985 supports -Bstatic/-Bdynamic.
27986 * configure: Regenerate.
27988 2011-01-14 Jan Hubicka <jh@suse.cz>
27989 Jack Howarth <howarth@bromo.med.uc.edu>
27992 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
27993 when checking debug_info_level. Test write_symbols instead of
27994 debug_hooks->var_location when setting flag_var_tracking_uninit.
27996 2011-01-14 Richard Guenther <rguenther@suse.de>
27998 PR tree-optimization/47179
27999 * target.def (ref_may_alias_errno): New target hook.
28000 * targhooks.h (default_ref_may_alias_errno): Declare.
28001 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
28002 (default_ref_may_alias_errno): New function.
28003 * target.h (struct ao_ref_s): Declare.
28004 * tree-ssa-alias.c: Include target.h.
28005 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
28006 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
28007 (targhooks.o): Likewise.
28008 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
28009 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
28011 2011-01-14 Richard Guenther <rguenther@suse.de>
28013 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
28015 2011-01-14 Richard Guenther <rguenther@suse.de>
28017 PR tree-optimization/47280
28018 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
28019 return CFG changes.
28020 (tree_ssa_forward_propagate_single_use_vars): Deal with
28021 CFG changes from associate_plusminus.
28023 2011-01-14 Richard Guenther <rguenther@suse.de>
28025 PR middle-end/47281
28027 2011-01-11 Richard Guenther <rguenther@suse.de>
28029 PR tree-optimization/46076
28030 * tree-ssa.c (useless_type_conversion_p): Conversions from
28031 unprototyped to empty argument list function types are useless.
28033 2011-01-14 Richard Guenther <rguenther@suse.de>
28035 PR tree-optimization/47286
28036 * tree-ssa-structalias.c (new_var_info): Register variables are global.
28038 2011-01-14 Martin Jambor <mjambor@suse.cz>
28040 PR middle-end/46823
28041 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
28043 2011-01-13 Anatoly Sokolov <aesok@post.ru>
28045 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
28046 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
28047 * config/xtensa/xtensa.c (xtensa_libcall_value,
28048 xtensa_function_value_regno_p): New functions.
28049 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
28051 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
28054 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
28056 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
28057 New function prototype.
28058 * config/i386/winnt.c (i386_pe_assemble_visibility):
28059 Warn only if attribute was specified by user.
28061 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
28064 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
28066 (floatunsdidf2_fcfidu): Ditto.
28068 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28070 * config/s390/s390.c (print_operand_address): Replace 'error' with
28071 'output_operand_lossage'.
28072 (print_operand): Likewise.
28074 2011-01-13 Jeff Law <law@redhat.com>
28076 PR rtl-optimization/39077
28077 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
28078 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
28079 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
28080 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
28081 * gcse.c (prune_insertions_deletions): New function.
28082 (compute_pre_data): Use it.
28084 2011-01-13 Dodji Seketeli <dodji@redhat.com>
28087 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
28089 (prune_unused_types_mark): Use it.
28091 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
28093 PR rtl-optimization/45352
28094 * sel-sched.c: Update copyright years.
28095 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
28096 in the advancing loop when we have issued issue_rate insns.
28098 2011-01-12 Richard Henderson <rth@redhat.com>
28100 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
28101 (TARGET_MD_ASM_CLOBBERS): New.
28103 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
28104 (TARGET_DELEGITIMIZE_ADDRESS): New.
28106 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
28107 (clzsi2, *bsch): New patterns.
28109 * config/mn10300/mn10300.md (INT): New mode iterator.
28110 (*mov<INT>_clr): New pattern, and peep2 to generate it.
28112 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
28113 flag_split_wide_types.
28115 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
28116 (mn10300_trampoline_init): Rewrite without a template, an immediate
28117 load and a direct branch.
28118 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
28120 2011-01-12 Anatoly Sokolov <aesok@post.ru>
28122 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
28123 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
28124 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
28125 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
28127 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
28130 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
28133 2011-01-12 Jan Hubicka <jh@suse.cz>
28136 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
28137 (PLUGIN_COND_CLOSE): New macro.
28138 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
28140 2011-01-12 Richard Guenther <rguenther@suse.de>
28143 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
28144 register variables in a MEM_REF.
28146 2011-01-12 Joseph Myers <joseph@codesourcery.com>
28148 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
28149 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
28150 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
28151 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
28152 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
28153 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
28154 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
28155 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
28156 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
28157 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
28158 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
28159 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
28160 * config/gnu-user.h: New. Copied from linux.h.
28161 (LINUX_TARGET_STARTFILE_SPEC): Rename to
28162 GNU_USER_TARGET_STARTFILE_SPEC.
28163 (LINUX_TARGET_ENDFILE_SPEC): Rename to
28164 GNU_USER_TARGET_ENDFILE_SPEC.
28165 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
28166 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
28167 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
28168 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
28169 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
28170 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
28171 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
28172 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
28173 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
28174 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
28175 * config/arm/linux-eabi.h (CC1_SPEC): Use
28176 GNU_USER_TARGET_CC1_SPEC.
28177 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
28178 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
28179 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
28180 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
28181 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
28182 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
28183 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
28184 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
28186 2011-01-12 Richard Guenther <rguenther@suse.de>
28189 * doc/invoke.texi (ffast-math): Document it is turned on
28192 2011-01-12 Jan Hubicka <jh@suse.cz>
28194 PR tree-optimization/47233
28195 * opts.c (common_handle_option): Disable ipa-reference with profile
28198 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
28200 * c-parser.c (c_parser_objc_at_property_declaration): Improved
28203 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
28205 * c-parser.c (c_lex_one_token): Updated and reindented some
28206 comments. No changes in code.
28208 2011-01-11 Ian Lance Taylor <iant@google.com>
28210 * godump.c (go_output_var): Don't output the variable if there is
28211 already a type with the same name.
28213 2011-01-11 Ian Lance Taylor <iant@google.com>
28215 * godump.c (go_format_type): Don't generate float80.
28217 2011-01-11 Richard Henderson <rth@redhat.com>
28219 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
28220 declaration. Rewrite for both speed and size.
28221 (mn10300_address_cost_1): Remove.
28222 (mn10300_register_move_cost): New.
28223 (mn10300_memory_move_cost): New.
28224 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
28225 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
28226 extensions, shifts, BSWAP, CLZ.
28227 (mn10300_wide_const_load_uses_clr): Remove.
28228 (TARGET_REGISTER_MOVE_COST): New.
28229 (TARGET_MEMORY_MOVE_COST): New.
28230 * config/mn10300/mn10300-protos.h: Update.
28231 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
28233 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
28234 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
28235 * config/mn10300/mn10300-protos.h: Update.
28236 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
28237 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
28238 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
28239 (*test_int_bitfield, *test_byte_bitfield): Remove.
28240 (*bit_test, *subreg_bit_test): Remove.
28241 * config/mn10300/predicates.md (const_8bit_operand): Remove.
28243 * config/mn10300/constraints.md ("c"): Rename from "A".
28244 ("A", "D"): New constraint letters.
28245 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
28246 (fmssf4, fnmasf4, fnmssf4): Likewise.
28248 * config/mn10300/mn10300.md (isa): New attribute.
28249 (enabled): New attribute.
28251 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
28252 (abssf2, negsf2): Define only for hardware fp.
28253 (sqrtsf2): Reformat.
28254 (addsf3, subsf3, mulsf3): Merge expander and insn.
28256 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
28257 (DEBUGGER_AUTO_OFFSET): Remove.
28258 (DEBUGGER_ARG_OFFSET): Remove.
28260 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
28261 Emit register stores with the same offsets as the hardware.
28262 (mn10300_store_multiple_operation): Don't check that the register
28263 save offsets are monotonic.
28264 * config/mn10300/mn10300-protos.h: Update.
28266 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
28268 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
28269 in terms of the value on the stack, not the MDR register.
28271 2011-01-11 Jan Hubicka <jh@suse.cz>
28275 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
28276 (symbol_alias_set_destroy, symbol_alias_set_contains,
28277 propagate_aliases_backward): Declare.
28278 * lto-streamer-out.c (struct sets): New sturcture.
28279 (trivally_defined_alias): New function.
28280 (output_alias_pair_p): Rewrite.
28281 (output_unreferenced_globals): Fix output of alias pairs.
28282 (produce_symtab): Likewise.
28283 * ipa.c (function_and_variable_visibility): Set weak alias destination
28285 * varasm.c (symbol_alias_set_t): Remove.
28286 (symbol_alias_set_destroy): Export.
28287 (propagate_aliases_forward, propagate_aliases_backward): New functions
28289 (compute_visible_aliases): ... this one; remove.
28290 (trivially_visible_alias): New
28291 (trivially_defined_alias): New.
28292 (remove_unreachable_alias_pairs): Rewrite.
28293 (finish_aliases_1): Reorganize code checking if alias is defined.
28294 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
28297 2011-01-11 Richard Guenther <rguenther@suse.de>
28299 PR tree-optimization/46076
28300 * tree-ssa.c (useless_type_conversion_p): Conversions from
28301 unprototyped to empty argument list function types are useless.
28303 2011-01-11 Richard Guenther <rguenther@suse.de>
28305 PR middle-end/45235
28306 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
28307 volatile MEMs as MEM_READONLY_P.
28309 2011-01-11 Richard Guenther <rguenther@suse.de>
28311 PR tree-optimization/47239
28312 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
28314 2011-01-11 Jeff Law <law@redhat.com>
28316 PR tree-optimization/47086
28317 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
28318 IVs from statements that might throw.
28320 2011-01-10 Jan Hubicka <jh@suse.cz>
28323 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
28325 2011-01-10 Jan Hubicka <jh@suse.cz>
28328 * profile.c (read_profile_edge_counts): Ignore profile inconistency
28329 when correcting profile.
28331 2011-01-10 Jan Hubicka <jh@suse.cz>
28334 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
28335 DECL_FINI_PRIORITY.
28336 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
28337 Restore DECL_FINI_PRIORITY.
28339 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28341 * doc/gimple.texi: Fix quoting of multi-word return values in
28342 @deftypefn statements. Ensure presence of return value. Wrap
28343 overlong @deftypefn lines.
28344 (is_gimple_operand, is_gimple_min_invariant_address): Remove
28345 descriptions of removed functions.
28346 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
28347 of multi-word return value in @deftypefn statement.
28349 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28351 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
28352 (Conditional Expressions, Logical Operators)
28353 (Statement and operand traversals): Do not indent smallexample
28354 code. Fix duplicate function argument in example.
28356 2011-01-10 Jeff Law <law@redhat.com>
28358 PR tree-optimization/47141
28359 * ipa-split.c (split_function): Handle case where we are
28360 returning a value and the return block has a virtual operand phi.
28362 2011-01-10 Jan Hubicka <jh@suse.cz>
28364 PR tree-optimization/47234
28365 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
28366 (pass_feedback_split_functions): Declare.
28367 * passes.c (init_optimization_passes): Add ipa-split as subpass of
28369 * ipa-split.c (gate_split_functions): Update comments; disable
28370 split-functions for profile_arc_flag and branch_probabilities.
28371 (gate_feedback_split_functions): New function.
28372 (execute_feedback_split_functions): New function.
28373 (pass_feedback_split_functions): New global var.
28375 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
28378 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
28379 calling gimple_call_set_cannot_inline.
28381 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
28383 * config/darwin-sections.def: Remove unused section.
28385 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
28388 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
28390 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
28393 * c-parser.c (c_parser_declaration_or_fndef): Improved
28396 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
28398 * config/i386/winnt.c (i386_pe_start_function): Make sure
28399 to switch back to function's section.
28401 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
28405 * plugin.c: Move include of dlfcn.h from here...
28406 * system.h: ... to here.
28408 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28410 * doc/cpp.texi (C++ Named Operators): Fix markup for header
28412 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
28413 two extra empty pages in PDF output.
28415 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
28418 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
28419 for error recovery purposes behave as if it was not specified so
28420 that the default type is usd.
28422 2011-01-07 Jan Hubicka <jh@suse.cz>
28424 PR tree-optmization/46469
28425 * ipa.c (function_and_variable_visibility): Clear needed flags on
28426 nodes with external decls; handle weakrefs merging correctly.
28428 2011-01-07 Joseph Myers <joseph@codesourcery.com>
28430 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
28433 2011-01-07 Jan Hubicka <jh@suse.cz>
28435 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
28436 and no longer claim that gold is required for linker plugin.
28437 * configure: Regenerate.
28438 * gcc.c (PLUGIN_COND): New macro.
28439 (LINK_COMMAND_SPEC): Use it.
28440 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
28441 * config.in (HAVE_LTO_PLUGIN): New.
28442 * configure.ac (--with-lto-plugin): New parameter; autodetect
28445 2011-01-07 Jan Hubicka <jh@suse.cz>
28447 PR tree-optimization/46367
28448 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
28449 when we can update original.
28450 (cgraph_mark_inline_edge): Sanity check.
28451 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
28453 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28455 * config/spu/spu.h (ASM_COMMENT_START): Define.
28457 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
28460 * gcc.c (%>S): New.
28461 (SWITCH_KEEP_FOR_GCC): Likewise.
28462 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
28463 (do_spec_1): Handle "%>".
28465 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
28467 2011-01-07 Jakub Jelinek <jakub@redhat.com>
28470 * config/i386/i386.c (ix86_delegitimize_address): If
28471 simplify_gen_subreg fails, return orig_x.
28474 * value-prof.c (gimple_stringop_fixed_value): Handle
28475 lhs of the call properly.
28477 2011-01-07 Jan Hubicka <jh@suse.cz>
28480 * lto-opt.c (lto_reissue_options): Set flag_shlib.
28482 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
28484 * target.def (function_switched_text_sections): New hook.
28485 * doc/tm.texi: Regenerated.
28486 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
28487 * final.c (default_function_switched_text_sections): New.
28488 (final_scan_insn): Call function_switched_text_sections when a
28489 mid-function section change occurs.
28490 * output.h (default_function_switched_text_sections): Declare.
28491 * config/darwin-protos.h (darwin_function_switched_text_sections):
28493 * config/darwin.c (darwin_function_switched_text_sections): New.
28494 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
28496 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
28498 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
28499 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
28500 the secondary code fragment when outputting for DWARF == 2.
28502 2011-01-07 Anatoly Sokolov <aesok@post.ru>
28504 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
28505 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
28507 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
28508 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
28510 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
28513 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
28514 when it is not empty.
28516 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
28519 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
28520 (case ${target}): Add btver1.
28521 * config/i386/driver-i386.c (host_detect_local_cpu): Let
28522 -march=native recognize btver1 processors.
28523 * config/i386/i386-c.c (ix86_target_macros_internal): Add
28524 btver1 def_and_undef
28525 * config/i386/i386.c (struct processor_costs btver1_cost): New
28527 (m_BTVER1): New definition.
28528 (m_AMD_MULTIPLE): Includes m_BTVER1.
28529 (initial_ix86_tune_features): Add btver1 tune.
28530 (processor_target_table): Add btver1 entry.
28531 (static const char *const cpu_names): Add btver1 entry.
28532 (software_prefetching_beneficial_p): Add btver1.
28533 (ix86_option_override_internal): Add btver1 instruction sets.
28534 (ix86_issue_rate): Add btver1.
28535 (ix86_adjust_cost): Add btver1.
28536 * config/i386/i386.h (TARGET_BTVER1): New definition.
28537 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
28538 (enum processor_type): Add PROCESSOR_BTVER1.
28539 * config/i386/i386.md (define_attr "cpu"): Add btver1.
28541 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28544 * config/i386/i386.c (legitimize_tls_address)
28545 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
28546 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
28547 (tls_initial_exec_64_sun): New pattern.
28549 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
28551 * doc/invoke.texi (Overall Options): Improve wording and markup
28552 of the description of -wrapper.
28554 2011-01-06 Joseph Myers <joseph@codesourcery.com>
28556 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
28557 rdynamic, threads): New Driver options.
28559 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28562 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
28563 if coming from .tdata.
28564 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
28566 2011-01-06 Jan Hubicka <jh@suse.cz>
28569 * collect2.c (main): Do not enable LTOmode when plugin is active.
28571 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28574 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
28575 --version output if supported.
28576 * configure: Regenerate.
28578 2011-01-06 Joseph Myers <joseph@codesourcery.com>
28580 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
28583 2011-01-06 Jakub Jelinek <jakub@redhat.com>
28586 * c-convert.c (convert): When converting a complex expression
28587 other than COMPLEX_EXPR to a different complex type, ensure
28588 c_save_expr is called instead of save_expr, unless in_late_binary_op.
28589 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
28590 when converting COMPLEX_TYPE.
28592 2011-01-06 Ira Rosen <irar@il.ibm.com>
28594 PR tree-optimization/47139
28595 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
28596 only the last reduction value is used outside the loop. Update
28599 2011-01-05 Joseph Myers <joseph@codesourcery.com>
28601 * config/rtems.opt: New.
28602 * config.gcc (*-*-rtems*): Use rtems.opt.
28604 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
28606 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
28607 processors do not support 3DNow instructions.
28609 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28611 * config/spu/spu.c (spu_option_override): Set parameter
28612 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
28614 2011-01-05 Jan Hubicka <jh@suse.cz>
28616 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
28617 at the command line.
28619 2011-01-05 Martin Jambor <mjambor@suse.cz>
28622 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
28623 deltas on streamed outgoing edges.
28624 (output_node_opt_summary): Output info for outgoing edges only when
28625 the node is in new parameter set.
28626 (output_cgraph_opt_summary): New parameter set, passed to the two
28627 aforementioned functions. Update its forward declaration and its
28630 2011-01-05 Tom Tromey <tromey@redhat.com>
28632 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
28633 operator to c_finish_omp_atomic.
28634 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
28635 (build_unary_op): Update.
28636 (build_modify_expr): Update.
28637 (build_asm_expr): Update.
28639 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28641 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
28642 newly inserted insns.
28643 (pad_bb): Likewise.
28644 (spu_emit_branch_hint): Likewise.
28645 (insert_hbrp_for_ilb_runout): Likewise.
28646 (spu_machine_dependent_reorg): Call df_finish_pass after
28647 schedule_insns returns.
28649 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28651 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
28653 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
28655 PR tree-optimization/47005
28656 * tree-sra.c (struct access): Add 'non_addressable' bit.
28657 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
28658 (decide_one_param_reduction): Return 0 if the parameter is passed by
28659 reference and one of the accesses in the group is non_addressable.
28661 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
28663 PR tree-optimization/47056
28664 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
28665 (mark_load): Likewise. Handle FUNCTION_DECL specially.
28666 (mark_store): Likewise. Pass STMT to ipa_record_reference.
28668 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
28670 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
28671 initializer. Skip view conversions from aggregate types.
28673 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
28676 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
28678 2011-01-04 Philipp Thomas <pth@suse.de>
28680 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
28683 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28685 * function.c (thread_prologue_and_epilogue_insns): Do not crash
28686 on empty epilogue sequences.
28688 2011-01-04 Joseph Myers <joseph@codesourcery.com>
28690 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
28691 non-static): New Driver options.
28693 2011-01-04 Jie Zhang <jie@codesourcery.com>
28696 * gcc.c (default_compilers[]): Set combinable field to 0
28697 for all assembly languages.
28699 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
28701 * config/mips/loongson3a.md: New file.
28702 * config/mips/mips.md: Include loongson3a.md.
28703 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
28706 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
28708 PR middle-end/47017
28709 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
28710 instead of convert_memory_address_addr_space on the base expression.
28712 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28714 * config/spu/spu.c (spu_option_override): Update error text
28715 for bad -march= / -mtune= values.
28717 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28719 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
28720 if branch-hint optimization will be performed.
28722 2011-01-03 Jakub Jelinek <jakub@redhat.com>
28724 PR tree-optimization/47148
28725 * ipa-split.c (split_function): Convert arguments to
28726 DECL_ARG_TYPE if possible.
28728 PR tree-optimization/47155
28729 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
28730 when computing uns.
28732 PR rtl-optimization/47157
28733 * combine.c (try_combine): If undobuf.other_insn becomes
28734 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
28735 and set *new_direct_jump_p too.
28737 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
28739 PR tree-optimization/47021
28740 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
28742 2011-01-03 Jakub Jelinek <jakub@redhat.com>
28744 * gcc.c (process_command): Update copyright notice dates.
28745 * gcov.c (print_version): Likewise.
28746 * gcov-dump.c (print_version): Likewise.
28747 * mips-tfile.c (main): Likewise.
28748 * mips-tdump.c (main): Likewise.
28750 2011-01-03 Martin Jambor <mjambor@suse.cz>
28752 PR tree-optimization/46801
28753 * tree-sra.c (type_internals_preclude_sra_p): Check whether
28754 aggregate fields start at byte boundary instead of the bit-field flag.
28756 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
28759 * gcc.c (main): Revert revision 168407.
28761 2011-01-03 Martin Jambor <mjambor@suse.cz>
28763 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
28765 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28767 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
28768 vector optab to expand vector/scalar shift, update gimple to vector.
28770 2011-01-03 Martin Jambor <mjambor@suse.cz>
28772 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
28775 2011-01-03 Martin Jambor <mjambor@suse.cz>
28777 PR tree-optimization/46984
28778 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
28780 (cgraph_create_indirect_edge): Fixed line length.
28781 (cgraph_indirect_call_info): Declare.
28782 (cgraph_make_edge_direct) Update declaration.
28783 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
28784 (cgraph_create_indirect_edge): Use it.
28785 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
28787 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
28788 the new thunk_delta representation.
28789 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
28791 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
28792 (ipa_read_indirect_edge_info): Likewise.
28793 * lto-cgraph.c (output_edge_opt_summary): New function.
28794 (output_node_opt_summary): Call it on all outgoing edges.
28795 (input_edge_opt_summary): New function.
28796 (input_node_opt_summary): Call it on all outgoing edges.
28798 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
28801 * gcc.c (main): Don't check have_o when settting combine_inputs.
28803 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
28805 * regrename.c: Add general comment describing the pass.
28806 (struct du_head): Remove 'length' field.
28807 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
28808 (regrename_optimize): Do not sort chains. Rework comments, add others.
28809 Force renaming to the preferred class (if any) in the first pass and do
28810 not consider registers that belong to it in the second pass.
28811 (create_new_chain): Do not set 'length' field.
28812 (scan_rtx_reg): Likewise.
28814 2011-01-02 Jakub Jelinek <jakub@redhat.com>
28816 PR tree-optimization/47140
28817 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
28818 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
28819 to bit_value_binop.
28821 PR rtl-optimization/47028
28822 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
28823 parm_birth_insn instead of at the beginning of first bb.
28825 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
28827 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
28828 Remove the word "see" before "@pxref".
28829 * doc/rtl.texi: Remove the word "see" before "@pxref".
28831 2011-01-01 Jan Hubicka <jh@suse.cz>
28833 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
28836 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
28839 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
28842 Copyright (C) 2011 Free Software Foundation, Inc.
28844 Copying and distribution of this file, with or without modification,
28845 are permitted in any medium without royalty provided the copyright
28846 notice and this notice are preserved.