1 2011-09-20 Terry Guo <terry.guo@arm.com>
3 * config/arm/arm-arches.def: Add armv6s-m.
4 * config/arm/arm-tables.opt: Regenerate.
6 2011-09-20 Wei Guozhi <carrot@google.com>
8 PR rtl-optimization/49452
9 * postreload.c (reload_combine): Invalidate use information when across
12 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
14 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
15 Remove maintenance overhead.
16 (haifa_sched_init, sched_finish): Update.
18 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
20 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
21 to calculate unit, prefix_rep and prefix_data16 attributes.
22 (*mov<mode>_internal): Ditto for unit attribute.
23 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
24 (*movv2sf_internal): Ditto.
25 * config/i386/sse.md (VI1248_256): Remove mode iterator.
26 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
27 (*avx2_eq<mode>3): Ditto.
28 (avx2_gt<mode>3): Ditto.
30 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
32 * config/i386/i386.md (maxmin): New code iterator.
33 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
34 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
36 (*avx2_<maxmin:code><mode>3): Macroize isn from
37 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
39 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
40 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
43 2011-09-19 Alan Modra <amodra@gmail.com>
44 Michael Meissner <meissner@linux.vnet.ibm.com>
47 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
48 split the load of the indirect function's TOC from the call to
49 prevent the compiler from moving the load of the new TOC above
50 code that references the current function's TOC.
51 (call_indirect_aix<ptrsize>_internal): Ditto.
52 (call_indirect_aix<ptrsize>_nor11): Ditto.
53 (call_indirect_aix<ptrsize>_internal2): Ditto.
54 (call_value_indirect_aix<ptrsize>): Ditto.
55 (call_value_indirect_aix<ptrsize>_internal): Ditto.
56 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
57 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
59 2011-09-19 Jakub Jelinek <jakub@redhat.com>
61 * config/i386/sse.md (*sse4_1_extractps): Change into
62 define_insn_and_split, add =x 0 n and =x x n alternatives
63 and split them after reload.
65 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
67 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
69 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
71 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
73 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
75 PR tree-optimization/50413
76 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
77 a basic block if one of its data-refs can't be analyzed.
79 2011-09-19 Paul Brook <paul@codesourcery.com>
81 * config/arm/predicates.md (shift_amount_operand): Check constant
82 shift count is in range.
83 (const_shift_operand): Remove.
85 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
86 Iain Sandoe <developer@sandoe-acoustics.co.uk>
89 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
90 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
92 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
94 * config/i386/bmiintrin.h: Remove tmp.
95 * config/i386/tbmintrin.h: Likewise.
97 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
99 PR tree-optimization/50414
100 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
103 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
105 PR tree-optimization/50412
106 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
107 acceses that require epilogue loop if vectorizing outer loop.
109 2011-09-17 David S. Miller <davem@davemloft.net>
111 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
112 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
114 (define_attr type): New type 'edge'.
115 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
116 edge32l_vis): New patterns.
117 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
118 * config/sparc/ultra3.md: Likewise.
119 * config/sparc/niagara.md: Likewise.
120 * config/sparc/niagara2.md: Likewise.
121 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
122 builtins for VIS edge instructions.
123 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
124 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
126 (__v8qi, __v4qi): Make unsigned.
127 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
128 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
129 __vis_fpack32): Fix types.
130 * doc/extend.texi: Document new 'edge' VIS intrinsics.
132 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
134 (niagara3_costs): New.
135 (sparc_option_override): Use it.
136 * gcc/config/sparc/niagara2.md: Adjust with more accurate
137 Niagara-3 reservations.
139 2011-09-17 Jakub Jelinek <jakub@redhat.com>
141 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
142 (sse2_avx, sseinsnmode): Add V2TI.
143 (REDUC_SMINMAX_MODE): New mode iterator.
144 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
145 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
146 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
147 (sse2_lshrv1ti3): Rename to...
148 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
149 iterator. Move before umaxmin expanders.
150 * config/i386/i386.h (VALID_AVX256_REG_MODE,
151 SSE_REG_MODE_P): Accept V2TImode.
152 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
153 V16HImode, V8SImode and V4DImode.
155 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
157 (ix86_build_signbit_mask): Likewise.
158 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
159 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
160 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
161 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
162 (<code><mode>3) ... this.
163 (avx2_<code><mode>3 smaxmin expand): Rename to...
164 (<code><mode>3) ... this.
165 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
166 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
167 VI8_AVX2 mode iterator.
168 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
169 VI8_AVX2 mode iterator.
170 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
173 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
175 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
178 2011-09-16 David S. Miller <davem@davemloft.net>
180 * config/sparc/visintrin.h: New file.
181 * config.gcc: Add it to extra_headers on sparc.
183 2011-09-16 Jakub Jelinek <jakub@redhat.com>
185 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
186 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
187 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
188 reduc_smin_v4sf): Adjust callers.
189 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
192 * config/i386/sse.md (vec_extract_hi_<mode>,
193 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
194 vextracti128 instead of vextractf128 for -mavx2 and
195 integer vectors. For V4DFmode fix up mode attribute.
196 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
197 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
198 instead of V8SF mode attribute.
199 (avx2_extracti128): Change into define_expand.
200 * config/i386/i386.c (ix86_expand_vector_extract): Handle
201 32-byte vector modes if TARGET_AVX.
203 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
205 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
206 (umulqi3_highpart, smulqi3_highpart): Ditto.
207 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
208 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
209 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
211 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
214 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
215 (*maddqi4, *maddqi4.const): New insns.
216 (*msubqi4, *msubqi4.const): New insns.
217 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
218 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
219 HImode by 1 in the case of multiplying with a CONST_INT.
220 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
222 2011-09-15 Jan Hubicka <jh@suse.cz>
225 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
226 error_mark_node in the DECL_INITIAL of vtable.
228 2011-09-15 Diego Novillo <dnovillo@google.com>
230 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
231 @SYSROOT_CFLAGS_FOR_TARGET@.
232 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
233 * configure: Regenerate.
234 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
235 Remove setting of GCC_UNDER_TEST.
237 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
239 * config/i386/i386.c (output_fp_compare): Return %v prefixed
240 instruction mnemonics for TARGET_AVX.
242 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
243 "type" attribute calculation.
244 (*movdf_internal): Ditto.
245 (*movsf_internal): Ditto.
247 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
249 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
251 2011-09-15 Jason Merrill <jason@redhat.com>
254 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
256 2011-09-15 Jan Hubicka <jh@suse.cz>
258 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
259 simplify obviously true clauses.
260 (and_predicates, or_predicates): Add conditions parameter.
261 (inline_duplication_hoook): Update.
262 (mark_modified): New function.
263 (unmodified_parm): New function.
264 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
265 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
267 (estimate_function_body_sizes): Update.
268 (remap_predicate): Update.
270 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
272 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
273 read-after-read dependencies in basic block SLP.
275 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
277 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
280 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
282 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
285 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
287 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
290 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
292 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
294 * config/rs6000/constraints.md: Likewise.
296 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
298 * config/microblaze/microblaze.md: Use match_test rather than
299 eq/ne symbol_ref throughout file.
301 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
303 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
306 2011-09-14 Tom de Vries <tom@codesourcery.com>
309 * explow.c (emit_stack_restore): Set crtl->need_drap if
310 stack_restore is emitted.
312 2011-09-14 Julian Brown <julian@codesourcery.com>
314 * config/arm/arm.c (arm_override_options): Add unaligned_access
316 (arm_file_start): Emit attribute for unaligned access as appropriate.
317 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
318 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
319 (insv, extzv): Add unaligned-access support.
320 (extv): Change to expander. Likewise.
321 (extzv_t1, extv_regsi): Add helpers.
322 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
323 (unaligned_storesi, unaligned_storehi): New.
324 (*extv_reg): New (previous extv implementation).
325 * config/arm/arm.opt (munaligned_access): Add option.
326 * config/arm/constraints.md (Uw): New constraint.
327 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
328 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
329 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
330 volatile accesses when -fstrict-volatile-bitfields is in effect.
331 (extract_bit_field_1): Likewise.
333 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
335 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
336 a scalar integer before applying integer-only optimisations to
339 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
341 * config/mips/mips.c (mips_expand_epilogue): Generate a
342 simple_return only if the return address is in r31.
344 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
346 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
347 NULL for a jump that is a cc0 insn, pick the previous insn for
350 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
352 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
355 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
357 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
360 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
362 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
363 symbol_ref throughout file.
365 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
367 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
370 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
372 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
375 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
377 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
379 * config/arm/neon.md: Likewise.
380 * config/arm/vfp.md: Likewise.
381 * config/arm/thumb2.md: Likewise.
382 * config/arm/cortex-m4.md: Likewise.
384 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
386 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
387 define_insn patterns for combine.
389 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
391 * reorg.c: Always define make_return_insns.
393 2011-09-13 Jan Hubicka <jh@suse.cz>
396 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
398 2011-09-13 Jan Hubicka <jh@suse.cz>
401 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
403 2011-09-13 Paul Brook <paul@codesourcery.com>
405 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
406 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
407 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
408 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
409 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
410 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
411 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
412 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
413 enabling unwind tables.
414 (c6x_debug_unwind_info): New function.
415 (TARGET_ARM_EABI_UNWINDER): Define.
416 (TARGET_DEBUG_UNWIND_INFO): Define.
417 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
418 (TARGET_EXTRA_CFI_SECTION): Remove.
419 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
420 * ginclude/unwind-arm-common.h: New file.
422 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
425 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
426 * config/avr/avr.md: (extend_s): New code attribute.
427 (mul_r_d): New code attribute.
428 (*maddqihi4, *umaddqihi4): New insns.
429 (*msubqihi4, *umsubqihi4): New insns.
430 (*usmaddqihi4, *sumaddqihi4): New insns.
431 (*usmsubqihi4, *susubdqihi4): New insns.
432 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
433 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
434 (*umsubqihi4.uconst.ashift): New insn-and-split.
435 (*msubqihi4.sconst.ashift): New insn-and-split.
436 (*sumaddqihi4.uconst): New insn-and-split.
437 (*sumsubqihi4.uconst): New insn-and-split.
438 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
439 PLUS:HI and MINUS:HI.
441 2011-09-13 Revital Eres <revital.eres@linaro.org>
443 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
444 (optimize_sc): Adjust call to remove_node_from_ps.
445 (sms_schedule): Add print info.
447 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
449 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
452 2011-09-12 Jakub Jelinek <jakub@redhat.com>
455 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
456 NOTE_INSN_CFI notes, with the exception of
457 NOTE_INSN_SWITCH_TEXT_SECTIONS.
459 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
460 Richard Sandiford <rdsandiford@googlemail.com>
462 * config/mips/mips.c (mips_epilogue): New structure.
463 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
465 (mips_epilogue_emit_cfa_restores): New function.
466 (mips_epilogue_set_cfa): Likewise.
467 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
468 the current CFA register from the stack, redefine the CFA in terms
469 of the stack pointer.
470 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
471 to the epilogue instructions.
473 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
475 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
477 (mips16e_build_save_restore): Update accordingly.
479 2011-09-12 Jakub Jelinek <jakub@redhat.com>
481 PR rtl-optimization/50212
482 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
483 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
486 * calls.c (load_register_parameters): Use use_reg_mode instead
487 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
489 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
490 for stack CALL_INSN_FUNCTION_USAGE uses.
491 * expr.h (use_reg_mode): New prototype.
492 (use_reg): Changed into inline around use_reg_mode.
493 * expr.c (use_reg): Renamed to...
494 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
495 mode to that mode instead of VOIDmode.
496 * var-tracking.c (prepare_call_arguments): Don't track parameters
497 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
498 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
501 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
504 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
505 (progmem_section): New Variable.
506 (avr_asm_init_sections): Initialize it.
507 (TARGET_ASM_SELECT_SECTION): Define to...
508 (avr_asm_select_section): ... this new Function.
509 (avr_replace_prefix): New Function.
510 (avr_asm_function_rodata_section): Use it.
511 (avr_insert_attributes): Don't add section attribute for PROGMEM.
512 (avr_section_type_flags): Use avr_progmem_p instead of section
513 name to detect if object is in PROGMEM.
514 (avr_asm_named_section): Set section name prefix for objects in
517 2011-09-12 Jakub Jelinek <jakub@redhat.com>
520 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
521 sprintf format string.
523 2011-09-12 Richard Guenther <rguenther@suse.de>
525 PR tree-optimization/50343
526 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
527 that the reduction is over an SSA name before checking its definition.
529 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
531 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
534 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
536 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
538 * config/mips/sb1.md: Likewise.
539 * config/mips/predicates.md: Replace (match_test "!...")
540 with (not (match_test "..."))
541 * config/mips/constraints.md: Likewise.
543 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
545 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
546 * config/arm/arm-tables.opt: Regenerate.
547 * config/arm/arm-tune.md: Regenerate.
548 * config/arm/arm.c (arm_file_start): Output .arch directive when
549 user passes -mcpu=generic-*.
550 (arm_issue_rate): Add genericv7a support.
551 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
552 (ASM_CPU_SPEC): New define.
553 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
554 * config/arm/semi.h (ASM_SPEC): Likewise.
555 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
556 and -mtune=generic-*.
558 2011-09-09 Richard Guenther <rguenther@suse.de>
560 PR tree-optimization/50328
561 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
562 constant or default-def operand.
564 2011-09-09 Richard Guenther <rguenther@suse.de>
566 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
569 2011-09-09 Richard Guenther <rguenther@suse.de>
571 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
572 instead of a statement.
573 * gimple-fold.c (fold_stmt_inplace): Likewise.
574 * sese.c (graphite_copy_stmts_from_block): Adjust.
575 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
576 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
578 (forward_propagate_addr_into_variable_array_index): Likewise.
579 (forward_propagate_addr_expr_1): adjust.
580 (associate_plusminus): Likewise.
581 (ssa_forward_propagate_and_combine): Likewise.
582 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
583 (execute_cse_reciprocals): Likewise.
584 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
586 2011-09-09 Nick Clifton <nickc@redhat.com>
588 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
589 Return a positive value to indicate that the bits at the
590 bottom of the register should be cleared.
592 2011-09-09 Richard Guenther <rguenther@suse.de>
594 * tree-ssa-operands.c (swap_tree_operands): Always adjust
595 existing operand positions.
597 2011-09-09 Richard Guenther <rguenther@suse.de>
600 * tree-data-ref.c (split_constant_offset): Do not try to handle
603 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
605 PR tree-optimization/50318
606 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
607 typo in use of mult_rhs1 and mult_rhs2.
609 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
611 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
612 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
614 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
616 * config/arm/arm.md (push_multi): Emit predicates.
617 (push_fp_multi): Likewise.
618 * config/arm/arm.c (vfp_output_fstmd): Likewise.
620 2011-09-08 Dodji Seketeli <dodji@redhat.com>
622 PR c++/33255 - Support -Wunused-local-typedefs warning
623 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
624 (pushdecl): Use the new record_locally_defined_typedef.
625 (store_parm_decls): Allocate cfun->language.
626 (finish_function): Use the new maybe_warn_unused_local_typedefs,
627 and free cfun->language.
628 (c_push_function_context): Allocate cfun->language here only if needed.
629 (c_pop_function_context): Likewise, mark cfun->language
630 for collection only when it should be done.
631 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
632 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
633 maybe_record_local_typedef_use.
634 * doc/invoke.texi: Update documentation for
635 -Wunused-local-typedefs.
637 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
639 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
640 (ix86_avoid_lea_for_add): Likewise.
641 (ix86_avoid_lea_for_addr): Likewise.
642 (ix86_split_lea_for_addr): Likewise.
644 * config/i386/i386.c (LEA_MAX_STALL): New.
645 (increase_distance): Likewise.
646 (insn_defines_reg): Likewise.
647 (insn_uses_reg_mem): Likewise.
648 (distance_non_agu_define_in_bb): Likewise.
649 (distance_agu_use_in_bb): Likewise.
650 (ix86_lea_outperforms): Likewise.
651 (ix86_ok_to_clobber_flags): Likewise.
652 (ix86_avoid_lea_for_add): Likewise.
653 (ix86_avoid_lea_for_addr): Likewise.
654 (ix86_split_lea_for_addr): Likewise.
655 (distance_non_agu_define): Search in pred BBs added.
656 (distance_agu_use): Search in succ BBs added.
657 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
658 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
659 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
661 * config/i386/i386.md: Split added to transform non destructive
662 add into move and add.
663 (lea_1): transformed into insn_and_split to avoid AGU stalls.
664 (lea<mode>_2): Likewise.
666 2011-09-08 Martin Jambor <mjambor@suse.cz>
668 PR tree-optimization/50287
669 * ipa-split.c (split_function): Do not create SSA names for
670 non-gimple-registers.
672 2011-09-08 Richard Guenther <rguenther@suse.de>
674 PR tree-optimization/19831
675 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
676 skip builtins with vdefs that do not really store something.
677 (propagate_necessity): For calls to free that we can associate
678 with an allocation function do not mark the freed pointer
679 definition necessary.
680 (eliminate_unnecessary_stmts): Remove a call to free if
681 the associated call to an allocation function is not necessary.
683 2011-09-08 Richard Guenther <rguenther@suse.de>
685 PR tree-optimization/19831
686 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
687 allocation functions as necessary.
689 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
691 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
693 (darwin_default_min_version): Amended to provide defaults
694 for the cross directory case.
695 (darwin_driver_init): call darwin_default_min_version unconditionally.
696 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
697 * config/darwin9.h: Likewise.
698 * config/darwin10.h: Likewise.
699 * config/rs6000/darwin7.h: Likewise.
701 2011-09-08 Jakub Jelinek <jakub@redhat.com>
704 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
705 code early if TARGET_AVX.
706 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
708 2011-09-07 Jakub Jelinek <jakub@redhat.com>
710 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
714 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
715 "mode" attribute computation.
717 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
719 * regrename.c (struct du_head): Make nregs signed.
720 (closed_chains): Remove.
721 (create_new_chain): Return the new chain.
722 (chain_from_id): New static function.
723 (dump_def_use_chain): Change argument to be an int, indicating
724 the first ID to print. All callers changed.
725 (merge_overlapping_regs): Use chain_from_id. Assert that
726 chains don't conflict with themselves.
727 (rename_chains): Take no argument. Iterate over id_to_chain
728 rather to find chains to rename. Clear tick before the main loop.
729 (struct incoming_reg_info): New struct.
730 (struct bb_rename_info): New struct.
731 (init_rename_info, set_incoming_from_chain, merge_chains): New
733 (regrename_analyze): New static function, broken out of
734 regrename_optimize. Record and make use of open chain information
735 at basic block boundaries, and merge chains where possible.
736 (scan_rtx_reg): Make this_nregs signed. Don't update
738 (build_def_use): Return a bool to indicate success. All callers
739 changed. Don't initialize global data here.
740 (regrename_optimize): Move most code out of here into
742 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
743 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
744 static inline functions.
745 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
747 * bb-reorder.c (insert_section_boundary_note): Don't check
748 optimize_function_for_speed_p.
749 (gate_handle_partition_blocks): Do it here instead.
750 (gate_handle_reorder_blocks): Move preliminary checks here ...
751 (rest_of_handle_reorder_blocks): ... from here.
753 2011-09-07 Martin Jambor <mjambor@suse.cz>
756 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
757 function index bounds.
758 (perhaps_add_new_callers): Likewise.
760 2011-09-07 Martin Jambor <mjambor@suse.cz>
762 PR tree-optimization/49911
763 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
764 enumerations to the corresponding plain integer type.
766 2011-09-07 Richard Guenther <rguenther@suse.de>
768 PR tree-optimization/50319
769 * tree-if-conv.c (set_bb_predicate): Assert we only set
770 canonical predicates.
771 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
772 around canonical predicates.
773 (predicate_bbs): Do not re-gimplify already canonical
774 predicates. Properly unshare them though.
775 (find_phi_replacement_condition): Simplify.
777 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
780 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
781 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
782 reusing the old code from get_arm_condition_code. Return ARM_NV
783 for invalid comparison codes.
784 (get_arm_condition_code): Redefine in terms of
785 maybe_get_arm_condition_code.
786 * config/arm/predicates.md (arm_comparison_operator): Use
787 maybe_get_arm_condition_code.
789 2011-09-07 Richard Guenther <rguenther@suse.de>
791 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
792 Canonicalize negated predicates by swapping edges.
793 (forward_propagate_into_cond): Likewise.
795 2011-09-07 Richard Guenther <rguenther@suse.de>
797 PR tree-optimization/50213
798 * tree-flow.h (simple_iv_increment_p): Declare.
799 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
801 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
802 not propagate simple IV counter increments.
804 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
805 Iain Sandoe <iains@gcc.gnu.org>
807 * config/rs6000/rs6000.c (compute_save_world_info): Test
808 cfun->has_nonlocal_label to determine if the out-of-line save
809 world call may be used.
811 2011-09-07 Nick Clifton <nickc@redhat.com>
813 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
814 label on the parallel part of the insn.
816 2011-09-07 Jakub Jelinek <jakub@redhat.com>
819 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
820 avoid_constant_pool_reference first instead of last.
822 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
824 * doc/configfiles.texi (Configuration Files): Update documentation
825 about tm_p.h and remove FIXME comment.
827 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
829 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
830 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
832 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
834 * config/darwin10.h Remove duplicate LIB_SPEC.
836 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
839 * target.def (reassociation_width): New hook.
841 * doc/tm.texi.in (reassociation_width): Likewise.
843 * doc/tm.texi (reassociation_width): Likewise.
845 * doc/invoke.texi (tree-reassoc-width): New param documented.
847 * hooks.h (hook_int_uint_mode_1): New default hook.
849 * hooks.c (hook_int_uint_mode_1): Likewise.
851 * config/i386/i386.h (ix86_tune_indices): Add
852 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
854 (TARGET_REASSOC_INT_TO_PARALLEL): New.
855 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
857 * config/i386/i386.c (initial_ix86_tune_features): Add
858 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
860 (ix86_reassociation_width): New function.
862 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
864 * tree-ssa-reassoc.c (get_required_cycles): New function.
865 (get_reassociation_width): Likewise.
866 (swap_ops_for_binary_stmt): Likewise.
867 (rewrite_expr_tree_parallel): Likewise.
869 (rewrite_expr_tree): Refactored. Part of code moved into
870 swap_ops_for_binary_stmt.
872 (reassociate_bb): Now checks reassociation width to be used and
873 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
875 2011-09-06 Richard Guenther <rguenther@suse.de>
877 PR tree-optimization/47025
878 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
880 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
882 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
883 definitely points to.
884 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
885 BUILT_IN_VA_START doesn't let its va_list argument escape.
886 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
887 not make any previous stores necessary.
889 2011-09-06 Martin Jambor <mjambor@suse.cz>
891 * ipa-inline.h (struct inline_summary): Move versionable flag...
892 * cgraph.h (struct cgraph_local_info): ...here
893 * ipa-cp.c (determine_versionability): Use the new versionable flag.
894 (determine_versionability): Likewise.
895 (ipcp_versionable_function_p): Likewise.
896 (ipcp_generate_summary): Likewise.
897 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
899 (compute_inline_parameters): Do not clear the versionable flag.
900 (inline_read_section): Do not stream the versionable flag.
901 (inline_write_summary): Likewise.
902 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
903 (input_overwrite_node): Likewise.
905 2011-09-06 Richard Guenther <rguenther@suse.de>
907 PR tree-optimization/48149
908 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
909 (vn_valueize): Move earlier.
910 (valueize_expr): Use vn_valueize.
911 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
913 (simplify_unary_expression): Simplify.
915 2011-09-06 Richard Guenther <rguenther@suse.de>
917 PR tree-optimization/48317
918 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
920 (sizeof_vn_nary_op): New inline function.
921 (vn_nary_op_lookup_pieces): Adjust.
922 (vn_nary_op_insert_pieces): Likewise.
923 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
924 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
925 any number of operands.
926 (vn_nary_length_from_stmt): New function.
927 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
928 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
930 (vn_nary_op_lookup): Likewise.
931 (vn_nary_op_lookup_stmt): Likewise.
932 (vn_nary_op_insert_into): Likewise.
933 (vn_nary_op_insert_stmt): Likewise.
934 (visit_use): Handle CONSTRUCTOR as nary.
935 * tree-ssa-pre.c (phi_translate_1): Adjust.
936 (create_expression_by_pieces): Likewise.
937 (compute_avail): Likewise.
939 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
941 * config/arm/arm.c (arm_preferred_simd_mode): Check
942 TARGET_NEON_VECTORIZE_DOUBLE instead of
943 TARGET_NEON_VECTORIZE_QUAD.
944 (arm_autovectorize_vector_sizes): Likewise.
945 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
946 mask of mvectorize-with-neon-double. Add RejectNegative.
947 (mvectorize-with-neon-double): New.
949 2011-09-06 Richard Guenther <rguenther@suse.de>
951 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
953 2011-09-06 Tom de Vries <tom@codesourcery.com>
955 * recog.c (asm_labels_ok): New function.
956 (check_asm_operands): Use asm_labels_ok.
958 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
961 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
962 (PMODE_INSN): New macro.
963 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
964 (mips_got_load, mips_expand_synci_loop): Likewise.
965 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
967 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
968 copygp_mips16 patterns.
969 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
970 and use_cprestore patterns.
971 (mips_override_options): Check for incompatible -mabi and -mlong
973 * config/mips/mips.md (unspec_got<mode>): Rename to...
974 (unspec_got_<mode>): ...this.
975 (copygp_mips16): Use the Pmode iterator.
976 (potential_cprestore, cprestore, use_cprestore): Likewise.
977 (clear_cache, indirect_jump): Use PMODE_INSN.
978 (indirect_jump<mode>): Rename to...
979 (indirect_jump_<mode>): ...this.
980 (tablejump): Use PMODE_INSN.
981 (tablejump<mode>): Rename to...
982 (tablejump_<mode>): ...this.
983 (exception_receiver): Handle restore_gp_si and restore_gp_di.
984 (restore_gp): Use the Pmode iterator.
985 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
988 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
990 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
991 Fix the type of the BIT_AND_EXPR.
993 2011-09-05 David S. Miller <davem@davemloft.net>
995 * config.host: Add driver-sparc.o and sparc/x-sparc on
996 native sparc*-*-linux* builds.
997 * config/sparc/driver-sparc.c: Correct Linux strings.
998 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
999 * config/sparc/linux64.h: Likewise.
1000 * doc/invoke.texi: Document that Linux also supports
1001 -mcpu=native and -mtune=native on sparc.
1003 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
1004 PROCESSOR_NIAGARA4): New.
1005 * config/sparc/sparc.opt: Handle new processor types.
1006 * config/sparc/sparc.md: Add to "cpu" attribute.
1007 * config/sparc/sparc.h (TARGET_CPU_niagara3,
1008 TARGET_CPU_niagara4): New, treat as niagara2.
1009 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
1010 * config/sparc/sol2.h: Likewise.
1011 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
1012 * config/sparc/sparc.c (sparc_option_override): Add
1013 niagara3 and niagara4 handling.
1014 (sparc32_initialize_trampoline): Likewise.
1015 (sparc64_initialize_trampoline): Likewise.
1016 (sparc_use_sched_lookahead): Likewise.
1017 (sparc_issue_rate): Likewise.
1018 (sparc_register_move_cost): Likewise.
1019 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
1020 and niagara4 as appropriate.
1021 * doc/invoke.texi: Document new processor types.
1022 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
1023 and --with-tune options.
1025 * config/sparc/sol2-64.h: Move ...
1026 * config/sparc/default-64.h: ... to here. Update comment.
1027 * config.gcc: Update Solaris sparc to use default-64.h, also
1028 prefix this header into the list on sparc64-*-linux.
1029 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
1030 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
1033 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
1036 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
1037 that contain global register variable.
1039 2011-09-05 Richard Guenther <rguenther@suse.de>
1041 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
1043 2011-09-05 Richard Guenther <rguenther@suse.de>
1045 * stor-layout.c (layout_type): Use size_binop for array size
1048 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
1050 * config/avr/avr.h (progmem_section): Remove Declaration.
1051 * config/avr/avr.c (progmem_section): Make static and rename to
1052 progmem_swtable_section.
1053 (avr_output_addr_vec_elt): No need to switch sections.
1054 (avr_asm_init_sections): Use output_section_asm_op as section
1055 callback for progmem_swtable_section.
1056 (avr_output_progmem_section_asm_op): Remove Function.
1057 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
1058 (avr_asm_function_rodata_section): New static Function.
1059 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
1060 alignment 2**1 for jump tables.
1062 2011-09-04 Jan Hubicka <jh@suse.cz>
1064 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
1065 parameter is SSA name.
1067 2011-09-04 Richard Guenther <rguenther@suse.de>
1070 2011-08-31 Richard Guenther <rguenther@suse.de>
1072 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
1075 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
1078 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
1080 2011-09-04 Jakub Jelinek <jakub@redhat.com>
1081 Ira Rosen <ira.rosen@linaro.org>
1083 PR tree-optimization/50208
1084 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
1085 argument. Check that def_stmt is inside the loop.
1086 (vect_recog_widen_mult_pattern): Update calls to
1087 vect_handle_widen_mult_by_cons.
1088 (vect_operation_fits_smaller_type): Check that def_stmt is
1091 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
1093 * tree-vectorizer.c (vect_print_dump_info): Print line
1094 number when dumping to a file.
1095 (vectorize_loops): Add new messages to dump file.
1097 2011-09-03 Martin Jambor <mjambor@suse.cz>
1099 * ipa-prop.h (ipa_jump_func_t): New typedef.
1100 (struct ipa_edge_args): Removed field argument_count, field
1101 jump_functions turned into a vector.
1102 (ipa_set_cs_argument_count): Removed.
1103 (ipa_get_cs_argument_count): Updated to work on vectors.
1104 (ipa_get_ith_jump_func): Likewise.
1105 * ipa-prop.c (ipa_count_arguments): Removed.
1106 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
1107 jump functions. Update caller.
1108 (compute_pass_through_member_ptrs): Likewise.
1109 (compute_cst_member_ptr_arguments): Likewise.
1110 (ipa_compute_jump_functions_for_edge): Get number of arguments from
1111 the statement, allocate vector.
1112 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
1113 (duplicate_ipa_jump_func_array): Removed.
1114 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
1115 (ipa_read_node_info): Allocate vector.
1117 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1120 * config/pa/pa.md (return): Define "return" insn pattern.
1121 (epilogue): Use it when no epilogue is needed.
1122 * config/pa/pa.c (pa_can_use_return_insn): New function.
1123 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
1125 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
1127 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
1128 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
1129 Force at least BITS_PER_UNIT alignment on the new variable.
1131 2011-09-02 Gary Funck <gary@intrepid.com>
1133 * opts.c (print_specific_help): Fix off-by-one compare in
1135 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
1136 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
1137 Increase by +5 to allow for more languages.
1138 * optc-gen.awk: Generate #if that ensures that the number of
1139 languages is within the implementation-defined limit.
1141 2011-09-02 Michael Matz <matz@suse.de>
1144 * ipa-split.c (split_function): Call add_referenced_var.
1146 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
1147 (cond_if_else_store_replacement_1): Ditto.
1148 * tree-ssa-pre.c (get_representative_for): Ditto.
1149 (create_expression_by_pieces): Ditto.
1150 (insert_into_preds_of_block): Ditto.
1151 * tree-sra.c (create_access_replacement): Ditto.
1152 (get_replaced_param_substitute): Ditto.
1154 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
1156 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
1158 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
1159 (l1w, s1w, l2w, s2w): Define in the main automaton.
1160 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
1162 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
1163 (c6x_unit_names): Add the new units.
1164 (c6x_unit_codes): New static array.
1165 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
1166 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
1167 UNIT_QID_SIDE_OFFSET): New macros.
1168 (RESERVATION_S2): Adjust value.
1169 (c6x_option_override): Compute c6x_unit_codes.
1170 (assign_reservations): Take the unit_mask of the last instruction
1171 into account. Detect floating point reservations by looking for
1172 the new units. Don't assign reservations if the field is already
1174 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
1175 (init_sched_state): Initialize it.
1176 (c6x_clear_sched_context): Free it.
1177 (insn_set_clock): Clear reservation.
1178 (prev_cycle_state): New static variable.
1179 (c6x_init_sched_context): Save it.
1180 (c6x_sched_init): Allocate space for it and clear it.
1181 (c6x_sched_dfa_pre_cycle_insn): New static function.
1182 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
1183 (c6x_variable_issue): Only record units in the unit_mask that
1184 were not set at the start of the cycle.
1185 (c6x_variable_issue): Compute and store the unit_mask from the
1187 (reorg_split_calls): Ensure the new information remains correct.
1188 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
1189 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
1190 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
1191 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
1192 Add special reservations.
1193 * config/c6x/c6x-sched.md: Regenerate.
1195 2011-09-02 Martin Jambor <mjambor@suse.cz>
1197 * ipa-prop.h (ipa_node_params): Removed fields
1198 called_with_var_arguments and node_versionable.
1199 (ipa_set_called_with_variable_arg): Removed.
1200 (ipa_is_called_with_var_arguments): Likewise.
1201 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
1202 (determine_versionability): Do not check for type attributes and va
1203 builtins. Record versionability into inline summary.
1204 (initialize_node_lattices): Do not check
1205 ipa_is_called_with_var_arguments.
1206 (propagate_constants_accross_call): Likewise, ignore arguments we do
1207 not have PARM_DECLs for, set variable flag for parameters that were
1209 (create_specialized_node): Dump info that we cannot change signature.
1210 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
1211 number of arguments.
1212 (ipa_make_edge_direct_to_target): Likewise.
1213 (ipa_update_after_lto_read): Likewise.
1214 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
1215 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
1218 2011-09-02 Richard Guenther <rguenther@suse.de>
1220 PR tree-optimization/27460
1222 * doc/md.texi (vcond): Document.
1223 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
1224 optab with two modes.
1225 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
1226 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
1227 (vcond_optab): Adjust.
1228 (vcondu_optab): Likewise.
1229 (expand_vec_cond_expr_p): Adjust prototype.
1230 * optabs.c (get_vcond_icode): Adjust.
1231 (expand_vec_cond_expr_p): Likewise.
1232 (expand_vec_cond_expr): Likewise.
1233 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
1235 (vectorizable_condition): Allow differing types for comparison
1237 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
1239 * config/i386/sse.md (vcond<mode>): Split to
1240 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
1241 vcond<V_128:mode><VI124_128:mode> and
1242 vcondu<V_128:mode><VI124_128:mode>.
1243 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
1244 (vconduv2di): Likewise.
1245 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
1246 (vcondu<mode>): Likewise.
1247 * config/ia64/vect.md (vcond<mode>): Likewise.
1248 (vcondu<mode>): Likewise.
1249 (vcondv2sf): Likewise.
1250 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
1251 * config/rs6000/paired.md (vcondv2sf): Likewise.
1252 * config/rs6000/vector.md (vcond<mode>): Likewise.
1253 (vcondu<mode>): Likewise.
1254 * config/spu/spu.md (vcond<mode>): Likewise.
1255 (vcondu<mode>): Likewise.
1257 2011-09-02 Richard Guenther <rguenther@suse.de>
1259 * pretty-print.h (pp_unsigned_wide_integer): New.
1260 * tree-pretty-print.c (dump_generic_node): Print unsigned
1261 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
1263 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
1266 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
1267 valid CONST_VECTOR operands.
1268 (rs6000_expand_vector_init): Likewise.
1270 2011-09-02 Martin Jambor <mjambor@suse.cz>
1272 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
1273 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
1274 BINFO_VTABLE. Parameter delta removed, all callers updated.
1275 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
1277 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
1279 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
1280 handling of thunk_delta.
1281 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
1282 (devirtualization_time_bonus): Do not handle thunk deltas.
1283 (ipcp_discover_new_direct_edges): Likewise.
1284 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1285 (try_make_edge_direct_simple_call): Likewise.
1286 (try_make_edge_direct_virtual_call): Likewise.
1287 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
1288 parameter set as unused.
1289 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
1290 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
1291 parameter set as unused.
1292 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
1293 (input_edge_opt_summary): Likewise.
1294 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
1295 BINFO_VIRTUALS at all.
1296 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
1298 2011-09-02 Richard Guenther <rguenther@suse.de>
1300 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
1301 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
1303 2011-08-31 Richard Guenther <rguenther@suse.de>
1305 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
1306 handling here, from ...
1307 (expand_expr_real_1): ... here.
1308 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
1310 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
1311 a GIMPLE_TERNARY_RHS.
1312 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
1313 and VEC_COND_EXPR here ...
1314 (verify_gimple_assign_single): ... not here.
1315 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
1316 * tree-object-size.c (cond_expr_object_size): Adjust.
1317 (collect_object_sizes_for): Likewise.
1318 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
1319 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
1320 (ssa_forward_propagate_and_combine): Adjust.
1321 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
1323 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
1324 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
1325 * tree-vect-stmt.c (vectorizable_condition): Likewise.
1326 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
1327 (extract_range_from_assignment): Likewise.
1329 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
1331 * config/i386/i386.md: Use (match_test ...) for attribute tests.
1332 * config/i386/mmx.md: Likewise.
1333 * config/i386/sse.md: Likewise.
1334 * config/i386/predicates.md (call_insn_operand): Use
1335 (not (match_test "...")) instead of (match_test "!...")
1336 * config/i386/constraints.md (w): Likewise.
1338 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
1340 * doc/md.texi: Describe the use of match_tests in attribute tests.
1341 * rtl.def (MATCH_TEST): Update commentary.
1342 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
1343 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
1345 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
1347 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
1348 (attr_string): Use copy_md_ptr_loc.
1350 2011-08-31 Martin Jambor <mjambor@suse.cz>
1353 * ipa-inline-analysis.c (compute_inline_parameters): Set
1354 can_change_signature of noes with typde attributes.
1355 * ipa-split.c (split_function): Do not skip any arguments if
1356 can_change_signature is set.
1358 2011-08-31 Martin Jambor <mjambor@suse.cz>
1360 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
1363 2011-08-31 Richard Guenther <rguenther@suse.de>
1365 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
1368 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
1370 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
1372 2011-08-31 Tom de Vries <tom@codesourcery.com>
1375 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
1376 * tree-ssa-ccp.c (params.h): Include.
1377 (fold_builtin_alloca_for_var): New function.
1378 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
1380 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
1382 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1385 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
1387 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
1390 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
1392 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
1395 2011-08-30 Richard Guenther <rguenther@suse.de>
1398 * gimple.h (maybe_fold_offset_to_address): Remove.
1399 (maybe_fold_offset_to_reference): Likewise.
1400 (maybe_fold_stmt_addition): Likewise.
1401 (may_propagate_address_into_dereference): Likewise.
1402 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
1404 * gimple-fold.c (canonicalize_constructor_val): Likewise.
1405 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
1407 (may_propagate_address_into_dereference): Remove.
1408 (maybe_fold_offset_to_array_ref): Likewise.
1409 (maybe_fold_offset_to_reference): Likewise.
1410 (maybe_fold_offset_to_address): Likewise.
1411 (maybe_fold_stmt_addition): Likewise.
1412 (fold_gimple_assign): Do not reconstruct array references but
1413 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
1415 (gimple_fold_stmt_to_constant_1): Likewise.
1416 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1417 * gimplify.c (gimplify_conversion): Likewise.
1418 (gimplify_expr): Likewise.
1420 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
1422 * config/i386/fmaintrin.h: New.
1423 * config.gcc: Add fmaintrin.h.
1424 * config/i386/i386.c
1425 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
1426 <IX86_BUILTIN_VFMADDSD3>: Likewise.
1427 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
1428 (*fmai_fmadd_<mode>): Likewise.
1429 (*fmai_fmsub_<mode>): Likewise.
1430 (*fmai_fnmadd_<mode>): Likewise.
1431 (*fmai_fnmsub_<mode>): Likewise.
1432 * config/i386/immintrin.h: Add fmaintrin.h.
1434 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
1436 * genautomata.c (NO_COMB_OPTION): New macro.
1437 (no_comb_flag): New static variable.
1438 (gen_automata_option): Handle NO_COMB_OPTION.
1439 (comb_vect_p): False if no_comb_flag.
1440 (add_vect): Move computation of min/max values. Return early if
1442 * doc/md.texi (automata_option): Document no-comb-vect.
1444 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
1445 "__x86.get_pc_thunk".
1447 * bb-reorder.c (insert_section_boundary_note): Only do it if
1448 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
1450 2011-08-30 Christian Bruel <christian.bruel@st.com>
1452 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
1455 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
1457 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
1458 to off. Document switch.
1459 * doc/invoke.texi (-msave-toc-indirect): Ditto.
1461 2011-08-29 Jakub Jelinek <jakub@redhat.com>
1463 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
1464 conditionals and comments inside macro arguments.
1466 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
1467 Richard Guenther <rguenther@suse.de>
1469 * tree.h (constant_boolean_node): Adjust prototype.
1470 * fold-const.c (fold_convert_loc): Move aggregate conversion
1472 (constant_boolean_node): Make value parameter boolean, add
1473 vector type handling.
1474 (fold_unary_loc): Use constant_boolean_node.
1475 (fold_binary_loc): Preserve types properly when folding
1476 COMPLEX_EXPR <__real x, __imag x>.
1477 * gimplify.c (gimplify_expr): Handle vector comparison.
1478 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
1480 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
1483 2011-08-29 Jakub Jelinek <jakub@redhat.com>
1486 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
1487 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
1488 (verify_rtl_sharing): Likewise and verify_rtx_sharing
1490 (unshare_all_rtl_in_chain): For CALL_INSNs
1491 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
1493 2011-08-29 Richard Guenther <rguenther@suse.de>
1495 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
1496 on the built ADDR_EXPR.
1498 2011-08-29 Jakub Jelinek <jakub@redhat.com>
1501 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
1502 before adding ENTRY_VALUE to val->locs.
1504 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
1507 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
1510 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
1512 * doc/rtl.texi (simple_return): Document.
1513 (parallel, PATTERN): Here too.
1514 * doc/md.texi (return): Mention it's allowed to expand to simple_return
1516 (simple_return): Document standard pattern.
1517 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
1518 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
1519 * reorg.c (function_return_label, function_simple_return_label):
1520 New static variables, replacing...
1521 (end_of_function_label): ... this.
1522 (simplejump_or_return_p): New static function.
1523 (optimize_skip, steal_delay_list_from_fallthrough,
1524 fill_slots_from_thread): Use it.
1525 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
1526 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
1527 (find_end_label): Take a new arg which is one of the two return
1528 rtxs. Depending on which, set either function_return_label or
1529 function_simple_return_label. All callers changed.
1530 (make_return_insns): Make both kinds.
1531 (dbr_schedule): Adjust for two kinds of end labels.
1532 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
1533 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
1534 (gen_expand, gen_split): Use ANY_RETURN_P.
1535 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
1536 * rtl.def (SIMPLE_RETURN): New code.
1537 * ifcvt.c (find_if_case_1): Be more careful about
1538 redirecting jumps to the EXIT_BLOCK.
1539 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
1540 returnjump_p_1): Handle SIMPLE_RETURNs.
1541 * print-rtl.c (print_rtx): Likewise.
1542 * rtl.c (copy_rtx): Likewise.
1543 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
1544 * combine.c (simplify_set): Likewise.
1545 * resource.c (find_dead_or_set_registers, mark_set_resources):
1547 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
1548 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
1549 (init_emit_regs): Initialize simple_return_rtx.
1550 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
1551 force_nonfallthru_and_redirect.
1552 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
1553 (GR_SIMPLE_RETURN): New enum value.
1554 (simple_return_rtx): New macro.
1555 * basic-block.h (force_nonfallthru_and_redirect): Adjust
1557 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
1558 argument. All callers changed. Be careful about what kinds of
1559 returnjumps to generate.
1560 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
1561 ix86_pad_short_function): Likewise.
1562 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
1564 * config/mips/mips.md (any_return): New code_iterator.
1565 (optab): Add cases for return and simple_return.
1566 (return): Expand to a simple_return.
1567 (simple_return): New pattern.
1568 (*<optab>, *<optab>_internal for any_return): New patterns.
1569 (return_internal): Remove.
1570 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
1571 a simple_return_internal.
1573 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
1575 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
1576 (vec_extract_lo_<mode>): Prevent both operands in memory.
1577 (vec_extract_lo_v16hi): Ditto.
1578 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
1580 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
1582 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
1583 (*sse2_mulv4si3): Ditto.
1585 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
1588 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
1591 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
1592 when all outputs are unused.
1593 (sse4_2_pcmpistr): Ditto.
1595 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
1597 * config/i386/i386.md (round<mode>2): New expander.
1598 * config/i386/i386.c (enum ix86_builtins): Add
1599 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
1600 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
1602 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
1603 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
1605 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
1608 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
1609 only when TARGET_C99_FUNCTIONS.
1610 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
1611 <BUILT_IN_RINT{,F,L}>: Ditto.
1613 2011-08-26 Michael Matz <matz@suse.de>
1614 Jakub Jelinek <jakub@redhat.com>
1617 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
1618 don't call strlen twice, use memcpy.
1620 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
1622 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
1623 * config/i386/bmiintrin.h: Likewise.
1624 * config/i386/lzcntintrin.h: Likewise.
1626 * config/i386/immintrin.h: Include <lzcntintrin.h>,
1627 <bmiintrin.h> and <bmi2intrin.h>.
1629 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1632 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
1633 * configure: Regenerate.
1635 2011-08-26 Jakub Jelinek <jakub@redhat.com>
1638 * c-typeck.c (c_process_expr_stmt): Skip over nops and
1639 call mark_exp_read even if exprv is ADDR_EXPR.
1641 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
1643 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
1644 to df_set_dead_notes_for_mw.
1646 2011-08-26 Richard Guenther <rguenther@suse.de>
1648 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
1650 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
1651 Tom de Vries <tom@codesourcery.com>
1653 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
1654 (struct ivopts_data): Add loop_single_exit_p field.
1655 (niter_for_exit): Change parameter desc_p into return value. Return
1656 desc if desc->may_be_zero. Free desc if unused.
1657 (niter_for_single_dom_exit): Change return type.
1658 (find_induction_variables): Handle changed return type of
1659 niter_for_single_dom_exit. Dump may_be_zero.
1660 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
1661 (set_use_iv_cost): Add and handle comp parameter.
1662 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
1663 comp argument to set_use_iv_cost.
1664 (strip_wrap_conserving_type_conversions, expr_equal_p)
1665 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
1666 (may_eliminate_iv): Add comp parameter. Handle new return type of
1667 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
1668 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
1669 and may_eliminate_iv.
1670 (rewrite_use_compare): Move call to iv_elimination_compare to ...
1671 (may_eliminate_iv): Here.
1672 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
1674 2011-08-26 Tom de Vries <tom@codesourcery.com>
1676 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
1677 accessing TREE_TYPE.
1679 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
1681 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
1682 (*ior_scc_scc_cmp): Likewise
1683 (*and_scc_scc): Likewise.
1684 (*and_scc_scc_cmp): Likewise.
1685 (*and_scc_scc_nodom): Likewise.
1686 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
1688 2011-08-26 Jakub Jelinek <jakub@redhat.com>
1690 * rtlanal.c (nonzero_bits1): Handle CLRSB.
1692 2011-08-26 Richard Guenther <rguenther@suse.de>
1694 * expr.c (string_constant): Handle &MEM_REF.
1696 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
1698 * config/arm/arm.c (struct four_ints): New type.
1699 (count_insns_for_constant): Delete function.
1700 (find_best_start): Delete function.
1701 (optimal_immediate_sequence): New function.
1702 (optimal_immediate_sequence_1): New function.
1703 (arm_gen_constant): Move constant splitting code to
1704 optimal_immediate_sequence.
1705 Rewrite constant negation/invertion code.
1707 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
1709 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
1710 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
1711 Remove prototype. Remove static function type.
1712 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
1714 * config/arm/constraints.md (Pj, PJ): New constraints.
1716 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1718 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
1719 ("cortex_a9_multiply_long"): New and use above. Handle all
1720 long multiply cases.
1721 ("cortex_a9_multiply"): Handle smmul and smmulr.
1722 ("cortex_a9_mac"): Handle smmla.
1724 2011-08-25 Richard Henderson <rth@redhat.com>
1728 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
1729 non-constant stack adjutment.
1730 * expr.c (find_args_size_adjust): Break out from ...
1731 (fixup_args_size_notes): ... here.
1732 * rtl.h (find_args_size_adjust): Declare.
1734 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
1736 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
1737 sse4 and sse4_noavx.
1738 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
1739 (*pushdf_rex64): Change Y2 register constraint to x.
1740 (*movdf_internal_rex64): Ditto.
1741 (*zero_extendsidi2_rex64): Ditto.
1742 (*movdi_internal): Change Y2 register constraint to x
1743 and update "isa" attribute.
1745 (*movdf internal): Ditto.
1746 (zero_extendsidi2_1): Ditto.
1747 (*truncdfdf_mixed): Ditto.
1748 (*truncxfdf2_mixed): Ditto.
1749 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
1750 register constraint to x.
1751 (*movv2sf_internal_rex64): Ditto.
1752 (*mov<mode>_internal): Change Y2 register constraint to x
1753 and add "isa" attribute.
1754 (*movv2sf_internal): Ditto.
1755 (*vec_extractv2si_1): Ditto.
1756 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
1757 constraints to x and update "isa" attribute.
1758 (*vec_interleave_highv2df): Change Y3 registerconstraint
1759 to x and update "isa" attribute.
1760 (*vec_interleave_lowv2df): Ditto.
1761 (*vec_concatv2df): Change Y2 register constraint to x and
1762 update "isa" attribute.
1763 (sse2_loadld): Ditto.
1764 (*vec_extractv2di_1): Ditto.
1765 (*vec_dupv4si): Ditto.
1766 (*vec_dupv2di): Ditto.
1767 (*vec_concatv4si): Ditto.
1768 (vec_concatv2di): Ditto.
1769 * config/i386/constraints.md (Y2): Remove.
1773 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
1775 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
1776 dump_def_use_chain): Don't declare.
1777 (mark_conflict, create_new_chain): Move before users.
1778 (regrename_optimize): Move to near end of file.
1780 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
1782 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
1783 (secondary_input_reload_class): Remove Prototype.
1784 * config/avr/avr.c (byte_immediate_operand): Remove Function.
1785 * config/avr/avr.md (setmemhi): Use u8_operand.
1786 (strlenhi): Use const0_rtx for comparison.
1787 * config/avr/avr.h (avr_reg_order): Remove Declaration.
1789 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
1791 * config/avr/avr.c (reg_class_tab): Make local to
1792 avr_regno_reg_class. Return smallest register class available.
1794 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
1796 * config/avr/avr.c (STR_PREFIX_P): New Define.
1797 (avr_asm_declare_function_name): Use it.
1798 (avr_asm_named_section): Use it.
1799 (avr_section_type_flags): Use it.
1801 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
1803 * doc/md.texi (automata_option): Document collapse-ndfa.
1804 * genautomata.c (COLLAPSE_OPTION): New macro.
1805 (collapse_flag): New static variable.
1806 (struct description): New member normal_decls_num.
1807 (struct automaton): New members advance_ainsn and collapse_ainsn.
1808 (gen_automata_option): Check for COLLAPSE_OPTION.
1809 (collapse_ndfa_insn_decl): New static variable.
1810 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
1811 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
1812 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
1813 necessary. Use normal_decls_num rather than decls_num, remove
1814 test for special decls.
1815 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
1816 (make_automaton); Likewise. Use the new advance_cycle_insn member
1817 of struct automaton.
1818 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
1820 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
1821 transition. Create the necessary transitions for it.
1822 (create_ainsns): Return void. Take an automaton_t argument, and
1823 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
1825 (COLLAPSE_NDFA_VALUE_NAME): New macro.
1826 (output_tables): Output code to define it.
1827 (output_internal_insn_code_evaluation): Output code to accept
1828 const0_rtx as collapse-ndfa transition.
1829 (output_default_latencies, output_print_reservation_func,
1830 output_print_description): Reorganize loops to use normal_decls_num
1831 as loop bound; remove special case for advance_cycle_insn_decl.
1832 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
1833 (check_automata_insn_issues): Check for collapse_ainsn.
1834 (expand_automate): Allocate sufficient space. Initialize
1837 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
1839 * config/avr/avr.md: Fix indentation from r177991.
1841 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
1843 * regrename.c (struct du_head): Remove member terminated.
1844 (create_new_chain): Don't initialize it.
1845 (scan_rtx_reg): Don't set or test it, test the open_chains_set
1847 (tick, this_tick): New global variables, moved out of
1849 (current_id, open_chains, closed_chains, open_chains_set,
1850 live_in_chains, live_hard_regs): Reorder declarations.
1851 (dump_def_use_chain): Move function earlier in the file.
1852 (rename_chains): New static function, broken out of
1854 (regrename_optimize): Use it. Remove #if 0'ed code.
1856 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1858 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
1860 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
1863 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
1865 2011-08-24 Richard Guenther <rguenther@suse.de>
1867 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
1868 ref in the basic-block case. Move stripping array-refs
1869 to the place we create an access-function for it. Remove
1870 bogus stripping down a MEM_REF to its base.
1872 2011-08-24 Richard Guenther <rguenther@suse.de>
1874 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
1875 with -fno-strict-overflow.
1877 2011-08-24 Richard Guenther <rguenther@suse.de>
1879 * tree-vectorizer.c (vect_print_dump_info): Avoid the
1880 file and location clutter when dumping to dump files.
1882 2011-08-24 Simon Baldwin <simonb@google.com>
1884 * gengtype-state.c (write_state): Remove timestamped header line.
1886 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1888 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
1889 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
1890 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
1891 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
1892 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
1893 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
1894 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
1896 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
1898 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1900 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
1902 2011-08-24 Richard Guenther <rguenther@suse.de>
1904 PR tree-optimization/50067
1905 * tree-data-ref.c (dr_analyze_indices): Do not add an access
1906 function for a MEM_REF base that has no evolution in the loop
1907 nest or that is not analyzable.
1909 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
1911 * ira.c (ira_init_register_move_cost): Check small subclasses
1912 through ira_reg_class_max_nregs and ira_available_class_regs.
1914 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
1916 * config/i386/constraints.md (Yp): New register constraint.
1917 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
1918 Yp register constraint.
1919 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
1920 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
1921 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
1923 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
1925 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
1927 2011-08-23 Mark Heffernan <meheff@google.com>
1930 * common.opt (Wfree-nonheap-object): New option.
1931 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
1932 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
1934 (expand_builtin): Make warning conditional.
1936 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
1938 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
1939 (length_immediate): Handle imulx, ishiftx and rotatex.
1942 (enabled): Handle bmi2.
1943 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
1944 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
1945 (*bmi2_umulditi3_1): New insn pattern.
1946 (*bmi2_umulsidi3_1): Ditto.
1947 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
1948 (*bmi2_ashl<mode>3_1): New insn pattern.
1949 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
1950 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
1951 (*bmi2_ashlsi3_1_zext): New insn pattern.
1952 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
1953 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
1954 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
1955 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
1956 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
1958 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
1959 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
1960 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
1962 (*bmi2_rorx<mode>3_1): New insn pattern.
1963 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
1964 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
1965 (*rotatert<mode>3_1 splitter): Ditto.
1966 (*bmi2_rorxsi3_1_zext): New insn pattern.
1967 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
1968 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
1969 (*rotatertsi3_1_zext splitter): Ditto.
1971 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
1973 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
1974 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
1975 (ix86_handle_option): Handle OPT_mbmi2 case.
1976 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
1977 (x86_64-*-*): Likewise.
1978 * config/i386/bmi2intrin.h: New file.
1979 * config/i386/cpuid.h (bit_BMI2): New.
1980 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1982 * config/i386/i386-c.c (ix86_target_macros_internal):
1983 Conditionally define __BMI2__.
1984 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
1986 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
1987 (print_reg): New code.
1988 (ix86_print_operand): Likewise.
1989 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
1990 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
1991 IX86_BUILTIN_PEXT64.
1992 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
1993 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
1994 IX86_BUILTIN_PEXT64.
1995 * config/i386/i386.h (TARGET_BMI2): New.
1996 * config/i386/i386.md (UNSPEC_PDEP): New.
1997 (UNSPEC_PEXT): Likewise.
1998 (*bmi2_bzhi_<mode>3): Likewise.
1999 (*bmi2_pdep_<mode>3): Likewise.
2000 (*bmi2_pext_<mode>3): Likewise.
2001 * config/i386/i386.opt (mbmi2): New.
2002 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
2004 * doc/extend.texi: Document BMI2 built-in functions.
2005 * doc/invoke.texi: Document -mbmi2.
2007 2011-08-23 Jakub Jelinek <jakub@redhat.com>
2010 * simplify-rtx.c (simplify_const_unary_operation): If
2011 op is CONST_INT, don't look at op_mode, but use instead mode.
2012 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
2013 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
2014 operation and TRUNCATE/ZERO_EXTEND if needed.
2015 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
2016 Document that operand mode must be same as operation mode,
2018 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
2019 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
2020 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
2021 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
2022 use the mode of operand for the operation and add truncate
2023 or zero_extend around if needed.
2024 * config/c6x/c6x.md (ctzdi2): Likewise.
2025 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
2027 2011-08-12 Michael Matz <matz@suse.de>
2029 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
2030 (gimple_expand_cfg): Merge alignment info for coalesced pointer
2033 2011-08-23 Richard Guenther <rguenther@suse.de>
2035 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
2036 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
2037 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
2039 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
2040 (mem_refs_may_alias_p): Adjust.
2041 * tree-data-ref.h (dr_may_alias_p): Adjust.
2042 * tree-data-ref.c: Include tree-affine.h.
2043 (dr_analyze_indices): Do nothing for the non-loop case.
2044 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
2045 more cases in the non-loop case.
2046 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
2047 calls to dr_may_alias_p.
2048 (write_alias_graph_to_ascii_ecc): Likewise.
2049 (write_alias_graph_to_ascii_dot): Likewise.
2050 (build_alias_set_optimal_p): Likewise.
2052 2011-08-23 Richard Guenther <rguenther@suse.de>
2054 PR tree-optimization/50162
2055 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
2057 2011-08-23 Richard Guenther <rguenther@suse.de>
2059 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
2060 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
2061 (create_data_ref): Also dump access functions for the created data-ref.
2063 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
2064 Kirill Yukhin <kirill.yukhin@intel.com>
2067 * config/i386/sse.md (VI_AVX2): New.
2068 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
2069 (*<plusminus_insn><mode>3): Ditto.
2070 (<sse2_avx2>_andnot<mode>3): Ditto.
2071 (*andnot<mode>3): Fix order of cond operands.
2072 Add asserts for correct TARGET_xxx.
2073 (*<any_logic:code><mode>3): Ditto.
2075 2011-08-22 Anatoly Sokolov <aesok@post.ru>
2077 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
2078 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
2079 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
2080 regclass argument type to reg_class_t. Change 'max' and 'v' vars
2081 and return types to unsigned char. Use reg_class_contents instead
2083 (TARGET_CLASS_MAX_NREGS): Define.
2085 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
2087 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
2088 to make computed_jump_p return true.
2090 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2092 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
2093 (PICFLAG_FOR_TARGET): Substitute.
2094 * aclocal.m4: Regenerate.
2095 * configure: Regenerate.
2097 2011-08-22 Dodji Seketeli <dodji@redhat.com>
2099 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
2100 after reading in the pch.
2102 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
2104 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
2105 * configure: Regenerated.
2107 2011-08-22 Jakub Jelinek <jakub@redhat.com>
2109 PR tree-optimization/50133
2110 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
2111 from stmt instead of some statement around gsi.
2114 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
2115 innerdecl is a VAR_DECL.
2117 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
2119 * config/i386/avx2intrin.h: New file.
2120 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
2121 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
2122 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
2123 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
2124 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
2125 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
2126 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
2127 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
2128 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
2129 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
2130 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
2131 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
2132 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
2133 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
2134 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
2135 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
2136 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
2137 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
2138 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
2139 VOID_FTYPE_PV8SI_V8SI_V8SI,
2140 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
2141 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
2142 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
2143 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
2144 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
2145 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
2146 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
2147 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
2148 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
2149 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
2150 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
2151 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
2152 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
2153 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
2154 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
2155 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
2156 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
2157 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
2158 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
2159 V4DI_FTYPE_V4DI_INT_CONVERT,
2160 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
2161 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
2162 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
2163 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
2164 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
2165 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
2166 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
2167 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
2168 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
2169 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
2170 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
2171 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
2172 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
2173 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
2174 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
2175 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
2176 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
2177 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
2178 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
2179 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
2180 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
2181 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
2182 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
2183 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
2184 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
2185 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
2186 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
2187 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
2188 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
2189 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
2190 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
2191 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
2192 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
2193 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
2194 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
2195 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
2196 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
2197 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
2198 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
2199 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
2200 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
2201 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
2202 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
2203 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
2204 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
2205 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
2206 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
2207 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
2208 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
2209 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
2210 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
2211 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
2212 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
2213 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
2214 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
2215 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
2216 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
2217 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
2218 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
2219 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
2220 IX86_BUILTIN_VBROADCASTSS_PS256,
2221 IX86_BUILTIN_VBROADCASTSD_PD256,
2222 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
2223 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
2224 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
2225 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
2226 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
2227 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
2228 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
2229 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
2230 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
2231 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
2232 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
2233 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
2234 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
2235 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
2236 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
2237 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
2238 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
2239 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
2240 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
2241 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
2242 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
2243 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
2244 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
2245 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
2246 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
2247 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
2248 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
2249 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
2250 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
2251 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
2252 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
2253 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
2254 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
2255 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
2256 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
2257 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
2258 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
2259 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
2260 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
2261 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
2262 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
2263 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
2264 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
2265 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
2266 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
2267 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
2268 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
2269 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
2270 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
2271 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
2272 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
2273 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
2274 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
2275 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
2276 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
2277 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
2278 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
2279 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
2280 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
2281 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
2282 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
2283 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
2284 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
2285 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
2286 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
2287 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
2288 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
2289 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
2290 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
2291 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
2292 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
2293 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
2294 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
2295 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
2296 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
2297 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
2298 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
2299 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
2300 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
2301 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
2302 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
2303 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
2304 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
2305 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
2306 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
2307 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
2308 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
2309 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
2310 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
2311 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
2312 IX86_BUILTIN_VBROADCASTSD_PD256,
2313 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
2314 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
2315 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
2316 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
2317 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
2318 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
2319 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
2320 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
2321 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
2322 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
2323 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
2324 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
2325 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
2326 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
2327 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
2328 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
2329 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
2330 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
2331 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
2332 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
2333 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
2334 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
2335 IX86_BUILTIN_GATHERDIV8SI.
2336 (ix86_preferred_simd_mode): Support AVX2 modes.
2337 (ix86_expand_args_builtin): Support AVX2 builtins.
2338 (ix86_expand_special_args_builtin): Likewise.
2339 (ix86_expand_builtin): Likewise.
2340 * config/i386/i386.md (UNSPEC_VPERMSI): New.
2341 (UNSPEC_VPERMDF): Likewise.
2342 (UNSPEC_VPERMSF): Likewise.
2343 (UNSPEC_VPERMDI): Likewise.
2344 (UNSPEC_VPERMTI): Likewise.
2345 (UNSPEC_GATHER): Likewise.
2346 (ssemodesuffix): Extend.
2347 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
2349 * config/i386/predicates.md (const1248_operand): New.
2350 * config/i386/sse.md (VI1_AVX2): New mode iterator.
2351 (VI2_AVX2): Likewise.
2352 (VI4_AVX2): Likewise.
2353 (VI8_AVX2): Likewise.
2354 (VIMAX_AVX2): Likewise.
2355 (SSESCALARMODE): Likewise.
2356 (VI12_AVX2): Likewise.
2357 (VI24_AVX2): Likewise.
2358 (VI124_AVX2): Likewise.
2359 (VI248_AVX2): Likewise.
2360 (VI48_AVX2): Likewise.
2361 (VI4SD_AVX2): Likewise.
2362 (V48_AVX2): Likewise.
2363 (AVX256MODE2P): Likewise.
2364 (AVXMODE48P_DI): Likewise.
2365 (sse2_avx2): New mode attribute.
2366 (ssse3_avx2): Likewise.
2367 (sse4_1_avx2): Likewise.
2368 (avx_avx2): Likewise.
2369 (ssebytemode): Likewise.
2370 (AVXTOSSEMODE): Likewise.
2371 (AVXMODE48P_DI): Likewise.
2372 (gthrfirstp): Likewise.
2373 (gthrlastp): Likewise.
2374 (lshift): New code_iterator
2375 (lshift): New code attribute.
2377 (ssescalarmodesuffix): Update.
2378 (sseunpackmode): Likewise.
2379 (ssepackmode): Likewise.
2380 (avx2_vec_dupv4sf): New insn pattern.
2381 (avx2_vec_dupv8sf): Likewise.
2382 (avx2_interleave_highv4di): Likewise.
2383 (avx2_interleave_lowv4di): Likewise.
2384 (avx2_umulv4siv4di3): Likewise
2385 (*avx2_umulv4siv4di3): Likewise
2386 (avx2_pmaddwd): Likewise.
2387 (*avx2_pmaddwd): Likewise.
2388 (avx2_lshrqv4di3): Likewise.
2389 (avx2_lshlqv4di3): Likewise.
2390 (avx2_lshl<mode>3): Likewise.
2391 (avx2_<umaxmin:code><mode>3): Likewise.
2392 (*avx2_<umaxmin:code><mode>3): Likewise.
2393 (avx2_<smaxmin:code><mode>3): Likewise.
2394 (*avx2_<smaxmin:code><mode>3): Likewise.
2395 (avx2_eq<mode>3): Likewise.
2396 (*avx2_eq<mode>3): Likewise.
2397 (avx2_gt<mode>3): Likewise.
2398 (avx2_interleave_highv32qi): New.
2399 (avx2_interleave_lowv32qi): Likewise.
2400 (avx2_interleave_highv16hi): Likewise.
2401 (avx2_interleave_lowv16hi): Likewise.
2402 (avx2_interleave_highv8si): Likewise.
2403 (avx2_interleave_lowv8si): Likewise.
2404 (avx2_pshufd): Likewise.
2405 (avx2_pshufd_1): Likewise.
2406 (avx2_pshuflwv3): Likewise.
2407 (avx2_pshuflw_1): Likewise.
2408 (avx2_pshufhwv3): Likewise.
2409 (avx2_pshufhw_1): Likewise.
2410 (avx2_uavgv32qi3): Likewise.
2411 (*avx2_uavgv32qi3): Likewise.
2412 (avx2_uavgv16hi3): Likewise.
2413 (*avx2_uavgv16hi3): Likewise.
2414 (avx2_pmovmskb): Likewise.
2415 (avx2_phaddwv16hi3): Likewise.
2416 (avx2_phadddv8si3): Likewise.
2417 (avx2_phaddswv16hi3): Likewise.
2418 (avx2_phsubwv16hi3): Likewise.
2419 (avx2_phsubdv8si3): Likewise.
2420 (avx2_phsubswv16hi3): Likewise.
2421 (avx2_pmaddubsw256): Likewise.
2422 (avx2_umulhrswv16hi3): Likewise.
2423 (*avx2_umulhrswv16hi3): Likewise.
2424 (avx2_packusdw): Likewise.
2425 (avx2_pblendd<mode>): Likewise.
2426 (avx2_<code>v16qiv16hi2): Likewise.
2427 (avx2_<code>v8qiv8si2): Likewise.
2428 (avx2_<code>v8hiv8si2): Likewise.
2429 (avx2_<code>v4qiv4di2): Likewise.
2430 (avx2_<code>v4hiv4di2): Likewise.
2431 (avx2_<code>v4siv4di2): Likewise.
2432 (avx2_pbroadcast<mode>): Likewise.
2433 (avx2_permvarv8si): Likewise.
2434 (avx2_permv4df): Likewise.
2435 (avx2_permvarv8sf): Likewise.
2436 (avx2_permv4di): Likewise.
2437 (avx2_permv2ti): Likewise.
2438 (avx2_vec_dupv4df): Likewise.
2439 (avx2_vbroadcasti128_<mode>): Likewise.
2440 (avx2_vec_set_lo_v4di): Likewise.
2441 (avx2_vec_set_hi_v4di): Likewise.
2442 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
2443 (avx2_extracti128): Likewise.
2444 (avx2_inserti128): Likewise.
2445 (avx2_ashrvv8si): Likewise.
2446 (avx2_ashrvv4si): Likewise.
2447 (avx2_<lshift>vv8si): Likewise.
2448 (avx2_<lshift>v<mode>): Likewise.
2449 (avx2_<lshift>vv2di): Likewise.
2450 (avx2_gathersi<mode>): Likewise.
2451 (*avx2_gathersi<mode>): Likewise.
2452 (avx2_gatherdi<mode>): Likewise.
2453 (*avx2_gatherdi<mode>): Likewise.
2454 (avx2_gatherdi<mode>256): Likewise.
2455 (*avx2_gatherdi<mode>256): Likewise.
2456 (<plusminus_insn><mode>3): Use VI mode iterator.
2457 (*<plusminus_insn><mode>3): Use VI mode iterator.
2458 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
2459 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
2460 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
2461 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
2462 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
2463 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
2464 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
2465 Use VI2_AVX2 mode iterator.
2466 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
2467 Use VI2_AVX2 mode iterator.
2468 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
2469 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
2470 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
2471 Use VI4_AVX2 mode iterator.
2472 (ashr<mode>3): Use VI24_AVX2 mode iterator.
2473 (lshr<mode>3): Use VI248_AVX2 mode iterator.
2474 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
2475 Use VIMAX_AVX2 mode iterator.
2476 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
2477 Use VI mode iterator.
2478 (*andnot<mode>3): Update for AVX2.
2479 (*<any_logic:code><mode>3): Likewise.
2480 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
2481 Use VI1_AVX mode iterator.
2482 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
2483 Use VI2_AVX mode iterator.
2484 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
2485 Use VI1_AVX mode iterator.
2486 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
2487 Use VI8_AVX2 mode iterator.
2488 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
2489 Use VI1_AVX2 mode iterator.
2490 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
2491 Use VI124_AVX2 mode iterator.
2492 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
2493 Use SSESCALARMODE mode iterator.
2494 (abs<mode>2): Use VI124_AVX2 mode iterator.
2495 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
2496 Use VI8_AVX2 mode iterator.
2497 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
2498 Use VI1_AVX2 mode iterator.
2499 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
2500 Use VI1_AVX2 mode iterator.
2501 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
2502 Use VI2_AVX2 mode iterator.
2503 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
2504 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
2505 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
2506 avx_maskstore<ssemodesuffix><avxsizesuffix>.
2507 Use V48_AVX2 mode iterator.
2508 * doc/extend.texi: Document AVX2 built-in functions.
2509 * doc/invoke.texi: Document -mavx2.
2511 2011-08-22 Matthias Klose <doko@debian.org>
2514 2011-07-11 Arthur Loiret <aloiret@debian.org>
2515 Matthias Klose <doko@debian.org>
2516 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
2517 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
2519 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
2521 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
2524 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
2525 to #ifndef HONOR_REG_ALLOC_ORDER block.
2527 2011-08-21 Richard Henderson <rth@redhat.com>
2529 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
2530 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
2531 * resource.c (next_insn_no_annul): Likewise.
2532 (mark_set_resources): Likewise.
2533 * reorg.c (delete_from_delay_slot): Likewise.
2534 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
2535 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
2537 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
2539 * config/i386/i386.md (any_div): Remove.
2540 (sgnprefix): Update for removal.
2543 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
2545 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
2546 for ira_reg_class_max_nregs. Increase pressure by 1.
2547 (mark_pseudo_regno_subword_dead): Use allocno class
2548 for ira_reg_class_max_nregs.
2550 2011-08-20 Richard Henderson <rth@redhat.com>
2552 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
2553 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
2554 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
2555 config/c6x/ltf.c: Adjust include path for soft-fp.
2557 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
2560 * config.gcc (tm_file): Add initfini-array.h if
2561 .init_arrary/.fini_array are supported.
2563 * crtstuff.c: Don't generate .ctors nor .dtors sections if
2564 USE_INITFINI_ARRAY is defined.
2566 * output.h (default_elf_init_array_asm_out_constructor): New.
2567 (default_elf_fini_array_asm_out_destructor): Likewise.
2568 * varasm.c (elf_init_array_section): Likewise.
2569 (elf_fini_array_section): Likewise.
2570 (get_elf_initfini_array_priority_section): Likewise.
2571 (default_elf_init_array_asm_out_constructor): Likewise.
2572 (default_elf_fini_array_asm_out_destructor): Likewise.
2574 * config/initfini-array.h: New.
2576 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
2578 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
2579 OK for ST_REGS and FP_REGS before taking those classes into account.
2581 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
2583 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
2584 before checking for annulled branches.
2586 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
2588 * config/i386/i386.c (ix86_binary_operator_ok): Use
2589 satisfies_constraint_L.
2591 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
2592 Michael Matz <matz@suse.de>
2594 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
2595 trunc (a + copysign (nextafter (0.5, 0.0), a)).
2597 2011-08-20 Anatoly Sokolov <aesok@post.ru>
2599 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2600 * doc/tm.texi: Regenerate.
2601 * targhooks.c (default_preferred_output_reload_class): Don't use
2602 PREFERRED_OUTPUT_RELOAD_CLASS macro.
2603 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
2605 2011-08-20 Jakub Jelinek <jakub@redhat.com>
2607 PR tree-optimization/48739
2608 * tree-ssa.c: Include cfgloop.h.
2609 (execute_update_addresses_taken): When updating ssa, if in loop closed
2610 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
2611 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
2613 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
2615 PR rtl-optimization/49936
2616 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
2617 for calculation of max register move costs.
2619 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2621 * c-parser.c (c_parser_postfix_expression): Convert operands of
2622 __builtin_complex to their semantic types.
2624 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
2627 * explow.c (convert_memory_address_addr_space): Also permute the
2628 conversion and addition of constant for zero-extend.
2630 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2632 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
2633 * doc/extend.texi (__builtin_complex): Document.
2635 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2637 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
2639 (convert_mult_to_widen): Convert constant inputs to the right type.
2640 (convert_plusminus_to_widen): Don't automatically reject inputs that
2641 are not an SSA_NAME.
2642 Convert constant inputs to the right type.
2644 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2646 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
2647 to the correct type.
2649 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2651 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
2652 unsigned inputs of different modes.
2653 (convert_plusminus_to_widen): Likewise.
2655 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2657 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
2659 Use 'type' from caller, not inferred from 'rhs'.
2660 Don't reject non-conversion statements. Do return lhs in this case.
2661 (is_widening_mult_p): Add new argument 'type'.
2662 Use 'type' from caller, not inferred from 'stmt'.
2663 Pass type to is_widening_mult_rhs_p.
2664 (convert_mult_to_widen): Pass type to is_widening_mult_p.
2665 (convert_plusminus_to_widen): Likewise.
2667 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2669 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
2670 Ensure the the larger type is the first operand.
2672 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2674 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
2675 unsupported unsigned multiplies to signed.
2676 (convert_plusminus_to_widen): Likewise.
2678 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2680 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
2681 conversion statement separating multiply-and-accumulate.
2683 2011-08-19 Richard Guenther <rguenther@suse.de>
2685 PR tree-optimization/50067
2686 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
2687 offset only if we accounted for it.
2689 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2691 * config/arm/arm.md (maddhidi4): Remove '*' from name.
2692 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
2693 * optabs.c (find_widening_optab_handler_and_mode): New function.
2694 (expand_widen_pattern_expr): Use find_widening_optab_handler.
2695 (expand_binop_directly): Likewise.
2696 (expand_binop): Likewise.
2697 * optabs.h (find_widening_optab_handler): New macro define.
2698 (find_widening_optab_handler_and_mode): New prototype.
2699 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
2700 type precision rules.
2701 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
2702 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
2703 (is_widening_mult_rhs_p): Allow widening by more than one mode.
2704 Explicitly disallow mis-matched input types.
2705 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
2706 input types to fit the new handler.
2707 (convert_plusminus_to_widen): Likewise.
2709 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2711 * expr.c (expand_expr_real_2): Use widening_optab_handler.
2712 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
2713 (gen_insn): $N now means $a must be wider than $b, not consecutive.
2714 * optabs.c (widened_mode): New function.
2715 (expand_widen_pattern_expr): Use widening_optab_handler.
2716 (expand_binop_directly): Likewise.
2717 (expand_binop): Likewise.
2718 * optabs.h (widening_optab_handlers): New struct.
2719 (optab_d): New member, 'widening'.
2720 (widening_optab_handler): New function.
2721 (set_widening_optab_handler): New function.
2722 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
2723 widening_optab_handler.
2724 (convert_plusminus_to_widen): Likewise.
2726 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2728 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
2730 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
2731 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
2733 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2735 * opth-gen.awk: Do not declare target save/restore structures and
2736 functions if IN_RTS defined.
2738 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2741 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
2742 when stack was realigned in interrupt handler prologue.
2744 2011-08-18 Joseph Myers <joseph@codesourcery.com>
2746 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
2747 (quals_from_declspecs): Assert _Noreturn not present.
2748 (grokdeclarator): Handle _Noreturn.
2749 (build_null_declspecs): Initialize noreturn_p.
2750 (declspecs_add_scspec): Handle RID_NORETURN.
2751 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
2752 (c_parser_attributes): Handle RID_NORETURN.
2753 * c-tree.h (struct c_declspecs): Add noreturn_p.
2754 * ginclude/stdnoreturn.h: New.
2755 * Makefile.in (USER_H): Add stdnoreturn.h.
2757 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
2759 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
2760 (OPTION_MASK_ISA_AVX_UNSET): Update.
2761 (OPTION_MASK_ISA_AVX2_UNSET): New.
2762 (ix86_handle_option): Handle OPT_mavx2 case.
2763 * config/i386/cpuid.h (bit_AVX2): New.
2764 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2766 * config/i386/i386-c.c (ix86_target_macros_internal):
2767 Conditionally define __AVX2__.
2768 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
2769 Define "core-avx2" processor alias. Handle avx2 option.
2770 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
2771 * config/i386/i386.h (TARGET_AVX2): New.
2772 * config/i386/i386.opt (mavx2): New.
2773 * doc/invoke.texi: Document -mavx2.
2775 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
2777 PR rtl-optimization/49890
2778 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
2779 subclasses of class which is superset of a pressure class.
2781 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
2782 Igor Zamyatin <igor.zamyatin@intel.com>
2784 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
2785 with HOST_WIDE_INT for isa_flag.
2786 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
2789 * config/i386/i386.c (ix86_target_string): Replace int with
2790 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
2791 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
2792 (pta_flags): Removed.
2793 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
2794 (pta): Use HOST_WIDE_INT on flags.
2795 (builtin_isa): Use HOST_WIDE_INT on isa.
2796 (ix86_add_new_builtins): Likewise.
2797 (def_builtin): Use HOST_WIDE_INT on mask.
2798 (def_builtin_const): Likewise.
2799 (builtin_description): Likewise.
2801 * config/i386/i386.opt (ix86_isa_flags): Replace int with
2803 (ix86_isa_flags_explicit): Likewise.
2804 (x_ix86_isa_flags_explicit): Likewise.
2806 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
2808 PR rtl-optimization/50107
2809 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
2810 (ira_hard_reg_in_set_p): New.
2812 * ira-color.c (calculate_saved_nregs): New.
2813 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
2815 (allocno_reload_assign, fast_allocation): Use
2816 ira_hard_reg_set_intersection_p instead of
2817 ira_hard_reg_not_in_set_p.
2819 * ira.c (setup_reg_renumber): Use
2820 ira_hard_reg_set_intersection_p instead of
2821 ira_hard_reg_not_in_set_p.
2822 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
2823 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
2825 * ira-costs.c (ira_tune_allocno_costs): Use
2826 ira_hard_reg_set_intersection_p instead of
2827 ira_hard_reg_not_in_set_p.
2829 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
2830 Igor Zamyatin <igor.zamyatin@intel.com>
2832 * hwint.h (HOST_WIDE_INT_1): New.
2834 * opt-functions.awk (switch_bit_fields): Initialize the
2835 host_wide_int field.
2836 (host_wide_int_var_name): New.
2837 (var_type_struct): Check and return HOST_WIDE_INT.
2839 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
2841 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
2843 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
2844 check masks for HOST_WIDE_INT.
2846 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
2847 (option_enabled): Likewise.
2848 (get_option_state): Likewise.
2850 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
2853 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2854 Marc Glisse <marc.glisse@normalesup.org>
2856 PR libstdc++-v3/1773
2857 * target.def (decl_mangling_context): New C++ hook.
2858 * doc/tm.texi: Regenerate.
2859 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
2860 * config/sol2-protos.h: Group by source file.
2861 (solaris_cxx_decl_mangling_context): Declare.
2862 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
2863 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
2865 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
2866 Add sol2-stubs.o to extra_objs.
2868 2011-08-18 Jakub Jelinek <jakub@redhat.com>
2871 * stor-layout.c (update_alignment_for_field): Don't ICE on
2872 packed flexible array members if ms_bitfield_layout_p.
2875 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
2876 on the result before returning it.
2879 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
2880 is a debug stmt, use location of the first non-debug stmt after it.
2882 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
2884 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
2885 (arm_size_rtx_costs): Likewise.
2887 2011-08-18 Richard Guenther <rguenther@suse.de>
2889 * tree.h (tree_int_cst_msb): Remove.
2890 * tree.c (tree_int_cst_msb): Likewise.
2891 (tree_int_cst_sign_bit): Move from ...
2892 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
2894 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
2896 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
2897 * doc/tm.texi: Regenerate.
2898 * target.def (rtx_costs): Add an opno parameter.
2899 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
2900 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
2901 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
2902 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
2903 * cse.c (COST_IN): Add an opno parameter.
2904 (notreg_cost): Likewise. Update call to rtx_cost.
2905 (COST, fold_rtx): Update accordingly.
2906 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
2907 * expmed.c (emit_store_flag): Likewise.
2908 * optabs.c (avoid_expensive_constant): Add an opno parameter.
2909 Update call to rtx_cost.
2910 (expand_binop_directly, expand_binop): Likewise.
2911 (expand_twoval_binop, prepare_cmp_insn): Likewise.
2912 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
2913 (set_src_cost, get_full_set_src_cost): Update accordingly.
2914 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
2916 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
2917 (default_adress_cost): Update calls to rtx_cost.
2919 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
2920 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
2921 (arm_rtx_costs): Add an opno parameter.
2922 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
2923 adjust any recursive rtx-cost calls.
2924 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
2925 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2926 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
2927 * config/cris/cris.c (cris_rtx_costs): Likewise.
2928 * config/frv/frv.c (frv_rtx_costs): Likewise.
2929 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
2930 * config/i386/i386.c (ix86_rtx_costs): Likewise.
2931 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
2932 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
2933 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
2934 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
2935 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
2936 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
2937 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
2938 * config/mep/mep.c (mep_rtx_cost): Likewise.
2939 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
2940 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
2941 (mips_zero_extend_cost): Add an opno parameter.
2942 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
2943 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
2945 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
2947 * config/pa/pa.c (hppa_rtx_costs): Likewise.
2948 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
2949 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
2950 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
2951 (rs6000_debug_rtx_costs): Likewise.
2952 * config/s390/s390.c (s390_rtx_costs): Likewise.
2953 * config/score/score-protos.h (score_rtx_costs): Likewise.
2954 * config/score/score.c (score_rtx_costs): Likewise.
2955 * config/sh/sh.c (andcosts): Update call to rtx_cost.
2956 (sh_rtx_costs): Add an opno parameter.
2957 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
2958 * config/spu/spu.c (spu_rtx_costs): Likewise.
2959 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
2960 * config/v850/v850.c (v850_rtx_costs): Likewise.
2961 * config/vax/vax.c (vax_rtx_costs): Likewise.
2962 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
2964 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
2966 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
2967 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
2969 * calls.c (precompute_register_parameters): Likewise.
2970 * combine.c (expand_compound_operation, make_extraction): Likewise.
2971 (force_to_mode, distribute_and_simplify_rtx): Likewise.
2972 * dse.c (find_shift_sequence): Likewise.
2973 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
2974 * expr.c (compress_float_constant): Likewise.
2975 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
2976 * gcse.c (want_to_gcse_p): Likewise.
2977 * ifcvt.c (noce_try_sign_mask): Likewise.
2978 * loop-doloop.c (doloop_optimize): Likewise.
2979 * loop-invariant.c (create_new_invariant): Likewise.
2980 * optabs.c (avoid_expensive_constant): Likewise.
2981 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
2982 (try_replace_in_use, reload_cse_move2add): Likewise.
2983 * reload1.c (calculate_elim_costs_all_insns): Likewise.
2984 (note_reg_elim_costly): Likewise.
2985 * rtlanal.c (insn_rtx_cost): Likewise.
2986 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2987 * stmt.c (lshift_cheap_p): Likewise.
2988 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
2989 * config/avr/avr.c (final_prescan_insn): Likewise.
2990 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2991 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
2993 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
2995 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
2996 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
2997 * cfgloopanal.c (seq_cost): Likewise.
2998 * loop-invariant.c (create_new_invariant): Likewise.
2999 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
3000 (reload_cse_move2add): Use get_full_set_rtx_cost.
3002 2011-08-18 Richard Guenther <rguenther@suse.de>
3004 * expr.c (get_inner_reference): Fix typo in last change.
3006 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
3007 Joseph Myers <joseph@codesourcery.com>
3009 PR tree-optimization/49963
3010 * hwint.c (absu_hwi): Define.
3011 * hwint.h (absu_hwi): Declare.
3012 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
3014 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3015 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
3017 2011-08-18 Richard Guenther <rguenther@suse.de>
3019 * expr.c (get_inner_reference): Sign-extend the constant
3020 twos-complement offset before doing arbitrary precision
3022 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
3023 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
3024 to get_constraint_for_ptr_offset.
3026 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
3029 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
3031 2011-08-17 Richard Guenther <rguenther@suse.de>
3033 * tree.h (convert_to_ptrofftype_loc): New function.
3034 (convert_to_ptrofftype): Define.
3035 * builtins.c (expand_builtin_bzero): Use size_type_node.
3036 (fold_builtin_bzero): Likewise.
3037 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
3038 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
3039 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
3040 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
3041 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
3042 * fold-const.c (build_range_check): Negate using the original type.
3043 (fold_unary_loc): Use fold_build_pointer_plus_loc.
3044 * gimple-fold.c (gimple_adjust_this_by_delta): Use
3045 convert_to_ptrofftype.
3046 * gimplify.c (gimplify_self_mod_expr): Likewise.
3047 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
3048 (graphite_create_new_loop_guard): Likewise.
3049 * graphite-sese-to-poly.c (my_long_long): Remove.
3050 (scop_ivs_can_be_represented): Adjust.
3051 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
3052 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
3053 * tree-loop-distribution.c (build_size_arg_loc): Use
3055 (generate_memset_zero): Simplify.
3056 * tree-mudflap.c: Use fold_convert, not convert.
3057 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
3059 (determine_offset): Likewise for DR_STEP.
3060 (valid_initializer_p): Likewise.
3061 * tree-profile.c (prepare_instrumented_value): Convert the pointer
3062 to an integer type of same size.
3063 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
3064 to sizetype without need.
3065 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
3066 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
3067 * tree-ssa-loop-manip.c (create_iv): Likewise.
3068 (determine_exit_conditions): Adjust comment.
3069 * tree-ssa-pre.c (create_expression_by_pieces): Use
3070 convert_to_ptrofftype.
3071 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
3072 * varasm.c (array_size_for_constructor): Compute using double_ints.
3074 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3076 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
3077 when generating an integer result where possible. Short-cut
3078 comparison against 0 also for QImode.
3080 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3082 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
3083 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
3085 * config/spu/spu.c (spu_legitimize_reload_address): New function.
3086 (spu_legitimate_address_p): Do not check displacement if the base
3087 is an eliminable stack register.
3089 2011-08-16 Anatoly Sokolov <aesok@post.ru>
3091 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
3092 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
3093 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
3094 m32c_preferred_output_reload_class): Remove.
3095 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
3096 Change rclass argument and return types to reg_class_t. Use
3097 reg_class_subset_p instead of class_sizes.
3098 (m32c_preferred_output_reload_class): Make static. Change rclass
3099 argument and return types to reg_class_t.
3100 (TARGET_PREFERRED_RELOAD_CLASS,
3101 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3103 2011-08-16 Kai Tietz <ktietz@redhat.com>
3105 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
3107 2011-08-16 Richard GUenther <rguenther@suse.de>
3109 PR tree-optimization/50082
3110 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
3111 warnings here, instead of ...
3112 (ssa_forward_propagate_and_combine): ... here.
3113 (forward_propagate_into_comparison_1): Adjust.
3114 (forward_propagate_into_comparison): Likewise.
3115 (forward_propagate_into_gimple_cond): Likewise.
3116 (forward_propagate_into_cond): Likewise.
3118 2011-08-16 Andreas Schwab <schwab@redhat.com>
3120 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
3121 instead of ggc_alloc_zone_vec_rtvec_def.
3123 2011-08-16 Richard Guenther <rguenther@suse.de>
3125 * tree.h (ptrofftype_p): New helper function.
3126 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
3127 offset verification.
3128 (verify_gimple_assign_binary): Likewise.
3129 * tree.c (build2_stat): Likewise.
3130 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
3131 (reset_evolution_in_loop): Likewise.
3132 * tree-chrec.h (build_polynomial_chrec): Likewise.
3134 2011-08-16 Liang Wang <lwang1@marvell.com>
3136 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
3137 ggc_alloc_zone_vec_rtvec_def.
3139 2011-08-16 Richard Guenther <rguenther@suse.de>
3141 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
3142 helper factored out from ...
3143 (extract_range_from_binary_expr_1): ... here. Re-structure
3144 to not glob handling too different tree codes.
3146 2011-08-15 Richard Henderson <rth@redhat.com>
3149 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
3150 setting out to include allocate_stack named pattern as well.
3151 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
3152 * stmt.c (expand_stack_restore): Likewise.
3154 2011-08-15 Richard Guenther <rguenther@suse.de>
3157 * fold-const.c (maybe_canonicalize_comparison_1): Properly
3158 convert the modified operand to the other operand type.
3159 (fold_comparison): Call maybe_canonicalize_comparison_1 with
3160 useless conversions stripped from comparison operands.
3162 2011-08-15 Richard Guenther <rguenther@suse.de>
3164 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
3165 (extract_range_from_unary_expr_1): Restructure.
3167 2011-08-15 Richard Guenther <rguenther@suse.de>
3169 PR tree-optimization/50058
3170 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
3173 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3176 * config/arm/arm.c (output_move_double): Add 2 parameters
3177 to count the number of insns emitted and whether to emit or not.
3178 Use the flag to decide when to emit and count number of instructions
3179 that will be emitted.
3180 Handle case where output_move_double might be called for calculating
3181 lengths with an invalid constant.
3182 (arm_count_output_move_double_insns): Define.
3183 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
3184 (output_move_double): Adjust prototype.
3185 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
3187 ("*movdi_vfp_cortexa8"): Likewise and add attribute
3189 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
3190 ("*movdf_soft_insn"): Likewise.
3191 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
3192 ("*cirrus_thumb2_movdi"): Likewise.
3193 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
3194 ("*cirrus_movdf_hard_insn"): Likewise.
3195 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
3196 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
3197 ("mov<mode>_internal VMMX"): Likewise.
3198 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
3200 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
3202 * config/i386/i386.c (ix86_expand_round_sse4): New function.
3203 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
3204 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
3207 (rint<mode>2): Simplify TARGET_ROUND check.
3208 (floor<mode>2): Ditto.
3209 (ceil<mode>2): Ditto.
3210 (btrunc<mode>2): Ditto.
3212 2011-08-14 Anatoly Sokolov <aesok@post.ru>
3214 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
3215 as mmix_preferred_output_reload_class.
3217 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
3220 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
3221 (branch_unspec): New insn.
3222 (branch): Beauty farm.
3223 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
3225 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
3226 New static functions.
3227 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
3228 Use CONST_INT_P. Beauty.
3230 2011-08-12 Richard Henderson <rth@redhat.com>
3233 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
3234 * sched-deps.c (init_deps): Clear it.
3235 (deps_analyze_insn): Consume it.
3236 (sched_analyze_insn): Fill it.
3238 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3241 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
3242 for tbh instructions.
3244 2011-08-12 Diego Novillo <dnovillo@google.com>
3246 * data-streamer.h (streamer_write_zero): Rename from output_zero.
3247 (streamer_write_uhwi): Rename from lto_output_uleb128.
3248 (streamer_write_hwi): Rename from output_sleb128.
3249 (streamer_write_string): Rename from lto_output_string.
3250 (streamer_string_index): Rename from lto_string_index.
3251 (streamer_write_string_with_length): Rename from
3252 lto_output_string_with_length.
3253 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
3254 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
3255 (streamer_read_string): Rename from lto_input_string.
3256 (streamer_read_indexed_string): Rename from input_string_internal.
3257 (streamer_read_uhwi): Rename from lto_input_uleb128.
3258 (streamer_read_hwi): Rename from lto_input_sleb128.
3259 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
3260 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
3261 (streamer_write_enum): Rename from lto_output_enum.
3262 (streamer_read_enum): Rename from lto_input_enum.
3263 (streamer_write_record_start): Rename from output_record_start.
3264 (streamer_read_record_start): Rename from input_record_start.
3265 (streamer_write_bitpack): Rename from lto_output_bitpack.
3266 (streamer_read_bitpack): Rename from lto_input_bitpack.
3267 (streamer_write_char_stream): Rename from lto_output_1_stream.
3268 (streamer_read_uchar): Rename from lto_input_1_unsigned.
3269 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
3270 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
3271 (streamer_read_string_cst): Rename from input_string_cst.
3272 (streamer_read_chain): Rename from lto_input_chain.
3273 (streamer_alloc_tree): Rename from lto_materialize_tree.
3274 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
3275 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
3276 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
3277 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
3278 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
3279 (streamer_write_chain): Rename from lto_output_chain.
3280 (streamer_write_tree_header): Rename from lto_output_tree_header.
3281 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
3282 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
3283 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
3284 (streamer_write_builtin): Rename from lto_output_builtin_tree.
3285 (streamer_check_handled_ts_structures): Rename from
3286 check_handled_ts_structures.
3287 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
3288 (streamer_tree_cache_insert_at): Rename from
3289 lto_streamer_cache_insert_at.
3290 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
3291 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
3292 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
3293 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
3294 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
3295 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
3296 (write_identifier): Rename from output_identifier.
3297 (write_ts_common_tree_pointers): Rename from
3298 lto_output_ts_common_tree_pointers.
3299 (write_ts_vector_tree_pointers): Rename from
3300 lto_output_ts_vector_tree_pointers.
3301 (write_ts_complex_tree_pointers): Rename from
3302 lto_output_ts_complex_tree_pointers.
3303 (write_ts_decl_minimal_tree_pointers): Rename from
3304 lto_output_ts_decl_minimal_tree_pointers.
3305 (write_ts_decl_common_tree_pointers): Rename from
3306 lto_output_ts_decl_common_tree_pointers.
3307 (write_ts_decl_non_common_tree_pointers): Rename from
3308 lto_output_ts_decl_non_common_tree_pointers.
3309 (write_ts_decl_with_vis_tree_pointers): Rename from
3310 lto_output_ts_decl_with_vis_tree_pointers.
3311 (write_ts_field_decl_tree_pointers): Rename from
3312 lto_output_ts_field_decl_tree_pointers.
3313 (write_ts_function_decl_tree_pointers): Rename from
3314 lto_output_ts_function_decl_tree_pointers.
3315 (write_ts_type_common_tree_pointers): Rename from
3316 lto_output_ts_type_common_tree_pointers.
3317 (write_ts_type_non_common_tree_pointers): Rename from
3318 lto_output_ts_type_non_common_tree_pointers.
3319 (write_ts_list_tree_pointers): Rename from
3320 lto_output_ts_list_tree_pointers.
3321 (write_ts_vec_tree_pointers): Rename from
3322 lto_output_ts_vec_tree_pointers.
3323 (write_ts_exp_tree_pointers): Rename from
3324 lto_output_ts_exp_tree_pointers.
3325 (write_ts_block_tree_pointers): Rename from
3326 lto_output_ts_block_tree_pointers.
3327 (write_ts_binfo_tree_pointers): Rename from
3328 lto_output_ts_binfo_tree_pointers.
3329 (write_ts_constructor_tree_pointers): Rename from
3330 lto_output_ts_constructor_tree_pointers.
3331 (write_ts_target_option): Rename from lto_output_ts_target_option.
3332 (write_ts_translation_unit_decl_tree_pointers): Rename from
3333 lto_output_ts_translation_unit_decl_tree_pointers.
3334 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
3335 Rename from lto_streamer_cache_add_to_node_array.
3336 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
3337 (record_common_node): Rename from lto_record_common_node.
3339 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
3341 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
3343 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
3345 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
3346 (ipa-reference.o): Likewise.
3347 * lto-section-out.c: Include data-streamer.h.
3348 * ipa-reference.c: Include data-streamer.h.
3350 2011-08-12 Nick Clifton <nickc@redhat.com>
3352 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
3353 * doc/md.texi (cmpstrn): Note that the comparison stops if both
3354 fetched bytes are zero.
3356 (cmpmem): Note that the comparison does not stop if both of the
3357 fetched bytes are zero.
3359 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
3361 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
3362 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
3363 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
3364 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
3365 to integer_type_node.
3366 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
3367 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
3368 * builtins.c (expand_builtin_in): Ditto.
3369 (mathfn_built_in_1): Ditto.
3370 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
3372 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
3374 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
3375 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
3376 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
3378 2011-08-12 Richard Guenther <rguenther@suse.de>
3380 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
3382 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
3384 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
3386 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
3388 * config/arm/arm.c (get_label_padding): New function.
3389 (create_fix_barrier, arm_reorg): Use it.
3391 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
3394 * config/i386/i386.md (*lea_5_zext): New.
3395 (*lea_6_zext): Ditto.
3396 * config/i386/predicates.md (const_32bit_mask): New predicate.
3397 (lea_address_operand): Reject AND.
3398 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
3399 const_32bit_mask immediate.
3400 (ix86_print_operand_address): Handle AND.
3401 (memory_address_length): Ditto.
3403 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
3404 Brian Hackett <bhackett1024@gmail.com>
3406 * plugin.def: Add event for finish_decl.
3407 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
3408 * c-decl.c (finish_decl): Invoke callbacks on above event.
3409 * doc/plugins.texi: Document above event.
3411 2011-08-11 Richard Guenther <rguenther@suse.de>
3413 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
3414 lookups, make looking through aggregate copies stronger.
3416 2011-08-11 Richard Henderson <rth@redhat.com>
3419 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
3421 2011-08-11 Richard Guenther <rguenther@suse.de>
3423 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
3424 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
3425 (vrp_visit_stmt): Likewise.
3427 2011-08-11 Richard Guenther <rguenther@suse.de>
3430 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
3431 load of the other piece with TREE_NO_WARNING.
3432 * tree-flow.h (warn_uninit): Adjust prototype.
3433 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
3434 the base variable and the expression that is used separately.
3435 Properly query all TREE_NO_WARNING flags.
3436 (struct walk_data): Remove.
3437 (warn_uninitialized_var): Likewise.
3438 (warn_uninitialized_vars): Do not walk gimple pieces but simply
3439 look at all SSA uses of the statement. Handle unused memory
3441 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
3443 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
3445 * config/rx/rx.md (movsicc): Allow register to register transfers.
3446 (*movsicc): Likewise.
3447 (*stcc): Restrict this pattern to EQ and NE compares.
3448 (*stcc_reg): New pattern. Works for any comparison but only for
3451 2011-08-11 Diego Novillo <dnovillo@google.com>
3453 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
3454 Call stream_write_tree instead of output_record_start.
3455 (lto_output_ts_binfo_tree_pointers): Likewise.
3457 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
3458 Convert it to a macro.
3459 (stream_read_tree): Likewise.
3461 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
3462 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
3464 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
3465 and tree_read_bitfields.
3466 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
3467 (lto_write_tree): Call it.
3468 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
3469 * streamer-hooks.h (struct streamer_hooks): Remove fields
3470 name, is_streamable and alloc_tree. Update all users.
3471 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
3472 (lto_materialize_tree): ... here.
3473 Handle CALL_EXPR codes.
3474 Remove call to lto_streamer_cache_append.
3475 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
3476 * tree-streamer.h (tree_read_bitfields): Declare.
3478 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
3479 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
3480 * tree-streamer.h (stream_read_tree): New. Replace all calls
3481 to lto_input_tree with it.
3482 (stream_write_tree): New. Replace all calls to lto_output_tree,
3483 lto_output_tree_ref and lto_output_tree_or_ref with it.
3484 * lto-streamer-in.c (lto_read_tree): Inline code from
3485 lto_streamer_read_tree.
3486 (lto_input_tree): Move from tree-streamer-in.c.
3487 * lto-streamer-out.c (lto_output_tree_ref): Make static.
3488 Remove handling of NULL values for EXPR.
3489 Do not handle EXPRs that are not indexable.
3490 (lto_write_tree): Move from tree-streamer-out.c.
3491 Inline lto_streamer_write_tree.
3492 (lto_output_tree): Move from tree-streamer-out.c.
3493 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
3494 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
3495 (lto_preload_common_nodes): Likewise.
3496 Remove assertions and adjustments for nodes
3497 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
3498 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
3499 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
3500 * lto-streamer.h (lto_input_tree): Declare.
3501 (lto_output_tree_ref): Remove.
3502 * streamer-hooks.h (struct streamer_hooks): Remove fields
3503 preload_common_nodes, indexable_with_decls_p,
3504 pack_value_fields, unpack_value_fields and output_tree_header.
3506 * tree-streamer-in.c (lto_materialize_tree): Make extern.
3507 (lto_input_tree_pointers): Likewise.
3508 (lto_read_tree): Move to lto-streamer-in.c.
3509 (lto_input_integer_cst): Make extern.
3510 (lto_get_pickled_tree): Likewise.
3511 (lto_get_builtin_tree): Likewise.
3512 (lto_input_tree): Move to lto-streamer-in.c.
3513 * tree-streamer-out.c (pack_value_fields): Make extern.
3514 (lto_output_tree_or_ref): Remove. Replace all callers with
3515 calls to stream_write_tree.
3516 (lto_output_builtin_tree): Make extern.
3517 (lto_streamer_write_tree): Inline into lto_write_tree.
3518 (lto_output_tree_pointers): Make extern.
3519 (lto_output_tree_header): Likewise.
3520 (lto_output_integer_cst): Likewise.
3521 (lto_write_tree): Move to lto-streamer-out.c.
3522 (lto_output_tree): Likewise.
3523 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
3524 (preload_common_nodes): Likewise.
3525 (lto_streamer_cache_create): Call it.
3526 * tree-streamer.h: Include streamer-hooks.h.
3527 (stream_write_tree): New.
3528 (stream_read_tree): New.
3529 (lto_input_tree): Remove.
3530 (lto_materialize_tree): Declare.
3531 (lto_input_tree_pointers): Declare.
3532 (lto_get_pickled_tree): Declare.
3533 (lto_get_builtin_tree): Declare.
3534 (lto_input_integer_cst): Declare.
3535 (lto_output_tree_header): Declare.
3536 (pack_value_fields): Declare.
3537 (lto_output_tree_pointers): Declare.
3538 (lto_output_integer_cst): Declare.
3539 (lto_output_builtin_tree): Declare.
3541 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3543 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
3544 only if producer writes to the register given by regno.
3546 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3547 Alexander Monakov <amonakov@ispras.ru>
3549 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
3550 (sched_get_condition_with_rev_uncached): ... this. Factor out
3551 condition caching logic into ...
3552 (sched_get_condition_with_rev): ... this. Reimplement. Do not
3553 attempt to use cache for instructions with zero luid.
3554 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
3555 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
3557 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3559 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
3560 get_seqno_for_a_jump. Update the caller.
3561 (get_seqno_by_succs): New. Use it ...
3562 (get_seqno_for_a_jump): ... here to find a seqno if looking at
3563 predecessors was not sufficient.
3564 (get_seqno_by_preds): Include head in iteration range, exclude insn.
3566 2011-08-11 Dmitry Melnik <dm@ispras.ru>
3568 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
3570 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3572 * sel-sched-ir.h (register_unavailable_p): Declare.
3573 * sel-sched-ir.c (register_unavailable_p): New. Use it...
3574 (set_unavailable_target_for_expr): ... here to properly test
3575 availability of a register.
3576 (speculate_expr): Ditto.
3577 * sel-sched.c (substitute_reg_in_expr): Ditto.
3578 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
3580 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3582 * sel-sched.c (verify_target_availability): Fix usage of
3585 2011-08-11 Dmitry Melnik <dm@ispras.ru>
3587 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
3588 recognized by cannot_copy_insn_p hook and volatile instructions.
3590 2011-08-11 Dmitry Melnik <dm@ispras.ru>
3592 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
3594 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
3596 * doc/md.texi (define_bypass): Say that the instruction names can
3597 be filename-style globs.
3598 * Makefile.in (FNMATCH_H): Define.
3599 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
3600 * genattrtab.c: Include fnmatch.h.
3601 (bypass_list): Change field name from "insn" to "pattern".
3602 (gen_bypass_1): Update accordingly.
3603 (process_bypasses): Use fnmatch to check for matches between
3604 insn reservations and define_bypasses.
3605 * genautomata.c: Include fnmatch.h.
3606 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
3607 and out_pattern respectively.
3608 (gen_bypass, insert_bypass): Update accordingly.
3609 (for_each_matching_insn, process_bypass_2, process_bypass_1)
3610 (process_bypass): New functions.
3611 (process_decls): Use process_bypass. Update after field name changes.
3613 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
3616 * config/avr/avr.md (smulqi3_highpart): New insn.
3617 (umulqi3_highpart): New insn.
3618 (*subqi3.ashiftrt7): New insn.
3619 (smulhi3_highpart): New expander.
3620 (umulhi3_highpart): Nex expander.
3621 (*smulhi3_highpart_call): New insn.
3622 (*umulhi3_highpart_call): New insn.
3623 (extend_u): New code attribute.
3624 (extend_prefix): Rename code attribute to extend_su.
3625 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
3626 widening QI/HI multiply.
3628 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
3630 PR tree-optimization/50039
3631 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
3632 that DEF_STMT has a stmt_vec_info.
3634 2011-08-10 Richard Guenther <rguenther@suse.de>
3636 * tree.h (can_trust_pointer_alignment): Remove.
3637 * builtins.c (can_trust_pointer_alignment): Remove.
3639 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3641 * c-typeck.c (scalar_to_vector): New function. Try scalar to
3643 (stv_conv): New enum for scalar_to_vector return type.
3644 (build_binary_op): Adjust.
3645 * doc/extend.texi: Description of scalar to vector expansion.
3647 2011-08-10 Richard Guenther <rguenther@suse.de>
3649 * tree.h (get_pointer_alignment): Remove max-align argument.
3650 (get_object_alignment): Likewise.
3651 * builtins.c (get_object_alignment_1): Adjust.
3652 (get_object_alignment): Remove max-align argument.
3653 (get_pointer_alignment): Likewise.
3654 (expand_builtin_strlen): Adjust.
3655 (expand_builtin_memcpy): Likewise.
3656 (expand_builtin_mempcpy_args): Likewise.
3657 (expand_builtin_strncpy): Likewise.
3658 (expand_builtin_memset_args): Likewise.
3659 (expand_builtin_memcmp): Likewise.
3660 (expand_builtin_strcmp): Likewise.
3661 (expand_builtin_strncmp): Likewise.
3662 (get_builtin_sync_mem): Likewise.
3663 (fold_builtin_memset): Likewise.
3664 (fold_builtin_memory_op): Likewise.
3665 (expand_builtin_memory_chk): Likewise.
3666 * emit-rtl.c (get_mem_align_offset): Likewise.
3667 (set_mem_attributes_minus_bitpos): Likewise.
3668 * expr.c (expand_assignment): Likewise.
3669 (expand_expr_real_1): Likewise.
3670 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
3671 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
3672 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
3673 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
3674 * value-prof.c (gimple_stringops_transform): Likewise.
3676 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
3678 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
3679 * doc/tm.texi: Regenerate.
3681 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
3684 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
3685 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
3686 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
3687 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
3688 shift target is unused.
3690 2011-08-10 Richard Guenther <rguenther@suse.de>
3692 PR tree-optimization/49937
3693 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
3694 using get_object_alignment_1.
3696 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
3698 * config/i386/i386.c (ix86_emit_i387_round): New function.
3699 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
3700 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
3701 Use ix86_emit_i387_round to expand round function for i387 math.
3702 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
3703 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
3705 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3707 * config/sync.c: Move to ../libgcc.
3708 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
3709 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
3712 2011-08-09 Anatoly Sokolov <aesok@post.ru>
3714 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
3715 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
3716 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
3717 Change 'from' and 'to' arguments type to reg_class_t.
3718 (TARGET_REGISTER_MOVE_COST): Define.
3720 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
3724 PR rtl-optimization/49990
3725 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
3726 ignore classes which can not change mode.
3727 (find_costs_and_classes): Ditto.
3729 2011-08-09 Richard Guenther <rguenther@suse.de>
3731 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
3732 information for ranges with only negative values.
3733 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
3734 BIT_AND_EXPR handling to handle ranges with negative values.
3736 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
3738 * config/i386/i386.c: Remove traling spaces.
3739 * config/i386/sse.md: Likewise.
3740 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
3741 (*fma_fmsub_<mode>): Likewise.
3742 (*fma_fnmadd_<mode>): Likewise.
3743 (*fma_fnmsub_<mode>): Likewise.
3745 2011-08-09 Nick Clifton <nickc@redhat.com>
3747 * config/rx/rx.md: Disable extender peepholes at -O3.
3749 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
3752 * config/i386/i386.md (reload_noff_load): New.
3753 (reload_noff_store): Ditto.
3754 * config/i386/i386.c (ix86_secondary_reload): Use
3755 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
3756 double-word moves from/to non-offsetable addresses instead of
3757 generating XMM temporary.
3759 2011-08-09 Anatoly Sokolov <aesok@post.ru>
3761 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
3763 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
3765 PR tree-optimization/50014
3766 * tree-vect-loop.c (vectorizable_reduction): Get def type before
3767 calling vect_get_vec_def_for_stmt_copy ().
3769 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
3771 PR rtl-optimization/49990
3772 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
3773 ignore classes which can not change mode.
3774 (find_costs_and_classes): Ditto.
3776 2011-08-08 Richard Henderson <rth@redhat.com>
3779 * config/i386/i386.c (ix86_expand_prologue): Call
3780 for SEH target gen_prologue_use instead of gen_blockage
3783 2011-08-08 Martin Jambor <mjambor@suse.cz>
3786 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
3789 2011-08-08 Diego Novillo <dnovillo@google.com>
3791 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
3792 (DATA_STREAMER_H): New.
3793 (GIMPLE_STREAMER_H): New.
3794 (TREE_STREAMER_H): New.
3795 (STREAMER_HOOKS_H): New.
3796 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
3797 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
3798 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
3799 (data-streamer.o): New.
3800 (data-streamer-in.o): New.
3801 (data-streamer-out.o): New.
3802 (gimple-streamer-in.o): New.
3803 (gimple-streamer-out.o): New.
3804 (streamer-hooks.o): New.
3805 (tree-streamer.o): New.
3806 (tree-streamer-in.o): New.
3807 (tree-streamer-out.o): New.
3808 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
3809 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
3810 GIMPLE_STREAMER_H and TREE_STREAMER_H.
3811 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
3812 GIMPLE_STREAMER_H and TREE_STREAMER_H.
3813 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
3814 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
3815 (ipa-inline-analysis.o): Likewise.
3816 (ipa-pure-const.o): Likewise.
3817 * data-streamer-in.c: New.
3818 * data-streamer-out.c: New.
3819 * data-streamer.c: New.
3820 * data-streamer.h: New.
3821 * gimple-streamer-in.c: New.
3822 * gimple-streamer-out.c: New.
3823 * gimple-streamer.h: New.
3824 * ipa-inline-analysis.c: Include data-streamer.h.
3825 * ipa-prop.c: Include data-streamer.h.
3826 * ipa-pure-const.c: Include data-streamer.h.
3827 * lto-cgraph.c: Include data-streamer.h.
3828 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
3829 (lto_input_widest_uint_uleb128): Likewise.
3830 (lto_input_sleb128): Likewise.
3831 (bp_unpack_var_len_unsigned): Likewise.
3832 (bp_unpack_var_len_int): Likewise.
3833 * lto-section-out.c (lto_output_uleb128_stream): Move to
3834 data-streamer-out.c.
3835 (lto_output_widest_uint_uleb128_stream): Likewise.
3836 (lto_output_sleb128_stream): Likewise.
3837 (bp_pack_var_len_unsigned): Likewise.
3838 (bp_pack_var_len_int): Likewise.
3839 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
3840 (struct string_slot): Remove. Update all users.
3841 (lto_tag_check_set): Make extern.
3842 (lto_tag_check_range): Move to lto-streamer.h.
3843 (lto_tag_check): Likewise.
3844 (hash_string_slot_node): Remove. Update all users.
3845 (eq_string_slot_node): Remove. Update all users.
3846 (string_for_index): Move to data-streamer-in.c
3847 (input_string_internal): Likewise.
3848 (input_string_cst): Move to tree-streamer-in.c.
3849 (input_identifier): Likewise.
3850 (lto_input_string): Move to data-streamer-in.c
3851 (input_record_start): Move to data-streamer.h
3852 (canon_file_name): Use new definition of struct string_slot
3853 from data-streamer.h. Set S_SLOT.LEN.
3854 (lto_input_location): Make extern.
3855 (lto_input_chain): Move to tree-streamer-in.c.
3856 (lto_init_eh): Make extern.
3857 (input_phi): Move to gimple-streamer-in.c.
3858 (input_gimple_stmt): Likewise.
3859 (input_bb): Likewise.
3860 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
3861 (unpack_ts_real_cst_value_fields): Likewise.
3862 (unpack_ts_fixed_cst_value_fields): Likewise.
3863 (unpack_ts_decl_common_value_fields): Likewise.
3864 (unpack_ts_decl_wrtl_value_fields): Likewise.
3865 (unpack_ts_decl_with_vis_value_fields): Likewise.
3866 (unpack_ts_function_decl_value_fields): Likewise.
3867 (unpack_ts_type_common_value_fields): Likewise.
3868 (unpack_ts_block_value_fields): Likewise.
3869 (unpack_ts_translation_unit_decl_value_fields): Likewise.
3870 (unpack_value_fields): Likewise.
3871 (lto_materialize_tree): Likewise.
3872 (lto_input_ts_common_tree_pointers): Likewise.
3873 (lto_input_ts_vector_tree_pointers): Likewise.
3874 (lto_input_ts_complex_tree_pointers): Likewise.
3875 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
3876 (lto_input_ts_decl_common_tree_pointers): Likewise.
3877 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
3878 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
3879 (lto_input_ts_field_decl_tree_pointers): Likewise.
3880 (lto_input_ts_function_decl_tree_pointers): Likewise.
3881 (lto_input_ts_type_common_tree_pointers): Likewise.
3882 (lto_input_ts_type_non_common_tree_pointers): Likewise.
3883 (lto_input_ts_list_tree_pointers): Likewise.
3884 (lto_input_ts_vec_tree_pointers): Likewise.
3885 (lto_input_ts_exp_tree_pointers): Likewise.
3886 (lto_input_ts_block_tree_pointers): Likewise.
3887 (lto_input_ts_binfo_tree_pointers): Likewise.
3888 (lto_input_ts_constructor_tree_pointers): Likewise.
3889 (lto_input_ts_target_option): Likewise.
3890 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
3891 (lto_input_tree_pointers): Likewise.
3892 (lto_get_pickled_tree): Likewise.
3893 (lto_get_builtin_tree): Likewise.
3894 (lto_read_tree): Likewise.
3895 (lto_input_integer_cst): Likewise.
3896 (lto_input_tree): Likewise.
3897 * lto-streamer-out.c: Include data-streamer.h,
3898 gimple-streamer.h and streamer-hooks.h.
3899 (struct string_slot): Move to data-streamer.h.
3900 (hash_string_slot_node): Likewise.
3901 (eq_string_slot_node): Likewise.
3902 (lto_string_index): Move to data-streamer-out.c.
3903 (lto_output_string_with_length): Likewise.
3904 (lto_output_string): Likewise.
3905 (output_string_cst): Move to tree-streamer-out.c.
3906 (output_identifier): Likewise.
3907 (output_zero): Move to data-streamer-out.c
3908 (output_uleb128): Likewise.
3909 (output_sleb128): Likewise.
3910 (output_record_start): Move to data-streamer.h
3911 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
3912 (pack_ts_real_cst_value_fields): Likewise.
3913 (pack_ts_fixed_cst_value_fields): Likewise.
3914 (pack_ts_decl_common_value_fields): Likewise.
3915 (pack_ts_decl_wrtl_value_fields): Likewise.
3916 (pack_ts_decl_with_vis_value_fields): Likewise.
3917 (pack_ts_function_decl_value_fields): Likewise.
3918 (pack_ts_type_common_value_fields): Likewise.
3919 (pack_ts_block_value_fields): Likewise.
3920 (pack_ts_translation_unit_decl_value_fields): Likewise.
3921 (pack_value_fields): Likewise.
3922 (lto_output_chain): Likewise.
3923 (lto_output_ts_common_tree_pointers): Likewise.
3924 (lto_output_ts_vector_tree_pointers): Likewise.
3925 (lto_output_ts_complex_tree_pointers): Likewise.
3926 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
3927 (lto_output_ts_decl_common_tree_pointers): Likewise.
3928 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
3929 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
3930 (lto_output_ts_field_decl_tree_pointers): Likewise.
3931 (lto_output_ts_function_decl_tree_pointers): Likewise.
3932 (lto_output_ts_type_common_tree_pointers): Likewise.
3933 (lto_output_ts_type_non_common_tree_pointers): Likewise.
3934 (lto_output_ts_list_tree_pointers): Likewise.
3935 (lto_output_ts_vec_tree_pointers): Likewise.
3936 (lto_output_ts_exp_tree_pointers): Likewise.
3937 (lto_output_ts_block_tree_pointers): Likewise.
3938 (lto_output_ts_binfo_tree_pointers): Likewise.
3939 (lto_output_ts_constructor_tree_pointers): Likewise.
3940 (lto_output_ts_target_option): Likewise.
3941 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
3942 (lto_output_tree_pointers): Likewise.
3943 (lto_output_tree_header): Likewise.
3944 (lto_output_builtin_tree): Likewise.
3945 (lto_write_tree): Likewise.
3946 (lto_output_integer_cst): Likewise.
3947 (lto_output_tree): Likewise.
3948 (output_phi): Move to gimple-streamer-out.c.
3949 (output_gimple_stmt): Likewise.
3950 (output_bb): Likewise.
3951 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
3952 (streamer_hooks): Move to streamer-hooks.c.
3953 (check_handled_ts_structures): Move to tree-streamer.c
3954 (lto_streamer_cache_add_to_node_array): Likewise.
3955 (lto_streamer_cache_insert_1): Likewise.
3956 (lto_streamer_cache_insert): Likewise.
3957 (lto_streamer_cache_insert_at): Likewise.
3958 (lto_streamer_cache_append): Likewise.
3959 (lto_streamer_cache_lookup): Likewise.
3960 (lto_streamer_cache_get): Likewise.
3961 (lto_record_common_node): Likewise.
3962 (lto_preload_common_nodes): Likewise.
3963 (lto_streamer_cache_create): Likewise.
3964 (lto_streamer_cache_delete): Likewise.
3965 (streamer_hooks_init): Move to streamer-hooks.c.
3966 * lto-streamer.h: Include diagnostic.h
3967 (struct output_block, struct lto_input_block,
3968 struct data_in, struct bitpack_d): Remove forward declarations.
3969 (struct bitpack_d): Move to data-streamer.h.
3970 (struct lto_streamer_cache_d): Move to tree-streamer.h.
3971 (struct streamer_hooks): Move to streamer-hooks.h.
3972 (bp_pack_var_len_unsigned): Move to data-streamer.h.
3973 (bp_pack_var_len_int): Likewise.
3974 (bp_unpack_var_len_unsigned): Likewise.
3975 (bp_unpack_var_len_int): Likewise.
3976 (lto_input_location): Declare.
3977 (lto_tag_check_set): Declare.
3978 (lto_init_eh): Declare.
3979 (lto_output_tree_ref): Declare.
3980 (lto_output_location): Declare.
3981 (bitpack_create): Move to data-streamer.h.
3982 (bp_pack_value): Likewise.
3983 (lto_output_bitpack): Likewise.
3984 (lto_input_bitpack): Likewise.
3985 (bp_unpack_value): Likewise.
3986 (lto_output_1_stream): Likewise.
3987 (lto_input_1_unsigned): Likewise.
3988 (lto_output_int_in_range): Likewise.
3989 (lto_input_int_in_range): Likewise.
3990 (bp_pack_int_in_range): Likewise.
3991 (bp_unpack_int_in_range): Likewise.
3992 (lto_output_enum): Likewise.
3993 (lto_input_enum): Likewise.
3994 (bp_pack_enum): Likewise.
3995 (bp_unpack_enum): Likewise.
3996 * streamer-hooks.c: New.
3997 * streamer-hooks.h: New.
3998 * tree-streamer-in.c: New.
3999 * tree-streamer-out.c: New.
4000 * tree-streamer.c: New.
4001 * tree-streamer.h: New.
4003 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4005 * gthr-posix95.h: Remove.
4006 * gthr.h [_PTHREADS95]: Remove.
4007 * configure.ac (enable_threads): Remove posix95.
4008 * configure: Regenerate.
4009 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
4011 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
4014 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
4016 (ix86_print_operand_address): Handle zero-extended addresses.
4017 (memory_address_length): Add length of addr32 prefix for
4018 zero-extended addresses.
4019 (ix86_secondary_reload): Handle moves to/from double-word general
4020 registers from/to zero-extended addresses.
4021 * config/i386/predicates.md (lea_address_operand): Reject
4022 zero-extended operands.
4024 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
4027 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
4029 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
4030 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
4032 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
4033 (_Unwind_Context_Reg_Val): Likewise.
4034 (_Unwind_Get_Unwind_Word): Likewise.
4035 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
4036 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
4037 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
4038 for EXTENDED_CONTEXT_BIT.
4039 (__frame_state_for): Likewise.
4040 (uw_init_context_1): Likewise.
4041 (_Unwind_GetGR): Updated.
4042 (_Unwind_SetGR): Likewise.
4043 (_Unwind_GetGRPtr): Likewise.
4044 (_Unwind_SetGRPtr): Likewise.
4045 (_Unwind_SetGRValue): Likewise.
4046 (_Unwind_GRByValue): Likewise.
4047 (uw_install_context_1): Likewise.
4049 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
4050 ASSUME_EXTENDED_UNWIND_CONTEXT.
4051 * doc/tm.texi: Regenerated.
4053 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4055 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
4057 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4059 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
4061 (DEC Alpha Options, -mtune): Likewise.
4062 (MIPS Options, -march): native is supported on IRIX.
4064 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4066 * config/sparc/driver-sparc.c: New file.
4067 * config/sparc/x-sparc: New file.
4068 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
4069 * config/sparc/sparc.opt (native): New value for enum processor_type.
4070 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
4071 * config/sparc/sparc.c (sparc_option_override): Abort if
4072 PROCESSOR_NATIVE gets here.
4073 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
4074 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
4075 DRIVER_SELF_SPECS): Define.
4076 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
4077 (SPARC Options, -mtune): Likewise.
4078 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
4080 * configure: Regenerate.
4081 * Makefile.in (EXTRA_GCC_LIBS): Set.
4082 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
4083 (cpp$(exeext)): Likewise.
4085 2011-08-08 Richard Guenther <rguenther@suse.de>
4087 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
4089 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
4092 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
4094 PR tree-optimization/50005
4095 * ipa-inline-analysis (remap_predicate): Add cast to
4096 silence signed/unsigned comparison warning.
4098 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
4100 * modulo-sched.c (get_sched_window): Use a table for the debug output.
4101 Print the current ii.
4102 (sms_schedule_by_order): Reduce whitespace in dump line.
4104 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
4106 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
4107 and one loop for successors. Fix upper bound of memory range.
4109 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
4112 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
4113 (TARGET_INSTANTIATE_DECLS): New define.
4115 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
4116 Mikael Morin <mikael.morin@sfr.fr>
4118 * Makefile.in (INCLUDES_FOR_TARGET): New.
4119 (LIBGCC2_CFLAGS): Use it.
4120 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
4122 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
4124 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
4125 frame->save_regs_using_mov calculation.
4127 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
4129 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
4130 * config/i386/sse.md (castmode): New mode attribute.
4131 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
4132 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
4134 2011-08-05 Jan Hubicka <jh@suse.cz>
4137 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
4139 2011-08-05 Jan Hubicka <jh@suse.cz>
4142 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
4144 (create_emultls_var):New function.
4145 (ipa_lower_emutls): Handle aliases correctly.
4147 2011-08-05 Jan Hubicka <jh@suse.cz>
4150 * ipa-inline.c (recursive_inlining): Look through aliases.
4152 2011-08-05 Jason Merrill <jason@redhat.com>
4154 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
4155 declarations to beginning of function.
4157 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
4159 PR rtl-optimization/49900
4160 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
4161 ensure basic blocks stay in the same order.
4163 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
4165 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
4167 (s390_expand_atomic): Same.
4169 2011-08-05 Richard Henderson <rth@redhat.com>
4172 * dwarf2cfi.c (scan_insn_after): Split out of ...
4173 (scan_trace): ... here. Correctly place notes wrt sequences.
4175 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
4176 Richard Henderson <rth@redhat.com>
4179 * expr.c (fixup_args_size_notes): Look through no-op moves.
4181 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
4183 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
4184 of "m" for operand 0. Add type and mode attribute.
4185 (*pushxf_nointeger"): Use "<" constraint for operand 0.
4186 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
4187 constraint instead of "o" for opreand 1.
4188 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
4189 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
4190 operand 0, alternative 4.
4191 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
4193 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
4195 * config/i386/predicates.md (lea_address_operand): Rename from
4196 no_seg_address_operand.
4197 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
4198 (*lea_1_zext): Ditto.
4200 (*lea_2_zext): Ditto.
4202 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
4204 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
4205 parts.base and parts.index.
4206 * config/i386/predicates.md (aligned_operand): Ditto.
4207 (cmpxchg8b_pic_memory_operand): Ditto.
4209 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4211 * config/soft-fp: Move to ../libgcc.
4212 * Makefile.in (SFP_MACHINE): Remove.
4213 (libgcc-support): Remove $(SFP_MACHINE) dependency.
4214 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
4215 * config/arm/t-arm-softfp: Move to
4216 ../libgcc/config/arm/t-softfp.
4217 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
4218 * config/c6x/t-c6x-softfp: Remove.
4219 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
4220 * config/i386/t-fprules-softfp: Move to
4221 ../libgcc/config/t-softfp-tf.
4222 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
4223 * config/ia64/t-fprules-softfp: Remove.
4224 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
4225 * config/lm32/t-fprules-softfp: Remove.
4226 * config/moxie/sfp-machine.h: Remove.
4227 * config/moxie/t-moxie-softfp: Remove.
4228 * config/rs6000/darwin-ldouble-format: Move to
4229 ../libgcc/config/rs6000/ibm-ldouble-format.
4230 * config/rs6000/darwin-ldouble.c: Move to
4231 ../libgcc/config/rs6000/ibm-ldouble.c
4232 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
4233 * config/rs6000/libgcc-ppc64.ver: Likewise.
4234 * config/rs6000/sfp-machine.h: Likewise.
4235 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
4236 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
4237 (LIB2FUNCS_EXTRA): Remove.
4238 (TARGET_LIBGCC2_CFLAGS): Remove.
4239 * config/rs6000/t-aix52: Likewise
4240 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
4241 $(srcdir)/config/rs6000/darwin-ldouble.c.
4242 (SHLIB_MAPFILES): Remove.
4243 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
4244 $(srcdir)/config/rs6000/darwin-ldouble.c.
4245 * config/rs6000/t-fprules-softfp: Move to
4246 ../libgcc/config/t-softfp-sfdf.
4247 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
4248 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
4249 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
4250 $(srcdir)/config/rs6000/darwin-ldouble.c.
4251 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
4252 * config/score/t-score-softfp: Remove.
4253 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
4254 soft-fp/t-softfp from tmake_file.
4255 (arm*-*-uclinux*): Likewise.
4256 (arm*-*-ecos-elf): Likewise.
4257 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
4258 (arm*-*-rtems*): Likewise.
4259 (arm*-*-elf): Likewise.
4260 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
4262 (moxie-*-uclinux*): Likewise.
4263 (moxie-*-rtems*): Likewise.
4264 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
4266 (lm32-*-rtems*): Likewise.
4267 (lm32-*-uclinux*): Likewise.
4268 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
4269 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
4270 (powerpc-*-linux*, powerpc64-*-linux*): Remove
4271 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
4272 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
4274 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
4276 (tic6x-*-uclinux): Likewise.
4277 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
4278 soft-fp/t-softfp from tmake_file.
4279 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
4280 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
4281 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
4282 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
4283 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
4285 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4287 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
4288 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
4289 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
4291 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
4292 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
4294 * config/arm/t-vxworks: Likewise.
4295 * config/arm/t-wince-pe: Likewise.
4296 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
4297 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4298 * config/bfin/t-bfin-elf: Likewise.
4299 * config/bfin/t-bfin-linux: Likewise.
4300 * config/bfin/t-bfin-uclinux: Likewise.
4301 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
4303 * config/fr30/t-fr30: Likewise.
4304 * config/frv/t-frv: Likewise.
4305 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
4306 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4307 * config/m32c/t-m32c: Likewise.
4308 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
4309 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4310 * config/mcore/t-mcore: Likewise.
4311 * config/mep/t-mep: Likewise.
4312 * config/microblaze/t-microblaze: Likewise.
4313 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
4314 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4315 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
4316 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4317 * config/mn10300/t-linux: Remove.
4318 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4319 * config/pdp11/t-pdp11: Likewise.
4320 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
4321 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
4322 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4323 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
4324 * config/rs6000/t-aix52: Likewise.
4325 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
4326 $(srcdir)/config/rs6000/ppc64-fp.c.
4327 * config/rs6000/t-fprules-fpbit: Remove.
4328 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
4329 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4330 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
4331 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4332 * config/sparc/t-elf: Likewise.
4333 * config/sparc/t-leon: Likewise.
4334 * config/sparc/t-leon3: Likewise.
4335 * config/spu/t-spu-elf: Likewise.
4336 (DPBIT_FUNCS): Remove.
4337 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4338 * config/v850/t-v850: Likewise.
4339 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
4340 (avr-*-*): Likewise.
4341 (h8300-*-rtems*): Set libgcc_tm_file.
4342 (h8300-*-elf*): Likewise.
4343 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
4345 (powerpc-*-eabisim*): Likewise.
4346 (powerpc-*-elf*): Likewise.
4347 (powerpc-*-eabialtivec*): Likewise.
4348 (powerpc-xilinx-eabi*): Likewise.
4349 (powerpc-*-eabi*): Likewise.
4350 (powerpc-*-rtems*): Likewise.
4351 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
4352 (powerpcle-*-elf*): Likewise.
4353 (powerpcle-*-eabisim*): Likewise.
4354 (powerpcle-*-eabi*): Likewise.
4355 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
4356 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
4357 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
4360 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4362 * Makefile.in (UNWIND_H): Remove.
4363 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
4364 ../libgcc/Makefile.in.
4365 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
4366 (LIBUNWINDDEP): Remove.
4367 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
4368 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
4369 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
4370 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
4371 Don't copy $(UNWIND_H).
4372 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
4373 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
4374 * aclocal.m4: Regenerate.
4375 * configure: Regenerate.
4376 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
4377 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
4378 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
4379 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
4380 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
4381 * config/arm/libunwind.S, config/arm/pr-support.c,
4382 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
4383 ../libgcc/config/arm.
4384 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
4385 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
4386 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
4387 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
4388 ($(T)frvend$(objext)): Likewise.
4389 * config/ia64/t-glibc (LIB2ADDEH): Remove.
4390 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
4391 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
4392 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
4393 ../libgcc/config/ia64.
4394 * config/ia64/t-hpux (LIB2ADDEH): Remove.
4395 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
4396 * config/ia64/t-vms (LIB2ADDEH): Remove.
4397 * config/ia64/vms.h (UNW_IVMS_MODE,
4398 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
4399 * config/picochip/t-picochip (LIB2ADDEH): Remove.
4400 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
4401 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
4402 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
4403 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
4404 $(srcdir)/../libgcc to refer to unwinder sources.
4405 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
4406 * config/t-darwin (LIB2ADDEH): Remove.
4407 * config/t-freebsd (LIB2ADDEH): Remove.
4408 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
4409 * config/t-libunwind-elf: Move to ../libgcc/config.
4410 * config/t-linux (LIB2ADDEH): Remove.
4411 * config/t-sol2 (LIB2ADDEH): Remove.
4412 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
4413 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
4415 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
4417 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
4419 * doc/invoke.texi: Document core-avx-i.
4421 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4423 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
4425 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
4427 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
4428 result of multiple results reduction when extracting the final
4429 value using scalar code.
4431 2011-08-05 Richard Guenther <rguenther@suse.de>
4433 PR tree-optimization/49984
4434 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
4436 2011-08-05 Richard Guenther <rguenther@suse.de>
4438 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
4439 return true for constant integer ranges.
4440 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
4441 BIT_IOR_EXPR handling.
4443 2011-08-04 Kai Tietz <ktietz@redhat.com>
4445 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
4446 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
4448 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
4450 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
4451 pattern def statement, and its access macro.
4452 (NUM_PATTERNS): Set to 5.
4453 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
4454 pattern def statement.
4455 (vect_transform_loop): Likewise.
4456 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
4457 function vect_recog_over_widening_pattern ().
4458 (vect_operation_fits_smaller_type): New function.
4459 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
4461 (vect_pattern_recog_1): Move the code that marks pattern
4462 statements to vect_mark_pattern_stmts (), and call it. Update
4464 * tree-vect-stmts.c (vect_supportable_shift): New function.
4465 (vect_analyze_stmt): Handle pattern def statement.
4466 (new_stmt_vec_info): Initialize pattern def statement.
4468 2011-08-04 Richard Henderson <rth@redhat.com>
4471 * config/i386/i386.c (ix86_expand_call): Don't create nested
4472 PARALLELs for TARGET_VZEROUPPER.
4473 (ix86_split_call_vzeroupper): Fix extraction of the original call.
4474 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
4475 recognize nested PARALLELs.
4476 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
4477 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
4478 *sibcall_value_pop_vzeroupper): Likewise.
4480 2011-08-04 Richard Henderson <rth@redhat.com>
4483 * calls.c (expand_call): Use fixup_args_size_notes for
4485 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
4486 in non-standard modes.
4488 2011-08-04 Jakub Jelinek <jakub@redhat.com>
4490 * gcc.c (self_spec): New variable.
4491 (static_specs): Add self_spec.
4492 (main): Call do_self_spec on "self_spec" specs after reading
4493 user specs files. Move compare_debug handling right after that.
4495 2011-08-04 Richard Guenther <rguenther@suse.de>
4497 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
4498 (value_range_nonnegative_p): New function.
4499 (ssa_name_nonnegative_p): Use it.
4500 (value_range_constant_singleton): New function.
4501 (op_with_constant_singleton_value_range): Use it.
4502 (extract_range_from_binary_expr_1): New function, split out from ...
4503 (extract_range_from_binary_expr): ... this. Remove fallback
4504 constant folding done here.
4506 2011-08-04 Richard Guenther <rguenther@suse.de>
4508 PR tree-optimization/49806
4509 * tree-vrp.c (op_with_boolean_value_range_p): New function.
4510 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
4511 a new statement for a final conversion to bool.
4513 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
4515 * gengtype-state.c: Include "bconfig.h" if
4516 GENERATOR_FILE is defined, "config.h" otherwise.
4517 * gengtype.c: Likewise.
4518 * gengtype-lex.l: Likewise.
4519 * gengtype-parse.c: Likewise.
4520 * Makefile.in (gengtype-lex.o-warn): New variable.
4521 (plugin_resourcesdir): Likewise.
4522 (plugin_bindir): Likewise.
4523 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
4524 (MOSTLYCLEANFILES): Add gengtype$(exeext).
4525 (native): Depend on gengtype$(exeext) is $enable_plugin
4527 (gtype.state): Depend on s-gtype. Use temporary file.
4528 (gengtype-lex.o): New rule.
4529 (gengtype-parse.o): Likewise.
4530 (gengtype-state.o): Likewise.
4531 (gengtype$(exeext)): Likewise.
4532 (install-gengtype): Likewise.
4533 (gengtype.o): Likewise.
4534 (build/gengtype.o): Depend on version.h.
4535 (build/gengtype-state): Depend on double-int.h, version.h,
4536 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
4537 (install-plugin): Depend on install-gengtype.
4539 2011-08-04 Jakub Jelinek <jakub@redhat.com>
4542 * tree.h (init_attributes): New prototype.
4543 * attribs.c (init_attributes): No longer static.
4545 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4547 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
4550 2011-08-03 David Li <davidxl@google.com>
4552 * tree-optimize.c (execute_fixup_cfg): Fix up entry
4553 outgoing edge counts after inlining.
4555 2011-08-03 David Li <davidxl@google.com>
4557 * profile.c (compute_branch_probabilities): Compute
4558 function frequency after profile annotation.
4560 2011-08-04 Alan Modra <amodra@gmail.com>
4562 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
4563 use_backchain_to_restore_sp initialisation.
4564 (rs6000_legitimate_offset_address_p): Simplify offset test.
4566 2011-08-03 Richard Henderson <rth@redhat.com>
4568 * config/spu/spu.md: Use define_c_enum instead of define_constants.
4569 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
4572 2011-08-03 Richard Henderson <rth@redhat.com>
4575 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
4577 2011-08-03 Jakub Jelinek <jakub@redhat.com>
4579 PR tree-optimization/49948
4580 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
4582 2011-08-03 Anatoly Sokolov <aesok@post.ru>
4584 * config/m32c/m32c.c (class_sizes): Remove.
4585 (reduce_class): Change arguments and return type to reg_class_t.
4586 Change type cc var to HARD_REG_SET. Change type best var to
4587 reg_class_t. Change type best_size var to unsigned int. Remove
4588 initialization class_sizes var. Use reg_class_size array instead
4589 of class_sizes. Use reg_class_contents array instead
4592 2011-08-03 Richard Guenther <rguenther@suse.de>
4595 * fold-const.c (fold_binary_loc): Only associate
4596 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
4599 2011-08-03 Alan Modra <amodra@gmail.com>
4601 PR rtl-optimization/49941
4602 * jump.c (mark_jump_label): Comment.
4603 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
4604 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
4605 (mark_used_flags): Don't mark RETURN.
4607 2011-08-03 Richard Guenther <rguenther@suse.de>
4609 PR tree-optimization/49938
4610 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
4611 deal with a POLYNOMIAL_CHREC.
4613 2011-08-03 Revital Eres <revital.eres@linaro.org>
4615 * modulo-sched.c (calculate_stage_count,
4616 calculate_must_precede_follow, get_sched_window,
4617 try_scheduling_node_in_cycle, remove_node_from_ps): Add
4619 (update_node_sched_params, set_must_precede_follow, optimize_sc):
4621 (reset_sched_times): Call update_node_sched_params.
4622 (sms_schedule): Call optimize_sc.
4623 (get_sched_window): Change function arguments.
4624 (sms_schedule_by_order): Update call to get_sched_window.
4625 Call set_must_precede_follow.
4626 (calculate_stage_count): Add function argument.
4628 2011-08-02 Richard Henderson <rth@redhat.com>
4632 * reg-notes.def (REG_ARGS_SIZE): New.
4633 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
4634 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
4635 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
4636 different stack levels.
4637 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
4638 (maybe_move_args_size_note): New.
4639 (combine_stack_adjustments_for_block): Use it.
4640 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
4641 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
4642 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
4643 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
4645 (queued_args_size): Remove.
4646 (add_cfi_args_size): Assert size is non-negative.
4647 (stack_adjust_offset, dwarf2out_args_size): Remove.
4648 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
4649 (notice_args_size, notice_eh_throw): New.
4650 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
4651 (dwarf2out_frame_debug_adjust_cfa): Likewise.
4652 (dwarf2out_frame_debug_cfa_offset): Likewise.
4653 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
4654 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
4655 (change_cfi_row): Don't emit args_size.
4656 (maybe_record_trace_start_abnormal): Split out from ...
4657 (maybe_record_trace_start): Here. Set args_size_undefined.
4658 (create_trace_edges): Update to match.
4659 (scan_trace): Handle REG_ARGS_SIZE.
4660 (connect_traces): Connect args_size between EH insns.
4661 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
4662 * explow.c (suppress_reg_args_size): New.
4663 (adjust_stack_1): Split out from ...
4664 (adjust_stack): ... here.
4665 (anti_adjust_stack): Use it.
4666 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
4667 * expr.c (mem_autoinc_base): New.
4668 (fixup_args_size_notes): New.
4669 (emit_single_push_insn_1): Rename from emit_single_push_insn.
4670 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
4671 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
4672 * reload1.c (reload_as_needed): Likewise.
4673 * rtl.h (fixup_args_size_notes): Declare.
4675 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
4678 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
4680 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4681 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
4683 2011-08-02 Richard Henderson <rth@redhat.com>
4685 * config/h8300/h8300.c (push, pop): Return the insn.
4686 (h8300_swap_into_er6): Generate correct unwind info.
4687 (h8300_swap_out_of_er6): Likewise.
4688 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
4689 complex cfa expression.
4690 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
4692 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
4694 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4696 2011-08-02 Richard Henderson <rth@redhat.com>
4699 * config/h8300/h8300.c (h8300_move_ok): New.
4700 * config/h8300/h8300-protos.h: Declare it.
4701 * config/h8300/h8300.md (P): New mode iterator.
4702 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
4703 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
4704 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
4705 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
4706 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
4707 and pushqi1_h8300hs_normal; use PRE_MODIFY and
4708 register_no_sp_elim_operand.
4709 (*pushhi1_h8300hs_<P>): Similarly.
4710 (pushqi1, pushhi1, pushhi1_h8300): Remove.
4711 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
4713 2011-08-02 Richard Henderson <rth@redhat.com>
4716 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
4718 2011-08-02 Jakub Jelinek <jakub@redhat.com>
4720 * c-parser.c (enum c_parser_prec): New enum, moved from within
4721 c_parser_binary_expression.
4722 (c_parser_binary_expression): Add PREC argument. Stop parsing
4723 if operator has lower or equal precedence than PREC.
4724 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
4726 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
4727 Adjust c_finish_omp_atomic caller.
4728 (c_parser_omp_taskyield): New function.
4729 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
4730 (c_parser_omp_clause_name): Handle final and mergeable clauses.
4731 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
4733 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
4734 and PRAGMA_OMP_CLAUSE_MERGEABLE.
4735 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
4736 (c_parser_omp_clause_reduction): Handle min and max.
4737 * c-typeck.c (c_finish_omp_clauses): Don't complain about
4738 const qualified predetermined vars in firstprivate clause.
4739 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4740 Handle MIN_EXPR and MAX_EXPR.
4741 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
4742 and OMP_CLAUSE_MERGEABLE.
4743 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
4744 and OMP_ATOMIC_CAPTURE_NEW.
4745 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
4746 OMP_CLAUSE_MERGEABLE.
4747 (omp_clause_code_name): Likewise.
4748 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4749 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
4750 and OMP_CLAUSE_MERGEABLE.
4751 (OMP_CLAUSE_FINAL_EXPR): Define.
4752 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
4753 OMP_CLAUSE_MERGEABLE.
4754 (expand_task_call): Likewise.
4755 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
4756 (expand_omp_atomic_fetch_op): Handle cases where old or new
4757 value is needed afterwards.
4758 (expand_omp_atomic): Call expand_omp_atomic_load resp.
4759 expand_omp_atomic_store.
4760 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
4761 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
4762 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
4763 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4764 * tree-nested.c (convert_nonlocal_omp_clauses,
4765 convert_local_omp_clauses): Likewise.
4766 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
4767 OMP_ATOMIC_CAPTURE_NEW): New.
4768 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
4769 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
4771 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
4772 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
4773 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4775 2011-08-02 Kai Tietz <ktietz@redhat.com>
4777 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
4779 (ssa_forward_propagate_and_combine): Interprete result of
4780 forward_propagate_comparison.
4781 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
4782 boolean-typed operands for comparisons.
4784 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
4786 * config/avr/libgcc.S: Gather related function in the
4788 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
4789 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
4791 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
4792 __udivmodsi4, __divmodsi4, __prologue_saves__,
4793 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
4794 __do_copy_data, __do_clear_bss, __do_global_ctors,
4795 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
4797 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
4800 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
4801 (stack_protect_test): The pattern compares ptr_mode value.
4803 2011-08-02 Alan Modra <amodra@gmail.com>
4805 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
4806 note for save_LR_around_toc_setup sequence.
4808 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
4810 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
4812 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
4813 Joseph Myers <joseph@codesourcery.com>
4815 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
4816 * hwint.c: Include diagnostic-core.h.
4818 (gcd): Moved here...
4821 (least_common_multiple): Moved here...
4822 * hwint.h (gcd): ... from here.
4823 (least_common_multiple): ... from here.
4824 (HOST_WIDE_INT_MIN): New.
4825 (HOST_WIDE_INT_MAX): New.
4826 (abs_hwi): Declared.
4828 (pos_mul_hwi): Declared.
4829 (mul_hwi): Declared.
4830 (least_common_multiple): Declared.
4831 * omega.c (check_pos_mul): Removed.
4832 (check_mul): Removed.
4833 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
4834 mul_hwi instead of check_mul.
4836 2011-08-01 Richard Henderson <rth@redhat.com>
4839 * config/avr/avr.h (PUSH_ROUNDING): New.
4840 * config/avr/avr.md (pushqi1): Rename from *pushqi.
4841 (*pushhi, *pushsi, *pushsf): Remove.
4842 (MPUSH): New mode iterator.
4843 (push<MPUSH>1): New expander.
4845 2011-08-01 Anatoly Sokolov <aesok@post.ru>
4847 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
4848 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
4849 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
4850 mmix_preferred_output_reload_class): Remove.
4851 * config/mmix/mmix.c (mmix_preferred_reload_class,
4852 mmix_preferred_output_reload_class): Make static. Change rclass
4853 argument and return type to reg_class_t.
4854 (TARGET_PREFERRED_RELOAD_CLASS,
4855 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4857 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
4859 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
4862 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
4865 * config/i386/i386.md (PTR): New.
4866 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
4867 (stack_protect_test): Likewise.
4868 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
4869 (stack_tls_protect_set_<mode>): Likewise.
4870 (stack_tls_protect_test_<mode>): Likewise.
4872 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
4875 * config/i386/i386.c (ix86_address_subreg_operand): New.
4876 (ix86_decompose_address): Use ix86_address_subreg_operand.
4877 (ix86_legitimate_address_p): Do not assert that subregs satisfy
4878 register_no_elim_operand in DImode.
4880 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
4882 PR tree-optimization/49926
4883 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
4884 in a chain doesn't have uses both inside and outside the loop.
4886 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
4888 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
4889 * config/avr/avr-devices.c (avr_mcu_types): Use it.
4890 * config/avr/avr-mcus.def (AVR_MCU): Use it.
4891 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
4892 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
4893 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
4894 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
4895 to detect if XJMP must not be skipped.
4897 2011-08-02 Alan Modra <amodra@gmail.com>
4899 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
4901 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
4902 (rs6000_emit_prologue): Don't prematurely return when
4903 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
4904 save_toc_in_prologue case.
4905 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
4908 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
4910 * config/avr/avr-devices.c: Delete SVN property svn:executable.
4911 * config/avr/predicates.md: Ditto.
4912 * config/avr/driver-avr.c: Ditto.
4913 * config/avr/genopt.sh: Set SVN property svn:executable to *.
4915 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
4917 * calls.c (emit_library_call_value_1): Declare size only if
4918 BLOCK_REG_PADDING is defined.
4920 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
4923 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
4924 (x86_64-*-*): Likewise.
4925 * config/i386/i386.opt (mlzcnt): New.
4926 * config/i386/abmintrin.h: File removed.
4927 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
4928 * config/i386/lzcntintrin.h: ... here. New file.
4929 (__lzcnt): Rename to ...
4930 (__lzcnt32): ... this.
4931 * config/i386/bmiintrin.h (head): Update copyright year.
4932 (__lzcnt_u16): Removed.
4933 (__lzcnt_u32): Likewise.
4934 (__lzcnt_u64): Likewise.
4935 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
4936 is defined, remove abmintrin.h.
4937 * config/i386/cpuid.h (bit_LZCNT): New.
4938 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4940 * config/i386/i386-c.c (ix86_target_macros_internal): Define
4941 __LZCNT__ if needed.
4942 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
4943 (ix86_option_override_internal): Handle LZCNT option.
4944 (ix86_valid_target_attribute_inner_p): Likewise.
4945 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
4946 * config/i386/i386.h (TARGET_LZCNT): New.
4947 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
4948 * config/i386/i386.md (clz<mode>2): Update insn constraint.
4949 (clz<mode>2_lzcnt): Likewise.
4950 * doc/invoke.texi: Mention -mlzcnt option.
4951 * doc/extend.texi: Likewise.
4953 2011-08-01 Julian Brown <julian@codesourcery.com>
4955 * configure.ac (fixed-point): Add ARM support.
4956 * configure: Regenerate.
4957 * config/arm/arm.c (arm_fixed_mode_set): New struct.
4958 (arm_set_fixed_optab_libfunc): New.
4959 (arm_set_fixed_conv_libfunc): New.
4960 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
4962 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
4963 return values in SImode.
4964 (arm_return_in_msb): Return fixed-point types in the msb.
4965 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
4967 (arm_scalar_mode_supported_p): Support fixed-point modes.
4968 (arm_vector_mode_supported_p): Support vector fixed-point modes.
4969 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
4970 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
4971 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
4972 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
4973 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
4975 (qaddsub_suf): New mode attribute.
4976 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
4978 * config/arm/predicates.md (sat_shift_operator): New predicate.
4979 * config/arm/arm-fixed.md: New.
4980 * config/arm/arm.md: Include arm-fixed.md.
4981 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
4983 2011-08-01 Julian Brown <julian@codesourcery.com>
4985 * calls.c (emit_library_call_value_1): Support padding for libcall
4986 arguments and return values.
4987 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
4988 downwards in big-endian mode.
4990 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4993 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
4994 * config/sol2-protos.h: Likewise.
4995 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
4997 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
4998 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
5000 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
5002 2011-08-01 Julian Brown <julian@codesourcery.com>
5004 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
5006 2011-08-01 Julian Brown <julian@codesourcery.com>
5008 * final.c (output_addr_const): Print fixed-point constants as
5011 2011-08-01 Richard Guenther <rguenther@suse.de>
5013 * stor-layout.c (initialize_sizetypes): Properly sign-extend
5014 bitsiztype TYPE_MAX_VALUE.
5016 2011-08-01 Julian Brown <julian@codesourcery.com>
5018 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
5021 2011-07-31 Richard Henderson <rth@redhat.com>
5023 * config/h8300/crti.asm: Add flags to .section directive.
5024 * config/h8300/crtn.asm: Likewise.
5026 2011-07-31 Richard Henderson <rth@redhat.com>
5028 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
5029 * tree.c (build_common_tree_nodes): Likewise.
5031 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
5034 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
5035 (divsi3_i1): Likewise.
5037 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5039 PR tree-optimization/49749
5040 * tree-ssa-reassoc.c (get_rank): New forward declaration.
5041 (PHI_LOOP_BIAS): New macro.
5042 (phi_rank): New function.
5043 (loop_carried_phi): Likewise.
5044 (propagate_rank): Likewise.
5045 (get_rank): Add calls to phi_rank and propagate_rank.
5047 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
5049 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
5051 (PTRDIFF_TYPE): Likewise.
5053 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
5056 * config/i386/i386.md (strset): Do not expand strset_singleop
5057 when %eax or $edi are fixed.
5058 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
5059 (*strsetsi_1): Ditto.
5060 (*strsethi_1): Ditto.
5061 (*strsetqi_1): Ditto.
5062 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
5063 (*rep_stossi): Ditto.
5064 (*rep_stosqi): Ditto.
5065 (*strlenqi_1): Ditto.
5066 (cmpstrnsi): Also fail when %ecx is fixed.
5067 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
5068 (*cmpstrnqi_1): Ditto.
5069 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
5070 (*strmovsi_1): Ditto.
5071 (*strmovhi_1): Ditto.
5072 (*strmovqi_1): Ditto.
5073 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
5074 (*rep_movsi): Ditto.
5075 (*rep_movqi): Ditto.
5077 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
5080 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
5081 Disable instruction scheduling for non-ColdFire targets.
5082 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
5084 2011-07-31 Revital Eres <revital.eres@linaro.org>
5086 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
5087 of anti-dep edge from a branch.
5088 (add_cross_iteration_register_deps): Create anti-dep edge from
5091 2011-07-31 Revital Eres <revital.eres@linaro.org>
5093 * modulo-sched.c: Change comment.
5094 (reset_sched_times): Fix print message.
5095 (print_partial_schedule): Add print info.
5097 2011-07-31 Tom de Vries <tom@codesourcery.com>
5100 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
5101 get_object_alignment and TYPE_ALIGN.
5103 2011-07-30 Tom de Vries <tom@codesourcery.com>
5106 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
5107 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
5109 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5111 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
5113 (cpu_types): New array.
5114 (cputype): New function.
5115 (host_detect_local_cpu): Only define buf, f if !__sgi__.
5116 Use scaninvent instead of /proc/cpuinfo if __sgi__.
5117 * config.host: Also use driver-native.o, mips/x-native on
5119 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
5120 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
5121 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
5123 2011-07-29 Jakub Jelinek <jakub@redhat.com>
5127 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
5128 in nested parallel and outer is a gimple_reg, mark it as addressable
5129 and set its bit in task_shared_vars bitmap too.
5131 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
5133 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
5135 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5137 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
5138 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
5139 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
5140 AMASK_LOCKPFTCHOK): Define.
5141 (host_detect_local_cpu): Remove buf, f, cpu_names.
5142 Define cpu_types, implver, amask.
5143 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
5145 * config.host: Also use driver-alpha.o, alpha/x-alpha on
5147 * config/alpha/osf5.h [__alpha__ || __alpha]
5148 (host_detect_local_cpu): Declare.
5149 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
5150 (DRIVER_SELF_SPECS): Define.
5152 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
5155 * config/i386/i386.md (*load_tp_x32): New.
5156 (*load_tp_x32_zext): Ditto.
5157 (*add_tp_x32): Ditto.
5158 (*add_tp_x32_zext): Ditto.
5159 (*load_tp_<mode>): Disable for TARGET_X32 targets.
5160 (*add_tp_<mode>): Ditto.
5161 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
5162 ptr_mode and convert to Pmode if needed.
5164 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
5167 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
5168 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
5169 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
5170 Add X to register footprint: Clobber r26/r27.
5172 2011-07-29 Richard Guenther <rguenther@suse.de>
5174 * builtins.c (fold_builtin_signbit): Build the comparison
5177 2011-07-29 Richard Guenther <rguenther@suse.de>
5179 PR tree-optimization/49893
5180 * tree-predcom.c (suitable_reference_p): Volatile references
5183 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
5186 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
5187 (__ctzsi2): Result for 0 may be undefined.
5188 (__ctzhi2): Result for 0 may be undefined.
5189 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
5190 (__popcountsi2): Ditto. And don't clobber r26.
5191 (__popcountdi2): Ditto. And don't clobber r27.
5192 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
5193 (parityhi2): New expand.
5194 (paritysi2): New expand.
5195 (popcounthi2): New expand.
5196 (popcountsi2): New expand.
5197 (clzhi2): New expand.
5198 (clzsi2): New expand.
5199 (ctzhi2): New expand.
5200 (ctzsi2): New expand.
5201 (ffshi2): New expand.
5202 (ffssi2): New expand.
5203 (copysignsf3): New insn.
5204 (bswapsi2): New expand.
5205 (*parityhi2.libgcc): New insn.
5206 (*parityqihi2.libgcc): New insn.
5207 (*paritysihi2.libgcc): New insn.
5208 (*popcounthi2.libgcc): New insn.
5209 (*popcountsi2.libgcc): New insn.
5210 (*popcountqi2.libgcc): New insn.
5211 (*popcountqihi2.libgcc): New insn-and-split.
5212 (*clzhi2.libgcc): New insn.
5213 (*clzsihi2.libgcc): New insn.
5214 (*ctzhi2.libgcc): New insn.
5215 (*ctzsihi2.libgcc): New insn.
5216 (*ffshi2.libgcc): New insn.
5217 (*ffssihi2.libgcc): New insn.
5218 (*bswapsi2.libgcc): New insn.
5220 2011-07-29 Richard Guenther <rguenther@suse.de>
5222 * tree-vrp.c (get_value_range): Only set parameter default
5223 definitions to varying, leave others at undefined.
5224 (extract_range_from_binary_expr): Fix undefined handling.
5225 (vrp_visit_phi_node): Handle merged undefined state.
5227 2011-07-29 Wei Guozhi <carrot@google.com>
5229 PR rtl-optimization/49799
5230 * combine.c (make_compound_operation): Check if the bit field is valid
5231 before change it to bit field extraction.
5233 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
5235 PR rtl-optimization/49891
5236 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
5237 newly created returnjumps.
5239 2011-07-28 DJ Delorie <dj@redhat.com>
5241 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
5242 local frame in a naked function, and produce a suitable error for
5245 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
5246 registers to be reloaded in HI classes when the target is HI.
5248 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
5250 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
5251 bound_one, bound_two.
5253 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
5256 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
5258 (translate_clast): Same.
5259 (translate_clast_assignment): New.
5261 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
5263 PR tree-optimization/49876
5264 * sese.c (rename_uses): Do not return false on gloog_error: set
5265 the new_expr to integer_zero_node and continue code generation.
5266 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
5268 2011-07-28 Jakub Jelinek <jakub@redhat.com>
5271 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
5272 arguments also check if they aren't initialized with a MODE_INT
5273 mode of the same size.
5275 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
5277 * expr.c (get_bit_range): Handle *MEM_REF's.
5279 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
5281 * rtlanal.c (tablejump_p): False for returns.
5282 * reorg.c (first_active_target_insn): New static function.
5283 (find_end_label): Set JUMP_LABEL for a new returnjump.
5284 (optimize_skip, get_jump_flags, rare_destination,
5285 mostly_true_jump, get_branch_condition,
5286 steal_delay_list_from_target, own_thread_p,
5287 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
5288 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
5289 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
5290 * jump.c (delete_related_insns): Likewise.
5291 (jump_to_label_p): New function.
5292 (redirect_target): New static function.
5293 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
5294 (redirect_jump_1): Assert that the new label is nonnull.
5295 (redirect_jump): Likewise.
5296 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
5297 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
5299 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
5300 changed. Ensure that the right label is passed to redirect_jump.
5301 * function.c (emit_return_into_block,
5302 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
5303 ret_rtx in their JUMP_LABEL.
5304 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
5305 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
5306 pass ret_rtx as label.
5307 * cfglayout.c (fixup_reorder_chain): Use
5308 force_nonfallthru_and_redirect rather than force_nonfallthru.
5309 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
5310 * rtl.h (ANY_RETURN_P): New macro.
5311 (jump_to_label_p): Declare.
5312 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
5314 (mark_target_live_regs): Likewise.
5315 * basic-block.h (force_nonfallthru_and_redirect): Declare.
5316 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
5317 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
5318 alpha_tablejump_best_label): Remove functions.
5319 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
5320 alpha_tablejump_best_label): Remove declarations.
5321 * config/sh/sh.c (barrier_align, split_branches): Adjust for
5322 ret_rtx in JUMP_LABELs.
5323 * config/arm/arm.c (is_jump_table): Likewise.
5325 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
5327 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
5328 special predicate. Remove explicit mode checks.
5330 2011-07-28 Jakub Jelinek <jakub@redhat.com>
5332 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
5333 DW_AT_data_member_location containing just DW_OP_plus_uconst.
5336 * dwarf2out.c (size_of_die, value_format, output_die): Use
5337 DW_FORM_udata instead of DW_FORM_data[48] for
5338 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
5340 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
5342 * config/i386/i386.md (*tls_global_dynamic_64): Update
5345 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
5348 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
5349 tls_symbolic_operand check. Update code sequence for TARGET_X32.
5350 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
5351 (tls_dynamic_gnu2_64): Ditto.
5352 (*tls_dynamic_gnu2_lea_64): Ditto.
5353 (*tls_dynamic_gnu2_call_64): Ditto.
5354 (*tls_dynamic_gnu2_combine_64): Ditto.
5356 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
5358 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
5360 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
5363 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
5365 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5367 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
5368 before the core constraints. Adjust attributes.
5369 ("*thumb2_movdf_vfp"): Likewise.
5371 2011-07-28 Kai Tietz <ktietz@redhat.com>
5373 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
5374 (simplify_truth_ops_using_ranges): Likewise.
5375 (build_assert_expr_for): Likewise.
5376 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
5377 and handle BIT_NOT_EXPR for truth-operation.
5379 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
5382 Undo r176835 from trunk
5383 2011-07-27 Georg-Johann Lay
5385 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
5388 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
5389 Add _muluhisi3, _mulshisi3, _usmulhisi3.
5390 * config/avr/libgcc.S (__mulsi3): Rewrite.
5391 (__mulhisi3): Rewrite.
5392 (__umulhisi3): Rewrite.
5393 (__usmulhisi3): New.
5397 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
5399 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
5400 (pseudo_register_or_const_int_operand): New.
5401 (combine_pseudo_register_operand): New.
5405 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
5406 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
5407 (any_extend, any_extend2): New code iterators.
5408 (extend_prefix): New code attribute.
5409 (mulsi3): Rewrite. Turn insn to expander.
5412 (usmulhisi3): New expander.
5413 (*mulsi3): New insn-and-split.
5414 (mulu<mode>si3): New insn-and-split.
5415 (muls<mode>si3): New insn-and-split.
5416 (mulohisi3): New insn-and-split.
5417 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
5418 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
5419 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
5420 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
5422 (*mulsi3_call): Rewrite.
5423 (*mulhisi3_call): Rewrite.
5424 (*umulhisi3_call): Rewrite.
5425 (*usmulhisi3_call): New insn.
5426 (*muluhisi3_call): New insn.
5427 (*mulshisi3_call): New insn.
5428 (*mulohisi3_call): New insn.
5429 (extendqihi2): Use combine_pseudo_register_operand as predicate
5431 (extendqisi2): Ditto.
5432 (zero_extendqihi2): Ditto.
5433 (zero_extendqisi2): Ditto.
5434 (zero_extendhisi2): Ditto.
5435 (extendhisi2): Ditto. Don't early-clobber operand 0.
5437 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
5439 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
5441 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
5443 PR tree-optimization/49471
5444 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
5445 iv only when the largest type is unsigned. Do not call
5446 lang_hooks.types.type_for_size.
5448 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
5451 * graphite-poly.c (apply_poly_transforms): Disable legality check
5452 after an openscop read.
5454 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
5457 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
5458 copy_bb_and_scalar_dependences.
5459 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
5460 (graphite_copy_stmts_from_block): Update call to rename_uses.
5461 (copy_bb_and_scalar_dependences): Update call to
5462 graphite_copy_stmts_from_block.
5463 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
5465 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
5468 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
5469 (__ctzsi2): Result for 0 may be undefined.
5470 (__ctzhi2): Result for 0 may be undefined.
5471 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
5472 (__popcountsi2): Ditto. And don't clobber r26.
5473 (__popcountdi2): Ditto. And don't clobber r27.
5474 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
5475 (parityhi2): New expand.
5476 (paritysi2): New expand.
5477 (popcounthi2): New expand.
5478 (popcountsi2): New expand.
5479 (clzhi2): New expand.
5480 (clzsi2): New expand.
5481 (ctzhi2): New expand.
5482 (ctzsi2): New expand.
5483 (ffshi2): New expand.
5484 (ffssi2): New expand.
5485 (copysignsf3): New insn.
5486 (bswapsi2): New expand.
5487 (*parityhi2.libgcc): New insn.
5488 (*parityqihi2.libgcc): New insn.
5489 (*paritysihi2.libgcc): New insn.
5490 (*popcounthi2.libgcc): New insn.
5491 (*popcountsi2.libgcc): New insn.
5492 (*popcountqi2.libgcc): New insn.
5493 (*popcountqihi2.libgcc): New insn-and-split.
5494 (*clzhi2.libgcc): New insn.
5495 (*clzsihi2.libgcc): New insn.
5496 (*ctzhi2.libgcc): New insn.
5497 (*ctzsihi2.libgcc): New insn.
5498 (*ffshi2.libgcc): New insn.
5499 (*ffssihi2.libgcc): New insn.
5500 (*bswapsi2.libgcc): New insn.
5502 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
5504 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
5505 the mode of symbolic_opreand RTXes.
5507 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
5509 * config/i386/predicates.md (x86_64_movabs_operand): Return false
5510 for pic_32bit_operand RTXes.
5511 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
5514 2011-07-27 Kai Tietz <ktietz@redhat.com>
5516 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
5518 (ix86_handle_abi_attribute): Allow function attributes
5519 ms_abi/sysv_abi in 32-bit mode, too.
5520 * doc/extend.texi: Adjust attribute documentation.
5522 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
5523 expression handling.
5524 (and_var_with_comparison_1): Likewise.
5526 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
5528 * params.h (ALLOW_STORE_DATA_RACES): New.
5529 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
5530 * Makefile.in (expr.o): Depend on PARAMS_H.
5531 * machmode.h (get_best_mode): Add argument.
5532 * fold-const.c (optimize_bit_field_compare): Add argument to
5534 (fold_truthop): Same.
5535 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
5536 * expr.c (emit_group_store): Same.
5537 (copy_blkmode_from_reg): Same.
5538 (write_complex_part): Same.
5539 (optimize_bitfield_assignment_op): Add argument.
5540 Add argument to get_best_mode.
5541 (get_bit_range): New.
5542 (expand_assignment): Calculate maxbits and pass it down accordingly.
5543 (store_field): New argument.
5544 (expand_expr_real_2): New argument to store_field. Include params.h.
5545 * expr.h (store_bit_field): New argument.
5546 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
5547 into account maxbits.
5548 * calls.c (store_unaligned_arguments_into_pseudos): New argument
5550 * expmed.c (store_bit_field_1): New argument. Use it.
5551 (store_bit_field): Same.
5552 (store_fixed_bit_field): Same.
5553 (store_split_bit_field): Same.
5554 (extract_bit_field_1): Pass new argument to get_best_mode.
5555 (extract_bit_field): Same.
5556 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
5557 * doc/invoke.texi: Document parameter allow-store-data-races.
5559 2011-07-27 Jakub Jelinek <jakub@redhat.com>
5561 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
5563 2011-07-27 Kai Tietz <ktietz@redhat.com>
5565 * tree-vrp.c (extract_range_from_binary_expr): Remove
5566 TRUTH-binary cases and add new bitwise-cases.
5567 (extract_range_from_assignment): Likewise.
5568 (register_edge_assert_for_1): Likeiwise.
5569 (register_edge_assert_for): Likewise.
5570 (simplify_truth_ops_using_ranges): Likewise.
5571 (simplify_stmt_using_ranges): Likewise.
5573 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
5576 * config/i386/i386.c (ix86_delegitimize_address): Call
5577 simplify_gen_subreg for PIC with mode of x only if modes of
5578 x and orig_x are different.
5580 2011-07-26 Jakub Jelinek <jakub@redhat.com>
5582 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
5583 to GC allocated copy of the string.
5584 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
5585 before .debug_line, not after it.
5587 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
5590 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
5591 evolution_function_is_affine_p on CHREC_RIGHT.
5593 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
5595 * tree-data-ref.c (max_stmt_executions_tree): Do not call
5596 lang_hooks.types.type_for_size.
5598 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
5601 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
5602 loops using wrapping semantics.
5604 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
5607 * tree-scalar-evolution.c (instantiate_scev_r): Return
5608 chrec_dont_know for ADDR_EXPR.
5610 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
5611 H.J. Lu <hongjiu.lu@intel.com>
5615 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
5616 if legitimize_tls_address returned operand in wrong mode. Allow
5617 SImode and DImode symbolic operand for PIC. Call convert_to_mode
5618 if legitimize_pic_address returned operand in wrong mode.
5620 2011-07-26 Martin Jambor <mjambor@suse.cz>
5622 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
5623 return false for invariants.
5625 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
5627 * config/i386/i386.md (add->lea splitter): Implement using SWI
5628 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
5629 (add->lea zext splitter): Change operand 2 predicate to
5630 x86_64_nonmemory_operand.
5632 2011-07-26 Richard Guenther <rguenther@suse.de>
5634 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
5635 frequency makes everything hot.
5637 2011-07-26 Richard Guenther <rguenther@suse.de>
5639 PR tree-optimization/49840
5640 * tree-vrp.c (range_fits_type_p): Properly handle full
5641 double-int precision.
5643 2011-07-26 Martin Jambor <mjambor@suse.cz>
5646 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
5648 (update_specialized_profile): Likewise.
5650 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
5651 H.J. Lu <hongjiu.lu@intel.com>
5656 * config/i386/i386.md (i): Change SImode attribute to "e".
5657 (g): Change SImode attribute to "rme".
5658 (di): Change SImode attribute to "nF".
5659 (general_operand): Change SImode attribute to x86_64_general_operand.
5660 (general_szext_operand): Change SImode attribute to
5661 x86_64_szext_general_operand.
5662 (immediate_operand): Change SImode attribute to
5663 x86_64_immediate_operand.
5664 (nonmemory_operand): Change SImode attribute to
5665 x86_64_nonmemory_operand.
5666 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
5667 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
5668 (*lea_1): Use SWI48 mode iterator.
5669 (*lea_1_zext): New insn pattern.
5670 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
5672 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
5673 Update operand constraints.
5674 (addsi_1_zext): Ditto.
5675 (*add<mode>2): Ditto.
5676 (*addsi_3_zext): Ditto.
5677 (*subsi_1_zext): Ditto.
5678 (*subsi_2_zext): Ditto.
5679 (*subsi_3_zext): Ditto.
5680 (*addsi3_carry_zext): Ditto.
5681 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
5682 (*mulsi3_1_zext): Ditto.
5684 (*andsi_1_zext): Ditto.
5685 (*andsi_2_zext): Ditto.
5686 (*<any_or:code>si_1_zext): Ditto.
5687 (*<any_or:code>si_2_zext): Ditto.
5688 (*test<mode>_1): Use <general_operand> predicate for operand 1.
5689 (*and<mode>_2): Ditto.
5690 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
5691 (add->lea splitter): Check operand modes in insn constraint. Extend
5692 operands less than SImode wide to SImode.
5693 (add->lea zext splitter): Do not extend input operands to DImode.
5694 (*lea_general_1): Handle only QImode and HImode operands.
5695 (*lea_general_2): Ditto.
5696 (*lea_general_3): Ditto.
5697 (*lea_general_1_zext): Remove.
5698 (*lea_general_2_zext): Ditto.
5699 (*lea_general_3_zext): Ditto.
5700 (*lea_general_4): Check operand modes in insn constraint. Extend
5701 operands less than SImode wide to SImode.
5702 (ashift->lea splitter): Ditto.
5703 * config/i386/i386.c (ix86_print_operand_address): Print address
5704 registers with 'q' modifier on 64bit targets.
5705 * config/i386/predicates.md (pic_32bit_opreand): Define as special
5706 predicate. Reject non-SI and non-DI modes.
5708 2011-07-25 Andrew Pinski <apinski@cavium.com>
5711 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
5712 TREE_THIS_NOTRAP into the inner most MEM_REF.
5713 Always copy TREE_THIS_VOLATILE.
5714 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
5715 arguments are not volatile references.
5717 2011-07-25 Richard Henderson <rth@redhat.com>
5719 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
5720 * final.c (final_scan_insn): Don't test for it.
5721 (rest_of_clean_state): Likewise.
5723 2011-07-25 Richard Henderson <rth@redhat.com>
5726 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
5727 (emit_frame_save): Likewise.
5728 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
5729 insn onto a dummy blockage insn after the join label.
5731 2011-07-25 Richard Henderson <rth@redhat.com>
5733 * dwarf2cfi.c (dw_trace_info): Add ID member.
5734 (get_trace_index): Remove. Change users to use ID member.
5735 (before_next_cfi_note): New.
5736 (connect_traces): Remove unreachable traces before the main loop.
5737 Look across one trace and generate remember/restore_state if needed.
5739 2011-07-25 Richard Henderson <rth@redhat.com>
5741 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
5743 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
5745 * genattr.c (write_upcase, gen_attr <enum definition writing>):
5747 * genattr-common.c ... here.
5748 (main): Call gen_attr.
5749 * optc-gen.awk: Make generated program include insn-attr-common.h .
5750 * Makefile.in (oprions.o): Depend on insn-attr-common.h
5752 2011-07-25 Anatoly Sokolov <aesok@post.ru>
5754 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5755 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
5756 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
5757 m32c_print_operand, m32c_print_operand_address): Remove.
5758 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
5759 Change return type to bool. Change argument type to bool.
5760 (m32c_print_operand, m32c_print_operand_address): Make static.
5761 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
5762 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5764 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5766 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
5767 attributes): Document mmap.
5769 2011-07-25 Anatoly Sokolov <aesok@post.ru>
5771 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5772 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
5773 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
5774 mmix_print_operand, mmix_print_operand_address): Remove.
5775 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
5776 Change return type to bool. Change argument type to bool.
5777 (mmix_print_operand, mmix_print_operand_address): Make static.
5778 (mmix_intval, mmix_output_condition): Change 'x' argument type
5780 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
5781 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5783 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
5786 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
5787 shift counter for x << x and x >> x shifts.
5789 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5792 * config.gcc: Reject *-*-solaris2 configuration.
5794 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
5796 PR tree-optimization/49809
5797 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
5798 gimple_get_lhs instead of gimple_assign_lhs.
5800 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5802 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
5804 2011-07-25 Richard Guenther <rguenther@suse.de>
5806 PR tree-optimization/49822
5807 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
5808 more. Make sure to preserve stmts with side-effects. Properly
5809 handle virtual defs, follow a longer def chain.
5811 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
5816 * Makefile.in: Do not flatten c-family directory when installing
5819 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
5821 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
5822 original nodes if we are dealing with virtual clones.
5824 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
5826 * common/config/c6x/c6x-common.c: New file.
5828 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
5830 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
5832 2011-07-25 Richard Guenther <rguenther@suse.de>
5834 PR tree-optimization/49715
5835 * tree-vrp.c: Include expr.h and optabs.h.
5836 (range_fits_type_): New function.
5837 (simplify_float_conversion_using_ranges): Likewise.
5838 (simplify_stmt_using_ranges): Call it.
5839 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
5840 * optabs.c (can_float_p): Export.
5841 * optabs.h (can_float_p): Declare.
5843 2011-07-25 Richard Guenther <rguenther@suse.de>
5845 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
5846 (get_value_range): For out-of-range SSA names or names created
5847 after propagation return a read-only varying range.
5848 (dump_all_value_ranges): Adjust.
5849 (vrp_initialize): Likewise.
5850 (vrp_finalize): Likewise.
5852 2011-07-24 Richard Henderson <rth@redhat.com>
5855 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
5858 2011-07-24 Richard Henderson <rth@redhat.com>
5861 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
5862 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
5864 2011-07-24 Richard Henderson <rth@redhat.com>
5867 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
5869 2011-07-24 Richard Henderson <rth@redhat.com>
5871 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
5872 Zero args_size for abnormal edges. Adjust all callers.
5874 2011-07-24 Richard Henderson <rth@redhat.com>
5877 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
5879 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
5882 * collect2.c (demangle_flag): Removed.
5884 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
5886 * configure.ac (demangler_in_ld): Default to yes.
5887 * configure: Regenerated.
5888 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
5889 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
5890 --no-demangle options straight through to ld. When
5891 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
5892 way that has the intended effect on Windows.
5894 2011-07-23 Richard Henderson <rth@redhat.com>
5896 * dwarf2cfi.c: Include basic-block.h.
5897 (dw_label_info): Remove.
5898 (trace_work_list, trace_index): New.
5899 (remember_row, emit_cfa_remember): Remove.
5900 (dw_trace_info_hash, dw_trace_info_eq): New.
5901 (get_trace_index, get_trace_info): New.
5902 (save_point_p): New.
5903 (free_cfi_row): Remove.
5904 (add_cfi): Do not emit DW_CFA_remember_state.
5905 (cfa_row_equal_p): New.
5906 (barrier_args_size): Remove.
5907 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
5908 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
5909 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
5910 (dwarf2out_cfi_begin_epilogue): Remove.
5911 (dwarf2out_frame_debug_restore_state): Remove.
5912 (connect_traces, create_pseudo_cfg): New.
5913 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
5914 * Makefile.in (dwarf2cfi.o): Update.
5916 2011-07-23 Richard Henderson <rth@redhat.com>
5918 * dwarf2cfi.c (dw_trace_info): New.
5919 (dw_label_info): New.
5920 (cie_return_save): New.
5922 (queued_args_size): Rename from args_size. Update all users.
5923 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
5924 (def_cfa_1): Use cur_trace instead of cfa_*.
5925 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
5926 (clobbers_queued_reg_save, reg_saved_in): Likewise.
5927 (dwarf2out_frame_debug_expr): Likewise.
5928 (create_cie_data): Split out from ...
5929 (execute_dwarf2_frame): ... here. Initialize cur_trace.
5931 2011-07-23 Richard Henderson <rth@redhat.com>
5933 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
5934 Update all users to match.
5935 (execute_dwarf2_frame): Free reg_saved_in_data.
5937 2011-07-23 Richard Henderson <rth@redhat.com>
5939 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
5940 (queued_reg_saves): Don't GTY. Change to a VEC.
5941 (queue_reg_save): Update to match.
5942 (dwarf2out_flush_queued_reg_saves): Likewise.
5943 (clobbers_queued_reg_save): Likewise.
5944 (reg_saved_in): Likewise.
5945 (execute_dwarf2_frame): Free queued_reg_saves.
5947 2011-07-23 Richard Henderson <rth@redhat.com>
5949 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
5951 2011-07-23 Richard Henderson <rth@redhat.com>
5953 * dwarf2cfi.c (add_cfi_args_size): Split out from...
5954 (dwarf2out_args_size): ... here.
5955 (add_cfi_restore): Split out from ...
5956 (dwarf2out_frame_debug_cfa_restore): ... here.
5957 (def_cfa_0): Split out from ...
5958 (def_cfa_1): ... here.
5959 (cfi_oprnd_equal_p, cfi_equal_p): New.
5960 (change_cfi_row): New.
5961 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
5962 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
5963 (output_cfis): Remove.
5964 * dwarf2out.c (output_fde): Simplify output_cfi loop.
5965 (dwarf2out_switch_text_section): Don't call output_cfis.
5966 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
5967 * dwarf2out.h: Update decls.
5968 (enum dw_val_class): Add dw_val_class_none.
5970 2011-07-23 Richard Henderson <rth@redhat.com>
5972 * dwarf2cfi.c (update_row_reg_save): New.
5973 (dwarf2out_frame_debug_cfa_expression): Use it.
5974 (dwarf2out_frame_debug_cfa_restore): Likewise.
5975 (reg_save): Likewise. Do not emit DW_CFA_same_value.
5977 2011-07-23 Richard Henderson <rth@redhat.com>
5979 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
5981 2011-07-23 Richard Henderson <rth@redhat.com>
5983 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
5985 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
5986 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
5987 (cur_row, remember_row): New.
5988 (def_cfa_1): Use cur_row instead of the old_* variables.
5989 (dwarf2out_frame_debug_restore_state): Similarly.
5990 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
5991 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
5992 (dwarf2out_frame_debug_adjust_cfa): Likewise.
5993 (dwarf2out_frame_debug_cfa_offset): Likewise.
5994 (dwarf2out_frame_debug_expr): Likewise.
5995 (execute_dwarf2_frame): Set up cur_row.
5996 * dwarf2out.h (struct cfa_loc): Mark for GTY.
5998 2011-07-23 Richard Henderson <rth@redhat.com>
6000 * basic-block.h (EDGE_PRESERVE): New.
6001 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
6002 * bb-reorder.c: Include except.h.
6003 (fix_up_crossing_landing_pad): New.
6004 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
6005 landing pads in the right partition. Duplicate as necessary.
6006 (partition_hot_cold_basic_blocks): Fix up DF info after
6007 duplicating landing pads.
6008 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
6009 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
6010 is set properly. Validate that EH edges are not CROSSING.
6011 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
6012 (dw2_build_landing_pads): ... here.
6013 (convert_to_eh_region_ranges): Remove code to fixup crossing
6015 * except.h (expand_dw2_landing_pad_for_region): Declare.
6016 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
6018 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
6021 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
6023 2011-07-22 Jason Merrill <jason@redhat.com>
6025 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
6027 2011-07-22 Richard Henderson <rth@redhat.com>
6029 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
6031 2011-07-22 Richard Henderson <rth@redhat.com>
6033 * jump.c (maybe_propagate_label_ref): Split out of...
6034 (mark_all_labels): ... here. Do not attempt label_ref
6035 propagation while in cfglayout mode.
6037 2011-07-22 Jakub Jelinek <jakub@redhat.com>
6039 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
6040 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
6041 (dwarf_attr_name): Handle DW_AT_GNU_macros.
6042 (dwarf2out_define): If the vector is empty and
6043 lineno is 0, emit a dummy entry first.
6044 (dwarf2out_undef): Likewise. Remove redundant semicolon.
6045 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
6046 optimize_macinfo_range): New functions.
6047 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
6048 mergeable, optimize longer strings using
6049 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
6050 optimize longer sequences of define/undef ops from headers
6051 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
6052 emit a section headers.
6053 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
6054 and macinfo_section_label to DEBUG_MACRO_SECTION
6055 resp. DEBUG_MACRO_SECTION_LABEL.
6056 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
6057 instead of DW_AT_macro_info.
6060 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
6062 * dwarf2out.c: Include opts.h.
6063 (dchar_p): New typedef. Define heap VEC for it.
6064 (producer_string): New variable.
6065 (gen_producer_string): New function.
6066 (gen_compile_unit_die): Use it.
6067 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
6068 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
6069 * doc/invoke.texi: Document -grecord-gcc-switches and
6070 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
6071 to -frecord-gcc-switches description.
6073 2011-07-22 Jason Merrill <jason@redhat.com>
6076 * c-decl.c (c_linkage_bindings): Define.
6078 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
6081 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
6083 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
6085 * config/i386/i386.c (ix86_option_override_internal): Disallow
6087 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
6088 only for TARGET_LP64.
6089 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
6091 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
6093 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
6094 avoid warnings when GCC is built with a C++ compiler.
6096 2011-07-22 Martin Jambor <mjambor@suse.cz>
6099 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
6100 if decl node is in another partition, call cgraph_get_node only once.
6102 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
6104 * config.gcc (x86_64-*-linux*): Set
6105 default_gnu_indirect_function to yes.
6107 2011-07-22 Richard Guenther <rguenther@suse.de>
6109 PR tree-optimization/45819
6110 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
6111 preserve volatile and notrap flags.
6113 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6114 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6117 * configure.ac: Test AM_ICONV with CXX.
6118 * configure: Regenerate.
6119 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
6121 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6124 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
6125 (set_cloog_options): Use it.
6127 2011-07-22 Jakub Jelinek <jakub@redhat.com>
6130 * gcc.c (main): Call stack_limit_increase (64MB).
6131 * toplev.c (toplev_main): Likewise.
6133 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
6135 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
6136 instead of force_reg.
6138 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
6140 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
6141 needed and use force_reg after convert.
6142 (ix86_expand_call): Likewise.
6143 (ix86_expand_special_args_builtin): Likewise.
6144 (ix86_expand_builtin): Likewise.
6146 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6150 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
6151 in parameter. Initialize v1 and v2 based on the values returned
6152 by clast_name_to_lb_ub.
6153 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
6155 (type_for_clast_bin): Same.
6156 (type_for_clast_expr): Same.
6157 (type_for_clast_eq): Update calls to type_for_clast_expr.
6158 (type_for_clast_for): Same.
6159 (build_iv_mapping): Same.
6160 * graphite-ppl.h (value_min): New.
6162 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6164 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
6165 types whenever possible.
6167 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6169 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
6171 (new_clast_name_index): Add lb and ub parameters.
6172 (free_clast_name_index): New.
6173 (clast_name_to_lb_ub): New.
6174 (save_clast_name_index): Add lb and ub parameters.
6175 (compute_bounds_for_param): New.
6176 (type_for_level): Removed.
6177 (type_for_clast_for): Removed level parameter. Do not call
6179 (graphite_create_new_loop): Store the lb and ub for the clast_name
6180 of the iterator of the loop that has been generated.
6181 (graphite_create_new_loop_guard): Remove parameter level.
6182 (create_params_index): Store the lb and ub of each parameter.
6183 (gloog): Use free_clast_name_index. Pass to create_params_index
6186 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6188 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
6189 (max_precision_type): Inline max_signed_precision_type.
6190 (type_for_clast_red): Use max_precision_type.
6191 (type_for_clast_bin): Same.
6192 (type_for_clast_for): Same.
6194 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6196 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
6198 (gcc_type_for_value): Renamed type_for_value.
6199 (gcc_type_for_clast_term): Renamed type_for_clast_term.
6200 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
6201 (gcc_type_for_clast_red): Renamed type_for_clast_red.
6202 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
6203 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
6204 (graphite_translate_clast_equation): Update calls.
6205 (compute_type_for_level): Renamed type_for_level.
6206 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
6207 (build_iv_mapping): Update calls.
6208 (graphite_create_new_loop_guard): Same.
6210 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6212 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
6215 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6217 * graphite-clast-to-gimple.c (struct ivs_params): New.
6218 (clast_name_to_gcc): Use ivs_params to pass around parameters.
6219 (clast_to_gcc_expression): Same.
6220 (clast_to_gcc_expression_red): Same.
6221 (gcc_type_for_clast_term): Same.
6222 (gcc_type_for_clast_expr): Same.
6223 (gcc_type_for_clast_red): Same.
6224 (gcc_type_for_clast_bin): Same.
6225 (gcc_type_for_clast_eq): Same.
6226 (graphite_translate_clast_equation): Same.
6227 (graphite_create_guard_cond_expr): Same.
6228 (graphite_create_new_guard): Same.
6229 (graphite_create_new_loop): Same.
6230 (build_iv_mapping): Same.
6231 (translate_clast_user): Same.
6232 (graphite_create_new_loop_guard): Same.
6233 (translate_clast): Same.
6234 (translate_clast_for_loop): Same.
6235 (translate_clast_for): Same.
6236 (translate_clast_guard): Same.
6237 (initialize_cloog_names): Fix typo.
6238 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
6240 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6242 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
6243 (new_clast_name_index): Add level parameter.
6244 (clast_name_to_level): New.
6245 (save_clast_name_index): Add level parameter.
6246 (newivs_to_depth_to_newiv): Removed.
6247 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
6248 (graphite_create_new_loop): Add level parameter. Pass level to
6249 save_clast_name_index.
6250 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
6251 (create_params_index): Pass level to save_clast_name_index.
6253 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6255 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
6256 recompute type, lb, and ub. Get them from...
6257 (graphite_create_new_loop_guard): ...here. Pass in parameter
6258 pointers to type, lb, and ub.
6259 (translate_clast_for_loop): Update function calls.
6260 (translate_clast_for): Same.
6262 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6264 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
6266 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
6267 (gcc_type_for_iv_of_clast_loop): Update use of level.
6268 (gloog): Start counting nesting level from 0.
6269 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
6270 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
6271 psct_dynamic_dim on level.
6273 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
6275 * config/i386/i386.c (ix86_legitimize_address): Convert to
6278 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
6280 * config/i386/i386.c (function_value_64): Always return pointers
6282 (ix86_promote_function_mode): New.
6283 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
6285 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6287 PR tree-optimization/49749
6288 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
6289 remove no-longer-used maxrank variable.
6291 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
6293 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
6295 2011-07-21 Jason Merrill <jason@redhat.com>
6297 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
6298 * recog.h (struct insn_data_d): Check it instead of
6299 HAVE_DESIGNATED_INITIALIZERS.
6300 * genoutput.c (output_insn_data): Likewise.
6302 2011-07-21 Richard Guenther <rguenther@suse.de>
6304 PR tree-optimization/49770
6305 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
6306 valueized any operand. Renamed from ...
6307 (valueize_refs): ... this. New wrapper around valueize_refs_1.
6308 (valueize_shared_reference_ops_from_ref): Return whether we
6309 valueized any operand.
6310 (vn_reference_lookup): Only when we valueized any operand
6311 use the valueized reference for alias analysis. Do not preserve
6312 the original reference tree in this case.
6314 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
6316 * config/i386/i386.c (ix86_decompose_address): Reject all but
6317 register operands and subregs of DImode hard registers in index.
6319 2011-07-21 Kai Tietz <ktietz@redhat.com>
6321 * fold-const.c (fold_unary_loc): Preserve indirect
6322 comparison cast to none-boolean type.
6323 * tree-ssa.c (useless_type_conversion_p): Preserve cast
6324 from/to boolean-type.
6325 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
6326 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
6327 * tree-cfg.c (verify_gimple_comparison): Check result
6328 type of comparison expression.
6329 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
6330 of condition result and disallow type-cast sinking into comparison.
6332 2011-07-21 Richard Guenther <rguenther@suse.de>
6334 * tree-ssa-forwprop.c (combine_conversions): Return whether
6335 we have to run cfg-cleanup. Properly remove dead stmts.
6336 (ssa_forward_propagate_and_combine): Adjust.
6338 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
6340 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
6342 2011-07-21 Kai Tietz <ktietz@redhat.com>
6344 * tree-ssa-propagate.c (substitute_and_fold): Use
6345 do_dce flag to deside, if BB's statements are scanned
6346 in last to first, or first to last order.
6348 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
6350 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
6352 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
6353 Uros Bizjak <ubizjak@gmail.com>
6354 Richard Henderson <rth@redhat.com>
6356 * config/i386/constraints.md (w): New.
6358 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
6359 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
6361 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
6362 instead of TARGET_64BIT.
6364 * config/i386/i386.md (indirect_jump): Replace
6365 nonimmediate_operand with indirect_branch_operand.
6366 (*indirect_jump): Likewise. Replace constraint "m" with "w".
6367 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
6368 Convert operand 0 to Pmode for x32 if not PIC.
6369 (*tablejump_1): Replace nonimmediate_operand with
6370 indirect_branch_operand. Replace constraint "m" with "w".
6371 (*call_vzeroupper): Replace constraint "m" with "w".
6373 (*call_rex64_ms_sysv_vzeroupper): Likewise.
6374 (*call_rex64_ms_sysv): Likewise.
6375 (*call_value_vzeroupper): Likewise.
6376 (*call_value): Likewise.
6377 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
6378 (*call_value_rex64_ms_sysv): Likewise.
6379 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
6381 * config/i386/predicates.md (indirect_branch_operand): New.
6382 (call_insn_operand): Support x32.
6384 2011-07-20 Michael Eager <eager@eagercon.com>
6386 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
6388 2011-07-20 Richard Henderson <rth@redhat.com>
6390 * cfg.c (dump_bb_info): Dump basic_block->flags.
6391 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
6393 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
6395 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6396 of DImode hard registers in index.
6397 (ix86_legitimate_address_p): Allow subregs of base and index to span
6398 more than a word. Assert that subregs of base and index satisfy
6399 register_no_elim_operand predicates. Reject addresses where
6400 base and index have different modes.
6402 2011-07-20 Robert Millan <rmh@gnu.org>
6404 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
6406 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6408 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
6409 removing now-unnecessary assignment.
6411 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6413 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
6414 memory address space to the type's address space.
6416 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
6420 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
6421 and expand appropriately if there is a CONST_INT in operand2.
6422 (usmulqihi3): New insn.
6423 (*sumulqihi3): New insn.
6424 (*osmulqihi3): New insn.
6425 (*oumulqihi3): New insn.
6426 (*muluqihi3.uconst): New insn_and_split.
6427 (*muluqihi3.sconst): New insn_and_split.
6428 (*mulsqihi3.sconst): New insn_and_split.
6429 (*mulsqihi3.uconst): New insn_and_split.
6430 (*mulsqihi3.oconst): New insn_and_split.
6431 (*ashifthi3.signx.const): New insn_and_split.
6432 (*ashifthi3.signx.const7): New insn_and_split.
6433 (*ashifthi3.zerox.const): New insn_and_split.
6434 (mulsqihi3): New insn.
6435 (muluqihi3): New insn.
6436 (muloqihi3): New insn.
6437 * config/avr/predicates.md (const_2_to_7_operand): New.
6438 (const_2_to_6_operand): New.
6443 (register_or_s9_operand): New.
6445 2011-07-20 Kai Tietz <ktietz@redhat.com>
6447 * builtins.c (fold_builtin_expect): See through the cast
6448 from truthvalue_type_node to long.
6450 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
6452 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
6453 where we can use them from the standard and altivec instruction
6454 sets, instead of always using the 3 operand VSX forms that require
6455 the destination to overlap one of the inputs.
6460 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
6462 (fmsdf4_fpr): Ditto.
6463 (nfmadf4_fpr): Ditto.
6464 (nfmsdf4_fpr): Ditto.
6466 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
6468 * genrecog.c (make_insn_sequence): Correct position numbering
6469 when filtering out match_scratch and match_dup.
6471 2011-07-20 Richard Guenther <rguenther@suse.de>
6473 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
6474 against already removed statements.
6475 (forward_propagate_into_comparison): Remove dead defining stmts.
6476 (forward_propagate_into_gimple_cond): Likewise.
6477 (forward_propagate_into_cond): Simplify.
6478 (ssa_forward_propagate_and_combine): Handle changed cfg from
6479 forward_propagate_into_comparison.
6480 * tree-ssa-phiopt.c (conditional_replacement): Use proper
6481 locations for newly built statements.
6483 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
6485 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
6487 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6489 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
6490 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
6492 2011-07-20 Richard Guenther <rguenther@suse.de>
6495 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
6496 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
6497 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
6499 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
6501 * config/frv/frv.c (frv_register_move_cost): Define explicitly
6502 costs for subclasses of GR_REGS.
6504 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
6507 * config/i386/predicates.md (no_seg_addres_operand): No more special.
6508 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6509 of DImode hard registers in base.
6510 (ix86_legitimate_address_p): Allow SImode and DImode base and index
6513 2011-07-20 Richard Guenther <rguenther@suse.de>
6515 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
6516 (unify_nodes): Deal with that.
6517 (solve_graph): Likewise.
6519 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
6521 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
6522 canonicalize left operand from ZERO_EXTEND to AND.
6524 2011-07-20 Anatoly Sokolov <aesok@post.ru>
6526 * target.def (class_max_nregs): New hook.
6527 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
6528 * doc/tm.texi: Regenerate.
6529 * targhooks.c (default_class_max_nregs): New function.
6530 * targhooks.h (default_class_max_nregs): Declare.
6531 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
6532 x_ira_reg_class_min_nregs arrays to unsigned char.
6533 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
6534 hook instead of CLASS_MAX_NREGS macro.
6535 * reginfo.c (restore_register_info): Ditto.
6536 * ira-conflicts.c (process_regs_for_copy): Use
6537 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
6538 Change type rclass and aclass vars to reg_class_t.
6539 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
6540 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
6542 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
6543 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
6545 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
6546 * config/i386/i386.c (ix86_class_max_nregs): New function.
6547 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
6548 instead of CLASS_MAX_NREGS macro.
6549 (TARGET_CLASS_MAX_NREGS): Define.
6550 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
6551 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
6552 * config/avr/avr.c (class_max_nregs): Remove function.
6553 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
6554 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
6555 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
6556 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
6557 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
6558 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
6559 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
6560 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
6561 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
6562 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
6563 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
6564 * config/score/score.h (CLASS_MAX_NREGS): Remove.
6565 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
6566 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
6567 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
6569 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
6571 * cif-code.def (OVERWRITABLE): Fix typo and move around.
6572 (TARGET_OPTIMIZATION_MISMATCH): Delete.
6573 (EH_PERSONALITY): Fix typo.
6574 (NON_CALL_EXCEPTIONS): Fix message.
6575 (OPTIMIZATION_MISMATCH): Adjust message.
6576 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
6578 2011-07-19 Ian Lance Taylor <iant@google.com>
6580 * doc/install.texi (Configuration): Document
6581 --enable-build-poststage1-with-cxx.
6583 2011-07-19 Robert Millan <rmh@gnu.org>
6585 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
6586 (GLIBC_DYNAMIC_LINKER): Remove.
6588 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
6589 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
6590 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
6591 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
6592 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
6593 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
6595 * config/mips/linux.h: Remove everything except for ...
6596 (GLIBC_DYNAMIC_LINKER): ... this macro.
6598 * config/mips/linux64.h: Remove everything except for ...
6599 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
6600 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
6601 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
6602 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
6603 (GNU_USER_LINK_EMULATIONN32): New macros.
6605 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
6606 Use the new headers.
6608 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6610 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
6611 Add offset_known_p and size_known_p fields.
6612 (MEM_OFFSET_KNOWN_P): Update accordingly.
6613 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
6614 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
6615 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
6616 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
6617 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
6618 (init_emit_regs): Likewise.
6620 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6622 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
6623 (MEM_OFFSET): Change from returning an rtx to returning a
6625 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
6626 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
6627 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
6628 (clear_mem_offset): Declare.
6629 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
6630 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
6631 MEM_OFFSET to get a HOST_WIDE_INT offset.
6632 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
6633 (adjust_offset_for_component_ref): Take a bool "known_p"
6634 parameter and a HOST_WIDE_INT "offset" parameter.
6635 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
6636 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
6637 than an rtx. Use clear_mem_offset to clear the offset.
6638 * cfgcleanup.c (merge_memattrs): Likewise.
6639 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
6640 * function.c (assign_parm_find_stack_rtl): Likewise.
6641 (assign_parm_setup_stack): Likewise.
6642 * print-rtl.c (print_rtx): Likewise.
6643 * reload.c (find_reloads_subreg_address): Likewise.
6644 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
6645 * var-tracking.c (INT_MEM_OFFSET): Likewise.
6646 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
6647 (get_mem_align_offset): Likewise.
6648 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
6649 (clear_mem_offset): New function.
6650 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
6651 offset rather than an rtx. Assume both the expressio and offset
6653 (r10k_needs_protection_p_1): Update accordingly, checking the
6654 expression and offset availability here instead.
6656 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6658 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
6659 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
6660 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
6661 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
6662 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
6663 (clear_mem_size): Declare.
6664 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
6665 (clear_mem_size): New function.
6666 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
6667 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
6668 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
6669 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
6671 (nonoverlapping_memrefs_p): Likewise.
6672 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
6673 (expand_builtin_init_trampoline): Likewise.
6674 * calls.c (compute_argument_addresses): Likewise.
6675 * cfgcleanup.c (merge_memattrs): Likewise.
6676 * dce.c (find_call_stack_args): Likewise.
6677 * dse.c (record_store, scan_insn): Likewise.
6678 * dwarf2out.c (dw_sra_loc_expr): Likewise.
6679 * expr.c (emit_block_move_hints): Likewise.
6680 * function.c (assign_parm_find_stack_rtl): Likewise.
6681 * print-rtl.c (print_rtx): Likewise.
6682 * reload.c (find_reloads_subreg_address): Likewise.
6683 * rtlanal.c (may_trap_p_1): Likewise.
6684 * var-tracking.c (track_expr_p): Likewise.
6685 * varasm.c (assemble_trampoline_template): Likewise.
6686 * config/arm/arm.c (arm_print_operand): Likewise.
6687 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
6688 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
6689 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
6690 (expand_constant_setmem_prologue): Likewise.
6691 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
6692 * config/rs6000/rs6000.c (expand_block_move): Likewise.
6693 (adjacent_mem_locations): Likewise.
6694 * config/s390/s390.c (s390_expand_setmem): Likewise.
6695 (s390_expand_insv): Likewise.
6696 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
6697 (*extendqi<mode>2_short_displ): Likewise.
6698 * config/sh/sh.c (expand_block_move): Likewise.
6699 * config/sh/sh.md (extv, extzv): Likewise.
6701 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6703 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
6704 (mem_attrs_htab_eq): ...here.
6705 (find_mem_attrs): Replace with...
6706 (set_mem_attrs): ...this function. Take a mem_attrs structure
6707 rather than individual fields.
6708 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
6709 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
6710 (set_mem_size, change_address, adjust_address_1, offset_address)
6711 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
6714 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6716 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
6717 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
6718 Provide a dummy definition of MEM_ADDR_SPACE for generators.
6719 (target_rtl): Add x_mode_mem_attrs.
6720 (mode_mem_attrs): New macro.
6721 (get_mem_attrs): New function.
6722 * emit-rtl.c (get_mem_attrs): Rename to...
6723 (find_mem_attrs): ...this.
6724 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
6725 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
6726 (set_mem_size, change_address, adjust_address_1, offset_address)
6727 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
6729 (init_emit_regs): Initialize mode_mem_attrs.
6731 2011-07-19 Richard Guenther <rguenther@suse.de>
6733 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
6734 TRUTH_*_EXPR handling.
6735 * tree-ssa-operands.c (get_expr_operands): Likewise.
6736 * tree-ssa-pre.c (fully_constant_expression): Likewise.
6737 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
6739 (is_and_or_or): Likewise.
6740 (is_norm_cond_subset_of): Likewise.
6742 2011-07-19 Richard Guenther <rguenther@suse.de>
6744 * tree.h (fold_build_pointer_plus_loc): New helper function.
6745 (fold_build_pointer_plus_hwi_loc): Likewise.
6746 (fold_build_pointer_plus): Define.
6747 (fold_build_pointer_plus_hwi): Likewise.
6748 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
6749 (fold_builtin_memory_op): Likewise.
6750 (fold_builtin_stpcpy): Likewise.
6751 (fold_builtin_memchr): Likewise.
6752 (fold_builtin_strstr): Likewise.
6753 (fold_builtin_strchr): Likewise.
6754 (fold_builtin_strrchr): Likewise.
6755 (fold_builtin_strpbrk): Likewise.
6756 (fold_builtin_strcat): Likewise.
6757 (expand_builtin_memory_chk): Likewise.
6758 (fold_builtin_memory_chk): Likewise.
6759 * c-typeck.c (build_unary_op): Likewise.
6760 * cgraphunit.c (thunk_adjust): Likewise.
6761 * fold-const.c (build_range_check): Likewise.
6762 (fold_binary_loc): Likewise.
6763 * omp-low.c (extract_omp_for_data): Likewise.
6764 (expand_omp_for_generic): Likewise.
6765 (expand_omp_for_static_nochunk): Likewise.
6766 (expand_omp_for_static_chunk): Likewise.
6767 * tree-affine.c (add_elt_to_tree): Likewise.
6768 * tree-data-ref.c (split_constant_offset_1): Likewise.
6769 * tree-loop-distribution.c (generate_memset_zero): Likewise.
6770 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
6771 * tree-predcom.c (ref_at_iteration): Likewise.
6772 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
6773 (add_to_parts): Likewise.
6774 (create_mem_ref): Likewise.
6775 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
6776 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
6777 (number_of_iterations_le): Likewise.
6778 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
6779 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
6780 (vect_create_addr_base_for_vector_ref): Likewise.
6781 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
6782 (vect_create_cond_for_alias_checks): Likewise.
6783 * tree-vrp.c (extract_range_from_assert): Likewise.
6784 * config/alpha/alpha.c (alpha_va_start): Likewise.
6785 (alpha_gimplify_va_arg_1): Likewise.
6786 * config/i386/i386.c (ix86_va_start): Likewise.
6787 (ix86_gimplify_va_arg): Likewise.
6788 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6789 * config/mep/mep.c (mep_expand_va_start): Likewise.
6790 (mep_gimplify_va_arg_expr): Likewise.
6791 * config/mips/mips.c (mips_va_start): Likewise.
6792 (mips_gimplify_va_arg_expr): Likewise.
6793 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6794 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
6795 (rs6000_gimplify_va_arg): Likewise.
6796 * config/s390/s390.c (s390_va_start): Likewise.
6797 (s390_gimplify_va_arg): Likewise.
6798 * config/sh/sh.c (sh_va_start): Likewise.
6799 (sh_gimplify_va_arg_expr): Likewise.
6800 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
6801 * config/spu/spu.c (spu_va_start): Likewise.
6802 (spu_gimplify_va_arg_expr): Likewise.
6803 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
6805 (xstormy16_gimplify_va_arg_expr): Likewise.
6806 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
6807 (xtensa_gimplify_va_arg_expr): Likewise.
6809 2011-07-19 Richard Guenther <rguenther@suse.de>
6811 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
6812 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
6816 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
6817 result of BIT_*_EXPR to bitfield precision.
6819 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
6821 PR tree-optimization/49742
6822 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
6823 as a potential write.
6825 2011-07-19 Richard Guenther <rguenther@suse.de>
6827 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
6828 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
6829 (forward_propagate_comparison): Simplify, remove obsolete code.
6831 2011-07-19 Richard Guenther <rguenther@suse.de>
6833 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
6834 BIT_XOR_EXPR, same as the RTL expander does.
6835 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
6836 (verify_gimple_assign_unary): Likewise.
6837 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
6838 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
6839 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
6841 2011-07-19 Jakub Jelinek <jakub@redhat.com>
6843 PR tree-optimization/49768
6844 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
6845 if offset is smaller than bitoffset, but offset+size is bigger
6848 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
6850 PR tree-optimization/49771
6851 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
6852 zero step, set segment length to the size of the data-ref's type.
6854 2011-07-18 Martin Jambor <mjambor@suse.cz>
6856 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
6858 (ipcp_values_pool): Declare.
6859 (ipcp_sources_pool): Likewise.
6860 (ipcp_lattice): Changed to forward declaration.
6861 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
6862 cannot_devirtualize.
6863 (ipa_node_params): New fields descriptors, lattices, known_vals,
6864 clone_for_all_contexts and node dead, removed fields params and
6866 (ipa_set_param_count): Removed.
6867 (ipa_get_param_count): Made to work with descriptors vector.
6868 (ipa_get_param): Updated.
6869 (ipa_param_cannot_devirtualize_p): Removed.
6870 (ipa_param_types_vec_empty): Likewise.
6871 (ipa_set_param_used): New function.
6872 (ipa_get_param_used): Updated to use descriptors vector.
6873 (ipa_func_list): Removed.
6874 (ipa_init_func_list): Removed declaration.
6875 (ipa_push_func_to_list_1): Likewise.
6876 (ipa_pop_func_from_list): Likewise.
6877 (ipa_push_func_to_list): Removed.
6878 (ipa_lattice_from_jfunc): Remove declaration.
6879 (ipa_get_jf_pass_through_result): Declare.
6880 (ipa_get_jf_ancestor_result): Likewise.
6881 (ipa_value_from_jfunc): Likewise.
6882 (ipa_get_lattice): Update.
6883 (ipa_lat_is_single_const): New function.
6884 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
6885 (ipa_init_func_list): Likewise.
6886 (ipa_pop_func_from_list): Likewise.
6887 (ipa_get_param_decl_index): Fix coding style.
6888 (count_formal_params): Removed.
6889 (count_formal_params_1): Renamed to count_formal_params.
6890 (ipa_populate_param_decls): Update to use descriptors vector.
6891 (ipa_initialize_node_params): Likewise.
6892 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
6893 (ipa_analyze_params_uses): Likewise.
6894 (ipa_free_node_params_substructures): Likewise and free also lattices
6896 (duplicate_array): Removed.
6897 (ipa_edge_duplication_hook): Add the new edge to the list of edge
6899 (ipa_node_duplication_hook): Update to use new lattices.
6900 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
6901 (ipa_free_all_structures_after_iinln): Likewise.
6902 (ipa_write_node_info): Update to use new lattices.
6903 (ipa_read_node_info): Likewise.
6904 (ipa_get_jf_pass_through_result): New function.
6905 (ipa_get_jf_ancestor_result): Likewise.
6906 (ipa_value_from_jfunc): Likewise.
6907 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
6908 * ipa-cp.c: Reimplemented.
6909 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
6910 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
6911 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
6912 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
6913 * doc/invoke.texi (devirt-type-list-size): Removed description.
6914 (ipa-cp-value-list-size): Added description.
6916 2011-07-18 Richard Henderson <rth@redhat.com>
6918 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
6919 before calling create_basic_block.
6921 2011-07-18 Jakub Jelinek <jakub@redhat.com>
6924 * tree.c (build_common_builtin_nodes): Register
6925 __builtin_return_address, __cyg_profile_func_enter
6926 and __cyg_profile_func_exit.
6928 2011-07-18 Richard Henderson <rth@redhat.com>
6930 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
6931 (add_labels_and_missing_jumps): ... here.
6932 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
6934 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
6937 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6938 of DImode hard registers in PLUS address chains.
6940 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6943 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
6944 (alpha*-*-freebsd*): Likewise.
6945 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
6946 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
6947 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
6948 crtprec80.o, crtfastmath.o to extra_parts for all targets.
6949 (ia64*-*-elf*): Remove extra_parts.
6950 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
6951 (sparc64-*-linux*): Likewise.
6952 (sparc64-*-freebsd*): Likewise.
6955 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
6956 (ia64*-*-linux*): Likewise.
6957 (mips64*-*-linux*): Likewise.
6958 (mips*-*-linux*): Likewise.
6960 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
6962 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
6964 2011-07-18 Richard Guenther <rguenther@suse.de>
6966 * gimplify.c (gimplify_expr): Use input_location, not saved_location
6967 when building new trees.
6969 2011-07-18 Richard Guenther <rguenther@suse.de>
6971 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
6972 expansion result to bitfield precision if required.
6974 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6976 * config.gcc (i[3456x]86-*-netware*): Remove.
6978 * gthr-nks.h: Remove.
6979 * configure.ac (enable_threads): Remove nks.
6980 * configure: Regenerate.
6982 * config/i386/i386.c (ix86_encode_section_info): Remove netware
6984 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
6985 <netware.h> reference.
6987 * config/i386/netware-libgcc.c,
6988 gcc/config/i386/netware-libgcc.def,
6989 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
6990 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
6991 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
6992 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
6994 * doc/extend.texi (Function Attributes,
6995 callee_pop_aggregate_return): Remove i?86-netware reference.
6996 * doc/install.texi (Configuration, --enable-threads): Remove nks.
6998 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7002 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7004 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
7007 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
7010 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
7012 2011-07-16 Matthias Klose <doko@ubuntu.com>
7014 * doc/install.texi: Document --enable-static-libjava.
7016 2011-07-15 Richard Henderson <rth@redhat.com>
7018 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
7019 Replace all three arguments by returning a VEC of edges.
7020 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
7021 pointers and counts.
7022 (fix_edges_for_rarely_executed_code): Merge ...
7023 (rest_of_handle_partition_blocks): ... into...
7024 (partition_hot_cold_basic_blocks): ... here. Return todo items if
7025 any work was performed.
7026 (pass_partition_blocks): Clear todo_flags_finish.
7028 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
7029 Jakub Jelinek <jakub@redhat.com>
7030 Jonathan Wakely <jwakely.gcc@gmail.com>
7033 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
7034 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
7036 2011-07-15 Jason Merrill <jason@redhat.com>
7039 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
7040 rather than --tool_opts.
7042 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
7044 * doc/plugins.texi (Building GCC plugins): gengtype needs its
7045 corresponding gtype.state.
7047 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7050 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
7052 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
7055 * doc/md.texi (Standard Names): Document window_save.
7056 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
7057 expand_debug_expr and expand_debug_source_expr. If the target has
7058 a window_save instruction, adjust the ENTRY_VALUE_EXP.
7059 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
7060 SSA_NAME_VAR is a parameter.
7061 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
7062 * var-tracking.c (parm_reg_t): New type and associated vector type.
7063 (windowed_parm_regs): New variable.
7064 (adjust_insn): If the target has a window_save instruction and this
7065 is the instruction, make its effect on parameter registers explicit.
7066 (next_non_note_insn_var_location): New function.
7067 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
7068 (vt_add_function_parameter): If the target has a window_save insn,
7069 adjust the incoming RTL and record that in windowed_parm_regs.
7070 (vt_finalize): Free windowed_parm_regs.
7072 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
7074 * doc/invoke.texi (C6X Options): New section.
7075 * doc/md.texi (TI C6X family): New section.
7076 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
7078 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
7079 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
7080 Provide C6X definitions.
7081 * config/c6x/c6x.md: New file.
7082 * config/c6x/constraints.md: New file.
7083 * config/c6x/predicates.md: New file.
7084 * config/c6x/c6x-sched.md.in: New file.
7085 * config/c6x/c6x-sched.md: New file.
7086 * config/c6x/gensched.sh: New file.
7087 * config/c6x/c6x-mult.md.in: New file.
7088 * config/c6x/genmult.sh: New file.
7089 * config/c6x/c6x-mult.md: New file.
7090 * config/c6x/sync.md: New file.
7091 * config/c6x/c6x-protos.h: New file.
7092 * config/c6x/sfp-machine.h: New file.
7093 * config/c6x/c6x.c: New file.
7094 * config/c6x/c6x.h: New file.
7095 * config/c6x/crti.s: New file.
7096 * config/c6x/crtn.s: New file.
7097 * config/c6x/lib1funcs.asm: New file.
7098 * config/c6x/c6x-modes.def: New file.
7099 * config/c6x/genopt.sh: New file.
7100 * config/c6x/c6x.opt: New file.
7101 * config/c6x/c6x-tables.opt: New file.
7102 * config/c6x/c6x-opts.h: New file.
7103 * config/c6x/c6x-isas.def: New file.
7104 * config/c6x/elf.h: New file.
7105 * config/c6x/elf-common.h: New file.
7106 * config/c6x/uclinux-elf.h: New file.
7107 * config/c6x/t-c6x: New file.
7108 * config/c6x/t-c6x-elf: New file.
7109 * config/c6x/t-c6x-uclinux: New file.
7110 * config/c6x/t-c6x-softfp: New file.
7111 * config/c6x/gtd.c: New file.
7112 * config/c6x/gtf.c: New file.
7113 * config/c6x/ltd.c: New file.
7114 * config/c6x/ltf.c: New file.
7115 * config/c6x/ged.c: New file.
7116 * config/c6x/gef.c: New file.
7117 * config/c6x/led.c: New file.
7118 * config/c6x/lef.c: New file.
7119 * config/c6x/eqd.c: New file.
7120 * config/c6x/eqf.c: New file.
7121 * config/c6x/libgcc-c6xeabi.ver: New file.
7124 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
7125 PR rtl-optimization/11320
7126 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
7127 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
7128 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
7129 current_sched_info->compute_jump_reg_dependencies. Record which
7130 registers are used and which registers are set by the jump.
7131 Clear deps->reg_conditional_sets after a barrier.
7132 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
7133 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
7134 (init_deps): Initialize reg_conditional_sets.
7135 (free_deps): Clear reg_conditional_sets.
7136 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
7137 Mark registers live on entry of the fallthrough block and conditionally
7138 set as set by the jump. Mark registers live on entry of non-fallthrough
7139 blocks as used by the jump.
7140 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
7141 Mark new parameters as unused.
7143 2011-07-14 Andrew Pinski <pinskia@gmail.com>
7146 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
7147 Use fold_build2_loc instead of build2.
7148 Use the correct type for the new tree.
7150 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
7152 PR rtl-optimization/11320
7153 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
7154 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
7156 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
7159 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
7161 (*rotw<mode>): Use const_int_operand for operand2.
7162 Use match_scatch for operand3.
7163 (*rotb<mode>): Ditto
7164 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
7166 2011-07-14 Richard Guenther <rguenther@suse.de>
7168 PR tree-optimization/49651
7169 * tree-ssa-structalias.c (get_constraint_for_1): Properly
7170 handle dereferences with subvariables.
7172 2011-07-14 Richard Guenther <rguenther@suse.de>
7174 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
7175 (fold_stmt_1): Do it here directly on gimple and as a first thing.
7177 2011-07-14 Richard Guenther <rguenther@suse.de>
7179 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
7180 not bool_var when folding bool_var != 1 or bool_var == 0.
7182 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
7184 * haifa-sched.c (schedule_insns): Remove outdated comment.
7185 (schedule_block): When computing a known value for TODO_SPEC,
7186 just set it rather than using logical operations.
7187 (try_ready): Likewise. Use a local variable rather than a
7188 pointer to TODO_SPEC. Reorder an if statement to move the
7189 easy case to the then block.
7190 * sched-deps.c (dep_spec_p): New static function.
7191 (update_dep): Use it to decide whether to call
7192 change_spec_dep_to_hard.
7193 (get_back_and_forw_lists): Use it.
7194 (sd_resolve_dep): Likewise.
7195 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
7196 (haifa_note_mem_dep): Likewise.
7197 (check_dep): Likewise.
7198 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
7199 (sched_free_deps): Free in two passes.
7201 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
7204 * expr.c (all_zeros_p): Undo bogus part of last change.
7206 2011-07-14 Matthias Klose <doko@ubuntu.com>
7208 * doc/extend.texi (optimize attribute): Fix typo.
7210 2011-07-14 Richard Guenther <rguenther@suse.de>
7212 * gimplify.c (gimplify_expr): Only do required conversions.
7214 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
7217 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
7218 i.e. use default_elf_select_section.
7219 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
7220 (READONLY_DATA_SECTION_ASM_OP): Remove.
7221 (TARGET_ASM_NAMED_SECTION): Move from here...
7222 * config/avr/avr.c: ...to here.
7223 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
7224 (avr_asm_named_section): Make static.
7226 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7229 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
7230 and crtfastmath.o for Linux/x86.
7232 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
7234 * haifa-sched.c: Include "hashtab.h"
7235 (sched_no_dce): New global variable.
7236 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
7237 SHADOW_P): New macros.
7238 (last_clock_var, cycle_issued_insns): Move declarations.
7239 (must_backtrack): New static variable.
7240 (struct delay_pair): New structure.
7241 (delay_htab, delay_htab_i2): New static variables.
7242 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
7243 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
7245 (dep_cost_1): If delay pairs exist, try to look up the insns and
7246 use the correct pair delay if we find them.
7247 (rank-for_schedule): Tweak priority for insns that must be scheduled
7248 soon to avoid backtracking.
7249 (queue_insn): Detect conditions which force backtracking.
7250 (ready_add): Likewise.
7251 (struct sched_block_state): Add member shadows_only_p.
7252 (struct haifa_save_data): New structure.
7253 (backtrack_queue): New static variable.
7254 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
7255 unschedule_insns_until, restore_last_backtrack_point,
7256 free_topmost_backtrack_point, free_backtrack_queue,
7257 estimate_insn_tick, estimate_shadow_tick): New functions.
7258 (prune_ready_list): New arg shadows_only_p. All callers changed.
7259 If true, remove everything that isn't SHADOW_P. Look up delay
7260 pairs and estimate ticks to avoid scheduling the first insn too early.
7261 (verify_shadows): New function.
7262 (schedule_block): Add machinery to enable backtracking.
7263 (sched_init): Take sched_no_dce into account when setting
7265 (free_delay_pairs): New function.
7266 (init_h_i_d): Initialize INSN_EXACT_TICK.
7267 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
7268 * sched-deps.c (sd_unresolve_dep): New function.
7269 * sched-int. (struct haifa_sched_info): New fields save_state
7271 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
7272 feeds_backtrack_insn and shadow_p.
7273 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
7274 (sched_no_dce): Declare variable.
7275 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
7276 sd_unresolve_dep): Declare functions.
7277 * modulo-sched.c (sms_sched_info): Clear the two new fields.
7278 * sched-rgn.c (rgn_const_sched_info): Likewise.
7279 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7280 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
7281 (ebb_sched_info): Add them for the two new fields.
7282 (add_deps_for_risky_insns): Call add_delay_dependencies.
7284 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
7286 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
7288 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
7289 (rs6000_call_indirect_aix): Ditto.
7290 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
7291 (call_indirect_aix<ptrsize>_internal): Ditto.
7292 (call_indirect_aix<ptrsize>_nor11): Ditto.
7293 (call_indirect_aix<ptrsize>_internal2): Ditto.
7294 (call_value_indirect_aix<ptrsize>): Ditto.
7295 (call_value_indirect_aix<ptrsize>_internal): Ditto.
7296 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
7297 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
7298 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
7300 2011-07-13 Jason Merrill <jason@redhat.com>
7302 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
7304 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7306 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
7307 * config/spu/spu.md ("clrsb<mode>2"): New expander.
7309 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
7311 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
7312 * configure: Regenerate.
7314 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7316 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
7317 (asm_file_start): Remove.
7318 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
7319 free_bb_for_insn around code that modifies insns before
7320 restarting df analysis.
7322 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7325 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
7326 (LINK_SPEC): ... here.
7328 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
7330 * haifa-sched.c (struct sched_block_state): New.
7331 (schedule_block): Move some local variables into such a structure.
7333 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7335 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
7336 * config/i386/t-crtpc: Remove.
7337 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
7338 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
7340 (x86_64-*-darwin*): Likewise.
7341 (i[34567]86-*-linux*): Likewise.
7342 (x86_64-*-linux*): Likewise.
7344 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
7345 Handle -mpc32, -mpc64, -mpc80.
7347 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7349 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
7350 * config/alpha/t-crtfm: Remove.
7351 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
7352 * config/i386/t-crtfm: Remove.
7353 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
7354 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
7355 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
7356 * config/sparc/t-crtfm: Remove.
7358 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
7359 (alpha*-*-freebsd*): Likewise.
7360 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
7361 (x86_64-*-darwin*): Likewise.
7362 (i[34567]86-*-linux*): Likewise.
7363 (x86_64-*-linux*): Likewise.
7364 (x86_64-*-mingw*): Likewise.
7365 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
7366 (ia64*-*-freebsd*): Likewise.
7367 (ia64*-*-linux*): Likewise.
7368 (mips64*-*-linux*): Likewise.
7369 (mips*-*-linux*): Likewise.
7370 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
7371 (sparc64-*-linux*): Likewise.
7372 (sparc64-*-freebsd*): Likewise.
7374 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7376 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
7377 * config/darwin-crt3.c: Move to ../libgcc/config.
7378 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
7379 ($(T)crt3$(objext)): Remove.
7380 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
7381 ($(T)crt2$(objext)): Remove.
7382 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
7383 (powerpc64-*-darwin*): Likewise.
7385 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
7387 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
7389 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
7390 (addsi_1_zext): This.
7392 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
7394 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
7395 * doc/tm.texi: Regenerate.
7396 * target.def (mergeable_rodata_prefix): New defhookpod.
7397 * varasm.c (mergeable_string_section, mergeable_constant_section):
7398 Use it. Allocate name with alloca.
7400 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
7402 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
7404 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
7406 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
7409 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
7411 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
7412 (count_type_elements): Delete.
7413 (complete_ctor_at_level_p): Declare.
7414 * expr.c (flexible_array_member_p): New function, split out from...
7415 (count_type_elements): ...here. Make static. Replace allow_flexarr
7416 parameter with for_ctor_p. When for_ctor_p is true, return the
7417 number of elements that should appear in the top-level constructor,
7418 otherwise return an estimate of the number of scalars.
7419 (categorize_ctor_elements): Replace p_must_clear with p_complete.
7420 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
7421 (complete_ctor_at_level_p): New function, borrowing union logic
7422 from old categorize_ctor_elements_1.
7423 (mostly_zeros_p): Return true if the constructor is not complete.
7424 (all_zeros_p): Update call to categorize_ctor_elements.
7425 * gimplify.c (gimplify_init_constructor): Update call to
7426 categorize_ctor_elements. Don't call count_type_elements.
7427 Unconditionally prevent clearing for variable-sized types,
7428 otherwise rely on categorize_ctor_elements to detect
7429 incomplete initializers.
7431 2011-07-13 Richard Guenther <rguenther@suse.de>
7433 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
7434 the final type is integral.
7436 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
7438 * sched-int.h (struct _dep): Add member cost.
7439 (DEP_COST, UNKNOWN_DEP_COST): New macros.
7440 * sched-deps.c (init_dep_1): Initialize DEP_COST.
7441 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
7442 (sched_change_pattern): Reset it for dependent insns.
7444 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7446 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
7447 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
7448 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
7449 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
7450 (CRT0_S, MCRT0_S): Remove.
7451 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
7454 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
7456 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
7458 * cse.c (insert_with_costs): Put semi-colon after empty loop body
7460 * emit-rtl.c (push_to_sequence): Likewise.
7461 * haifa-sched.c (max_issue): Likewise.
7462 * matrix-reorg.c (add_allocation_site): Likewise.
7463 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
7464 * reload.c (alternative_allows_const_pool_ref): Likewise.
7465 * sched-rgn.c (rgn_add_block): Likewise.
7466 (rgn_fix_recovery_cfg): Likewise.
7467 * tree.c (attribute_list_contained): Likewise.
7469 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
7471 * config/i386/i386.c: Tidy processor feature bitmasks.
7474 2011-07-12 Andrew Pinski <pinskia@gmail.com>
7477 * cprop.c (find_implicit_sets): Correct the condition.
7479 2011-07-12 Richard Henderson <rth@redhat.com>
7482 * dwarf2out.h (dwarf_frame_regnum): Remove.
7483 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
7484 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
7485 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
7486 (execute_dwarf2_frame): Initialize them.
7487 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
7488 users of the macros with the variables.
7489 (expand_builtin_dwarf_sp_column): Revert last change.
7490 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
7491 result of DWARF_FRAME_REGNUM into a local variable.
7493 2011-07-12 Richard Henderson <rth@redhat.com>
7496 * config/i386/i386.c (x86_output_mi_thunk): Use
7497 machopic_indirect_call_target instead of machopic_indirection_name
7500 2011-07-12 Laurent GUERBY <laurent@guerby.net>
7501 Eric Botcazou <ebotcazou@adacore.com>
7503 * prefix.h: Wrap up in extern "C" block.
7505 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
7507 AMD bdver2 Enablement
7508 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
7509 (case ${target}): Add bdver2.
7510 * config/i386/driver-i386.c (host_detect_local_cpu): Let
7511 -march=native recognize bdver2 processors.
7512 * config/i386/i386-c.c (ix86_target_macros_internal): Add
7513 bdver2 def_and_undef
7514 * config/i386/i386.c (struct processor_costs bdver2_cost): New
7516 (m_BDVER2): New definition.
7517 (m_AMD_MULTIPLE): Includes m_BDVER2.
7518 (initial_ix86_tune_features): Add bdver2 tuning.
7519 (processor_target_table): Add bdver2 entry.
7520 (static const char *const cpu_names): Add bdver2 entry.
7521 (ix86_option_override_internal): Add bdver2 instruction sets.
7522 (ix86_issue_rate): Add bdver2.
7523 (ix86_adjust_cost): Add bdver2.
7524 (has_dispatch): Add bdver2.
7525 * config/i386/i386.h (TARGET_BDVER2): New definition.
7526 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
7527 (enum processor_type): Add PROCESSOR_BDVER2.
7528 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
7529 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
7532 2011-07-12 Richard Henderson <rth@redhat.com>
7535 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
7536 destination address in memory on some paths.
7538 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
7540 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
7541 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
7542 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
7543 * function.c (locate_and_pad_parm): Take it into account.
7544 * target.def (function_arg_round_boundary): New hook.
7545 * targhooks.c (default_function_arg_round_boundary): New function.
7546 * targhooks.h (default_function_arg_round_boundary): Declare.
7547 * doc/tm.texi: Regenerate.
7549 2011-07-12 Richard Guenther <rguenther@suse.de>
7551 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
7552 Do not perform no-op changes.
7554 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
7556 * config/arm/predicates.md (neon_struct_operand): Make a normal
7558 (neon_struct_or_register_operand): New predicate.
7559 * config/arm/neon.md (movmisalign<mode>): Replace predicates
7560 with neon_struct_or_register_operand.
7561 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
7562 neon_struct_operand instead of memory_operand.
7564 2011-07-12 Martin Jambor <mjambor@suse.cz>
7566 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
7567 * cgraph.c (cgraph_get_node_or_alias): Removed.
7568 (change_decl_assembler_name): Changed all calls to
7569 cgraph_get_node_or_alias to a call to cgraph_get_node.
7570 (cgraph_make_decl_local): Likewise.
7571 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
7572 * varasm.c (default_binds_local_p_1): Likewise.
7573 (decl_binds_to_current_def_p): Likewise.
7575 2011-07-12 Jakub Jelinek <jakub@redhat.com>
7577 PR tree-optimization/49712
7578 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
7580 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
7582 * genautomata.c (add_arc): Return void. All callers changed.
7583 (make_automaton): Remove dead code.
7585 2011-07-11 Richard Henderson <rth@redhat.com>
7587 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
7588 (DW_FRAME_POINTER_REGNUM): New.
7589 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
7590 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
7592 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
7593 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
7594 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
7596 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
7597 * dwarf2out.h (dwarf_frame_regnum): New.
7598 (struct cfa_loc): Document the domain of the reg member.
7600 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
7602 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
7603 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
7605 2011-07-11 Jakub Jelinek <jakub@redhat.com>
7608 * dwarf2out.c (int_shift_loc_descriptor): New function.
7609 (int_loc_descriptor): If shorter, emit i as
7610 (i >> shift), shift, DW_OP_shl for suitable shift value.
7611 Similarly, try to optimize large negative values using
7612 DW_OP_neg of a positive value if shorter.
7613 (size_of_int_shift_loc_descriptor): New function.
7614 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
7616 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
7617 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
7618 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
7620 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
7621 addend as added DW_OP_plus if it is shorter.
7623 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7625 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
7626 (DTORS_SECTION_ASM_OP): Define.
7628 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7630 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
7631 * config/t-dfprules: Move to ../libgcc/config.
7632 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
7633 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
7634 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
7635 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
7637 (i[34567]86-*-cygwin*): Likewise.
7638 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
7639 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
7640 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
7641 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
7642 D64PBIT_FUNCS, D128PBIT_FUNCS.
7644 2011-07-11 Richard Guenther <rguenther@suse.de>
7646 * tree-vrp.c (simplify_conversion_using_ranges): Manually
7647 translate the source value-range through the conversion chain.
7649 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
7651 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
7653 2011-07-11 Arthur Loiret <aloiret@debian.org>
7655 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
7656 a bi-arch compiler defaulting to 31-bit. In this case:
7657 (tmake_file): Add s390/t-linux64.
7658 * doc/install.texi: Add s390-linux to the list of targets supporting
7659 --enable-targets=all.
7661 2011-07-11 Arthur Loiret <aloiret@debian.org>
7662 Matthias Klose <doko@debian.org>
7664 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
7665 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
7666 (tm_file): Add mips/linux64.h.
7667 (tmake_file): Add mips/t-linux64.
7668 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
7669 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
7670 instead of hardcoded mabi=n32.
7671 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
7672 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
7675 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7677 * passes.c (init_optimization_passes): Add invariant motion pass
7678 after induction variable optimization.
7680 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
7683 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
7684 offsets 1..5 set cc0 in a usable way.
7686 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
7688 * tree.h (call_expr_arg): Remove.
7689 (call_expr_argp): Likewise.
7691 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
7693 * config/sparc/sparc.md (save_register_window_1): Rename to...
7694 (window_save): ...this.
7695 * config/sparc/sparc.c (emit_save_register_window): Rename to...
7696 (emit_window_save): ...this.
7697 (sparc_expand_prologue): Adjust to above renaming.
7699 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
7701 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
7704 2011-07-10 Richard Henderson <rth@redhat.com>
7706 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
7707 run final, instead of emitting text directly.
7709 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
7711 * config/i386/i386.c (ix86_option_override_internal): Turn on
7712 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
7713 small PIC models for TARGET_X32.
7715 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
7718 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
7722 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
7723 stray notes and debug insns by using prev_nonnote_nondebug_insn
7724 instead of PREV_INSN.
7726 2011-07-09 Richard Henderson <rth@redhat.com>
7728 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
7729 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
7730 * dwarf2out.c: ... here.
7731 (output_all_cfis): Remove.
7732 (dwarf2out_switch_text_section): Use output_cfis directly.
7733 (size_of_locs): Export.
7734 (output_loc_sequence, output_loc_sequence_raw): Export.
7735 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
7736 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
7737 output_cfa_loc_raw): Move to ...
7738 * dwarfcfi.c: ... here.
7739 * dwarf2out.h: Update decls.
7741 2011-07-09 Richard Henderson <rth@redhat.com>
7743 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
7744 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
7745 * dwarf2cfi.c: ... here.
7746 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
7747 (DWARF_ROUND, DWARF_CIE_ID): Remove.
7748 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
7749 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
7750 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
7752 2011-07-09 Richard Henderson <rth@redhat.com>
7754 * dwarf2cfi.c (cie_return_save): New.
7755 (queue_reg_save): Use compare_reg_or_pc.
7756 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
7757 (dwarf2out_frame_debug_expr): Likewise.
7758 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
7759 (initial_return_save): Likewise.
7760 (execute_dwarf2_frame): Save and restore initial return save from
7762 * config/mips/mips.c (mips_frame_set): Remove special case for
7763 DWARF_FRAME_RETURN_COLUMN.
7765 2011-07-09 Richard Henderson <rth@redhat.com>
7767 * dwarf2cfi.c (lookup_cfa): Remove.
7768 (execute_dwarf2_frame): Assert queues are empty on entry.
7769 Setup initial cfa directly, not via lookup_cfa.
7770 Don't clear args_size state here.
7772 2011-07-09 Richard Henderson <rth@redhat.com>
7774 * dwarf2cfi.c (add_cfi_vec): New.
7775 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
7776 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
7777 (execute_dwarf2_frame): Set add_cfi_vec.
7779 2011-07-09 Richard Henderson <rth@redhat.com>
7781 * defaults.h (ASM_COMMENT_START): Move here...
7782 * dwarf2asm.c: ... from here.
7783 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
7784 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
7785 * varasm.c: Likewise.
7787 2011-07-09 Richard Henderson <rth@redhat.com>
7790 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
7791 (create_cfi_notes): ... do it here instead.
7793 2011-07-09 Jakub Jelinek <jakub@redhat.com>
7796 * dwarf2out.c (size_of_int_loc_descriptor): New function.
7797 (address_of_int_loc_descriptor): Use it.
7798 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
7800 2011-07-09 Richard Henderson <rth@redhat.com>
7802 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
7803 (prologue, epilogue): New.
7804 (return, *rts): New.
7805 (blockage, setd, seti): New.
7806 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
7807 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
7808 (pdp11_saved_regno): New.
7809 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
7810 generate rtl instead of text.
7811 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
7812 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
7813 * config/pdp11/pdp11-protos.h: Update.
7815 2011-07-09 Richard Henderson <rth@redhat.com>
7817 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
7818 try to insert an rtl prologue here.
7819 (rs6000_output_function_epilogue): Similarly.
7820 * config/rs6000/rs6000.md (prologue): Emit a barrier to
7821 satisfy !TARGET_SCHED_PROLOG.
7822 (epilogue, sibcall_epilogue): Likewise.
7824 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
7826 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
7828 (IN_OR_GLOBAL_P): Likewise.
7830 2011-07-08 Jason Merrill <jason@redhat.com>
7833 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
7834 compound assignment.
7836 * cgraph.c (cgraph_add_to_same_comdat_group): New.
7837 * cgraph.h: Declare it.
7838 * ipa.c (function_and_variable_visibility): Make sure thunks
7839 have the right visibility.
7841 2011-07-08 Richard Henderson <rth@redhat.com>
7844 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
7845 any tablejump vector.
7848 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
7849 end of the prologue.
7851 2011-07-08 Jakub Jelinek <jakub@redhat.com>
7854 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
7855 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
7856 * config/rs6000/vector.md (vector_select_<mode>,
7857 vector_select_<mode>_uns): Change second operand of NE to
7858 CONST0_RTX (<MODE>mode) instead of const0_rtx.
7859 * config/rs6000/altivec.md (*altivec_vsel<mode>,
7860 *altivec_vsel<mode>_uns): Expect second operand of NE to be
7861 zero_constant of the corresponding vector mode.
7862 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
7865 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
7867 * graphite-dependences.c (build_alias_set_powerset): Remove
7868 continue from loop, add one more assert.
7870 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
7873 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
7874 In particular, allow 8-bit values in r28 and r29.
7875 (avr_hard_regno_scratch_ok): Disallow any register that might be
7876 part of the frame pointer.
7877 (avr_hard_regno_rename_ok): Same.
7878 (avr_legitimate_address_p): Don't allow SUBREGs.
7880 2011-07-08 Julian Brown <julian@codesourcery.com>
7882 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
7884 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
7885 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
7886 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
7887 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
7888 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
7889 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
7890 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
7891 registers in big-endian mode.
7893 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
7895 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
7896 in terms of another.
7897 (write_attr_value): Write a cast if necessary.
7899 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
7900 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
7901 (REG_WORDS_BIG_ENDIAN): Document.
7902 * doc/tm.texi: Regenerate.
7903 * reload.c (operands_match_p): Take it into account.
7904 (reload_adjust_reg_for_mode): Likewise.
7905 * rtlanal.c (subreg_get_info): Likewise.
7907 2011-07-08 Richard Guenther <rguenther@suse.de>
7909 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
7912 2011-07-08 Kai Tietz <ktietz@redhat.com>
7914 * fold-const.c (fold_truth_andor): Factored out truth_andor
7915 label from fold_binary as function.
7916 (fold_binary_loc): Replace truth_andor lable
7917 by function fold_truth_andor.
7919 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
7922 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
7923 check if address is stored in register. If so - give up.
7924 (check_sibcall_argument_overlap_1): Do not perform check of
7925 overlapping when it is call to address.
7927 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
7929 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
7932 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
7934 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
7935 GET_MODE_BITSIZE where appropriate.
7936 (widen_leading, expand_parity, expand_ctz, expand_ffs,
7937 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
7938 expand_float, expand_fix): Likewise.
7939 * expr.c (convert_move, convert_modes, expand_expr_real_2,
7940 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
7941 * stor-layout.c (get_mode_bounds): Likewise.
7942 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
7944 * convert.c (convert_to_integer): Likewise.
7945 * expmed.c (expand_shift_1): Likewise.
7947 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
7950 * optabs.c (expand_binop): Tighten conditions for doubleword
7952 (widen_bswap): Assert that mode bitsize and precision are the same.
7953 * stor-layout.c (get_best_mode): Skip modes that have lower
7954 precision than bitsize.
7955 * recog.c (simplify_while_replacing): Assert that bitsize and
7956 precision are the same.
7958 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7960 * Makefile.in (LIBGCOV): Remove.
7961 (libgcc.mvars): Remove LIBGCOV.
7962 * libgov.c: Move to ../libgcc.
7964 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7966 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
7968 2011-07-08 Martin Jambor <mjambor@suse.cz>
7970 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
7971 is too big for total scalarization.
7973 2011-07-07 Richard Henderson <rth@redhat.com>
7975 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
7976 (DBX_DEBUGGING_INFO): Undef.
7978 2011-07-07 Richard Henderson <rth@redhat.com>
7980 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
7981 Handle some opcodes specially for debugging.
7982 * print-rtl.c: Include dwarf2out.h
7983 (print_rtx): Handle NOTE_INSN_CFI.
7984 * Makefile.in (print-rtl.o): Update.
7986 2011-07-07 Richard Henderson <rth@redhat.com>
7988 * tree-pass.h (pass_dwarf2_frame): Declare.
7989 * passes.c (init_optimization_passes): Add it.
7990 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
7991 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
7992 make static, do not call add_cfis_to_fde.
7993 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
7994 dwarf2out_frame_init): Merge into...
7995 (execute_dwarf2_frame): ... here. New function.
7996 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
7997 saved_do_cfi_asm to a tri-state variable.
7998 (gate_dwarf2_frame, pass_dwarf2_frame): New.
7999 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
8000 if it has yet to be done. Don't call dwarf2cfi_function_init.
8001 * dwarf2out.h, debug.h: Update decls.
8002 * final.c (final_start_function): Don't call
8003 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
8004 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
8005 * toplev.c (lang_dependent_init): Likewise.
8007 2011-07-07 Richard Henderson <rth@redhat.com>
8009 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
8010 FDE_TABLE_INCREMENT): Replace with...
8011 (fde_vec): ... this, a new vector.
8012 (current_fde): Remove. Replace all users with cfun->fde.
8013 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
8014 (size_of_aranges, dwarf2out_finish): Likewise.
8015 (dwarf2out_alloc_current_fde): Break out from ...
8016 (dwarf2out_begin_prologue): ... here.
8017 (dwarf2out_frame_init): Remove.
8018 * dwarf2cfi.c: Update all users of current_fde.
8019 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
8020 * dwarf2out.h: Update decls.
8021 (dw_fde_node): Add fde_index member.
8022 * function.h (struct function): Add fde member.
8024 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
8025 Richard Henderson <rth@redhat.com>
8027 * dwarf2cfi.c (add_cfi): Remove.
8028 (dwarf2out_cfi_label): Remove force argument. Only generate the
8030 (add_fde_cfi): Simplify the different code paths.
8032 (old_cfa, old_cfa_remember): New.
8033 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
8034 (last_reg_save_label): Remove.
8035 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
8036 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
8037 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
8038 dwarf2out_frame_debug_cfa_expression,
8039 dwarf2out_frame_debug_cfa_restore,
8040 dwarf2out_frame_debug_cfa_window_save,
8041 dwarf2out_frame_debug_expr): Remove label parameter.
8042 (cfi_label_required_p, add_cfis_to_fde): New.
8043 (dwarf2out_frame_debug_after_prologue): New.
8044 (dwarf2cfi_frame_init): Initialize old_cfa.
8045 (dwarf2out_frame_debug_restore_state): Likewise.
8046 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
8047 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
8048 * final.c (final_start_function): Call
8049 dwarf2out_frame_debug_after_prologue.
8051 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
8052 Richard Henderson <rth@redhat.com>
8054 * dwarf2cfi.c (cfi_insn): New.
8055 (dwarf2out_cfi_label): Don't emit cfi label here.
8056 (add_fde_cfi): Create a NOTE_INSN_CFI.
8057 (dwarf2out_frame_debug): Setup cfi_insn.
8058 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
8059 (dwarf2out_cfi_begin_epilogue): Make static.
8060 (dwarf2out_frame_debug_restore_state): Make static.
8061 * dwarf2out.c (output_cfi_directive): Make static.
8062 (dwarf2out_emit_cfi): New.
8063 * dwarf2out.h: Update.
8064 * final.c (final): Remove CFI notes.
8065 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
8066 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
8067 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
8068 * insn-notes.def (NOTE_INSN_CFI): New.
8069 (NOTE_INSN_CFI_LABEL): New.
8070 * rtl.h (union rtunion_def): Add rt_cfi member.
8071 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
8073 2011-07-07 Richard Henderson <rth@redhat.com>
8075 * dwarf2cfi.c: New file.
8076 * Makefile.in (OBJS): Add it.
8077 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
8078 * gengtype.c (open_base_files): Include dwarf2out.h.
8079 * coretypes.h (enum var_init_status): Move from ...
8081 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
8082 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
8083 expand_builtin_dwarf_sp_column, init_return_column_size,
8084 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
8085 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
8086 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
8087 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
8088 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
8089 compute_barrier_args_size, dwarf2out_args_size,
8090 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
8091 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
8092 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
8093 queue_reg_save, dwarf2out_flush_queued_reg_saves,
8094 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
8095 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
8096 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
8097 dwarf2out_frame_debug_cfa_expression,
8098 dwarf2out_frame_debug_cfa_restore,
8099 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
8100 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
8101 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
8102 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
8103 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
8104 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
8105 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
8106 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
8107 dw_loc_descr_node): Move to dwarf2out.h.
8108 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
8109 mem_loc_descriptor): Export.
8110 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
8111 (dwarf2out_frame_init): Extract CIE generation code to
8112 dwarf2cfi_frame_init.
8114 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
8117 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
8118 MASK_V8PLUS, remove commented out flag and reorder.
8120 2011-07-07 Jakub Jelinek <jakub@redhat.com>
8123 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
8124 one non-complex and one complex argument, call c_save_expr on both
8127 2011-07-07 Martin Jambor <mjambor@suse.cz>
8130 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
8131 (verify_cgraph_node): Some functinality moved to
8132 verify_edge_corresponds_to_fndecl, call it.
8134 2011-07-07 Joseph Myers <joseph@codesourcery.com>
8136 * config.gcc (*local*): Remove.
8137 * doc/install-old.texi: Don't mention local configurations.
8139 2011-07-07 Jakub Jelinek <jakub@redhat.com>
8142 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
8143 referencing debug insns that have been reset.
8144 (dead_debug_insert_before): Don't assert reg is non-NULL,
8145 instead return immediately if it is NULL.
8147 2011-07-07 Joseph Myers <joseph@codesourcery.com>
8149 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
8151 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
8153 * hw-doloop.c: New file.
8154 * hw-doloop.h: New file.
8155 * Makefile.in (OBJS): Add hw-doloop.o.
8156 (hw-doloop.o): New rule.
8157 ($(obj_out_file)): Add hw-doloop.h dependency.
8158 * config/bfin/bfin.c: Include "hw-doloop.h".
8159 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
8160 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
8161 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
8162 type changed to hwloop_info. Return bool, true if the loop was
8163 successfully optimized. Remove code that was moved to
8164 hw-doloop.c, and adjust other parts.
8165 (hwloop_fail): New static function, containing parts that used
8166 to be in bfin_optimize_loop.
8167 (bfin_discover_loop, bfin_discover_loops, free_loops,
8168 bfin_reorder_loops): Remove.
8169 (hwloop_pattern_reg): New static function.
8170 (bfin_doloop_hooks): New variable.
8171 (bfin_reorg_loops): Remove most code, call reorg_loops.
8172 * config/bfin/bfin.md (doloop_end splitter): Also enable if
8173 loop counter is a memory_operand.
8175 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
8177 * config.gcc: Support --with-multilib-list for x86 Linux targets.
8179 * configure.ac: Mention x86-64 for --with-multilib-list.
8180 * configure: Regenerated.
8182 * config/i386/gnu-user64.h (SPEC_64): Support x32.
8183 (SPEC_32): Likewise.
8184 (ASM_SPEC): Likewise.
8185 (LINK_SPEC): Likewise.
8186 (TARGET_THREAD_SSP_OFFSET): Likewise.
8187 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
8190 * config/i386/i386.h (TARGET_X32): New.
8192 (LONG_TYPE_SIZE): Likewise.
8193 (POINTER_SIZE): Likewise.
8194 (POINTERS_EXTEND_UNSIGNED): Likewise.
8195 (OPT_ARCH64): Support x32.
8196 (OPT_ARCH32): Likewise.
8198 * config/i386/i386.opt (mx32): New.
8200 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
8201 (GLIBC_DYNAMIC_LINKERX32): Likewise.
8202 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
8203 (GLIBC_DYNAMIC_LINKERX32): Likewise.
8205 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
8206 (BIONIC_DYNAMIC_LINKERX32): Likewise.
8207 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
8209 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
8211 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
8213 * doc/invoke.texi: Document -mx32.
8215 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
8217 * doc/invoke.texi (mwords-little-endian): Deprecate.
8218 * config/arm/arm.opt (mwords-little-endian): Likewise.
8219 * config/arm/arm.c (arm_option_override): Warn about the deprecation
8220 of -mwords-little-endian.
8222 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
8224 * reload1.c (choose_reload_regs): Use mode sizes to check whether
8225 an old reload register completely defines the required value.
8227 2011-07-07 Richard Guenther <rguenther@suse.de>
8229 * fold-const.c (fold_unary_loc): Do not strip sign-changes
8232 2011-07-07 Richard Guenther <rguenther@suse.de>
8234 * tree-vrp.c (simplify_conversion_using_ranges): New function.
8235 (simplify_stmt_using_ranges): Call it.
8237 2011-07-07 Kai Tietz <ktietz@redhat.com>
8239 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
8240 (lookup_logical_inverted_value): Likewise.
8241 (simplify_bitwise_binary_1): Likewise.
8242 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
8244 2011-07-07 Joseph Myers <joseph@codesourcery.com>
8246 * gcc.c (%[Spec]): Don't document.
8247 (struct spec_list): Update comment.
8248 (do_spec_1): Don't handle %[Spec].
8249 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
8251 2011-07-07 Joseph Myers <joseph@codesourcery.com>
8253 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
8254 default based on TARGET_ASM_NAMED_SECTION.
8255 * common/common-target.def (have_named_sections): Default to true.
8256 * common/config/default-common.c: Don't include tm.h.
8257 * common/config/picochip/picochip-common.c
8258 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
8259 * common/config/m32c/m32c-common.c: Remove.
8260 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
8261 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8262 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8263 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8264 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8265 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8266 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8268 2011-07-07 Jakub Jelinek <jakub@redhat.com>
8271 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
8272 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
8274 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8277 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
8279 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8282 * configure.ac (gcc_cv_as_hidden): Also accept
8283 x86_64-*-solaris2.1[0-9]*.
8284 (gcc_cv_as_cfi_directive): Likewise.
8285 (gcc_cv_as_comdat_group_group): Likewise.
8286 (set_have_as_tls): Likewise.
8287 * configure: Regenerate.
8288 * config.gcc (i[34567]86-*-solaris2*): Also handle
8289 x86_64-*-solaris2.1[0-9]*.
8290 * config.host (i[34567]86-*-solaris2*): Likewise.
8291 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
8292 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
8293 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
8294 (TARGET_LD_EMULATION): Use it.
8295 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
8296 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
8297 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
8298 (ASM_CPU64_DEFAULT_SPEC): Define.
8299 (ASM_CPU_SPEC): Use %(asm_cpu_default).
8300 (ASM_SPEC): Redefine.
8301 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
8302 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
8303 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
8304 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
8306 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
8308 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8310 * config/sol2.h (ASM_SPEC): Split into ...
8311 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
8312 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
8313 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
8314 (ASM_SPEC): Use ASM_SPEC_BASE.
8315 * config/sparc/sol2.h (ASM_SPEC): Redefine.
8317 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
8319 * config/avr/avr.md (*reload_insi): Change predicate #1 to
8320 const_int_operand. Ditto for peep2 producing this insn.
8321 Add argument to output_reload_insisf call.
8322 (*movsi,*movsf): Add argument to output_movsisf call.
8323 (*reload_insf): New insn and new peep2 to produce it.
8324 * config/avr/avr-protos.h (output_movsisf): Change prototype.
8325 (output_reload_insisf): Change prototype.
8326 * config/avr/avr.c (avr_asm_len): New function.
8327 (output_reload_insisf): Rewrite.
8328 (output_movsisf): Change prototype. output_reload_insisf for
8329 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
8330 (adjust_insn_length): Add argument to output_movsisf and
8331 output_reload_insisf call.
8333 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
8335 * emit-rtl.c (paradoxical_subreg_p): New function.
8336 * rtl.h (paradoxical_subreg_p): Declare.
8337 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
8338 apply_distributive_law, simplify_comparison, simplify_set): Use it.
8339 * cse.c (record_jump_cond, cse_insn): Likewise.
8340 * expr.c (force_operand): Likewise.
8341 * rtlanal.c (num_sign_bit_copies1): Likewise.
8342 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
8343 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
8344 (push_reload): Use precision to check for paradoxical subregs.
8345 * expmed.c (extract_bit_field_1): Likewise.
8347 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
8348 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
8349 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
8350 simplify_set, simplify_logical, expand_compound_operation,
8351 make_extraction, force_to_mode, if_then_else_cond, extended_count,
8352 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
8353 record_value_for_reg): Likewise.
8354 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
8355 * simplify-rtx. c (simplify_unary_operation_1,
8356 simplify_binary_operation_1, simplify_const_relational_operation):
8359 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
8360 instead of GET_MODE_BITSIZE where appropriate.
8361 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
8362 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
8363 init_num_sign_bit_copies_in_rep): Likewise.
8364 * cse.c (fold_rtx, cse_insn): Likewise.
8365 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
8366 * simplify-rtx.c (simplify_unary_operation_1,
8367 simplify_const_unary_operation, simplify_binary_operation_1,
8368 simplify_const_binary_operation, simplify_ternary_operation,
8369 simplify_const_relational_operation, simplify_subreg): Likewise.
8370 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
8371 simplify_if_then_else, simplify_set, expand_compound_operation,
8372 expand_field_assignment, make_extraction, if_then_else_cond,
8373 make_compound_operation, force_to_mode, make_field_assignment,
8374 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
8375 extended_count, try_widen_shift_mode, simplify_shift_const_1,
8376 simplify_comparison, record_promoted_value, simplify_compare_const,
8377 record_dead_and_set_regs_1): Likewise.
8380 * simplify-rtx.c (simplify_const_binary_operation): Use the
8381 shift_truncation_mask hook instead of performing modulo by width.
8382 Compare against mode precision, not bitsize.
8383 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
8384 Use shift_truncation_mask instead of constructing the value manually.
8386 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
8388 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
8390 (rs6000_save_toc_in_prologue_p): Ditto.
8392 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
8393 up the static chain (r11) during indirect function calls.
8394 (-msave-toc-indirect): New undocumented debug switch.
8396 * config/rs6000/rs6000.c (struct machine_function): Add
8397 save_toc_in_prologue field to note whether the prologue needs to
8398 save the TOC value in the reserved stack location.
8399 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
8400 to save the TOC in the prologue, do so.
8401 (rs6000_trampoline_init): Don't allow creating AIX style
8402 trampolines if -mno-r11 is in effect.
8403 (rs6000_call_indirect_aix): New function to create AIX style
8404 indirect calls, adding support for -mno-r11 to suppress loading
8405 the static chain, and saving the TOC in the prologue instead of
8407 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
8408 TOC in the prologue.
8410 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
8412 (TOC_REGNUM): Ditto.
8413 (STATIC_CHAIN_REGNUM): Ditto.
8414 (ARG_POINTER_REGNUM): Ditto.
8415 (SFP_REGNO): Delete, unused.
8416 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
8417 function descriptor offsets.
8418 (TOC_SAVE_OFFSET_64BIT): Ditto.
8419 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
8420 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
8421 (AIX_FUNC_DESC_SC_32BIT): Ditto.
8422 (AIX_FUNC_DESC_SC_64BIT): Ditto.
8423 (ptrload): New mode attribute for the appropriate load of a pointer.
8424 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
8425 (call_indirect_aix64): Ditto.
8426 (call_value_indirect_aix32): Ditto.
8427 (call_value_indirect_aix64): Ditto.
8428 (call_indirect_nonlocal_aix32_internal): Ditto.
8429 (call_indirect_nonlocal_aix32): Ditto.
8430 (call_indirect_nonlocal_aix64_internal): Ditto.
8431 (call_indirect_nonlocal_aix64): Ditto.
8432 (call): Rewrite AIX indirect function calls. Add support for
8433 eliminating the static chain, and for moving the save of the TOC
8434 to the function prologue.
8435 (call_value): Ditto.
8436 (call_indirect_aix<ptrsize>): Ditto.
8437 (call_indirect_aix<ptrsize>_internal): Ditto.
8438 (call_indirect_aix<ptrsize>_internal2): Ditto.
8439 (call_indirect_aix<ptrsize>_nor11): Ditto.
8440 (call_value_indirect_aix<ptrsize>): Ditto.
8441 (call_value_indirect_aix<ptrsize>_internal): Ditto.
8442 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
8443 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
8444 (call_nonlocal_aix32): Relocate in the rs6000.md file.
8445 (call_nonlocal_aix64): Ditto.
8447 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
8448 -mno-r11 documentation.
8450 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8453 * doc/extend.texi (Compound Literals): Fix typo.
8455 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
8457 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
8459 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
8461 * configure.ac (plugin-version.h): Generate
8462 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
8463 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
8466 * configure: Regenerate.
8468 * doc/plugins.texi (Building GCC plugins): Mention
8469 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
8471 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
8473 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
8474 * combine.c (make_extraction, gen_lowpart_or_truncate,
8475 apply_distributive_law, simplify_comparison,
8476 reg_truncated_to_mode, record_truncated_value): Use it.
8477 * cse.c (notreg_cost): Likewise.
8478 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
8479 * expr.c (convert_move, convert_modes): Likewise.
8480 * optabs.c (expand_binop, expand_unop): Likewise.
8481 * postreload.c (move2add_last_label): Likewise.
8482 * regmove.c (optimize_reg_copy_3): Likewise.
8483 * rtlhooks.c (gen_lowpart_general): Likewise.
8484 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
8486 2011-07-06 Joseph Myers <joseph@codesourcery.com>
8488 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
8490 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
8492 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
8493 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
8494 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
8495 (simplify_const_unary_operation, simplify_binary_operation_1,
8496 simplify_const_binary_operation, simplify_const_relational_operation):
8497 Use them. Use GET_MODE_MASK for masking and sign-extensions.
8498 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
8499 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
8500 simplify_shift_const_1, simplify_comparison): Likewise.
8501 * expr.c (convert_modes): Likewise.
8502 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
8503 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
8504 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
8506 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
8508 2011-07-06 Richard Guenther <rguenther@suse.de>
8510 PR tree-optimization/49645
8511 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
8513 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
8514 in type qualification here ...
8515 (copy_reference_ops_from_ref): ... not here.
8516 (vn_reference_lookup_3): ... or here.
8517 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
8518 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
8520 2011-07-06 Ian Lance Taylor <iant@google.com>
8522 * doc/install.texi (Configuration): It's
8523 --enable-gnu-indirect-function, not --enable-indirect-function.
8525 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
8527 * simplify-rtx.c (simplify_const_binary_operation): Use the
8528 shift_truncation_mask hook instead of performing modulo by width.
8529 Compare against mode precision, not bitsize.
8530 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
8531 Use shift_truncation_mask instead of constructing the value manually.
8533 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
8536 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
8537 address computation and convert to address_mode if needed.
8539 2011-07-06 Richard Guenther <rguenther@suse.de>
8541 * tree.c (build_common_tree_nodes_2): Merge with
8542 build_common_tree_nodes.
8543 * tree.h (build_common_tree_nodes): Adjust prototype.
8544 (build_common_tree_nodes_2): Remove.
8545 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
8546 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
8548 2011-07-05 Jakub Jelinek <jakub@redhat.com>
8550 PR tree-optimization/49618
8551 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
8552 t recurse on the decl.
8553 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
8554 return true if expr isn't known to be defined in current
8555 TU or some other LTO partition.
8557 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
8559 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
8560 override CASE_VALUES_THRESHOLD.
8562 * stmt.c (toplevel): Include params.h.
8563 (case_values_threshold): Use the --param case-values-threshold
8564 value if non-zero, otherwise use machine dependent value.
8565 (expand_case): Use case_values_threshold.
8567 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
8569 * doc/invoke.texi (--param case-values-threshold): Document.
8571 2011-07-05 Richard Henderson <rth@redhat.com>
8573 * dwarf2out.c (dwarf2out_cfi_label): Make static.
8574 (dwarf2out_flush_queued_reg_saves): Make static.
8575 (dwarf2out_reg_save): Remove.
8576 (dwarf2out_return_save): Remove.
8577 (dwarf2out_return_reg): Remove.
8578 (dwarf2out_reg_save_reg): Remove.
8579 (dwarf2out_def_cfa): Merge into ...
8580 (dwarf2out_frame_init): ... here.
8581 * dwarf2out.h, tree.h: Remove declarations as necessary.
8583 2011-07-05 Richard Henderson <rth@redhat.com>
8585 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
8586 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8587 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
8590 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
8591 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
8592 (process_epilogue): Don't call dwarf2out_def_cfa.
8594 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
8595 indicate the return address save.
8596 (process_cfa_register): Likewise.
8598 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
8599 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
8601 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
8602 for ar.pfs save at alloc insn.
8604 2011-07-05 Richard Henderson <rth@redhat.com>
8606 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
8607 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8608 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
8610 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
8611 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
8612 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
8613 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
8615 2011-07-05 Richard Henderson <rth@redhat.com>
8617 * config/vax/vax.md (define_c_enum unspecv): New. Define the
8618 VUNSPEC_* constants here instead of via define_constants.
8619 (VUNSPEC_PEM): New constant.
8620 (procedure_entry_mask): New insn.
8621 (prologue): New expander.
8622 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
8623 (vax_expand_prologue): Rename from vax_output_function_prologue;
8624 emit rtl instead of text.
8625 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
8626 (print_operand): Add 'x' prefix.
8628 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
8631 * calls.c (precompute_register_parameters): Promote the function
8632 argument before checking non-legitimate constant.
8634 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
8636 PR tree-optimization/47654
8637 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
8638 (lst_do_strip_mine_loop): Return an int.
8639 (lst_do_strip_mine): Same.
8640 (scop_do_strip_mine): Same.
8641 (scop_do_block): Loop blocking should strip-mine at least two loops.
8642 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
8643 (scop_do_interchange): Same.
8644 * graphite-poly.h (scop_do_interchange): Update declaration.
8645 (scop_do_strip_mine): Same.
8647 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
8649 * graphite-clast-to-gimple.c (precision_for_value): Removed.
8650 (precision_for_interval): Removed.
8651 (gcc_type_for_interval): Use mpz_sizeinbase.
8653 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
8655 * graphite-ppl.h (value_max): Correct computation of max.
8657 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
8659 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
8661 2011-07-05 Richard Guenther <rguenther@suse.de>
8663 * c-decl.c (c_init_decl_processing): Defer building common
8664 tree nodes to c_common_nodes_and_builtins.
8666 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
8668 PR tree-optimization/49580
8669 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
8670 the loop's number of iterations.
8671 * tree-parloops.c (transform_to_exit_first_loop): Add the
8672 handling of the loop's number of iterations before the call
8673 to gimple_duplicate_sese_tail.
8674 Insert the stmt caclculating the new rhs of the loop's
8675 condition stmt to the preheader instead of iters_bb.
8677 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
8679 PR rtl-optimization/47449
8680 * fwprop.c (forward_propagate_subreg): Don't propagate hard
8681 register nor zero/sign extended hard register.
8683 2011-07-05 Richard Guenther <rguenther@suse.de>
8685 PR tree-optimization/49518
8686 PR tree-optimization/49628
8687 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
8688 irrelevant and invariant data-references.
8689 (vect_analyze_data_ref_access): For invariant loads clear the
8692 2011-07-04 Jakub Jelinek <jakub@redhat.com>
8694 PR rtl-optimization/49619
8695 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
8696 pass VOIDmode as op0_mode to recursive call, and return temp even
8697 when different from tor, just if it is not IOR of the original
8700 PR rtl-optimization/49472
8701 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
8702 negating MULT, negate the second operand instead of first.
8703 (simplify_binary_operation_1) <case MULT>: If one operand is
8704 a NEG and the other is MULT, don't attempt to optimize by negation
8705 of the MULT operand if it only moves the NEG operation around.
8708 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
8709 get_current_def return value if it can't be trusted to be
8710 the current value of the variable in the current bb.
8712 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
8715 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
8716 general register to memory for !TARGET_INTER_UNIT_MOVES.
8718 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
8721 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
8722 instead of TREE_READONLY.
8724 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
8726 * doc/extend.texi (AVR Built-in Functions): Update documentation
8727 of __builtin_avr_fmul*.
8728 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
8729 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
8730 * config/avr/avr.md (fmul): Rename to fmul_insn.
8731 (fmuls): Rename to fmuls_insn.
8732 (fmulsu): Rename to fmulsu_insn.
8733 (fmul,fmuls,fmulsu): New expander.
8734 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
8735 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
8736 * config/avr/libgcc.S (__fmul): New function.
8737 (__fmuls): New function.
8738 (__fmulsu,__fmulsu_exit): New function.
8740 2011-07-04 Richard Guenther <rguenther@suse.de>
8742 PR tree-optimization/49615
8743 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
8744 basic-block index check.
8746 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
8748 * longlong.h (count_leading_zeros, count_trailing_zeros,
8749 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
8752 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
8754 PR tree-optimization/49610
8755 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
8758 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
8759 Olivier Hainque <hainque@adacore.com>
8760 Nicolas Setton <setton@adacore.com>
8762 * tree.h (TYPE_ARTIFICIAL): New flag.
8763 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
8764 the DIE of the type if it is artificial.
8765 (gen_array_type_die): Likewise.
8766 (gen_enumeration_type_die): Likewise.
8767 (gen_struct_or_union_type_die): Likewise.
8768 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
8769 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
8771 2011-07-01 Jakub Jelinek <jakub@redhat.com>
8773 * tree-object-size.c (pass_through_call): Handle
8774 BUILT_IN_ASSUME_ALIGNED.
8776 2011-07-01 Martin Jambor <mjambor@suse.cz>
8778 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
8780 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
8783 * explow.c (update_nonlocal_goto_save_area): Use proper mode
8784 for stack save area.
8785 * function.c (expand_function_start): Likewise.
8787 2011-07-01 Richard Guenther <rguenther@suse.de>
8790 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
8791 may have unknown refs.
8793 2011-07-01 Kai Tietz <ktietz@redhat.com>
8795 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
8797 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8799 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
8800 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
8801 (Specific, mips-sgi-irix6): Likewise.
8803 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8806 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
8808 2011-07-01 Jakub Jelinek <jakub@redhat.com>
8810 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
8811 [idx]= and [idx1 ... idx2]= before initializers if needed for
8814 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
8816 * config.gcc (score-*-elf): Remove score7.o.
8817 * config/score/t-score-elf: Likewise.
8818 * config/score/score.c: Merge score7 to score.c and
8819 remove forwarding functions.
8820 * config/score/score7.c: Deleted.
8821 * config/score/score7.h: Deleted.
8823 2011-07-01 Richard Guenther <rguenther@suse.de>
8825 PR tree-optimization/49603
8826 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
8828 2011-06-30 Martin Jambor <mjambor@suse.cz>
8830 * tree-sra.c (struct access): Rename total_scalarization to
8831 grp_total_scalarization
8832 (completely_scalarize_var): New function.
8833 (sort_and_splice_var_accesses): Set total_scalarization in the
8834 representative access.
8835 (analyze_access_subtree): Propagate total scalarization accross the
8836 tree, no holes in totally scalarized trees, simplify coverage
8838 (analyze_all_variable_accesses): Call completely_scalarize_var instead
8839 of completely_scalarize_record.
8841 2011-06-30 Richard Henderson <rth@redhat.com>
8843 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
8844 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
8845 * config/i386/i386.c: Don't include dwarf2out.h.
8846 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
8847 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
8848 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
8849 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
8850 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
8852 2011-06-30 Richard Henderson <rth@redhat.com>
8854 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
8855 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
8856 * final.c (final_scan_insn): Look for it, and invoke
8857 dwarf2out_frame_debug before the insn if found.
8859 2011-06-30 Richard Henderson <rth@redhat.com>
8861 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
8862 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
8864 2011-06-30 Richard Henderson <rth@redhat.com>
8866 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
8867 Define a vector of this type.
8868 (regs_saved_in_regs): Use a VEC.
8869 (num_regs_saved_in_regs): Remove.
8870 (compare_reg_or_pc): New.
8871 (record_reg_saved_in_reg): Split out from...
8872 (dwarf2out_flush_queued_reg_saves): ... here.
8873 (clobbers_queued_reg_save): Update for VEC.
8874 (reg_saved_in): Likewise.
8875 (dwarf2out_frame_debug_init): Likewise.
8876 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
8877 (dwarf2out_frame_debug_cfa_register): Likewise.
8879 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
8881 PR tree-optimization/49572
8882 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
8883 type of the RHS instead of that of the LHS for the expression type.
8885 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
8887 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
8890 2011-06-30 Richard Guenther <rguenther@suse.de>
8892 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
8893 * tree-ssa-structalias.c (create_variable_info_for): Do not
8894 add initial constraints for non-var-decls. Properly handle
8895 globals in other ltrans partitions.
8896 (intra_create_variable_infos): Manually create constraints for
8897 the fake no-alias parameter.
8898 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
8899 and assert there are no clones.
8901 2011-06-30 Richard Guenther <rguenther@suse.de>
8903 PR tree-optimization/46787
8904 * tree-data-ref.c (dr_address_invariant_p): Remove.
8905 (find_data_references_in_stmt): Invariant accesses are ok now.
8906 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
8907 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
8910 2011-06-30 Martin Jambor <mjambor@suse.cz>
8912 PR tree-optimization/49094
8913 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
8914 (build_accesses_from_assign): Use it.
8916 2011-06-30 Jakub Jelinek <jakub@redhat.com>
8918 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
8919 handling of BUILT_IN_ASSUME_ALIGNED.
8922 * dwarf2out.c (output_abbrev_section): Don't return early
8923 if abbrev_die_table_in_use is 1.
8924 (dwarf2out_finish): Instead don't call output_abbrev_section
8925 nor emit abbrev_section_label in that case.
8927 2011-06-30 Nick Clifton <nickc@redhat.com>
8929 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
8932 2011-06-30 Jakub Jelinek <jakub@redhat.com>
8934 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
8935 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
8937 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
8939 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
8940 both pattern and original statements if necessary.
8941 (vect_transform_loop): Likewise.
8942 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
8943 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
8944 Mark the pattern statement only if the original statement doesn't
8946 (process_use): Call vect_mark_relevant with additional parameter.
8947 (vect_mark_stmts_to_be_vectorized): Likewise.
8948 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
8949 (vect_analyze_stmt): Handle both pattern and original statements
8951 (vect_transform_stmt): Don't store vectorized pattern statement
8952 in the original statement.
8953 (vect_is_simple_use_1): Use related pattern statement only if the
8954 original statement is irrelevant.
8955 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
8957 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
8959 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
8961 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
8963 (TARGET_AVX128_OPTIMAL): New definition.
8964 * config/i386/i386.c (initial_ix86_tune_features): Initialize
8965 X86_TUNE_AVX128_OPTIMAL entry.
8966 (ix86_option_override_internal): Enable the generation
8967 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
8968 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
8969 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
8971 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
8973 PR tree-optimization/49539
8974 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
8975 names by means of stmt_references_abnormal_ssa_name.
8976 (associate_plusminus): Call can_propagate_from before propagating
8977 from definition statements.
8978 (ssa_forward_propagate_and_combine): Remove superfluous newline.
8980 2011-06-29 Richard Guenther <rguenther@suse.de>
8982 * doc/invoke.texi: Document -scev dump modifier.
8983 * tree-pass.h (TDF_SCEV): New dump flag.
8984 * tree-dump.c (dump_option_value_in): Add scev.
8985 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
8986 * tree-scalar-evolution.c: Likewise.
8988 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
8990 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
8991 (cxa_type_match): Correct declaration.
8992 (__gnu_unwind_pr_common): Reconstruct additional indirection
8993 when __cxa_type_match returns succeeded_with_ptr_to_base.
8995 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8997 PR rtl-optimization/49114
8998 * reload.c (struct replacement): Remove SUBREG_LOC member.
8999 (push_reload): Do not set it.
9000 (push_replacement): Likewise.
9001 (subst_reload): Remove dead code.
9002 (copy_replacements): Remove assertion.
9003 (copy_replacements_1): Do not handle SUBREG_LOC.
9004 (move_replacements): Likewise.
9005 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
9006 Detect subregs via recursive descent instead of via SUBREG_LOC.
9008 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
9010 * config/avr/avr.c (avr_encode_section_info): Dispatch to
9011 default_encode_section_info.
9013 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
9015 PR tree-optimization/49545
9016 * builtins.c (get_object_alignment_1): Update function comment.
9017 Do not use DECL_ALIGN for functions, but test
9018 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
9019 * fold-const.c (get_pointer_modulus_and_residue): Don't check
9021 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
9023 2011-06-29 Jakub Jelinek <jakub@redhat.com>
9026 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
9027 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
9029 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
9032 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
9033 about uninitialized data attributed 'progmem' from here...
9034 (avr_encode_section_info): ...to this new function.
9035 (TARGET_ENCODE_SECTION_INFO): New define.
9036 (avr_section_type_flags): For data in ".progmem.data", remove
9037 section flag SECTION_WRITE.
9039 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
9041 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
9043 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
9044 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
9045 (__umulhisi3): Ditto.
9046 * config/avr/avr.md (mulhisi3): New insn expender.
9047 (umulhisi3): New insn expender.
9048 (*mulhisi3_call): New insn.
9049 (*umulhisi3_call): New insn.
9051 2011-06-28 Joseph Myers <joseph@codesourcery.com>
9053 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
9055 2011-06-28 Richard Henderson <rth@redhat.com>
9057 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
9058 all code and arguments that handled pushes. Update all callers.
9060 2011-06-28 Richard Henderson <rth@redhat.com>
9062 * config/arm/arm.c (arm_output_function_prologue): Don't call
9063 thumb1_output_function_prologue.
9064 (arm_expand_prologue): Avoid dead store.
9065 (number_of_first_bit_set): Use ctz_hwi.
9066 (thumb1_emit_multi_reg_push): New.
9067 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
9068 to emit the entire prologue as rtl.
9069 (thumb1_output_interwork): Split out from
9070 thumb1_output_function_prologue.
9071 (thumb1_output_function_prologue): Remove.
9072 (arm_attr_length_push_multi): Handle thumb1.
9073 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
9074 (prologue_thumb1_interwork): New.
9075 (*push_multi): Allow thumb1; use push_mult_memory_operand.
9076 * config/arm/predicates.md (push_mult_memory_operand): New.
9078 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
9080 * config/sparc/sync.md (*stbar): Delete.
9081 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
9083 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
9085 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
9087 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9089 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
9090 (TARGET_64BIT_DEFAULT): Define.
9091 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
9093 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
9095 2011-06-28 Joseph Myers <joseph@codesourcery.com>
9097 * common.opt (in_lto_p): New Variable entry.
9098 * flags.h (in_lto_p): Move to common.opt.
9099 * gcc.c: Include params.h.
9100 (set_option_handlers): Also use common_handle_option and
9101 target_handle_option.
9102 (main): Call global_init_params, finish_params and init_options_struct.
9103 * opts.c (debug_type_names): Move from toplev.c.
9104 (print_filtered_help): Access quiet_flag through opts pointer.
9105 (common_handle_option): Return early in the driver for some options.
9106 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
9108 * toplev.c (in_lto_p): Move to common.opt.
9109 (debug_type_names): Move to opts.c.
9110 * Makefile.in (OBJS): Remove opts.o.
9111 (OBJS-libcommon-target): Add opts.o.
9112 (gcc.o): Update dependencies.
9114 2011-06-28 Kai Tietz <ktietz@redhat.com>
9116 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
9118 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9120 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
9121 with '=' constraint modifier.
9122 (*divdf3_vfp): Likewise.
9123 ("*mulsf3_vfp"): Likewise.
9124 ("*muldf3_vfp"): Likewise.
9125 ("*mulsf3negsf_vfp"): Likewise.
9126 ("*muldf3negdf_vfp"): Likewise.
9128 2011-06-28 Nick Clifton <nickc@redhat.com>
9130 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
9131 relaxation when performing an incremental link.
9133 2011-06-28 Kai Tietz <ktietz@redhat.com>
9135 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
9136 within BB from last to first.
9138 2011-06-28 Joseph Myers <joseph@codesourcery.com>
9140 * genattr-common.c: New. Based on genattr.c.
9141 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
9142 (MOSTLYCLEANFILES): Add insn-attr-common.h.
9143 (opts.o): Update dependencies.
9144 (.PRECIOUS): Add insn-attr-common.h.
9145 (simple_rtl_generated_h): Add insn-attr-common.h.
9146 (build/genattr-common.o): New.
9147 (genprogrtl): Add attr-common.
9148 * genattr.c (main): Include insn-attr-common.h. Don't generate
9149 definitions of DELAY_SLOTS or INSN_SCHEDULING.
9150 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
9152 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
9154 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
9155 avr-*-* and avr-*-rtems* targets.
9157 * config/avr/elf.h: New file.
9158 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
9159 (TARGET_ASM_SELECT_SECTION): Define.
9160 (INIT_SECTION_ASM_OP): Undefine.
9161 (FINI_SECTION_ASM_OP): Undefine.
9162 (READONLY_DATA_SECTION_ASM_OP): Undefine.
9163 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
9164 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
9166 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
9167 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
9168 (MAX_OFILE_ALIGNMENT): Move to elf.h.
9169 (STRING_LIMIT): Move to elf.h.
9170 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
9171 (ASM_DECLARE_OBJECT_NAME): Remove.
9173 (ASM_OUTPUT_SKIP): Remove.
9174 (DWARF2_DEBUGGING_INFO): Remove.
9175 (OBJECT_FORMAT_ELF): Remove.
9176 (USER_LABEL_PREFIX): Remove.
9177 (ASM_OUTPUT_EXTERNAL): Remove.
9178 (ASM_OUTPUT_ASCII): Remove.
9179 (TYPE_ASM_OP): Remove.
9180 (SIZE_ASM_OP): Remove.
9181 (WEAK_ASM_OP): Remove.
9182 (STRING_ASM_OP): Remove.
9183 (SET_ASM_OP): Remove.
9184 (ASM_WEAKEN_LABEL): Remove.
9185 (TYPE_OPERAND_FMT): Remove.
9186 (ASM_DECLARE_FUNCTION_SIZE): Remove.
9187 (ASM_FINISH_DECLARE_OBJECT): Remove.
9188 (NO_DOLLAR_IN_LABEL): Remove.
9189 (ASM_GENERATE_INTERNAL_LABEL): Remove.
9190 (ASM_OUTPUT_CASE_LABEL): Remove.
9191 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
9192 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
9193 (gas_output_ascii): Remove.
9194 (gas_output_limited_string): Remove.
9195 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
9196 * config/avr/avr-protos.h
9197 (gas_output_ascii): Remove prototye.
9198 (gas_output_limited_string): Remove prototype.
9200 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
9203 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
9206 2011-06-27 Jan Hubicka <jh@suse.cz>
9208 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
9209 node instead of references in node.
9211 2011-06-27 Richard Henderson <rth@redhat.com>
9213 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
9214 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
9217 2011-06-27 Jakub Jelinek <jakub@redhat.com>
9219 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
9221 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
9222 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
9223 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
9224 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
9225 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
9226 (evaluate_stmt, execute_fold_all_builtins): Handle
9227 BUILT_IN_ASSUME_ALIGNED.
9228 * tree-ssa-dce.c (propagate_necessity): Likewise.
9229 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
9230 call_may_clobber_ref_p_1): Likewise.
9231 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
9232 (expand_builtin_assume_aligned): New function.
9233 * doc/extend.texi (__builtin_assume_aligned): Document.
9236 * cselib.c (promote_debug_loc): If cselib_preserve_constants
9237 and l has two DEBUG_INSN owned locs instead of just one, adjust
9238 the second location's setting_insn too.
9240 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9243 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
9245 2011-06-27 Nick Clifton <nickc@redhat.com>
9247 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
9248 bit position of highest bit set into a count of the high zero bits.
9250 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
9252 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
9254 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
9257 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
9260 2011-06-27 Richard Guenther <rguenther@suse.de>
9262 PR tree-optimization/49394
9263 * passes.c (execute_one_pass): Restore current_pass after
9264 applying IPA transforms.
9266 2011-06-27 Kai Tietz <ktietz@redhat.com>
9268 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
9269 out of type precision after operation.
9270 (find_bswap): Take for limit value the integer auto-promotion
9273 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
9275 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
9276 forward scan as well.
9278 2011-06-27 Tristan Gingold <gingold@adacore.com>
9281 * config/vms/vms-protos.h: New file.
9282 * config/vms/vms-crtlmap.map: New file.
9283 * config/vms/vms.c: New file.
9284 * config/vms/make-crtlmap.awk: New file.
9285 * config/vms/vms-crtl.h: File removed.
9286 * config/vms/vms-crtl-64.h: File removed.
9287 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
9288 * config/alpha/vms64.h: Do not include vms-crtl-64.h
9289 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
9290 clear some builtins on VMS. Calls vms_patch_builtins.
9291 (avms_asm_output_external): Remove.
9292 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
9293 (struct crtl_name_spec): Remove
9294 (DO_CTRL_NAMES): Remove.
9295 * config/ia64/vms.h (struct crtl_name_spec): Remove
9296 (DO_CTRL_NAMES): Remove.
9297 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
9298 clear some builtins on VMS. Calls vms_patch_builtins.
9299 (ia64_asm_output_external): Remove DO_CRTL_NAME.
9300 * config/ia64/vms64.h: Do not include vms-crtl-64.h
9301 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
9303 2011-06-27 Tristan Gingold <gingold@adacore.com>
9305 * config/alpha/alpha.c (alpha_end_function): Always generate .end
9308 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
9310 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
9311 the function receives nonlocal gotos.
9313 2011-06-27 Richard Guenther <rguenther@suse.de>
9315 PR tree-optimization/49536
9316 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
9317 For non-scalar inner types use a scalar type according to
9318 the scalar inner mode.
9320 2011-06-27 Richard Guenther <rguenther@suse.de>
9322 PR tree-optimization/49365
9323 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
9325 2011-06-27 Richard Guenther <rguenther@suse.de>
9327 PR tree-optimization/49169
9328 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
9329 the alignment of function decls.
9331 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
9334 * config/darwin.c (darwin_mergeable_string_section): Place string
9335 constants in '.cstring' rather than '.const' when CF/NSStrings are
9338 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
9340 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
9341 (emit_save_register_window): Likewise.
9342 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
9343 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
9344 Swap back %o7/%i7 in register naming.
9346 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
9349 * config/darwin.c (darwin_override_options): Improve warning when
9350 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
9351 is given with fpie/fPIE.
9352 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
9353 * config/darwin9.h (PIE_SPEC): New.
9355 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
9357 * timevar.c (timevar_print): Increase width for display of timevar
9360 2011-06-24 Jakub Jelinek <jakub@redhat.com>
9363 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
9364 instead of TYPE_CHAIN for chain_next for types.
9366 2011-06-24 Richard Henderson <rth@redhat.com>
9368 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
9369 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
9370 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
9371 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
9372 (sparc_flat_expand_prologue): Emit individual instructions
9373 instead of one of the above.
9375 2011-06-24 Easwaran Raman <eraman@google.com>
9377 PR rtl-optimization/49429
9379 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
9380 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
9381 used to copy y into x.
9382 * calls.c (initialize_argument_information): Mark
9383 an argument addressable if it is passed by invisible reference.
9384 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
9385 if it is passed by reference.
9387 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
9389 PR rtl-optimization/49504
9390 * rtlanal.c (nonzero_bits1): Properly handle addition or
9391 subtraction of a pointer in Pmode if pointers extend unsigned.
9392 (num_sign_bit_copies1): Likewise.
9394 2011-06-24 Martin Jambor <mjambor@suse.cz>
9396 PR tree-optimizations/49516
9397 * tree-sra.c (sra_modify_assign): Choose the safe path for
9398 aggregate copies if we also did scalar replacements.
9400 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9403 * config/arm/predicates.md (add_operator): New.
9404 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
9406 2011-06-24 Andi Kleen <ak@linux.intel.com>
9408 * tree-sra.c (type_internals_preclude_sra_p): Add msg
9409 parameter. Split up ifs and report reason in *msg.
9411 (find_var_candiate): Add msg variable.
9412 Split up ifs and report reason to reject.
9413 (find_param_candidates): Add msg variable.
9414 Pass msg to type_internals_preclude_sra_p.
9416 2011-06-23 Jeff Law <law@redhat.com>
9419 * reload.h (reload): Change to return a bool.
9420 * ira.c (ira): If requested by reload, run a fast DCE pass after
9421 reload has completed. Fix comment typo.
9422 * reload1.c (need_dce): New file scoped static.
9423 (reload): Set reload_completed here. Return whether or not a DCE
9424 pass after reload is needed.
9425 (delete_dead_insn): Set need_dce as needed.
9428 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
9429 to detect threading through joiner block. If there was already
9430 an edge to the new target, then do not change the PHI nodes.
9432 2011-06-23 Jakub Jelinek <jakub@redhat.com>
9434 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
9435 get_pointer_alignment to see if base isn't sufficiently aligned.
9437 2011-06-23 Jan Hubicka <jh@suse.cz>
9439 PR tree-optimize/49373
9440 * tree-pass.h (all_late_ipa_passes): Declare.
9441 * cgraphunit.c (init_lowered_empty_function): Fix properties.
9442 (cgraph_optimize): Execute late passes; remove unreachable funcions
9443 after materialization.
9444 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
9446 * passes.c (all_late_ipa_passes): Declare.
9447 (dump_passes, register_pass): Handle late ipa passes.
9448 (init_optimization_passes): Move ipa_pta to late passes; schedule
9449 fixup_cfg at beggining of all_passes.
9450 (apply_ipa_transforms): New function.
9451 (execute_one_pass): When doing simple ipa pass, apply all transforms.
9453 2011-06-23 Joseph Myers <joseph@codesourcery.com>
9455 * params.c: Include common/common-target.h. Don't include tm.h.
9456 (lang_independent_params): Move from toplev.c.
9457 (global_init_params): New.
9458 * params.h (global_init_params): Declare.
9459 * target.def (default_params): Move to common-target.def.
9460 * toplev.c (lang_independent_options): Remove.
9461 (lang_independent_params): Move to params.c.
9462 (general_init): Use global_init_params.
9463 * common/common-target.def (option_default_params): Move from
9465 * common/config/ia64/ia64-common.c: Include params.h.
9466 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9468 * common/config/rs6000/rs6000-common.c: Include params.h.
9469 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9471 * common/config/sh/sh-common.c: Include params.h.
9472 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9474 * common/config/spu/spu-common.c: Include params.h.
9475 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9477 * config/ia64/ia64.c (ia64_option_default_params,
9478 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
9479 * config/rs6000/rs6000.c (rs6000_option_default_params,
9480 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
9481 * config/sh/sh.c (sh_option_default_params,
9482 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
9483 * config/spu/spu.c (spu_option_default_params,
9484 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
9485 * Makefile.in (OBJS): Remove params.o.
9486 (OBJS-libcommon-target): Add params.o.
9487 (params.o, $(common_out_object_file)): Update dependencies.
9488 * doc/tm.texi: Regenerate.
9490 2011-06-23 Alan Modra <amodra@gmail.com>
9493 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
9494 invocation for 2011-06-09 changes.
9496 2011-06-22 Jakub Jelinek <jakub@redhat.com>
9499 * omp-low.c (expand_omp_for_static_nochunk): Only
9500 use n ceil/ nthreads size for the first n % nthreads threads in the
9501 team instead of all threads except for the last few ones which
9502 get less work or none at all.
9505 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
9508 2011-06-22 Richard Guenther <rguenther@suse.de>
9510 PR tree-optimization/49493
9511 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
9512 Refer to the alias target of variables.
9513 (associate_varinfo_to_alias_1): Remove.
9514 (ipa_pta_execute): Do not associate aliases with anything.
9515 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
9516 (cgraph_function_node): Likewise.
9517 (cgraph_function_or_thunk_node): Likewise.
9518 (varpool_variable_node): Likewise.
9520 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
9522 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
9523 * config.gcc (arm*-*-linux*): Default to gnu tls.
9524 (arm*-*-*): Add --with-tls option.
9525 (all_defaults): Add 'tls'.
9527 2011-06-22 Richard Henderson <rth@redhat.com>
9529 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
9530 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
9531 (dwarf2out_frame_debug_cfa_window_save): Rename from
9532 dwarf2out_window_save; make static.
9533 * tree.h (dwarf2out_window_save): Don't declare.
9535 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
9536 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9537 (emit_save_register_window): Rename from gen_save_register_window;
9538 emit the insn and add REG_CFA_* notes.
9539 (sparc_expand_prologue): Update to match.
9540 * config/sparc/sparc.md (save_register_window_1): Simplify from
9541 save_register_window<P:mode>.
9543 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
9546 * config/i386/i386.md (*lea_general_2): Always allow SImode.
9547 (*lea_general_2_zext): Likewise.
9548 (imul to lea peepholes): Use const359_operand and check
9549 TARGET_PARTIAL_REG_STALL.
9551 * config/i386/predicates.md (const359_operand): New.
9553 2011-06-22 Michael Matz <matz@suse.de>
9555 * cgraphunit.c (assemble_thunk): Use correct return type.
9557 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
9558 Dmitry Melnik <dm@ispras.ru>
9560 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
9561 (neon_output_shift_immediate): Ditto.
9562 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
9564 (neon_output_shift_immediate): Ditto.
9565 * config/arm/neon.md (vashl<mode>3): Modified constraint.
9566 (vashr<mode>3_imm): New insn pattern.
9567 (vlshr<mode>3_imm): Ditto.
9568 (vashr<mode>3): Modified constraint.
9569 (vlshr<mode>3): Ditto.
9570 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
9572 (imm_for_neon_rshift_operand): Ditto.
9573 (imm_lshift_or_reg_neon): Ditto.
9574 (imm_rshift_or_reg_neon): Ditto.
9576 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
9578 2011-06-22 Jakub Jelinek <jakub@redhat.com>
9580 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
9581 builtin calls even if likelyvalue is not CONSTANT.
9582 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
9583 Return get_value_for_expr of first operand
9584 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
9585 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9586 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
9587 their non-checking counterparts.
9588 (call_may_clobber_ref_p_1): Likewise.
9589 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
9590 like their non-checking counterparts.
9591 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9592 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
9593 like their non-checking counterparts.
9594 (find_func_clobbers): Likewise.
9595 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
9596 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
9598 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
9599 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
9600 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
9601 of base type reference as argument.
9602 (resolve_addr_in_expr): Likewise. Fix keep computation.
9603 (convert_descriptor_to_signed): Renamed to...
9604 (convert_descriptor_to_mode): ... this. For wider types convert to
9605 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
9606 (typed_binop): New function.
9607 (scompare_loc_descriptor, ucompare_loc_descriptor,
9608 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
9609 default to unsigned type instead of signed.
9612 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
9613 (gimple_build_debug_source_bind_stat): New prototype.
9614 (gimple_build_debug_source_bind): Define.
9615 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
9616 gimple_debug_source_bind_get_value,
9617 gimple_debug_source_bind_get_value_ptr,
9618 gimple_debug_source_bind_set_var,
9619 gimple_debug_source_bind_set_value): New inlines.
9620 * gimple.c (gimple_build_debug_source_bind_stat): New function.
9621 * gimple-pretty-print.c (dump_gimple_debug): Handle
9622 GIMPLE_DEBUG_SOURCE_BIND.
9623 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
9624 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9625 * tree-parloops.c (eliminate_local_variables,
9626 separate_decls_in_region): Likewise.
9627 (separate_decls_in_region_debug): Renamed from
9628 separate_decls_in_region_debug_bind. Handle
9629 gimple_debug_source_bind_p.
9630 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
9632 (DECL_HAS_DEBUG_ARGS_P): Define.
9633 (struct tree_function_decl): Add has_debug_args_flag field.
9634 * tree.c (debug_args_for_decl): New variable.
9635 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
9636 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
9637 (rewrite_debug_stmt_uses): New function.
9638 (rewrite_stmt): Use it to rewrite debug stmt uses.
9639 * rtl.def (DEBUG_PARAMETER_REF): New.
9640 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
9641 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
9642 DEBUG_PARAMETER_REF.
9643 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
9644 * print-rtl.c (print_rtx): Likewise.
9645 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
9646 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
9647 debug stmts in the first bb.
9648 * tree-inline.c (remap_ssa_name): If remapping default def
9649 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
9650 a source bind debug stmt.
9651 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
9652 (maybe_move_debug_stmts_to_successors): Likewise.
9653 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
9654 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
9655 debug args vector from old_decl to new_decl.
9656 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
9657 or modified parameters, add debug bind stmts before call
9658 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
9659 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
9660 on DECL_DEBUG_EXPRs from debug args vector.
9661 (expand_debug_source_expr): New function.
9662 (expand_debug_locations): Use it for source bind insns.
9663 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
9664 * var-tracking.c (prepare_call_arguments): Add debug args
9665 to call_arguments if any.
9666 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
9667 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
9668 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
9669 (get_ref_die_offset, parameter_ref_descriptor): New functions.
9670 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
9671 (gen_subprogram_die): Handle parameters identified by
9672 DEBUG_PARAMETER_REF.
9674 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
9676 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
9677 * doc/install.texi (Configuration): Document --with-tls.
9678 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
9679 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
9680 (arm_tls_descseq_addr): New.
9681 (legitimize_tls_address): Add tlsdesc support.
9682 (arm_cannot_copy_insn_p): Check for tlscall.
9683 (arm_emit_tls_decoration): Likewise.
9684 * config/arm/arm.h (TARGET_GNU2_TLS): New.
9685 (OPTION_DEFAULT_SPECS): Add with-tls support.
9686 * config/arm/arm.md (R1_REGNUM): Define.
9688 * config/arm/arm.opt (tls_type): New enumeration type and values.
9689 (mtls-dialect): New switch.
9690 * config/arm/arm-opts.h (enum tls_type): New.
9692 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
9694 * attribs.c (register_attribute): Added assert to check that all
9695 attribute specs are registered with a name that is not empty and
9696 does not start with '_'.
9697 (decl_attributes): Avoid the lookup of the "naked" attribute spec
9698 if the function has no attributes.
9699 * tree.c (is_attribute_with_length_p): Removed.
9700 (is_attribute_p): Removed.
9701 (private_is_attribute_p): New.
9702 (private_lookup_attribute): New.
9703 (lookup_attribute): Removed.
9704 (lookup_ident_attribute): New.
9705 (remove_attribute): Require the first argument to be in the form
9706 'text', not '__text__'. Updated asserts.
9707 (merge_attributes): Use lookup_ident_attributes instead of
9709 (merge_dllimport_decl_attributes): Use remove_attribute.
9710 (attribute_list_contained): Likewise.
9711 (attribute_list_equal): Immediately return 1 if the arguments are
9713 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
9714 'int'. Require the first argument to be in the form 'text', not
9715 '__text__'. Require the second argument to be an identifier.
9716 (lookup_attribute): Made inline. Require the first argument to be
9717 in the form 'text', not '__text__'.
9718 (private_is_attribute_p, private_lookup_attribute): New.
9721 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
9723 * builtins.c: Add sync_ or SYNC__ to builtin names.
9724 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
9725 * omp-low.c: Add sync_ or SYNC__ to builtin names.
9727 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
9730 * config/avr/avr.md (extzv): New expander.
9732 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
9733 * config/avr/constraints.md (C04): New constraint.
9734 * doc/md.texi (Machine Constraints): Document it.
9736 2011-06-21 Jakub Jelinek <jakub@redhat.com>
9739 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
9740 unsignedp argument instead of 1 for clrsb_optab.
9741 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
9742 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
9743 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
9744 * optabs.c (widen_leading): Call widen_operand and expand_unop
9745 with 0 as unsignedp argument instead of 1 for clrsb_optab.
9746 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
9748 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
9750 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
9752 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
9754 * gensupport.c (add_define_attr): New static function.
9755 (is_predicable): Allow multi-alternative lists for the "predicable"
9757 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
9758 (process_one_cond_exec): Call alter_attrs_for_insn.
9759 * doc/md.texi (Defining Attributes): Mention some standard names.
9760 (Conditional Execution): Update documentation for "predicable".
9762 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
9763 __builtin_clrsbll): Document.
9764 * doc/rtl.texi (clrsb): New entry.
9765 * optabs.c (widen_leading): Renamed from widen_clz. New argument
9766 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
9767 (expand_unop): Handle clrsb_optab.
9768 (init_optabs): Initialize it.
9769 * optabs.h (enum optab_index): New entry OTI_clrsb.
9770 (clrsb_optab): Define.
9771 * genopinit.c (optabs): Add an entry for it.
9772 * builtins.c (expand_builtin): Handle clrsb builtin functions.
9773 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
9774 BUILT_IN_CLRSBLL): New.
9775 * rtl.def (CLRSB): New code.
9776 * dwarf2out.c (mem_loc_descriptor): Handle it.
9777 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9778 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
9780 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
9781 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
9782 (__ctzDI2): Move declaration.
9783 * config/bfin/bfin.md (clrsbsi2): New expander.
9784 (signbitssi2): Use the CLRSB rtx.
9785 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
9786 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
9788 2011-06-21 Richard Guenther <rguenther@suse.de>
9790 * ipa-inline-transform.c (inline_transform): Fix previous change.
9792 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
9794 PR tree-optimization/49478
9795 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
9796 with constant operand.
9798 2011-06-21 Richard Guenther <rguenther@suse.de>
9800 * ipa-inline-transform.c (inline_transform): Fix typo.
9802 2011-06-21 Richard Guenther <rguenther@suse.de>
9804 PR tree-optimization/49483
9805 * tree-vect-stmts.c (vectorizable_assignment): Also handle
9806 VIEW_CONVERT_EXPR conversions.
9808 2011-06-21 Joseph Myers <joseph@codesourcery.com>
9810 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
9811 * config/avr/avr-tables.opt: New file (generated).
9812 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
9813 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
9815 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
9816 (avr_option_override): Don't process -mmcu= argument here. Set
9817 avr_current_device using avr_mcu_index.
9818 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
9819 * config/avr/avr.opt (mmcu=): Use Enum.
9820 * config/avr/t-avr (avr-devices.o): Update dependencies.
9821 ($(srcdir)/config/avr/avr-tables.opt): New.
9822 * target.def (help): Remove.
9823 * doc/tm.texi.in (TARGET_HELP): Remove.
9824 * doc/tm.texi: Regenerate.
9825 * opts.c: Don't include target.h.
9826 (common_handle_option): Don't call targetm.help.
9827 * system.h (TARGET_HELP): Poison.
9828 * Makefile.in (opts.o): Update dependencies.
9830 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9832 * config/usegld.h: New file.
9833 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
9834 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
9835 (LIB_SPEC): Likewise. Search /lib.
9836 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
9837 (RDYNAMIC_SPEC): Handle GNU ld.
9838 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
9840 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
9841 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
9842 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
9843 (STACK_CHECK_STATIC_BUILTIN): Define.
9844 * config/sol2.opt (compat-bsd): Remove.
9845 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
9846 * config/sol2-bi.h: New file.
9847 * config/sol2-gld.h: Remove.
9848 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
9849 (NO_DBX_BNSYM_ENSYM): Remove.
9850 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
9851 (STACK_CHECK_STATIC_BUILTIN): Remove.
9852 Test USE_GLD instead of TARGET_GNU_LD.
9853 * config/i386/sol2-10.h: Rename to ...
9854 * config/i386/sol2-bi.h .. this.
9855 (SUBTARGET_EXTRA_SPECS): Redefine.
9856 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
9857 (MULTILIB_DEFAULTS): Remove.
9858 (DEFAULT_ARCH32_P): Define.
9859 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
9860 (ARCH64_SUBDIR): Define.
9861 Test USE_GLD instead of TARGET_GNU_LD.
9862 (I386_EMULATION): Rename to ...
9863 (ARCH32_EMULATION): ... this.
9864 (X86_64_EMULATION): Rename to ...
9865 (ARCH64_EMULATION): ... this.
9866 (TARGET_LD_EMULATION): Remove.
9867 (LINK_ARCH_SPEC): Remove.
9868 * config/i386/sol2-gas.h: Remove.
9869 * config/i386/t-sol2-10: Rename to ...
9870 * config/i386/t-sol2-64: ... this.
9871 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
9872 (AS_SPARC64_FLAG): Define.
9873 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
9874 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
9875 depending on TARGET_CPU_DEFAULT.
9876 (CPP_CPU_SPEC): Redefine.
9877 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
9878 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
9879 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
9880 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
9881 ASM_ARCH_DEFAULT_SPEC): Redefine.
9882 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
9883 LINK_ARCH_DEFAULT_SPEC.
9884 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
9885 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
9886 (ARCH64_SUBDIR): Define.
9887 (LINK_ARCH64_SPEC): Redefine.
9888 (CC1_SPEC): Redefine.
9889 (OPTION_DEFAULT_SPECS): Redefine.
9890 (MULTILIB_DEFAULTS): Define.
9891 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
9892 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
9893 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
9894 (NO_DBX_BNSYM_ENSYM): Remove.
9895 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
9896 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
9897 (TARGET_ASM_NAMED_SECTION): Likewise.
9898 (STACK_CHECK_STATIC_BUILTIN): Remove.
9899 * config/sparc/sol2-bi.h: Remove.
9900 * config/sparc/sol2-gas-bi.h: Remove.
9901 * config/sparc/sol2-gas.h: Remove.
9902 * config/sparc/sol2-gld-bi.h: Remove.
9903 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
9905 (*-*-solaris2*): ... here.
9907 2011-06-21 Christian Bruel <christian.bruel@st.com>
9910 * ipa-inline.c (can_inline_edge_p): Check
9911 !DECL_DISREGARD_INLINE_LIMITS.
9913 2011-06-21 Christian Bruel <christian.bruel@st.com>
9916 * cgraphunit.c (process_function_and_variable_attributes): warn when
9917 always_inline functions that are not inline.
9918 * ipa-inline-transform.c (inline_transform): Always call
9920 * tree-inline.c (tree_inlinable_function_p): Use error instead
9922 (expand_call_inline): Likewise.
9924 2011-06-21 Jakub Jelinek <jakub@redhat.com>
9926 * Makefile.in (dg_target_exps): Set.
9927 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
9928 instead of 7, try to divide it more evenly.
9930 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
9933 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
9934 (avx256_split_unaligned_store): New definition.
9935 (ix86_option_override_internal): Enable avx256 unaligned load/store
9936 splitting only when avx256_split_unaligned_load/store is set.
9938 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
9940 * regrename.c (scan_rtx_reg): Handle the case where we write to an
9941 open chain in a smaller mode without failing the entire block.
9943 2011-06-21 Alan Modra <amodra@gmail.com>
9945 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
9946 CONST high part large-toc address.
9947 (rs6000_tls_referenced_p): Make static.
9948 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
9950 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9953 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
9954 one of the operands is a register.
9956 2011-06-20 Kai Tietz <ktietz@redhat.com>
9958 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
9959 operations in combination with binary and.
9961 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
9963 * regrename.c (do_replace): Don't update notes.
9965 2011-06-20 Alan Modra <amodra@gmail.com>
9967 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
9968 of toc-relative address in CONST.
9969 (rs6000_delegitimize_address): Recognize changed address.
9970 (rs6000_legitimize_reload_address): Likewise.
9971 (rs6000_emit_move): Don't force these constants to memory.
9972 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
9973 toc-relative address in CONST.
9974 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
9975 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
9977 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
9979 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
9980 (count_trailing_zeros): Likewise.
9982 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
9985 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
9986 .init_array can be used with .ctors on targets.
9987 * configure: Regenerated.
9989 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
9991 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
9992 if the element type is volatile.
9994 2011-06-18 Jan Hubicka <jh@suse.cz>
9996 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
9998 (lto_symtab_resolve_can_prevail_p): Likewise.
9999 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
10000 * cgraphbuild.c (record_reference): Remove extra body alias code.
10001 (mark_load): Likewise.
10002 (mark_store): Likewise.
10003 * cgraph.h (varpool_node): Remove extra_name filed;
10004 add alias_of and extraname_alias.
10005 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
10006 (varpool_alias_aliased_node): New inline function.
10007 (varpool_variable_node): New function.
10008 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
10009 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
10010 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
10011 (input_varpool_node): Likewise.
10012 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
10013 (varpool_externally_visible_p): Remove extra body alias code.
10014 (function_and_variable_visibility): Likewise.
10015 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
10016 (ipa_pta_execute): Use it.
10017 * varpool.c (varpool_remove_node): Remove extra name alias code.
10018 (varpool_mark_needed_node): Likewise.
10019 (varpool_analyze_pending_decls): Analyze aliases.
10020 (assemble_aliases): New functoin.
10021 (varpool_assemble_decl): Use it.
10022 (varpool_create_variable_alias): New function.
10023 (varpool_extra_name_alias): Rewrite.
10024 (varpool_for_node_and_aliases): New function.
10026 2011-06-18 Jakub Jelinek <jakub@redhat.com>
10029 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
10030 last_arg_constant and last argument doesn't match its predicate,
10031 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
10032 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
10033 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
10034 spelling of error message.
10035 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
10036 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
10037 const_0_to_255_operand instead of const_int_operand.
10040 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
10042 * config/i386/sse.md (blendbits): Remove mode attribute.
10043 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
10044 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
10045 Check integer value of operand 3 in insn constraint.
10047 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
10049 PR rtl-optimization/48542
10050 * reload.c (find_equiv_reg): Stop looking when finding a
10052 * reload1.c (reload_as_needed): Invalidate all reload
10053 registers when crossing a setjmp-type call.
10055 2011-06-16 Jeff Law <law@redhat.com>
10057 * tree-ssa-threadupdate.c (struct redirection_data): New field
10059 (THREAD_TARGET2): Define.
10060 (redirection_data_eq): Also check that the intermediate edge is equal.
10061 (lookup_redirection_data): Drop useless argument. Extract the
10062 outgoing_edge and intermediate edge from E. Callers updated.
10063 (copy_phi_args, update_destination_phis): New functions.
10064 (fix_duplicate_block_edges): Likewise.
10065 (create_edge_and_update_destination_phis): Duplicate all the edges
10066 hung off e->aux. Use copy_phi_args.
10067 (create_duplicates): Use fix_duplicate_block_edges.
10068 (fixup_template_block): Likewise.
10069 (redirect_edges): If necessary, redirect the joiner block's incoming
10070 edge to the duplicate of the joiner block.
10071 (thread_block): Don't muck up loops when threading through a joiner
10073 (thread_through_loop_header): Handle threading through a joiner block.
10074 (mark_threaded_blocks, register_jump_thread): Likewise.
10075 * tree-flow.h (register_jump_thread): Add new argument. Callers
10077 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
10078 (thread_across_edge): Handle threading through a joiner block.
10080 2011-06-16 Martin Jambor <mjambor@suse.cz>
10082 PR tree-optimization/49343
10083 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
10084 calculate offset, provide 2nd operand for the new COMPONENT_REF.
10086 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
10088 * config/darwin-protos.h (machopic_select_rtx_section): Move to
10089 inside RTX_CODE ifdef.
10091 2011-06-16 Tom de Vries <tom@codesourcery.com>
10094 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
10095 Disallow NULL pointer for pointer arithmetic.
10097 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10101 2011-06-10 Wei Guozhi <carrot@google.com>
10104 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
10105 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
10106 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
10108 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
10110 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
10111 (arm_legitimate_ldrd_p): New prototype.
10112 (arm_output_ldrd): New prototype.
10113 * config/arm/arm.c (arm_check_ldrd_operands): New function.
10114 (arm_legitimate_ldrd_p): New function.
10115 (arm_output_ldrd): New function.
10117 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
10119 PR middle-end/46500
10120 * doc/tm.texi.in: Update Copyright date.
10121 * doc/tm.texi: Regenerate.
10122 * targhooks.c (default_setup_incoming_varargs): Replace
10123 CUMULATIVE_ARGS* argument type with cumulative_args_t.
10124 (default_pretend_outgoing_varargs_named): Likewise.
10125 (hook_pass_by_reference_must_pass_in_stack): Likewise.
10126 (hook_callee_copies_named): Likewise.
10127 (default_function_arg_advance): Likewise.
10128 (default_function_arg): Likewise.
10129 (default_function_incoming_arg): Likewise.
10130 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
10131 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
10132 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
10133 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
10134 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
10135 * targhooks.h (default_setup_incoming_varargs): Likewise.
10136 (default_pretend_outgoing_varargs_named): Likewise.
10137 (hook_pass_by_reference_must_pass_in_stack): Likewise.
10138 (hook_callee_copies_named): Likewise.
10139 (default_function_arg_advance): Likewise.
10140 (default_function_arg): Likewise.
10141 (default_function_incoming_arg): Likewise.
10142 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
10143 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
10144 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
10145 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
10146 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
10147 * target.def (pass_by_reference): Likewise.
10148 (setup_incoming_varargs, strict_argument_naming): Likewise.
10149 (pretend_outgoing_varargs_named, callee_copies): Likewise.
10150 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
10151 (function_incoming_arg): Likewise.
10152 * target.h: Don't include "tm.h" .
10153 (cumulative_args_t): New typedef.
10154 [GCC_TM_H] (get_cumulative_args): New static inline function.
10155 [GCC_TM_H] (pack_cumulative_args): Likewise.
10156 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
10157 argument type with cumulative_args_t.
10158 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
10159 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
10160 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
10161 (frv_arg_partial_bytes, frv_function_arg): Likewise.
10162 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
10163 (frv_function_arg_1): Likewise.
10164 * config/s390/s390.c (s390_pass_by_reference): Likewise.
10165 (s390_function_arg_advance, s390_function_arg): Likewise.
10166 * config/m32c/m32c.c (m32c_function_arg): Likewise.
10167 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
10168 (m32c_strict_argument_naming): Likewise.
10169 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
10170 (spu_function_arg_advance): Likewise.
10171 (spu_setup_incoming_varargs): Likewise. Make static.
10172 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
10174 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
10175 CUMULATIVE_ARGS* argument type with cumulative_args_t.
10176 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
10177 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
10178 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
10179 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
10180 (mep_pass_by_reference, mep_function_arg): Likewise.
10181 (mep_function_arg_advance): Likewise.
10182 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
10183 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
10184 (m32r_function_arg, m32r_function_arg_advance): Likewise.
10185 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
10186 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
10187 (ix86_function_arg, ix86_pass_by_reference): Likewise.
10188 (ix86_setup_incoming_varargs): Likewise.
10189 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
10190 (sh_strict_argument_naming): Likewise.
10191 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
10192 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
10193 (sh_function_arg_advance, sh_function_arg): Likewise.
10194 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
10195 (pdp11_function_arg_advance): Likewise.
10196 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
10198 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
10199 * config/avr/avr.c (avr_function_arg): Likewise.
10200 (avr_function_arg_advance): Likewise.
10201 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
10202 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
10203 (xtensa_function_arg_1): Likewise.
10204 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
10206 (xstormy16_function_arg): Likewise.
10207 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
10208 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
10209 (fr30_function_arg_advance): Likewise.
10210 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
10211 (lm32_function_arg, lm32_function_arg_advance): Likewise.
10212 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
10213 (moxie_function_arg, moxie_function_arg_advance): Likewise.
10214 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
10215 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
10216 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
10217 (cris_function_arg, cris_function_incoming_arg): Likewise.
10218 (cris_function_arg_advance, cris_function_arg_1): Likewise.
10219 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
10220 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
10221 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
10222 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
10223 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
10224 (mn10300_arg_partial_bytes): Likewise.
10225 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
10226 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
10227 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
10228 (ia64_function_arg_1): Likewise.
10229 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
10230 (m68k_function_arg): Likewise.
10231 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
10232 (rs6000_function_arg, setup_incoming_varargs): Likewise.
10233 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
10234 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
10235 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
10236 (picochip_arg_advance): Likewise.
10237 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
10238 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
10239 (mcore_function_arg_advance): Likewise.
10240 * config/score/score.c (score_pass_by_reference): Likewise.
10241 (score_function_arg_advance): Likewise.
10242 (score_arg_partial_bytes): Likewise. Make static.
10243 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
10244 * config/arm/arm.c (arm_arg_partial_bytes): Replace
10245 CUMULATIVE_ARGS* argument type with cumulative_args_t.
10246 (arm_function_arg, arm_function_arg_advance): Likewise.
10247 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
10248 * config/pa/pa.c (pa_pass_by_reference): Likewise.
10249 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
10250 (pa_function_arg): Likewise.
10251 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
10252 (mips_function_arg, mips_function_arg_advance): Likewise.
10253 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
10254 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
10255 * config/vax/vax.c (vax_function_arg): Likewise.
10256 (vax_function_arg_advance): Likewise.
10257 * config/h8300/h8300.c (h8300_function_arg): Likewise.
10258 (h8300_function_arg_advance): Likewise.
10259 * config/v850/v850.c (v850_pass_by_reference): Likewise.
10260 (v850_strict_argument_naming, v850_function_arg): Likewise.
10261 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
10262 (v850_setup_incoming_varargs): Likewise.
10263 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
10264 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
10265 (mmix_function_arg, mmix_pass_by_reference): Likewise.
10266 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
10268 * config/bfin/bfin.c (setup_incoming_varargs): Replace
10269 CUMULATIVE_ARGS* argument type with cumulative_args_t.
10270 (bfin_function_arg_advance, bfin_function_arg): Likewise.
10271 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
10272 * calls.c (emit_call_1): Change type of args_so_far to
10273 cumulative_args_t. Changed all callers.
10274 (initialize_argument_information): Likewise.
10275 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
10276 * dse.c (get_call_args): Likewise.
10277 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
10278 * function.c (pass_by_reference, reference_callee_copied): Likewise.
10279 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
10280 New member args_so_far_v. Changed all users.
10281 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
10282 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
10283 * config/mips/mips.c (mips_output_args_xfer): Likewise.
10284 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
10285 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
10286 * config/microblaze/microblaze.c (microblaze_expand_prologue):
10288 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
10289 m32r_pass_by_reference.
10291 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
10293 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
10294 argument to be a VEC of statements.
10295 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
10296 assert that pattern statements have to have their vector type set.
10297 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
10298 Change the first argument to be a VEC of statements. Update
10300 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
10301 (vect_handle_widen_mult_by_const): New function.
10302 (vect_recog_widen_mult_pattern): Change the first argument to be a
10303 VEC of statements. Update documentation. Check that the constant is
10304 INTEGER_CST. Support multiplication by a constant that fits an
10305 intermediate type - call vect_handle_widen_mult_by_const.
10306 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
10307 call. Handle additional pattern statements if necessary.
10309 2011-06-16 Nick Clifton <nickc@redhat.com>
10312 * config.gcc: Set cpu_type to v850 for any V850 architecture.
10313 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
10314 md_file, extra_modes, out_file and extra_options are these are all
10315 deduced from cpu_type.
10317 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
10319 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
10320 truncation mask to 63.
10322 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
10326 * longlong.h: Add AVR support:
10327 (count_leading_zeros): New macro.
10328 (count_trailing_zeros): New macro.
10329 (COUNT_LEADING_ZEROS_0): New macro.
10330 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
10331 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
10332 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
10333 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
10334 (LIB2FUNCS_EXCLUDE): Add _clz.
10335 * config/avr/libgcc.S (XCALL): Move up in file.
10336 (XJMP): New C Macro.
10337 (DEFUN): New asm macro.
10338 (ENDF): New asm macro.
10339 (__ffssi2): New function.
10340 (__ffshi2): New function.
10341 (__loop_ffsqi2): New function.
10342 (__ctzsi2): New function.
10343 (__ctzhi2): New function.
10344 (__clzdi2): New function.
10345 (__clzsi2): New function.
10346 (__clzhi2): New function.
10347 (__paritydi2): New function.
10348 (__paritysi2): New function.
10349 (__parityhi2): New function.
10350 (__parityqi2): New function.
10351 (__popcounthi2): New function.
10352 (__popcountsi2): New function.
10353 (__popcountdi2): New function.
10354 (__popcountqi2): New function.
10355 (__bswapsi2): New function.
10356 (__bswapdi2): New function.
10357 (__ashldi3): New function.
10358 (__ashrdi3): New function.
10359 (__lshrdi3): New function.
10360 Fix suspicous lines.
10362 2011-06-16 Richard Guenther <rguenther@suse.de>
10364 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
10365 the same as x != 0.
10366 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
10368 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
10369 equality compares against zero for the lower bit.
10371 2011-06-16 Jakub Jelinek <jakub@redhat.com>
10373 PR tree-optimization/49419
10374 * tree-vrp.c (execute_vrp): Call init_range_assertions
10375 before estimate_numbers_of_iterations, call
10376 free_number_of_iterations_estimates before calling
10377 remove_range_assertions.
10379 2011-06-16 Revital Eres <revital.eres@linaro.org>
10381 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
10382 (struct partial_schedule): Add rows_length field.
10383 (verify_partial_schedule): Check rows_length.
10384 (ps_insert_empty_row): Handle rows_length.
10385 (create_partial_schedule): Likewise.
10386 (free_partial_schedule): Likewise.
10387 (reset_partial_schedule): Likewise.
10388 (create_ps_insn): Remove rest_count argument.
10389 (remove_node_from_ps): Update rows_length.
10390 (add_node_to_ps): Update rows_length and call create_ps_insn
10391 without passing row_rest_count.
10392 (rotate_partial_schedule): Update rows_length.
10394 2011-06-16 Revital Eres <revital.eres@linaro.org>
10396 * ddg.c (add_intra_loop_mem_dep): New function.
10397 (build_intra_loop_deps): Call it.
10399 2011-06-13 Jeff Law <law@redhat.com>
10401 * df-problems.c (df_lr_local_compute): Manually CSE
10402 PIC_OFFSET_TABLE_REGNUM.
10403 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
10404 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
10406 2011-06-13 Jan Hubicka <jh@suse.cz>
10408 * cgraphunit.c (handle_alias_pairs): New function.
10409 (cgraph_finalize_compilation_unit): Use it.
10410 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
10411 as externally visible.
10413 2011-06-15 Richard Guenther <rguenther@suse.de>
10415 * expr.c (expand_expr_real_2): Reduce all integral types to
10416 bitfield precision.
10417 (expand_expr_real_1): Likewise.
10419 2011-06-15 Martin Jambor <mjambor@suse.cz>
10421 PR tree-optimization/48613
10422 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
10423 ipa_node_params_vector is NULL.
10425 2011-06-15 Jakub Jelinek <jakub@redhat.com>
10428 * dwarf2out.c (dw_loc_list_node): Add force field.
10429 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
10430 location in the list, even if it is modified before first real insn.
10431 (output_loc_list): Emit empty ranges with force flag set.
10432 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
10434 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
10437 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
10438 (fence_to_rewind). Use it to notice when bookkeeping will be placed
10439 above a fence. Update comments.
10440 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
10441 placed just above it. Do not allow NULL place_to_insert.
10443 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
10445 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
10446 (slpeel_tree_peel_loop_to_edge): Don't call
10447 remove_dead_stmts_from_loop.
10448 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
10449 remove irrelevant pattern statements. For irrelevant statements
10450 check if it is the last statement of a detected pattern, use
10451 corresponding pattern statement instead.
10452 (destroy_loop_vec_info): No need to remove pattern statements,
10453 only free stmt_vec_info.
10454 (vect_transform_loop): For irrelevant statements check if it is
10455 the last statement of a detected pattern, use corresponding
10456 pattern statement instead.
10457 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
10458 pattern statements. Set basic block for the new statement.
10459 (vect_pattern_recog): Update documentation.
10460 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
10461 operands of pattern statements.
10462 (vectorizable_call): Fix printing. In case of a pattern statement
10463 use the lhs of the original statement when creating a dummy
10464 statement to replace the original call.
10465 (vect_analyze_stmt): For irrelevant statements check if it is
10466 the last statement of a detected pattern, use corresponding
10467 pattern statement instead.
10468 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
10469 statements use gsi of the original statement.
10471 2011-06-14 Joseph Myers <joseph@codesourcery.com>
10473 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
10474 common/common-target-def.h.
10475 * target.def (default_target_flags, handle_option,
10476 supports_split_stack, optimization_table, init_struct,
10477 except_unwind_info, unwind_tables_default, have_named_sections):
10478 Move to common/common-target.def.
10479 * target.h (enum opt_levels, struct default_options): Move to
10480 common/common-target.h.
10481 * targhooks.c (default_except_unwind_info,
10482 dwarf2_except_unwind_info, sjlj_except_unwind_info,
10483 default_target_handle_option, empty_optimization_table): Move to
10484 common/common-targhooks.c.
10485 * targhooks.h (default_except_unwind_info,
10486 dwarf2_except_unwind_info, sjlj_except_unwind_info,
10487 default_target_handle_option, empty_optimization_table): Move to
10488 common/common-targhooks.h.
10489 * common/common-target-def.h: Include common/common-targhooks.h.
10490 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
10492 * common/common-target.def (handle_option, option_init_struct,
10493 option_optimization_table, default_target_flags,
10494 except_unwind_info, supports_split_stack, unwind_tables_default,
10495 have_named_sections): Move from target.def.
10496 (HOOK_PREFIX): Undefine at end of file.
10497 * common/common-target.h: Include input.h.
10498 (enum opt_levels, struct default_options): Move from target.h.
10499 * common/common-targhooks.c, common/common-targhooks.h: New.
10500 * config.gcc (target_has_targetm_common): Default to yes.
10501 (moxie*): Set target_has_targetm_common=no.
10502 (hppa*-*-*): Don't set target_has_targetm_common=yes.
10503 * doc/tm.texi: Regenerate.
10504 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
10505 (C_TARGET_DEF_H): Add common/common-targhooks.h.
10506 (GCC_OBJS): Remove vec.o.
10507 (OBJS): Remove hooks.o and vec.o.
10508 (OBJS-libcommon-target): Add vec.o, hooks.o and
10509 common/common-targhooks.o.
10510 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
10511 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
10512 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
10513 cfglayout.o, $(out_object_file), $(common_out_object_file)):
10514 Update dependencies.
10515 (common/common-targhooks.o): New.
10516 * common/config/default-common.c: Include tm.h. Add FIXME comment.
10517 * common/config/pa/pa-common.c: Include more headers. Take
10518 copyright dates from pa.c.
10519 (pa_option_optimization_table, pa_handle_option,
10520 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
10521 TARGET_HANDLE_OPTION): Move from pa.c.
10522 * common/config/alpha/alpha-common.c,
10523 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
10524 common/config/bfin/bfin-common.c,
10525 common/config/cris/cris-common.c,
10526 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
10527 common/config/h8300/h8300-common.c,
10528 common/config/i386/i386-common.c,
10529 common/config/ia64/ia64-common.c,
10530 common/config/iq2000/iq2000-common.c,
10531 common/config/lm32/lm32-common.c,
10532 common/config/m32c/m32c-common.c,
10533 common/config/m32r/m32r-common.c,
10534 common/config/m68k/m68k-common.c,
10535 common/config/mcore/mcore-common.c,
10536 common/config/mep/mep-common.c,
10537 common/config/microblaze/microblaze-common.c,
10538 common/config/mips/mips-common.c,
10539 common/config/mmix/mmix-common.c,
10540 common/config/mn10300/mn10300-common.c,
10541 common/config/pdp11/pdp11-common.c,
10542 common/config/picochip/picochip-common.c,
10543 common/config/rs6000/rs6000-common.c,
10544 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
10545 common/config/score/score-common.c, common/config/sh/sh-common.c,
10546 common/config/sparc/sparc-common.c,
10547 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
10548 common/config/vax/vax-common.c,
10549 common/config/xstormy16/xstormy16-common.c,
10550 common/config/xtensa/xtensa-common.c: New.
10551 * config/alpha/alpha.c: Include common/common-target.h.
10552 (alpha_option_optimization_table, alpha_handle_option,
10553 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10554 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
10555 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
10556 * config/arm/arm.c (arm_option_optimization_table,
10557 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10558 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
10560 * config/avr/avr.c (avr_option_optimization_table,
10561 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
10563 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
10564 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
10565 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
10566 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
10567 * config/cris/cris.c (cris_option_optimization_table,
10568 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10569 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
10571 * config/fr30/fr30.c (fr30_option_optimization_table,
10572 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
10574 * config/frv/frv.c (frv_option_optimization_table,
10575 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
10576 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
10577 * config/h8300/h8300.c (h8300_option_optimization_table,
10578 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10579 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
10580 * config/i386/i386-protos.h (ix86_handle_option): Declare.
10581 * config/i386/i386.c: Include common/common-target.h.
10582 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
10583 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
10584 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
10585 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
10586 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
10587 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
10588 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
10589 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
10590 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
10591 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
10592 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
10593 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
10594 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
10595 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
10596 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
10597 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
10598 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
10599 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
10600 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
10601 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
10602 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
10603 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
10604 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
10605 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
10606 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
10607 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
10608 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
10609 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
10610 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
10611 ix86_option_optimization_table, ix86_option_init_struct,
10612 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
10613 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10614 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
10616 * config/i386/t-i386 (i386.o): Update dependencies.
10617 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
10618 * config/ia64/ia64.c (ia64_option_optimization_table,
10619 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
10620 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10621 ia64_handle_option): Move to ia64-common.c.
10622 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
10623 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
10624 * config/lm32/lm32.c (lm32_option_optimization_table,
10625 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
10627 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
10629 * config/m32r/m32r.c (m32r_option_optimization_table,
10630 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10631 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
10632 m32r_handle_option): Move to m32r-common.c.
10633 (m32r_memory_move_cost): Remove comment referring to
10634 TARGET_HANDLE_OPTION.
10635 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
10636 Move to m68k-common.c.
10637 * config/mcore/mcore.c (mcore_option_optimization_table,
10638 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10639 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
10640 * config/mep/mep.c (mep_option_optimization_table,
10641 mep_handle_option, TARGET_HANDLE_OPTION,
10642 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
10643 Move to mep-common.c.
10644 * config/microblaze/microblaze.c
10645 (microblaze_option_optimization_table,
10646 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10647 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
10648 * config/mips/mips.c (mips_handle_option,
10649 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
10650 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
10652 * config/mmix/mmix.c (mmix_option_optimization_table,
10653 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
10654 Move to mmix-common.c.
10655 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
10656 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
10657 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10658 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
10659 * config/pa/pa.c: Include common/common-target.h.
10660 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
10661 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10662 pa_handle_option): Move to pa-common.c.
10663 (pa_option_override): Use targetm_common.except_unwind_info.
10664 (pa_asm_output_mi_thunk, pa_function_section): Use
10665 targetm_common.have_named_sections.
10666 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
10667 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10668 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
10669 pdp11_handle_option, pdp11_option_init_struct): Move to
10671 * config/picochip/picochip.c (picochip_option_optimization_table,
10672 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
10673 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
10674 * config/rs6000/rs6000.c: Include common/common-target.h.
10675 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
10676 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
10677 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
10678 rs6000_handle_option): Move to rs6000-common.c.
10679 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10680 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
10681 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10682 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
10683 * config/s390/s390.c (processor_flags_table,
10684 s390_option_optimization_table, s390_option_init_struct,
10685 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
10686 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10687 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
10688 * config/s390/s390.h (processor_flags_table): Declare.
10689 * config/score/score.c (score_option_optimization_table,
10690 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10691 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
10692 score_handle_option): Move to score-common.c.
10693 * config/sh/sh.c (sh_option_optimization_table,
10694 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
10695 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10696 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
10697 * config/sparc/sparc.c: Include common/common-target.h.
10698 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
10699 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
10700 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
10701 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
10702 spu_option_init_struct): Move to spu-common.c.
10703 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
10704 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
10705 * config/v850/v850.c (small_memory_physical_max,
10706 v850_handle_memory_optionn v850_handle_option,
10707 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
10708 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
10710 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
10711 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
10712 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
10713 Move to xtensa-common.c.
10714 * cfglayout.c: Include common/common-target.h.
10715 (fixup_reorder_chain): Use targetm_common.have_named_sections.
10716 * cfgrtl.c: Include common/common-target.h.
10717 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
10718 targetm_common.have_named_sections.
10719 * dbxout.c: Include common/common-target.h.
10720 (dbxout_function_end): Use targetm_common.have_named_sections.
10721 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
10722 targetm_common.except_unwind_info.
10723 * dwarf2out.c: Include common/common-target.h.
10724 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
10725 dwarf2out_begin_prologue, dwarf2out_frame_init,
10726 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
10727 targetm_common.except_unwind_info.
10728 * except.c: Include common/common-target.h.
10729 (init_eh, finish_eh_generation,
10730 output_one_function_exception_table): Use
10731 targetm_common.except_unwind_info.
10732 (switch_to_exception_section): Use targetm_common.have_named_sections.
10733 * explow.c: Include common/common-target.h.
10734 * expr.c: Include common/common-target.h.
10735 (build_personality_function): Use targetm_common.except_unwind_info.
10736 * function.c: Include common/common-target.h.
10737 (expand_function_end): Use targetm_common.except_unwind_info.
10738 * haifa-sched.c: Include common/common-target.h.
10739 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
10740 * lto-opts.c: Include common/common-target.h instead of target.h.
10741 (lto_reissue_options): Use targetm_common.handle_option.
10742 * opts.c: Include common/common-target.h.
10743 (target_handle_option): Use targetm_common.handle_option.
10744 (init_options_struct): Update comment referring to
10745 targetm.target_option.optimization. Use
10746 targetm_common.default_target_flags,
10747 targetm_common.unwind_tables_default and
10748 targetm_common.option_init_struct.
10749 (default_options_optimization): Use
10750 targetm_common.option_optimization_table.
10751 (finish_options): Use targetm_common.except_unwind_info,
10752 targetm_common.unwind_tables_default,
10753 targetm_common.have_named_sections and
10754 targetm_common.supports_split_stack.
10755 * toplev.c: Include common/common-target.h.
10756 (process_options): Use targetm_common.have_named_sections.
10757 * tree-tailcall.c: Include common/common-target.h.
10758 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
10759 * tree.c: Include common/common-target.h.
10760 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
10761 * varasm.c: Include common/common-target.h.
10762 (resolve_unique_section, hot_function_section,
10763 default_function_section): Use targetm_common.have_named_sections.
10765 2011-06-14 Easwaran Raman <eraman@google.com>
10767 PR rtl-optimization/44194
10768 * dse.c: Include tree-flow.h
10769 (insn_info): Add new field non_frame_wild_read.
10770 (group_info): Add new fields escaped_n and escaped_p.
10771 (kill_on_calls): New variable.
10772 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
10773 (dse_step0): Initialize kill_on_calls.
10774 (can_escape): New function.
10775 (set_usage_bits): Add additional parameter; record information
10776 about escaped locations.
10777 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
10778 (dse_step2_nospill): Set kill_on_calls based on
10779 group->escaped_n and group->escaped_n.
10780 (add_wild_read): Refactor into...
10781 (reset_active_stores): ... New function, and
10782 (free_read_records): ... New function.
10783 (add_non_frame_wild_read): New function.
10784 (scan_insn): Call add_non_frame_wild_read on non-const calls.
10785 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
10786 (dse_step5_nospill): Call scan_reads_nospill for instructions
10787 marked as non_frame_wild_read.
10788 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
10790 2011-06-14 Joseph Myers <joseph@codesourcery.com>
10792 * common/common-target-def.h, common/common-target.def,
10793 common/common-target.h, common/config/default-common.c,
10794 common/config/pa/pa-common.c: New files.
10795 * Makefile.in (common_out_file, common_out_object_file,
10796 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
10797 (OBJS-libcommon-target): Include $(common_out_object_file).
10798 (prefix.o): Update dependencies.
10799 ($(common_out_object_file), common/common-target-hooks-def.h,
10800 s-common-target-hooks-def-h): New.
10801 (s-tm-texi): Also check timestamp on common-target.def.
10802 (build/genhooks.o): Update dependencies.
10803 * config.gcc (common_out_file, target_has_targetm_common): Define.
10804 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
10805 TARGET_ALWAYS_STRIP_DOTDOT.
10806 * configure.ac (common_out_object_file): Define.
10807 (common_out_file, common_out_object_file): Substitute.
10808 (common): Create directory.
10809 * configure: Regenerate.
10810 * doc/tm.texi.in (targetm_common): Document.
10811 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
10812 * doc/tm.texi: Regenerate.
10813 * genhooks.c (hook_array): Also include common/common-target.def.
10814 * prefix.c (tm.h): Don't include.
10815 (common/common-target.h): Include.
10816 (ALWAYS_STRIP_DOTDOT): Don't define.
10817 (update_path): Use targetm_common.always_strip_dotdot instead of
10818 ALWAYS_STRIP_DOTDOT.
10819 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
10821 2011-06-14 David Li <davidxl@google.com>
10823 * passes.c (execute_function_todo): Remove TODO_dump_func.
10824 (execute_one_pass): Remove TODO_dump_func.
10825 (execute_function_dump): New function.
10826 * tree-vrp.c: Remove TODO_dump_func.
10827 * regrename.c: Remove TODO_dump_func.
10828 * fwprop.c: Remove TODO_dump_func.
10829 * tree-into-ssa.c: Remove TODO_dump_func.
10830 * tree-complex.c: Remove TODO_dump_func.
10831 * tracer.c: Remove TODO_dump_func.
10832 * tree-loop-distribution.c: Remove TODO_dump_func.
10833 * postreload-gcse.c: Remove TODO_dump_func.
10834 * postreload.c: Remove TODO_dump_func.
10835 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
10836 * tree-tailcall.c: Remove TODO_dump_func.
10837 * ipa-cp.c: Remove TODO_dump_func.
10838 * final.c: Remove TODO_dump_func.
10839 * tree-emutls.c: Remove TODO_dump_func.
10840 * omp-low.c: Remove TODO_dump_func.
10841 * tree-ssa-dse.c: Remove TODO_dump_func.
10842 * tree-ssa-uncprop.c: Remove TODO_dump_func.
10843 * auto-inc-dec.c: Remove TODO_dump_func.
10844 * reorg.c: Remove TODO_dump_func.
10845 * tree-ssa-copyrename.c: Remove TODO_dump_func.
10846 * tree-ssa-ccp.c: Remove TODO_dump_func.
10847 * compare-elim.c: Remove TODO_dump_func.
10848 * mode-switching.c: Remove TODO_dump_func.
10849 * modulo-sched.c: Remove TODO_dump_func.
10850 * tree-call-cdce.c: Remove TODO_dump_func.
10851 * cse.c: Remove TODO_dump_func.
10852 * web.c: Remove TODO_dump_func.
10853 * tree-stdarg.c: Remove TODO_dump_func.
10854 * lto-streamer-out.c: Remove TODO_dump_func.
10855 * tree-ssa-math-opts.c: Remove TODO_dump_func.
10856 * tree-ssa-dom.c: Remove TODO_dump_func.
10857 * tree-nrv.c: Remove TODO_dump_func.
10858 * loop-init.c: Remove TODO_dump_func.
10859 * gimple-low.c: Remove TODO_dump_func.
10860 * ipa-inline.c: Remove TODO_dump_func.
10861 * tree-ssa-sink.c: Remove TODO_dump_func.
10862 * jump.c: Remove TODO_dump_func.
10863 * ifcvt.c: Remove TODO_dump_func.
10864 * tree-ssa-loop.c: Remove TODO_dump_func.
10865 * recog.c: Remove TODO_dump_func.
10866 * dse.c: Remove TODO_dump_func.
10867 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
10868 * matrix-reorg.c: Remove TODO_dump_func.
10869 * tree-eh.c: Remove TODO_dump_func.
10870 * regmove.c: Remove TODO_dump_func.
10871 * function.c: Remove TODO_dump_func.
10872 * tree-vectorizer.c: Remove TODO_dump_func.
10873 * ipa-split.c: Remove TODO_dump_func.
10874 * gcse.c: Remove TODO_dump_func.
10875 * tree-if-conv.c: Remove TODO_dump_func.
10876 * init-regs.c: Remove TODO_dump_func.
10877 * tree-ssa-phiopt.c: Remove TODO_dump_func.
10878 * implicit-zee.c: Remove TODO_dump_func.
10879 * lower-subreg.c: Remove TODO_dump_func.
10880 * bt-load.c: Remove TODO_dump_func.
10881 * tree-dfa.c: Remove TODO_dump_func.
10882 * except.c: Remove TODO_dump_func.
10883 * emit-rtl.c: Remove TODO_dump_func.
10884 * store-motion.c: Remove TODO_dump_func.
10885 * cfgexpand.c: Remove TODO_dump_func.
10886 * tree-cfgcleanup.c: Remove TODO_dump_func.
10887 * cfgcleanup.c: Remove TODO_dump_func.
10888 * tree-ssa-pre.c: Remove TODO_dump_func.
10889 * tree-sra.c: Remove TODO_dump_func.
10890 * tree-mudflap.c: Remove TODO_dump_func.
10891 * tree-ssa-copy.c: Remove TODO_dump_func.
10892 * cfglayout.c: Remove TODO_dump_func.
10893 * tree-ssa-forwprop.c: Remove TODO_dump_func.
10894 * tree-ssa-dce.c: Remove TODO_dump_func.
10895 * ira.c: Remove TODO_dump_func.
10896 * tree-ssa.c: Remove TODO_dump_func.
10897 * integrate.c: Remove TODO_dump_func.
10898 * tree-optimize.c: Remove TODO_dump_func.
10899 * tree-ssa-phiprop.c: Remove TODO_dump_func.
10900 * tree-object-size.c: Remove TODO_dump_func.
10901 * combine.c: Remove TODO_dump_func.
10902 * bb-reorder.c: Remove TODO_dump_func.
10903 * cprop.c: Remove TODO_dump_func.
10904 * var-tracking.c: Remove TODO_dump_func.
10905 * tree-profile.c: Remove TODO_dump_func.
10906 * tree-vect-generic.c: Remove TODO_dump_func.
10907 * reg-stack.c: Remove TODO_dump_func.
10908 * sched-rgn.c: Remove TODO_dump_func.
10909 * tree-ssa-structalias.c: Remove TODO_dump_func.
10910 * tree-switch-conversion.c: Remove TODO_dump_func.
10911 * tree-cfg.c: Remove TODO_dump_func.
10912 * tree-ssa-reassoc.c: Remove TODO_dump_func.
10913 * combine-stack-adj.c: Remove TODO_dump_func.
10914 * dce.c: Remove TODO_dump_func.
10915 * tree-ssanames.c: Remove TODO_dump_func.
10916 * regcprop.c: Remove TODO_dump_func.
10918 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
10920 PR middle-end/47364
10921 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
10922 and properly handle result not in Pmode.
10924 2011-06-14 Robert Millan <rmh@gnu.org>
10926 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
10927 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
10930 * config/i386/kfreebsd-gnu64.h: New file.
10931 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
10932 with `i386/kfreebsd-gnu64.h'.
10934 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
10935 (GNU_USER_LINK_EMULATION64): New macros.
10936 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
10937 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
10938 of hardcoding `elf_i386' and `elf_x86_64'.
10940 2011-06-14 Nick Clifton <nickc@redhat.com>
10943 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
10946 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
10948 2011-06-14 Jakub Jelinek <jakub@redhat.com>
10951 * tree.h (DECL_NONSHAREABLE): Define.
10952 (struct tree_decl_common): Change decl_common_unused to
10953 decl_nonshareable_flag.
10954 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
10955 Ignore vars with DECL_NONSHAREABLE bit set.
10956 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
10957 on stores to automatic aggregate vars.
10959 PR rtl-optimization/49390
10961 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
10963 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
10966 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
10967 Tom de Vries <tom@codesourcery.com>
10970 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
10971 Document changed semantics.
10972 (max_stmt_executions, max_stmt_executions_int): Declare.
10973 * tree-data-ref.c (estimated_loop_iterations)
10974 (estimated_loop_iterations_int): Move functions...
10975 * tree-ssa-loop-niter.c (estimated_loop_iterations)
10976 (estimated_loop_iterations_int): here.
10977 (record_estimate): Change nb_iterations_upper_bound and
10978 nb_iterations_estimate semantics.
10979 (max_stmt_executions, max_stmt_executions_int): New function.
10980 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
10981 (max_stmt_executions_tree): this.
10982 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
10983 estimated_loop_iterations_tree.
10984 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
10985 max_stmt_executions_int instead of estimated_loop_iterations_int.
10986 * predict.c (predict_loops): Idem.
10987 * tree-parloops.c (parallelize_loops): Idem.
10988 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
10989 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
10990 (init_omega_for_ddr_1): Idem.
10991 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
10992 (loop_prefetch_arrays): Idem
10993 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
10994 max_stmt_executions instead of estimated_loop_iterations.
10995 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
10996 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
10997 instead of nb_iterations_upper_bound.
10999 2011-06-13 Jan Hubicka <jh@suse.cz>
11001 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
11003 2011-06-14 Richard Henderson <rth@redhat.com>
11006 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
11007 (based_loc_descr): Assert it's true.
11008 (compute_frame_pointer_to_fb_displacement): Set it, rather than
11009 aborting immediately.
11011 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
11012 Mingfeng Wu <mingfeng@faraday-tech.com>
11014 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
11016 2011-06-13 Jan Hubicka <jh@suse.cz>
11018 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
11020 2011-06-13 Jan Hubicka <jh@suse.cz>
11022 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
11023 similarly to DECL_COMDAT.
11024 * cgraphunit.c (cgraph_analyze_function): Likewise.
11025 * ipa.c (function_and_variable_visibility): Likewise.
11027 2011-06-13 Jan Hubicka <jh@suse.cz>
11029 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
11030 BINFO_VIRTUALS when streaming for ltrans unit.
11032 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
11034 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
11035 (movdi_internal64): Same.
11037 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
11040 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
11041 a set of similar patterns, where the MATCH_OPERAND for the function
11042 argument is replaced with individual references to hardware registers.
11043 (save_fpregs_<mode>): Ditto
11044 (restore_gpregs_<mode>): Ditto
11045 (return_and_restore_gpregs_<mode>): Ditto
11046 (return_and_restore_fpregs_<mode>): Ditto
11047 (return_and_restore_fpregs_aix_<mode>): Ditto
11049 2011-06-13 Jan Hubicka <jh@suse.cz>
11051 * ipa-utils.c (postorder_stack): New structure.
11052 (ipa_reverse_postorder): Handle aliases.
11054 2011-06-13 Jan Hubicka <jh@suse.cz>
11056 * ipa-inline.c (reset_edge_caches): Walk aliases.
11057 (update_caller_keys): Do not test inlinability of aliases.
11058 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
11059 (do_estimate_growth): Fix typo.
11061 2011-06-13 Jan Hubicka <jh@suse.cz>
11063 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
11064 (can_remove_node_now_p): ... here; handle same comdat groups.
11065 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
11066 (inline_call): Update use of can_remove_node_now_p.
11068 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
11070 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
11071 condition to disallow non-identical memory locations.
11072 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
11073 preference to bit manipulation instructions.
11075 2011-06-13 Jan Hubicka <jh@suse.cz>
11077 * cgraph.c (cgraph_for_node_thunks_and_aliases,
11078 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
11079 (nonremovable_p): New function.
11080 (cgraph_can_remove_if_no_direct_calls_p): New function.
11081 (used_from_object_file_p): New functoin.
11082 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
11083 references from aliases.
11084 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
11085 * ipa-inline.c (check_caller_edge): New function.
11086 (want_inline_function_called_once_p): Use it; accept aliases called
11088 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
11090 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11093 * config/arm/neon.md (vec_pack_trunc): Set the lengths
11094 correctly for the case with Quad vectors.
11096 2011-06-13 Jakub Jelinek <jakub@redhat.com>
11097 Ira Rosen <ira.rosen@linaro.org>
11099 PR tree-optimization/49352
11100 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
11101 all, make sure loop_use_stmt after the loop is a def stmt of a used
11102 SSA_NAME that is the only one defined inside of the loop. Don't
11103 check for COND_EXPR and GIMPLE_BINARY_RHS.
11104 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
11105 check_reduction is true.
11107 2011-06-11 Jan Hubicka <jh@suse.cz>
11109 PR middle-end/49373
11110 * ipa.c (cgraph_externally_visible_p): Check resolution info.
11112 2011-06-11 Jan Hubicka <jh@suse.cz>
11114 PR middle-end/48836
11115 * ipa-inline-transform.c: Include tree-pass.h
11116 (inline_transform): Set TODO_update_ssa_only_virtuals.
11117 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
11119 2011-06-11 Jan Hubicka <jh@suse.cz>
11121 PR middle-end/49378
11122 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
11123 aliases and thunks.
11125 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
11127 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
11128 Take number of iterations to peel into account for equally frequent
11129 misalignment values.
11131 2011-06-11 Jan Hubicka <jh@suse.cz>
11133 * lto-streamer-out.c (produce_symtab): Stream out the newly
11134 represented aliases.
11136 2011-06-11 Jan Hubicka <jh@suse.cz>
11138 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
11140 (ipa_update_after_lto_read): Likewise.
11141 (ipa_write_node_info): Do not sream call_with_var_arguments.
11142 (ipa_read_node_info): Likewise.
11144 2011-06-11 Jan Hubicka <jh@suse.cz>
11146 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
11148 2011-06-11 Jan Hubicka <jh@suse.cz>
11150 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
11151 (lto_symtab_resolve_can_prevail_p): Likewise.
11152 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
11153 * cgraph.c (same_body_aliases_done): New global var.
11154 (cgraph_same_body_alias_1): Rename to ...
11155 (cgraph_create_function_alias): ... this one; reorg to new
11157 (cgraph_same_body_alias): Use cgraph_create_function_alias;
11158 record references when asked to.
11159 (cgraph_add_thunk): Fix formating.
11160 (cgraph_get_node): Kill same body alias code.
11161 (cgraph_node_for_asm): Likewise.
11162 (cgraph_remove_same_body_alias): Remove.
11163 (cgraph_remove_node): Kill same body alias code.
11164 (cgraph_mark_address_taken_node): Mark also the aliased function
11165 as having address taken.
11166 (dump_cgraph_node): Dump same body aliases.
11167 (cgraph_for_node_thunks_and_aliases): Update for new alias
11169 (cgraph_for_node_and_aliases): Likewise.
11170 * cgraph.h (same_body): Kll pointer.
11171 (same_body_alias): Update comment.
11172 (same_body_aliases_done): Declare.
11173 (cgraph_remove_same_body_alias): Remove declaration.
11174 (cgraph_create_function_alias): Declare.
11175 (cgraph_process_same_body_aliases): Declare.
11176 (cgraph_function_with_gimple_body_p): Check for alias.
11177 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
11178 (cgraph_alias_aliased_node): New function.
11179 (cgraph_function_node): Update for new aliases.
11180 (cgraph_function_or_thunk_node): Likewise.
11181 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
11182 (inline_call): Remove dead aliases.
11183 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
11184 name hack for same body aliases.
11185 (clone_of_p): Look through aliases.
11186 (verify_cgraph_node): Verify aliases.
11187 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
11188 (cgraph_process_same_body_aliases): New function.
11189 (process_function_and_variable_attributes): Disable weakref warning on
11191 (cgraph_analyze_functions): Handle aliases.
11192 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
11193 (assemble_thunks): Rename to ...
11194 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
11195 (cgraph_expand_function): Remove alias output code.
11196 (cgraph_output_in_order): Skip aliases.
11197 (cgraph_preserve_function_body_p): Aliases don't need preserving.
11198 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
11199 (ipa_record_reference): Do not assert on alias references.
11200 (ipa_ref_has_aliases_p): New function.
11201 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
11202 (ipa_ref_has_aliases_p): Declare.
11203 * lto-cgraph.c (lto_output_node): Handle aliases.
11204 (input_node): Likewise.
11205 * lto-streamer-out.c (lto_output): Skip aliases.
11206 (produce_symtab): Kill same_body_alias code.
11207 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
11208 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
11209 * ipa-inline.c (update_caller_keys): Walk aliases.
11210 (inline_small_functions): Fix thinko in previous patch.
11211 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
11212 (function_and_variable_visibility): Do not walk same body aliases.
11213 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
11214 (ipa_pta_execute): Use it.
11216 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
11218 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
11219 (*vec_dupv2df): Rename from vec_dupv2df.
11220 (vec_dupv2df): New expander.
11222 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
11224 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
11226 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
11228 * config/i386/i386.md: Use default value in "isa" attribute.
11229 * config/i386/sse.md: Ditto.
11230 * config/i386/mmx.md: Ditto.
11232 2011-06-10 Wei Guozhi <carrot@google.com>
11235 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
11236 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
11237 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
11239 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
11241 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
11242 (arm_legitimate_ldrd_p): New prototype.
11243 (arm_output_ldrd): New prototype.
11244 * config/arm/arm.c (arm_check_ldrd_operands): New function.
11245 (arm_legitimate_ldrd_p): New function.
11246 (arm_output_ldrd): New function.
11248 2011-06-10 David Li <davidxl@google.com>
11250 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
11251 * passes.c (passr_eq): New function.
11252 (create_pass_tab): New function.
11253 (pass_traverse): New function.
11254 (dump_one_pass): New function.
11255 (dump_pass_list): New function.
11256 (dump_passes): New function.
11258 2011-06-10 Jan Hubicka <jh@suse.cz>
11260 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
11261 setting the nothrow flag.
11262 * ipa-reference.c (propagate): Skip aliases.
11263 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
11264 (propagate_nothrow): Skip aliases; do not update cgraph.
11265 (local_pure_const): Do not update cgraph.
11266 * tree-profile.c (tree_profiling): Do fixup_cfg.
11268 2011-06-10 Jan Hubicka <jh@suse.cz>
11270 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
11271 (cgraph_local_node_p): ... here; handle aliases.
11272 (has_addr_references_p): Break out from ...;
11273 (cgraph_remove_unreachable_nodes) ... here.
11275 2011-06-10 Jan Hubicka <jh@suse.cz>
11277 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
11278 * common.opt (flag_inline_functions_called_once): Do not
11281 2011-06-10 Jan Hubicka <jh@suse.cz>
11283 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
11284 (ipcp_initialize_node_lattices): Do not deal with aliases;
11285 Do not try to propagate through thunks.
11286 (ipcp_change_tops_to_bottom): Do not deal with aliases.
11288 2011-06-10 Jan Hubicka <jh@suse.cz>
11290 * ipa-prop.c (ipa_write_node_info): Stream jump functions
11291 for indirect calls.
11292 (ipa_read_node_info): Likewise.
11294 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11297 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
11298 (build_and_insert_call): Likewise.
11299 (build_and_insert_ref): New.
11300 (gimple_expand_builtin_pow): Minor cleanup.
11301 (gimple_expand_builtin_cabs): New.
11302 (execute_cse_sincos): Add case for BUILT_IN_CABS.
11304 2011-06-10 Jan Hubicka <jh@suse.cz>
11306 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
11307 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
11308 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
11309 (ipcp_propagate_stage): Skip aliases when propagating.
11310 (ipcp_need_redirect_p): Skip aliases.
11311 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
11312 collect_callers_of_node.
11313 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
11315 (ipa_compute_jump_functions): Look through aliases.
11317 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11319 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
11321 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
11323 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
11325 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
11327 2011-06-10 Jan Hubicka <jh@suse.cz>
11329 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
11330 Update call of gimple_get_virt_method_for_binfo.
11331 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
11332 refuse_thunks parameter.
11333 (gimple_fold_call): Update.
11334 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
11336 2011-06-10 Jan Hubicka <jh@suse.cz>
11338 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
11339 (not_all_callers_have_enough_arguments_p): ... this one; turn into
11340 worker for cgraph_for_node_and_aliases.
11341 (convert_callers_for_node): Break out from ...
11342 (convert_callers): ... here.
11343 (modify_function): Use collect_callers_of_node.
11344 (ipa_early_sra): Use cgraph_for_node_and_aliases.
11346 2011-06-10 Richard Guenther <rguenther@suse.de>
11348 PR tree-optimization/49361
11349 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
11350 when not already in gimple form.
11352 2011-06-10 Richard Guenther <rguenther@suse.de>
11355 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
11356 FOR_EACH_PHI_OR_STMT_USE.
11358 2011-06-10 Jan Hubicka <jh@suse.cz>
11360 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
11361 (clone_inlined_nodes): ... here.
11362 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
11363 to real destination prior inlining.
11364 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
11365 can_early_inline_edge_p, want_early_inline_function_p,
11366 want_early_inline_function_p, want_inline_small_function_p,
11367 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
11368 edge_badness, update_all_callee_keys, lookup_recursive_calls,
11369 add_new_edges_to_heap, inline_small_functions, flatten_function,
11370 inline_always_inline_functions, early_inline_small_functions): Use
11371 cgraph_function_or_thunk_node.
11372 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
11373 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
11374 (do_estimate_edge_growth_1): Break out from ...
11375 (do_estimate_growth) ... here; walk aliases.
11376 (inline_generate_summary): Skip aliases.
11378 2011-06-10 Richard Guenther <rguenther@suse.de>
11380 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
11381 forward when combining, visit inserted stmts when a stmt was changed.
11383 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
11385 * tree.h (error_operand_p): Add.
11386 * dbxout.c (dbxout_type_fields): Use the latter.
11387 * c-decl.c (add_stmt): Likewise.
11388 * gimplify.c (omp_add_variable, omp_notice_variable,
11389 gimplify_scan_omp_clauses): Likewise.
11391 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
11393 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
11394 when a value is actually passed in regs.
11396 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
11397 Laurent Rougé <laurent.rouge@menta.fr>
11399 * doc/invoke.texi (SPARC options): Add -mflat.
11400 * config/sparc/sparc.opt: Likewise.
11401 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
11402 (sparc_flat_expand_prologue): Declare.
11403 (sparc_flat_expand_epilogue): Likewise.
11404 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
11405 (CPP_ENDIAN_SPEC): Replace with...
11406 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
11407 (CPP_SPEC): Adjust to above change.
11408 (EXTRA_SPECS): Likewise.
11409 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
11410 (INCOMING_REGNO): Likewise.
11411 (OUTGOING_REGNO): Likewise.
11412 (LOCAL_REGNO): Likewise.
11413 (SETUP_FRAME_ADDRESSES): Likewise.
11414 (FIXED_REGISTERS): Set 0 for %fp.
11415 (CALL_USED_REGISTERS): Likewise.
11416 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
11417 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
11418 (RETURN_ADDR_REGNUM): Define.
11419 (RETURN_ADDR_RTX): Use it.
11420 (INCOMING_RETURN_ADDR_REGNUM): Define.
11421 (INCOMING_RETURN_ADDR_RTX): Use it.
11422 (DWARF_FRAME_RETURN_COLUMN): Likewise.
11423 (EH_RETURN_REGNUM): Define.
11424 (EH_RETURN_STACKADJ_RTX): Use it.
11425 (EH_RETURN_HANDLER_RTX): Delete.
11426 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
11427 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
11429 (struct machine_function): Add frame_size, apparent_frame_size,
11430 frame_base_reg, frame_base_offset, n_global_fp_regs and
11431 save_local_in_regs_p fields.
11432 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
11433 sparc_frame_base_offset, sparc_n_global_fp_regs,
11434 sparc_save_local_in_regs_p): New macros.
11435 (sparc_option_override): Error out if -fcall-saved-REG is specified
11437 (eligible_for_restore_insn): Fix formatting.
11438 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
11439 (eligible_for_sibcall_delay): Likewise.
11440 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
11441 (sparc_legitimate_address_p): Adjust to above change.
11442 (save_global_or_fp_reg_p): New predicate.
11443 (return_addr_reg_needed_p): Likewise.
11444 (save_local_or_in_reg_p): Likewise.
11445 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
11446 (SORR_SAVE, SORR_RESTORE): Delete.
11447 (sorr_pred_t): New typedef.
11448 (sorr_act_t): New enum.
11449 (save_or_restore_regs): Rename to...
11450 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
11451 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
11452 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
11453 mechanism. Add CFI information for double-word saves in 32-bit mode.
11454 (emit_adjust_base_to_offset): New function extracted from...
11455 (emit_save_or_restore_regs): ...this. Rename the rest to...
11456 (emit_save_or_restore_regs_global_fp_regs): ...this.
11457 (emit_save_or_restore_regs_local_in_regs): New function.
11458 (gen_create_flat_frame_[123]): New functions.
11459 (sparc_expand_prologue): Use SIZE local variable. Adjust.
11460 (sparc_flat_expand_prologue): New function.
11461 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
11462 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
11463 (sparc_flat_expand_epilogue): New function.
11464 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
11465 (output_return): Likewise.
11466 (output_sibcall): Likewise.
11467 (sparc_output_mi_thunk): Likewise.
11468 (sparc_frame_pointer_required): Likewise.
11469 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
11470 function optimization.
11471 * config/sparc/sparc.md (flat): New attribute.
11472 (prologue): Add TARGET_FLAT handling.
11473 (save_register_window): Disable if TARGET_FLAT.
11474 (create_flat_frame_[123]): New patterns.
11475 (epilogue): Add TARGET_FLAT handling.
11476 (sibcall_epilogue): Likewise.
11477 (eh_return): New expander.
11478 (eh_return_internal): New insn and splitter.
11479 (return_internal): Add TARGET_FLAT handling.
11480 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
11481 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
11482 (nonlocal_goto): Add TARGET_FLAT handling.
11483 * config/sparc/t-elf: Add -mflat multilib.
11484 * config/sparc/t-leon: Likewise.
11486 2011-06-10 Jan Hubicka <jh@suse.cz>
11488 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
11489 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
11490 (self_recursive_p): Use cgraph_function_node.
11491 (propagate_pure_const): Likewise.
11492 (propagate_nothrow): Likewise.
11493 * ipa-reference.c (ipa_reference_get_not_read_global): Use
11494 cgraph_function_node.
11495 (propagate_bits): Likewise.
11496 (propagate): Likewise.
11498 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11499 Richard Earnshaw <rearnsha@arm.com>
11501 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
11502 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
11503 (*thumb2_movdi_vfp): Delete.
11504 (*arm_movdi_vfp_cortexa8): Delete.
11505 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
11506 (*movdi_vfp_cortexa8): Likewise.
11508 2011-06-10 Richard Guenther <rguenther@suse.de>
11510 * stor-layout.c (initialize_sizetypes): Give names to all
11513 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
11515 PR tree-optimization/49318
11516 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
11517 irrelevant pattern statements.
11519 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
11521 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
11524 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
11525 to last assignment.
11527 2011-06-09 Jan Hubicka <jh@suse.cz>
11529 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
11530 do not recompute reachable flag.
11531 (cgraph_finalize_function, cgraph_analyze_functions): Set
11532 redefined_extern_inline here.
11534 2011-06-09 Jan Hubicka <jh@suse.cz>
11536 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
11537 (cgraph_only_called_directly_p): ... this one; bring offline.
11538 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
11539 varpool_used_from_object_file_p): Drop names from the declaratoin.
11540 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
11541 collect_callers_of_node): New.
11542 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
11543 (cgraph_edge_recursive_p): Use cgraph_function_node.
11544 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
11545 (cgraph_node_cannot_be_local_p_1): Break out from ...
11546 (cgraph_node_can_be_local_p): ... here; walk aliases.
11547 (cgraph_for_node_thunks_and_aliases): New function.
11548 (cgraph_for_node_and_aliases): New function.
11549 (cgraph_make_node_local_1): Break out from ...
11550 (cgraph_make_node_local) ... here; use
11551 cgraph_for_node_thunks_and_aliases.
11552 (cgraph_set_nothrow_flag_1): Break out from ...
11553 (cgraph_set_nothrow_flag) ... here;
11554 use cgraph_for_node_thunks_and_aliases.
11555 (cgraph_set_const_flag_1): Break out from ...
11556 (cgraph_set_const_flag) ... here;
11557 use cgraph_for_node_thunks_and_aliases.
11558 (cgraph_set_pure_flag_1): Break out from ...
11559 (cgraph_set_pure_flag) ... here;
11560 use cgraph_for_node_thunks_and_aliases.
11561 (cgraph_propagate_frequency_1): Break out from ...
11562 (cgraph_propagate_frequency) ... here; use
11563 cgraph_for_node_thunks_and_aliases.
11564 (cgraph_used_from_object_file_p): Do not care about aliases.
11565 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
11567 (collect_callers_of_node_1, collect_callers_of_node): New functions.
11569 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
11571 PR rtl-optimization/49154
11572 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
11573 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
11574 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
11575 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
11576 * config/cris/cris.h (cris_register_move_cost): Remove
11577 !TARGET_V32 code. Tweak comments.
11579 2011-06-09 Jan Hubicka <jh@suse.cz>
11581 * cgraphbuild.c (record_eh_tables): Mark personality function as having
11584 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
11586 PR rtl-optimization/49154
11587 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
11588 is a matching slot in the hashtable, assign it to classes_ptr.
11590 PR rtl-optimization/49154
11591 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
11593 * doc/tm.texi: Regenerate.
11595 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
11598 * config/sh/sh.md (UNSPEC_CHKADD): New.
11599 (chk_guard_add): New define_insn_and_split.
11600 (symGOT_load): Use chk_guard_add instead of blockage.
11602 2011-06-09 Kai Tietz <ktietz@redhat.com>
11604 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
11606 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
11608 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
11610 2011-06-09 Wei Guozhi <carrot@google.com>
11613 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
11614 (peephole2 for conditional move): Generate 16 bit instructions.
11616 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
11618 * config/i386/i386.md (*movdi_internal_rex64): Merge
11619 alternatives 6 and 8.
11621 2011-06-09 David Li <davidxl@google.com>
11623 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
11624 * passes.c (passr_eq): New function.
11625 (create_pass_tab): New function.
11626 (pass_traverse): New function.
11627 (dump_one_pass): New function.
11628 (dump_pass_list): New function.
11629 (dump_passes): New function.
11631 2011-06-09 David Li <davidxl@google.com>
11633 * tree-complex.c (tree_lower_complex): Gate cleanup.
11634 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
11635 (execute_optimize_stdarg): Ditto.
11636 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
11637 (execute_cleanup_eh_1): Ditto.
11638 (execute_cleanup_eh): Ditto.
11639 * gcse.c (gate_rtl_pre): Ditto.
11640 (execute_rtl_pre): Ditto.
11641 * except.c (finish_eh_generation): Ditto.
11642 (convert_to_eh_region_ranges): Ditto.
11643 * cprop.c (one_cprop_pass): Ditto.
11645 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
11648 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
11649 in all basic blocks.
11651 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11653 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
11654 (HAVE_ENABLE_EXECUTE_STACK): Define.
11655 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
11656 (HAVE_ENABLE_EXECUTE_STACK): Define.
11657 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
11658 (HAVE_ENABLE_EXECUTE_STACK): Define.
11659 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
11660 (ENABLE_EXECUTE_STACK): Remove.
11661 (HAVE_ENABLE_EXECUTE_STACK): Define.
11662 [IN_LIBGCC2]: Don't include <windows.h>.
11663 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
11664 (HAVE_ENABLE_EXECUTE_STACK): Define.
11665 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
11666 (HAVE_ENABLE_EXECUTE_STACK): Define.
11667 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
11668 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
11669 (HAVE_ENABLE_EXECUTE_STACK): Define.
11670 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
11671 (HAVE_ENABLE_EXECUTE_STACK): Define.
11672 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
11673 (HAVE_ENABLE_EXECUTE_STACK): Define.
11674 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
11675 (HAVE_ENABLE_EXECUTE_STACK): Define.
11676 * config/alpha/alpha.c (alpha_trampoline_init): Test
11677 HAVE_ENABLE_EXECUTE_STACK.
11678 * config/i386/i386.c (ix86_trampoline_init): Likewise.
11679 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
11680 (sparc64_initialize_trampoline): Likewise.
11681 * libgcc2.c [L_enable_execute_stack]: Remove.
11682 * system.h (ENABLE_EXECUTE_STACK): Poison.
11683 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
11684 * doc/tm.texi: Regenerate.
11685 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
11687 2011-06-09 Jakub Jelinek <jakub@redhat.com>
11689 PR middle-end/49308
11690 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
11691 variable. After resetting and rescanning insn continue with previous
11694 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11696 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
11697 (gcc_cv_ld_hidden): Likewise.
11698 * configure: Regenerate.
11699 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
11700 (ix86_stack_protect_fail): Mark unused.
11701 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
11702 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
11703 [TARGET_MACHO]: Don't define.
11704 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
11705 (TARGET_STACK_PROTECT_FAIL): Likewise.
11706 (rs6000_stack_protect_fail): Mark unused.
11707 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
11708 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
11710 2011-06-08 Andi Kleen <ak@linux.intel.com>
11712 * varasm.c (get_section): Print location of other conflict
11713 for section conflicts.
11715 2011-06-08 Andi Kleen <ak@linux.intel.com>
11717 * config/i386/driver-i386.c (host_detect_local_cpu):
11718 Add model 0x2d Intel CPU.
11720 2011-06-08 Andi Kleen <ak@linux.intel.com>
11722 * reginfo.c (global_regs_decl): Add.
11723 (globalize_reg): Add decl parameter. Compute location. Pass location
11724 to warnings and add inform. Store decl in global_regs_decl.
11725 * rtl.h (globalize_reg): Update prototype.
11726 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
11728 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
11730 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
11732 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
11735 * config/sh/predicates.md (general_movsrc_operand): Check
11736 mode for memory with indexed address for QI and HImode.
11737 (general_movdst_operand): Likewise.
11739 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
11741 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
11743 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
11745 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
11746 (num_ssa_operands): Likewise.
11747 (op_iter_init_phiuse): Forward-declare.
11748 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
11750 2011-06-08 Nick Clifton <nickc@redhat.com>
11752 * doc/invoke.texi (ARM Options): Update description of
11755 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
11757 * config/i386/driver-i386.c (host_detect_local_cpu): Support
11758 unknown Intel family 0x6 CPUs.
11760 2011-06-08 Martin Jambor <mjambor@suse.cz>
11762 * tree-sra.c (mark_rw_status): Removed.
11763 (analyze_access_subtree): New parameter parent instead of
11764 mark_read and mark_write, propagate from that.
11766 2011-06-08 Julian Brown <julian@codesourcery.com>
11768 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
11769 for double-precision helper functions in hard-float mode if only
11770 single-precision arithmetic is supported in hardware.
11772 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
11774 PR rtl-optimization/49303
11775 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
11776 code_motion_path_driver returned 0 or 1.
11777 (sel_region_finish): Clear h_d_i_d.
11779 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
11781 * config/sh/sh.c (prepare_move_operands): Set pic register
11782 appropriately for global and local dynamic tls models even
11783 if flag_pic is unset.
11785 2011-06-07 Jason Merrill <jason@redhat.com>
11787 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
11789 2011-06-07 Xinliang David Li <davidxl@google.com>
11790 * passes.c (enable_disable_pass): Handle assembler name.
11791 (is_pass_explicitly_enabled_or_disabled): Ditto.
11793 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11795 PR tree-optimization/48497
11796 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
11798 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11800 PR tree-optimization/46728
11801 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
11802 to use gimple_val_nonnegative_real_p.
11803 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
11804 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
11806 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
11808 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
11810 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
11812 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
11815 2011-06-07 Richard Guenther <rguenther@suse.de>
11817 * stor-layout.c (initialize_sizetypes): Initialize all
11818 sizetypes based on target definitions.
11819 (set_sizetype): Remove.
11820 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
11821 * tree.h (set_sizetype): Remove.
11823 2011-06-07 Nick Clifton <nickc@redhat.com>
11825 * config.gcc: Unify V850 architecture options and add support for
11826 newer V850 architectures.
11827 * config/v850/t-v850e: Delete.
11829 2011-06-07 Richard Guenther <rguenther@suse.de>
11831 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
11832 Call set_sizetype from here.
11834 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
11836 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
11837 (*maddhisi4tb, *maddhisi4tt): New define_insns.
11839 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
11840 Andrew Stubbs <ams@codesourcery.com>
11842 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
11844 * doc/md.texi (Canonicalization of Instructions): Document widening
11845 multiply canonicalization.
11847 2011-06-07 Jakub Jelinek <jakub@redhat.com>
11849 PR gcov-profile/49299
11850 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
11852 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
11854 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
11856 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
11857 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
11858 vect_recog_pow_pattern): Likewise.
11859 (vect_pattern_recog_1): Remove declaration.
11860 (widened_name_p): Remove declaration. Add new argument to specify
11861 whether to check that both types are either signed or unsigned.
11862 (vect_recog_widen_mult_pattern): Update documentation. Handle
11863 unsigned patterns and multiplication by constants.
11864 (vect_pattern_recog_1): Update vect_recog_func references. Use
11865 statement information from the statement returned from pattern
11866 detection functions.
11867 (vect_pattern_recog): Update vect_recog_func reference.
11868 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
11869 multiplication by a constant use the type of the other operand.
11871 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
11873 PR rtl-optimization/49145
11874 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
11876 2011-06-06 Jakub Jelinek <jakub@redhat.com>
11879 * dwarf2out.c (native_encode_initializer): Decrement count in each
11883 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
11884 non-MODE_INT modes.
11887 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
11888 if stmt folded into nothing.
11889 * tree-inline.c (fold_marked_statements): If a builtin at the end of
11890 a bb folded into nothing, just update cgraph edges and move to next bb.
11891 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
11892 to be NULL. Don't compute count and frequency if new_call is NULL.
11894 2011-06-04 Diego Novillo <dnovillo@google.com>
11896 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
11897 (cgraph.o): Likewise.
11898 (cgraphunit.o): Likewise.
11899 * cgraphunit.c: Include lto-streamer.h
11900 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
11902 * lto-streamer-in.c (unpack_value_fields): Call
11903 streamer_hooks.unpack_value_fields if set.
11904 (lto_materialize_tree): For unhandled nodes, first try to
11905 call lto_streamer_hooks.alloc_tree, if it exists.
11906 (lto_input_ts_decl_common_tree_pointers): Move reading of
11907 DECL_INITIAL to lto_streamer_read_tree.
11908 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
11909 (lto_streamer_read_tree): New.
11910 (lto_reader_init): Rename from lto_init_reader.
11911 Move initialization code to lto/lto.c.
11912 * lto-streamer-out.c (pack_value_fields): Call
11913 streamer_hooks.pack_value_fields if set.
11914 (lto_output_tree_ref): For tree nodes that are not normally indexable,
11915 call streamer_hooks.indexable_with_decls_p before giving up.
11916 (lto_output_ts_decl_common_tree_pointers): Move handling
11917 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
11918 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
11919 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
11920 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
11921 (lto_streamer_write_tree): New.
11922 (lto_output): Call lto_streamer_init directly.
11923 (lto_writer_init): Remove.
11924 * lto-streamer.c (streamer_hooks): New.
11925 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
11926 instead of lto_preload_common_nodes.
11927 (lto_is_streamable): Move from lto-streamer.h
11928 (lto_streamer_hooks_init): New.
11929 (streamer_hooks): New.
11930 (streamer_hooks_init): New.
11931 * lto-streamer.h (struct output_block): Forward declare.
11932 (struct lto_input_block): Likewise.
11933 (struct data_in): Likewise.
11934 (struct bitpack_d): Likewise.
11935 (struct streamer_hooks): Declare.
11936 (streamer_hooks): Declare.
11937 (lto_streamer_hooks_init): Declare.
11938 (lto_streamer_write_tree): Declare.
11939 (lto_streamer_read_tree): Declare.
11940 (streamer_hooks_init): Declare.
11941 (lto_is_streamable): Move to lto-streamer.c
11943 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11945 * longlong.h (smul_ppmm): The resulting register pair contains the
11946 higher order word first.
11948 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11950 PR tree-optimization/46728
11951 * builtins.c (powi_table): Remove.
11952 (powi_lookup_cost): Remove.
11953 (powi_cost): Remove.
11954 (expand_powi_1): Remove.
11955 (expand_powi): Remove.
11956 (expand_builtin_pow_root): Remove.
11957 (expand_builtin_pow): Remove.
11958 (expand_builtin_powi): Eliminate handling of constant exponent.
11959 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
11961 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
11963 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
11965 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
11967 * dce.c (reset_unmarked_insns_debug_uses): New.
11968 (delete_unmarked_insns): Skip debug insns.
11969 (prescan_insns_for_dce): Likewise.
11970 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
11971 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
11972 active reg can be found.
11973 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
11974 (convert_regs_1): Use it.
11976 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
11978 * tree-pretty-print.c (dump_function_header): Add flags.
11979 Don't dump decl_uid with nouid.
11980 * tree-pretty-print.h (dump_function_header): Adjust.
11981 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
11982 * passes.c (pass_init_dump_file): Pass dump_flags on.
11983 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
11985 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
11988 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
11990 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
11992 PR tree-optimization/49243
11993 * calls.c (setjmp_call_p): Also check if fndecl has the
11994 returns_twice attribute.
11996 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11998 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
12001 2011-06-06 Richard Henderson <rth@redhat.com>
12002 Georg-Johann Lay <avr@gjlay.de>
12005 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
12007 * config/avr/avr.md ("insv"): New insn expander.
12008 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
12009 "*insv.not.io", "*insv.reg"): New insns.
12011 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
12014 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
12015 to nonimmediate_operand from memory_operand for the operand that is to
12016 be forced to memory by the expander. Lose the constraints.
12018 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
12020 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
12021 EH return when delayed branches are disabled.
12023 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
12025 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
12026 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
12028 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
12029 Simplify MODE_V1DF and MODE_V2SF handling.
12030 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
12031 Simplify MODE_SF handling.
12033 2011-06-04 Jan Hubicka <jh@suse.cz>
12035 PR tree-optimization/48893
12036 PR tree-optimization/49091
12037 PR tree-optimization/49179
12038 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
12041 2011-06-04 Jan Hubicka <jh@suse.cz>
12044 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
12047 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
12049 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
12051 2011-06-04 Jakub Jelinek <jakub@redhat.com>
12054 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
12055 to be strictly smaller than 1 << shiftcount.
12057 2011-06-04 Jan Hubicka <jh@suse.cz>
12059 PR tree-optimize/48929
12060 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
12061 of empty predicate.
12063 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
12066 * calls.c (emit_call_1): Prefer the __builtin declaration of
12069 2011-06-03 Diego Novillo <dnovillo@google.com>
12071 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
12072 (lto_input_tree_pointers): Likewise.
12073 * lto-streamer-out.c (pack_value_fields): Likewise.
12074 (lto_output_tree_pointers): Likewise.
12075 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
12076 and OPTIMIZATION_NODE.
12078 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12080 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
12081 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
12082 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
12083 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
12084 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
12085 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
12086 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
12087 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
12088 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
12089 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
12090 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
12091 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
12092 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
12093 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
12094 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
12095 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
12096 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
12097 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
12098 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
12099 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
12100 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
12101 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
12102 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
12103 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
12104 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
12105 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
12106 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
12107 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
12108 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
12109 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
12110 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
12111 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
12112 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
12113 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
12114 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
12115 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
12116 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
12117 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
12118 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
12119 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
12120 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
12121 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
12122 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
12123 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
12124 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
12125 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
12126 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
12127 * system.h (MD_UNWIND_SUPPORT): Poison.
12128 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
12129 * doc/tm.texi: Regenerate.
12130 * unwind-dw2.c: Include md-unwind-support.h instead of
12132 * config/ia64/unwind-ia64.c: Likewise.
12133 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
12135 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
12137 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
12139 2011-06-03 Richard Henderson <rth@redhat.com>
12140 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12142 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
12143 (sigill_hdlr): Correct insn, insn size.
12144 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
12146 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12148 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
12150 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
12151 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
12152 * config/mips/t-iris: Remove.
12153 * config/mips/t-irix6: New file.
12154 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
12156 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12158 * Makefile.in (LIB2ADDEHDEP): Remove.
12159 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
12160 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
12161 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
12162 * config/t-darwin (LIB2ADDEHDEP): Remove.
12163 * config/t-freebsd (LIB2ADDEHDEP): Remove.
12164 * config/t-linux (LIB2ADDEHDEP): Remove.
12166 2011-06-03 Diego Novillo <dnovillo@google.com>
12168 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
12169 (lto_register_var_decl_in_symtab): Likewise.
12170 (lto_register_function_decl_in_symtab): Likewise.
12171 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
12172 logic to uniquify_nodes.
12174 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12176 * config/alpha/t-osf5: Remove.
12177 * config/alpha/t-osf-pthread: Remove.
12178 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
12179 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
12181 2011-06-03 Julian Brown <julian@codesourcery.com>
12183 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
12184 (strongarm1110): Use strongarm tuning.
12185 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
12186 * config/arm/arm.c (arm_strongarm_tune): New.
12187 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
12188 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
12189 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
12190 setting, using previous defaults or 1 for Cortex-A5.
12191 (arm_option_override): Set max_insns_skipped from current tuning.
12193 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
12195 * doc/install.texi (Options specification): Document --with-specs.
12197 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12199 * config/arm/neon.md (orndi3_neon): Actually split it.
12201 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
12203 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
12204 * var-tracking.c (reverse_op): Limite recurse depth to 5.
12206 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
12209 * target.def (delay_sched2, delay_vartrack): New.
12210 * doc/tm.texi.in: Update.
12211 * doc/tm.texi: Rebuild.
12212 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
12213 * var-tracking.c (gate_handle_var_tracking): Likewise.
12214 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
12215 (bfin_flag_var_tracking): Drop.
12216 (output_file_start): Don't save and override flag_var_tracking.
12217 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
12218 (bfin_reorg): Test original variables.
12219 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
12220 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
12221 (ia64_flag_var_tracking): Drop.
12222 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
12223 (ia64_file_start): Don't save and override flag_var_tracking.
12224 (ia64_override_options_after_change): Ditto
12225 flag_schedule_insns_after_reload.
12226 (ia64_reorg): Test original variables.
12227 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
12228 (picochip_flag_var_tracking): Drop.
12229 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
12230 (picochip_option_override): Don't save and override
12231 flag_schedule_insns_after_reload.
12232 (picochip_asm_file_start): Ditto flag_var_tracking.
12233 (picochip_reorg): Test original variables.
12234 * config/spu/spu.c (spu_flag_var_tracking): Drop.
12235 (TARGET_DELAY_VARTRACK): Define.
12236 (spu_var_tracking): New.
12237 (spu_machine_dependent_reorg): Call it.
12238 (asm_file_start): Don't save and override flag_var_tracking.
12240 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
12243 * config/sh/predicates.md (general_movsrc_operand): Return 0
12244 for memory and memory subreg of which address is an invalid
12245 indexed address for QI and HImode.
12246 (general_movdst_operand): Likewise.
12248 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
12250 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
12251 edges only, when there is a non-local label in the function.
12252 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
12254 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
12256 * config/i386/constraints.md (Y3): New register constraint.
12257 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
12258 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
12259 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
12260 *sse2_interleave_lowv2df.
12262 2011-06-02 Julian Brown <julian@codesourcery.com>
12264 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
12265 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
12266 (arm_cortex_a5_tune): New.
12268 2011-06-02 Julian Brown <julian@codesourcery.com>
12270 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
12271 * config/arm/arm.c (arm_default_branch_cost): New.
12272 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
12273 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
12274 (arm_fa726_tune): Set branch_cost field using
12275 arm_default_branch_cost.
12276 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
12277 current_tune structure.
12278 * dojump.c (tm_p.h): Include file.
12280 2011-06-02 Julian Brown <julian@codesourcery.com>
12282 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
12284 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
12285 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
12286 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
12288 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
12289 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
12290 (arm_fa726te_tune): Add prefer_constant_pool setting.
12291 (arm_v6t2_tune, arm_cortex_tune): New.
12292 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
12293 prefer_constant_pool setting.
12295 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
12297 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
12299 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
12300 (*movdf_internal) <case 6,7,8>: Ditto.
12302 * config/i386/constraints.md (Y4): New register constraint.
12303 * config/i386/sse.md (vec_set<mode>_0): Merge with
12304 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
12305 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
12306 *vec_extractv2di_1_sse.
12307 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
12308 and *vec_concatv2di_rex64_sse.
12310 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
12313 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
12314 of cgraph_local_info for null before attempting to use it.
12316 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
12318 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
12319 (current_function_dynamic_alloc_count): Delete.
12320 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
12321 (expand_builtin_nonlocal_goto): Remove obsolete comment.
12322 (expand_builtin_update_setjmp_buf): Remove dead code.
12323 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
12324 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
12326 * function.c (instantiate_virtual_regs): Likewise.
12327 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
12328 for a block with a single abnormal incoming edge.
12329 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
12330 (SETJMP_VIA_SAVE_AREA): Delete.
12331 * config/sparc/sparc-protos.h (load_got_register): Declare.
12332 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
12333 (load_got_register): Make global.
12334 (sparc_frame_pointer_required): Add 'static'.
12335 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
12336 (sparc_builtin_setjmp_frame_value): New function.
12337 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
12338 (save_stack_nonlocal): New expander.
12339 (restore_stack_nonlocal): Likewise.
12340 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
12341 (nonlocal_goto_internal): New insn.
12342 (goto_handler_and_restore): Delete.
12343 (builtin_setjmp_setup): Likewise.
12344 (do_builtin_setjmp_setup): Likewise.
12345 (setjmp): Likewise.
12346 (builtin_setjmp_receiver): New expander.
12348 2011-06-01 David Li <davidxl@google.com>
12350 PR middle-end/49261
12351 * tree-pretty-print.c (dump_function_header): Format cleanup.
12353 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
12356 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
12357 needed when original operands are used for msw_skip comparison.
12359 2011-06-01 Jakub Jelinek <jakub@redhat.com>
12362 * var-tracking.c (add_uses, add_stores): Don't call
12363 cselib_subst_to_values on ENTRY_VALUE.
12365 2011-06-01 Diego Novillo <dnovillo@google.com>
12367 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
12368 output_record_start with LTO_null instead of output_zero.
12369 (lto_output_ts_binfo_tree_pointers): Likewise.
12370 (lto_output_tree): Likewise.
12371 (output_eh_try_list): Likewise.
12372 (output_eh_region): Likewise.
12373 (output_eh_lp): Likewise.
12374 (output_eh_regions): Likewise.
12375 (output_bb): Likewise.
12376 (output_function): Likewise.
12377 (output_unreferenced_globals): Likewise.
12378 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
12379 instead of NUM_TREE_CODES.
12380 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
12381 (lto_output_int_in_range): Change << to >> when shifting VAL.
12383 2011-06-01 Diego Novillo <dnovillo@google.com>
12385 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
12386 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
12388 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
12391 * optabs.h (valid_multiword_target_p): Declare.
12392 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
12393 doing multi-word operations.
12394 * optabs.c (expand_binop): Likewise.
12395 (expand_doubleword_bswap): Likewise.
12396 (expand_absneg_bit): Likewise.
12397 (expand_unop): Likewise.
12398 (expand_copysign_bit): Likewise.
12399 (multiword_target_p): New function.
12401 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
12403 PR rtl-optimization/48830
12404 PR rtl-optimization/48808
12405 PR rtl-optimization/48792
12406 * reload.c (push_reload): Check contains_reg_of_mode.
12407 * reload1.c (strip_paradoxical_subreg): New function.
12408 (gen_reload_chain_without_interm_reg_p): Use it to handle
12409 paradoxical subregs.
12410 (emit_output_reload_insns, gen_reload): Likewise.
12412 2011-06-01 David Li <davidxl@google.com>
12414 * predict.c : Change pass name
12417 * tree-profile.c: Ditto.
12420 2011-06-01 David Li <davidxl@google.com>
12422 * tree-pretty-print.c (dump_function_header): New function.
12423 * final.c (rest_of_clean_state): Use header dumper.
12424 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
12425 * passes.c (pass_init_dump_file): Use header dumper.
12427 2011-06-01 Jakub Jelinek <jakub@redhat.com>
12429 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
12430 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
12431 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
12433 (mem_loc_descriptor): Use them.
12435 * var-tracking.c (create_entry_value): New function.
12436 (vt_add_function_parameter): Use it.
12438 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12440 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
12441 Include <signal.h>, <ucontext.h>.
12442 (sigill_caught): Define.
12443 (sigill_hdlr): New function.
12444 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
12445 insns can be executed.
12446 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
12447 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
12449 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12451 * config/t-slibgcc-darwin: Move to ...
12452 * config/t-slibgcc-dummy: ... this. Clarify comments.
12453 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
12454 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
12455 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
12456 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
12457 Remove i386/t-crtstuff from tmake_file.
12458 (i[34567]86-*-solaris2*): Remove t-svr4,
12459 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
12461 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
12462 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
12463 sparc/t-crtfm from tmake_file.
12464 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
12465 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
12466 Remove extra_parts.
12467 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
12468 * config/i386/t-nwld (SHLIB_LINK): Remove.
12469 * config/i386/t-rtems-i386: Rename to ...
12470 * config/i386/t-rtems: ... this.
12471 ($(T)crti.o, $(T)crtn.o): Remove.
12472 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
12473 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
12474 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
12475 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
12476 EXTRA_MULTILIB_PARTS): Remove.
12477 * config/sparc/t-sol2-64: Likewise.
12478 * config/sparc/t-sol2: Remove.
12479 * config/sparc/t-crtin: Remove.
12480 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
12481 * config/i386/gmon-sol2.c: Remove.
12482 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
12483 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
12484 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
12485 * config/i386/sol2-gc1.asm: Remove.
12486 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
12487 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
12488 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
12489 * config/t-slibgcc-sld: Remove.
12491 2011-06-01 Jakub Jelinek <jakub@redhat.com>
12493 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
12494 base_type_for_mode with op_mode instead of mode.
12496 2011-06-01 Paul Brook <paul@cpodesourcery.com>
12498 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
12500 * config/arm/arm-tune.md: Regenerate.
12501 * config/arm/arm-tables.opt: Regenerate.
12502 * config/arm/arm.c (FL_DIV): Rename...
12503 (FL_THUMB_DIV): ... to this.
12504 (FL_ARM_DIV): Define.
12505 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
12506 (arm_arch_hwdiv): Remove.
12507 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
12508 (arm_issue_rate): Add cortexr5.
12509 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
12510 __ARM_ARCH_EXT_IDIV__.
12511 (TARGET_IDIV): Define.
12512 (arm_arch_hwdiv): Remove.
12513 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
12514 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
12515 (divsi3, udivsi3): New patterns.
12516 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
12517 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
12519 2011-06-01 Martin Jambor <mjambor@suse.cz>
12521 * ipa-utils.c (ipa_dfs_info): New field scc_no.
12522 * ipa-utils.c (searchc): Set scc_no.
12524 2011-06-01 Martin Jambor <mjambor@suse.cz>
12526 * ipa-utils.c (searchc_env): New field allow_overwritable.
12527 (searchc): do not ignore edges to overwritable nodes if indicated
12528 by env->allow_overwritable.
12529 (ipa_reduced_postorder): Set env.allow_overwritable.
12531 2011-06-01 Richard Guenther <rguenther@suse.de>
12533 * tree.c (free_lang_data): Do not reset boolean_type_node nor
12535 * lto-streamer.c (lto_record_common_node): Take node pointer,
12536 do not register types.
12537 (lto_preload_common_nodes): Explicitly skip preloading nodes
12538 that differ between frontends.
12540 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
12542 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
12545 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
12547 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
12548 parameter value for dump. Dump cost on outermost call only.
12549 (rs6000_memory_move_cost): Dump cost on outermost call only.
12551 2011-05-31 Jakub Jelinek <jakub@redhat.com>
12553 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
12554 DW_OP_GNU_convert ops.
12556 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
12557 cselib_preserve_constants.
12558 (cselib_lookup_1): If cselib_preserve_constants,
12559 a new VALUE is being created for REG and there is a VALUE for the
12560 same register in wider mode, add another loc with lowpart SUBREG of
12562 (cselib_subst_to_values): Handle ENTRY_VALUE.
12563 * var-tracking.c (replace_expr_with_values): Return NULL for
12565 * dwarf2out.c (convert_descriptor_to_signed): New function.
12566 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
12567 instead of two shifts.
12568 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
12569 the right mode if needed.
12570 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
12571 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
12572 convert_descriptor_to_signed.
12573 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
12574 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
12577 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
12579 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
12581 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
12582 of X87MODEI12 and SWI48x instead of SSEMODEI24.
12583 (SWI248x): New mode iterator, rename from X87MODEI.
12584 (X87MODEI): Remove mode iterator.
12585 (X87MODEI12): Ditto.
12586 (SSEMODEI24): Ditto.
12588 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
12590 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
12591 * doc/invoke.texi: Document max-vartrack-expr-depth.
12592 * var-tracking.c (EXPR_DEPTH): New.
12593 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
12595 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
12597 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
12598 * config/i386/sse.md: Add n to negated FMA pattern names.
12600 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
12602 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
12604 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
12606 * gengtype-state.c (read_state_params_structs): Initialize previous.
12608 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
12610 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
12611 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
12613 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
12615 * config/i386/i386.md (*movtf_internal): Avoid allocating general
12616 registers. Penalize F*r->o alternative to prevent partial memory
12617 stalls. Slightly penalize *roF->*r alternative. Generate SSE
12618 CONST_DOUBLE immediates when optimizing function for size. Do not move
12619 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
12620 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
12621 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
12622 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
12624 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
12626 (fp_register_operand splitters): Use fp_register_operand
12627 constraint. Do not use FP_REG_P in insn condition.
12628 (any_fp_register_operand splitters): Use any_fp_register_operand
12629 constraint. Do not use ANY_FP_REG_P in insn condition.
12631 2011-05-31 Jan Hubicka <jh@suse.cz>
12633 * cgraph.h (cgraph_inline_failed_t): Give enum a name
12634 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
12635 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
12636 (lto_output_edge): Use output_enum and var_len_unsigned.
12637 (lto_output_varpool_node): Likewise.
12638 (input_overwrite_node): Do not take resolution parameter;
12639 extract it from a bitpack.
12640 (input_node): Do not read resolution; use input_enum and
12642 (input_varpool_node): Likewise.
12643 (input_edge): Likewise.
12644 (input_cgraph_1): Likewise.
12646 2011-05-31 Richard Guenther <rguenther@suse.de>
12648 * gimple.c (gimple_register_canonical_type): Do not register
12649 any types via gimple_register_type.
12651 2011-05-31 Jan Hubicka <jh@suse.cz>
12653 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
12656 2011-05-31 Jakub Jelinek <jakub@redhat.com>
12658 PR rtl-optimization/49235
12659 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
12660 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
12662 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
12664 PR tree-optimization/49093
12665 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
12668 2011-05-31 Dodji Seketeli <dodji@redhat.com>
12671 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
12672 for concrete functions containing the code of cloned functions.
12674 2011-05-31 Richard Guenther <rguenther@suse.de>
12676 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
12678 (forward_propagate_into_comparison_1): ... this.
12679 (forward_propagate_comparison): Rename to ...
12680 (forward_propagate_into_comparison): ... this. Split out
12681 real forward propagation code to ...
12682 (forward_propagate_comparison): ... this.
12683 (forward_propagate_into_gimple_cond): Remove looping.
12684 (forward_propagate_into_cond): Likewise.
12685 (simplify_not_neg_expr): Return whether we have done something.
12686 (simplify_gimple_switch): Likewise.
12687 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
12688 (ssa_forward_propagate_and_combine): ... this. Re-structure
12689 to do a forward forward-propagation walk on BBs and a backward
12690 stmt combining walk on BBs. Consistently re-scan changed statements.
12691 (pass_forwprop): Adjust.
12693 2011-05-30 Ian Lance Taylor <iant@google.com>
12695 * godump.c (go_format_type): Correct length of name added to
12696 obstack for anonymous field.
12698 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
12701 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
12702 part of the second operand is 0.
12704 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
12706 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
12707 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
12708 to memory for !TARGET_MEMORY_MISMATCH_STALL.
12709 (*movdf_internal_rex64): Do not penalize F->r alternative.
12710 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
12711 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
12712 when optimizing function for size. Do not move CONST_DOUBLEs
12713 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
12714 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
12715 SUBREGs. Do not check for MEM_P operands in the insn condition,
12716 check for ANY_FP_REGNO_P instead.
12717 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
12718 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
12719 function for speed.
12720 * config/i386/i386.c (ix86_option_override_internal): Do not
12721 set TARGET_INTEGER_DFMODE_MOVES here.
12723 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
12726 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
12728 2011-05-30 Jakub Jelinek <jakub@redhat.com>
12730 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
12731 DW_TAG_rvalue_reference_type even for
12732 -gdwarf-4 -fno-debug-types-section.
12734 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12736 PR tree-optimization/46728
12737 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
12738 (build_and_insert_binop): New.
12739 (gimple_expand_builtin_pow): Reorder args for
12740 build_and_insert_call; use build_and_insert_binop; add more
12741 optimizations for fractional exponents.
12743 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
12748 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
12750 * tree.h (struct tree_identifier): Inherit from tree_typed, not
12752 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
12753 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
12754 TS_BASE instead of TS_COMMON.
12755 * varasm.c (assemble_name): Remove assert.
12757 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
12759 * config.gcc: Keep obselete list sorted.
12761 2011-05-30 Jakub Jelinek <jakub@redhat.com>
12762 Eric Botcazou <ebotcazou@adacore.com>
12764 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
12765 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
12766 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
12767 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
12768 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
12770 2011-05-30 Richard Guenther <rguenther@suse.de>
12772 * gimple.c (gimple_types_compatible_p_1): Compare record
12773 and union type members properly.
12775 2011-05-30 Richard Guenther <rguenther@suse.de>
12777 PR tree-optimization/49210
12778 * ipa-split.c (split_function): Care for the case where the call
12779 result is not trivially convertible to the result holding variable.
12781 2011-05-30 Richard Guenther <rguenther@suse.de>
12783 PR tree-optimization/49218
12784 * tree-vrp.c (adjust_range_with_scev): Properly check whether
12787 2011-05-30 Richard Guenther <rguenther@suse.de>
12789 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
12790 New function split out from ...
12791 (forward_propagate_into_gimple_cond): ... here. Adjust.
12792 (forward_propagate_into_cond): Likewise.
12793 (forward_propagate_comparison): Also propagate into
12794 comparisons on assignment RHS. Change return value to
12795 behave similar to forward_propagate_into_cond.
12796 (tree_ssa_forward_propagate_single_use_vars): Handle
12797 strict-overflow warnings properly for forward_propagate_comparison.
12799 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12801 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
12802 from plugin linker.
12803 * configure: Regenerate.
12805 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
12807 PR tree-optimization/49199
12808 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
12809 non-reduction operands are either defined in the loop or by induction.
12811 2011-05-29 Xinliang David Li <davidxl@google.com>
12813 * opts-global.c (handle_common_deferred_options): Handle new options.
12814 * passes.c (register_one_dump_file): Call register_pass_name.
12815 (execute_one_pass): Check explicit enable/disable flag.
12816 (passr_hash): New function.
12818 (register_pass_name): Ditto.
12819 (get_pass_by_name): Ditto.
12820 (pass_hash): Ditto.
12822 (enable_pass): Ditto.
12823 (disable_pass): Ditto.
12824 (is_pass_explicitly_enabled_or_disabled): Ditto.
12826 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
12828 * config/i386/i386.md (*movoi_internal_avx): Use
12829 standard_sse_constant_opcode for alternative 0.
12830 (*movti_internal_sse): Ditto.
12831 (*movti_internal_rex64): Use standard_sse_constant_opcode for
12833 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
12834 sselog1 type moves.
12835 (*movsi_internal): Ditto.
12836 (*movdi_internal): Ditto. Add ssecvt type moves.
12838 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
12841 * rtlanal.c (simplify_subreg_regno): Adjust comment.
12843 2011-05-29 Jakub Jelinek <jakub@redhat.com>
12845 PR rtl-optimization/49095
12846 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
12847 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
12849 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
12852 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
12853 recurse_p argument. Only follow register copies if it is set,
12854 and prevent mips_find_pic_call_symbol from recursing.
12855 (mips_find_pic_call_symbol): Add a recurse_p argument.
12856 Pass it to mips_pic_call_symbol_from_set.
12857 (mips_annotate_pic_calls): Update accordingly.
12859 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
12861 * emit-rtl.c (try_split): Use a loop to search for
12862 NOTE_INSN_CALL_ARG_LOCATIONs.
12864 2011-05-29 Richard Guenther <rguenther@suse.de>
12866 PR tree-optimization/49217
12867 * ipa-pure-const.c (propagate_pure_const): Fix typos.
12869 2011-05-28 Jan Hubicka <jh@suse.cz>
12871 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
12873 (string_slot_free): Remove
12874 (create_output_block): Initialize obstack.
12875 (destroy_output_block): Free obstack.
12876 (lto_string_index): Add PERSISTENT parameter; do not duplicate
12877 the string unless it needs to be added into the hash.
12878 (lto_output_string_with_length): Add persistent attribute;
12879 handle NULL strings.
12880 (lto_output_string): Add PERSISTENT parameter.
12881 (output_string_cst, output_identifier): Simplify.
12882 (lto_output_location_bitpack): Update.
12883 (lto_output_builtin_tree): Update.
12884 * lto-streamer.h (struct output_block): Add obstack.
12885 (lto_output_string, lto_output_string_with_length): Remove
12886 declarations; functions are static now.
12888 2011-05-28 Jan Hubicka <jh@suse.cz>
12890 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
12891 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
12892 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
12893 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
12894 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
12895 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
12896 unpack_ts_decl_with_vis_value_fields,
12897 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
12898 lto_get_builtin_tree): Use enum and variable length i/o.
12899 * basic-block.h (profile_status_d): Add PROFILE_LAST.
12900 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
12902 (bp_pack_enum, bp_unpack_enum): New macros.
12904 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
12906 * genrecog.c: Remove redundant forward declarations.
12908 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
12910 * config.gcc: Deprecate mips*-*-openbsd*.
12912 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
12915 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
12918 2011-05-27 Andrew Pinski <pinskia@gmail.com>
12920 PR middle-end/48981
12921 * gengtype.c (vec_prefix_type): New function.
12922 (note_def_vec): Use vec_prefix_type and change the length
12923 attribute to be based on the prefix.
12924 * vec.c: Include coretypes.h before vec.h.
12925 (struct vec_prefix): Remove.
12926 (vec_gc_p_reserve): Change the offsetof to sizeof.
12927 (vec_gc_p_reserve_exact): Likewise.
12928 (vec_heap_p_reserve): Likewise.
12929 (vec_heap_p_reserve_exact): Likewise.
12930 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
12931 (vec_stack_p_reserve): Change the offsetof to sizeof.
12932 (vec_stack_p_reserve_exact): Likewise.
12933 * vec.h (struct vec_prefix): New struct definition.
12934 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
12935 (VEC_T_GTY(T,B)): Likewise.
12936 (DEF_VEC_FUNC_P(T)): Use prefix field.
12937 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
12938 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
12940 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12942 PR tree-optimization/46728
12943 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
12944 (powi_as_mults): Add gimple_set_location.
12945 (build_and_insert_call): New.
12946 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
12947 0.5, 0.25, 0.75, 1./3., or 1./6.
12949 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
12951 * doc/contrib.texi: Update copyright years.
12952 (Contributors): Add Zdenek Sojka.
12954 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
12956 * c-decl.c (c_push_function_context): Copy the current statement
12958 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
12959 (finish_struct): Call building_stmt_list_p instead of checking
12961 * c-parser.c (c_parser_postfix_expression): Likewise.
12962 * c-typeck.c (c_end_compound_stmt): Likewise.
12963 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
12964 * tree-iterator.c (stmt_list_cache): Change to a VEC.
12965 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
12966 (free_stmt_list): Likewise.
12967 * tree.h (struct tree_statement_list): Include typed_tree instead
12969 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
12970 as TS_TYPED instead of TS_COMMON.
12972 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12973 Uros Bizjak <ubizjak@gmail.com>
12975 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
12976 (HAVE_AS_IX86_TLSGDPTL): Define.
12977 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
12978 (HAVE_AS_IX86_TLSLDMPLT): Define.
12979 * configure: Regenerate.
12980 * config.in: Regenerate.
12981 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
12982 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
12983 TARGET_SUN_TLS, use @tlsgdplt or @plt.
12984 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
12985 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
12986 @tlsldmplt or @plt.
12987 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
12989 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
12991 * sched-int.h (struct _haifa_deps_insn_data): New members cond
12993 (INSN_COND, INSN_REVERSE_COND): New macros.
12994 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
12996 (sched_get_condition_with_rev): Cache the results, and look them up
12998 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
12999 are clobbered by the current insn.
13000 * target.def (exposed_pipline): New sched data hook.
13001 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
13002 * doc/tm.texi: Regenerate.
13004 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13006 PR tree-optimization/49170
13007 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
13010 2011-05-27 Richard Guenther <rguenther@suse.de>
13012 PR middle-end/49189
13013 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
13016 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
13018 * haifa-sched.c (sched_scan_info): Remove.
13019 (schedule_block): Call sched_extend_luids rather than sched_init_luids
13021 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
13023 (sched_scan): Remove.
13024 (sched_extend_luids): Renamed from luids_extend_insn and no longer
13025 static. All callers changed.
13026 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
13027 static. All callers changed.
13028 (sched_init_luids): Remove all arguments except the first. All
13029 callers changed. Don't use sched_scan.
13030 (haifa_init_h_i_d): Likewise.
13031 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
13032 manually rather than using sched_init_luids. Likewise with
13033 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
13034 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
13035 rather than sched_init_luids with NULL args.
13036 * sel-sched-ir.c (new_insns): Remove variable.
13037 (sched_scan): New static function, previously in haifa-sched.c. Remove
13038 all arguments but the first two; all callers changed.
13039 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
13040 rather than sched_init_luids.
13041 (sel_init_bbs): Remove second argument. All callers changed.
13042 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
13043 with NULL arguments.
13044 (create_insn_rtx_from_pattern): Likewise.
13045 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
13046 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
13047 (sched_init_insn_luid, sched_extend_luids): Declare.
13048 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
13051 2011-05-27 Richard Guenther <rguenther@suse.de>
13053 PR middle-end/49177
13054 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
13055 A CMP B ? (T) true : (T) false for non-integral types T again.
13057 2011-05-27 Jan Hubicka <jh@suse.cz>
13059 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
13060 so 0 means NULL string.
13061 (lto_output_string_with_length): ... here.
13062 (lto_output_string, output_string_cst, output_identifier): Update
13063 handling of NULL strings.
13064 (lto_output_location_bitpack): New function.
13065 (lto_output_location): Use it.
13066 (lto_output_tree_ref): Use output_record_start.
13067 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
13069 * lto-streamer-in.c (string_for_index): Break out from ...; offset
13071 (input_string_internal): ... here;
13072 (input_string_cst, input_identifier, lto_input_string): Update handling
13074 (lto_input_location_bitpack): New function
13075 (lto_input_location): Use it.
13076 (unpack_ts_type_common_value_fields): Pack align & alias in var len
13078 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
13079 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
13080 (bp_pack_value): Sanity check the value range.
13081 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
13083 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
13086 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
13088 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
13089 call_arg_location instructions down the floor.
13091 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
13093 PR rtl-optimization/49154
13094 * ira.c (setup_pressure_classes): Process class without sublcasses
13095 as a candidate for pressure classes.
13097 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
13099 PR rtl-optimization/48575
13100 * genrecog.c (position_type): New enum.
13101 (position): New structure.
13102 (decision): Use position structure instead of a string.
13103 (root_pos, peep2_insn_pos_list): New variables.
13104 (next_position, compare_positions): New functions.
13105 (new_decision): Use position structures instead of strings.
13106 (maybe_both_true): Likewise.
13107 (change_state): Likewise.
13108 (write_tree): Likewise.
13109 (make_insn_sequence): Likewise.
13111 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
13113 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
13114 TS_BASE instead of TS_COMMON.
13115 (find_decls_types_r): Check for TS_TYPED structure before looking at
13117 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
13119 (BLOCK_CHAIN): Use new chain field.
13121 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
13123 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
13124 moves expensive on Power7 also.
13126 2011-05-26 Richard Guenther <rguenther@suse.de>
13128 * fold-const.c (fold_unary_loc): Remove bogus code.
13130 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
13132 * tree.h (struct tree_identifier): Inherit from tree_typed, not
13134 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
13135 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
13136 TS_BASE instead of TS_COMMON.
13137 * varasm.c (assemble_name): Remove assert.
13139 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
13141 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
13143 * libgcc-std.ver: Delete file.
13145 2011-05-26 Richard Guenther <rguenther@suse.de>
13147 PR tree-optimization/48702
13148 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
13149 only when we know the base address is within bounds.
13150 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
13151 assume the base address of TARGET_MEM_REFs is in bounds.
13153 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13156 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
13157 declaration in TARGET_SOLARIS.
13159 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
13161 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
13162 The instruction is then expanded explicitly.
13163 (supported_compare): Callable instruction.
13164 (compare): Likewise.
13166 2011-05-26 Jakub Jelinek <jakub@redhat.com>
13169 * gimplify.c (shortcut_cond_r): Don't special case
13170 COND_EXPRs if they have void type on one of their arms.
13172 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
13174 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
13175 to reduce duplication, and to achieve a slightly more logical order
13178 2011-05-26 Jakub Jelinek <jakub@redhat.com>
13180 PR tree-optimization/49161
13181 * tree-vrp.c (struct case_info): New type.
13182 (compare_case_labels): Sort case_info structs instead of
13183 trees, and not primarily by CASE_LABEL uids but by
13184 label_for_block indexes.
13185 (find_switch_asserts): Put case labels into struct case_info
13186 array instead of TREE_VEC, adjust sorting, compare label_for_block
13187 values instead of CASE_LABELs.
13189 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13191 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
13192 ("orndi3_neon"): Likewise.
13193 ("bic<mode>3_neon"): Likewise.
13195 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
13197 PR tree-optimization/49038
13198 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
13199 Ensure at least one epilogue iteration if required by data
13200 accesses with gaps.
13201 * tree-vectorizer.h (struct _loop_vec_info): Add new field
13202 to mark loops that require peeling for gaps.
13203 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
13204 (vect_get_known_peeling_cost): Take peeling for gaps into
13206 (vect_transform_loop): Generate epilogue if required by data
13208 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
13209 loop as requiring an epilogue if there are gaps in the end of
13212 2011-05-25 Ian Lance Taylor <iant@google.com>
13214 * godump.c (go_format_type): Output the first field with a usable
13217 2011-05-25 Ian Lance Taylor <iant@google.com>
13219 * godump.c (go_format_type): Check for invalid type names, pointer
13220 target types, and struct field types.
13222 2011-05-25 Jason Merrill <jason@redhat.com>
13224 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
13226 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
13228 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
13230 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
13232 * config/i386/i386.md (*movqi_extv_1)): Put back
13233 "register_operand" check in "type" calculation.
13234 (*movqi_extzv_2): Likewise.
13236 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
13238 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
13240 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
13243 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
13244 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
13245 __divxc3, __divtc3): Wrap definitions in #ifndef.
13247 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
13250 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
13251 "register_operand" check and replace q_regs_operand with
13252 QIreg_operand in "type" calculation.
13253 (*movqi_extv_1): Likewise.
13254 (*movqi_extzv_2_rex64): Likewise.
13255 (*movqi_extzv_2): Likewise.
13257 * config/i386/predicates.md (QIreg_operand): New.
13259 2011-05-25 Richard Guenther <rguenther@suse.de>
13261 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
13262 type-based offset disambiguation, streamline MEM_REF and
13263 TARGET_MEM_REF handling.
13265 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
13267 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
13268 (bdesc_special_args): Add pause intrinsic.
13270 * config/i386/i386.md (UNSPEC_PAUSE): New.
13272 (*pause): Likewise.
13273 * config/i386/ia32intrin.h (__pause): Likewise.
13275 * doc/extend.texi (X86 Built-in Functions): Add documentation for
13278 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13280 PR tree-optimization/46728
13281 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
13282 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
13284 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
13286 * tree.h (struct tree_exp): Inherit from struct tree_typed.
13287 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
13288 instead of TS_COMMON.
13290 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
13292 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
13293 LIBGCC2_GNU_PREFIX is defined.
13295 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
13296 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
13297 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
13298 __clz_tab): Define using __N.
13299 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
13300 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
13301 * target.def (libfunc_gnu_prefix): New hook.
13302 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
13303 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
13304 * doc/tm.texi: Regenerate.
13305 * system.h (LIBGCC2_GNU_PREFIX): Poison.
13306 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
13308 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
13309 (init_optabs): Likewise for the bswap libfuncs.
13310 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
13312 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
13313 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
13314 * libgcc-std.ver: Remove.
13315 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
13316 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
13318 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
13319 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
13320 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
13321 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
13322 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
13323 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
13324 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
13325 * config/fixed-bit.h (FIXED_OP): Define differently depending on
13326 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
13327 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
13329 2011-05-25 Jan Hubicka <jh@suse.cz>
13331 * lto-streamer-out.c (output_record_start): Use lto_output_enum
13332 (lto_output_tree): Use output_record_start.
13333 * lto-streamer-in.c (input_record_start): Use lto_input_enum
13334 (lto_get_pickled_tree): Use input_record_start.
13335 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
13336 (lto_value_range_error): New function.
13337 * lto-streamer.h (lto_value_range_error): Declare.
13338 (lto_output_int_in_range, lto_input_int_in_range): New functions.
13339 (lto_output_enum, lto_input_enum): New macros.
13341 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
13343 * common.opt (flag_stack_usage_info): New variable.
13344 (-Wstack-usage): New option.
13345 * doc/invoke.texi (Warning options): Document -Wstack-usage.
13346 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
13347 <OPT_fstack_usage>: Likewise.
13348 * toplev.c (output_stack_usage): Handle -Wstack-usage.
13349 * calls.c (expand_call): Test flag_stack_usage_info variable instead
13350 of flag_stack_usage.
13351 (emit_library_call_value_1): Likewise.
13352 * explow.c (allocate_dynamic_stack_space): Likewise.
13353 * function.c (instantiate_virtual_regs ): Likewise.
13354 (prepare_function_start): Likewise.
13355 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
13356 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
13357 * config/arm/arm.c (arm_expand_prologue): Likewise.
13358 (thumb1_expand_prologue): Likewise.
13359 * config/avr/avr.c (expand_prologue): Likewise.
13360 * config/i386/i386.c (ix86_expand_prologue): Likewise.
13361 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
13362 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
13363 * config/mips/mips.c (mips_expand_prologue): Likewise.
13364 * config/pa/pa.c (hppa_expand_prologue): Likewise.
13365 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
13366 * config/s390/s390.c (s390_emit_prologue): Likewise.
13367 * config/sh/sh.c (sh_expand_prologue): Likewise.
13368 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
13369 * config/spu/spu.c (spu_expand_prologue): Likewise.
13371 2011-05-25 Richard Guenther <rguenther@suse.de>
13373 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
13374 (gimple_canonical_types_compatible_p): Likewise.
13376 2011-05-25 Jan Hubicka <jh@suse.cz>
13378 PR middle-end/49062
13379 * ipa.c (function_and_variable_visibility): Only add to same
13380 comdat group list if DECL_ONE_ONLY.
13382 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
13384 PR rtl-optimization/49014
13385 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
13387 2011-05-25 Jakub Jelinek <jakub@redhat.com>
13390 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
13392 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
13394 PR rtl-optimization/48757
13395 * ira-build.c (loop_with_eh_edge_p): Rename to
13396 loop_with_complex_edge_p, check edges on complexity, make function
13398 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
13401 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
13403 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
13404 force flag_ira_share_save_slots to 0.
13406 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
13408 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
13409 (vt_initialize): Set PROLOGUE_BB unconditionally.
13410 Add block comment about CFA_BASE_RTX machinery.
13411 Reset FP_CFA_OFFSET to -1 on all invalid paths.
13412 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
13414 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
13417 * c-parser.c (c_parser_objc_class_instance_variables): More robust
13418 parsing of syntax error in ObjC instance variable lists. In
13419 particular, avoid an infinite loop if there is a stray ']'.
13420 Updated error message.
13422 2011-05-24 Ian Lance Taylor <iant@google.com>
13424 * godump.c (go_define): Don't accept a string immediately after
13427 2011-05-24 Ian Lance Taylor <iant@google.com>
13429 * godump.c (struct godump_container): Add invalid_hash field.
13430 (go_format_type): Return false if type is found in invalid_hash.
13431 (go_output_typedef): Add invalid type to invalid_hash.
13432 (go_finish): Create and delete invalid_hash.
13434 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13436 PR tree-optimization/46728
13437 * tree-ssa-math-opts.c (powi_table): New.
13438 (powi_lookup_cost): New.
13440 (powi_as_mults_1): New.
13441 (powi_as_mults): New.
13442 (gimple_expand_builtin_powi): New.
13443 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
13444 (gate_cse_sincos): Remove sincos/cexp restriction.
13446 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13449 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
13451 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
13452 * mips-tdump.c: Likewise.
13454 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
13457 * config/i386/driver-i386.c (host_detect_local_cpu): Always
13458 add -mno-XXX. Handle FMA.
13460 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
13462 PR rtl-optimization/48633
13463 * ira-build.c (loop_with_eh_edge_p): New function.
13464 (mark_loops_for_removal): Use it.
13466 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
13468 PR rtl-optimization/48971
13469 * ira.c (setup_pressure_classes): Don't check register move cost
13470 for classes with one registers. Don't add pressure class if there
13471 is a pressure class with the same available hard registers.
13472 Check contains_reg_of_mode. Fix a typo in collecting
13473 temp_hard_regset. Ignore hard registers not belonging to a class.
13475 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
13478 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
13480 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
13481 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13483 PR gcov-profile/48845
13484 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
13486 2011-05-24 Richard Guenther <rguenther@suse.de>
13488 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
13489 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
13490 (gimple_types_compatible_p_1): Adjust.
13491 (iterative_hash_canonical_type): Do not bother about complete vs.
13493 (gimple_canonical_types_compatible_p): Likewise.
13495 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13497 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
13499 2011-05-24 Richard Guenther <rguenther@suse.de>
13502 * gimple.c (gimple_register_canonical_type): Revert
13504 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
13505 does not for a tree for the case where it matters. Cache
13506 pointer-type alias-sets.
13508 2011-05-24 Joseph Myers <joseph@codesourcery.com>
13510 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
13511 (OBJS): Remove options.o, opts-common.o and prefix.o.
13512 (OBJS-libcommon-target): New.
13513 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
13514 (BACKEND): Include libcommon-target.a.
13515 (MOSTLYCLEANFILES): Include libcommon-target.a.
13516 (libcommon-target.a): New.
13517 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
13520 2011-05-23 Joseph Myers <joseph@codesourcery.com>
13522 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
13523 parts of output shared with the driver.
13524 * optc-gen.awk: Don't generate parts of output not shared with the
13526 * opth-gen.awk: Remove GCC_DRIVER conditionals.
13527 * doc/options.texi (SourcerInclude): Mention options-save.c.
13528 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
13529 (OBJS): Add options-save.o.
13530 (options-save.c, options-save.o): New.
13531 (options.o): Update dependencies.
13532 (gcc-options.o): Remove.
13533 (mostlyclean): Remove options-save.c.
13535 2011-05-23 Jakub Jelinek <jakub@redhat.com>
13538 * dbxout.c: Include cgraph.h.
13539 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
13540 and without value expr, return NULL if no varpool node exists for
13541 it or if it is not needed.
13542 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
13545 * c-decl.c (start_decl): Convert expr to void_type_node.
13547 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
13549 PR rtl-optimization/48826
13550 * emit-rtl.c (try_split): When splitting a call that is followed
13551 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
13553 2011-05-23 Jakub Jelinek <jakub@redhat.com>
13555 * cfgexpand.c (expand_debug_expr): For unused non-addressable
13556 parameters passed in memory prefer using DECL_INCOMING_RTL over
13557 the pseudos it will be copied into.
13559 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
13562 * config/i386/i386.c (ix86_option_override_internal): Save the
13563 initial options after checking vzeroupper.
13565 2011-05-23 David Li <davidxl@google.com>
13567 PR tree-optimization/48988
13568 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
13569 Initialize has_valid_pred for each pred chain.
13571 2011-05-23 Richard Guenther <rguenther@suse.de>
13573 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
13574 (iterative_hash_gimple_type): Always hash type names.
13576 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
13578 * c-typeck.c (build_function_call_vec): Tweak call to
13579 check_function_arguments.
13581 2011-05-23 Richard Guenther <rguenther@suse.de>
13583 PR tree-optimization/49115
13584 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
13585 is not necessarily carried out, do not claim it kills the ref.
13586 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
13588 2011-05-23 Richard Guenther <rguenther@suse.de>
13590 PR middle-end/15419
13591 * builtins.c (fold_builtin_memory_op): Be less restrictive about
13592 what pointer types we accept for folding.
13594 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13596 * gthr-gnat.c: Remove.
13597 * gthr-gnat.h: Remove.
13598 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
13599 * config/t-freebsd (LIB2ADDEH): Likewise.
13600 * config/t-linux (LIB2ADDEH): Likewise.
13601 * config/t-sol2 (LIB2ADDEH): Likewise.
13602 * config/ia64/t-vms (LIB2ADDEH): Likewise.
13603 * configure.ac (target_thread_file): Remove gnat handling.
13604 * configure: Regenerate.
13605 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
13607 2011-05-23 Tristan Gingold <gingold@adacore.com>
13608 Eric Botcazou <ebotcazou@adacore.com>
13610 * gcov.c (create_file_names): If no object directory is specified,
13611 keep the directory of the file.
13613 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13615 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
13616 * configure: Regenerate.
13618 2011-05-23 Jakub Jelinek <jakub@redhat.com>
13620 PR middle-end/48973
13621 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
13622 failed and the comparison has a single bit signed type, use
13623 constm1_rtx instead of const1_rtx for true value.
13624 (do_store_flag): If ops->type is single bit signed type, disable
13625 signel bit test optimization and pass -1 instead of 1 as last
13626 parameter to emit_store_flag_force.
13628 2011-05-23 Tom de Vries <tom@codesourcery.com>
13631 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
13633 (infer_loop_bounds_from_undefined): Use new function.
13635 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
13637 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
13638 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
13639 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
13641 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
13643 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
13645 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
13646 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
13649 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
13651 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
13653 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
13655 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
13656 UNSPEC_MOVE_PIC pattern.
13658 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
13660 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
13661 (sparc-*-rtems*): Likewise.
13662 (sparc64-*-elf*): Likewise.
13663 (sparc64-*-rtems*): Likewise.
13664 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
13665 * config/sparc/t-crtin: New file.
13666 * config/sparc/t-sol2 (crti.o): Delete rule.
13667 (crtn.o): Likewise.
13668 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
13669 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
13670 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
13671 (ENDFILE_SPEC): Add crtn.o.
13673 2011-05-22 Tom de Vries <tom@codesourcery.com>
13675 PR middle-end/48689
13676 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
13677 CODE_CONTAINS_STRUCT (TS_COMMON).
13679 2011-05-22 Jakub Jelinek <jakub@redhat.com>
13681 PR middle-end/49029
13682 * expmed.c (extract_fixed_bit_field): Test whether target can be used
13683 only after deciding which mode to use.
13685 2011-05-22 Tom de Vries <tom@codesourcery.com>
13688 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
13689 for call to get_shiftadd_cost.
13691 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
13694 * config/i386/cpuid.h (bit_MMXEXT): New define.
13696 2011-05-22 Nick Clifton <nickc@redhat.com>
13698 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
13699 initialisation of non-existant args[2] element. Use args[] array
13700 not arg[] array to pass arguments to build_function_type_list.
13702 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
13704 PR tree-optimization/49087
13705 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
13707 2011-05-21 Jason Merrill <jason@redhat.com>
13710 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
13711 static storage duration.
13713 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
13715 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
13718 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
13720 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
13721 false if there are call-saved registers here...
13722 (sparc_can_use_return_insn_p): ...but here instead.
13723 (save_or_restore_regs): Fix thinko.
13724 (sparc_expand_prologue): Use current_function_is_leaf.
13725 (sparc_frame_pointer_required): Likewise.
13727 2011-05-21 Nick Clifton <nickc@redhat.com>
13730 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
13732 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
13734 * gengtype.c (walk_type): Implemented "atomic" GTY option.
13735 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
13737 2011-05-21 Joseph Myers <joseph@codesourcery.com>
13739 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
13740 * optc-gen.awk: Move common code to opt-read.awk.
13741 * opth-gen.awk: Likewise.
13742 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
13744 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
13746 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
13748 2011-05-20 Tom de Vries <tom@codesourcery.com>
13751 * tree-ssa-loop-ivopts.c: Include expmed.h.
13752 (get_shiftadd_cost): New function.
13753 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
13755 2011-05-20 Jakub Jelinek <jakub@redhat.com>
13758 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
13759 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
13761 2011-05-20 Joseph Myers <joseph@codesourcery.com>
13763 * Makefile.in: Update comment referring to $(OBJS-common).
13765 2011-05-20 Ian Lance Taylor <iant@google.com>
13767 * godump.c (go_output_typedef): Put enum constants in the macro
13768 hash table to avoid duplicate Go const definitions.
13770 2011-05-20 Joseph Myers <joseph@codesourcery.com>
13772 * Makefile.in (LIBDEPS): Add libcommon.a.
13774 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
13775 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
13776 pretty-print.o and version.o.
13777 (OBJS-libcommon): New.
13778 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
13779 (BACKEND): Add libcommon.a.
13780 (MOSTLYCLEANFILES): Likewise.
13781 (libcommon.a): New.
13782 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
13783 (cpp$(exeext)): Likewise.
13784 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
13785 pretty-print.o and input.o.
13786 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
13787 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
13788 (errors.o): Remove.
13789 (mips-tfile): Don't explicitly use version.o.
13790 (mips-tdump): Likewise.
13791 (gcov.o): Depend on $(DIAGNOSTIC_H).
13792 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
13793 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
13794 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
13795 * gcov-dump.c: Include intl.h and diagnostic.h.
13796 (main): Initialize diagnostics.
13797 * gcov.c: Include diagnostic.h.
13799 (main): Initialize diagnostics.
13800 * lto-wrapper.c: Include diagnostic.h.
13801 (main): Initialize diagnostics.
13803 2011-05-20 Michael Matz <matz@suse.de>
13805 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
13807 2011-05-20 Michael Matz <matz@suse.de>
13808 Richard Guenther <rguenther@suse.de>
13810 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
13811 use lto_streamer_cache_append directly instead of returning a VEC.
13812 (preload_common_node): Remove.
13813 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
13815 (lto_streamer_cache_create): Call lto_preload_common_nodes.
13817 2011-05-20 Richard Guenther <rguenther@suse.de>
13819 PR tree-optimization/49079
13820 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
13821 MEM_REFs correctly for the trailing array access detection.
13822 Special case constants the same way as decls for overall size
13825 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
13827 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
13828 argument expansion.
13830 2011-05-20 Jakub Jelinek <jakub@redhat.com>
13832 PR tree-optimization/49073
13833 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
13834 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
13835 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
13837 2011-05-20 Richard Guenther <rguenther@suse.de>
13839 PR middle-end/48849
13840 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
13841 of pointer types the same way the middle-end does.
13843 2011-05-20 Richard Guenther <rguenther@suse.de>
13845 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
13846 or pointer-to chains. Delay all fixup to uniquify_nodes.
13848 2011-05-19 Quentin Neill <quentin.neill@amd.com>
13850 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
13851 (fma4_fmaddsub): Likewise
13853 2011-05-19 Jan Hubicka <jh@suse.cz>
13855 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
13856 (GIMPLE_TYPE_PAIR_SIZE): New macro.
13857 (type_pair_cache): New static var.
13858 (lookup_type_pair): Use fixed sized custom hash; make inline.
13859 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
13860 calls of lookup_type_pair.
13861 (print_gimple_types_stats): Remove cache stats.
13862 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
13865 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
13867 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
13868 when TARGET_RDRND is active.
13869 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
13870 Generate dummy SImode target register when target is NULL.
13872 2011-05-19 Joseph Myers <joseph@codesourcery.com>
13874 * config/arm/arm-fpus.def: New.
13875 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
13877 * config/arm/arm-tables.opt: Regenerate.
13878 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
13879 (arm_option_override): Don't decode FPU name to string here.
13880 * config/arm/arm.opt (mfpu=): Use Enum.
13881 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
13882 Update dependencies.
13884 2011-05-19 Joseph Myers <joseph@codesourcery.com>
13886 * collect2.c: Include diagnostic.h.
13887 (fatal_perror, fatal, error, fancy_abort): Remove.
13888 (main): Set progname. Call xmalloc_set_program_name and
13889 diagnostic_initialize.
13890 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
13891 scan_libraries, resolve_lib_name): Call fatal_error instead of
13892 fatal and fatal_perror.
13893 * collect2.h (error, fatal, fatal_perror): Don't declare.
13894 * tlink.c: Include diagnostic-core.h.
13895 (recompile_files): Call fatal_error instead of fatal_perror.
13896 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
13897 pretty-print.o and input.o.
13898 (collect2.o, tlink.o): Update dependencies.
13900 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13902 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
13904 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13907 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
13908 COMDAT group syntax, both SPARC and x86 variants.
13909 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
13910 * configure: Regenerate.
13911 * config/sol2.h (TARGET_SOLARIS): Define.
13912 (PUSHSECTION_FORMAT): Remove.
13913 (SECTION_NAME_FORMAT): Define.
13914 * config/sol2.c: Include hashtab.h.
13915 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
13916 expansion, using SECTION_NAME_FORMAT.
13917 (solaris_comdat_htab): New variable.
13918 (struct comdat_entry): Define.
13919 (comdat_hash): New function.
13920 (comdat_eq): New function.
13921 (solaris_elf_asm_comdat_section): New function.
13922 (solaris_define_comdat_signature): New function.
13923 (solaris_code_end): New function.
13924 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
13925 (solaris_code_end): Declare.
13926 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
13927 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
13929 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
13930 Remove ATTRIBUTE_UNUSED.
13931 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
13932 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
13933 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
13934 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
13935 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
13936 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
13937 (PUSHSECTION_FORMAT): Remove.
13938 (SECTION_NAME_FORMAT): Redefine.
13940 2011-05-19 Kai Tietz <ktietz@redhat.com>
13942 * tree-cfg.c (verify_gimple_assign_binary): Barf on
13943 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
13944 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
13946 2011-05-19 Anatoly Sokolov <aesok@post.ru>
13947 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13949 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
13951 2011-05-19 Richard Guenther <rguenther@suse.de>
13953 PR middle-end/48985
13954 * tree-object-size.c (addr_object_size): If the pointed-to
13955 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
13957 2011-05-19 Richard Guenther <rguenther@suse.de>
13959 * gimple.c (gimple_types_compatible_p_1): Compare names of
13960 the types themselves.
13961 (iterative_hash_gimple_type): And hash them that way.
13962 (gimple_register_type_1): If we register a main variant properly
13963 initialize the leader to ourselves.
13965 2011-05-19 Tom de Vries <tom@codesourcery.com>
13968 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
13969 get_loop_invariant_expr_id.
13970 (get_loop_invariant_expr_id): Use get_expr_id.
13971 (parm_decl_cost): New function.
13972 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
13973 Improve bound cost estimation. Use different inv_expr_id for elim and
13976 2011-05-19 Tom de Vries <tom@codesourcery.com>
13979 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
13980 cost_base.cost == 0.
13982 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
13985 * config/i386/sse.md
13986 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
13989 2011-05-18 Jakub Jelinek <jakub@redhat.com>
13991 PR tree-optimization/49039
13992 * tree-vrp.c (extract_range_from_binary_expr): For
13993 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
13994 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
13996 2011-05-18 Tom de Vries <tom@codesourcery.com>
13999 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
14001 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
14003 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
14004 (*tls_global_dynamic_64): Ditto.
14005 (*tls_local_dynamic_base_32_gnu): Ditto.
14006 (*tls_local_dynamic_base_64): Ditto.
14007 (tls_initial_exec_64_sun): Ditto.
14009 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
14011 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
14012 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
14014 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
14015 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
14016 * config/bfin/bfin.c (bfin_cpus): Add bf592.
14017 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
14018 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
14019 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
14020 * config/bfin/elf.h (LIB_SPEC): Add bf592.
14022 2011-05-18 Joseph Myers <joseph@codesourcery.com>
14024 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
14025 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
14026 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
14027 target_thread_pointer, arm_structure_size_boundary, struct
14028 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
14029 struct abi_name, arm_all_abis): Remove.
14030 (arm_option_override) Don't process most enumerated option values here.
14031 Don't process target_fpe_name here. Work with integer not string for
14032 structure size boundary; use separate diagnostics for each case.
14033 * config/arm/arm.h (enum float_abi_type, enum
14034 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
14036 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
14037 arm_structure_size_boundary): Remove.
14038 * config/arm/arm.opt (mabi=): Use Enum and Init.
14039 (arm_abi_type): New Enum and EnumValue entries.
14040 (mfloat-abi=): Use Enum and Init.
14041 (float_abi_type): New Enum and EnumValue entries.
14042 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
14043 (mfp16-format=): Use Enum and Init.
14044 (arm_fp16_format_type): New Enum and EnumValue entries.
14045 (mstructure-size-boundary=): Use UInteger and Init.
14046 (mtp=): Use Enum and Init.
14047 (arm_tp_type): New Enum and EnumValue entries.
14049 2011-05-18 Richard Guenther <rguenther@suse.de>
14051 PR tree-optimization/49018
14052 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
14053 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
14054 gimple_has_side_effects.
14056 2011-05-18 Richard Guenther <rguenther@suse.de>
14058 * gimple.c (gimple_register_type_1): New function, split out from ...
14059 (gimple_register_type): ... here. Avoid infinite recursion.
14061 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
14063 PR tree-optimization/41881
14064 * tree-vectorizer.h (struct _loop_vec_info): Add new field
14065 reduction_chains along with a macro for its access.
14066 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
14067 (destroy_loop_vec_info): Free reduction chains.
14068 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
14069 (vect_is_slp_reduction): New function.
14070 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
14071 (vect_create_epilog_for_reduction): Support SLP reduction chains.
14072 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
14073 definition types for reduction chains.
14074 (vect_supported_load_permutation_p): Don't allow permutations for
14076 (vect_analyze_slp_instance): Support reduction chains.
14077 (vect_analyze_slp): Try to build SLP instance from reduction chains.
14078 (vect_get_constant_vectors): Handle reduction chains.
14079 (vect_schedule_slp_instance): Mark the first statement of the
14080 reduction chain as reduction.
14082 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
14084 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
14085 names for group elements access.
14086 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
14087 reduction chains as well. Remove data reference and interleaving
14088 related words from the fields names.
14089 * tree-vect-loop.c (vect_transform_loop): Use new names for group
14091 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
14092 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
14093 vect_update_interleaving_chain, vect_same_range_drs,
14094 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
14095 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
14096 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
14097 vect_analyze_group_access, vect_analyze_data_ref_access,
14098 vect_create_data_ref_ptr, vect_transform_strided_load,
14099 vect_record_strided_load_vectors): Likewise.
14100 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
14101 vect_model_load_cost, vectorizable_store, vectorizable_load,
14102 vect_remove_stores, new_stmt_vec_info): Likewise.
14103 * tree-vect-slp.c (vect_build_slp_tree,
14104 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
14106 2011-05-18 Richard Guenther <rguenther@suse.de>
14108 PR middle-end/48989
14109 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
14110 operand verification.
14111 (verify_gimple_assign_binary): Likewise.
14112 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
14113 to non-1-precision BOOLEAN_TYPEs.
14115 2011-05-18 Tom de Vries <tom@codesourcery.com>
14118 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
14120 2011-05-18 Jakub Jelinek <jakub@redhat.com>
14122 PR tree-optimization/49000
14123 * tree-ssa.c (execute_update_addresses_taken): Call
14124 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
14125 be rewritten and decl has been marked for renaming, reset
14128 2011-05-17 Joseph Myers <joseph@codesourcery.com>
14130 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
14131 enum_opts_set when testing if attributes have set -mfpmath=.
14133 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
14135 * config/mips/mips.c (mips_handle_option): Remove unused variable.
14137 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
14139 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
14141 * tree-inline.c (maybe_inline_call_in_expr): Initialize
14142 id.transform_lang_insert_block with NULL.
14144 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
14146 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
14147 (output_fp_compare): Change args 3 and 4 to bool.
14148 (ix86_expand_call): Change arg 6 to bool.
14149 (ix86_attr_length_immediate_default): Change arg 2 to bool.
14150 (ix86_attr_length_vex_default): Change arg 3 to bool.
14151 * config/i386/i386.md: Update all uses.
14152 * config/i386/i386.c: Ditto.
14153 (ix86_flags_dependent): Change return type to bool.
14155 2011-05-17 Richard Guenther <rguenther@suse.de>
14157 * gimple.c (type_hash_pair_compare): Fix comparison.
14159 2011-05-17 Richard Guenther <rguenther@suse.de>
14161 * gimple.c (iterative_hash_gimple_type): Simplify singleton
14162 case some more, fix final hash value of the non-singleton case.
14164 2011-05-17 Richard Guenther <rguenther@suse.de>
14168 2011-05-16 Richard Guenther <rguenther@suse.de>
14170 * gimple.c (gimple_types_compatible_p_1): Use names of the
14171 type itself, not its main variant.
14172 (iterative_hash_gimple_type): Likewise.
14174 2011-05-17 Richard Guenther <rguenther@suse.de>
14176 * gimple.c (gimple_register_canonical_type): Use the main-variant
14177 leader for computing the canonical type.
14179 2011-05-17 Nick Clifton <nickc@redhat.com>
14181 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
14184 * config/rx/rx.md: Add peephole to remove redundant extensions
14186 (bitset_in_memory): Use rx_restricted_mem_operand.
14187 (bitinvert_in_memory): Likewise.
14188 (bitclr_in_memory): Likewise.
14190 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
14191 Nick Clifton <nickc@redhat.com>
14193 * config/rx/rx.md: Add peepholes to match a register move followed
14194 by a comparison of the moved register. Replace these with an
14195 addition of zero that does both actions in one instruction.
14197 2011-05-17 Jakub Jelinek <jakub@redhat.com>
14200 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
14201 predicate to allow CONST_INT.
14202 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
14204 2011-05-16 Joseph Myers <joseph@codesourcery.com>
14206 * opts-common.c (opt_enum_arg_to_value): New.
14207 * opts.h (opt_enum_arg_to_value): Declare.
14208 * config/i386/i386.opt (fpmath): Remove.
14209 (mfpmath=): Use Enum, Init and Save.
14210 (fpmath_unit): New Enum and EnumValue entries.
14211 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
14212 name for function fpmath state.
14213 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
14214 * config/i386/i386.c: Include diagnostic.h.
14215 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
14216 (ix86_target_string): Take enum fpmath_unit value instead of string.
14217 (ix86_debug_options): Update call to ix86_target_string.
14218 (ix86_option_override_internal): Don't process fpmath strings here.
14219 (x86_function_specific_save, ix86_function_specific_restore):
14220 Don't handle fpmath state specially.
14221 (ix86_function_specific_print): Pass fpmath state to
14222 ix86_target_string instead of printing in this function.
14223 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
14224 Handle enum attributes.
14225 (IX86_ATTR_ENUM, ix86_opt_enum): New.
14226 (ix86_valid_target_attribute_tree): Update option_strings
14227 handling. Handle fpmath as enum option.
14228 (ix86_can_inline_p): Update field names for function fpmath state.
14229 (ix86_expand_builtin): Update call to ix86_target_string.
14230 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
14231 (ix86_fpmath): Remove.
14232 * config/i386/t-i386 (i386.o): Update dependencies.
14234 2011-05-16 Joseph Myers <joseph@codesourcery.com>
14236 PR preprocessor/48677
14237 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
14238 from decoded_options[0], not from itself.
14240 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
14242 * config/i386/constraints.md (z): New constraint.
14243 * config/i386/i386.c (c): New mode attribute.
14244 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
14245 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
14246 constraint for operand 0.
14247 (*call_vzeroupper): Ditto.
14248 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
14249 (*call_rex64_ms_sysv_vzeroupper): Ditto.
14250 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
14251 Use "lzm" constraint for operand 0.
14252 (*call_pop_vzeroupper): Ditto.
14253 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
14254 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
14255 constraint for operand 0.
14256 (*sibcall_vzeroupper): Ditto.
14257 (*sibcall_rex64_ms_sysv): Ditto.
14258 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
14259 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
14260 *sibcall_pop_1. Use "Uz" constraint for operand 0.
14261 (*sibcall_pop_vzeroupper): Ditto.
14262 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
14263 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
14264 mode iterator. Use "<c>zm" constraint for operand 1.
14265 (*call_value_vzeroupper): Ditto.
14266 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
14268 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
14269 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
14270 *call_value_pop_1. Use "lzm" constraint for operand 1.
14271 (*call_value_pop_vzeroupper): Ditto.
14272 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
14273 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
14274 mode iterator. Use "Uz" constraint for operand 1.
14275 (*sibcall_value_vzeroupper): Ditto.
14276 (*sibcall_value_rex64_ms_sysv): Ditto.
14277 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
14278 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
14279 constraint for operand 1.
14280 (*sibcall_value_pop_vzeroupper): Ditto.
14281 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
14282 and "z" constraint for operand 2.
14283 (*tls_global_dynamic_32_gnu): Ditto.
14284 (*tls_local_dynamic_base_32_gnu): Ditto.
14285 (*tls_local_dynamic_base_64): Ditto.
14286 (*tls_local_dynamic_32_once): Ditto.
14287 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
14288 Update all callers.
14289 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
14291 2011-05-16 Richard Guenther <rguenther@suse.de>
14293 * gimple.c (gimple_types_compatible_p_1): Use names of the
14294 type itself, not its main variant.
14295 (iterative_hash_gimple_type): Likewise.
14297 2011-05-16 Richard Guenther <rguenther@suse.de>
14299 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
14300 always visit pointer target and function result and argument types.
14302 2011-05-16 Jason Merrill <jason@redhat.com>
14305 * tree-inline.c (copy_statement_list): Put back recursion.
14307 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
14311 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
14312 * config/avr/avr.md ("*ior<mode>qi.byte0",
14313 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
14315 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
14318 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
14319 register is needed for a function argument.
14321 2011-05-16 Richard Guenther <rguenther@suse.de>
14323 * gimple.c (struct type_hash_pair): New type.
14324 (type_hash_pair_compare): New function.
14325 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
14327 2011-05-16 Revital Eres <revital.eres@linaro.org>
14329 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
14331 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
14333 * config/i386/i386.md (floating point move splitters): Fix
14334 usage of standard_80387_constant_p.
14335 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
14337 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
14339 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
14341 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
14343 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
14344 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
14345 (tree_ssa_lim_finalize): Likewise.
14347 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
14349 * config/i386/constraint.md (Yd, Yx): New register constraints.
14350 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
14351 Yd conditional register constraint.
14352 (*movtf_internal): Use standard_sse_constant_opcode.
14353 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
14354 Yx conditional register constraint.
14355 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
14356 Yd conditional register constraint. Use standard_sse_constant_p to
14357 check for valid SSE constants and call standard_sse_constant_opcode to
14359 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
14360 constants and call standard_sse_constant_opcode to output SSE insn.
14361 * config/i386/i386.c (ix86_option_ovverride_internal): Set
14362 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
14363 optimize_size is set.
14364 (standard_sse_constant_opcode): Output conditional AVX insn templates.
14366 2011-05-14 Tobias Burnus <burnus@net-b.de>
14368 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
14370 2011-05-13 Martin Jambor <mjambor@suse.cz>
14372 * ipa-prop.c (ipa_cst_from_jfunc): New function.
14373 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
14374 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
14375 (evaluate_conditions_for_ipcp_clone): Removed.
14376 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
14377 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
14378 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
14380 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
14382 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
14383 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
14384 lieu of MAY_HAVE_DEBUG_STMTS.
14385 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
14386 debug statements if !MAY_HAVE_DEBUG_STMTS.
14388 2011-05-13 Martin Thuresson <martint@google.com>
14390 PR gcov-profile/47793
14391 * libgcov.c (gcov_exit): Support relative profile paths.
14392 * doc/invoke.texi (-fprofile-dir): Update for above change.
14394 2011-05-13 Richard Guenther <rguenther@suse.de>
14396 * gimple.c (gimple_canonical_types_compatible_p): Do not use
14397 type-pair caching, do not compare hashes.
14399 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
14401 PR middle-end/48965
14402 * tree-cfg.c (edge_to_cases_cleanup): Return true.
14403 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
14405 2011-05-13 Kai Tietz <ktietz@redhat.com>
14407 * gimplify.c (gimplify_expr): Make sure operand is boolified.
14408 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
14409 compatible type for TRUTH_NOT_EXPR.
14411 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
14413 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
14414 (ix86_hard_regno_mode_ok): Change return value to bool. Use
14415 can_create_pseudo_p ().
14417 2011-05-13 Richard Guenther <rguenther@suse.de>
14420 * gimple.c (iterative_hash_gimple_type): Revert change in
14421 pointer target and function result and argument hashing.
14423 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
14425 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
14426 (*movxf_internal_nointeger): Ditto.
14427 (*movdf_internal_rex64): Ditto.
14428 (*movdf_internal): Ditto.
14429 (*movdf_internal_nointeger): Ditto.
14430 (*movsf_internal): Ditto.
14431 (sincos splitters): Use can_create_pseudo ().
14433 2011-05-13 Joseph Myers <joseph@codesourcery.com>
14435 * config/i386/i386-opts.h: New.
14436 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
14437 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
14438 ix86_section_threshold): Remove.
14439 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
14440 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
14442 (ix86_option_override_internal): Don't decode strings for options
14443 other than -march=, -mtune= and -mfpmath=. Don't allow for
14444 __attribute__ uses in remaining diagnostics for options with
14445 string arguments. Don't check for integer arguments being negative.
14446 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
14447 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
14448 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
14449 ix86_branch_cost, ix86_section_threshold): Remove.
14450 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
14452 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
14454 (masm=): Use Enum and Init.
14455 (asm_dialect): New Enum and EnumValue entries.
14456 (mbranch-cost=): Use UInteger.
14457 (mlarge-data-threshold=): Use UInteger and Init.
14458 (mcmodel=): Use Enum and Init.
14459 (cmodel): New Enum and EnumValue entries.
14460 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
14461 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
14462 mregparm=): Use UInteger.
14463 (mstringop-strategy=): Use Enum and Init.
14464 (stringop_alg): New Enum and EnumValue entries.
14465 (mtls-dialect=): Use Enum and Init.
14466 (tls_dialect): New Enum and EnumValue entries.
14467 (mabi=): Use Enum and Init.
14468 (calling_abi): New Enum and EnumValue entries.
14469 (mveclibabi=): Use Enum and Init.
14470 (ix86_veclibabi): New Enum and EnumValue entries.
14472 2011-05-13 Nick Clifton <nickc@redhat.com>
14474 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
14475 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
14477 2011-05-13 Kai Tietz <ktietz@redhat.com>
14479 PR middle-end/48984
14480 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
14481 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
14482 (gimple_boolify): Check for cast for boolean_type_node instead for
14485 2011-05-13 Richard Guenther <rguenther@suse.de>
14487 PR tree-optimization/48172
14488 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
14489 multiplying by number of iterations for equal step.
14490 (vect_create_cond_for_alias_checks): Likewise.
14492 2011-05-13 Andreas Schwab <schwab@redhat.com>
14494 * configure.ac: Use AS_HELP_STRING throughout.
14495 * configure: Regenerate.
14497 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
14499 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
14500 (ix86_emit_restore_regs_using_mov): Likewise.
14501 (ix86_emit_restore_sse_regs_using_mov): Likewise.
14503 2011-05-12 Anatoly Sokolov <aesok@post.ru>
14505 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
14506 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
14507 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
14508 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
14509 RTX_OK_FOR_OLO10_P): ...here.
14510 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
14513 2011-05-12 Kai Tietz <ktietz@redhat.com>
14515 * gimplify.c (gimple_boolify): Re-boolify expression
14516 arguments even if expression type is of kind BOOLEAN_TYPE.
14517 (gimplify_boolean_expr): Removed.
14518 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
14519 and XOR. Additional take care that we keep expression's type.
14520 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
14521 of TRUTH_AND|OR|XOR_EXPR.
14523 2011-05-12 Jakub Jelinek <jakub@redhat.com>
14525 PR tree-optimization/48975
14526 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
14527 on all bbs here and free and clear ifc_bbs at the end.
14529 2011-05-12 Richard Guenther <rguenther@suse.de>
14531 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
14532 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
14533 until after simple checks.
14534 (gimple_types_compatible_p): Likewise.
14535 (iterative_hash_gimple_type): Always hash pointer targets
14536 and function return and argument types.
14537 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
14538 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
14539 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
14540 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
14541 completely in the simple compare section.
14542 (gimple_register_canonical_type): Query the cache again after
14545 2011-05-12 Richard Guenther <rguenther@suse.de>
14547 PR tree-optimization/48172
14548 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
14549 the number of iterations from the segment size calculation.
14550 (vect_create_cond_for_alias_checks): Adjust.
14552 2011-05-12 Jakub Jelinek <jakub@redhat.com>
14555 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
14556 if validate_subreg fails.
14558 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
14560 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
14561 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
14564 2011-05-12 DJ Delorie <dj@redhat.com>
14566 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
14567 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
14568 created builtin into rx_builtins array.
14569 (rx_builtin_decl): New function.
14570 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
14572 2011-05-12 DJ Delorie <dj@redhat.com>
14573 Nick Clifton <nickc@redhat.com>
14575 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
14576 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
14577 (rx_is_legitimate_address): Add pre-decrement and post-increment
14578 addressing in HImode and QImode. Fix test for out of range
14579 REG+INT addressing.
14580 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
14581 (rx_align_for_label): Test label before extracting its usage count.
14582 (rx_adjust_insn_lengths): Fix selection of insn codes.
14583 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
14585 2011-05-11 Jason Merrill <jason@redhat.com>
14587 * tree.c (type_hash_canon): Use struct tree_type_non_common.
14589 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
14591 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
14592 reindent the subsequent block.
14594 2011-05-11 Satoru Takabayashi <satorux@google.com>
14595 Paul Pluzhnikov <ppluzhnikov@google.com>
14597 * doc/install.texi (Configuration): Document --with-linker-hash-style.
14598 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
14599 * config.in: Add LINKER_HASH_STYLE.
14600 * configure.ac: Add --with-linker-hash-style.
14601 * configure: Regenerate.
14603 2011-05-11 Richard Guenther <rguenther@suse.de>
14605 PR middle-end/48964
14606 * gimple.c (iterative_hash_canonical_type): Fix typo.
14608 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
14610 * config/i386/i386.c (legitimize_tls_address)
14611 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
14612 expanders directly for TARGET_GNU2_TLS. Determine pic and
14613 __tls_get_addr symbol reference here. Update call to
14614 gen_tls_global_dynamic_{32,64} for added arguments.
14615 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
14616 expanders directly for TARGET_GNU2_TLS. Determine
14617 __tls_get_addr symbol reference here. Update call to
14618 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
14619 unique UNSPEC REG_EQUIV to libcall block.
14620 (ix86_tls_get_addr): Declare static.
14621 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
14622 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
14623 Do not determine pic and __tls_get_addr symbol reference here. Do not
14624 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
14625 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
14626 (tls_global_dynamic_64): Add operand 2. Do not determine
14627 __tls_get_addr symbol reference here. Do not call
14628 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
14629 (tls_local_dynamic_base64): Ditto for operand 1.
14631 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
14633 * function.c (expand_function_start): Initialize stack_check_probe_note
14634 only if the generic stack checking mechanism is used.
14636 2011-05-11 Richard Guenther <rguenther@suse.de>
14638 PR tree-optimization/15256
14639 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
14640 (A & B) | C, combine (A op CST1) op CST2.
14641 (tree_ssa_forward_propagate_single_use_vars): Only bother to
14642 visit assigns that have uses.
14644 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
14646 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
14647 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
14648 (unpack_ts_type_common_value_fields): ...this. Update comment.
14649 (unpack_value_fields): Adjust for renaming.
14650 (lto_input_ts_type_tree_pointers): Split into...
14651 (lto_input_ts_type_common_tree_pointer): ...this and...
14652 (lto_input_ts_type_non_common_tree_pointers): ...this.
14653 (lto_input_tree_pointers): Adjust for above split.
14654 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
14655 (pack_ts_type_common_value_fields): ...this. Update comment.
14656 (lto_output_ts_type_tree_pointers): Split into...
14657 (lto_output_ts_type_common_tree_pointers): ...this and...
14658 (lto_output_ts_type_non_common_tree_pointers): ...this.
14659 (lto_output_tree_pointers): Adjust for above split.
14660 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
14661 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
14662 * stor-layout.c (vector_type_mode): Adjust location of mode field.
14663 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
14665 (struct tree_type): Split into...
14666 (struct tree_type_common: ...this and...
14667 (struct tree_type_with_lang_specific): ...this and...
14668 (struct tree_type_non_common): ...this. Adjust accessor macros
14670 (TYPE_VALUES_RAW): Define.
14671 (union tree_node): Update for above changes.
14672 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
14673 TS_TYPE_NON_COMMON.
14674 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
14675 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
14676 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
14677 * treestructu.def (TS_TYPE): Remove.
14678 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
14681 2011-05-11 Jakub Jelinek <jakub@redhat.com>
14684 * tree-ssa.c (reset_debug_uses): New function.
14685 * tree-flow.h (reset_debug_uses): New prototype.
14686 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
14687 * tree-loop-distribution.c (generate_loops_for_partition): Call
14688 reset_debug_uses on the stmts that will be removed. Keep around
14689 all debug stmts, don't count them as bits in partition bitmap.
14690 (generate_builtin): Don't count debug stmts or labels as bits in
14693 2011-05-11 Richard Guenther <rguenther@suse.de>
14695 * gimple.c (gimple_type_hash_1): Merge with ...
14696 (gimple_type_hash): ... this.
14697 (gtc_visit): Remove mode parameter and simplify accordingly.
14698 (gimple_types_compatible_p_1): Likewise.
14699 (gimple_types_compatible_p): Likewise.
14700 (iterative_hash_gimple_type): Likewise.
14702 (gimple_type_eq): Adjust.
14704 2011-05-11 Revital Eres <revital.eres@linaro.org>
14706 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
14707 enters the branch create an anti edge in the opposite direction
14708 to prevent the creation of reg-moves.
14709 * modulo-sched.c: Adjust comment to reflect the fact we are
14710 scheduling closing branch.
14711 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
14712 (stage_count): New field in struct partial_schedule.
14713 (calculate_stage_count): New function.
14714 (normalize_sched_times): Rename to reset_sched_times and handle
14715 incrementing the sched time of the nodes by a constant value
14716 passed as parameter.
14717 (duplicate_insns_of_cycles): Skip closing branch.
14718 (sms_schedule_by_order): Schedule closing branch.
14719 (ps_insn_find_column): Handle closing branch.
14720 (sms_schedule): Call reset_sched_times and adjust the code to
14721 support scheduling of the closing branch.
14722 (ps_insert_empty_row): Update calls to normalize_sched_times
14723 and rotate_partial_schedule functions.
14725 2011-05-11 Richard Guenther <rguenther@suse.de>
14727 PR middle-end/48953
14728 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
14730 2011-05-11 Joseph Myers <joseph@codesourcery.com>
14732 * opts.c (finish_options): Move warning settings from process_options.
14733 * toplev.c (process_options): Move warning settings to finish_options.
14735 2011-05-11 Richard Guenther <rguenther@suse.de>
14737 PR tree-optimization/18041
14738 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
14739 (simplify_bitwise_binary): ... this. Handle operand conversions
14740 by applying them to the result instead.
14741 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
14743 2011-05-11 Richard Guenther <rguenther@suse.de>
14745 * gimple.c (gimple_canonical_types_compatible_p): Split out
14746 from gimple_types_compatible_p and friends. Do not recurse
14747 to pointed-to types.
14748 (gimple_canonical_type_eq): Use it.
14749 (iterative_hash_canonical_type): Split out from
14750 iterative_hash_gimple_type and friends. Do not recurse
14751 to pointed-to types.
14752 (gimple_canonical_type_hash): Use it, allocate the hash here.
14754 2011-05-11 Revital Eres <revital.eres@linaro.org>
14756 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
14757 recognizing doloop.
14759 2011-05-11 Revital Eres <revital.eres@linaro.org>
14761 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
14762 instead of PREV_INSN.
14764 2011-05-11 Revital Eres <revital.eres@linaro.org>
14766 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
14767 * loop-doloop.c (doloop_condition_get): Likewise.
14768 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
14770 * config/arm/arm.md (*addsi3_compare0): Remove "*".
14772 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
14774 * tree.def (CASE_LABEL_EXPR): Add an operand.
14775 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
14777 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14779 * c-decl.c (c_override_global_bindings_to_false): Remove.
14780 (global_bindings_p): Don't check
14781 c_override_global_bindings_to_false.
14782 * c-tree.h (c_override_global_bindings_to_false): Remove.
14783 * c-typeck.c (composite_type): Don't set
14784 c_override_global_bindings_to_false.
14786 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
14788 PR target/48857, 48495
14789 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
14791 (VSX_MOVE_MODE): Ditto.
14792 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
14793 VSX vector types. Add V2DImode.
14794 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
14795 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
14796 (MODES_TIEABLE_P): Ditto.
14798 * config/rs6000/rs6000.c (rs6000_emit_move): Use
14799 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
14801 (init_cumulative_args): Ditto.
14802 (rs6000_function_arg_boundary): Ditto.
14803 (rs6000_function_arg_advance_1): Ditto.
14804 (rs6000_function_arg): Ditto.
14805 (rs6000_function_ok_for_sibcall): Ditto.
14806 (emit_frame_save): Ditto.
14807 (rs6000_function_value): Ditto.
14808 (rs6000_libcall_value): Ditto.
14810 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14812 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
14813 i386/darwin-lib.h to $libgcc_tm_file.
14814 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
14816 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14818 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
14820 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14822 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
14823 * config/rs6000/rs6000-tables.opt: New file (generated).
14824 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
14825 rs6000/rs6000-tables.opt to extra_options.
14826 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
14827 * config/rs6000/rs6000.c (rs6000_select): Remove.
14828 (processor_target_table): Move contents to rs6000-cpus.def.
14829 (darwin_rs6000_override_options): Check
14830 global_options_set.x_rs6000_cpu_index instead of
14831 rs6000_select[1].string.
14832 (rs6000_option_override_internal): Likewise.
14833 (rs6000_handle_option): Don't assert that global structures are in
14834 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
14835 (rs6000_default_cpu): New variable.
14836 (rs6000_file_start): Set it instead of local default_cpu. Check
14837 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
14838 global_options_set.x_rs6000_tune_index instead of rs6000_select.
14839 (rs6000_darwin_file_start): Check rs6000_default_cpu and
14840 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
14841 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
14842 rs6000_select): Remove.
14843 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
14845 (mcpu=, mtune=): Use Var, Init, Enum and Save.
14846 * config/rs6000/t-rs6000
14847 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
14848 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
14849 global_options_set.x_rs6000_cpu_index instead of
14850 rs6000_select[1].string.
14851 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
14852 global_options_set.x_rs6000_cpu_index instead of
14853 rs6000_select[1].string.
14855 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14857 * config.gcc (libgcc_tm_file): Define instead of including files
14858 from ../../libgcc/config/ in tm_file.
14859 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
14860 * configure: Regenerate.
14861 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
14862 libgcc_tm.h, cs-libgcc_tm.h): New.
14863 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
14864 (clean): Remove libgcc_tm.h.
14865 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
14866 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
14867 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
14869 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
14872 * config/avr/avr.c (avr_ret_register): Return unsigned int
14874 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
14875 it to avr_libcall_value.
14876 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
14878 (avr_expand_binop_builtin): Ditto.
14879 (avr_expand_unop_builtin): Ditto.
14881 2011-05-10 DJ Delorie <dj@redhat.com>
14883 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
14884 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
14885 * config/rx/rx.c (rx_align_for_label): Add label and
14886 uses_threshold parameters. Do not align when the label is not
14888 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
14890 2011-05-10 Richard Guenther <rguenther@suse.de>
14892 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
14893 a series of conversions and apply foldings similar to what
14895 (tree_ssa_forward_propagate_single_use_vars): Call it.
14897 2011-05-10 Jakub Jelinek <jakub@redhat.com>
14899 PR tree-optimization/48611
14900 PR tree-optimization/48794
14901 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
14902 referenced from RESX or EH_DISPATCH arguments.
14905 * dfp.c (decimal_to_decnumber): Handle conversion from
14906 dconst{1,2,m1,half}.
14908 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
14910 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
14911 for !flag_prefer_avx128.
14912 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
14914 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
14916 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
14917 (fold_ternary_loc): Use expr_location_or.
14919 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
14922 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
14923 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
14924 Pmode and mem_mode is not VOIDmode.
14926 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
14928 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
14929 TYPE_QUAL_RESTRICT): Convert to enum.
14931 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
14933 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
14934 (const_pow2_1_to_8_operand): Ditto.
14935 (const_pow2_1_to_128_operand): Ditto.
14936 (const_pow2_1_to_32768_operand): Ditto.
14937 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
14938 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
14939 in insn constraint to check integer value of operand 3.
14940 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
14942 (PINSR_MODE): New mode iterator.
14943 (sse2p4_1): New mode attribute.
14944 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
14945 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
14946 iterator. Use const_int_operand instead of
14947 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
14948 exact_log2 in insn constraint to check integer value of operand 3.
14950 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
14952 * config/i386/sse.md (blendbits): Remove mode attribute.
14953 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
14954 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
14955 Check integer value of operand 3 in insn constraint.
14957 2011-05-09 Richard Guenther <rguenther@suse.de>
14959 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
14961 (lto_symtab_merge): Likewise. Do not register types here.
14962 (lto_symtab_merge_decls_2): Likewise.
14963 (lto_symtab_merge_decls_1): Likewise.
14964 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
14965 * gimple.c (enum gtc_mode): Declare.
14966 (gimple_types_compatible_p): Make static.
14968 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14970 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
14971 temporary register to match Pmode.
14973 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
14975 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
14976 and *vec_concatv4si_1_avx.
14978 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
14980 PR rtl-optimization/48927
14981 * ira-conflicts.c (commutative_constraint_p): Use
14982 recog_data.alternative_enabled_p to disable alternatives where
14983 "enabled" attribute is false.
14984 (get_dup_num): Ditto.
14985 * ira-lives.c (single_reg_class): Ditto.
14986 (ira_implicitly_set_insn_hard_regs): Ditto.
14988 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
14990 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
14991 (dataflow_set_preserve_mem_locs): Likewise.
14993 2011-05-09 Philipp Thomas <pth@suse.de>
14995 * config/mep/mep.c (mep_validate_vliw): Syntax description
14996 should not be translated.
14998 2011-05-09 Joseph Myers <joseph@codesourcery.com>
15000 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
15001 * config/mips/mips-tables.opt: New file (generated).
15002 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
15003 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
15004 MIPS_ARCH_OPTION_NATIVE): Define.
15005 * config/mips/mips.c (mips_cpu_info_table): Move contents to
15007 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
15008 mips_parse_cpu): Remove.
15009 (mips_cpu_info_from_opt, mips_default_arch): New.
15010 (mips_handle_option): Don't assert that global structures are in
15011 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
15012 (mips_option_override): Use new variables and functions to set
15013 state of these options. Use strcmp to check for individual CPU names.
15014 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
15016 * config/mips/mips.opt (march=): Use ToLower and Enum.
15017 (mips): Use ToLower, Enum and Var.
15018 (mtune=): Use ToLower and Enum.
15019 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
15021 2011-05-08 Jan Hubicka <jh@suse.cz>
15023 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
15024 Arrange type pairs to be UID ordered.
15025 (gimple_lookup_type_leader): Make inline.
15027 2011-05-09 Nick Clifton <nickc@redhat.com>
15030 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
15034 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
15037 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
15039 * combine.c (simplify_comparison): Abstract out parts into...
15040 (simplify_compare_const): ... new function.
15041 (try_combine): Generalize parallel arithmetic/compare combining
15042 to call simplify_compare_const() and CANONICALIZE_COMPARE().
15044 2011-05-08 Jan Hubicka <jh@suse.cz>
15046 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
15047 (cgraph_create_virtual_clone): Call hooks once virtual clone
15049 * cgraph.h (cgraph_clone_node): Update prototype.
15050 * ipa-cp.c (ipcp_estimate_growth): Use
15051 estimate_ipcp_clone_size_and_time.
15052 * ipa-inline-transform.c (clone_inlined_nodes): Update.
15053 * lto-cgraph.c (input_node): Update.
15054 * ipa-inline.c (recursive_inlining): Update.
15055 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
15056 (evaluate_conditions_for_known_args): Break out from ...
15057 (evaluate_conditions_for_edge): ... here.
15058 (evaluate_conditions_for_ipcp_clone): New function.
15059 (inline_node_duplication_hook): Update clone summary based
15061 (estimate_callee_size_and_time): Rename to ...
15062 (estimate_node_size_and_time): take NODE instead of EDGE;
15063 take POSSIBLE_TRUTHS as argument.
15064 (estimate_callee_size_and_time): Update.
15065 (estimate_ipcp_clone_size_and_time): New function.
15066 (do_estimate_edge_time): Update.
15068 2011-05-08 Richard Guenther <rguenther@suse.de>
15070 PR middle-end/48908
15071 PR middle-end/48905
15072 * expmed.c (expand_shift_1): Compute adjusted constant shift
15075 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
15077 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
15079 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
15081 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
15083 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
15085 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
15087 2011-05-07 Jan Hubicka <jh@suse.cz>
15089 * ipa-inline-transform.c (inline_call): Account when program size
15091 * ipa-inline.c (relative_time_benefit): New function.
15092 (edge_badness): Reorganize to be power 2 based; fix thinko when
15093 computing badness for negative growth; update comments to match
15094 reality; better dumps.
15096 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
15098 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
15099 type to bool and adjust comment.
15100 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
15101 (fold_mathfn_compare): Remove calls to global_bindings_p.
15102 (fold_inf_compare): Likewise.
15103 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
15104 * c-tree.h (global_bindings_p): Adjust prototype.
15105 * c-decl.c (global_bindings_p): Return bool and simplify.
15107 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
15109 PR tree-optimization/48837
15110 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
15111 when accumulator transformation is performed.
15113 2011-05-06 Jan Hubicka <jh@suse.cz>
15115 * i386.h (ix86_tune_indices): Add
15116 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
15117 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
15118 * i386.c (initial_ix86_tune_features): Add
15119 X86_SOFTARE_PREFETCHING_BENEFICIAL.
15120 (software_prefetching_beneficial_p): Remove predicate.
15121 (ix86_option_override_internal): Use new macro.
15123 2011-05-06 Jan Hubicka <jh@suse.cz>
15125 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
15127 2011-05-06 Jan Hubicka <jh@suse.cz>
15129 * cgraph.c (cgraph_add_thunk): Create real function node instead
15130 of alias node; finalize it and mark needed/reachale; arrange visibility
15131 to be right and add it into the corresponding same comdat group list.
15132 (dump_cgraph_node): Dump thunks.
15133 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
15134 cgraph_function_with_gimple_body_p,
15135 cgraph_first_function_with_gimple_body,
15136 cgraph_next_function_with_gimple_body): New functions.
15137 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
15139 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
15140 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
15141 * cgraphunit.c (cgraph_finalize_function): Only look into possible
15142 devirtualization when optimizing.
15143 (verify_cgraph_node): Verify thunks.
15144 (cgraph_analyze_function): Analyze thunks.
15145 (cgraph_mark_functions_to_output): Output thunks only in combination
15146 with function they are assigned to.
15147 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
15148 alias into normal node.
15149 (assemble_thunks): New functoin.
15150 (cgraph_expand_function): Use it.
15151 * lto-cgraph.c (lto_output_node): Stream thunks.
15152 (input_overwrite_node): Stream in thunks.
15153 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
15154 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
15155 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
15156 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
15157 (inline_analyze_function): Do not care about thunk jump functions.
15158 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
15159 * ipa-prop.c (ipa_prop_write_jump_functions): Use
15160 cgraph_function_with_gimple_body_p.
15161 * passes.c (do_per_function_toporder): Use
15162 cgraph_function_with_gimple_body_p.
15163 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
15164 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
15165 (function_called_by_processed_nodes_p): Likewise.
15167 2011-05-06 Joseph Myers <joseph@codesourcery.com>
15169 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
15170 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
15172 (mabi=): Replace with separate entries for mabi=altivec,
15173 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
15174 mabi=ieeelongdouble and mabi=ibmlongdouble.
15175 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
15176 check for -mabi=spe without SPE ABI support here.
15177 (rs6000_handle_option): Replace OPT_mabi_ handling with
15178 OPT_mabi_altivec and OPT_mabi_spe handling.
15180 2011-05-06 Cary Coutant <ccoutant@google.com>
15182 * dwarf2out.c (contains_subprogram_definition): New function.
15183 (should_move_die_to_comdat): Call it.
15185 2011-05-06 Jeff Law <law@redhat.com>
15187 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
15188 remove_ctrl_stmt_and_useless_edges.
15189 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
15190 (fixup_template_block, thread_single_edge): Likewise.
15191 (mark_threaded_blocks): Use THREAD_TARGET.
15193 2011-05-06 Alan Modra <amodra@gmail.com>
15196 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
15197 const0_rtx as the arg to the dummy __tls_get_addr libcall.
15199 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
15201 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
15202 constraint modifier to "r".
15204 2011-05-06 Joseph Myers <joseph@codesourcery.com>
15206 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
15207 fall through for OPT_mcmodel_.
15209 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15211 * config/s390/s390.c (s390_asm_trampoline_template): Comment
15213 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
15215 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15218 * config/arm/arm.opt (marm): Document it.
15219 (mthumb): Reject negative variant.
15221 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
15224 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
15225 Fix typo in "ccvt" variable name.
15227 2011-05-06 Tristan Gingold <gingold@adacore.com>
15230 * config/vms/vms-ar.c (main): Remove cwd variable.
15232 2011-05-06 Jakub Jelinek <jakub@redhat.com>
15235 * var-tracking.c (prepare_call_arguments): Move else before #endif.
15237 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
15239 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
15240 * gimplify.c (gimplify_switch_expr): Likewise.
15241 * omp-low.c (expand_omp_sections): Likewise.
15242 * tree-eh.c (lower_try_finally_switch): Likewise.
15243 (lower_eh_dispatch): Likewise.
15244 * tree.h (build_case_label): Declare.
15245 * tree.c (build_case_label): Define.
15247 2011-05-05 Jason Merrill <jason@redhat.com>
15250 * tree-inline.c (copy_tree_r): Use copy_statement_list.
15251 (copy_statement_list): Don't recurse.
15252 * stor-layout.c (copy_self_referential_tree_r): Don't allow
15255 2011-05-05 Joseph Myers <joseph@codesourcery.com>
15257 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
15258 through from -mfpu= handling.
15259 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
15261 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
15263 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
15266 2011-05-05 Steve Ellcey <sje@cup.hp.com>
15268 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
15270 (hppa[12]*-*-hpux11*): Ditto.
15271 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
15272 * config/ia64/hpux-unix2003.h: New.
15273 * config/pa/pa-hpux1131.opt: New.
15274 * config/pa/pa-hpux1131.h: New.
15275 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
15276 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
15277 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
15279 2011-05-05 Jakub Jelinek <jakub@redhat.com>
15282 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
15283 instead of mode as 3rd argument to recursive call.
15284 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
15285 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
15287 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
15288 don't give up if mode is Pmode and mem_mode is not VOIDmode.
15289 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
15290 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
15292 2011-05-05 Julian Brown <julian@codesourcery.com>
15294 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
15295 parenthesis in D-register case.
15297 2011-05-05 Joseph Myers <joseph@codesourcery.com>
15299 * opt-functions.awk (var_type_struct): Handle Enum options.
15300 * optc-gen.awk: Don't check range of variables of character type.
15301 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
15302 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
15303 rs6000_sdata_name, rs6000_explicit_options): Remove.
15304 (rs6000_option_override_internal): Check for -malign-power here.
15305 Use global_options_set instead of rs6000_explicit_options.
15306 (rs6000_parse_fpu_option): Remove.
15307 (rs6000_handle_option): Access variables via opts and opts_set
15308 pointers. Use error_at and warning_at. Add fall-through
15309 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
15310 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
15311 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
15312 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
15313 here. Don't use rs6000_parse_fpu_option.
15314 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
15315 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
15316 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
15317 (mrecip=): Use Var.
15318 (mspe): Use Var and Save.
15319 (mtraceback=): Use Enum and Var.
15320 (rs6000_traceback_type): New Enum and EnumValue entries.
15321 (mfloat-gprs=): Use Enum, Var and Save.
15322 (rs6000_float_gprs): New Enum and EnumValue entries.
15323 (mlong-double-): use Var and Save.
15324 (msched-costly-dep=, minsert-sched-nops=): Use Var.
15325 (malign-): Use Enum and Var.
15326 (rs6000_alignment_flags): New Enum and EnumValue entries.
15328 (fpu_type_t): New Enum and EnumValue entries.
15329 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15330 global_options_set instead of rs6000_explicit_options.
15331 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15332 global_options_set instead of rs6000_explicit_options.
15333 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15334 global_options_set instead of rs6000_explicit_options.
15335 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15336 global_options_set instead of rs6000_explicit_options.
15337 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
15338 global_options_set instead of rs6000_explicit_options.
15339 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15340 global_options_set instead of rs6000_explicit_options.
15341 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
15343 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15344 global_options_set instead of rs6000_explicit_options.
15345 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
15346 (rs6000_cmodel): New Enum and EnumValue entries.
15347 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15348 global_options_set instead of rs6000_explicit_options.
15349 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
15350 (mtls-size=): Use Enum and Var.
15351 (rs6000_tls_size): New Enum and EnumValue entries.
15353 2011-05-05 Michael Matz <matz@suse.de>
15355 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
15356 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
15357 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
15358 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
15359 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
15360 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
15361 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
15362 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
15363 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
15364 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
15365 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
15366 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
15367 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
15368 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
15369 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
15370 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
15372 2011-05-05 Richard Guenther <rguenther@suse.de>
15374 * expmed.c (expand_variable_shift): Rename to ...
15375 (expand_shift_1): ... this. Take an expanded shift amount.
15376 For rotates recurse directly not building trees for the shift amount.
15377 (expand_variable_shift): Wrap around expand_shift_1.
15378 (expand_shift): Adjust.
15380 2011-05-05 Jakub Jelinek <jakub@redhat.com>
15382 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
15384 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
15386 * tree.h (get_pending_sizes): Remove prototype.
15387 (put_pending_size): Likewise.
15388 (put_pending_sizes): Likewise.
15389 * stor-layout.c (pending_sizes): Delete.
15390 (get_pending_sizes): Likewise.
15391 (put_pending_size): Likewise.
15392 (put_pending_sizes): Likewise.
15393 (variable_size): Do not call put_pending_size and tidy up.
15394 * function.h (struct function): Remove dont_save_pending_sizes_p.
15395 * lto-streamer-in.c (input_function): Do not stream it.
15396 * lto-streamer-out.c (output_function): Likewise.
15397 * tree-inline.c (initialize_cfun): Do not copy it.
15398 * c-decl.c (store_parm_decls): Do not set it.
15399 * omp-low.c (create_task_copyfn): Likewise.
15400 * tree-optimize.c (tree_rest_of_compilation): Likewise.
15402 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
15404 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
15406 (*movdf_internal): Ditto.
15407 (*movdf_internal_nointeger): Ditto.
15408 (*movsf_internal): Ditto.
15410 2011-05-05 Joseph Myers <joseph@codesourcery.com>
15412 * c-decl.c (finish_decl): Don't call get_pending_sizes.
15413 (grokparm): Add parameter expr. Pass it to grokdeclarator.
15414 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
15415 (c_variable_size): Remove.
15416 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
15417 call put_pending_sizes.
15418 (get_parm_info): Add parameter expr. Use it to set
15419 arg_info->pending_sizes.
15420 (store_parm_decls): Use arg_info->pending_sizes instead or calling
15422 * c-parser.c (c_parser_parms_declarator): Update call to
15423 c_parser_parms_list_declarator.
15424 (c_parser_parms_list_declarator): Take parameter expr. Update
15425 call to push_parm_decl. Update recursive call. Don't call
15426 get_pending_sizes. Update calls to get_parm_info.
15427 (c_parser_objc_method_definition): Update calls to
15428 c_parser_objc_method_decl and objc_start_method_definition.
15429 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
15430 (c_parser_objc_method_decl): Add parameter expr. Update call to
15432 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
15433 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
15434 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
15436 2011-05-05 Michael Hope <michael.hope@linaro.org>
15439 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
15440 __ARM_EABI__ hosts.
15442 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15444 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
15445 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
15446 (spu_output_mi_thunk): New function.
15448 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15450 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
15451 targetm.asm_out.print_operand.
15452 * config/sol2.c: Include target.h.
15454 2011-05-04 Jan Hubicka <jh@suse.cz>
15456 * ipa-inline.c (reset_edge_caches): New function.
15457 (update_caller_keys): Add check_inlinablity_for; do not
15458 reset edge caches; remove now unnecesary loop.
15459 (update_callee_keys): Add comments; reset node_growth_cache of callee.
15460 (update_all_callee_keys): Likewise.
15461 (inline_small_functions): Sanity check cache; update code
15464 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
15466 PR rtl-optimization/47612
15467 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
15468 as the last insn of the sequence to be moved.
15470 2011-05-04 Tobias Burnus <burnus@net-b.de>
15473 * doc/invoke.texi (Ofast): Document that it
15474 enables Fortran's -fno-protect-parens.
15476 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
15478 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
15480 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
15482 * stor-layout.c (variable_size): Do not issue errors.
15484 2011-05-04 Richard Guenther <rguenther@suse.de>
15486 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
15487 for array-ref indices.
15488 (tree_coverage_counter_addr): Likewise.
15489 (build_fn_info_type): Use size_int for index types.
15490 (build_gcov_info): Likewise.
15492 2011-05-04 Richard Guenther <rguenther@suse.de>
15494 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
15496 * c-typeck.c (really_start_incremental_init): Use bitsize_int
15497 for constructor indices.
15498 (push_init_level): Likewise.
15500 2011-05-04 Richard Guenther <rguenther@suse.de>
15502 * explow.c (promote_mode): Move variable declarations before code.
15504 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
15506 * tree.h (build_function_type_array): Declare.
15507 (build_varargs_function_type_array): Declare.
15508 (build_function_type_vec, build_varargs_function_type_vec): Define.
15509 * tree.c (build_function_type_array_1): New function.
15510 (build_function_type_array): New function.
15511 (build_varargs_function_type_array): New function.
15513 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
15515 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
15516 before setting STMT_VINFO_TYPE.
15518 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15520 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
15521 instead of spu_pass_by_reference.
15523 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15525 * calls.c (emit_library_call_value_1): Invoke
15526 promote_function_mode hook on libcall arguments.
15527 * explow.c (promote_function_mode, promote_mode): Handle TYPE
15528 argument being NULL.
15529 * targhooks.c (default_promote_function_mode): Lisewise.
15530 * config/s390/s390.c (s390_promote_function_mode): Likewise.
15531 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
15533 * doc/tm.texi: Document that TYPE argument might be NULL.
15535 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15537 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
15539 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15542 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
15544 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15546 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
15547 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
15549 * mips-tfile.c: ... here.
15550 Don't include coretypes.h, tm.h, filenames.h.
15551 (saber_stop): Remove definition and all calls.
15552 [__SABER__]: Remove.
15553 (__LINE__): Remove default.
15554 (Size_t, Ptrdiff_t): Remove definitions.
15555 Replace by size_t, ptrdiff_t.
15556 [!MIPS_DEBUGGING_INFO]: Remove.
15557 (SHASH_SIZE, THASH_SIZE): Remove defaults.
15558 (progname): Add const.
15560 Replace all uses by static.
15561 (ALIGN_SYMTABLE_OFFSET): Remove default.
15562 * mips-tdump.c: Don't include coretypes.h, tm.h.
15563 Remove !MIPS_IS_STAB guard.
15564 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
15565 $(TM_H), filenames.h dependencies.
15566 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
15568 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15571 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
15572 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
15574 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15577 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
15578 account and save/restore RETS.
15579 (PROFILE_BEFORE_PROLOGUE): Define.
15580 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
15581 the push insn to use predecrement.
15583 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15586 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
15588 2011-05-04 Nick Clifton <nickc@redhat.com>
15590 * config/mn10300/mn10300.c: Include cfgloop.h.
15592 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
15593 Lcc or a FLcc insn into the instruction stream.
15594 (mn10300_block_contains_call): New function. Returns true if the
15595 given basic block contains a CALL insn.
15596 (mn10300_loop_contains_call_insn): New function. Returns true if
15597 the given loop contains a CALL insn.
15598 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
15599 to use the SETLB and Lcc or FLcc insns.
15600 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
15601 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
15602 * config/mn10300/mn10300.opt (msetlb): New option. Used to
15603 disable the SETLB optimization.
15604 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
15605 __SETLB__ or __NO_SETLB__.
15606 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
15607 (movsf_internal): Handle MDR register.
15608 (cmpsi): Make visible.
15609 (setlb): New pattern.
15610 (Lcc): New pattern.
15611 (FLcc): New pattern.
15613 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
15616 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
15617 for reg<->xmm moves.
15618 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
15619 (vec_concatv2di_rex64_sse): Ditto.
15620 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
15621 (*vec_extractv2di_1_rex64): Ditto.
15624 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
15626 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
15628 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
15630 2011-05-04 Richard Guenther <rguenther@suse.de>
15632 * tree.h (int_const_binop): Remove notrunc argument.
15633 * fold-const.c (int_const_binop): Remove notrunc argument. Always
15634 create integer constants that are properly truncated.
15635 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
15636 (const_binop): Remove zero notrunc argument to int_const_binop.
15637 (size_binop_loc): Likewise.
15638 (fold_div_compare): Likewise.
15639 (maybe_canonicalize_comparison_1): Likewise.
15640 (fold_comparison): Likewise.
15641 (fold_binary_loc): Likewise.
15642 (multiple_of_p): Likewise.
15643 * expr.c (store_constructor): Likewise.
15644 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
15645 (maybe_fold_stmt_addition): Likewise.
15646 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
15647 * stor-layout.c (layout_type): Likewise.
15648 * tree-data-ref.c (tree_fold_divides_p): Likewise.
15649 * tree-sra.c (build_ref_for_offset): Likewise.
15650 (build_user_friendly_ref_for_offset): Likewise.
15651 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
15652 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
15653 * tree-ssa-loop-niter.c (inverse): Likewise.
15654 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
15655 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
15656 * tree-switch-conversion.c (check_range): Likewise.
15657 (build_constructors): Likewise.
15658 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
15659 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
15660 (extract_range_from_assert): Likewise.
15661 (vrp_int_const_binop): Likewise.
15662 (extract_range_from_binary_expr): Likewise.
15663 (extract_range_from_unary_expr): Likewise.
15664 (check_array_ref): Likewise.
15665 (find_case_label_range): Likewise.
15666 (simplify_div_or_mod_using_ranges): Likewise.
15667 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
15668 comparing case labels for merging.
15670 2011-05-03 Mark Wielaard <mjw@redhat.com>
15672 * dwarf2out.c (debug_str_hash_forced): Removed.
15673 (gen_label_for_indirect_string): Removed.
15674 (get_debug_string_label): Removed.
15675 (AT_string_form): Generate label directly.
15676 (output_indirect_string): Test indirect_string_node for
15677 DW_FORM_strp instead of checking label and refcount.
15678 (prune_indirect_string): Removed.
15679 (prune_unused_types): Don't check debug_str_hash_forced or
15680 call prune_indirect_string.
15682 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
15685 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
15687 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
15691 * combine.c (try_combine): Skip debug insns at m_split tests.
15693 2011-04-26 Mark Wielaard <mjw@redhat.com>
15696 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
15697 when info_section_emitted.
15699 2011-05-03 Joseph Myers <joseph@codesourcery.com>
15701 * config/mips/mips-opts.h: New.
15702 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
15704 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
15705 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
15706 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
15708 * config/mips/mips.h (enum mips_code_readable_setting): Move to
15710 (mips_abi, mips_code_readable): Don't declare.
15711 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
15712 (mabi=): Use Enum and Var.
15713 (mips_abi): New Enum and EnumValue entries.
15714 (mcode-readable=): Use Enum and Var.
15715 (mips_code_readable_setting): New Enum and EnumValue entries.
15716 (mr10k-cache-barrier=): Use Enum and Var.
15717 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
15719 2011-05-03 Jan Hubicka <jh@suse.cz>
15721 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
15722 replace hash by pointer map.
15723 (cgraph_node_set_element_def, cgraph_node_set_element,
15724 const_cgraph_node_set_element, varpool_node_set_element_def,
15725 varpool_node_set_element, const_varpool_node_set_element): Remove.
15726 (free_cgraph_node_set, free_varpool_node_set): New function.
15727 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
15728 * tree-emutls.c: Free varpool node set.
15729 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
15730 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
15731 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
15732 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
15733 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
15734 Move here from ipa.c; implement using pointer_map
15735 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
15736 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
15737 debug_cgraph_node_set, varpool_node_set_new,
15738 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
15739 dump_varpool_node_set, debug_varpool_node_set):
15740 Move to ipa-uitls.c.
15741 * passes.c (ipa_write_summaries): Update.
15743 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15745 From Mike Frysinger:
15746 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
15747 bf542/bf544/bf547/bf548/bf549.
15749 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
15751 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
15753 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15755 From Bernd Schmidt:
15756 * config/bfin/bfin.md (MOVCC): New mode_macro.
15757 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
15758 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
15759 comments from generated assembly.
15761 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15764 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
15765 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
15766 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
15767 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
15768 * config/bfin/lib1funcs.asm (___muldi3): New function.
15770 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15772 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
15773 build_function_type_list instead of build_function_type.
15774 Rearrange initialization of `args' to do so.
15776 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15778 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
15779 instead of build_function_type.
15781 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15783 * config/rs6000/rs6000.c (spe_init_builtins): Call
15784 build_function_type_list instead of build_function_type.
15785 (paired_init_builtins, altivec_init_builtins): Likewise.
15786 (builtin_function_type): Likewise.
15788 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15790 * config/sh/sh.c (sh_media_init_builtins): Call
15791 build_function_type_list instead of build_function_type.
15793 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15795 * config/sparc/sparc.c (sparc_file_end): Call
15796 build_function_type_list instead of build_function_type.
15798 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15800 * config/alpha/alpha.c (alpha_init_builtins): Call
15801 build_function_type_list instead of build_function_type.
15803 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15805 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
15806 build_function_type_list instead of build_function_type.
15808 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15810 * config/iq2000/i2000.c (iq2000_init_builtins): Call
15811 build_function_type_list instead of build_function_type.
15812 Delete `endlink' variable.
15814 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15816 * config/avr/avr.c (avr_init_builtins): Call
15817 build_function_type_list instead of build_function_type.
15819 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15821 * config/picochip/picochip.c (picochip_init_builtins): Call
15822 build_function_type_list instead of build_function_type.
15823 Delete `endlink' variable.
15825 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15827 * config/bfin/bfin.c (bfin_init_builtins): Call
15828 build_function_type_list instead of build_function_type.
15830 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15833 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
15834 that's not CONST_INT. Seemingly redundant check is due to PR39768.
15836 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15839 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
15840 libbffastfp overrides libgcc when -mfast-fp.
15842 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15844 Originally from Bernd Schmidt
15845 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
15846 * config/bfin/bfin.c (override_options): Test it and error if
15849 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15851 Originally From Bernd Schmidt
15852 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
15855 2011-05-03 Jeff Law <law@redhat.com>
15857 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
15858 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
15859 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
15860 than accessing AUX field directly. Free the AUX field before
15862 (thread_block, thread_through_loop_header): Likewise.
15863 (thread_single_edge, mark_threaded_blocks): Likewise.
15864 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
15865 (register_jump_thread): Do not attempt to thread to a NULL edge.
15867 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
15869 * function.c (init_function_start): Call decide_function_section.
15870 * varasm.c (decide_function_section): New function.
15871 (assemble_start_function): When not using
15872 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
15873 or first_function_block_is_cold.
15874 * rtl.h (decide_function_section): Declare.
15876 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
15877 Jakub Jelinek <jakub@redhat.com>
15880 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
15881 only succeed if req_mode is the same as set_mode.
15883 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
15885 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
15886 * genemit.c (gen_exp): Handle RETURN.
15887 * emit-rtl.c (verify_rtx_sharing): Likewise.
15888 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
15889 * rtl.c (copy_rtx): RETURN is shared.
15890 * rtl.h (enum global_rtl_index): Add GR_RETURN.
15892 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
15893 * config/s390/s390.c (s390_emit_epilogue): Likewise.
15894 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
15895 * config/cris/cris.c (cris_expand_return): Likewise.
15896 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
15897 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
15898 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
15899 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
15900 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
15902 * config/v850/v850.c (expand_epilogue): Likewise.
15903 * config/bfin/bfin.c (bfin_expand_call): Likewise.
15904 * config/arm/arm.md (epilogue): Likewise.
15905 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
15906 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
15907 variable to ret_reg.
15909 2011-05-03 Richard Guenther <rguenther@suse.de>
15912 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
15913 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
15914 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
15916 2011-05-03 Richard Guenther <rguenther@suse.de>
15918 * c-decl.c (grokdeclarator): Instead of looking at
15919 TREE_OVERFLOW check if the constant fits in the index type.
15921 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
15923 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
15924 (vec_store_lanes<mode><mode>): Likewise.
15926 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
15928 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
15929 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
15930 convert_optab_index values.
15931 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
15932 * genopinit.c (optabs): Initialize the new optabs.
15933 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
15934 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
15935 (expand_STORE_LANES): New functions.
15936 * tree.h (build_array_type_nelts): Declare.
15937 * tree.c (build_array_type_nelts): New function.
15938 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
15939 (vect_model_load_cost): Likewise.
15940 (vect_store_lanes_supported, vect_load_lanes_supported)
15941 (vect_record_strided_load_vectors): Declare.
15942 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
15943 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
15944 (vect_transform_strided_load): Split out statement recording into...
15945 (vect_record_strided_load_vectors): ...this new function.
15946 * tree-vect-stmts.c (create_vector_array, read_vector_array)
15947 (write_vector_array, create_array_ref): New functions.
15948 (vect_model_store_cost): Add store_lanes_p argument.
15949 (vect_model_load_cost): Add load_lanes_p argument.
15950 (vectorizable_store): Try to use store-lanes functions for
15951 interleaved stores.
15952 (vectorizable_load): Likewise load-lanes and loads.
15953 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
15954 to vect_model_store_cost.
15955 (vect_build_slp_tree): Likewise vect_model_load_cost.
15957 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
15959 * hooks.h (hook_bool_mode_uhwi_false): Declare.
15960 * hooks.c (hook_bool_mode_uhwi_false): New function.
15961 * target.def (array_mode_supported_p): New hook.
15962 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
15963 * doc/tm.texi: Regenerate.
15964 * stor-layout.c (mode_for_array): New function.
15965 (layout_type): Use it.
15966 * config/arm/arm.c (arm_array_mode_supported_p): New function.
15967 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
15969 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
15972 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
15973 for -fstack-check if the size to allocate is negative.
15975 2011-05-02 Lawrence Crowl <crowl@google.com>
15977 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
15978 (timevar_cond_start): New for starting a timer only when it is not
15980 (timevar_cond_stop): New for stopping a timer when it was not already
15983 * timevar.c (timevar_stop): Enable start/stop timers to start again.
15984 (timevar_cond_start): New as above.
15985 (timevar_cond_stop): New as above.
15987 * timevar.def: Add start/stop timers for compiler phases,
15988 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
15989 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
15990 and TV_PHASE_FINALIZE.
15991 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
15992 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
15993 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
15994 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
15995 Make unused TV_OVERLOAD into a start/stop timer.
15997 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
15998 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
15999 to indicate that they are start/stop timers.
16001 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
16002 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
16003 Move initialization to do_compile.
16004 (do_compile): Add initialization from above.
16005 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
16007 * c-decl.c (c_write_global_declarations): Add start/stop of
16008 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
16010 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
16011 or TV_PARSE_INLINE, as appropriate.
16012 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
16013 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
16015 2011-05-02 Jason Merrill <jason@redhat.com>
16018 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
16020 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
16023 * c-decl.c (finish_decl): Only create a composite if the types are
16026 2011-05-02 Joseph Myers <joseph@codesourcery.com>
16028 * config/fr30/fr30-protos.h (Mmode): Don't define.
16029 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
16030 definition where used.
16031 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
16032 define. Expand definitions where used.
16033 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
16034 Expand definitions where used.
16035 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
16036 rx_function_arg, rx_function_arg_advance,
16037 rx_function_arg_boundary): Expand definitions of those macros.
16038 * config/v850/v850-protos.h (Mmode): Don't define. Expand
16039 definition where used.
16041 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
16043 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
16045 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
16046 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
16047 with *movv2sf_internal_rex64_avx.
16048 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
16049 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
16050 Use %v prefix in insn mnemonic to handle TARGET_AVX.
16051 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
16052 "vex" in "prefix" attribute calculation.
16053 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
16055 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
16058 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
16059 inputs match the output.
16061 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
16064 * config/m68k/m68k.c (m68k_expand_prologue): Set
16065 current_function_static_stack_size.
16067 2011-05-02 Jan Hubicka <jh@suse.cz>
16069 * lto-streamer.c (lto_streamer_cache_insert_1,
16070 lto_streamer_cache_lookup, lto_streamer_cache_create,
16071 lto_streamer_cache_delete): Use pointer map instead of hashtable.
16072 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
16074 2011-05-02 Joseph Myers <joseph@codesourcery.com>
16076 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
16077 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
16078 config/m68k/t-opts: New files.
16079 * config/m68k/m68k-tables.opt: New file (generated).
16080 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
16081 extra_options and m68k/t-opts to tmake_file.
16082 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
16083 (all_isas): Initialize using m68k-isas.def.
16084 (all_microarchs): Initialize using m68k-microarchs.def.
16085 (m68k_find_selection): Remove.
16086 (m68k_handle_option): Don't assert that global structures are in
16087 use. Use error_at. Access variables via opts pointer. Don't
16088 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
16089 directly for -m68020-40 and -m68020-60.
16090 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
16091 m68k_tune_entry here.
16092 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
16094 (m68k_library_id_string): Remove declaration.
16095 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
16096 (m68k_library_id_string): New Variable.
16097 (march=, mcpu=, mtune=): Use Enum and Var.
16099 2011-05-02 Richard Guenther <rguenther@suse.de>
16101 * varasm.c (output_constructor_regular_field): Compute zero-based
16102 index with double-ints. Make sure to ICE instead of producing
16104 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
16105 in asserts. Properly use a signed type.
16107 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
16109 * config/i386/sse.md (V): New mode iterator.
16110 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
16112 (V_256): Rename from AVX256MODE.
16113 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
16114 condition to all users.
16116 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
16117 condition to all users.
16118 (VF_128): Make V4SF mode unconditional.
16119 (VF_256): Rename from AVX256MODEF2P.
16120 (VI4F_128): Rename from SSEMODE4S.
16121 (VI8F_128): Rename from SSEMODE2D.
16122 (VI4F_256): Rename from AVX256MODE8P.
16123 (VI8F_256): Rename from AVX256MODE4P.
16124 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
16125 (ssescalarmodesuffix): Remove SF and DF modes.
16126 (SSEMODE124): Remove.
16127 (SSEMODE1248): Ditto.
16128 (SSEMODEF2P): Ditto.
16129 (AVXMODEF2P): Ditto.
16130 (AVXMODEFDP): Ditto.
16131 (AVXMODEFSP): Ditto.
16132 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
16134 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
16136 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
16137 xop_pcmov_<mode>256. Use V mode iterator.
16139 Adjust RTX patterns globally for renamed mode attributes.
16141 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16143 * haifa-sched.c (sched_emit_insn): Emit insn before first
16144 non-scheduled insn. Inform back-end about new insn. Add
16145 new insn to scheduled_insns list.
16147 2011-05-02 Richard Guenther <rguenther@suse.de>
16149 PR tree-optimization/48822
16150 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
16151 (process_scc): Indicate which iteration we start.
16153 2011-05-02 Jan Hubicka <jh@suse.cz>
16155 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
16156 (lto_section_overrun): New.
16157 * lto-section-out.c (append_block): Rename to ...
16158 (lto_append_block): ... this one; export.
16159 (lto_output_1_stream): Move lto lto-streamer.h
16160 (lto_output_data_stream): Update.
16161 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
16162 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
16165 2011-05-02 Richard Guenther <rguenther@suse.de>
16167 * tree.c (tree_code_counts): New global array.
16168 (record_node_allocation_statistics): Count individual tree codes.
16169 (dump_tree_statistics): Dump individual code stats.
16171 2011-05-01 Jan Hubicka <jh@suse.cz>
16173 * ipa-inline.c (caller_growth_limits): Fix thinko when
16174 looking for largest stack frame.
16175 * ipa-inline.h (dump_inline_summary): Declare.
16176 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
16178 (dump_inline_summary): Export.
16179 (debug_inline_summary): Declare as DEBUG_FUNCTION.
16181 2011-05-01 Anatoly Sokolov <aesok@post.ru>
16183 * reginfo.c (memory_move_cost): Change rclass argument type form
16184 'enum reg_class' to reg_class_t.
16185 * reload.h (memory_move_cost): Update prototype.
16186 * postreload.c reload_cse_simplify_set): Change type dclass var to
16188 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
16190 (ira_allocate_and_set_costs): Change aclass argument type form
16191 'enum reg_class' to reg_class_t.
16192 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
16193 Change aclass argument type to reg_class_t.
16194 (update_conflict_hard_reg_costs): Change type aclass and pref vars
16196 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
16197 memory_move_cost call.
16199 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
16200 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
16201 Change type tmp var to reg_class_t.
16203 2011-04-30 Jan Hubicka <jh@suse.cz>
16205 * ipa-inline.c (can_inline_edge_p): Disregard limits when
16206 inlining into function with flatten attribute.
16207 (want_inline_small_function_p): Be more realistic about inlining
16208 cold calls where callee size grows.
16210 2011-04-30 Jan Hubicka <jh@suse.cz>
16212 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
16215 2011-04-30 Anatoly Sokolov <aesok@post.ru>
16217 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
16218 PRINT_OPERAND_PUNCT_VALID_P): Remove.
16219 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
16220 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
16221 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16222 (print_operand): Rename to...
16223 (sparc_print_operand): ...this. Make static. Adjust
16224 sparc_print_operand function call.
16225 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
16228 2011-04-30 Jan Hubicka <jh@suse.cz>
16230 PR middle-end/48752
16231 * ipa-inline.c (early_inliner): Disable when doing late
16232 addition of function.
16234 2011-04-30 Jakub Jelinek <jakub@redhat.com>
16236 * dwarf2out.c (get_address_mode): New inline.
16237 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
16238 if not dwarf_strict emit
16239 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
16240 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
16241 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
16242 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
16243 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
16244 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
16245 mem_loc_descriptor callers.
16246 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
16247 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
16248 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
16249 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
16250 (base_types): New variable.
16251 (get_base_type_offset, calc_base_type_die_sizes,
16252 base_type_for_mode, mark_base_types, base_type_cmp,
16253 move_marked_base_types): New functions.
16254 (calc_die_sizes): Assert that die_offset is 0 or equal to
16256 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
16257 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
16258 callers. If not dwarf_strict, call mem_loc_descriptor even for
16259 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
16260 (gen_subprogram_die): Don't give up on call site parameters
16261 with non-integral or large integral modes. Adjust
16262 mem_loc_descriptor callers.
16263 (prune_unused_types): Call prune_unused_types_mark on base_types
16265 (resolve_addr): Call mark_base_types.
16266 (dwarf2out_finish): Call move_marked_base_types.
16268 PR tree-optimization/48809
16269 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
16271 (gen_inbound_check): Don't compute index_expr - range_min in utype
16272 again, instead reuse SSA_NAME initialized in build_arrays.
16273 Remove two useless gsi_for_stmt calls.
16275 2011-04-29 Jeff Law <law@redhat.com>
16277 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
16279 2011-04-29 Martin Jambor <mjambor@suse.cz>
16281 * cgraph.h (cgraph_postorder): Remove declaration.
16282 * ipa-utils.h (ipa_free_postorder_info): Declare.
16283 (ipa_reverse_postorder): Likewise.
16284 * cgraphunit.c: Include ipa-utils.h.
16285 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
16286 * ipa-inline.c: Include ipa-utils.h.
16287 (ipa_inline): Update call to ipa_reverse_postorder.
16288 * ipa-pure-const.c (propagate_pure_const): Update call to
16289 ipa_reduced_postorder and ipa_print_order. Call
16290 ipa_free_postorder_info to clean up.
16291 (propagate_nothrow): Likewise.
16292 * ipa-reference.c (propagate): Removed a useless call to
16293 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
16294 and ipa_print_order. Call ipa_free_postorder_info to clean up.
16295 * ipa.c: Include ipa-utils.h.
16296 (ipa_profile): Update call to ipa_reverse_postorder.
16297 (cgraph_postorder): Moved to...
16298 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
16299 (ipa_utils_print_order): Renamed to ipa_print_order.
16300 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
16302 (ipa_free_postorder_info): New function.
16303 * passes.c: Include ipa-utils.h.
16304 (do_per_function_toporder): Update call to ipa_reverse_postorder.
16305 (ipa_write_summaries): Likewise.
16306 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
16307 (cgraphunit.o): Likewise.
16309 (ipa-inline.o): Likewise.
16311 2011-04-29 Jan Hubicka <jh@suse.cz>
16313 * gcc.dg/tree-ssa/inline-10.c: New testcase.
16314 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
16315 * ipa-inline.h (clause_t): Turn into unsigned int.
16316 * ipa-inline-analysis.c (add_clause): Do more simplification.
16317 (and_predicates): Shortcut more cases.
16318 (predicates_equal_p): Move forward; check that clauses are properly
16320 (or_predicates): Shortcut more cases.
16321 (edge_execution_predicate): Rewrite as...
16322 (set_cond_stmt_execution_predicate): ... this function; handle
16323 __builtin_constant_p.
16324 (set_switch_stmt_execution_predicate): New .
16325 (compute_bb_predicates): New.
16326 (will_be_nonconstant_predicate): Update TODO.
16327 (estimate_function_body_sizes): Use compute_bb_predicates
16328 and free them later, always try to estimate if stmt is constant.
16329 (estimate_time_after_inlining, estimate_size_after_inlining):
16330 Gracefully handle optimized out edges.
16331 (read_predicate): Fix off by one error.
16333 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
16335 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
16337 2011-04-27 Xinliang David Li <davidxl@google.com>
16339 * tree-profile.c (init_ic_make_global_vars): Set
16340 tls attribute on ic vars.
16341 * coverage.c (coverage_end_function): Initialize
16342 function_list with zero.
16344 2011-04-29 Richard Guenther <rguenther@suse.de>
16346 * builtins.c (fold_builtin_classify_type): Use integer_type_node
16347 for the type of the result.
16348 (fold_builtin_isascii): Likewise.
16349 (fold_builtin_toascii): Use integer_type_node where appropriate.
16350 (fold_builtin_logb): Likewise.
16351 (fold_builtin_frexp): Likewise.
16352 (fold_builtin_strstr): Likewise.
16353 (fold_builtin_strpbrk): Likewise.
16354 (fold_builtin_fputs): Likewise.
16355 (fold_builtin_sprintf): Likewise.
16356 (fold_builtin_snprintf): Likewise.
16357 (fold_builtin_printf): Likewise.
16358 (do_mpfr_remquo): Use a proper type for the assigned constant.
16359 (do_mpfr_lgamma_r): Likewise.
16360 * dwarf2out.c (resolve_one_addr): Use size_int.
16361 * except.c (init_eh): Likewise.
16362 (assign_filter_values): Use integer_type_node for filter values.
16363 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
16365 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
16366 for EH region numbers.
16367 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
16368 for the shift amount.
16370 2011-04-29 Richard Guenther <rguenther@suse.de>
16372 * expr.h (expand_shift): Rename to ...
16373 (expand_variable_shift): ... this.
16374 (expand_shift): Take a constant shift amount.
16375 * expmed.c (expand_shift): Rename to ...
16376 (expand_variable_shift): ... this.
16377 (expand_shift): New wrapper around expand_variable_shift.
16378 * expr.c (convert_move, emit_group_load_1, emit_group_store,
16379 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
16380 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
16381 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
16382 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
16383 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
16384 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
16385 emit_store_flag_1, emit_store_flag): Likewise.
16386 * builtins.c (expand_builtin_signbit): Likewise.
16387 * calls.c (load_register_parameters): Likewise.
16388 * function.c (assign_parm_setup_block): Likewise.
16389 * lower-subreg.c (resolve_shift_zext): Likewise.
16390 * optabs.c (widen_bswap, expand_abs_nojump,
16391 expand_one_cmpl_abs_nojump, expand_float): Likewise.
16392 * spu/spu.c (spu_expand_extv): Likewise.
16393 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
16395 2011-04-29 Richard Guenther <rguenther@suse.de>
16397 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
16398 for the remapped region number.
16399 * predict.c (build_predict_expr): Use integer_type_node for the
16401 * fold-const.c (fold_binary_loc): Use integer_type_node for
16402 the shift amount. Use a proper type for the PLUS_EXPR operand.
16404 2011-04-29 Michael Matz <matz@suse.de>
16406 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
16407 other trees that just builtins.
16408 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
16410 2011-04-29 Richard Guenther <rguenther@suse.de>
16412 * tree-nested.c (get_trampoline_type): Use size_int.
16413 (get_nl_goto_field): Likewise.
16414 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
16416 (lower_eh_constructs_2): Likewise.
16417 (lower_resx): Likewise.
16418 (lower_eh_dispatch): Likewise.
16419 * tree-mudflap.c (mf_build_string): Use size_int.
16420 (mudflap_register_call): Use integer_type_node for the flag.
16421 (mudflap_enqueue_constant): Use size_int.
16422 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
16423 instead of rebuilding it.
16425 2011-04-29 Richard Guenther <rguenther@suse.de>
16427 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
16428 Handle OBJ_TYPE_REF.
16429 (find_func_aliases_for_call): Use it more consistently.
16431 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
16433 * haifa-sched.c (last_nondebug_scheduled_insn): New.
16434 (rank_for_schedule): Use it.
16435 (schedule_block): Set it.
16437 2011-04-28 David Li <davidxl@google.com>
16439 * tree.c (crc32_string): Use crc32_byte.
16440 (crc32_byte): New function.
16441 * tree.h (crc32_byte): New function.
16442 * gcov.c (read_graph_file): Handle new cfg_cksum.
16443 (read_count_file): Ditto.
16444 * profile.c (instrument_values): Ditto.
16445 (get_exec_counts): Ditto.
16446 (read_profile_edge_counts): Ditto.
16447 (compute_branch_probabilities): Ditto.
16448 (compute_value_histograms): Ditto.
16449 (branch_prob): Ditto.
16450 (end_branch_prob): Ditto.
16451 * coverage.c (read_counts_file): Ditto.
16452 (get_coverage_counts): Ditto.
16453 (tree_coverage_counter_addr): Ditto.
16454 (coverage_checksum_string): Ditto.
16455 (coverage_begin_output): Ditto.
16456 (coverage_end_function): Ditto.
16457 (build_fn_info_type): Ditto.
16458 (build_fn_info_value): Ditto.
16459 * libgcov.c (gcov_exit): Ditto.
16460 * gcov-dump.c (tag_function): Ditto.
16461 (compute_checksum): Remove.
16463 2011-04-29 Alan Modra <amodra@gmail.com>
16465 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16466 unspec plus offset. Tidy macho code.
16468 2011-04-29 Martin Jambor <mjambor@suse.cz>
16470 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
16471 node instead of a decl. Update all callers.
16472 * cgraph.h: Update declaration.
16474 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
16476 PR tree-optimization/48765
16477 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
16478 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
16479 to indicate if loop aware SLP is being used. Scan the statements
16480 and update the vectorization factor according to the type of
16481 vectorization before statement analysis.
16482 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
16483 pass it to vect_analyze_loop_operations.
16484 (vectorizable_reduction): Set number of copies to 1 in case of pure
16486 * tree-vect-stmts.c (vectorizable_conversion,
16487 vectorizable_assignment, vectorizable_shift,
16488 vectorizable_operation, vectorizable_type_demotion,
16489 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
16491 (vectorizable_condition): Move the check that it is not SLP
16492 vectorization before the number of copies check.
16493 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
16494 to vectorize the loop using SLP.
16496 2011-04-28 Jakub Jelinek <jakub@redhat.com>
16498 PR middle-end/48597
16499 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
16502 2011-04-28 Joseph Myers <joseph@codesourcery.com>
16504 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
16505 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
16506 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16507 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16508 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
16510 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
16511 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16512 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16513 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16514 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16515 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
16517 * config/i386/linux.h (REG_NAME): Don't define.
16518 * config/i386/linux64.h (REG_NAME): Don't define.
16519 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
16520 Undefine before defining.
16522 2011-04-28 Jan Hubicka <jh@suse.cz>
16524 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
16525 nonconstant_names array.
16526 (estimate_function_body_sizes): Build nonconstant_names array; handle
16527 BUILT_IN_CONSTANT_P.
16529 2011-04-28 Richard Guenther <rguenther@suse.de>
16533 2011-04-28 Richard Guenther <rguenther@suse.de>
16535 * tree-ssa-structalias.c (solve_constraints): Build succ graph
16536 as late as possible.
16538 2011-04-28 Richard Guenther <rguenther@suse.de>
16540 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
16541 (debug_constraint): Do it here.
16542 (dump_constraints): And here.
16543 (rewrite_constraints): And here.
16544 (dump_constraint_edge): Remove.
16545 (dump_constraint_graph): Rewrite to produce DOT output.
16546 (solve_constraints): Build succ graph as late as possible.
16547 Dump constraint graphs before and after solving.
16549 2011-04-28 Richard Guenther <rguenther@suse.de>
16551 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16552 New function split out from ...
16553 (find_func_aliases): ... here. Call it.
16554 (find_func_aliases_for_call): Likewise.
16556 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
16558 * internal-fn.h (internal_fn_name_array): Declare.
16559 (internal_fn_flags_array): Likewise.
16561 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
16563 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
16564 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
16566 (ssemodefsuffix): Remove.
16567 (ssevecmodesuffix): New mode attribute.
16568 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
16569 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
16570 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
16571 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
16572 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
16573 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
16574 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
16575 ssemodesuffix mode attribute.
16576 (float splitters): Use ssevecmodesuffix mode attribute.
16577 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
16578 (sseinsmode): Rename from avxvecmode.
16579 (avxsizesuffix): Rename from avxmodesuffix.
16580 (sseintvecmode): Rename from avxpermvecmode.
16581 (ssedoublevecmode): Rename from ssedoublesizemode.
16582 (ssehalfvecmode): Rename from avxhalfvecmode.
16583 (ssescalarmode): Rename from avxscalarmode.
16584 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
16585 templates for ssemodesuffix mode attribute.
16586 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
16589 Adjust RTX patterns globally for renamed mode attributes.
16591 2011-04-27 Jan Hubcika <jh@suse.cz>
16593 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
16594 * ipa-inline-analysis.c: Include alloc-pool.h.
16595 (edge_predicate_pool): New.
16596 (trye_predicate_p): New function
16597 (false_predicate_p): New function.
16598 (add_clause): Sanity check that false clauses are "optimized";
16599 never add clauses to predicate that is already known to be false.
16600 (and_predicate): Use flase_predicate_p.
16601 (evaulate_predicate): Rename to ...
16602 (evaluate_predicate): ... this one; update all callers; assert
16603 that false is not listed among possible truths.
16604 (dump_predicate): Use true_predicate_p.
16605 (account_size_time): Use false_predicate_p.
16606 (evaulate_conditions_for_edge): Rename to ...
16607 (evaluate_conditions_for_edge) ... this one.
16608 (edge_set_predicate): New function.
16609 (inline_edge_duplication_hook): Duplicate edge predicates.
16610 (inline_edge_removal_hook): Free edge predicates.
16611 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
16612 (dump_inline_summary): Update.
16613 (estimate_function_body_sizes): Set edge predicates.
16614 (estimate_calls_size_and_time): Handle predicates.
16615 (estimate_callee_size_and_time): Update.
16616 (remap_predicate): Add toplev_predicate; update comment.
16617 (remap_edge_predicates): New function.
16618 (inline_merge_summary): Compute toplev predicate; update.
16619 (read_predicate): New function.
16620 (read_inline_edge_summary): Use it.
16621 (inline_read_section): Likewise.
16622 (write_predicate): New function.
16623 (write_inline_edge_summary): Use it.
16624 (inline_write_summary): Likewise.
16625 (inline_free_summary): Free alloc pool and edge summary vec.
16627 2011-04-27 Richard Guenther <rguenther@suse.de>
16629 * tree-ssa-structalias.c (changed_count): Remove.
16630 (changed): Use a bitmap.
16631 (unify_nodes): Adjust.
16632 (do_sd_constraint): Likewise.
16633 (do_ds_constraint): Likewise.
16634 (do_complex_constraint): Likewise.
16635 (solve_graph): Likewise.
16637 2011-04-27 Jan Hubicka <jh@suse.cz>
16639 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
16641 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
16643 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
16644 (avx_vperm2f128_*_operand): Ditto.
16645 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
16646 Use avx_vpermilp_parallel in insn condition.
16647 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
16648 Use avx_vperm2f128_parallel in insn condition.
16650 2011-04-27 Richard Guenther <rguenther@suse.de>
16652 * Makefile.in (tree-ssa-structalias.o): Remove
16653 gt-tree-ssa-structalias.h dependency.
16654 (GTFILES): Remove tree-ssa-structalias.c.
16655 * tree.c (allocate_decl_uid): New function.
16656 (make_node_stat): Use it.
16657 (copy_node_stat): Likewise.
16658 * tree.h (allocate_decl_uid): Declare.
16659 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
16660 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
16661 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
16662 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
16663 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
16664 (struct heapvar_map): Likewise.
16665 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
16666 heapvar_insert): Likewise.
16667 (make_heapvar_for): Rename to ...
16668 (make_heapvar): ... this. Simplify.
16669 (fake_var_decl_obstack): New global var.
16670 (build_fake_var_decl): New function.
16671 (make_constraint_from_heapvar): Adjust.
16672 (handle_lhs_call): Likewise.
16673 (create_function_info_for): Likewise.
16674 (intra_create_variable_infos): Likewise.
16675 (init_alias_vars): Allocate fake_var_decl_obstack.
16676 (init_alias_heapvars, delete_alias_heapvars): Remove.
16677 (compute_points_to_sets): Do not call init_alias_heapvars.
16678 (ipa_pta_execute): Likewise.
16679 (delete_points_to_sets): Free fake_var_decl_obstack.
16681 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16683 * config/spu/divmovti4.c (union qword_UTItype): New data type.
16684 (si_from_UTItype, si_to_UTItype): New functions.
16685 (__udivmodti4): Use them to implement type-punning.
16686 * config/spu/multi3.c (union qword_TItype): New data type.
16687 (si_from_TItype, si_to_TItype): New functions.
16688 (__multi3): Use them to implement type-punning.
16690 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16692 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
16694 2011-04-27 Jan Hubicka <jh@suse.cz>
16696 * ipa-prop.c (function_insertion_hook_holder): New holder.
16697 (ipa_add_new_function): New function.
16698 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
16699 Register/deregister holder.
16701 2011-04-27 Richard Guenther <rguenther@suse.de>
16703 PR tree-optimization/48772
16704 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
16706 2011-04-27 Richard Guenther <rguenther@suse.de>
16708 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
16709 TARGET_MEM_REF handling.
16711 2011-04-27 Nick Clifton <nickc@redhat.com>
16713 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
16714 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
16715 (REG_CLASS_NAMES): Likewise.
16716 (REG_CLASS_CONTENTS): Likewise.
16717 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
16718 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
16719 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
16720 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
16721 (EVEN_REGS): New macro. Alias for QUAD_REGS.
16722 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
16723 duplicate register classes.
16724 (frv_class_likely_spilled_p): Likewise.
16725 (frv_register_move_cost): Likewise.
16727 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
16728 end of the regno_reg_class array.
16730 2011-04-27 Jakub Jelinek <jakub@redhat.com>
16733 * c-typeck.c (build_binary_op): Don't wrap arguments if
16734 int_operands is true.
16736 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
16739 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
16740 targetm.calls.must_pass_in_stack for void type.
16742 2011-04-26 Jan Hubicka <jh@suse.cz>
16744 * cgraphbuild.c (build_cgraph_edges): Update call
16745 of cgraph_create_edge and cgraph_create_indirect_edge.
16746 * cgraph.c (cgraph_create_edge_including_clones,
16747 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
16748 cgraph_update_edges_for_call_stmt_node): Do not take nest
16749 argument; do not initialize call_stmt_size/time.
16750 (dump_cgraph_node): Do not dump nest.
16751 (cgraph_clone_edge): Do not take loop_nest argument;
16752 do not propagate it; do not clone call_stmt_size/time.
16753 (cgraph_clone_node): Likewise.
16754 (cgraph_create_virtual_clone): Update.
16755 * cgraph.h (struct cgraph_edge): Remove
16756 call_stmt_size/call_stmt_time/loop_nest.
16757 (cgraph_create_edge, cgraph_create_indirect_edge,
16758 cgraph_create_edge_including_clones, cgraph_clone_node): Update
16760 * tree-emutls.c (gen_emutls_addr): Update.
16761 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
16762 loop_nest; handle indirect calls, too.
16763 (clone_inlined_nodes): Do not care about updating inline summaries.
16764 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
16765 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
16766 stream call_stmt_size/call_stmt_time/loop_nest.
16767 * ipa-inline.c (edge_badness): Update.
16768 (ipa_inline): dump summaries after inlining.
16769 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
16771 (inline_edge_summary): New function.
16772 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
16773 (inline_edge_removal_hook): Handle edge summaries.
16774 (inline_edge_duplication_hook): New hook.
16775 (inline_summary_alloc): Alloc hooks.
16776 (initialize_growth_caches): Do not register removal hooks.
16777 (free_growth_caches); Do not free removal hook.
16778 (dump_inline_edge_summary): New function.
16779 (dump_inline_summary): Use it.
16780 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
16781 (inline_update_callee_summaries): New function.
16782 (inline_merge_summary): Use it.
16783 (do_estimate_edge_time, do_estimate_edge_growth): Update.
16784 (read_inline_edge_summary): New function.
16785 (inline_read_section): Use it.
16786 (write_inline_edge_summary): New function.
16787 (inline_write_summary): Use it.
16788 (inline_free_summary): Free edge new holders.
16789 * tree-inline.c (copy_bb): Update.
16791 2011-04-26 Jason Merrill <jason@redhat.com>
16793 * tree-eh.c (lower_try_finally_switch): Create the label along with
16794 the CASE_LABEL_EXPR.
16796 2011-04-26 David S. Miller <davem@davemloft.net>
16797 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16799 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
16800 * configure: Regenerate.
16802 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16805 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
16807 (VEC_reduc): New code iterator and splitters for vector reduction.
16808 (VEC_reduc_name): Ditto.
16809 (VEC_reduc_rtx): Ditto.
16810 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
16811 (reduc_<VEC_reduc_name>_v4sf): Ditto.
16813 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
16814 support for extracting SF on VSX.
16816 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
16817 generating xscvspdp.
16818 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
16819 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
16820 double add, minimum, maximum vector reduction.
16821 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
16822 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
16823 optimize double vector reduction.
16824 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
16826 2011-04-26 Joseph Myers <joseph@codesourcery.com>
16828 * config/fr30/fr30.h (inhibit_libc): Don't define.
16829 * config/m32r/m32r-protos.h: Correct comment.
16830 * config/v850/v850.h (GHS_default_section_names,
16831 GHS_current_section_names): Use tree, not union tree_node *.
16833 2011-04-26 Xinliang David Li <davidxl@google.com>
16835 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
16836 * c-family/c-opts.c (c_common_handle_option): Set
16837 warn_maybe_uninitialized.
16838 * opts.c (common_handle_option): Ditto.
16839 * common.opt: New option.
16840 * tree-ssa.c (warn_uninit): Add one more parameter.
16841 (warn_uninitialized_var): Pass warning code.
16842 * tree-flow.h: Interface change.
16844 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16846 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
16847 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
16848 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
16850 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16852 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
16853 * config/mips/mips.opt (mmips-tfile): Remove.
16855 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
16856 mips-tdump reference to ...
16857 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
16858 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
16859 reference by Tru64 UNIX.
16861 2011-04-26 Jakub Jelinek <jakub@redhat.com>
16864 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
16865 is error_mark_node, set value to NULL.
16867 PR tree-optimization/48734
16868 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
16869 if return value from maybe_fold_*_comparsions isn't something
16870 the code is prepared to handle.
16872 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
16874 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
16876 (ext_QIreg_nomode_operands): Remove.
16877 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
16881 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
16883 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
16885 2011-04-26 Richard Guenther <rguenther@suse.de>
16887 * c-typeck.c (build_unary_op): Do not expand array-refs via
16888 pointer arithmetic. Only adjust qualifiers for function types.
16890 2011-04-26 Richard Guenther <rguenther@suse.de>
16892 PR middle-end/48694
16893 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
16894 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
16895 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
16896 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
16898 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
16900 * doc/extend.texi: Document __underlying_type.
16902 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
16904 * config/rs6000/titan.md (automata_option "progress"): Remove.
16906 2011-04-25 Jeff Law <law@redhat.com>
16908 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
16910 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16912 * system.h (ENUM_BITFIELD): Remove.
16914 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
16915 Eric Botcazou <ebotcazou@adacore.com>
16917 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
16918 for STORE_FLAG_VALUE==-1 case.
16920 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
16923 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
16924 LEGITIMATE_PIC_OPERAND_P.
16926 2011-04-24 Jan Hubicka <jh@suse.cz>
16928 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
16930 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
16931 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
16932 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
16933 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
16934 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
16935 Sanity check predicate length.
16936 (remap_predicate): Likewise; sanity check jump functions.
16937 (inline_read_section, inline_write_summary): Sanity check
16940 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
16943 * doc/extend.texi (Type Traits): Document __is_standard_layout,
16944 __is_literal_type, and __is_trivial; update throughout about
16945 possibly cv-qualified void types.
16947 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
16949 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
16950 testsuite and make it version agnostic.
16952 2011-04-22 Jan Hubicka <jh@suse.cz>
16954 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
16956 2011-04-23 Jakub Jelinek <jakub@redhat.com>
16959 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
16960 to VOID_TYPE even around MODIFY_EXPR.
16962 2011-04-22 Mike Stump <mikestump@comcast.net>
16964 * gensupport.c (read_md_rtx): Fix typo in comment.
16965 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
16968 2011-04-22 Jan Hubicka <jh@suse.cz>
16970 * gengtype.c (open_base_files): Add ipa-inline.h include.
16971 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
16972 ipa-prop.c; update all uses.
16973 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
16974 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
16975 merge summary of inlined function into former caller.
16976 * ipa-inline.c (max_benefit): Remove.
16977 (edge_badness): Compensate for removal of benefits.
16978 (update_caller_keys): Use
16979 reset_node_growth_cache/reset_edge_growth_cache.
16980 (update_callee_keys): Likewise.
16981 (update_all_callee_keys): Likewise.
16982 (inline_small_functions): Do not collect max_benefit; do not reset
16983 estimated_growth; call free_growth_caches and initialize_growth_caches.
16984 * ipa-inline.h (struct condition, type clause_t, struct predicate,
16985 struct size_time_entry): New structures.
16986 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
16987 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
16988 and estimated_growth.
16989 (edge_growth_cache_entry): New structure.
16990 (node_growth_cache, edge_growth_cache): New global vars.
16991 (estimate_growth): Turn into inline.
16992 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
16993 initialize_growth_caches, free_growth_caches): Declare.
16994 (estimate_edge_growth): Rewrite.
16995 (estimate_edge_time): Implement as inline cache lookup.
16996 (reset_node_growth_cache, reset_edge_growth_cache): New inline
16998 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
16999 (NUM_CONDITIONS): New constant.
17000 (predicate_conditions): New enum.
17001 (IS_NOT_CONSTANT): New constant.
17002 (edge_removal_hook_holder): New var.
17003 (node_growth_cache, edge_growth_cache): New global vars.
17004 (true_predicate, single_cond_predicate, false_predicate,
17005 not_inlined_predicate, add_condition, add_clause, and_predicates,
17006 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
17007 dump_clause, dump_predicate, account_size_time,
17008 evaulate_conditions_for_edge): New functions.
17009 (inline_summary_alloc): Move to heap.
17010 (inline_node_removal_hook): Clear condition and entry vectors.
17011 (inline_edge_removal_hook): New function.
17012 (initialize_growth_caches, free_growth_caches): New function.
17013 (dump_inline_summary): Update.
17014 (edge_execution_predicate): New function.
17015 (will_be_nonconstant_predicate): New function.
17016 (estimate_function_body_sizes): Compute BB and constantness predicates.
17017 (compute_inline_parameters): Do not clear estimated_growth.
17018 (estimate_edge_size_and_time): New function.
17019 (estimate_calls_size_and_time): New function.
17020 (estimate_callee_size_and_time): New function.
17021 (remap_predicate): New function.
17022 (inline_merge_summary): New function.
17023 (do_estimate_edge_time): New function based on...
17024 (estimate_edge_time): ... this one.
17025 (do_estimate_edge_growth): New function.
17026 (do_estimate_growth): New function based on....
17027 (estimate_growth): ... this one.
17028 (inline_analyze_function): Analyze after deciding on jump functions.
17029 (inline_read_section): New function.
17030 (inline_read_summary): Use it.
17031 (inline_write_summary): Write all the new data.
17032 * ipa-prop.c (ipa_get_param_decl_index): Export.
17033 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
17034 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
17036 (ipa_get_lattice): Move here from ipa-cp.c
17037 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
17038 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
17039 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
17040 cgraph_edge_inlinable_p): Remove.
17041 * cgraphunit.c: Include ipainline.h
17042 (cgraph_process_new_functions): Update call of
17043 compute_inline_parameters.
17045 2011-04-22 Richard Guenther <rguenther@suse.de>
17047 * tree.c (build_int_cst): Properly create canonicalized integer
17049 (build_int_cst_type): Remove scary comments.
17051 2011-04-22 Xinliang David Li <davidxl@google.com>
17053 * toplev.c (process_options): Enable -Werror=coverage-mismatch
17054 by default when -Wno-error is not specified.
17055 * opts-global.c (decode_options): Remove call to
17056 control_warning_options.
17058 2011-04-22 Jakub Jelinek <jakub@redhat.com>
17060 PR tree-optimization/48717
17061 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
17062 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
17064 2011-04-22 Joseph Myers <joseph@codesourcery.com>
17066 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
17067 definition where used.
17069 2011-04-22 Jakub Jelinek <jakub@redhat.com>
17072 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
17073 TREE_STATIC variables declared inside of some OpenMP construct.
17075 2011-04-22 Martin Jambor <mjambor@suse.cz>
17077 PR middle-end/48585
17078 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
17080 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
17083 * c-typeck.c (pop_init_level): Do not warn about initializing
17086 2011-04-22 Alan Modra <amodra@gmail.com>
17088 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
17089 when returning call_cookie.
17090 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
17091 pointers, to functions with no more vector args than the current
17092 function, and some non-local calls for ABI_V4.
17093 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
17094 sibcall_nonlocal_aix64): Combine to ..
17095 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
17096 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
17097 (sibcall_value_nonlocal_aix<mode>): ..likewise.
17098 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
17099 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
17101 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
17102 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
17103 sibcall_value_symbolic_64): Delete.
17105 2011-04-21 Xinliang David Li <davidxl@google.com>
17107 * cgraph.h: Remove pid.
17108 * cgraph.c: Remove pid.
17109 * value-prof.c (init_node_map): New function.
17110 (del_node_map): New function.
17111 (find_func_by_funcdef_no): New function.
17112 (gimple_ic_transform): Call new function.
17113 * cgraphunit.c (cgraph_finalize_function): Remove pid.
17114 * function.c (get_last_funcdef_no): New function.
17115 * function.h (get_last_funcdef_no): New function.
17116 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
17117 to libgcov function.
17118 (tree-profiling): Call node map init and delete function.
17120 2011-04-21 Ian Lance Taylor <iant@google.com>
17122 * godump.c (go_format_type): Use exported Go name for anonymous
17125 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
17127 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
17128 Call builtin_function_type_list instead of builtin_function_type.
17129 (UNARY, BINARY, TRINARY, QUAD): Likewise.
17131 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
17133 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
17134 build_function_type_list instead of build_function_type.
17135 Delete variable `endlink'.
17137 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
17139 * config/s390/s390.c (s390_init_builtins): Call
17140 build_function_type_list instead of build_function_type.
17142 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
17144 * config/ia64/ia64.c (ia64_init_builtins): Call
17145 build_function_type_list instead of builtin_function_type.
17147 2011-04-21 Easwaran Raman <eraman@google.com>
17149 * cfgexpand.c (stack_var): Remove OFFSET...
17150 (add_stack_var): ...and its reference here...
17151 (expand_stack_vars): ...and here.
17152 (stack_var_cmp): Sort by descending order of size.
17153 (partition_stack_vars): Change heuristic.
17154 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
17155 (dump_stack_var_partition): Add newline after each partition.
17157 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
17158 Jeff Law <law@redhat.com>
17160 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
17161 * gengtype.c (matching_file_name_substitute): Likewise.
17163 2011-04-21 Richard Guenther <rguenther@suse.de>
17166 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
17168 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
17170 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
17172 2011-04-21 Richard Guenther <rguenther@suse.de>
17174 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
17177 2011-04-21 Richard Guenther <rguenther@suse.de>
17179 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
17180 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
17181 Use DECL_P, not SSA_VAR_P.
17182 (ptr_derefs_may_alias_p): Likewise.
17183 (ptr_deref_may_alias_ref_p_1): Likewise.
17184 (decl_refs_may_alias_p): Likewise.
17185 (refs_may_alias_p_1): Likewise.
17186 (ref_maybe_used_by_call_p_1): Likewise.
17187 (call_may_clobber_ref_p_1): Likewise.
17188 (indirect_ref_may_alias_decl_p): Assume indirect refrences
17189 are either MEM_REF or TARGET_MEM_REF.
17190 (indirect_refs_may_alias_p): Likewise.
17191 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
17192 for MEM_EXPR of indirect calls.
17194 2011-04-21 Tristan Gingold <gingold@adacore.com>
17196 * vmsdbgout.c (write_srccorr): Compute file length from the string.
17197 (dst_file_info_struct): Remove flen field.
17198 (lookup_filename): Remove code that set flen field.
17200 2011-04-21 Tristan Gingold <gingold@adacore.com>
17202 * config/ia64/ia64.c (ia64_start_function): Add a guard.
17204 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
17207 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
17208 vec_extract and vec_concat for non-SSE4_1 targets.
17210 2011-04-21 Richard Guenther <rguenther@suse.de>
17212 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
17215 2011-04-21 Joseph Myers <joseph@codesourcery.com>
17217 * config/i386/cygming.h (union tree_node, TREE): Don't define or
17219 (FILE): Don't undefine.
17221 2011-04-21 Joseph Myers <joseph@codesourcery.com>
17223 * config/alpha/alpha.c (struct machine_function): Use rtx, not
17225 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
17227 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
17228 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
17229 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
17231 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
17232 definitions where used.
17233 * config/microblaze/microblaze.h (struct microblaze_args): Use
17234 rtx, not struct rtx_def *.
17235 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
17237 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
17238 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
17239 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
17240 not struct rtx_def *.
17241 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
17243 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
17245 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
17247 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
17249 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
17250 operand_equal_p to compare DR_BASE_ADDRESSes.
17251 (vect_check_interleaving): Likewise.
17253 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
17256 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
17257 for all Neon struct constants.
17259 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
17261 * target.def (legitimate_constant_p): New hook.
17262 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
17263 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
17264 * doc/tm.texi: Regenerate.
17265 * hooks.h (hook_bool_mode_rtx_true): Declare.
17266 * hooks.c (hook_bool_mode_rtx_true): Define.
17267 * system.h (LEGITIMATE_CONSTANT_P): Poison.
17268 * calls.c (precompute_register_parameters): Replace uses of
17269 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
17270 (emit_library_call_value_1): Likewise.
17271 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
17272 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
17273 * ira-costs.c (scan_one_insn): Likewise.
17274 * recog.c (general_operand, immediate_operand): Likewise.
17275 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
17276 * reload1.c (init_eliminable_invariants): Likewise.
17278 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
17280 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
17281 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
17283 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17284 * config/alpha/predicates.md (input_operand): Update call to
17285 alpha_legitimate_constant_p.
17287 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
17288 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
17289 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
17290 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17291 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
17292 (arm_legitimate_constant_p): New functions.
17293 (arm_cannot_force_const_mem): Make static.
17295 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
17297 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
17298 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
17299 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
17300 instead of bfin_legitimate_constant_p.
17301 (bfin_legitimate_constant_p): Make static. Add a mode argument.
17302 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17304 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
17306 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
17308 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
17309 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
17310 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17311 (frv_legitimate_constant_p): Make static. Add a mode argument.
17313 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
17314 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
17315 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
17317 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
17318 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
17319 * config/i386/i386.c (legitimate_constant_p): Rename to...
17320 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
17322 (ix86_cannot_force_const_mem): Update accordingly.
17323 (ix86_legitimate_address_p): Likewise.
17324 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17325 * config/i386/i386.md: Update commentary.
17327 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
17328 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
17329 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17330 (ia64_legitimate_constant_p): Make static. Add a mode argument.
17332 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
17334 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
17335 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
17336 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17337 (lm32_legitimate_constant_p): Make static. Add a mode argument.
17339 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
17340 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
17341 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
17343 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
17344 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17345 (m32r_legitimate_constant_p): New function.
17347 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
17348 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
17349 LEGITIMATE_CONSTANT_P.
17350 (LEGITIMATE_CONSTANT_P): Delete.
17351 * config/m68k/m68k.c (m68k_expand_prologue): Call
17352 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
17353 (m68k_legitimate_constant_p): New function.
17354 * config/m68k/m68k.md: Update comments.
17356 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
17357 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17358 (mcore_legitimate_constant_p): New function.
17360 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
17361 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
17362 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
17363 Add a mode argument.
17364 (mep_legitimate_address): Update accordingly.
17365 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17367 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
17369 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
17370 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
17371 static. Check OP's mode for VOIDmode.
17372 (microblaze_legitimate_constant_p): New function.
17373 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17375 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
17376 * config/mips/mips.c (mips_legitimate_constant_p): New function.
17377 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
17378 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17379 * config/mips/predicates.md: Update comments.
17381 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
17382 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
17383 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17384 (mmix_legitimate_constant_p): Make static, return a bool, and take
17386 (mmix_print_operand_address): Update accordingly.
17388 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
17390 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
17391 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
17392 static. Add a mode argument.
17393 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17395 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
17397 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
17398 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17399 (pa_legitimate_constant_p): New function.
17401 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
17403 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
17404 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17405 (pdp11_legitimate_constant_p): New function.
17407 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
17408 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17409 (rs6000_legitimate_constant_p): New function.
17411 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
17412 (rx_legitimate_constant_p): ...this.
17413 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
17414 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
17415 (rx_legitimate_constant_p): ...this.
17416 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17417 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
17419 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
17420 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
17421 * config/s390/s390.c (legitimate_constant_p): Rename to...
17422 (s390_legitimate_constant_p): ...this. Make static, return a bool,
17423 and add a mode argument.
17424 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17426 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
17428 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
17429 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17430 (sh_legitimate_constant_p): New function.
17432 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
17433 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
17434 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17435 (legitimate_constant_p): Rename to...
17436 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
17438 (constant_address_p): Update accordingly.
17440 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
17441 argument and return a bool.
17442 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
17443 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17444 (spu_legitimate_constant_p): Add a mode argument and return a bool.
17445 (spu_rtx_costs): Update accordingly.
17446 * config/spu/predicates.md (vec_imm_operand): Likewise.
17448 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
17450 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
17451 * config/v850/v850.c (v850_legitimate_constant_p): New function.
17452 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17454 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
17455 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
17456 * config/vax/vax.c (legitimate_constant_p): Likewise.
17458 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
17459 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17460 (xtensa_legitimate_constant_p): New function.
17462 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
17464 * target.def (cannot_force_const_mem): Add a mode argument.
17465 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
17466 * doc/tm.texi: Regenerate.
17467 * hooks.h (hook_bool_mode_rtx_false): Declare.
17468 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
17469 (hook_bool_mode_const_rtx_true): Likewise.
17470 (hook_bool_mode_rtx_false): New function.
17471 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
17472 to be non-VOID. Update call to cannot_force_const_mem.
17473 (find_reloads): Update accordingly.
17474 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
17475 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
17477 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
17478 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
17479 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
17480 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
17481 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
17482 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
17483 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
17484 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
17485 (m68k_cannot_force_const_mem): ...this new function.
17486 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
17488 (mips_const_insns, mips_legitimize_const_move): Update calls.
17489 (mips_secondary_reload_class): Likewise.
17490 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
17491 (pa_cannot_force_const_mem): ...this new function.
17492 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
17493 (rs6000_cannot_force_const_mem): ...this new function.
17494 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
17496 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
17497 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
17499 (xtensa_cannot_force_const_mem): ...this new function.
17501 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
17503 * config/mips/mips.c (mips16_build_function_stub): Call
17504 build_function_type_list instead of build_function_type.
17505 (mips16_build_call_stub): Likewise.
17507 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
17509 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
17510 instead of build_function_type.
17512 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
17514 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
17515 instead of build_function_type.
17517 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
17520 * config/i386/i386.md (insv): Change operand 0 constraint to
17521 "register_operand". Change operand 1 and 2 constraint to
17522 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
17523 * config/i386/sse.md (sse4_1_pinsrb): Export.
17524 (sse2_pinsrw): Ditto.
17525 (sse4_1_pinsrd): Ditto.
17526 (sse4_1_pinsrq): Ditto.
17527 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
17528 * config/i386/i386.c (ix86_expand_pinsr): New.
17530 2011-04-20 Easwaran Raman <eraman@google.com>
17532 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
17533 containing union type only with -fstrict-aliasing.
17535 2011-04-20 Jim Meyering <meyering@redhat.com>
17537 Remove useless if-before-free tests.
17538 * calls.c (expand_call, save_area): Likewise.
17539 * cfgcleanup.c (try_forward_edges): Likewise.
17540 * collect2.c (collect_execute): Likewise.
17541 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
17542 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
17543 * coverage.c (coverage_checksum_string): Likewise.
17544 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
17545 * cselib.c (cselib_init): Likewise.
17546 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
17547 (df_set_clean_cfg): Likewise.
17548 * function.c (free_after_compilation): Likewise.
17549 * gcc.c (do_spec_1, main): Likewise.
17550 * gcov.c (create_file_names): Likewise.
17551 * gensupport.c (identify_predicable_attribute): Likewise.
17552 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
17553 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
17554 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
17555 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
17556 * ipa-pure-const.c (local_pure_const): Likewise.
17557 * ipa-reference.c (propagate): Likewise.
17558 * ira-costs.c (free_ira_costs): Likewise.
17559 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
17560 * matrix-reorg.c (mat_free): Likewise.
17561 * prefix.c (get_key_value): Likewise.
17562 * profile.c (compute_value_histograms): Likewise.
17563 * reload1.c (free_reg_equiv): Likewise.
17564 * sched-deps.c (free_deps): Likewise.
17565 * sel-sched-ir.c (fence_clear): Likewise.
17566 * sese.c (set_rename, if_region_set_false_region): Likewise.
17567 * tree-data-ref.c (free_rdg): Likewise.
17568 * tree-eh.c (lower_try_finally): Likewise.
17569 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
17570 * tree-ssa-live.c (delete_var_map): Likewise.
17571 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
17572 * tree-ssa-pre.c (phi_trans_add): Likewise.
17574 2011-04-20 Jakub Jelinek <jakub@redhat.com>
17576 PR tree-optimization/48611
17577 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
17578 beyond ERT_MUST_NOT_THROW region.
17580 2011-04-20 Catherine Moore <clm@codesourcery.com>
17582 * config/mips/mips.opt (mfix-24k): New.
17583 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
17584 * config/mips/mips.md (length): Increase by 4 for stores if
17586 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
17587 all noreorder if fixing 24K errata.
17588 * doc/invoke.texi: Document mfix-24k.
17590 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
17592 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
17593 quad-word modes, reduce to 9-bit index range when above 1016 limit.
17595 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
17597 * config/arm/arm.c (arm_gen_constant): Move movw support ....
17598 (const_ok_for_op): ... to here.
17600 2011-04-20 Kai Tietz <ktietz@redhat.com>
17602 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
17603 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
17605 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
17607 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
17609 2011-04-20 Richard Guenther <rguenther@suse.de>
17611 PR tree-optimization/47892
17612 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
17613 are if-convertible.
17615 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
17617 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
17619 2011-04-20 Tristan Gingold <gingold@adacore.com>
17621 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
17623 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
17627 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
17628 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
17629 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
17630 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
17631 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
17633 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
17636 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
17637 (avr_asm_named_section, avr_asm_output_aligned_common,
17638 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
17639 New functions to update...
17640 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
17641 (avr_asm_init_sections): Overwrite section callbacks for
17642 data_section, bss_section.
17643 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
17645 (avr_file_end): ...here.
17647 2011-04-20 Richard Guenther <rguenther@suse.de>
17649 PR middle-end/48695
17650 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
17651 objects and types here. Adjust for their offset before comparing.
17653 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
17655 * tree-vect-stmts.c (vectorizable_store): Only chain one related
17656 statement per copy.
17658 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
17660 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
17661 (GIMPLE_H): Include $(INTERNAL_FN_H).
17662 (OBJS-common): Add internal-fn.o.
17663 (internal-fn.o): New rule.
17664 * internal-fn.def: New file.
17665 * internal-fn.h: Likewise.
17666 * internal-fn.c: Likewise.
17667 * gimple.h: Include internal-fn.h.
17668 (GF_CALL_INTERNAL): New gf_mask.
17669 (gimple_statement_call): Put fntype into a union with a new
17671 (gimple_build_call_internal): Declare.
17672 (gimple_build_call_internal_vec): Likewise.
17673 (gimple_call_same_target_p): Likewise.
17674 (gimple_call_internal_p): New function.
17675 (gimple_call_internal_fn): Likewise.
17676 (gimple_call_fntype): Return null for internal calls.
17677 (gimple_call_set_fntype): Assert that the function is not internal.
17678 (gimple_call_set_fn): Likewise.
17679 (gimple_call_set_fndecl): Likewise.
17680 (gimple_call_set_internal_fn): New function.
17681 (gimple_call_addr_fndecl): Handle null functions.
17682 (gimple_call_return_type): Likewise null types.
17683 * gimple.c (gimple_build_call_internal_1): New function.
17684 (gimple_build_call_internal): Likewise.
17685 (gimple_build_call_internal_vec): Likewise.
17686 (gimple_call_same_target_p): Likewise.
17687 (gimple_call_flags): Handle calls to internal functions.
17688 (gimple_call_fnspec): New function.
17689 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
17690 (gimple_has_side_effects): Handle null functions.
17691 (gimple_rhs_has_side_effects): Likewise.
17692 (gimple_call_copy_skip_args): Handle calls to internal functions.
17693 * cfgexpand.c (expand_call_stmt): Likewise.
17694 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
17695 * gimple-fold.c (gimple_fold_call): Handle null functions.
17696 (gimple_fold_stmt_to_constant_1): Don't fold
17697 calls to internal functions.
17698 * gimple-low.c (gimple_check_call_args): Handle calls to internal
17700 * gimple-pretty-print.c (dump_gimple_call): Likewise.
17701 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
17702 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
17703 (do_warn_unused_result): Likewise.
17704 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
17705 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
17706 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
17707 the target of a call.
17708 (initialize_hash_element): Update accordingly.
17709 (hashable_expr_equal_p): Use gimple_call_same_target_p.
17710 (iterative_hash_hashable_expr): Handle calls to internal functions.
17711 (print_expr_hash_elt): Likewise.
17712 * tree-ssa-pre.c (can_value_number_call): Likewise.
17713 (eliminate): Handle null functions.
17714 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
17715 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
17716 (find_func_aliases): Likewise.
17717 * value-prof.c (gimple_ic_transform): Likewise.
17718 (gimple_indirect_call_to_profile): Likewise.
17719 * lto-streamer-in.c (input_gimple_stmt): Likewise.
17720 * lto-streamer-out.c (output_gimple_stmt): Likewise.
17722 2011-04-19 Jan Hubicka <jh@suse.cz>
17724 * ipa-inline-transform.c (save_inline_function_body): Add comments.
17725 * ipa-inline.c (inline_small_functions): Compute summaries first,
17726 populate heap later.
17728 2011-04-19 Jan Hubicka <jh@suse.cz>
17730 * cgraph.h (save_inline_function_body): Remove.
17731 * ipa-inline-transform.c: New file, broke out of...
17732 * ipa-inline.c: ... this one; Update toplevel comment.
17733 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
17735 (update_noncloned_frequencies): Move to ipa-inline-transform.c
17736 (cgraph_mark_inline_edge): Rename to inline_call; move to
17737 ipa-inline-transform.c.
17738 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
17739 move to ipa-inline-transform.c
17740 (recursive_inlining, inline_small_functions, flatten_function,
17741 ipa_inline, inline_always_inline_functions,
17742 early_inline_small_functions): Update.
17743 (inline_transform): Move to ipa-inline-transform.c.
17744 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
17746 * Makefile.in (ipa-inline-transform.o): New file.
17747 * cgraphunit.c (save_inline_function_body): Move to
17748 ipa-inline-transform.c
17750 2011-04-19 DJ Delorie <dj@redhat.com>
17752 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
17753 registers if we already know there aren't any.
17754 (m32c_emit_epilogue): Don't emit a barrier here.
17755 (m32c_emit_eh_epilogue): Likewise.
17756 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
17757 operands at expand time.
17758 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
17760 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
17761 duplicates. Provide aliases instead.
17762 * config/m32c/prologue.md (eh_return): Emit a barrier here.
17763 (eh_epilogue): Add a "(return)" here as a hint to other parts of
17766 2011-04-19 Anatoly Sokolov <aesok@post.ru>
17768 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
17769 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
17770 (general_or_i64_p, sparc_register_move_cost): New function.
17772 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17774 * doc/install.texi (Configuration, --enable-threads): Remove mach.
17775 Add lynx, mipssde. Sort table.
17777 2011-04-19 Xinliang David Li <davidxl@google.com>
17779 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
17782 2011-04-19 Jakub Jelinek <jakub@redhat.com>
17785 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
17786 is a SUBREG with non-MODE_INT mode inside of it.
17788 2011-04-19 Martin Jambor <mjambor@suse.cz>
17790 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
17791 also according to actual contants.
17792 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
17793 (gimple_fold_call): Use it.
17794 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
17796 2011-04-19 Martin Jambor <mjambor@suse.cz>
17798 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
17799 non-pointer assignments.
17801 2011-04-19 Martin Jambor <mjambor@suse.cz>
17803 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
17804 account anc_offset and otr_type from the indirect edge info.
17805 * ipa-prop.c (get_ancestor_addr_info): New function.
17806 (compute_complex_ancestor_jump_func): Assignment analysis moved to
17807 get_ancestor_addr_info, call it.
17808 (ipa_note_param_call): Do not initialize information about polymorphic
17809 calls, return the indirect call graph edge. Remove the last
17810 parameter, adjust all callers.
17811 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
17812 parameters. Initialize polymorphic information in the indirect edge.
17814 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
17817 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
17818 the types if they have different enumeration identifiers.
17820 2011-04-19 Jan Hubicka <jh@suse.cz>
17822 * cgraph.h (cgraph_optimize_for_size_p): Declare.
17823 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
17824 * predict.c (cgraph_optimize_for_size_p): Break out from ...
17825 (optimize_function_for_size_p) ... here.
17827 2011-04-19 Richard Guenther <rguenther@suse.de>
17830 * tree.c (free_lang_data): Do not reset the decl-assembler-name
17833 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
17835 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
17836 if DECL_NO_INLINE_WARNING_P is set on the function.
17838 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
17841 * reload1.c (inc_for_reload): Return void. All callers changed.
17842 (emit_input_reload_insns): Don't try to delete previous output
17843 reloads to a register, or record spill_reg_store for autoincs.
17845 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
17847 * gengtype.h: Updated copyright year.
17848 (struct input_file_st): Add inpisplugin field.
17849 (type_fileloc): New function.
17851 (write_typed_struct_alloc_def): Add gcc_assert.
17852 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
17853 (write_typed_alloc_defns): Don't output for plugin files.
17854 (input_file_by_name): Clear inpisplugin field.
17855 (main): Set inpisplugin field for plugin files.
17857 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
17859 * gengtype-state.c (string_eq): New.
17860 (read_state): Use string_eq instead of strcmp when creating the
17863 2011-04-19 Wei Guozhi <carrot@google.com>
17866 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
17867 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
17869 * config/arm/constraints.md (Uu): New constraint.
17870 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
17872 2011-04-19 Tristan Gingold <gingold@adacore.com>
17874 * config.gcc (-*-*-*vms): Added.
17875 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
17877 * config/vms/vms-ld.c: New file.
17878 * config/vms/vms-ar.c: New file.
17879 * config/vms/t-vmsnative: New file.
17881 2011-04-18 Xinliang David Li <davidxl@google.com>
17883 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
17885 2011-04-18 Jakub Jelinek <jakub@redhat.com>
17887 PR middle-end/48661
17888 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
17889 if TREE_TYPE (v) is non-NULL.
17891 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
17892 gimple_get_virt_mehtod_for_binfo.
17893 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
17894 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
17896 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17898 2011-04-18 Michael Matz <matz@suse.de>
17899 Steve Ellcey <sje@cup.hp.com>
17901 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
17902 use its mode as source mode if it isn't VOIDmode.
17904 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
17906 * doc/passes.texi: Fill crossref nodes.
17908 2011-04-18 Jim Meyering <meyering@redhat.com>
17910 Fix doubled-word typos in comments and strings
17911 * config/alpha/vms-unwind.h: s/for for/for/
17912 * config/arm/unwind-arm.h: Likewise.
17913 * config/microblaze/microblaze.c: Likewise.
17914 * config/sh/constraints.md: s/in in/in/
17915 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
17917 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
17919 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
17920 (AVX_FLOAT_MODE_P): Ditto.
17921 (AVX128_VEC_FLOAT_MODE_P): Ditto.
17922 (AVX256_VEC_FLOAT_MODE_P): Ditto.
17923 (AVX_VEC_FLOAT_MODE_P): Ditto.
17924 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
17925 (UNSPEC_MASKSTORE): Ditto.
17926 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
17927 Merge from <sse>_movmsk<ssemodesuffix> and
17928 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
17929 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
17931 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
17932 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
17933 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
17935 2011-04-18 Jan Hubicka <jh@suse.cz>
17937 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
17939 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
17940 (want_inline_function_called_once_p): Break out the logic from
17942 (edge_badness): Ensure that profile is not misupdated.
17943 (lookup_recursive_calls): Prioritize by call frequencies.
17944 (inline_small_functions): Move program size estimates here;
17945 actually process whole queue even when unit growth has been
17946 met. (to properly compute inline_failed reasons and for the
17947 case unit size decrease.) Revisit comments on recursive inlining.
17948 (ipa_inline): Remove unit summary code; first inline hot calls
17949 of functions called once, cold calls next.
17950 (order, nnodes): Remove unused variables.
17951 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
17952 (GTFILES): Remove ipa-inline.c
17953 * sel-sched.c (fill_insns): Silence uninitialized var warning.
17955 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
17957 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
17959 2011-04-18 Jie Zhang <jie@codesourcery.com>
17960 Richard Earnshaw <rearnsha@arm.com>
17962 * arm.c (neon_builtin_type_bits): Remove.
17963 (typedef enum neon_builtin_mode): New.
17964 (T_MAX): Don't define.
17965 (typedef enum neon_builtin_datum): Remove bits, codes[],
17966 num_vars and base_fcode. Add mode, code and fcode.
17967 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
17968 VAR10): Change accordingly.
17969 (neon_builtin_data[]): Change accordingly
17970 (arm_init_neon_builtins): Change accordingly.
17971 (neon_builtin_compare): Remove.
17972 (locate_neon_builtin_icode): Remove.
17973 (arm_expand_neon_builtin): Change accordingly.
17975 * arm.h (enum arm_builtins): Move to ...
17976 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
17978 * arm.c (arm_builtin_decl): Declare.
17979 (TARGET_BUILTIN_DECL): Define.
17980 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
17981 (arm_builtin_decls[]): New.
17982 (arm_init_neon_builtins): Store builtin declarations in
17983 arm_builtin_decls[].
17984 (arm_init_tls_builtins): Likewise.
17985 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
17986 (arm_builtin_decl): New.
17988 2011-04-18 Richard Guenther <rguenther@suse.de>
17990 * tree.c (upper_bound_in_type): Build properly canonicalized
17992 (lower_bound_in_type): Likewise.
17994 2011-04-18 Richard Guenther <rguenther@suse.de>
17996 * gimple.h (gimple_call_addr_fndecl): New function.
17997 (gimple_call_fndecl): Use it.
17998 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
18000 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
18001 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
18003 2011-04-18 Richard Guenther <rguenther@suse.de>
18005 PR middle-end/48650
18006 * tree.c (build_string): STRING_CST is now derived from tree_typed.
18008 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
18011 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
18012 DECL_IN_CONSTANT_POOL without RTL.
18014 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
18015 Ira Rosen <ira.rosen@linaro.org>
18018 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
18019 to match neon_vzip/vuzp/vtrn_internal.
18020 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
18021 outputs explicitly dependent on both inputs.
18022 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
18024 2011-04-18 Jakub Jelinek <jakub@redhat.com>
18026 PR tree-optimization/48616
18027 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
18028 whether the shift is by scalar or vector based on whether all SLP
18029 scalar stmts have the same rhs.
18031 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
18033 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
18036 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
18039 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
18042 2011-04-17 Jan Hubicka <jh@suse.cz>
18044 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
18045 * cgrpahunit.c (cgraph_finalize_function): Do not set
18046 finalized_by_frontend.
18047 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
18048 finalized_by_frontend.
18050 2011-04-17 Jan Hubicka <jh@suse.cz>
18052 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
18053 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
18054 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
18055 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
18057 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
18059 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
18061 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
18064 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
18065 is non-null before accessing it.
18066 (input_cgraph): Remove trailing spaces.
18068 2011-04-17 Revital Eres <revital.eres@linaro.org>
18070 * params.def (sms-min-sc): New param flag.
18071 * modulo-sched.c (sms_schedule): Use it.
18072 * doc/invoke.texi (sms-min-sc): Document it.
18074 2011-04-17 Jan Hubicka <jh@suse.cz>
18076 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
18077 present, also set gimple_call_set_cannot_inline.
18078 * ipa-inline.c: Update toplevel comment.
18079 (MAX_TIME): Remove.
18080 (cgraph_clone_inlined_nodes): Fix linebreaks.
18081 (cgraph_check_inline_limits): Restructure to ...
18082 (caller_growth_limits): ... this one; be more tolerant
18083 on growth in nested inline chains; add explanatory comment;
18084 fix stack accounting thinko introduced by previous patch.
18085 (cgraph_default_inline_p): Remove.
18086 (report_inline_failed_reason): New function.
18087 (can_inline_edge_p): New function.
18088 (can_early_inline_edge_p): New function.
18089 (leaf_node_p): Move upwards in file.
18090 (want_early_inline_function_p): New function.
18091 (want_inline_small_function_p): New function.
18092 (want_inline_self_recursive_call_p): New function.
18093 (cgraph_edge_badness): Rename to ...
18094 (edge_badness) ... this one; fix linebreaks.
18095 (update_edge_key): Update call of edge_baddness; add
18096 detailed dump about queue updates.
18097 (update_caller_keys): Use can_inline_edge_p and
18098 want_inline_small_function_p.
18099 (cgraph_decide_recursive_inlining): Rename to...
18100 (recursive_inlining): Use can_inline_edge_p and
18101 want_inline_self_recursive_call_p; simplify and remove no longer
18103 (cgraph_set_inline_failed): Remove.
18104 (add_new_edges_to_heap): Use can_inline_edge_p and
18105 want_inline_small_function_p.
18106 (cgraph_decide_inlining_of_small_functions): Rename to ...
18107 (inline_small_functions): ... this one; cleanup; use
18108 can/want predicates; cleanup debug ouput; work edges till fibheap
18109 is exhausted and do not stop once unit growth is reached; remove
18110 later loop processing remaining edges.
18111 (cgraph_flatten): Rename to ...
18112 (flatten_function): ... this one; use can_inline_edge_p
18113 and can_early_inline_edge_p predicates.
18114 (cgraph_decide_inlining): Rename to ...
18115 (ipa_inline): ... this one; remove unreachable nodes before
18116 inlining functions called once; simplify the pass.
18117 (cgraph_perform_always_inlining): Rename to ...
18118 (inline_always_inline_functions): ... this one; use
18119 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
18120 (cgraph_decide_inlining_incrementally): Rename to ...
18121 (early_inline_small_functions): ... this one; simplify
18122 using new predicates; cleanup; make dumps prettier.
18123 (cgraph_early_inlining): Rename to ...
18124 (early_inliner): newer inline regular functions into always-inlines;
18125 fix updating of call stmt summaries.
18126 (pass_early_inline): Update for new names.
18127 (inline_transform): Fix formating.
18128 (gate_cgraph_decide_inlining): Rename to ...
18129 (pass_ipa_inline): ... this one.
18130 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
18131 * ipa-inline-analysis.c (dump_inline_summary): Update.
18132 (compute_inline_parameters): Do not compute disregard_inline_limits;
18133 look for mismatching arguments.
18134 (estimate_growth): Fix handlig of non-trivial self recursion.
18135 (inline_read_summary): Do not read info->disregard_inline_limits.
18136 (inline_write_summary): Do not write info->disregard_inline_limits.
18137 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
18138 and move all checks into can_inline_edge_p predicate; re-enable code
18139 comparing optimization levels.
18140 (expand_call_inline): Do not test inline_forbidden_into_p.
18141 * Makefile.in (ipa-inline.o): Update arguments.
18143 2011-04-17 Revital Eres <revital.eres@linaro.org>
18145 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
18147 2011-04-17 Revital Eres <revital.eres@linaro.org>
18149 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
18151 2011-04-17 Michael Matz <matz@suse.de>
18153 PR tree-optimization/48622
18155 * ipa-inline-analysis.c (inline_read_summary): Read size/time
18156 in same order as they're written.
18158 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18160 * config/pa/predicates.md: Reorganize and simplify predicates.
18161 Eliminate duplicate code checks.
18162 (arith_operand): Rename to arith14_operand
18163 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
18164 * config/pa/pa.md: Use renamed operands.
18165 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
18166 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
18167 arith11_operand, adddi3_operand, indexed_memory_operand,
18168 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
18169 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
18170 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
18171 move_dest_operand, move_src_operand, prefetch_cc_operand,
18172 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
18173 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
18174 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
18175 div_operand, int5_operand, movb_comparison_operator,
18176 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
18177 arith_double_operand, ireg_operand, lhs_lshift_operand,
18178 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
18179 integer_store_memory_operand): Likewise.
18180 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
18181 (integer_store_memory_operand, read_only_operand,
18182 function_label_operand, borx_reg_operand,
18183 non_hard_reg_operand): Likewise.
18184 (eq_neq_comparison_operator): Delete unused operator.
18185 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
18186 function_label_operand.
18187 (emit_move_sequence): Likewise.
18189 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
18191 * config/i386/sse.md (sseunpackmode): New mode attribute.
18192 (ssepackmode): Ditto.
18193 (vec_pack_trunc_<mode>): Macroize expander from
18194 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
18195 (vec_unpacks_lo_<mode>): Macroize expander from
18196 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18197 (vec_unpacks_hi_<mode>): Macroize expander from
18198 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18199 (vec_unpacku_lo_<mode>): Macroize expander from
18200 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18201 (vec_unpacku_hi_<mode>): Macroize expander from
18202 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18203 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
18204 ix86_expand_sse4_unpack.
18205 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
18207 2011-04-16 Jan Hubicka <jh@suse.cz>
18209 * cgraphbuild.c: Include ipa-inline.h.
18210 (reset_inline_failed): Use initialize_inline_failed.
18211 * cgraph.c: Include ipa-inline.h.
18212 (cgraph_create_node_1): Do not initialize estimated_growth.
18213 (initialize_inline_failed): More to ipa-inline-analysis.c
18214 (dump_cgraph_node): Do not dump inline flags.
18215 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
18216 and disregard_inline_limits flags.
18217 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
18218 time, size, estimated_growth.
18219 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
18221 * cgraphunit.c (cgraph_decide_is_function_needed): Use
18222 DECL_DISREGARD_INLINE_LIMITS.
18223 (cgraph_analyze_function): Do not initialize
18224 node->local.disregard_inline_limits.
18225 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
18226 inlinable, versionable and disregard_inline_limits.
18227 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
18228 cgraph_check_inline_limits, cgraph_default_inline_p,
18229 cgraph_edge_badness, update_caller_keys, update_callee_keys,
18230 add_new_edges_to_heap): Update.
18231 (cgraph_decide_inlining_of_small_function): Update; set
18232 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
18233 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
18234 cgraph_decide_inlining_incrementally): Update.
18235 * ipa-inline.h (inline_summary): Add inlinable, versionable,
18236 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
18237 time, size and estimated_growth parameters.
18238 (estimate_edge_growth): Update.
18239 (initialize_inline_failed): Declare.
18240 * ipa-split.c: Include ipa-inline.h
18241 (execute_split_functions): Update.
18242 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
18243 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
18244 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
18245 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
18246 estimated_growth to INT_MIN.
18247 (inline_node_duplication_hook): Likewise.
18248 (dump_inline_summary): Dump new fields.
18249 (compute_inline_parameters): Update.
18250 (estimate_edge_time, estimate_time_after_inlining,
18251 estimate_size_after_inlining, estimate_growth, inline_read_summary,
18252 inline_write_summary):
18253 (initialize_inline_failed): Move here from cgraph.c.
18254 * tree-sra.c: Include ipa-inline.h.
18255 (ipa_sra_preliminary_function_checks): Update.
18256 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
18259 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
18261 * config/i386/sse.md (V16): New mode iterator.
18263 (AVXMODEQI, AVXMODEDI): Remove.
18264 (sse2, sse3): New mode attribute.
18265 (mov<mode>): Use V16 mode iterator.
18266 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
18267 (push<mode>1): Use V16 mode iterator.
18268 (movmisalign<mode>): Ditto.
18269 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
18270 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
18271 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
18272 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
18273 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
18274 avx_movdqu<avxmodesuffix>.
18275 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
18276 *avx_movdqu<avxmodesuffix>.
18277 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
18278 avx_lddqu<avxmodesuffix>.
18279 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
18280 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
18281 avx_movnt<AVXMODEDI:mode>.
18282 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
18283 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
18285 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
18288 * haifa-sched.c (prune_ready_list, schedule_block): Use
18289 sched_pressure_p rather than flag_sched_pressure.
18291 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
18293 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
18294 cgraph_get_node instead of cgraph_get_create_node.
18296 2011-04-15 Jakub Jelinek <jakub@redhat.com>
18298 * cfgexpand.c (expand_debug_expr): Use
18299 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
18301 2011-04-15 Michael Matz <matz@suse.de>
18303 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
18304 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
18305 * function.c (gimplify_parameters): Ditto.
18306 * gimplify.c (gimplify_vla_decl): Ditto.
18308 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
18309 (gimple_call_set_alloca_for_var): New inline function.
18310 (gimple_call_alloca_for_var_p): Ditto.
18311 * gimple.c (gimple_build_call_from_tree): Remember
18312 CALL_ALLOCA_FOR_VAR_P state.
18313 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
18315 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
18316 calls if they were for VLA objects.
18318 2011-04-15 Martin Jambor <mjambor@suse.cz>
18320 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
18323 2011-04-15 Martin Jambor <mjambor@suse.cz>
18325 PR middle-end/48601
18326 * tree-emutls.c (lower_emutls_function_body): Call
18327 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
18328 result is non-NULL.
18330 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
18332 * c-decl.c (detect_field_duplicates): Call
18333 objc_detect_field_duplicates instead of objc_get_interface_ivars.
18335 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
18337 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
18338 * gimple.c (gimple_asm_clobbers_memory_p): Define.
18339 * ipa-pure-const.c (check_stmt): Call it.
18340 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
18342 2011-04-15 Richard Guenther <rguenther@suse.de>
18344 PR tree-optimization/48290
18345 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
18346 Properly decide inhibiting propagation based on the valueized
18347 operand. Do loop-closed SSA form preserving here ...
18348 (init_copy_prop): ... not here.
18350 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
18353 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
18354 (*ieee_smax<mode>3): Likewise.
18356 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18358 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
18359 Replace match_operand with match_dup for the third operand in
18362 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
18364 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
18365 to track processing of conditionals. Update all callers.
18366 (try_combine, simplify_if_then_else): Update.
18368 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
18370 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
18373 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
18375 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
18376 instead of match_operand for operand 3.
18378 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
18380 * recog.h (insn_operand_data): Add an "allows_mem" field.
18381 * genoutput.c (output_operand_data): Initialize it.
18382 * optabs.c (maybe_legitimize_operand_same_code): New function.
18383 (maybe_legitimize_operand): Use it when matching the original
18386 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
18388 * gimplify.c: Fix issues in comments throughout.
18389 (voidify_wrapper_expr): Fix long line.
18390 (build_stack_save_restore): Likewise.
18391 (gimplify_loop_expr): Likewise.
18392 (gimplify_compound_lval): Likewise.
18393 (gimplify_init_ctor_eval): Likewise.
18394 (gimplify_modify_expr_rhs): Likewise.
18395 (omp_notice_threadprivate_variable): Likewise.
18397 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
18399 * cfgexpand.c (expand_call_stmt): Convert the function type to the
18400 original one if this is not a builtin function.
18402 2011-04-14 Jakub Jelinek <jakub@redhat.com>
18405 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
18406 offset it as needed based on top 2 bits in operands[3], change
18407 MEM mode to SFmode and mask those 2 bits away from operands[3].
18409 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
18411 * c-parser.c (c_parser_objc_protocol_definition): Updated for
18412 change from objc_declare_protocols() to objc_declare_protocol().
18414 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
18416 * config/i386/sse.md (sse4_1): New mode attribute.
18417 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
18418 avx_blend<ssemodesuffix><avxmodesuffix> and
18419 sse4_1_blend<ssemodesuffix> using VF mode iterator.
18420 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
18421 avx_blendv<ssemodesuffix><avxmodesuffix> and
18422 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
18423 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
18424 avx_dp<ssemodesuffix><avxmodesuffix> and
18425 sse4_1_dp<ssemodesuffix> using VF mode iterator.
18426 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
18427 (sse4_1_packusdw): Merge with *avx_packusdw.
18428 (sse4_1_pblendvb): Merge with *avx_pblendvb.
18429 (sse4_1_pblendw): Merge with *avx_pblendw.
18430 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
18431 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
18432 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
18434 (sse4_1_round<ssescalarmodesuffix>): Merge with
18435 *avx_round<ssescalarmodesuffix>.
18436 (aesenc): Merge with *avx_aesenc.
18437 (aesenclast): Merge with *avx_aesenclast.
18438 (aesdec): Merge with *avx_aesdec.
18439 (aesdeclast): Merge with *avx_aesdeclast.
18440 (pclmulqdq): Merge with *pclmulqdq.
18441 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
18443 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
18445 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
18447 PR middle-end/48608
18448 * cfgexpand.c (get_decl_align_unit): Renamed to ...
18449 (align_local_variable): This. Update DECL_ALIGN.
18450 (add_stack_var): Updated.
18451 (expand_one_stack_var): Likewise.
18453 2011-04-14 Richard Guenther <rguenther@suse.de>
18455 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
18457 (dse_initialize_block_local_data, dse_leave_block,
18458 record_voperand_set, get_stmt_uid): Likewise.
18459 (dse_possible_dead_store_p): Allow any kind of killing stmt.
18460 (dse_optimize_stmt): Remove voperand set handling code.
18461 Simplify and improve to handle any kind of killing stmt.
18462 (dse_record_phi): Remove.
18463 (dse_enter_block): Simplify.
18464 (tree_ssa_dse): Likewise.
18465 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
18467 2011-04-14 Jan Hubicka <jh@suse.cz>
18469 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
18470 * cgraph.h (struct inline_summary): Move to ipa-inline.h
18471 (cgraph_local_info): Remove inline_summary.
18472 * ipa-cp.c: Include ipa-inline.h.
18473 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
18474 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
18476 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
18477 (input_overwrite_node): Do not set inline summary.
18478 (input_node): Do not stream inline summary.
18479 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
18480 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
18481 growth; we do not have inline parameters computed for that anyway.
18482 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
18483 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
18484 (inline_summary_t): New type and VECtor.
18485 (debug_inline_summary, dump_inline_summaries): Declare.
18486 (inline_summary): Use VOCtor.
18487 (estimate_edge_growth): Kill hack computing call stmt size directly.
18488 * lto-section-in.c (lto_section_name): Add inline section.
18489 * ipa-inline-analysis.c: Include lto-streamer.h
18490 (node_removal_hook_holder, node_duplication_hook_holder): New holders
18491 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
18492 (inline_summary_vec): Define.
18493 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
18494 dump_inline_summaries): New functions.
18495 (estimate_function_body_sizes): Properly compute size/time of outgoing
18497 (compute_inline_parameters): Alloc inline_summary; do not compute
18498 size/time of incomming calls.
18499 (estimate_edge_time): Avoid missing time summary hack.
18500 (inline_read_summary): Read inline summary info.
18501 (inline_write_summary): Write inline summary info.
18502 (inline_free_summary): Free all hooks and inline summary vector.
18503 * lto-streamer.h: Add LTO_section_inline_summary section.
18504 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
18505 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
18507 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18509 * tree-vectorizer.h (vect_strided_store_supported): Add a
18510 HOST_WIDE_INT argument.
18511 (vect_strided_load_supported): Likewise.
18512 (vect_permute_store_chain): Return void.
18513 (vect_transform_strided_load): Likewise.
18514 (vect_permute_load_chain): Delete.
18515 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
18516 count argument. Check that the count is a power of two.
18517 (vect_strided_load_supported): Likewise.
18518 (vect_permute_store_chain): Return void. Update after above changes.
18519 Assert that the access is supported.
18520 (vect_permute_load_chain): Likewise.
18521 (vect_transform_strided_load): Return void.
18522 * tree-vect-stmts.c (vectorizable_store): Update calls after
18523 above interface changes.
18524 (vectorizable_load): Likewise.
18525 (vect_analyze_stmt): Don't check for strided powers of two here.
18527 2011-04-14 Richard Guenther <rguenther@suse.de>
18529 PR tree-optimization/48590
18530 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18531 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
18532 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
18533 BUILT_IN_STACK_SAVE.
18534 * tree-ssa-dce.c (propagate_necessity): Handle
18535 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
18537 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
18539 * c-parser.c (c_parser_objc_class_declaration): Updated call to
18540 objc_declare_class.
18542 2011-04-14 Richard Guenther <rguenther@suse.de>
18544 * tree.h (get_object_alignment_1): Declare.
18545 * builtins.c (get_object_alignment_1): Split out worker from ...
18546 (get_object_alignment): ... here.
18547 * fold-const.c (get_pointer_modulus_and_residue): Use
18548 get_object_alignment_1.
18550 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18552 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
18554 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
18555 parameter. Generalise code to handle arrays as well as vectors.
18556 (vect_setup_realignment): Update accordingly.
18557 * tree-vect-stmts.c (vectorizable_store): Likewise.
18558 (vectorizable_load): Likewise.
18560 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18562 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
18563 within the per-copy loop.
18565 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18567 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
18570 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18572 * doc/options.texi (Negative): Explicitly mention that the
18573 Negative chain must be circular.
18575 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
18577 * function.h (block_chainon): Declare.
18578 * function.c (block_chainon): Define.
18580 2011-04-14 Anatoly Sokolov <aesok@post.ru>
18581 Eric Weddington <eric.weddington@atmel.com>
18582 Georg-Johann Lay <avr@gjlay.de>
18584 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
18586 (avr_init_builtins, avr_expand_builtin,
18587 avr_expand_delay_cycles, avr_expand_unop_builtin,
18588 avr_expand_binop_builtin ): New functions.
18589 (avr_builtin_id): New enum
18590 (struct avr_builtin_description): New struct
18591 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
18592 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
18594 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
18595 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
18596 UNSPECV_DELAY_CYCLES): new enumeration values
18597 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
18598 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
18599 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
18600 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
18601 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
18602 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
18603 "fmulsu"): New insns
18605 * config/avr/avr-c.c: fix line endings
18606 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
18607 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
18608 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
18609 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
18610 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
18612 * doc/extend.texi (AVR Built-in Functions): New node
18613 (Target Builtins): Add documentation of AVR
18614 built-in functions.
18616 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
18619 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
18620 alone. Error if non-const data has attribute progmem.
18622 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
18624 * tree.h (struct tree_constructor): Include tree_typed instead of
18626 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
18627 TS_TYPED instead of TS_COMMON.
18629 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
18631 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
18632 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
18633 (sse2_psadbw): Merge with *avx_psadbw.
18634 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
18635 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
18636 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
18637 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
18638 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
18639 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
18640 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
18641 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
18642 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
18643 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
18644 (ssse3_palignrti): Merge with *avx_palignrti.
18646 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
18648 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
18649 * tree-ssanames.c (fini_ssanames): VEC_free it.
18650 (make_ssa_name_fn): Update for VECness of free_ssanames.
18651 (release_ssa_name, release_dead_ssa_names): Likewise.
18652 * tree.h (struct tree_ssa_name): Include tree_typed instead of
18654 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
18655 TS_TYPED instead of TS_COMMON.
18657 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
18659 * postreload-gcse.c (gcse_after_reload_main): Add calls to
18660 statistics_counter_event.
18661 * tree-ssa-copyrename.c (stats): Define.
18662 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
18663 statistics_counter_event.
18664 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
18665 (bswap_stats, widen_mul_stats): Define.
18666 (insert_reciprocals): Increment rdivs_inserted.
18667 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
18668 rfuncs_inserted. Add calls to statistics_counter_event.
18669 (execute_cse_sincos_1): Increment inserted.
18670 (execute_cse_sincos): Zeroize sincos_stats. Add call to
18671 statistics_counter_event.
18672 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
18673 of bswap_stats. Add calls to statistics_counter_event.
18674 (convert_mult_to_widen): Increment widen_mults_inserted.
18675 (convert_plusminus_to_widen): Increment maccs_inserted.
18676 (convert_mult_to_fma): Increment fmas_inserted.
18677 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
18678 calls to statistics_counter_event.
18680 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
18682 PR rtl-optimization/48455
18683 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
18684 `temp_costs->mem_cost'.
18686 2011-04-13 Jan Hubicka <jh@suse.cz>
18688 * ipa-inline.h: New file.
18689 * ipa-inline-analysis.c: New file. Broken out of ...
18690 * ipa-inline.c: ... this file; update toplevel comment;
18691 include ipa-inline.h
18692 (inline_summary): Move to ipa-inline.h
18693 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
18694 ipa-inline-analysis.c.
18695 (cgraph_estimate_time_after_inlining): Rename to
18696 estiamte_time_after_inlining; move to ipa-inline-analysis.c
18697 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
18698 to estimate_edge_growth.
18699 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
18700 rename to estimate_size_after_inlining.
18701 (cgraph_mark_inline_edge): Update for new naming convention.
18702 (cgraph_check_inline_limits): Likewise.
18703 (cgraph_edge_badness): Likewise.
18704 (cgraph_decide_recursive_inlining): Likewise.
18705 (cgraph_decide_inlining_of_small_functions): Likewise.
18706 (cgraph_decide_inlining_incrementally): Likewise.
18707 (cgraph_estimate_growth): Rename to estimate_growth; move to
18708 ipa-inline-analysis.c.
18709 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
18710 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
18711 (compute_inline_parameters): Likewise.
18712 (compute_inline_parameters_for_current): Likewise.
18713 (pass_inline_parameters): Likewise.
18714 (inline_indirect_intraprocedural_analysis): Likewise.
18715 (analyze_function): Rename to inline_analyze_function; likewise.
18716 (add_new_function): Move to ipa-inline-analysis.c.
18717 (inline_generate_summary): Likewise.
18718 (inline_read_summary): Likewise.
18719 (inline_write_summary): Likewise.
18720 * Makefile.in (ipa-inline-analysis.c): New file.
18722 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18724 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
18725 * configure: Regenerate.
18727 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
18729 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
18730 instead of tree_common.
18731 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
18733 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
18734 TS_TYPED rather than TS_COMMON.
18735 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
18737 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
18740 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
18741 r20 around calls of __tablejump_elpm__
18743 2011-04-13 Jakub Jelinek <jakub@redhat.com>
18745 PR middle-end/48591
18746 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
18748 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
18750 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
18752 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
18753 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
18754 (cfi_vec): New typedef.
18755 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
18756 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
18757 (cie_cfi_vec): New static variable.
18758 (cie_cfi_head): Delete.
18759 (add_cfi): Accept a cfi_vec * as first argument. All callers and
18760 declaration changed. Use vector rather than list operations.
18761 (new_cfi): Don't initialize the dw_cfi_next field.
18762 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
18763 rather than list operations.
18764 (lookup_cfa): Use vector rather than list operations.
18765 (output_cfis): New argument upto. Accept a cfi_vec rather than
18766 a dw_cfi_ref list head as argument. All callers changed.
18767 Iterate over the vector using upto as a maximum index.
18768 (output_all_cfis): New static function.
18769 (output_fde): Use vector rather than list operations. Use the
18770 new upto argument for output_cfis rather than manipulating a
18772 (dwarf2out_begin_prologue): Change initializations to match
18773 new struct members.
18774 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
18775 from the vector length rather than searching for the end of a list.
18776 Use output_all_cfis.
18777 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
18779 2011-04-13 Nick Clifton <nickc@redhat.com>
18781 * config/rx/rx.md (movmemsi): Do not use this pattern when
18782 volatile pointers are involved.
18784 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
18786 * config/i386/sse.md (pinsrbits): Remove.
18787 (sse2_packsswb): Merge with *avx_packsswb.
18788 (sse2_packssdw): Merge with *avx_packssdw.
18789 (sse2_packuswb): Merge with *avx_packuswb.
18790 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
18791 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
18792 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
18793 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
18794 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
18795 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
18796 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
18797 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
18798 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
18799 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
18800 (sse2_loadld): Merge with *avx_loadld.
18801 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
18802 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
18803 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
18804 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
18805 (vec_concatv2di): Merge with *vec_concatv2di_avx.
18807 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
18809 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
18810 calling TREE_CHAIN.
18811 * print-tree.c (print_node): Likewise.
18812 * tree-inline.c (copy_tree_r): Likewise.
18813 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
18814 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
18815 instead of TS_COMMON.
18816 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
18817 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
18818 (copy_node_stat): Zero TREE_CHAIN only if necessary.
18819 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
18820 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
18822 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
18824 (TREE_CHAIN): Check for a TS_COMMON structure.
18825 (TREE_TYPE): Check for a TS_TYPED structure.
18827 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
18829 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
18830 cgraph_get_create_node instead of cgraph_node.
18832 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
18834 * c-parser.c (c_parser_initelt): Updated call to
18835 objc_build_message_expr.
18836 (c_parser_postfix_expression): Likewise.
18838 2011-04-12 Kai Tietz <ktietz@redhat.com>
18840 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
18841 MASK_MS_BITFIELD_LAYOUT bit.
18843 2011-04-12 Jakub Jelinek <jakub@redhat.com>
18845 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
18846 assert it is always true.
18847 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
18850 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
18852 * c-parser.c (c_lex_one_token): Rewritten conditional used when
18853 compiling Objective-C to be more efficient.
18855 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
18857 * opts-common.c (decode_cmdline_options_to_array): Remove variable
18860 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
18862 * recog.h, genoutput.c, optabs.c: Revert last patch.
18864 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18867 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
18869 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
18871 * recog.h (insn_operand_data): Add an "allows_mem" field.
18872 * genoutput.c (output_operand_data): Initialize it.
18873 * optabs.c (maybe_legitimize_operand_same_code): New function.
18874 (maybe_legitimize_operand): Use it when matching the original
18877 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
18879 * genpreds.c (process_define_predicate): Move most processing
18880 to gensupport.c. Continue to validate the expression.
18881 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
18882 (process_define_predicate): Move processing to gensupport.c.
18883 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
18884 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
18885 (compute_predicate_codes): Moved from genrecog.c. Add lineno
18887 (valid_predicate_name_p): New function, split out from old
18888 genpreds.c:process_define_predicate.
18889 (process_define_predicate): New function, combining code from
18890 old genpreds.c and genrecog.c functions.
18891 (process_rtx): Call it for DEFINE_PREDICATE and
18892 DEFINE_SPECIAL_PREDICATE.
18894 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
18896 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
18897 size of a '%A' memory reference.
18898 (T_DREG, T_QREG): New neon_builtin_type_bits.
18899 (arm_init_neon_builtins): Assert that the load and store operands
18900 are neon_struct_operands.
18901 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
18902 (NEON_ARG_MEMORY): New builtin_arg.
18903 (neon_dereference_pointer): New function.
18904 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
18905 Handle NEON_ARG_MEMORY.
18906 (arm_expand_neon_builtin): Update after above interface changes.
18907 Use NEON_ARG_MEMORY for loads and stores.
18908 * config/arm/predicates.md (neon_struct_operand): New predicate.
18909 * config/arm/iterators.md (V_two_elem): Tweak formatting.
18910 (V_three_elem): Use BLKmode for accesses that have no associated mode.
18911 (V_four_elem): Tweak formatting.
18912 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
18913 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
18914 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
18915 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
18916 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
18917 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
18918 (neon_vst4<mode>): Replace pointer operand with a memory operand.
18919 Use %A in the output template.
18920 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
18921 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
18922 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
18923 the width of the memory access. Remove post-increment.
18924 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
18926 2011-04-12 Nick Clifton <nickc@redhat.com>
18928 * config/v850/v850.c (expand_prologue): Do not use the CALLT
18929 instruction for interrupt handlers if the target is the basic V850
18931 (expand_epilogue): Likewise.
18933 2011-04-12 Jakub Jelinek <jakub@redhat.com>
18935 PR rtl-optimization/48549
18936 * combine.c (propagate_for_debug): Also stop after BB_END of
18937 this_basic_block. Process LAST and just stop processing after it.
18938 (combine_instructions): If last_combined_insn has been deleted,
18939 set last_combined_insn to its PREV_INSN.
18941 2011-04-12 Richard Guenther <rguenther@suse.de>
18943 PR tree-optimization/46076
18944 * gimple.h (struct gimple_statement_call): Add fntype field.
18945 (gimple_call_fntype): Adjust.
18946 (gimple_call_set_fntype): New function.
18947 * gimple.c (gimple_build_call_1): Set the call function type.
18948 * gimplify.c (gimplify_call_expr): Preserve the function
18949 type the frontend used for the call.
18950 (gimplify_modify_expr): Likewise.
18951 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
18953 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
18955 * tree-ssa.c (useless_type_conversion_p): Function pointer
18956 conversions are useless.
18958 2011-04-12 Martin Jambor <mjambor@suse.cz>
18960 * cgraph.h (cgraph_node): Remove function declaration.
18961 (cgraph_create_node): Declare.
18962 (cgraph_get_create_node): Likewise.
18963 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
18964 Updated all callers.
18965 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
18966 the decl does not already exist. Call cgraph_get_create_node instead
18968 (cgraph_get_create_node): New function.
18969 (cgraph_same_body_alias): Update comment.
18970 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
18971 assert it does not return NULL.
18972 (cgraph_update_edges_for_call_stmt): Likewise.
18973 (cgraph_clone_edge): Likewise.
18974 (cgraph_create_virtual_clone): Likewise.
18975 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
18976 instead of cgraph_node.
18977 (cgraph_add_new_function): Call cgraph_create_node or
18978 cgraph_get_create_node instead of cgraph_node.
18979 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
18980 instead of cgraph_node.
18981 (record_eh_tables): Likewise.
18982 (mark_address): Likewise.
18983 (mark_load): Likewise.
18984 (build_cgraph_edges): Call cgraph_get_create_node instead
18986 (rebuild_cgraph_edges): Likewise.
18987 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
18988 instead of cgraph_node.
18989 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
18991 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
18992 cgraph_create_node instead of cgraph_node.
18993 * c-decl.c (finish_function): Call cgraph_get_create_node instead
18995 * lto-cgraph.c (input_node): Likewise.
18996 * lto-streamer-in.c (input_function): Likewise.
18997 * varasm.c (mark_decl_referenced): Likewise.
18998 (assemble_alias): Likewise.
19000 2011-04-12 Martin Jambor <mjambor@suse.cz>
19002 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
19003 instead of cgraph_node and assert it does not return NULL.
19004 * lto-streamer-in.c (lto_read_body): Likewise.
19005 * omp-low.c (new_omp_context): Likewise.
19006 (create_task_copyfn): Likewise.
19007 * tree-emutls.c (lower_emutls_function_body): Likewise.
19008 * matrix-reorg.c (transform_allocation_sites): Likewise.
19010 2011-04-12 Jakub Jelinek <jakub@redhat.com>
19013 * c-typeck.c (build_asm_expr): Error out on attempts to use
19014 void type outputs or inputs for constraints that allow reg or
19015 don't allow memory.
19017 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
19018 Richard Earnshaw <rearnsha@arm.com>
19021 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
19022 to use sign-magnitude offsets. Reject unsupported unaligned
19023 cases. Add detailed description in comments.
19024 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
19025 condition from TARGET_32BIT to TARGET_ARM.
19027 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
19029 * tree.h (struct typed_tree): New.
19030 (struct tree_common): Include it instead of tree_base.
19031 (TREE_TYPE): Update for new location of type field.
19032 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
19033 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
19034 (union tree_node): Add typed field.
19035 * treestruct.def (TS_TYPED): New.
19036 * lto-streamer.c (check_handled_ts_structures): Handle it.
19037 * tree.c (MARK_TS_TYPED): New macro.
19038 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
19040 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
19042 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
19043 (force_nonfallthru): Do not alter the loop nest if no basic block
19046 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
19048 * config/i386/sse.md (VI): New mode iterator.
19049 (SSEMODEI): Remove.
19050 (AVX256MODEI): Ditto.
19051 (AVXMODEF4P): Ditto.
19052 (avxvecpsmode): Ditto.
19053 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
19054 (sse2_andnot<mode>3): New expander.
19055 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
19056 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
19057 (<any_logic:code><mode>3): Use VI mode iterator.
19058 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
19059 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
19060 (*andnottf3): Handle AVX three-operand constraints.
19061 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
19063 2011-04-11 Joseph Myers <joseph@codesourcery.com>
19064 Robert Millan <rmh@gnu.org>
19066 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
19067 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
19068 GNU_USER_DYNAMIC_LINKER64): Define.
19069 (REG_NAME): Don't undefine.
19070 (MD_UNWIND_SUPPORT): Undefine.
19071 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
19072 (REG_NAME): Don't undefine.
19073 (MD_UNWIND_SUPPORT): Undefine.
19074 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
19076 2011-04-11 Joseph Myers <joseph@codesourcery.com>
19078 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
19079 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
19081 2011-04-11 Xinliang David Li <davidxl@google.com>
19083 * value-profile.c (check_ic_target): New function.
19084 (gimple_ic_transform): Sanity check indirect call target.
19085 * gimple-low.c (gimple_check_call_args): Interface change.
19086 (gimple_check_call_matching_types): New function.
19087 * tree-inline.c (tree_can_inline_p): Call new function.
19089 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
19091 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
19092 tree-pretty-print.h & realmpfr.h.
19094 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
19096 PR middle-end/48464
19097 * ira.c (setup_pressure_classes): Fix typo in loop condition.
19098 (setup_allocno_and_important_classes): Ditto.
19100 2011-04-11 Joseph Myers <joseph@codesourcery.com>
19102 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
19103 GNU_USER_DYNAMIC_LINKER.
19104 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
19105 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19106 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
19107 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
19108 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
19109 GNU_USER_TARGET_OS_CPP_BUILTINS.
19110 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
19111 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19112 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
19113 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19114 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
19115 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
19116 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
19117 GNU_USER_TARGET_OS_CPP_BUILTINS.
19118 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19119 GNU_USER_DYNAMIC_LINKER.
19120 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
19121 GNU_USER_TARGET_OS_CPP_BUILTINS.
19122 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
19123 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19124 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
19125 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19126 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
19127 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
19128 GNU_USER_DYNAMIC_LINKER64): Remove.
19129 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
19130 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19131 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19132 GNU_USER_DYNAMIC_LINKER.
19133 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
19134 GNU_USER_TARGET_OS_CPP_BUILTINS.
19135 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
19136 GNU_USER_TARGET_OS_CPP_BUILTINS.
19137 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
19138 to GNU_USER_TARGET_OS_CPP_BUILTINS.
19139 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
19140 GNU_USER_TARGET_OS_CPP_BUILTINS.
19141 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
19142 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
19143 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
19144 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
19145 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19146 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19147 GNU_USER_DYNAMIC_LINKER.
19148 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
19149 GNU_USER_TARGET_OS_CPP_BUILTINS.
19150 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
19151 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19152 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19153 GNU_USER_DYNAMIC_LINKER.
19154 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
19155 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19156 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
19157 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19158 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19159 GNU_USER_DYNAMIC_LINKER.
19160 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
19161 GNU_USER_DYNAMIC_LINKERN32.
19162 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
19163 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
19164 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
19165 GNU_USER_DYNAMIC_LINKER32.
19166 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
19167 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19168 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19169 GNU_USER_DYNAMIC_LINKER.
19170 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
19171 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19172 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
19173 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19174 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
19175 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
19176 GNU_USER_DYNAMIC_LINKER32.
19177 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
19178 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
19179 GNU_USER_DYNAMIC_LINKER.
19180 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
19181 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19182 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
19183 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
19184 GNU_USER_DYNAMIC_LINKER64.
19185 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
19186 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19187 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19188 GNU_USER_DYNAMIC_LINKER.
19189 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
19190 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19191 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19192 GNU_USER_DYNAMIC_LINKER.
19193 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
19194 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19195 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
19196 GNU_USER_DYNAMIC_LINKER32.
19197 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
19198 GNU_USER_DYNAMIC_LINKER64.
19199 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
19200 GNU_USER_DYNAMIC_LINKER64.
19201 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
19202 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19203 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
19204 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19205 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
19207 2011-04-11 Joseph Myers <joseph@codesourcery.com>
19209 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
19210 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
19211 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
19212 GNU_USER_DYNAMIC_LINKER.
19213 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
19214 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
19215 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
19216 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
19217 GNU_USER_DYNAMIC_LINKER64.
19218 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
19219 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
19220 GNU_USER_LINK_EMULATION.
19221 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
19222 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
19223 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
19224 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
19225 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
19226 CPP_SPEC, CC1_SPEC): Remove.
19227 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
19228 (GNU_USER_DYNAMIC_LINKER): Define.
19229 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
19230 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
19231 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
19232 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
19233 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
19234 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
19235 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
19236 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
19237 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
19238 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
19239 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
19240 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
19241 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
19242 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
19243 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
19244 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
19245 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
19246 GNU_USER_DYNAMIC_LINKER.
19247 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
19248 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
19249 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
19250 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
19251 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
19252 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
19253 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
19254 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
19255 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
19256 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
19258 2011-04-11 Kai Tietz <ktietz@redhat.com>
19262 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
19263 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
19265 (ix86_is_msabi_thiscall): Removed.
19266 (ix86_is_type_thiscall): Likewise.
19267 (ix86_get_callcvt): New function.
19268 (ix86_comp_type_attributes): Simplify check.
19269 (ix86_function_regparm): Use ix86_get_callcvt for calling
19270 convention attribute checks.
19271 (ix86_return_pops_args): Likewise.
19272 (ix86_static_chain): Likewise.
19273 (x86_this_parameter): Likewise.
19274 (x86_output_mi_thunk): Likewise.
19275 (ix86_function_type_abi): Optimize check for types without attributes.
19276 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
19277 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
19278 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
19280 (IX86_BASE_CALLCVT): Helper macro.
19281 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
19282 Use ix86_get_callcvt for calling convention attribute checks and avoid
19283 symbol-decoration for stdcall in TARGET_RTD case.
19284 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
19286 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
19289 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
19291 * config/i386/sse.md (VI_128): New mode iterator.
19292 (VI12_128): Rename from SSEMODE12.
19293 (VI14_128): Rename from SSEMODE14.
19294 (VI124_128): New mode iterator.
19295 (VI24_128): Rename from SSEMODE248.
19296 (VI248_128): Rename from SSEMODE248.
19297 (SSEMODE124C8): Remove.
19298 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
19299 (*sse2_<plusminus_insn><mode>3): Merge with
19300 *avx_<plusminus_insn><mode>3.
19301 (*mulv8hi3): Merge with *avx_mulv8hi3.
19302 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
19303 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
19304 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
19305 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
19306 (ashr<mode>3): Merge with *avx_ashr<mode>3.
19307 (lshr<mode>3): Merge with *avx_lshr<mode>3.
19308 (ashl<mode>3): Merge with *avx_ashl<mode>3.
19309 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
19310 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
19311 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19312 (*<smaxmin:code>v8hi3): Ditto.
19313 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
19314 (*<smaxmin:code>v16qi3): Ditto.
19315 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
19316 (*sse2_eq<mode>3): Ditto.
19317 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
19318 (*sse2_gt<mode>3): Ditto.
19319 (vcondv2di): Split out of vcond<mode>.
19320 (vconduv2di): Split out of vcondu<mode>.
19322 2011-04-11 Richard Guenther <rguenther@suse.de>
19324 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
19325 before calling tree_low_cst.
19327 2011-04-11 Richard Guenther <rguenther@suse.de>
19329 * stor-layout.c (layout_type): Compute all array index size operations
19330 in the original type.
19331 (initialize_sizetypes): Add comment.
19332 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
19334 2011-04-11 Joseph Myers <joseph@codesourcery.com>
19336 * common.opt (Tbss=, Tdata=, Ttext=): New options.
19338 2011-04-11 Martin Jambor <mjambor@suse.cz>
19340 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
19341 of cgraph_node, handle NULL return value.
19342 (cgraph_global_info): Likewise.
19343 (cgraph_rtl_info): Likewise.
19344 * tree-inline.c (estimate_num_insns): Likewise.
19345 * gimplify.c (unshare_body): Likewise.
19346 (unvisit_body): Likewise.
19347 (gimplify_body): Likewise.
19348 * predict.c (optimize_function_for_size_p): Likewise.
19349 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
19350 (call_may_clobber_ref_p_1): Likewise.
19351 * varasm.c (function_section_1): Likewise.
19352 (assemble_start_function): Likewise.
19354 2011-04-11 Martin Jambor <mjambor@suse.cz>
19356 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
19358 * final.c (rest_of_clean_state): Likewise.
19359 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
19360 * passes.c (pass_init_dump_file): Likewise.
19361 (execute_all_ipa_transforms): Likewise.
19362 (function_called_by_processed_nodes_p): Likewise.
19363 * predict.c (maybe_hot_frequency_p): Likewise.
19364 (probably_never_executed_bb_p): Likewise.
19365 (compute_function_frequency): Likewise.
19366 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
19367 (unnest_nesting_tree_1): Likewise.
19368 (lower_nested_functions): Likewise.
19369 * tree-optimize.c (execute_fixup_cfg): Likewise.
19370 (tree_rest_of_compilation): Likewise.
19371 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
19372 * tree-sra.c (ipa_early_sra): Likewise.
19373 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
19374 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
19375 * ipa.c (record_cdtor_fn): Likewise.
19376 * ipa-inline.c (cgraph_early_inlining): Likewise.
19377 (compute_inline_parameters_for_current): Likewise.
19378 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19379 * ipa-pure-const.c (local_pure_const): Likewise.
19380 * ipa-split.c (split_function): Likewise.
19381 (execute_split_functions): Likewise.
19382 * cgraphbuild.c (build_cgraph_edges): Likewise.
19383 (rebuild_cgraph_edges): Likewise.
19384 (cgraph_rebuild_references): Likewise.
19385 (remove_cgraph_callee_edges): Likewise.
19386 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
19387 (verify_cgraph_node): Likewise.
19388 (cgraph_analyze_functions): Likewise.
19389 (cgraph_preserve_function_body_p): Likewise.
19390 (save_inline_function_body): Likewise.
19391 (save_inline_function_body): Likewise.
19392 * tree-inline.c (copy_bb): Likewise.
19393 (optimize_inline_calls): Likewise.
19395 2011-04-11 Martin Jambor <mjambor@suse.cz>
19397 PR tree-optimization/48195
19398 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
19399 ipa_check_create_edge_args.
19400 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
19401 ipa_check_create_edge_args.
19402 * ipa-inline.c (inline_generate_summary): Do not call
19403 ipa_check_create_node_params and ipa_check_create_edge_args.
19404 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
19405 ipa_check_create_edge_args.
19407 2011-04-09 Anatoly Sokolov <aesok@post.ru>
19409 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
19411 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
19412 * function.c (record_hard_reg_sets): Likewise.
19413 * ira.c (compute_regs_asm_clobbered): Likewise.
19414 * sched-deps.c (sched_analyze_1): Likewise.
19415 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
19417 2011-04-09 Xinliang David Li <davidxl@google.com>
19419 PR tree-optimization/PR48484
19420 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
19421 has_valid_pred lazily
19423 2011-04-09 Duncan Sands <baldrick@free.fr>
19425 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
19427 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
19429 * combine.c (combine_validate_cost): Adjust comments. Set registered
19430 cost of I0 to zero at the end, if any.
19432 2011-04-08 Xinliang David Li <davidxl@google.com>
19434 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
19435 to insane profile data.
19437 2011-04-08 Xinliang David Li <davidxl@google.com>
19439 * ipa-cp.c (ipcp_update_profiling): Correct
19440 negative scale factor due to insane profile data.
19442 2011-04-08 Xinliang David Li <davidxl@google.com>
19444 * final.c (dump_basic_block_info): New function.
19445 (final): Dump basic block.
19446 (final_scan_insn): Remove old dump.
19448 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
19451 * config.gcc (i386-*-freebsd): Disable unwind table generation for
19454 2011-04-08 Michael Matz <matz@suse.de>
19456 PR middle-end/48389
19457 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
19459 (rebuild_jump_labels): Call rebuild_jump_labels_1.
19460 * rtl.h (rebuild_jump_labels_chain): Declare.
19461 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
19462 insns inserted on edges.
19464 2011-04-08 Joseph Myers <joseph@codesourcery.com>
19466 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
19467 * config/arm/arm-arches.def: New.
19468 * config/arm/arm-opts.h: New.
19469 * config/arm/genopt.sh: New.
19470 * config/arm/arm-tables.opt: New (generated).
19471 * config/arm/arm.c (arm_handle_option, arm_target_help,
19472 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
19473 (all_architectures): Get most table contents from arm-arches.def.
19474 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
19475 arm_selected_tune here.
19476 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
19477 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
19478 (march=, mcpu=, mtune=): Use Enum and Var.
19479 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
19480 (arm.o): Update dependencies.
19482 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
19484 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
19486 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
19487 (write_typed_alloc_defns): Likewise.
19488 (main): Calls write_typed_alloc_defns with output_header.
19490 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
19492 PR inline-asm/48435
19493 * ira-color.c (setup_profitable_hard_regs): Add comments.
19494 Don't take prohibited hard regs into account.
19495 (setup_conflict_profitable_regs): Rename to
19496 get_conflict_profitable_regs.
19497 (check_hard_reg_p): Check prohibited hard regs.
19499 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
19501 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
19502 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
19503 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
19505 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19508 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
19509 move from floating point to shift amount register.
19510 (emit_move_sequence): Remove secondary reload support for floating
19511 point to shift amount amount register copies.
19512 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
19513 amount register copies.
19514 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
19515 register, return false if mode isn't a scalar integer mode.
19516 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
19518 2011-04-08 Richard Guenther <rguenther@suse.de>
19520 * gimple.c (gimple_call_flags): Remove kludge.
19522 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
19524 * sel-sched.c (sel_region_init): Move call to
19525 sel_setup_region_sched_flags after setup_current_loop_nest.
19527 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
19529 PR rtl-optimization/48272
19530 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
19531 init_insn_reg_pressure_info. Adjust a caller.
19532 * sched-int.h (init_insn_reg_pressure_info): Declare.
19533 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
19534 when sched-pressure is enabled.
19536 2011-04-08 Richard Guenther <rguenther@suse.de>
19538 * gimple.c (gimple_set_modified): Do not queue calls to
19539 MODIFIED_NORETURN_CALLS here ...
19540 * tree-ssa-operands.c (update_stmt_operands): ... but here.
19542 2011-04-08 Richard Guenther <rguenther@suse.de>
19545 * toplev.c (lang_dependent_init): Do not open asm_out_file
19546 in WPA mode, nor perform debug machinery initialization.
19547 (finalize): Do not unlink asm_out_file in WPA mode.
19549 2011-04-08 Richard Guenther <rguenther@suse.de>
19551 * gimple.h (gimple_call_fntype): New function.
19552 (gimple_call_return_type): Use it.
19553 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
19554 * gimple-low.c (gimple_check_call_args): Likewise.
19555 * gimple.c (gimple_call_flags): Likewise.
19556 (gimple_call_arg_flags): Likewise.
19557 (gimple_call_return_flags): Likewise.
19558 * tree-cfg.c (verify_gimple_call): Likewise.
19559 (do_warn_unused_result): Likewise.
19560 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
19561 * value-prof.c (gimple_ic_transform): Fix fndecl check.
19563 2011-04-08 Dmitry Melnik <dm@ispras.ru>
19565 PR rtl-optimization/48235
19566 * sel-sched.c (code_motion_process_successors): Recompute the last
19567 insn in basic block if control flow changed.
19568 (code_motion_path_driver): Ditto. Recompute the first insn as well.
19569 Update condition for ilist_remove.
19571 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
19573 PR rtl-optimization/48302
19574 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
19575 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
19576 it to record added preheader blocks.
19577 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
19578 on to sel_add_loop_preheaders.
19579 (sel_region_init): Move call to setup_current_loop_nest after
19582 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
19585 * cfgloop.h (loop_has_exit_edges): New helper.
19586 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
19588 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
19589 that have no exit edges.
19591 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
19593 PR rtl-optimization/48442
19594 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
19595 all callers. Adjust assert.
19597 2011-04-08 Jakub Jelinek <jakub@redhat.com>
19599 PR tree-optimization/48377
19600 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
19601 is_packed to true even for types with smaller TYPE_ALIGN than
19604 2011-04-08 Richard Guenther <rguenther@suse.de>
19607 * doc/tm.texi: Re-generate.
19609 2011-04-08 Wei Guozhi <carrot@google.com>
19612 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
19613 * config/arm/arm.c (arm_attr_length_push_multi): New function.
19614 * config/arm/arm.md (*push_multi): Change the length computation to
19617 2011-04-08 Anatoly Sokolov <aesok@post.ru>
19619 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
19620 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
19621 * doc/tm.texi: Regenerate.
19622 * system.h (ASM_OUTPUT_BSS): Poison.
19623 * varasm.c (asm_output_bss): Remove function.
19624 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
19626 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
19627 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
19628 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
19629 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19631 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19633 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19635 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
19637 2011-04-07 Joseph Myers <joseph@codesourcery.com>
19639 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
19642 2011-04-07 Joseph Myers <joseph@codesourcery.com>
19644 * config/m68k/m68k.c (m68k_handle_option): Don't handle
19645 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
19646 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
19648 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
19649 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
19650 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
19651 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
19652 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
19653 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
19654 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
19655 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
19656 options. Don't map other m68k options manually. Don't handle
19657 old-style options as canonical.
19658 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
19659 * doc/install.texi (m68k-*-*): Document binutils version requirement.
19661 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
19663 * basic-block.h (force_nonfallthru): Move to...
19664 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
19665 (force_nonfallthru): ...here.
19666 * cfghooks.c (force_nonfallthru): New function.
19667 * cfgrtl.c (force_nonfallthru): Rename into...
19668 (rtl_force_nonfallthru): ...this.
19669 (commit_one_edge_insertion): Do not set AUX field.
19670 (commit_edge_insertions): Do not discover new basic blocks.
19671 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
19672 (cfg_layout_rtl_cfg_hooks): Likewise.
19673 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
19674 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
19675 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
19677 2011-04-07 Anatoly Sokolov <aesok@post.ru>
19679 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
19682 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
19684 * config/i386/sse.md: Update copyright year.
19685 (avxcvtvecmode): Remove.
19686 (sse_movhlps): Merge with *avx_movhlps.
19687 (sse_movlhps): Merge with *avx_movlhps.
19688 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
19689 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
19690 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
19691 (sse_loadhps): Merge with *avx_loadhps.
19692 (sse_storelps): Merge with *avx_storelps.
19693 (sse_loadlps): Merge with *avx_loadlps.
19694 (sse_movss): Merge with *avx_movss.
19695 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
19696 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
19697 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
19698 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
19699 (vec_set<mode>_0): Ditto.
19700 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
19701 (sse4_1_insertps): Merge with *avx_insertps.
19702 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
19703 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
19704 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
19705 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
19706 (sse2_storehpd): Merge with *avx_storehpd.
19707 (sse2_loadhpd): Merge with *avx_loadhpd.
19708 (sse2_loadlpd): Merge with *avx_loadlpd.
19709 (sse2_movsd): Merge with *avx_movsd.
19710 (*vec_concatv2df): Merge with *vec_concatv2df.
19712 2011-04-07 Jakub Jelinek <jakub@redhat.com>
19715 * combine.c (combine_instructions): Add last_combined_insn,
19716 update it if insn is after it, pass it to all try_combine calls.
19717 (try_combine): Add last_combined_insn parameter, pass it instead of
19718 i3 to propagate_for_debug.
19720 2011-04-07 Nick Clifton <nickc@redhat.com>
19722 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
19723 to handle MDR <-> data register transfers.
19724 (movhi_internal): Likewise.
19726 2011-04-07 Alan Modra <amodra@gmail.com>
19728 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
19729 previous stack info.
19731 2011-04-07 Tom de Vries <tom@codesourcery.com>
19734 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
19735 flow_find_cross_jump. Swap variables to implement backward replacement.
19736 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
19738 2011-04-07 Tom de Vries <tom@codesourcery.com>
19741 * cfgcleanup.c (walk_to_nondebug_insn): New function.
19742 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
19744 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
19745 src1 or src2. Redirect edges to the last basic block. Update
19746 frequency and count on multiple basic blocks in case of fallthru.
19748 2011-04-07 Tom de Vries <tom@codesourcery.com>
19751 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
19753 (old_insns_match_p): Change return type. Replace return false/true
19754 with return dir_none/dir_both. Use can_replace_by.
19755 (flow_find_cross_jump): Add dir_p parameter. Init replacement
19756 direction from dir_p. Register replacement direction in dir, last_dir
19757 and afterlast_dir. Handle new return type of old_insns_match_p using
19758 merge_dir. Return replacement direction in dir_p.
19759 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
19760 return type of old_insns_match_p.
19761 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
19762 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
19763 flow_find_cross_jump.
19764 * basic-block.h (enum replace_direction): New type.
19765 (flow_find_cross_jump): Add parameter to declaration.
19767 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
19769 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
19770 (AVXMODEDCVTPS2DQ): Ditto.
19771 (VEC_FLOAT_MODE): Ditto.
19772 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
19773 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
19774 (<any_logic:code><mode>3): Use VF mode iterator.
19775 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
19776 Use VF mode iterator.
19777 (copysign<mode>3): Use VF mode iterator.
19778 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
19779 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
19780 (*<any_logic:code><MODEF:mode>3): Merge with
19781 *avx_<any_logic:code><MODEF:mode>3.
19782 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
19783 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
19784 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
19785 (avx_cvtdq2ps<avxmodesuffix>): Remove.
19786 (sse2_cvtdq2ps): Use %v modifier.
19787 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
19788 (avx_cvtps2dq<avxmodesuffix>): Remove.
19789 (sse2_cvtps2dq): Use %v modifier.
19790 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
19791 (avx_cvttps2dq<avxmodesuffix>): Remove.
19792 (sse2_cvttps2dq): Use %v modifier.
19793 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
19794 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
19795 (sse2_cvtsd2siq): Fix insn template.
19796 (sse2_cvtsd2siq_2): Ditto.
19797 (sse2_cvttsd2siq): Ditto.
19798 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
19799 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
19801 2011-04-06 Joseph Myers <joseph@codesourcery.com>
19803 * gcov-io.c: Use GCC Runtime Library Exception.
19805 2011-04-06 Jakub Jelinek <jakub@redhat.com>
19808 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
19809 as base_reg whatever register reg has been eliminated to, instead
19810 of hardcoding STACK_POINTER_REGNUM.
19812 2011-04-06 Joseph Myers <joseph@codesourcery.com>
19814 * doc/tm.texi.in: Document C target hooks as separate from general
19816 * doc/tm.texi: Regenerate.
19817 * genhooks.c (struct hook_desc): Add docname field.
19818 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
19820 (hook_array): Include c-target.def.
19821 (emit_documentation): Use docname field in output.
19822 (emit_init_macros): Take docname argument. Only emit definitions
19823 for hooks matching docname.
19824 (main): Expect additional arguments in all cases. Pass argument
19825 to emit_init_macros.
19826 * target.def: Move initial macro definitions and comments to
19827 target-hooks-macros.h.
19828 (gcc_targetcm): Move to c-family/c-target.def.
19829 * target.h (targetcm): Move declaration to c-family/c-target.h.
19830 * targhooks.c (default_handle_c_option): Move to
19832 * targhooks.h (default_handle_c_option): Move declaration to
19833 c-family/c-common.h.
19834 * target-hooks-macros.h: New file.
19835 * config.gcc (target_has_targetcm): Define and use to add to
19836 c_target_objs and cxx_target_objs.
19837 * config/default-c.c: New file.
19838 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
19839 of target.h and target-def.h.
19840 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
19841 (darwin_objc_construct_string, darwin_cfstring_ref_p,
19842 darwin_check_cfstring_format_arg): Make static.
19843 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
19844 TARGET_STRING_OBJECT_REF_TYPE_P,
19845 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
19846 * config/darwin-protos.h (darwin_objc_construct_string,
19847 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
19849 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
19850 TARGET_STRING_OBJECT_REF_TYPE_P,
19851 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
19852 * config/t-darwin (darwin-c.o): Update dependencies.
19853 * system.h (TARGET_HAS_TARGETCM): Poison.
19854 * Makefile.in (TARGET_H): Update.
19855 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
19856 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
19857 (default-c.o): New target.
19858 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
19859 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
19860 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
19862 (build/genhooks.o): Update dependencies.
19864 2011-04-06 Richard Guenther <rguenther@suse.de>
19866 * ipa-inline.c (enum inlining_mode): Remove.
19867 (cgraph_flatten): Use some other token.
19868 (cgraph_edge_early_inlinable_p): New function, split out from ...
19869 (cgraph_perform_always_inlining): New function, split out from ...
19870 (cgraph_decide_inlining_incrementally): ... here.
19871 (cgraph_mark_inline_edge): Adjust.
19872 (cgraph_early_inlining): Re-structure.
19873 (pass_early_inline): Require SSA form.
19875 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
19876 Julian Brown <julian@codesourcery.com>
19877 Mark Shinwell <shinwell@codesourcery.com>
19879 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
19880 LO_REGS only for Thumb-1.
19881 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
19882 be used in short instructions when optimising for size on Thumb-2.
19884 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
19886 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
19887 associated with user returns to be preserved.
19889 2011-04-06 Tristan Gingold <gingold@adacore.com>
19891 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
19892 symbol_queue_size, DBXOUT_DECR_NESTING,
19893 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
19894 if XCOFF_DEBUGGING_INFO.
19896 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
19898 * config/i386/i386.md (attribute isa): New.
19899 (attribute enabled): New.
19900 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
19901 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
19902 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
19903 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
19904 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
19905 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19906 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
19907 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
19909 * config/i386/sse.md (VF): New mode iterator.
19913 (SSEMODEF4): Remove.
19914 (attribute sse): Handle V8SF and V4DF modes.
19915 (<absneg:code><mode>2): Use VF mode iterator.
19916 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
19918 (<plusminus_insn><mode>3): Use VF mode iterator.
19919 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
19920 Use VF mode iterator.
19921 (<sse>_vm<plusminus_insn><mode>3): Merge with
19922 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
19923 (mul<mode>3): Use VF mode iterator.
19924 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
19925 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
19927 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
19928 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
19929 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
19930 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
19932 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
19933 Use VF1 mode iterator.
19934 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
19935 (sqrt<VF2:mode>2): New expander.
19936 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
19937 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
19938 and sqrtv2df2. Use VF mode iterator.
19939 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
19941 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
19942 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
19943 Use VF1 mode iterator.
19944 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
19945 (<smaxmin:code><mode>3): Use VF mode iterator.
19946 (*<smaxmin:code><mode>3_finite): Merge with
19947 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
19948 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19949 (<sse>_vm<smaxmin:code><mode>2): Merge with
19950 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
19951 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
19953 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
19955 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
19956 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
19957 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
19958 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
19959 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
19961 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
19962 Use VF_128 mode iterator.
19963 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
19965 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
19966 VF_128 mode iterator.
19967 (vcond<mode>): Use VF mode iterator.
19968 * config/i386/predicates.md (sse_comparison_operator): Merge with
19969 avx_comparison_float_operator. Do not declare as special_predicate.
19970 * config/i386/i386.c (struct builtin_description): Update for renamed
19972 (ix86_expand_args_builtin): Ditto.
19973 (ix86_expand_sse_compare_mask): Ditto.
19975 2011-04-06 Richard Guenther <rguenther@suse.de>
19977 * tree-inline.c (estimate_num_insns): For calls simply account
19978 for all passed arguments and a used return value.
19980 2011-04-06 Richard Guenther <rguenther@suse.de>
19982 PR tree-optimization/47663
19983 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
19984 call_stmt_time fields.
19985 (cgraph_edge_inlinable_p): Declare.
19986 (cgraph_edge_recursive_p): New inline function.
19987 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
19988 (cgraph_clone_edge): Copy it.
19989 * ipa-inline.c (cgraph_estimate_edge_time): New function.
19990 Account for call stmt time.
19991 (cgraph_estimate_time_after_inlining): Take edge argument.
19992 (cgraph_estimate_edge_growth): Account call stmt size.
19993 (cgraph_estimate_size_after_inlining): Take edge argument.
19994 (cgraph_mark_inline_edge): Adjust.
19995 (cgraph_check_inline_limits): Likewise.
19996 (cgraph_recursive_inlining_p): Remove.
19997 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
19998 (cgraph_decide_recursive_inlining): Take edge argument and
20000 (cgraph_decide_inlining_of_small_functions): Do not avoid
20001 diags for recursive inlining here.
20002 (cgraph_flatten): Adjust.
20003 (cgraph_decide_inlining_incrementally): Likewise.
20004 (estimate_function_body_sizes): Remove call cost handling.
20005 (compute_inline_parameters): Initialize caller edge call costs.
20006 (cgraph_estimate_edge_growth): New function.
20007 (cgraph_estimate_growth): Use it.
20008 (cgraph_edge_badness): Likewise.
20009 (cgraph_check_inline_limits): Take an edge argument.
20010 (cgraph_decide_inlining_of_small_functions): Adjust.
20011 (cgraph_decide_inlining): Likewise.
20012 * tree-inline.c (estimate_num_insns): Only account for call
20013 return value if it is used.
20014 (expand_call_inline): Avoid diagnostics on recursive inline
20016 * lto-cgraph.c (lto_output_edge): Output edge call costs.
20017 (input_edge): Input edge call costs.
20019 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20021 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
20023 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
20025 * doc/invoke.texi (Spec Files): Fix typo.
20027 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
20029 * profile.c (branch_prob): Move declaration of local variable. Remove
20030 obsolete ??? comment. Expand the location explicitly instead of using
20031 the LOCATION_FILE and LOCATION_LINE macros.
20033 2011-04-06 Wei Guozhi <carrot@google.com>
20036 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
20037 (arm_cond_branch): Likewise.
20038 (arm_cond_branch_reversed): Likewise.
20039 (arm_jump): Likewise.
20040 (push_multi): Likewise.
20041 * config/arm/constraints.md (Py): New constraint.
20043 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
20046 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
20048 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
20049 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
20050 #ifdef DBX_DEBUGGING_INFO.
20052 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
20055 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
20056 if old and new states differ.
20058 2011-04-05 Joseph Myers <joseph@codesourcery.com>
20060 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
20061 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
20062 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
20063 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
20064 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
20065 mcfv4e): Use Alias.
20066 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
20067 ColdFire options to -mcpu= options.
20069 2011-04-05 Jeff Law <law@redhat.com>
20071 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
20072 check if BB is a successor of LOOP->header and return
20073 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
20075 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
20077 * cprop.c (struct reg_use): Remove.
20078 (reg_use_table): Make an array of RTX.
20079 (find_used_regs, constprop_register, local_cprop_pass,
20080 bypass_block): Simplify users of reg_use_table.
20081 (cprop_insn): Likewise. Iterate if copy propagation succeeded
20082 on one of the uses found by find_used_regs.
20084 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
20087 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
20090 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
20092 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
20094 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
20096 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
20098 PR middle-end/48441
20099 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
20101 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
20103 * combine.c: Include obstack.h.
20104 (struct insn_link): Define.
20105 (uid_log_links): Adjust type.
20106 (FOR_EACH_LOG_LINK): New macro.
20107 (insn_link_obstack): Declare.
20108 (alloc_insn_link): Define.
20109 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
20110 type of link variables.
20111 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
20112 (try_combine, record_promoted_values, distribute_notes): Likewise.
20113 (distribute_links): Likewise. Tweak prototype.
20114 (clear_log_links): Delete.
20115 (adjust_for_new_dest): Call alloc_insn_link.
20116 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
20118 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
20120 * gcse.c (modify_mem_list): Convert to an array of VECs.
20121 (canon_modify_mem_list, compute_transp): Tweak formatting.
20122 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
20123 (load_killed_in_block_p): Likewise.
20124 (record_last_mem_set_info): Likewise.
20125 (clear_modify_mem_tables): Likewise.
20127 2011-04-05 Tom de Vries <tom@codesourcery.com>
20129 PR middle-end/48461
20130 * function.c (emit_use_return_register_into_block): Only define if
20133 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
20135 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
20137 2011-04-05 Joseph Myers <joseph@codesourcery.com>
20139 * config/rx/rx-opts.h: New.
20140 * config/rx/rx.c (rx_cpu_type): Remove.
20141 (rx_handle_option): Don't assert that global structures are in
20142 use. Access variables via opts pointer. Defer most handling of
20143 OPT_mint_register_. Use error_at.
20144 (rx_option_override): Handle deferred OPT_mint_register_ here.
20145 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
20146 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
20147 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
20148 (rx_cpu_types): New Enum and EnumValue entries.
20149 (mint-register=): Use Defer and use Var accordingly.
20151 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
20153 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
20154 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
20155 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
20157 (debug_free_queue, debug_nesting, symbol_queue_index):
20159 * dbxout.c: ...to here. Make static.
20161 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
20163 * gcse.c (modify_pair): Define. Define a VEC of it.
20164 (canon_modify_mem_list): Convert to an array of VECs.
20165 (free_insn_expr_list_list): Delete.
20166 (clear_modify_mem_tables): Call VEC_free instead.
20167 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
20168 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
20169 (canon_list_insert, compute_transp): Likewise.
20171 2011-04-05 Tom de Vries <tom@codesourcery.com>
20174 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
20177 2011-04-05 Tom de Vries <tom@codesourcery.com>
20180 * function.c (emit_use_return_register_into_block): New function.
20181 (thread_prologue_and_epilogue_insns): Use
20182 emit_use_return_register_into_block.
20184 2011-04-05 Tom de Vries <tom@codesourcery.com>
20187 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
20190 2011-04-05 Tom de Vries <tom@codesourcery.com>
20192 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
20194 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
20196 * config/arm/arm.md (define_constants for unspec): Replace with
20198 (define_constants for unspecv): Replace with define_c_enum.
20199 * config/arm/neon.md (define_constants for unspec): Replace with
20202 2011-04-04 Richard Henderson <rth@redhat.com>
20205 * dwarf2out.c (output_line_info): Always emit line info from
20206 at least one section.
20207 (dwarf2out_init): Create text_section_line_info here ...
20208 (set_cur_line_info_table): ... not here.
20210 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
20213 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
20216 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
20218 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
20220 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
20221 (expr_equiv_p): Remove.
20222 (insert_set_in_table): Look at <dest, src> pair instead of expr.
20223 (hash_scan_set): Update call to insert_set_in_table.
20224 (dump_hash_table): Dump <dest, src> pair.
20225 (lookup_set): Simplify. Lookup <dest, src> pair.
20226 (compute_transp): Remove, fold heavily simplified code into...
20227 (compute_local_properties): ...here. Expect COMP and TRANSP
20229 (find_avail_set): Take set directly from struct expr.
20230 (find_bypass-set): Likewise.
20231 (bypass_block): Likewise.
20232 (cprop_insn): Likewise. Remove redundant INSN_P test.
20234 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
20235 checks on form of COND from find_implicit_sets to here.
20236 (find_implicit_sets): Cleanup control flow. Split critical edges
20237 if it exposes implicit sets. Allocate/resize implicit_sets as
20239 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
20240 changed something. Run df_analyze after find_implicit_sets if any
20241 edges were split. Do not allocate implicit_sets here.
20243 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
20244 (gcse_obstack): Renamed to cprop_obstack.
20245 (GNEW, GNEWVEC, GNEWVAR): Remove.
20247 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
20248 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
20249 (gcse_alloc): Likewise, and rename to cprop_alloc.
20250 (alloc_gcse_men, free_gcse_mem): Remove.
20251 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
20252 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
20253 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
20255 * cprop.c (oprs_not_set_p): Remove.
20256 (mark_set, mark_clobber): Remove.
20257 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
20258 (reg_not_set_p): New function.
20259 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
20260 (cprop_insn): Likewise.
20261 (cprop_jump): Use FOR_EACH_EDGE.
20263 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
20266 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
20267 (rank_for_schedule): Use scheduled_insns vector instead of
20268 last_scheduled_insn.
20269 (ok_for_early_queue_removal): Likewise.
20270 (queue_to_ready): Search forward in nonscheduled_insns_begin if
20272 (choose_ready): Likewise.
20273 (commit_schedule): Use VEC_iterate.
20274 (schedule_block): Initialize nonscheduled_insns_begin. If we have
20275 a dbg_cnt, use it and ensure the first insn is in the ready list.
20276 (haifa_sched_init): Allocate scheduled_insns.
20277 (sched_extend_ready_list): Don't allocate it; reserve space.
20278 (haifa_sched_finish): Free it.
20280 2011-04-04 Joseph Myers <joseph@codesourcery.com>
20282 * optc-gen.awk: Always remove type from Variable entry before
20283 recording in var_seen.
20285 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
20287 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
20288 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
20289 call to tidy_fallthru_edges.
20291 2011-04-04 Joseph Myers <joseph@codesourcery.com>
20293 * doc/options.texi (ToLower): Document.
20294 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
20295 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
20296 * opts.h (cl_option): Add cl_tolower field.
20297 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
20298 arguments with lowercase strings.
20299 * config/rx/rx.opt (mcpu=): Add ToLower.
20300 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
20303 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
20305 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
20307 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
20309 * config/vax/vax.c: Include reload.h.
20311 2011-04-04 Anatoly Sokolov <aesok@post.ru>
20313 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
20314 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
20315 (sparc_preferred_reload_class): New function.
20317 2011-04-04 Jakub Jelinek <jakub@redhat.com>
20320 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
20321 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
20323 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
20325 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
20326 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
20328 2011-04-03 Anatoly Sokolov <aesok@post.ru>
20330 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
20331 (ASM_OUTPUT_ALIGNED_BSS): Define.
20333 2011-04-03 Michael Matz <matz@suse.de>
20335 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
20336 and next_slot members.
20337 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
20338 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
20339 (lto_streamer_cache_append): Declare.
20340 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
20341 unsigned index, remove offset parameter, ensure that we append
20342 or update existing entries.
20343 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
20344 parameter, update next_slot for append.
20345 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
20347 (lto_streamer_cache_insert_at): Likewise.
20348 (lto_streamer_cache_append): New function.
20349 (lto_streamer_cache_lookup): Use unsigned index.
20350 (lto_streamer_cache_get): Likewise.
20351 (lto_record_common_node): Don't test tree_node_can_be_shared.
20352 (preload_common_node): Adjust call to lto_streamer_cache_insert.
20353 (lto_streamer_cache_delete): Don't free offsets member.
20354 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
20355 (lto_output_string_with_length): Use lto_output_data_stream.
20356 (lto_output_tree_header): Remove ix parameter, don't write it.
20357 (lto_output_builtin_tree): Likewise.
20358 (lto_write_tree): Adjust callers to above, don't track and write
20359 offset, write unsigned index.
20360 (output_unreferenced_globals): Don't emit all global vars.
20361 (write_global_references): Use unsigned indices.
20362 (lto_output_decl_state_refs): Likewise.
20363 (write_symbol): Likewise.
20364 * lto-streamer-in.c (lto_input_chain): Move earlier.
20365 (input_function): Use unsigned index.
20366 (input_alias_pairs): Don't read and then ignore all global vars.
20367 (lto_materialize_tree): Remove ix_p parameter, don't read index,
20368 don't pass it back, use lto_streamer_cache_append.
20369 (lto_register_var_decl_in_symtab): Use unsigned index.
20370 (lto_register_function_decl_in_symtab): Likewise.
20371 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
20373 (lto_get_builtin_tree): Don't read index, use
20374 lto_streamer_cache_append.
20375 (lto_read_tree): Adjust call to lto_materialize_tree.
20377 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
20378 don't use function calls in arguments to MIN.
20380 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
20383 * gimple.c (gimple_type_leader_entry): Mark deletable.
20385 2011-04-03 Alan Modra <amodra@gmail.com>
20387 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
20389 2011-04-03 Michael Matz <matz@suse.de>
20391 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
20393 * tree.h (tree_decl_non_common.vindex): Adjust comment.
20395 2011-04-03 Michael Matz <matz@suse.de>
20397 * cgraphbuild.c (record_reference): Canonicalize constructor values.
20398 * gimple-fold.c (canonicalize_constructor_val): Accept being called
20399 without function context.
20400 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
20401 current_function_decl and cfun.
20403 2011-04-03 Michael Matz <matz@suse.de>
20405 * tree.c (decl_init_priority_insert): Don't create entry for
20407 (decl_fini_priority_insert): Ditto.
20408 (fields_compatible_p, find_compatible_field): Remove.
20409 * tree.h (fields_compatible_p, find_compatible_field): Remove.
20410 * gimple.c (gimple_compare_field_offset): Adjust block comment.
20412 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
20414 * combine.c (try_combine): Remove useless local variable.
20416 2011-04-03 Richard Guenther <rguenther@suse.de>
20417 Ira Rosen <ira.rosen@linaro.org>
20419 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
20420 non-variable offsets and compare the remaining bases of the two
20421 accesses instead of looking for exact same data-ref.
20423 2011-04-02 Kai Tietz <ktietz@redhat.com>
20426 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
20428 * i386.c (ix86_is_msabi_thiscall): New helper function.
20429 (ix86_is_type_thiscall): New helper function.
20430 (ix86_comp_type_attributes): Handle thiscall for method-functions
20432 (init_cumulative_args): Likewise.
20433 (find_drap_reg): Likewise.
20434 (ix86_static_chain): Likewise.
20435 (x86_this_parameter): Likewise.
20436 (x86_output_mi_thunk): Likewise.
20438 2011-04-01 Olivier Hainque <hainque@adacore.com>
20439 Nicolas Setton <setton@adacore.com>
20440 Eric Botcazou <ebotcazou@adacore.com>
20442 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
20443 (add_gnat_descriptive_type_attribute): New function.
20444 (gen_array_type_die): Call it.
20445 (gen_enumeration_type_die): Likewise.
20446 (gen_struct_or_union_type_die): Likewise.
20447 (modified_type_die): Likewise.
20448 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
20449 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
20450 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
20452 2011-04-01 Jakub Jelinek <jakub@redhat.com>
20455 * dwarf2out.c (resolve_addr): Don't call force_decl_die
20456 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
20459 2011-03-17 Richard Guenther <rguenther@suse.de>
20462 * lto-cgraph.c (input_overwrite_node): Clear the abstract
20463 origin for decls in other ltrans units.
20464 (input_varpool_node): Likewise.
20466 2011-04-01 Jakub Jelinek <jakub@redhat.com>
20468 PR middle-end/48335
20469 * expr.c (expand_assignment): Handle all possibilities
20470 if TO_RTX is CONCAT.
20471 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
20472 (store_split_bit_field): If SUBREG_REG (op0) or
20473 op0 itself has smaller mode than word, return it
20474 for offset 0 and const0_rtx for out-of-bounds stores.
20475 If word is const0_rtx, skip it.
20477 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
20479 * config/h8300/h8300.c (print_operand_address): Rename to...
20480 (h8300_print_operand_address): ...this. Make static. Adjust comments.
20481 Call h8300_print_operand and h8300_print_operand_address instead of
20482 print_operand and print_operand_address. Declare.
20483 (print_operand): Renake to...
20484 (h8300_print_operand): ...this. Make static. Adjust comments.
20485 Call h8300_print_operand instead of print_operand. Declare.
20486 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
20487 (h8300_register_move_cost): Likewise.
20488 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
20489 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
20490 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
20491 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
20492 * config/h8300/h8300-protos.h (print_operand): Delete.
20493 (print_operand_address): Delete.
20495 2011-04-01 Richard Henderson <rth@redhat.com>
20498 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
20499 in strict mode before dwarf4. Re-order tests to early out
20500 before switching sections.
20502 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
20504 * config/h8300/constraints.md: New file.
20505 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
20506 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
20507 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
20508 * config/h8300/predicates.md (bit_operand): Likewise.
20509 (incdec_operand): Use satisfies_constraint_M and
20510 satisfies_constraint_O. Don't use C code block.
20511 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
20512 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
20513 (compute_mov_length): Use satisfies_constraint_G.
20514 (fix_bit_operand): Use satisfies_constraint_U.
20515 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
20516 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
20517 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
20518 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
20519 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
20520 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
20521 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20522 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
20523 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
20524 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
20525 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
20526 (EXTRA_MEMORY_CONSTRAINT): Delete.
20528 2011-04-01 Andrew Pinski <pinskia@gmail.com>
20529 Michael Meissner <meissner@linux.vnet.ibm.com>
20532 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
20533 operands, as per the specifications.
20535 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
20536 (vec_extract_evenv4sf): Ditto.
20537 (vec_extract_evenv8hi): Ditto.
20538 (vec_extract_evenv16qi): Ditto.
20539 (vec_extract_oddv4si): Ditto.
20541 2011-03-31 Mark Wielaard <mjw@redhat.com>
20543 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
20544 high_pc attribute if the CU has no associated code. Only output
20545 DW_AT_entry_pc for CU if not generating strict dwarf and
20548 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
20550 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
20551 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
20553 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
20554 * final.c (final_start_function): Call the new function rather
20555 than using a NULL argument for dwarf2out_frame_debug.
20557 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
20558 that contains the prologue.
20560 * haifa-sched.c (queue_insn): New arg REASON. All callers
20561 changed. Print it in debugging output.
20563 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
20565 * sched-ebb.c (begin_schedule_ready): Remove second argument.
20566 Split most of the code into...
20567 (begin_move_insn): ... here. New function.
20568 (ebb_sched_info): Add a pointer to it.
20569 * haifa-sched.c (scheduled_insns): New static variable.
20570 (sched_extend_ready_list): Allocate it.
20571 (schedule_block): Use it to record the order of scheduled insns.
20572 Perform RTL changes to move insns only after all scheduling
20573 decisions have been made.
20574 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
20575 begin_move_insn field.
20576 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
20577 * sched-int.h (struct haifa_sched_info): Remove second argument
20578 from begin_schedule_ready hook. Add new member begin_move_insn.
20579 * sched-rgn.c (begin_schedule_ready): Remove second argument.
20580 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
20582 * haifa-sched.c (prune_ready_list): New function, broken out of
20584 (schedule_block): Use it.
20586 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20588 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
20590 2011-04-01 Kai Tietz <ktietz@redhat.com>
20592 * config.gcc (*-*-mingw*): Allow as option the
20593 posix threading model.
20594 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
20595 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
20597 (CPP_SPEC): Add pthread/no-pthread handling.
20598 (LIB_SPEC): Likewise.
20599 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
20600 (LIB_SPEC): Likewise.
20601 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
20602 flag to pass -pthread option for shared libgcc build.
20603 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
20604 for shared libgcc build.
20605 * config/i386/t-mingw-pthread: New file.
20606 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
20607 New define to enable use of library pthread by default.
20608 * config/i386/mingw.opt (pthread): New driver option.
20609 (no-pthread): New driver option.
20610 * config/i386/cygming.opt: Make sure trailing empty line is retained.
20611 * config/i386/mingw-w64.opt: Likewise.
20613 2011-04-01 Gary Funck <gary@intrepid.com>
20615 * c-decl.c (grokdeclarator): Fix formatting.
20617 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
20619 * expr.c (emit_block_move_via_movmem): Use n_generator_args
20620 instead of n_operands.
20621 (set_storage_via_setmem): Likewise.
20622 * optabs.c (maybe_gen_insn): Likewise.
20623 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
20624 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
20625 (mips_expand_builtin_direct): Likewise.
20626 * config/spu/spu.c (expand_builtin_args): Likewise.
20628 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
20630 * recog.h (insn_data_d): Add n_generator_args.
20631 * genoutput.c (data): Likewise.
20632 (output_insn_data): Print it.
20633 (max_opno, num_dups): Delete.
20634 (scan_operands): Just fill in "d->operand[...]".
20635 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
20637 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
20639 * gensupport.h (pattern_stats): New structure.
20640 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
20641 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
20642 (max_operand_1, max_operand_vec): Delete.
20643 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
20645 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
20647 * emit-rtl.c (emit_pattern_after_setloc): New function.
20648 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
20649 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
20650 (emit_pattern_after): New function.
20651 (emit_insn_after, emit_jump_insn_after): Call it.
20652 (emit_call_insn_after, emit_debug_insn_after): Likewise.
20653 (emit_pattern_before_setloc): New function.
20654 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
20655 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
20657 (emit_pattern_before): New function.
20658 (emit_insn_before, emit_jump_insn_before): Call it.
20659 (emit_call_insn_before, emit_debug_insn_before): Likewise.
20661 2011-03-31 Richard Henderson <rth@redhat.com>
20663 * dwarf2out.c (dw_separate_line_info_ref): Remove.
20664 (dw_separate_line_info_entry): Remove.
20665 (enum dw_line_info_opcode): New.
20666 (dw_line_info_entry): Use it.
20667 (dw_line_info_table, dw_line_info_table_p): New.
20668 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
20669 (line_info_table, line_info_label_num): Remove.
20670 (line_info_table_in_use): Remove.
20671 (separate_line_info_table): Remove.
20672 (separate_line_info_table_allocated): Remove.
20673 (separate_line_info_table_in_use): Remove.
20674 (LINE_INFO_TABLE_INCREMENT): Remove.
20675 (line_info_label_num): New.
20676 (cur_line_info_table): New.
20677 (text_section_line_info, cold_text_section_line_info): New.
20678 (separate_line_info): New.
20679 (SEPARATE_LINE_CODE_LABEL): Remove.
20680 (print_dwarf_line_table): Remove.
20681 (debug_dwarf): Don't dump it.
20682 (output_one_line_info_table): New.
20683 (output_line_info): Use it.
20684 (new_line_info_table): New.
20685 (set_cur_line_info_table): New.
20686 (dwarf2out_switch_text_section): Use it.
20687 (dwarf2out_begin_function): Likewise.
20688 (push_dw_line_info_entry): New.
20689 (dwarf2out_source_line): Rewrite for new line info tables.
20690 (dwarf2out_init): Remove dead initailizations.
20692 2011-03-31 Joseph Myers <joseph@codesourcery.com>
20694 * opts.h (cl_option): Add comments to fields. Add bit-fields for
20696 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
20697 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
20698 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
20699 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
20700 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
20701 * opt-functions.awk (flag_init, switch_bit_fields): New.
20702 (switch_flags): Don't handle flags moved to bit-fields. Don't
20703 generate CL_MISSING_OK or CL_SAVE.
20704 * optc-gen.awk: Update to generate bit-field output as well as
20706 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
20707 bit-field instead of CL_REJECT_DRIVER flag.
20708 * opts-common.c (generate_canonical_option,
20709 decode_cmdline_option): Use bit-fields instead of CL_* flags.
20710 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
20711 instead of CL_REJECT_NEGATIVE flag.
20712 * toplev.c (print_switch_values): Use cl_report bit-field instead
20715 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
20717 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
20718 a zero minimum index only if it is redundant.
20720 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
20722 PR rtl-optimization/48381
20723 * ira-color.c (assign_hard_reg): Use hard reg set intersection
20724 instead of ira_class_hard_reg_index for calculating conflicting
20727 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
20729 * cprop.c: Clean up hash table building.
20730 (reg_avail_info): Remove.
20731 (oprs_available_p): Remove.
20732 (record_last_reg_set_info): Remove.
20733 (record_last_set_info): Remove.
20734 (reg_available_p): New function.
20735 (gcse_constant_p): Do not treat unfolded conditions as constants.
20736 (make_set_regs_unavailable): New function.
20737 (hash_scan_set): Simplify with new reg_available_p.
20738 (compute_hash_table_work): Traverse insns stream only once.
20739 Do not compute reg_avail_info. Traverse insns in reverse order.
20740 Record implicit sets after recording explicit sets from the block.
20742 2011-03-31 Michael Matz <matz@suse.de>
20744 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
20746 2011-03-31 Anatoly Sokolov <aesok@post.ru>
20748 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
20749 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
20750 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20751 (h8300_mode_dependent_address_p): New function.
20752 (h8300_get_index): Make static.
20754 2011-03-31 Jeff Law <law@redhat.com>
20756 * reload1.c (elimination_effects): Fix typo in recent change.
20758 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
20759 typo potentially leading to null pointer dereference.
20761 * caller-save.c (new_saved_hard_reg): Eliminate return value.
20762 (setup_save_areas): Corresponding changes to avoid useless
20765 * jump.c (reversed_comparison_code_parts): Avoid successive return
20766 statements when REVERSE_CONDITION is defined.
20768 * expr.c (expand_assignment): Avoid useless assignments.
20769 (expand_expr_real_1): Likewise.
20770 (expand_expr_real_2): Avoid useless statements.
20772 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
20774 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
20776 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
20779 * stmt.c (expand_expr_stmt): Avoid useless assignment.
20781 2011-03-31 Joseph Myers <joseph@codesourcery.com>
20784 * doc/tm.texi.in (TARGET_VERSION): Remove.
20785 * doc/tm.texi: Regenerate.
20786 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
20787 * collect2.c (main): Don't use TARGET_VERSION.
20788 * mips-tdump.c (main): Don't use TARGET_VERSION.
20789 * mips-tfile.c (main): Don't use TARGET_VERSION.
20790 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
20791 * config/rs6000/vxworksae.h: Remove.
20792 * config/alpha/alpha.h (TARGET_VERSION): Remove.
20793 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
20794 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
20795 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
20796 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
20797 * config/arm/arm.h (TARGET_VERSION): Remove.
20798 * config/arm/coff.h (TARGET_VERSION): Remove.
20799 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
20800 * config/arm/elf.h (TARGET_VERSION): Remove.
20801 * config/arm/freebsd.h (TARGET_VERSION): Remove.
20802 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
20803 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
20804 * config/arm/pe.h (TARGET_VERSION): Remove.
20805 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
20806 * config/arm/semi.h (TARGET_VERSION): Remove.
20807 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
20808 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
20809 * config/arm/vxworks.h (TARGET_VERSION): Remove.
20810 * config/avr/avr.h (TARGET_VERSION): Remove.
20811 * config/bfin/bfin.h (TARGET_VERSION): Remove.
20812 * config/fr30/fr30.h (TARGET_VERSION): Remove.
20813 * config/frv/frv.h (TARGET_VERSION): Remove.
20814 * config/h8300/h8300.h (TARGET_VERSION): Remove.
20815 * config/i386/cygwin.h (TARGET_VERSION): Remove.
20816 * config/i386/darwin.h (TARGET_VERSION): Remove.
20817 * config/i386/darwin64.h (TARGET_VERSION): Remove.
20818 * config/i386/djgpp.h (TARGET_VERSION): Remove.
20819 * config/i386/freebsd.h (TARGET_VERSION): Remove.
20820 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
20821 * config/i386/gnu.h (TARGET_VERSION): Remove.
20822 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
20823 * config/i386/i386elf.h (TARGET_VERSION): Remove.
20824 * config/i386/linux.h (TARGET_VERSION): Remove.
20825 * config/i386/linux64.h (TARGET_VERSION): Remove.
20826 * config/i386/lynx.h (TARGET_VERSION): Remove.
20827 * config/i386/mingw32.h (TARGET_VERSION): Remove.
20828 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
20829 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
20830 * config/i386/netware.h (TARGET_VERSION): Remove.
20831 * config/i386/nto.h (TARGET_VERSION): Remove.
20832 * config/i386/openbsd.h (TARGET_VERSION): Remove.
20833 * config/i386/vxworks.h (TARGET_VERSION): Remove.
20834 * config/ia64/elf.h (TARGET_VERSION): Remove.
20835 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
20836 * config/ia64/hpux.h (TARGET_VERSION): Remove.
20837 * config/ia64/linux.h (TARGET_VERSION): Remove.
20838 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
20839 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
20840 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
20841 * config/lm32/lm32.h (TARGET_VERSION): Remove.
20842 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
20843 * config/m32c/m32c.h (TARGET_VERSION): Remove.
20844 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
20845 * config/m32r/m32r.h (TARGET_VERSION): Remove.
20846 * config/m68k/linux.h (TARGET_VERSION): Remove.
20847 * config/m68k/m68k.h (TARGET_VERSION): Remove.
20848 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
20849 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
20850 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
20851 * config/mep/mep.h (TARGET_VERSION): Remove.
20852 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
20853 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
20854 * config/mips/iris6.h (MACHINE_TYPE): Remove.
20855 * config/mips/linux.h (TARGET_VERSION): Remove.
20856 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
20857 * config/mips/vxworks.h (TARGET_VERSION): Remove.
20858 * config/mmix/mmix.h (TARGET_VERSION): Remove.
20859 * config/mn10300/linux.h (TARGET_VERSION): Remove.
20860 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
20861 * config/pa/pa.h (TARGET_VERSION): Remove.
20862 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
20863 * config/picochip/picochip.h (TARGET_VERSION): Remove.
20864 * config/rs6000/aix.h (TARGET_VERSION): Remove.
20865 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
20866 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
20867 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
20868 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
20869 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
20870 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
20871 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
20872 * config/rs6000/linux.h (TARGET_VERSION): Remove.
20873 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
20874 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
20875 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
20876 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
20877 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
20878 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
20879 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
20880 * config/s390/linux.h (TARGET_VERSION): Remove.
20881 * config/s390/s390.h (TARGET_VERSION): Remove.
20882 * config/s390/tpf.h (TARGET_VERSION): Remove.
20883 * config/score/score.h (TARGET_VERSION): Remove.
20884 * config/sh/linux.h (TARGET_VERSION): Remove.
20885 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
20886 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
20887 * config/sh/sh.h (TARGET_VERSION): Remove.
20888 * config/sh/sh64.h (TARGET_VERSION): Remove.
20889 * config/sh/superh.h (TARGET_VERSION): Remove.
20890 * config/sh/vxworks.h (TARGET_VERSION): Remove.
20891 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
20892 * config/sparc/linux.h (TARGET_VERSION): Remove.
20893 * config/sparc/linux64.h (TARGET_VERSION): Remove.
20894 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
20895 TARGET_NAME32, TARGET_NAME): Remove.
20896 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
20897 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
20898 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
20899 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
20900 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
20901 * config/spu/spu.h (TARGET_VERSION): Remove.
20902 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
20903 * config/v850/v850.h (TARGET_VERSION): Remove.
20904 * config/vax/linux.h (TARGET_VERSION): Remove.
20905 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
20906 * config/xtensa/elf.h (TARGET_VERSION): Remove.
20907 * config/xtensa/linux.h (TARGET_VERSION): Remove.
20909 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
20912 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
20913 frame-related from frame-unrelated adjustments to the stack pointer.
20915 2011-03-31 Jakub Jelinek <jakub@redhat.com>
20917 * common.opt (fdebug-types-section): Move earlier.
20918 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
20920 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
20922 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
20925 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
20927 * tree.h (CASE_CHAIN): Define.
20928 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
20929 (gimple_redirect_edge_and_branch): Likewise.
20931 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
20933 PR middle-end/48367
20934 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
20937 2011-03-30 Jeff Law <law@redhat.com>
20939 * PR bootstrap/48371
20940 * reload1.c (reload): Fix botch in last change.
20942 * reload.h (struct reload): Fix typo introduced in last change.
20944 2011-03-30 Joseph Myers <joseph@codesourcery.com>
20946 * config/arm/arm.opt (mhard-float, msoft-float): Mark
20947 Undocumented. Remove help text.
20948 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
20951 2011-03-30 Joseph Myers <joseph@codesourcery.com>
20953 * doc/options.texi (NegativeAlias): Document.
20954 (Alias): Mention NegativeAlias.
20955 * opt-functions.awk: Handle NegativeAlias.
20956 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
20957 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
20958 * opts.h (CL_NEGATIVE_ALIAS): Define.
20959 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
20960 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
20962 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
20964 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
20965 mno-spe and mno-isel instead of mspe=no and -misel=no.
20967 2011-03-29 Mark Wielaard <mjw@redhat.com>
20969 * common.opt (fdebug-types-section): New flag.
20970 * doc/invoke.texi: Document new -fno-debug-types-section flag.
20971 * dwarf2out.c (use_debug_types): New define.
20972 (struct die_struct): Mark die_id with GTY desc use_debug_types.
20973 (print_die): Guard output of type unit signatures using
20975 (build_abbrev_table): Replace assert of dwarf_version >= 4
20976 with assert on use_debug_types.
20977 (size_of_die): Likewise.
20978 (unmark_dies): Likewise.
20979 (value_format): Decide AT_ref_external form on use_debug_types.
20980 (output_die): Replace dwarf_version version check guard with
20981 use_debug_types where appropriate.
20982 (modified_type_die): Likewise.
20983 (gen_reference_type_die): Likewise.
20984 (dwarf2out_start_source_file): Likewise.
20985 (dwarf2out_end_source_file): Likewise.
20986 (prune_unused_types_walk_attribs): Likewise.
20987 (dwarf2out_finish): Likewise.
20989 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
20991 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
20993 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
20995 PR rtl-optimization/48332
20996 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
20997 mode of input operand N and modeN to its actual mode.
20999 2011-03-30 Jeff Law <law@redhat.com>
21001 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
21002 define accessor macro.
21003 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
21004 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
21005 (reg_equiv_init): Likewise.
21006 (reg_equivs_size): New variable.
21007 (reg_equiv_init_size): Remove.
21008 (allocate_initial_values): Move prototype to here from....
21009 * integrate.h (allocate_initial_values): Remove prototype.
21010 * integrate.c: Include reload.h.
21011 (allocate_initial_values): Corresponding changes.
21012 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
21013 (fix_reg_equiv_init, no_equiv): Corresponding changes.
21014 (update_equiv_regs): Corresponding changes.
21015 (ira): Corresponding changes.
21016 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
21017 (push_secondary_reload): Corresponding changes.
21018 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
21019 (make_memloc, find_reloads_address): Corresponding changes.
21020 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
21021 (find_reloads_address_1): Corresponding changes.
21022 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
21023 (refers_to_regno_for_reload_p): Corresponding changes.
21024 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
21025 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
21026 * reload1.c: Include ggc.h.
21027 (grow_reg_equivs): New function.
21028 (replace_pseudos_in, reload): Corresponding changes.
21029 (calculate_needs_all_insns, alter_regs): Corresponding changes.
21030 (eliminate_regs_1, elimination_effects): Corresponding changes.
21031 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
21032 (delete_output_reload): Likewise.
21033 * caller-save.c (mark_referenced_regs): Corresponding changes.
21034 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
21035 * frv/predicates.md (frv_load_operand): Corresponding changes.
21036 * microblaze/microblaze.c (double_memory_operand): Corresponding
21038 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
21039 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
21040 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
21041 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
21042 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
21044 * pa/pa.c (emit_move_sequence): Corresponding changes.
21045 * vax/vax.c (nonindexed_address_p): Corresponding changes.
21047 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
21050 * config/arm/arm.c (coproc_secondary_reload_class): Handle
21051 structure modes. Don't check neon_vector_mem_operand for
21052 vector or structure modes.
21054 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
21055 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21058 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
21059 operand 1 and reshuffle the operands to match.
21060 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
21062 2011-03-30 Christian Schüler <cschueler@gmx.de>
21065 * config/c.opt (F): Added 'Driver' to -F option.
21068 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
21070 * config/darwin.opt: Added '-arch' option.
21072 2011-03-30 Nick Clifton <nickc@redhat.com>
21074 * config/rx/rx.md: Add peepholes and patterns to combine
21075 extending loads and simple arithmetic instructions.
21076 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
21077 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
21078 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
21079 modes to use pre-decrement and post-increment addressing.
21080 (rx_is_restricted_memory_address): Add range checking of REG+INT
21082 (rx_print_operand): Add support for %Q. Fix handling of %Q.
21083 (rx_memory_move_cost): Adjust cost of stores.
21084 (rx_adjust_insn_length): New function.
21086 2011-03-30 Jakub Jelinek <jakub@redhat.com>
21089 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
21090 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
21091 matching arg00/arg01 types.
21093 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
21095 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
21096 last_location to UNKNOWN_LOCATION.
21098 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
21101 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
21104 2011-03-30 Joseph Myers <joseph@codesourcery.com>
21105 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21108 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
21109 Init(PROCESSOR_V7).
21110 (sparc_cpu): Likewise.
21111 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
21114 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
21117 PR middle-end/48342
21118 PR rtl-optimization/48345
21119 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
21120 hard regs for given mode from profitable regs when doing secondary
21123 2011-03-29 Jeff Law <law@redhat.com>
21126 * tree-ssa-threadupdate.c (struct redirection_data): Remove
21127 do_not_duplicate field.
21128 (lookup_redirection_data): Corresponding changes.
21129 (create_duplicates): Always create a template block.
21130 (redirect_edges): Remove code which reused the original block
21131 when it was going to become unreachable code.
21132 (thread_block): Don't set do_not_duplicate field.
21134 2011-03-29 Joseph Myers <joseph@codesourcery.com>
21136 * lto-opts.c (register_user_option_p, lto_register_user_option):
21137 Make type argument unsigned.
21138 * lto-streamer.h (lto_register_user_option): Make type argument
21140 * opth-gen.awk: Make CL_* macros unsigned.
21141 * opts-common.c (find_opt): Make lang_mask argument unsigned.
21142 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
21143 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
21144 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
21145 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
21146 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
21147 (find_opt): Make lang_mask argument unsigned.
21149 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
21151 PR rtl-optimization/48331
21152 PR rtl-optimization/48334
21153 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
21154 for any used algorithm.
21156 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
21158 * ira-conflicts.c (build_object_conflicts): Add unused attribute
21161 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
21163 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
21164 (alpha_option_override): Don't set alpha_sr_alias_set.
21165 (emit_frame_store_1): Use gen_frame_mem rather than calling
21167 (alpha_expand_epilogue): Ditto.
21169 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
21171 PR tree-optimization/48290
21172 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
21173 vectorization, check that relevant phis in the basic block after
21174 the inner loop are really inner loop's exit phis.
21176 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
21179 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
21180 (cached_dw_loc_list_def): New structure.
21181 (cached_dw_loc_list): New typedef.
21182 (cached_dw_loc_list_table): New variable.
21183 (cached_dw_loc_list_table_hash): New function.
21184 (cached_dw_loc_list_table_eq): Likewise.
21185 (add_location_or_const_value_attribute): Take a bool cache_p.
21186 Cache the list when the parameter is true.
21187 (gen_formal_parameter_die): Update caller.
21188 (gen_variable_die): Likewise.
21189 (dwarf2out_finish): Likewise.
21190 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
21191 while generating debug info for the decl.
21192 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
21193 (dwarf2out_init): Initialize cached_dw_loc_list_table.
21194 (resolve_addr): Cache the result of resolving a chain of
21197 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
21199 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
21200 conflict object hard regset nodes have intersecting hard reg sets.
21202 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
21203 after regstat_init_n_sets_and_refs.
21205 * ira.c: Add more comments at the top.
21206 (setup_stack_reg_pressure_class, setup_pressure_classes):
21207 Add comments how we compute the register pressure classes.
21208 (setup_allocno_and_important_classes): Add more comments.
21209 (setup_class_translate_array, reorder_important_classes)
21210 (setup_reg_class_relations): Add comments.
21212 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
21215 * ira-color.c: Add 2011 to the Copyright line.
21216 (assign_hard_reg): Add more comments.
21217 (improve_allocation): Ditto.
21219 * ira-costs.c: Add 2011 to the Copyright line.
21220 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
21222 (setup_regno_cost_classes_by_mode): Ditto.
21224 Initial patches from ira-improv branch:
21226 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
21228 * ira-build.c (ira_create_object): Remove initialization of
21229 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
21230 (ira_create_allocno): Remove initialization of
21231 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
21232 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
21233 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
21234 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
21235 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
21236 Initialize ALLOCNO_ADD_DATA.
21237 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
21238 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
21240 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
21241 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
21243 * ira.c (ira_reallocate): Remove.
21244 (setup_pressure_classes): Call
21245 ira_init_register_move_cost_if_necessary. Use
21246 ira_register_move_cost instead of ira_get_register_move_cost.
21247 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
21248 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
21250 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
21251 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
21252 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
21253 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
21254 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
21255 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
21257 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
21258 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
21259 (struct allocno_color_data): New.
21260 (allocno_color_data_t): New typedef.
21261 (allocno_color_data): New definition.
21262 (ALLOCNO_COLOR_DATA): New macro.
21263 (struct object_color_data): New.
21264 (object_color_data_t): New typedef.
21265 (object_color_data): New definition.
21266 (OBJECT_COLOR_DATA): New macro.
21267 (update_copy_costs, calculate_allocno_spill_cost): Call
21268 ira_init_register_move_cost_if_necessary. Use
21269 ira_register_move_cost instead of ira_get_register_move_cost.
21270 (move_spill_restore, update_curr_costs): Ditto.
21271 (allocno_spill_priority): Make it inline.
21272 (color_pass): Allocate and free allocno_color_dat and object_color_data.
21273 (struct coalesce_data, coalesce_data_t): New.
21274 (allocno_coalesce_data): New definition.
21275 (ALLOCNO_COALESCE_DATA): New macro.
21276 (merge_allocnos, coalesced_allocno_conflict_p): Use
21277 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
21278 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
21279 (coalesce_allocnos): Ditto.
21280 (setup_coalesced_allocno_costs_and_nums): Ditto.
21281 (collect_spilled_coalesced_allocnos): Ditto.
21282 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
21283 (setup_slot_coalesced_allocno_live_ranges): Ditto.
21284 (coalesce_spill_slots): Ditto.
21285 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
21286 free allocno_coalesce_data.
21288 * ira-conflicts.c: Fix formatting.
21289 (process_regs_for_copy): Call
21290 ira_init_register_move_cost_if_necessary. Use
21291 ira_register_move_cost instead of ira_get_register_move_cost.
21292 (build_object_conflicts): Optimize.
21294 * ira-costs.c (record_reg_classes): Optimize. Call
21295 ira_init_register_move_cost_if_necessary. Use
21296 ira_register_move_cost, ira_may_move_in_cost, and
21297 ira_may_move_out_cost instead of ira_get_register_move_cost and
21298 ira_get_may_move_cost.
21299 (record_address_regs): Ditto.
21300 (scan_one_insn): Optimize.
21301 (find_costs_and_classes): Optimize.
21302 (process_bb_node_for_hard_reg_moves): Call
21303 ira_init_register_move_cost_if_necessary. Use
21304 ira_register_move_cost instead of ira_get_register_move_cost.
21306 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
21307 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
21308 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
21309 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
21311 (ira_initiate_emit_data, ira_finish_emit_data)
21312 (create_new_allocno): New functions.
21313 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
21314 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
21315 Use ira_register_move_cost instead of ira_get_register_move_cost.
21317 * ira-int.h: Fix some comments.
21318 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
21319 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
21320 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
21321 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
21323 (struct ira_allocno): Make mode and aclass a bitfield. Move other
21324 bitfield after mode. Make hard_regno a short int. Make
21325 hard_regno short. Remove first_coalesced_allocno and
21326 next_coalesced_allocno. Move mem_optimized_dest_p,
21327 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
21328 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
21329 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
21330 temp, colorable_p. Add new member add_data.
21331 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
21332 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
21333 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
21334 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
21335 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
21336 (ALLOCNO_ADD_DATA): New macro.
21337 (ira_emit_data_t): New typedef.
21338 (struct ira_emit_data): New. Move mem_optimized_dest_p,
21339 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
21340 from struct ira_allocno.
21341 (ALLOCNO_EMIT_DATA): New macro.
21342 (ira_allocno_emit_data, allocno_emit_reg): New.
21343 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
21344 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
21345 (OBJECT_ADD_DATA): New macro.
21346 (ira_reallocate): Remove.
21347 (ira_initiate_emit_data, ira_finish_emit_data): New.
21348 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
21349 (ira_init_register_move_cost_if_necessary): New.
21350 (ira_object_conflict_iter_next): Merge into
21351 ira_object_conflict_iter_cond.
21352 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
21354 * ira-live.c (process_single_reg_class_operands): Call
21355 ira_init_register_move_cost_if_necessary. Use
21356 ira_register_move_cost instead of ira_get_register_move_cost.
21358 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
21360 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
21362 * ira-costs.c: Fix formatting.
21363 (cost_classes, cost_classes_num): Remove.
21364 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
21365 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
21366 (cost_classes_del, cost_classes_htab): New.
21367 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
21368 (initiate_regno_cost_classes, setup_cost_classes): New.
21369 (setup_regno_cost_classes_by_aclass): New.
21370 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
21371 (record_reg_classes): Use regno_cost_classes instead of
21372 cost_classes. Move checking opposite operand up.
21373 (record_address_regs): Use regno_cost_classes
21374 instead of cost_classes.
21375 (scan_one_insn): Ditto. Use always general register.
21376 (print_allocno_costs): Use regno_cost_classes instead of
21378 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
21379 (find_costs_and_classes): Set up cost classes for each registers.
21380 Use also their mode for this. Use regno_cost_classes instead of
21382 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
21384 (free_ira_costs, ira_init_costs): Don't use cost_classes.
21385 (ira_costs, ira_set_pseudo_classes): Call
21386 initiate_regno_cost_classes and finish_regno_cost_classes.
21388 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
21390 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
21392 * target.def (ira_cover_classes): Remove.
21394 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
21396 * doc/tm.texi.in: Ditto.
21398 * ira-conflicts.c: Remove mentioning cover classes from the file.
21399 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
21400 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
21402 * targhooks.c (default_ira_cover_classes): Remove.
21404 * targhooks.h (default_ira_cover_classes): Ditto.
21406 * haifa-sched.c: Remove mentioning cover classes from the file.
21407 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
21408 ira_pressure_classes and ira_pressure_classes_num instead of
21409 ira_reg_class_cover_size and ira_reg_class_cover. Use
21410 sched_regno_pressure_class instead of sched_regno_cover_class.
21411 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
21412 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21414 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
21415 classes from the file.
21416 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
21417 (struct object_hard_regs, struct object_hard_regs_node): New.
21418 (struct ira_object): New members profitable_hard_regs,
21419 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
21420 (struct ira_allocno): Rename cover_class to aclass. Rename
21421 cover_class_cost and updated_cover_class_cost to class_cost and
21422 updated_class_cost. Remove splay_removed_p and
21423 left_conflict_size. Add new members colorable_p.
21424 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
21425 (ALLOCNO_COLORABLE_P): New macro.
21426 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
21427 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
21428 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
21429 (OBJECT_...): Rename parameter C to O.
21430 (OBJECT_PROFITABLE_HARD_REGS): New macro.
21431 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
21432 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
21433 (struct target_ira_int): New members x_ira_max_memory_move_cost,
21434 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
21435 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
21436 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
21437 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
21438 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
21439 x_ira_reg_class_subunion.
21440 (ira_max_memory_move_cost, ira_max_register_move_cost)
21441 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
21442 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
21443 (ira_important_class_nums, ira_reg_class_superunion): New macros.
21444 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
21445 (ira_reg_class_union): Rename to ira_reg_class_subunion.
21446 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
21447 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
21448 (ira_tune_allocno_costs_and_cover_classes): Rename to
21449 ira_tune_allocno_costs.
21450 (ira_debug_hard_regs_forest): New.
21451 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
21452 (ira_object_conflict_iter_next): Fix comments.
21453 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
21454 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
21455 cover_class to aclass.
21456 (ira_allocate_and_accumulate_costs): Ditto.
21457 (ira_allocate_and_set_or_copy_costs): Ditto.
21459 * opts.c (decode_options): Remove ira_cover_class check.
21461 * ira-color.c: Remove mentioning cover classes from the file. Use
21462 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
21463 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
21464 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
21465 (splay-tree.h): Remove include.
21466 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
21467 before copy_freq_compare_func.
21468 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
21469 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
21471 (hard_regs_roots, hard_regs_node_vec): Ditto.
21472 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
21473 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
21474 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
21475 (create_new_object_hard_regs_node): Ditto.
21476 (add_new_object_hard_regs_node_to_forest): Ditto.
21477 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
21478 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
21480 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
21481 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
21482 (remove_unused_object_hard_regs_nodes): Ditto.
21483 (enumerate_object_hard_regs_nodes): Ditto.
21484 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
21485 (object_hard_regs_subnode_t): Ditto.
21486 (struct object_hard_regs_subnode): Ditto.
21487 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
21488 (setup_object_hard_regs_subnode_index): Ditto.
21489 (get_object_hard_regs_subnodes_num): Ditto.
21490 (form_object_hard_regs_nodes_forest): Ditto.
21491 (finish_object_hard_regs_nodes_tree): Ditto.
21492 (finish_object_hard_regs_nodes_forest): Ditto.
21493 (allocnos_have_intersected_live_ranges_p): Rename to
21494 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
21495 (pseudos_have_intersected_live_ranges_p): Rename to
21496 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
21497 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
21498 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
21499 (update_copy_costs): Remove assert. Skip cost update if the hard
21500 reg does not belong the class.
21501 (assign_hard_reg): Process only profitable hard regs.
21502 (uncolorable_allocnos_num): Make it scalar.
21503 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
21504 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
21505 and ira_reg_class_max_nregs.
21506 (bucket_allocno_compare_func): Check frequency first.
21507 (sort_bucket): Add compare function as a parameter.
21508 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
21509 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
21510 (push_allocno_to_stack): Rewrite for checking new allocno
21512 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
21513 (push_only_colorable): Pass new parameter to sort_bucket.
21514 (push_allocno_to_spill): Remove.
21515 (allocno_spill_priority_compare): Make it inline and rewrite.
21516 (splay_tree_allocate, splay_tree_free): Remove.
21517 (allocno_spill_sort_compare): New function.
21518 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
21519 build and use splay tree. Choose first allocno in uncolorable
21520 allocno bucket to spill. Remove setting spill cost.
21521 (all_conflicting_hard_regs): Remove.
21522 (setup_allocno_available_regs_num): Check only profitable hard
21523 regs. Print info about hard regs nodes.
21524 (setup_allocno_left_conflicts_size): Remove.
21525 (put_allocno_into_bucket): Don't call
21526 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
21527 (improve_allocation): New.
21528 (color_allocnos): Call setup_profitable_hard_regs,
21529 form_object_hard_regs_nodes_forest, improve_allocation,
21530 finish_object_hard_regs_nodes_forest. Setup spill cost.
21531 (print_loop_title): Use pressure classes.
21532 (color_allocnso): Ditto.
21533 (do_coloring): Remove allocation and freeing splay_tree_node_pool
21534 and allocnos_for_spilling.
21535 (ira_sort_regnos_for_alter_reg): Don't setup members
21536 {first,next}_coalesced_allocno.
21537 (color): Remove allocating and freeing removed_splay_allocno_vec.
21538 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
21539 prohibited_class_mode_regs.
21541 * ira-lives.c: Remove mentioning cover classes from the file. Fix
21543 (update_allocno_pressure_excess_length): Use pressure classes.
21544 (inc_register_pressure, dec_register_pressure): Check for pressure
21546 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
21547 pressure class. Use ira_reg_class_nregs instead of
21548 ira_reg_class_max_nregs.
21549 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
21550 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
21551 (single_reg_class): Use ira_reg_class_nregs instead of
21552 ira_reg_class_max_nregs.
21553 (process_bb_node_lives): Use pressure classes.
21555 * ira-emit.c: Remove mentioning cover classes from the file. Use
21556 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
21557 (change_loop): Use pressure classes.
21558 (modify_move_list): Call ira_set_allocno_class instead of
21559 ira_set_allocno_cover_class.
21561 * ira-build.c: Remove mentioning cover classes from the file. Use
21562 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
21563 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
21564 ALLOCNO_UPDATED_CLASS_COST instead of
21565 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
21566 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
21567 (ira_create_allocno): Remove initialization of
21568 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
21569 ALLOCNO_COLORABLE_P.
21570 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
21571 Update conflict regs for the objects.
21572 (create_cap_allocno): Remove assert. Don't propagate
21573 ALLOCNO_AVAILABLE_REGS_NUM.
21574 (ira_free_allocno_costs): New function.
21575 (finish_allocno): Change a part of code into call of
21576 ira_free_allocno_costs.
21577 (low_pressure_loop_node_p): Use pressure classes.
21578 (object_range_compare_func): Don't compare classes.
21579 (setup_min_max_conflict_allocno_ids): Ditto.
21581 * loop-invariant.c: Remove mentioning cover classes from the file.
21582 Use ira_pressure_classes and ira_pressure_classes_num instead of
21583 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
21584 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
21585 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21586 Use reg_allocno_class instead of reg_cover_class.
21587 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
21588 STACK_REG_COVER_CLASS.
21589 (get_regno_cover_class): Rename to get_regno_pressure_class.
21590 (move_loop_invariants): Initialize and finalize regstat.
21592 * ira.c: Remove mentioning cover classes from the file. Add
21593 comments about coloring without cover classes. Use ALLOCNO_CLASS
21594 instead of ALLOCNO_COVER_CLASS. Fix formatting.
21595 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
21596 setup_class_subset_and_memory_move_costs.
21597 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
21598 (setup_cover_and_important_classes): Rename to
21599 setup_allocno_and_important_classes.
21600 (setup_class_translate_array): New.
21601 (setup_class_translate): Call it for allocno and pressure classes.
21602 (cover_class_order): Rename to allocno_class_order.
21603 (comp_reg_classes_func): Use ira_allocno_class_translate instead
21604 of ira_class_translate.
21605 (reorder_important_classes): Set up ira_important_class_nums.
21606 (setup_reg_class_relations): Set up ira_reg_class_superunion.
21607 (print_class_cover): Rename to print_classes. Add parameter.
21608 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
21609 Print pressure classes too.
21610 (find_reg_class_closure): Rename to find_reg_classes. Don't call
21611 setup_reg_subclasses.
21612 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
21613 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
21614 (setup_prohibited_class_mode_regs): Use
21615 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
21616 (clarify_prohibited_class_mode_regs): New function.
21617 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
21618 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
21619 (ira_init_once): Initialize them.
21620 (free_register_move_costs): Process them.
21621 (ira_init): Move calls of find_reg_classes and
21622 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
21623 Call clarify_prohibited_class_mode_regs.
21624 (ira_no_alloc_reg): Remove.
21625 (too_high_register_pressure_p): Use pressure classes.
21627 * sched-deps.c: Remove mentioning cover classes from the file.
21628 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
21629 ira_pressure_classes and ira_pressure_classes_num instead of
21630 ira_reg_class_cover_size and ira_reg_class_cover.
21631 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
21632 sched_regno_pressure_class instead of sched_regno_cover_class.
21633 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
21634 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21636 * ira.h: Add 2010 to Copyright.
21637 (ira_no_alloc_reg): Remove external.
21638 (struct target_ira): Rename x_ira_hard_regno_cover_class,
21639 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
21640 x_ira_class_translate to x_ira_hard_regno_allocno_class,
21641 x_ira_allocno_classes_num, x_ira_allocno_classes, and
21642 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
21643 x_ira_pressure_classes, x_ira_pressure_class_translate, and
21644 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
21645 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
21646 x_ira_no_alloc_regs.
21647 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
21648 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
21649 ira_allocno_classes_num and ira_allocno_classes.
21650 (ira_class_translate): Rename to ira_allocno_class_translate.
21651 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
21652 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
21653 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
21654 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
21655 (ira_no_alloc_regs): New.
21657 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
21658 classes from the file. Use ALLOCNO_CLASS instead of
21659 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
21660 ALLOCNO_COVER_CLASS_COST.
21661 (regno_cover_class): Rename to regno_aclass.
21662 (record_reg_classes): Use ira_reg_class_subunion instead of
21663 ira_reg_class_union.
21664 (record_address_regs): Check overflow.
21665 (scan_one_insn): Ditto.
21666 (print_allocno_costs): Print total mem cost fore regional allocation.
21667 (print_pseudo_costs): Use REG_N_REFS.
21668 (find_costs_and_classes): Use classes intersected with them on the
21669 1st pass. Check overflow. Use ira_reg_class_subunion instead of
21670 ira_reg_class_union. Use ira_allocno_class_translate and
21671 regno_aclass instead of ira_class_translate and regno_cover_class.
21672 Modify code for finding regno_aclass. Setup preferred classes for
21674 (setup_allocno_cover_class_and_costs): Rename to
21675 setup_allocno_class_and_costs. Use regno_aclass instead of
21676 regno_cover_class. Use ira_set_allocno_class instead of
21677 ira_set_allocno_cover_class.
21678 (init_costs, finish_costs): Use regno_aclass instead of
21680 (ira_costs): Use setup_allocno_class_and_costs instead of
21681 setup_allocno_cover_class_and_costs.
21682 (ira_tune_allocno_costs_and_cover_classes): Rename to
21683 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
21684 by processing objects. Use ira_reg_class_max_nregs instead of
21685 ira_reg_class_nregs.
21687 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
21689 * sched-int.h: Remove mentioning cover classes from the file.
21690 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
21692 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
21693 classes from the file.
21694 (struct reg_pref): Rename coverclass into allocnoclass.
21695 (reg_cover_class): Rename to reg_allocno_class.
21697 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
21699 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
21701 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
21703 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
21705 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
21707 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
21709 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
21711 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
21713 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
21715 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
21717 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
21718 (i386_ira_cover_classes): Ditto.
21720 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
21722 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
21724 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
21726 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
21728 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
21730 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
21732 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
21733 (mips_ira_cover_classes): Ditto.
21735 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
21737 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
21739 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
21741 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
21743 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
21745 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
21746 (IRA_COVER_CLASSES_VSX): Ditto.
21748 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
21749 (rs6000_ira_cover_classes): Ditto.
21751 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
21753 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
21755 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
21757 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
21759 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
21761 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
21763 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
21765 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
21767 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
21769 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
21771 2011-03-29 Jakub Jelinek <jakub@redhat.com>
21774 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
21775 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
21776 dw_fde_unlikely_section_end_label, cold_in_std_section,
21777 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
21778 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
21780 (output_fde): Use dw_fde_second_{begin,end} if second is
21781 true, otherwise dw_fde_{begin,end}.
21782 (output_call_frame_info): Test dw_fde_second_begin != NULL
21783 instead of dw_fde_switched_sections.
21784 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
21785 fields, initialize new fields. Initialize in_std_section
21786 unconditionally from the first partition.
21787 (dwarf2out_end_epilogue): Don't override dw_fde_end when
21788 dw_fde_second_begin is non-NULL.
21789 (dwarf2out_switch_text_section): Stop initializing removed
21790 dw_fde_struct fields, initialize new fields, initialize
21791 also dw_fde_end here. Set dw_fde_switch_cfi even when
21792 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
21793 (struct var_loc_list_def): Add last_before_switch field.
21794 (arange_table, arange_table_allocated, arange_table_in_use,
21795 ARANGE_TABLE_INCREMENT, add_arange): Removed.
21796 (size_of_aranges): Count !in_std_section and !second_in_std_section
21797 hunks in fdes, instead of looking at arange_table_in_use.
21798 (output_aranges): Add aranges_length argument, don't call
21799 size_of_aranges here. Instead of using aranges_table*
21800 emit ranges for fdes when !in_std_section resp.
21801 !second_in_std_section.
21802 (dw_loc_list): Break ranges crossing section switch.
21803 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
21804 use dw_fde_second_end instead of dw_fde_end as end of last range.
21805 (gen_subprogram_die): Don't call add_arange. Use
21806 dw_fde_{begin,end} for first partition and if switched
21807 section dw_fde_second_{begin,end} for the second.
21808 (var_location_switch_text_section_1,
21809 var_location_switch_text_section): New functions.
21810 (dwarf2out_begin_function): Initialize cold_text_section even
21811 when function_section () isn't text_section.
21812 (prune_unused_types): Don't walk arange_table.
21813 (dwarf2out_finish): Don't needlessly test
21814 flag_reorder_blocks_and_partition when testing cold_text_section_used.
21815 If info_section_emitted, call size_of_aranges and if it indicates
21816 non-empty .debug_aranges, call output_aranges with the computed
21817 size. Stop using removed dw_fde_struct fields, use
21818 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
21822 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
21823 create ENTRY_VALUE if incoming or address of incoming's MEM
21825 * dwarf2out.c (mem_loc_descriptor): Don't emit
21826 DW_OP_GNU_entry_value of DW_OP_fbreg.
21827 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
21828 on ENTRY_VALUE is able to find the canonical parameter VALUE.
21829 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
21830 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
21832 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
21833 is a REG_P or MEM_P with REG_P address, compute hash directly
21834 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
21835 (preserve_only_constants): Don't clear VALUES forwaring
21836 ENTRY_VALUE to some other VALUE.
21838 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
21840 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
21841 instead of GEN_INT.
21843 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
21845 * cfgexpand.c (expand_gimple_cond): Always set the source location and
21846 block before expanding the statement.
21847 (expand_gimple_stmt_1): Likewise. Set them here...
21848 (expand_gimple_stmt): ...and not here. Tidy.
21849 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
21852 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
21854 * Makefile.in: New rule for cprop.o.
21855 * gcse.c: Move constant/copy propagation to cprop.c.
21856 (compute_local_properties): Only handle expression tables.
21857 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
21858 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
21859 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
21860 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
21861 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
21862 compute_cprop_data, find_used_regs, try_replace_reg,
21863 find_avail_set, cprop_jump, constprop_register, cprop_insn,
21864 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
21865 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
21866 find_bypass_set, reg_killed_on_edge, bypass_block,
21867 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
21868 execute_rtl_cprop, pass_rtl_cprop): Move to...
21869 * cprop.c: ...here. New file, constant/copy propagation for RTL
21870 moved from gcse.c to here with minor cleanups in duplicated code.
21872 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
21874 * config/i386/i386.c (flag_opts): Fix a typo in
21875 -mavx256-split-unaligned-store.
21877 2011-03-28 Anatoly Sokolov <aesok@post.ru>
21879 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
21880 LIBCALL_VALUE): Remove macros.
21881 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21882 TARGET_FUNCTION_VALUE_REGNO_P): Define.
21883 (h8300_function_value, h8300_libcall_value,
21884 h8300_function_value_regno_p): New functions.
21886 2011-03-28 Anatoly Sokolov <aesok@post.ru>
21888 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
21890 2011-03-28 Jeff Law <law@redhat.com>
21892 * tree-ssa-threadupdate.c (redirect_edges): Call
21893 create_edge_and_update_destination_phis as needed.
21894 (create_edge_and_update_destination_phis): Accept new BB argument.
21895 All callers updated.
21896 (thread_block): Do not update the profile when threading around
21897 intermediate blocks.
21898 (thread_single_edge): Likewise.
21899 (determine_bb_domination_status): If BB is not a successor of the
21900 loop header, return NONDOMINATING.
21901 (register_jump_thread): Note when we register a jump thread around
21902 an intermediate block.
21903 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
21904 (thread_across_edge): Use it.
21906 2011-03-28 Tristan Gingold <gingold@adacore.com>
21908 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
21909 when for_return is 2.
21911 2011-03-28 Jeff Law <law@redhat.com>
21913 * var-tracking.c (canonicalize_values_mark): Delete unused
21915 (canonicalize_values_star, set_variable_part): Likewise.
21916 (clobber_variable_part, delete_variable_part): Likewise.
21918 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
21920 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
21922 2011-03-28 Martin Jambor <mjambor@suse.cz>
21924 * tree-inline.c (expand_call_inline): Do not check that destination
21926 (optimize_inline_calls): Assert that destination node is analyzed.
21927 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
21928 not call tree_lowering_passes.
21929 * cgraph.h (cgraph_analyze_function): Declare.
21930 * cgraphunit.c (cgraph_analyze_function): Make public.
21932 2011-03-28 Joseph Myers <joseph@codesourcery.com>
21934 * config/sparc/sparc-opts.h: New.
21935 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
21936 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
21937 (sparc_option_override): Store processor_type enumeration rather
21938 than string in cpu_default. Remove name and enumeration from
21939 cpu_table. Directly default -mcpu then default -mtune from -mcpu
21940 without using sparc_select. Use target_flags_explicit instead of
21942 * config/sparc/sparc.h (enum processor_type): Move to
21944 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
21945 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
21946 HeaderInclude entry.
21947 (mcpu=, mtune=): Use Var and Enum.
21948 (sparc_processor_type): New Enum and EnumValue entries.
21950 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21951 Iain Sandoe <iains@gcc.gnu.org>
21954 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
21956 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
21958 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
21959 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
21960 Insert new statements at it in lieu of STMT.
21961 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
21962 * tree-vect-stmts.c (vectorizable_store): Likewise.
21963 (vectorizable_load): Likewise.
21965 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
21967 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
21972 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
21974 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
21975 unaligned 256bit load/store.
21976 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
21977 (*avx_movdqu<avxmodesuffix>): Likewise.
21979 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21982 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
21983 * config/pa/pa.md (iordi3): Use new predicate in expander.
21984 (iorsi3): Likewise.
21986 2011-03-27 Anatoly Sokolov <aesok@post.ru>
21988 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
21989 FUNCTION_VALUE_REGNO_P): Remove macros.
21990 * config/mips/mips-protos.h (mips_function_value): Remove.
21991 * config/mips/mips.c (mips_function_value): Rename to...
21992 (mips_function_value_1): ... this. Make static. Handle receiving
21993 the function type in 'fn_decl_or_type' argument.
21994 (mips_function_value, mips_libcall_value,
21995 mips_function_value_regno_p): New function.
21996 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21997 TARGET_FUNCTION_VALUE_REGNO_P): Define.
21999 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
22001 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
22002 and -mavx256-split-unaligned-store.
22003 (ix86_option_override_internal): Split 32-byte AVX unaligned
22004 load/store by default.
22005 (ix86_avx256_split_vector_move_misalign): New.
22006 (ix86_expand_vector_move_misalign): Use it.
22008 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
22009 -mavx256-split-unaligned-store.
22011 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
22012 256bit load/store. Generate unaligned store on misaligned memory
22014 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
22016 (*avx_movdqu<avxmodesuffix>): Likewise.
22018 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
22019 -mavx256-split-unaligned-store.
22021 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
22024 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
22027 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
22029 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
22030 opno arguments with an expand_operand. Use create_input_operand.
22031 (mips_prepare_builtin_target): Delete.
22032 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
22034 (mips_expand_builtin_direct): Use create_output_operand and
22035 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
22036 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
22037 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
22039 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
22041 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
22043 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
22045 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
22047 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
22048 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
22049 basic blocks and call commit_edge_insertions directly.
22050 (fixup_abnormal_edges): Move from here to...
22051 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
22052 on the edges and return whether some have actually been inserted.
22053 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
22056 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
22058 PR rtl-optimization/48144
22059 * sel-sched-ir.c (merge_history_vect): Factor out from ...
22060 (merge_expr_data): ... here.
22061 (av_set_intersect): Rename to av_set_code_motion_filter.
22062 Update all callers. Call merge_history_vect when an expression
22063 is found in both sets.
22064 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
22066 2011-03-26 Alan Modra <amodra@gmail.com>
22068 * config/rs6000/predicates.md (word_offset_memref_op): Handle
22069 cmodel medium addresses.
22070 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
22071 64-bit gpr loads and stores.
22072 (rs6000_secondary_reload_ppc64): New function.
22073 * config/rs6000/rs6000-protos.h: Declare it.
22074 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
22076 2011-03-26 Alan Modra <amodra@gmail.com>
22079 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
22080 GNU Go in traceback table.
22082 2011-03-25 Richard Henderson <rth@redhat.com>
22084 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
22085 if there are exactly 6 operands.
22086 (set_storage_via_setmem): Similarly.
22088 2011-03-25 Kai Tietz <ktietz@redhat.com>
22090 * collect2.c (write_c_file_stat): Handle backslash
22091 as right-hand directory separator.
22092 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
22093 checking just for slash.
22094 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
22095 instead of checking for trailing slash.
22096 * gcc.c (record_temp_file): Use filename_cmp instead
22098 (do_spec_1): Likewise.
22099 (replace_outfile_spec_function): Likewise.
22100 (is_directory): Use filename_ncmp instead of strncmp.
22101 (print_multilib_info): Likewise.
22102 * gcov.c (find_source): Use filename_cmp instead
22104 (make_gcov_file_name): Fix order of slash/backslash
22106 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
22107 (add_standard_paths): Likewise.
22108 * mips-tfile.c (saber_stop): Handle backslash.
22109 * prefix.c (update_path): Use filename_ncmp instead of
22111 * profile.c (output_location): Use filename_cmp instead
22113 * read-md.c (handle_toplevel_file): Handle backslash.
22114 * tlink.c (frob_extension): Likewise.
22115 * tree-cfg.c (same_line_p): Use filename_cmp instead of
22117 * tree-dump.c (dequeue_and_dump): Handle backslash.
22118 * tree.c (get_file_function_name): Likewise.
22119 * gengtype.c (read_input_list): Likewise.
22120 (get_file_realbasename): Likewise.
22121 (get_output_file_with_visibility): Use filename_cmp
22124 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
22126 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
22129 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
22131 * fold-const.c (expr_location_or): New function.
22132 (fold_truth_not_expr): Call it.
22134 2011-03-25 Jeff Law <law@redhat.com>
22136 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
22138 * c-family/c-common.c (def_fn_type): Likewise.
22139 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
22140 * emit-rtl.c (gen_rtvec): Likewise.
22141 * lto/lto-lang.c (def_fn_type): Likewise.
22143 2011-03-25 Richard Guenther <rguenther@suse.de>
22145 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
22146 also generate copies.
22147 (fini_copy_prop): Handle constant values properly.
22149 2011-03-25 Jakub Jelinek <jakub@redhat.com>
22151 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
22152 mode size instead of bitsize with DWARF2_ADDR_SIZE.
22153 (hash_loc_operands, compare_loc_operands): Handle
22154 DW_OP_GNU_entry_value.
22156 2011-03-25 Kai Tietz <ktietz@redhat.com>
22158 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
22159 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
22160 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
22161 comment and use macro TARGET_64BIT_MS_ABI instead.
22162 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
22163 and change default behavior for 32-bit MS_ABI.
22164 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
22165 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
22167 (ix86_cfun_abi): Likewise.
22168 (ix86_maybe_switch_abi): Adjust comment.
22169 (init_cumulative_args): Check for bit-ness in MS_ABI case.
22170 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
22171 instead of checking for SYSV_ABI.
22172 (ix86_nsaved_sseregs): Likewise.
22173 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
22175 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
22176 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
22177 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
22178 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
22179 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
22181 2011-03-25 Richard Guenther <rguenther@suse.de>
22183 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
22184 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
22185 (verify_gimple): Remove.
22186 * tree-cfg.c (verify_gimple_call): Merge verification
22188 (verify_gimple_phi): Merge verification from verify_stmts.
22189 (verify_gimple_label): New function.
22190 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
22191 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
22192 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
22193 (verify_stmts): Rename to verify_gimple_in_cfg.
22194 (verify_gimple_in_cfg): New function.
22195 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
22196 * tree-ssa.c (verify_ssa): Likewise.
22197 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
22199 2011-03-25 Richard Guenther <rguenther@suse.de>
22201 * passes.c (init_optimization_passes): Add FRE pass after
22204 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
22205 Andrew Stubbs <ams@codesourcery.com>
22207 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
22209 (arm_movdi_vfp_cortexa8): New pattern.
22210 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
22211 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
22212 instructions when tuning for Cortex-A8. Set attribute "arch".
22213 * config/arm/arm.md: Move include arm-tune.md up a bit.
22214 (define_attr "arch"): Add "onlya8" and "nota8" values.
22215 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
22217 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
22221 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
22223 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
22224 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
22225 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
22226 * passes.c (init_optimization_passes): Move
22227 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
22229 2011-03-25 Kai Tietz <ktietz@redhat.com>
22231 * c-typeck.c (comptypes_internal): Replace target
22232 hook call of comp_type_attributes by version in tree.c file.
22233 * gimple.c (gimple_types_compatible_p_1): Likewise.
22234 * tree-ssa.c (useless_type_conversion_p): Likewise.
22235 * tree.c (build_type_attribute_qual_variant): Likewise.
22236 (attribute_value_equal): New static helper function.
22237 (comp_type_attributes): New function.
22238 (merge_attributes): Use attribute_value_equal for comparison.
22239 (attribute_list_contained): Likewise.
22240 * tree.h (comp_type_attributes): New prototype.
22242 2011-03-25 Richard Guenther <rguenther@suse.de>
22244 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
22245 of complex types at -O0.
22246 (verify_gimple_assign_binary): Likewise.
22247 (verify_gimple_assign_ternary): Likewise.
22249 2011-03-24 Mark Wielaard <mjw@redhat.com>
22251 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
22252 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
22254 2011-03-24 Mark Wielaard <mjw@redhat.com>
22257 * dwarf2out.c (output_abbrev_section): Only write table when
22258 abbrev_die_table_in_use > 1.
22260 2011-02-24 Richard Henderson <rth@redhat.com>
22262 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
22263 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
22264 (alpha_expand_unaligned_load_words): Use extql.
22265 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
22266 (emit_insxl): Handle all modes for consistency.
22268 2011-02-24 Richard Henderson <rth@redhat.com>
22270 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
22271 (alpha_expand_unaligned_load): Likewise.
22272 (alpha_expand_unaligned_store): Likewise.
22273 (alpha_expand_unaligned_load_words): Likewise.
22274 (alpha_expand_unaligned_store_words): Likewise.
22275 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
22276 (alpha_split_lock_test_and_set_12): Likewise.
22277 (print_operand, alpha_fold_builtin_extxx): Likewise.
22278 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
22279 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
22280 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
22281 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
22282 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
22283 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
22284 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
22285 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
22286 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
22287 (extwl, extll, extql): Similarly.
22288 (inswh, inslh, insqh): Similarly.
22289 (mskbl, mskwl, mskll, mskql): Similarly.
22290 (mskwh, msklh, mskqh): Similarly.
22292 2011-02-24 Richard Henderson <rth@redhat.com>
22294 * config/alpha/alpha.md (attribute isa): Add er, ner.
22295 (attribute enabled): Handle them.
22296 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
22298 2011-02-24 Richard Henderson <rth@redhat.com>
22300 * config/alpha/alpha.md (attribute isa): Add vms.
22301 (attribute enabled): Handle it.
22302 (*movsf): Merge *movsf_{nofix,fix,nofp}.
22303 (*movdf): Merge *movdf_{nofix,fix,nofp}.
22304 (*movtf): Rename from *movtf_internal for consistency.
22305 (*movsi): Merge with *movsi_nt_vms.
22306 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
22307 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
22308 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
22309 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
22311 2011-02-24 Richard Henderson <rth@redhat.com>
22313 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
22314 (extendqisi2, extendhisi2): Likewise.
22315 (extendqidi2): Simplify BWX/non-BWX expansions.
22316 (extendhidi2): Similarly.
22318 2011-02-24 Richard Henderson <rth@redhat.com>
22320 * config/alpha/alpha.md (attribute isa): New.
22321 (attribute enabled): New.
22322 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
22323 (zero_extendqisi2, zero_extendqidi2): Similarly.
22324 (zero_extendhisi2, zero_extendhidi2): Similarly.
22325 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
22327 2011-02-24 Richard Henderson <rth@redhat.com>
22329 * config/alpha/predicates.md (input_operand): Revert last change;
22330 update comment to mention 32-bit VMS rather than Windows.
22332 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
22334 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
22335 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
22336 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
22337 * passes.c (init_optimization_passes): Move
22338 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
22340 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
22342 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
22344 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
22346 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
22349 2011-03-24 Jakub Jelinek <jakub@redhat.com>
22352 * simplify-rtx.c (simplify_const_unary_operation): Call
22353 real_convert when changing mode class with FLOAT_EXTEND.
22355 2011-03-24 Nick Clifton <nickc@redhat.com>
22357 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
22358 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
22359 * config/rx/rx.c (rx_option_override): Set align_jumps,
22360 align_loops and align_labels if not set by the user.
22361 (rx_align_for_label): New function.
22362 (rx_max_skip_for_label): New function.
22363 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
22364 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
22365 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
22366 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
22367 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
22369 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
22371 PR rtl-optimization/48263
22372 * optabs.c (expand_binop_directly): Reinstate convert_modes code
22373 and original commutative_p handling. Use maybe_gen_insn.
22375 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22377 * reload.c (find_reloads_subreg_address): Add address_reloaded
22378 parameter and return true there if the full address has been
22380 (find_reloads_toplev): Pass address_reloaded flag.
22381 (find_reloads_address_1): Don't use address_reloaded parameter.
22383 2011-03-24 Jeff Law <law@redhat.com>
22385 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
22386 unused variable "ann".
22387 (remove_unused_locals): Likewise.
22389 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
22392 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
22395 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22397 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
22398 for invalid symbolic addresses.
22399 (s390_secondary_reload): Don't use s390_check_symref_alignment for
22402 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
22404 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
22405 the argument in calls to fold_truth_not_expr.
22407 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
22409 * tree.c (record_node_allocation_statistics): New function.
22410 (make_node_stat, copy_node_stat, build_string): Call it.
22411 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
22412 (build1_stat, build_omp_clause): Likewise.
22414 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
22416 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
22419 2011-03-24 Richard Guenther <rguenther@suse.de>
22421 PR tree-optimization/48271
22422 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
22423 blocks that still exist.
22425 2011-03-24 Richard Guenther <rguenther@suse.de>
22427 PR tree-optimization/48270
22428 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
22429 not free datarefs before ddrs.
22431 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
22433 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
22434 from the address built for a reference with variable offset.
22436 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
22439 * config/i386/i386.md (*movdf_internal_rex64): Do not split
22440 alternatives that can be handled with movq or movabsq insn.
22441 (*movdf_internal): Disable for !TARGET_64BIT.
22442 (*movdf_internal_nointeger): Ditto.
22443 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
22445 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
22447 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
22448 (FUNCTION_ARG_ADVANCE): Likewise.
22449 * tm.texi.in: Change references to them to hook references.
22450 * tm.texi: Regenerate.
22451 * targhooks.c (default_function_arg): Eliminate check for target macro.
22452 (default_function_incoming_arg): Likewise.
22453 (default_function_arg_advance): Likewise.
22454 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
22455 (function_arg_advance): Likewise.
22456 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
22458 2011-03-24 Richard Guenther <rguenther@suse.de>
22460 PR middle-end/48269
22461 * tree-object-size.c (addr_object_size): Do not double-account
22462 for MEM_REF offsets.
22464 2011-03-24 Diego Novillo <dnovillo@google.com>
22466 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
22467 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
22468 (lto_input_data_block): Move from lto-opts.c. Make extern.
22470 (lto_input_string): Rename from input_string. Make extern.
22472 * lto-streamer-out.c (lto_output_string_with_length): Rename from
22473 output_string_with_length.
22474 Output 0 to indicate a non-NULL string. Update all callers to
22476 (lto_output_string): Rename from output_string. Make extern.
22478 (lto_output_decl_state_streams): Make extern.
22479 (lto_output_decl_state_refs): Make extern.
22480 * lto-streamer.h (lto_input_string): Declare.
22481 (lto_input_data_block): Declare.
22482 (lto_output_string): Declare.
22483 (lto_output_string_with_length): Declare.
22484 (lto_output_decl_state_streams): Declare.
22485 (lto_output_decl_state_refs): Declare.
22487 2011-03-24 Richard Guenther <rguenther@suse.de>
22489 PR tree-optimization/46562
22490 * tree.c (build_invariant_address): New function.
22491 * tree.h (build_invariant_address): Declare.
22492 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
22493 a renamed function moved ...
22494 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
22495 Take valueization callback parameter.
22496 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
22497 * gimple-fold.h: New file.
22498 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
22499 (ccp_fold, fold_const_aggregate_ref,
22500 fold_ctor_reference, fold_nonarray_ctor_reference,
22501 fold_array_ctor_reference, fold_string_cst_ctor_reference,
22502 get_base_constructor): Move ...
22503 * gimple-fold.c: ... here.
22504 (gimple_fold_stmt_to_constant_1): New function
22505 split out from ccp_fold. Take a valueization callback parameter.
22506 Valueize all operands.
22507 (gimple_fold_stmt_to_constant): New wrapper function.
22508 (fold_const_aggregate_ref_1): New function split out from
22509 fold_const_aggregate_ref. Take a valueization callback parameter.
22510 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
22511 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
22512 invariant POINTER_PLUS_EXPRs to invariant form.
22513 (vn_valueize): New function.
22514 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
22515 * tree-vrp.c (vrp_valueize): New function.
22516 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
22517 to fold statements to constants.
22518 * tree-ssa-pre.c (eliminate): Properly guard propagation of
22519 function declarations.
22520 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
22521 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
22523 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
22525 * config/h8300/predicates.md (jump_address_operand): Fix register
22528 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
22530 * doc/invoke.texi (max-stores-to-sink): Document.
22531 * params.h (MAX_STORES_TO_SINK): Define.
22532 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
22533 if either vectorization or if-conversion is disabled.
22534 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
22535 tree-vect-data-refs.c vect_equal_offsets.
22536 (dr_equal_offsets_p): New function.
22537 (find_data_references_in_bb): Remove static.
22538 * tree-data-ref.h (find_data_references_in_bb): Declare.
22539 (dr_equal_offsets_p): Likewise.
22540 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
22541 (vect_drs_dependent_in_basic_block): Update calls to
22542 vect_equal_offsets.
22543 (vect_check_interleaving): Likewise.
22544 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
22545 (cond_if_else_store_replacement): Rename to...
22546 (cond_if_else_store_replacement_1): ... this. Change arguments and
22548 (cond_if_else_store_replacement): New function.
22549 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
22550 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
22552 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
22555 * config/arm/arm.md (casesi): Use the gen_int_mode() function
22556 to subtract lower bound instead of GEN_INT().
22558 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
22563 * doc/extend.texi (Alignment): Move section to match order in TOC.
22564 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
22565 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
22567 2011-03-23 Jeff Law <law@redhat.com>
22569 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
22570 before removing the edge.
22572 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
22573 it may have been freed by redirect_branch_edge or
22574 redirect_edge_succ_nodup.
22576 2011-03-23 Richard Guenther <rguenther@suse.de>
22578 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
22579 (check_va_list_escapes): Likewise.
22580 (check_all_va_list_escapes): Likewise.
22582 2011-03-23 Richard Guenther <rguenther@suse.de>
22584 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
22585 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
22586 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
22587 (alias.o): Likewise.
22588 (ipa-type-escape.o): Remove.
22589 (ipa-struct-reorg.o): Likewise.
22590 (GTFILES): Remove ipa-struct-reorg.c.
22591 * alias.c: Do not include ipa-type-escape.h.
22592 * tree-ssa-alias.c: Likewise.
22593 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
22594 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
22595 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
22596 and ipa-type-escape passes.
22597 * tree-pass.h (pass_ipa_type_escape): Remove.
22598 (pass_ipa_struct_reorg): Likewise.
22599 * ipa-struct-reorg.h: Remove.
22600 * ipa-struct-reorg.c: Likewise.
22601 * ipa-type-escape.h: Likewise.
22602 * ipa-type-escape.c: Likewise.
22603 * doc/invoke.texi (-fipa-struct-reorg): Remove.
22604 (--param struct-reorg-cold-struct-ratio): Likewise.
22605 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
22606 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
22607 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
22609 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22611 * config/s390/2084.md: Enable all insn reservations also for z9_ec
22612 cpu attribute value.
22613 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
22614 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
22615 * config/s390/s390.c (processor_flags_table): New constant array.
22616 (s390_handle_arch_option): Remove.
22617 (s390_handle_option): Remove s390_handle_arch_option invocations
22618 and OPT_mwarn_framesize_ handling.
22619 (s390_option_override): Remove s390_handle_arch_option invocation.
22620 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
22622 * config/s390/s390.md (cpu attribute): Add z9_ec value.
22623 * config/s390/s390.opt (s390_tune, s390_arch)
22624 (march=): Replace s390_arch_option enum and values with
22625 processor_type. Set variable name to s390_arch. Set
22626 initialization value.
22627 (mtune=): Replace s390_arch_option with processor_type. Set
22628 variable name to s390_tune. Set initialization value.
22630 2011-03-23 Julian Brown <julian@codesourcery.com>
22632 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
22633 accesses which are not naturally aligned.
22635 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
22638 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
22640 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
22642 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
22643 parameter from "int" to "enum insn_code".
22644 (expand_operand_type): New enum.
22645 (expand_operand): New structure.
22646 (create_expand_operand): New function.
22647 (create_fixed_operand, create_output_operand): Likewise
22648 (create_input_operand, create_convert_operand_to): Likewise.
22649 (create_convert_operand_from, create_address_operand): Likewise.
22650 (create_integer_operand): Likewise.
22651 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
22652 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
22653 (expand_insn, expand_jump_insn): Likewise.
22654 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
22655 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
22656 (expand_movstr, expand_builtin___clear_cache): Likewise.
22657 (expand_builtin_lock_release): Likewise.
22658 * explow.c (allocate_dynamic_stack_space): Likewise.
22659 (probe_stack_range): Likewise. Allow check_stack to FAIL,
22660 and use the default handling in that case.
22661 * expmed.c (check_predicate_volatile_ok): Delete.
22662 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
22663 (emit_cstore): Likewise.
22664 * expr.c (emit_block_move_via_movmem): Likewise.
22665 (set_storage_via_setmem, expand_assignment): Likewise.
22666 (emit_storent_insn, try_casesi): Likewise.
22667 (emit_single_push_insn): Likewise. Allow the expansion to fail.
22668 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
22669 (expand_vec_shift_expr, expand_binop_directly): Likewise.
22670 (expand_twoval_unop, expand_twoval_binop): Likewise.
22671 (expand_unop_direct, emit_indirect_jump): Likewise.
22672 (emit_conditional_move, vector_compare_rtx): Likewise.
22673 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
22674 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
22675 (expand_sync_lock_test_and_set): Likewise.
22676 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
22677 (emit_unop_insn): Likewise.
22678 (expand_copysign_absneg): Change icode to an insn_code.
22679 (create_convert_operand_from_type): New function.
22680 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
22681 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
22682 (expand_insn, expand_jump_insn): Likewise.
22683 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
22684 than const_int_operand for operand 2.
22686 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22688 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
22691 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
22693 * emit-rtl.c (emit_pattern_before_noloc): New function.
22694 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
22695 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
22696 (emit_pattern_after_noloc): New function.
22697 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
22698 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
22700 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
22702 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
22703 (__ffsDI2): Likewise.
22705 2011-03-22 Richard Henderson <rth@redhat.com>
22707 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
22708 of !TARGET_ABI_OPEN_VMS.
22709 (alpha_trampoline_init, alpha_start_function): Likewise.
22710 (alpha_expand_epilogue, alpha_file_start): Likewise.
22711 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
22712 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
22713 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
22714 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
22715 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
22717 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22719 * config/s390/s390-opts.h: New.
22720 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
22721 s390_arch_flags, s390_warn_framesize, s390_stack_size,
22722 s390_stack_guard): Remove.
22723 (s390_handle_arch_option): Return void. Take enum
22724 s390_arch_option value instead of string and searching array.
22725 (s390_handle_option): Don't assert that global structures are in
22726 use. Access variables via opts pointer. Use error_at. Don't use
22727 sscanf for -mstack-guard= or -mstack-size=. Update call to
22728 s390_handle_arch_option.
22729 (s390_option_override): Update call to s390_handle_arch_option.
22730 (s390_emit_prologue): Use %d format for s390_stack_size in
22731 diagnostic. Use %wd for HOST_WIDE_INT.
22732 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
22733 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
22734 * config/s390/s390.opt (config/s390/s390-opts.h): New
22735 HeaderInclude entry.
22736 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
22737 s390_arch_flags, s390_warn_framesize): New Variable entries.
22738 (s390_arch_option): New Enum and EnumValue entries.
22739 (march=): Use Enum instead of Var.
22740 (mstack-guard=, mstack-size=): Use UInteger and Var.
22741 (mtune=): Use Enum.
22743 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22745 * config/score/score.c (score_handle_option): Don't assert that
22746 global structures are in use. Access target_flags via opts
22747 pointer. Use value of -march= option to determine target_flags
22749 * config/score/score.opt (march=): Use Enum.
22750 (score_arch): New Enum and EnumValue entries.
22752 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22754 * config/mep/mep.c (option_mtiny_specified): Remove.
22755 (mep_option_override): Move register handling for -mivc2 from
22756 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
22757 instead of option_mtiny_specified.
22758 (mep_handle_option): Access target_flags via opts pointer. Don't
22759 assert that global structures are in use. Defer part of -mivc2
22760 handling and move it to mep_option_override.
22761 * config/mep/mep.opt (IVC2): New Mask entry.
22762 (mivc2): Use Var and Defer instead of Mask.
22764 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22766 * config/v850/v850-opts.h: New.
22767 * config/v850/v850.c (small_memory): Replace with
22768 small_memory_physical_max array. Make that array static const.
22769 (v850_handle_memory_option): Take integer value of argument. Take
22770 gcc_options pointer, option text and location. Return void.
22771 Update for changes to small memory structures.
22772 (v850_handle_option): Access target_flags via opts pointer. Don't
22773 assert that global structures are in use. Update calls to
22774 v850_handle_memory_option.
22775 (v850_encode_data_area): Update references to small memory settings.
22776 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
22777 (enum small_memory_type): Move to v850-opts.h.
22778 * config/v850/v850.opt (config/v850/v850-opts.h): New
22779 HeaderInclude entry.
22780 (small_memory_max): New Variable entry.
22781 (msda): Replace by pair of options msda= and msda-. Use UInteger.
22782 (mtda, mzda): Likewise.
22784 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22786 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
22787 pointer. Don't assert that global structures are in use.
22789 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22791 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
22792 via opts pointer. Don't assert that global structures are in use.
22794 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22796 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
22797 (munix=93): Use Var.
22798 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
22799 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
22800 * config/pa/pa-opts.h: New.
22801 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
22802 (pa_handle_option): Don't assert that global structures are in
22803 use. Access target_flags via opts pointer. Don't handle
22804 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
22806 (pa_option_override): Handle deferred OPT_mfixed_range_.
22808 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22810 * config/mn10300/mn10300-opts.h: New.
22811 * config/mn10300/mn10300.c (mn10300_processor,
22812 mn10300_tune_string): Remove.
22813 (mn10300_handle_option): Don't assert that global structures are
22814 in use. Access mn10300_processor via opts pointer. Don't handle
22816 * config/mn10300/mn10300.h (enum processor_type): Move to
22818 (mn10300_processor): Remove.
22819 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
22820 HeaderInclude entry.
22821 (mn10300_processor): New Variable entry.
22824 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22826 * config/microblaze/microblaze.c: Don't include opts.h.
22827 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
22828 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
22829 (mno-clearbss): Use Var and Warn.
22831 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22833 * config/m32r/m32r-opts.h: New.
22834 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
22835 (m32r_handle_option): Don't assert that global structures are in
22836 use. Access target_flags and m32r_cache_flush_func via opts
22837 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
22838 OPT_mno_flush_trap here.
22839 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
22840 include of m32r-opts.h.
22841 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
22842 HeaderInclude entry.
22843 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
22844 (mmodel=): Use Enum and Var.
22845 (m32r_model): New Enum and EnumValue entries.
22846 (mno-flush-trap): Use Var.
22847 (msdata=): Use Enum and Var.
22848 (m32r_sdata): New Enum and EnumValue entries.
22850 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22852 * config/m32c/m32c.c: Don't include opts.h.
22853 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
22854 m32c_handle_option): Remove.
22855 (m32c_option_override): Check global_options_set.x_target_memregs
22856 instead of target_memregs_set.
22857 * config/m32c/m32c.h (target_memregs): Remove.
22858 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
22861 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22863 * config/iq2000/iq2000-opts.h: New.
22864 * config/iq2000/iq2000.c: Don't include opts.h.
22865 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
22866 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
22867 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
22868 HeaderInclude entry.
22869 (iq2000_tune): New Variable entry.
22870 (march=): Add comment. Use Enum.
22871 (iq2000_arch): New Enum and EnumValue entries.
22872 (mcpu=): Use Enum and Var.
22873 (iq2000_tune): New Enum and EnumValue entries.
22875 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22877 * config/ia64/ia64-opts.h: New.
22878 * config/ia64/ia64.c (ia64_tune): Remove.
22879 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
22880 here. Use error_at.
22881 (ia64_option_override): Handle deferred OPT_mfixed_range_.
22882 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
22883 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
22884 HeaderInclude entry.
22885 (ia64_tune): New Variable entry.
22886 (mfixed-range=): Use Defer and Var.
22887 (mtune=): Use Enum and Var.
22888 (ia64_tune): New Enum and EnumValue entries.
22890 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22892 * config/frv/frv-opts.h: New.
22893 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
22895 (frv_cpu_type): Remove.
22896 * config/frv/frv.c: Don't include opts.h.
22897 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
22898 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
22899 (frv_cpu_type): New Variable entry.
22900 (frv_cpu): New Enum and EnumValue entries.
22902 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22904 * config/cris/cris.c (cris_handle_option): Access target_flags via
22905 opts pointer. Don't assert that global structures are in use.
22906 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
22907 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
22909 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22911 * config/bfin/bfin-opts.h: New.
22912 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
22913 bfin_si_revision, bfin_workarounds): Remove.
22914 (bfin_cpus): Make static const.
22915 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
22916 not bfin_lib_id_given.
22917 (bfin_handle_option): Don't set bfin_lib_id_given. Access
22918 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
22919 pointer. Use error_at. Don't assert that global structures are in use.
22920 * config/bfin/bfin.h: Include bfin-opts.h.
22921 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
22922 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
22923 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
22924 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
22927 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22929 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
22930 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
22931 or -msoft-float here.
22932 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
22933 -msoft-float and -mhard-float.
22934 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
22935 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
22937 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
22939 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
22940 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
22942 (LIBGCC_SPEC): Don't handle -msoft-float.
22943 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
22945 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
22947 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
22948 -mfloat-abi=*, not -msoft-float and -mhard-float.
22949 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
22951 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
22952 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
22953 mhard-float and msoft-float.
22954 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
22955 mfloat-abi=soft in comments, not mhard-float and msoft-float.
22956 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
22957 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
22959 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
22960 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
22962 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
22964 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
22967 2011-03-22 Richard Henderson <rth@redhat.com>
22969 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
22970 TARGET_ABI_WINDOWS_NT.
22971 (alpha_output_function_end_prologue): Likewise.
22972 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
22973 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
22974 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
22975 (trap, *movsi_nt_vms): Likewise.
22976 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
22977 (*tablejump_osf_nt_internal): Remove.
22978 * config/alpha/predicates.md (input_operand): Only test Pmode.
22980 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22982 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
22983 via opts pointer. Use error_at. Don't assert that global
22984 structures are in use.
22986 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22988 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
22989 (ix86_handle_option): Access ix86_isa_flags and
22990 ix86_isa_flags_explicit via opts pointer. Don't assert that
22991 global structures are in use.
22992 (ix86_function_specific_save, ix86_function_specific_restore):
22993 Update ix86_isa_flags_explicit field name.
22994 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
22995 (ix86_isa_flags_explicit): Rename TargetSave entry to
22996 x_ix86_isa_flags_explicit.
22998 2011-03-22 Richard Henderson <rth@redhat.com>
23000 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
23001 (alpha_option_override, direct_return): Likewise.
23002 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
23003 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
23004 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
23005 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
23006 (alpha_expand_epilogue, alpha_end_function): Likewise.
23007 (alpha_init_libfuncs): Likewise.
23008 (struct machine_function): Remove unicosmk members.
23009 (print_operand) ['t']: Remove.
23010 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
23011 unicosmk_output_module_name, unicosmk_output_common,
23012 current_section_align, unicosmk_output_text_section_asm_op,
23013 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
23014 unicosmk_section_type_flags, unicosmk_unique_section,
23015 unicosmk_asm_named_section, unicosmk_insert_attributes,
23016 unicosmk_output_align, unicosmk_defer_case_vector,
23017 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
23018 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
23019 unicosmk_output_ssib, unicosmk_add_call_info_word,
23020 unicosmk_extern_head, unicosmk_output_default_externs,
23021 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
23022 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
23023 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
23024 * config/alpha/alpha-protos.h: Update.
23025 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
23026 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
23027 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
23028 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
23029 (*mulsi_se, mulvsi3): Likewise.
23030 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
23031 (*divmodsi_internal, call, call_value, realign): Likewise.
23032 (moddi3, umoddi3): Likewise; remove duplicate expander.
23033 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
23034 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
23035 (*movdi_nofix): Remove r/U alternative.
23036 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
23037 * config/alpha/constraints.md ("U"): Remove.
23038 * config/alpha/predicates.md (call_operand"): Don't test
23039 TARGET_ABI_UNICOSMK.
23041 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23043 * target.def (handle_option): Take gcc_options and
23044 cl_decoded_option pointers and location_t.
23045 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
23046 * doc/tm.texi: Regenerate.
23047 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
23048 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
23049 * lto-opts.c (lto_reissue_options): Generate option structure for
23050 targetm.handle_option call.
23051 * opts.c (target_handle_option): Update call to
23052 targetm.handle_option. Remove assertions about values now passed
23054 * targhooks.c (default_target_handle_option): New.
23055 * targhooks.h (default_target_handle_option): Declare.
23056 * config/alpha/alpha.c: Include opts.h.
23057 (alpha_handle_option): Update to new hook interface.
23058 * config/arm/arm.c: Include opts.h.
23059 (arm_handle_option): Update to new hook interface.
23060 * config/arm/t-arm (arm.o): Update dependencies.
23061 * config/bfin/bfin.c: Include opts.h.
23062 (bfin_handle_option): Update to new hook interface.
23063 * config/cris/cris.c: Include opts.h.
23064 (cris_handle_option): Update to new hook interface.
23065 * config/frv/frv.c: Include opts.h.
23066 (frv_handle_option): Update to new hook interface.
23067 * config/i386/i386.c: Include opts.h.
23068 (ix86_handle_option): Update to new hook interface.
23069 (ix86_valid_target_attribute_inner_p): Generate option structure
23070 for call to ix86_handle_option.
23071 * config/i386/t-i386 (i386.o): Update dependencies.
23072 * config/ia64/ia64.c: Include opts.h.
23073 (ia64_handle_option): Update to new hook interface.
23074 * config/ia64/t-ia64 (ia64.o): Update dependencies.
23075 * config/iq2000/iq2000.c: Include opts.h.
23076 (iq2000_handle_option): Update to new hook interface.
23077 * config/m32c/m32c.c: Include opts.h.
23078 (m32c_handle_option): Update to new hook interface.
23079 * config/m32r/m32r.c: Include opts.h.
23080 (m32r_handle_option): Update to new hook interface.
23081 * config/m68k/m68k.c: Include opts.h.
23082 (m68k_handle_option): Update to new hook interface.
23083 * config/mep/mep.c: Include opts.h.
23084 (mep_handle_option): Update to new hook interface.
23085 * config/microblaze/microblaze.c: Include opts.h.
23086 (microblaze_handle_option): Update to new hook interface.
23087 * config/mips/mips.c: Include opts.h.
23088 (mips_handle_option): Update to new hook interface.
23089 * config/mn10300/mn10300.c: Include opts.h.
23090 (mn10300_handle_option): Update to new hook interface.
23091 * config/pa/pa.c: Include opts.h.
23092 (pa_handle_option): Update to new hook interface.
23093 * config/pdp11/pdp11.c: Include opts.h.
23094 (pdp11_handle_option): Update to new hook interface.
23095 * config/rs6000/rs6000.c: Include opts.h.
23096 (rs6000_handle_option): Update to new hook interface.
23097 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
23098 * config/rx/rx.c: Include opts.h.
23099 (rx_handle_option): Update to new hook interface.
23100 * config/s390/s390.c: Include opts.h.
23101 (s390_handle_option): Update to new hook interface.
23102 * config/score/score.c: Include opts.h.
23103 (score_handle_option): Update to new hook interface.
23104 * config/sh/sh.c: Include opts.h.
23105 (sh_handle_option): Update to new hook interface.
23106 * config/sparc/sparc.c: Include opts.h.
23107 (sparc_handle_option): Update to new hook interface.
23108 * config/v850/v850.c: Include opts.h.
23109 (v850_handle_option): Update to new hook interface.
23111 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23113 * gcc.c (driver_unknown_option_callback): Only permit and save
23114 unknown -Wno- options.
23115 (driver_wrong_lang_callback): Save options directly instead of via
23116 driver_unknown_option_callback.
23118 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
23120 * combine.c (simplify_set): Try harder to find the best CC mode when
23121 simplifying a nested COMPARE on the RHS.
23123 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23125 * config/alpha/gnu.h: Remove.
23126 * config/arc: Remove directory.
23127 * config/arm/netbsd.h: Remove.
23128 * config/arm/t-pe: Remove.
23129 * config/crx: Remove directory.
23130 * config/i386/netbsd.h: Remove.
23131 * config/m68hc11: Remove directory.
23132 * config/m68k/uclinux-oldabi.h: Remove.
23133 * config/mcore/mcore-pe.h: Remove.
23134 * config/mcore/t-mcore-pe: Remove.
23135 * config/netbsd-aout.h: Remove.
23136 * config/rs6000/gnu.h: Remove.
23137 * config/sh/sh-symbian.h: Remove.
23138 * config/sh/symbian-base.c: Remove.
23139 * config/sh/symbian-c.c: Remove.
23140 * config/sh/symbian-cxx.c: Remove.
23141 * config/sh/symbian-post.h: Remove.
23142 * config/sh/symbian-pre.h: Remove.
23143 * config/sh/t-symbian: Remove.
23144 * config/svr3.h: Remove.
23145 * config/vax/netbsd.h: Remove.
23146 * config.build: Don't handle i[34567]86-*-pe.
23147 * config.gcc: Remove handling of deprecations for most deprecated
23149 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
23150 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
23151 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
23152 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
23153 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
23154 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
23156 * config.host: Don't handle i[34567]86-*-pe.
23157 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
23158 (ASM_SPEC32): Don't handle -mcall-gnu.
23159 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
23161 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
23162 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
23163 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
23164 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
23165 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
23166 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
23167 conditional on SYMBIAN.
23168 * configure.ac: Don't handle powerpc*-*-gnu*.
23169 * configure: Regenerate.
23170 * doc/extend.texi (interrupt attribute): Don't mention CRX.
23171 * doc/install-old.texi (m6811, m6812): Don't mention.
23172 * doc/install.texi (arc-*-elf*): Don't document multilib option.
23173 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
23174 (m68k-uclinuxoldabi): Don't mention.
23175 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
23177 (-mcall-gnu): Remove.
23178 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
23179 families): Remove constraint documentation.
23181 2011-03-22 Marius Strobl <marius@FreeBSD.org>
23183 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
23184 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
23185 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
23187 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
23190 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
23191 vector when peeking at the next token for vector, don't expand the
23194 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
23196 * config/avr/avr-protos.h (expand_epilogue): Change prototype
23197 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
23198 * config/avr/avr.c (init_cumulative_args)
23199 (avr_function_arg_advance): Use it.
23200 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
23202 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
23203 (avr_function_ok_for_sibcall): ...this new function.
23204 (avr_lookup_function_attribute1): New static Function.
23205 (avr_naked_function_p, interrupt_function_p)
23206 (signal_function_p, avr_OS_task_function_p)
23207 (avr_OS_main_function_p): Use it.
23208 * config/avr/avr.md ("sibcall", "sibcall_value")
23209 ("sibcall_epilogue"): New expander.
23210 ("*call_insn", "*call_value_insn"): New insn.
23211 ("call_insn", "call_value_insn"): Remove
23212 ("call", "call_value", "epilogue"): Change expander to handle
23215 2011-03-21 Nick Clifton <nickc@redhat.com>
23217 * doc/invoke.texi (Overall Options): Move closing brace to end of
23219 (Optimization Options): Add missing @gol.
23220 (Directory Options): Likewise.
23221 (i386 and x86-64 Options): Likewise.
23222 (RS6000 and PowerPC Options): Likewise.
23223 (i386 and x86-64 Windows Options): Likewise.
23224 (V850 Options): Add text missing from descriptions.
23226 2011-03-22 Richard Henderson <rth@redhat.com>
23228 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
23229 (avr_incoming_return_addr_rtx): New.
23230 (emit_push_byte): New.
23231 (expand_prologue): Use it. Remove incorrect dwarf annotation for
23232 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
23233 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
23234 (emit_pop_byte): New.
23235 (expand_epilogue): Use it. Pop frame pointer by bytes.
23236 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
23237 (INCOMING_RETURN_ADDR_RTX): New.
23238 (INCOMING_FRAME_SP_OFFSET): New.
23239 (ARG_POINTER_CFA_OFFSET): New.
23240 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
23241 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
23244 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
23246 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
23248 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
23249 (FUNCTION_ARG_ADVANCE): Likewise.
23250 * tm.texi.in: Change references to them to hook references.
23251 * tm.texi: Regenerate.
23252 * targhooks.c (default_function_arg): Eliminate check for target
23254 (default_function_incoming_arg): Likewise.
23255 (default_function_arg_advance): Likewise.
23256 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
23257 (function_arg_advance): Likewise.
23258 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
23260 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
23262 * tree.c (build_call_1): New function.
23263 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
23265 2011-03-22 Richard Guenther <rguenther@suse.de>
23267 PR tree-optimization/48228
23268 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
23269 for single-arg PHIs.
23271 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
23273 PR rtl-optimization/48143
23274 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
23275 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
23276 sse2_cvtps2pd): Likewise.
23278 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23280 * recog.c (canonicalize_change_group): Use validate_unshare_change.
23282 2011-03-22 Richard Guenther <rguenther@suse.de>
23284 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
23285 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
23286 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
23287 and REALIGN_LOAD_EXPR.
23288 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
23289 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
23290 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
23291 DOT_PROD_EXPR case ...
23292 (expand_expr_real_2): ... here.
23293 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
23294 and REALIGN_LOAD_EXPR.
23295 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
23296 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
23297 (vect_create_epilog_for_reduction): Likewise.
23298 (vectorizable_reduction): Likewise.
23299 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
23300 * tree-vect-stmts.c (vectorizable_load): Likewise.
23302 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
23304 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
23306 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23308 * config/s390/s390.c (s390_delegitimize_address): Fix offset
23309 handling for PLTOFF/GOTOFF.
23311 2011-03-22 Nick Clifton <nickc@redhat.com>
23313 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
23314 trailing backslash from the end of the macro definition.
23316 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23318 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
23321 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
23323 * expr.h (prepare_operand): Move to...
23324 * optabs.h (prepare_operand): ...here and change the insn code
23325 parameter from "int" to "enum insn_code".
23326 (insn_operand_matches): Declare.
23327 * expr.c (init_expr_target): Use insn_operand_matches.
23328 (compress_float_constant): Likewise.
23329 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
23330 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
23331 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
23332 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
23334 (gen_cond_trap): Likewise.
23335 (prepare_operand): Likewise. Change icode to an insn_code.
23336 (insn_operand_matches): New function.
23337 * reload.c (find_reloads_address_1): Use insn_operand_matches.
23338 * reload1.c (gen_reload): Likewise.
23339 * targhooks.c (default_secondary_reload): Likewise.
23341 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
23343 * config/alpha/alpha.md (unspec): New define_c_enum.
23346 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
23349 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
23350 between a call and its CALL_ARG_LOCATION note.
23352 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
23354 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
23356 2011-03-21 Jakub Jelinek <jakub@redhat.com>
23360 * c-common.c (shorten_compare): If primopN is first sign-extended
23361 to opN and then zero-extended to result type, set primopN to opN.
23363 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
23365 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
23366 for barrier handlers.
23368 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
23370 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
23371 UNSPEC constants to be in the unspec enumeration, and redefine
23372 all UNSPECV constants to be in the unspecv enumeration, so that
23373 dumps print which unspec/unspec_volatile this is.
23374 * config/rs6000/vector.md (UNSPEC_*): Ditto.
23375 * config/rs6000/paired.md (UNSPEC_*): Ditto.
23376 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
23377 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
23378 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
23380 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
23381 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
23382 UNSPECV_LWSYNC, since these are used as unspec_volatile.
23383 * config/rs6000/sync.md (isync, lwsync): Ditto.
23385 2011-03-21 Richard Guenther <rguenther@suse.de>
23387 * params.def (lto-min-partition): Fix typo.
23389 2011-03-21 Richard Guenther <rguenther@suse.de>
23392 * c-decl.c (grokdeclarator): Drop to the main variant only
23393 for array types. Drop flag_gen_aux_info check.
23395 2011-03-21 Richard Guenther <rguenther@suse.de>
23397 PR translation/47911
23398 * params.def (lto-partitions): Fix typo.
23399 (lto-min-partition): Fix wording.
23401 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
23403 * config/rs6000/t-freebsd: Remove duplication from file.
23405 2011-03-21 Richard Guenther <rguenther@suse.de>
23407 PR middle-end/47661
23408 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
23410 2011-03-21 Richard Guenther <rguenther@suse.de>
23413 * params.def (lto-partitions): Require at least 1 partition.
23415 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23417 * gthr-solaris.h: Remove.
23418 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
23419 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
23420 (LIB_SPEC): Likewise.
23421 * config/sol2.opt (threads): Remove.
23422 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
23423 (sparc*-*-solaris2*): Likewise.
23424 * configure.ac (enable_threads): Enable solaris support.
23425 * configure: Regenerate.
23426 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
23427 * doc/install.texi (Configuration, --enable-threads=lib): Remove
23430 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23432 * config.gcc: Obsolete *-*-solaris2.8*.
23433 * doc/install.texi (Specific, *-*-solaris2*): Document it.
23435 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23438 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
23439 reference. Solaris 8 perl works.
23441 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23444 * doc/install.texi (Prerequisites): Move jar etc. up.
23445 Explain support library version requirements.
23447 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23450 * doc/install.texi (Prerequisites): Move Perl to build
23451 requirements. Always necessary on Solaris 2 with Sun ld.
23453 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23455 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
23457 (Specific, i?86-*-solaris2.[89]): Likewise.
23458 (Specific, i?86-*-solaris2.10): Likewise.
23459 (Specific, mips-sgi-irix6): Likewise.
23460 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
23461 Update for binutils 2.21.
23463 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23465 * configure.ac (gcc_cv_lto_plugin): Fix typo.
23466 Allow -fuse-linker-plugin for non-default plugin linker.
23467 * configure: Regenerate.
23469 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
23472 * gengtype.c (files_rules): Added rule for cp/parser.h.
23474 2011-03-21 Jakub Jelinek <jakub@redhat.com>
23477 * config/s390/s390.c (s390_delegitimize_address): Don't call
23478 lowpart_subreg if orig_x has BLKmode.
23480 2011-03-21 Kai Tietz <ktietz@redhat.com>
23483 * doc/plugins.texi: Adjust documentation for plugin register_callback.
23484 * tree.h (attribute_spec): Add new member affects_type_identity.
23485 * attribs.c (empty_attribute_table): Adjust attribute_spec
23487 * config/alpha/alpha.c: Likewise.
23488 * config/arc/arc.c: Likewise.
23489 * config/arm/arm.c: Likewise.
23490 * config/avr/avr.c: Likewise.
23491 * config/bfin/bfin.c: Likewise.
23492 * config/crx/crx.c: Likewise.
23493 * config/darwin.h: Likewise.
23494 * config/h8300/h8300.c: Likewise.
23495 * config/i386/cygming.h: Likewise.
23496 * config/i386/i386.c: Likewise.
23497 * config/ia64/ia64.c: Likewise.
23498 * config/m32c/m32c.c: Likewise.
23499 * config/m32r/m32r.c: Likewise.
23500 * config/m68hc11/m68hc11.c: Likewise.
23501 * config/m68k/m68k.c: Likewise.
23502 * config/mcore/mcore.c: Likewise.
23503 * config/mep/mep.c: Likewise.
23504 * config/microblaze/microblaze.c: Likewise.
23505 * config/mips/mips.c: Likewise.
23506 * config/rs6000/rs6000.c: Likewise.
23507 * config/rx/rx.c: Likewise.
23508 * config/sh/sh.c: Likewise.
23509 * config/sol2.h: Likewise.
23510 * config/sparc/sparc.c: Likewise.
23511 * config/spu/spu.c: Likewise.
23512 * config/stormy16/stormy16.c: Likewise.
23513 * config/v850/v850.c: Likewise.
23515 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
23517 * simplify-rtx.c (simplify_binary_operation_1): Handle
23518 (xor (and A B) C) case when B and C are both constants.
23520 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
23522 * tree-dfa.c (add_referenced_var): Fix typo in comment.
23524 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
23527 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
23529 2011-03-20 Jakub Jelinek <jakub@redhat.com>
23531 PR rtl-optimization/48156
23532 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
23533 assume df and df_lr are not NULL.
23535 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23538 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
23539 between a call and its CALL_ARG_LOCATION note.
23541 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
23544 * config/sh/sh.c (find_barrier): Don't emit a constant pool
23545 between a call and its corresponding CALL_ARG_LOCATION note.
23547 2011-03-19 Anatoly Sokolov <aesok@post.ru>
23549 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
23550 instead of loop. Use HARD_REGISTER_NUM_P predicate.
23551 * haifa-sched.c (setup_ref_regs): Ditto.
23552 * caller-save.c (add_used_regs_1): Ditto.
23553 * dse.c (look_for_hardregs): Ditto.
23554 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
23555 * sched-rgn.c (check_live_1): Ditto.
23557 2011-03-18 Joseph Myers <joseph@codesourcery.com>
23559 * c-decl.c (diagnose_mismatched_decls): Give an error for
23560 redefining a typedef with variably modified type.
23562 2011-03-18 Joseph Myers <joseph@codesourcery.com>
23564 * c-decl.c (grokfield): Don't allow typedefs for structures or
23565 unions with no tag by default.
23566 * doc/extend.texi (Unnamed Fields): Update.
23568 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
23570 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
23571 Rewrite using indirect functions.
23572 (lwp_slwpcb): Ditto.
23573 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
23574 (avx_vinsertf128<mode>): Ditto.
23576 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23578 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
23581 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23583 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
23584 splitting between a call and its corresponding CALL_ARG_LOCATION note.
23586 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
23588 PR rtl-optimization/48170
23589 * gcse.c (hoist_code): Remove bogus asserts.
23591 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
23593 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
23594 computation for prologue/epilogue.
23596 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23598 * Makefile.in (check-consistency): Remove.
23600 2011-03-18 Jakub Jelinek <jakub@redhat.com>
23603 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
23604 arange_table_in_use is 0, but either text_section_used or
23605 cold_text_section_used is true. Don't call it if
23606 !info_section_emitted.
23608 2011-03-18 Anatoly Sokolov <aesok@post.ru>
23610 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
23611 FUNCTION_VALUE_REGNO_P): Remove.
23612 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
23614 * config/avr/avr.c (avr_ret_register): Make static inline.
23615 (avr_function_value_regno_p): New function.
23616 (avr_libcall_value): Make static. Add 'func' argument.
23617 (avr_function_value): Make static. Rename 'func' argument to
23618 'fn_decl_or_type', forward it to avr_libcall_value. Call
23619 avr_ret_register function instead of RET_REGISTER macro.
23620 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
23622 2011-03-18 Jason Merrill <jason@redhat.com>
23625 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
23627 2011-03-18 Richard Guenther <rguenther@suse.de>
23629 * doc/install.texi (--enable-gold): Remove.
23630 (--with-plugin-ld): Document.
23631 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
23633 2011-03-18 Andrew Pinski <pinskia@gmail.com>
23635 PR middle-end/47790
23636 * expr.c (optimize_bitfield_assignment_op): Revamp to work
23637 again after expansion changes.
23639 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
23641 * combine.c (try_combine): Do simplification only call of
23642 subst() on i2 even when i1 is present. Update comments.
23644 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
23646 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
23647 and UNSPEC_PCREL_SYMOFF.
23649 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23651 * config/s390/s390.md: Use define_c_enum for the unspec constant
23654 2011-03-18 Richard Henderson <rth@redhat.com>
23655 Jakub Jelinek <jakub@redhat.com>
23658 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
23659 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
23661 2011-03-17 Anatoly Sokolov <aesok@post.ru>
23663 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
23664 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
23665 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
23666 Change return type to bool.
23667 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
23669 2011-03-17 Jakub Jelinek <jakub@redhat.com>
23672 * var-tracking.c (prepare_call_arguments): If CALL target
23673 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
23674 pc instead of looking it up using cselib_lookup and use
23675 Pmode for it if x has VOIDmode.
23676 * dwarf2out.c (gen_subprogram_die): If also both first and
23677 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
23680 * function.c (assign_parms): For data.passed_pointer parms
23681 use MEM of data.entry_parm instead of data.entry_parm itself
23682 as DECL_INCOMING_RTL.
23683 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
23684 also when passed and declared mode is the same, DECL_RTL
23685 is a MEM with pseudo as address and DECL_INCOMING_RTL is
23688 2011-03-16 Jeff Law <law@redhat.com>
23690 PR rtl-optimization/37273
23691 * ira-costs.c (scan_one_insn): Detect constants living in memory and
23692 handle them like argument loads from stack slots. Do not double
23693 count memory for memory constants and argument loads from stack slots.
23695 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
23698 * var-tracking.c (prepare_call_arguments): Check SUBREG.
23700 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
23703 * config/i386/i386.opt: Add Save to -mavx and -mfma.
23705 2011-03-17 Jakub Jelinek <jakub@redhat.com>
23708 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
23710 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
23711 Clear call_arg_locations and call_arg_loc_last always.
23713 PR middle-end/48152
23714 * var-tracking.c (prepare_call_arguments): If argument needs to be
23715 passed by reference, adjust argtype and mode.
23717 2011-03-17 Richard Guenther <rguenther@suse.de>
23719 PR middle-end/48134
23720 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
23721 a value make sure to fold the statement.
23723 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
23726 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
23727 return condition with !cfun->calls_alloca.
23729 2011-03-17 Richard Guenther <rguenther@suse.de>
23732 * lto-cgraph.c (input_overwrite_node): Clear the abstract
23733 origin for decls in other ltrans units.
23734 (input_varpool_node): Likewise.
23736 2011-03-17 Richard Guenther <rguenther@suse.de>
23738 PR middle-end/48165
23739 * tree-object-size.c (compute_object_offset): Properly return
23740 the offset operand of MEM_REFs as sizetype.
23742 2011-03-17 Jakub Jelinek <jakub@redhat.com>
23744 PR rtl-optimization/48141
23745 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
23746 * dse.c: Include params.h.
23747 (active_local_stores_len): New variable.
23748 (add_wild_read, dse_step1): Clear it when setting active_local_stores
23750 (record_store, check_mem_read_rtx): Decrease it when removing
23752 (scan_insn): Likewise. Increase it when adding to chain, if it
23753 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
23754 set active_local_stores to NULL before the addition.
23755 * Makefile.in (dse.o): Depend on $(PARAMS_H).
23757 PR rtl-optimization/48141
23758 * dse.c (record_store): If no positions are needed in an insn
23759 that cannot be deleted, at least unchain it from active_local_stores.
23761 2011-03-16 Dodji Seketeli <dodji@redhat.com>
23764 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
23765 (lookup_type_die_strip_naming_typedef): ... here.
23766 (get_context_die): Use it.
23767 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
23768 the anonymous struct named by the naming typedef.
23770 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
23773 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
23774 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
23776 2011-03-16 Jeff Law <law@redhat.com>
23778 * tree-vrp.c (identify_jump_threads): Slightly simplify type
23779 check for operands of conditional. Allow type to be a pointer.
23781 2011-03-16 Richard Guenther <rguenther@suse.de>
23783 PR tree-optimization/48149
23784 * fold-const.c (fold_binary_loc): Fold
23785 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
23787 2011-03-16 Richard Guenther <rguenther@suse.de>
23789 PR tree-optimization/26134
23790 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
23791 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
23792 (non_rewritable_mem_ref_base): Handle complex type component
23793 accesses, constrain offsets for vector and complex extracts
23796 2011-03-16 Richard Guenther <rguenther@suse.de>
23798 PR tree-optimization/48146
23799 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
23800 operands avoiding the need for renaming.
23802 2011-03-16 Richard Guenther <rguenther@suse.de>
23804 * gimple-fold.c (maybe_fold_reference): Open-code relevant
23805 constant folding. Move MEM_REF canonicalization first.
23806 Rely on fold_const_aggregate_ref for initializer folding.
23807 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
23809 2011-03-16 Jakub Jelinek <jakub@redhat.com>
23811 PR middle-end/48136
23812 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
23813 arg0/arg1 or their arguments are always fold converted to matching
23816 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
23819 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23822 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
23823 Handle in-tree gold.
23824 (ld_vers): Extract binutils version for gold.
23825 (gcc_cv_ld_hidden): Handle gold here.
23826 (gcc_cv_lto_plugin): Determine level of linker plugin support.
23827 * configure: Regenerate.
23828 * config.in: Regenerate.
23829 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
23830 -fuse-linker-plugin otherwise.
23831 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
23832 (LINK_COMMAND_SPEC): Use it.
23833 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
23835 2011-03-16 Jakub Jelinek <jakub@redhat.com>
23837 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
23838 * calls.c: Remove debug.h include.
23839 (emit_call_1): Don't call virtual_call_token debug hook.
23840 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
23841 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
23842 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
23843 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
23844 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
23845 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
23846 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
23847 dwarf2out_virtual_call): Remove.
23848 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
23849 copy_call_info and virtual_call hooks.
23850 (dwarf2out_init): Don't initialize vcall_insn_table,
23851 debug_dcall_section and debug_vcall_section.
23852 (prune_unused_types): Don't mark nodes from dcall_table.
23853 (dwarf2out_finish): Don't output dcall or vcall tables.
23854 * final.c (final_scan_insn): Don't call direct_call or
23855 virtual_call debug hooks.
23856 * debug.h (struct gcc_debug_hooks): Remove direct_call,
23857 virtual_call_token, copy_call_info and virtual_call hooks.
23858 (debug_nothing_uid): Remove prototype.
23859 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
23860 copy_call_info and virtual_call hooks.
23861 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
23862 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
23863 * debug.c (do_nothing_debug_hooks): Likewise.
23864 (debug_nothing_uid): Remove.
23865 * doc/invoke.texi (-fenable-icf-debug): Remove.
23866 * common.opt (-fenable-icf-debug): Likewise.
23868 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
23869 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
23870 call's MEM. Handle functions returning aggregate through a hidden
23871 first pointer. For virtual calls add clobbered pc to call arguments
23873 * dwarf2out.c (gen_subprogram_die): Emit
23874 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
23878 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
23879 * rtl.h (ENTRY_VALUE_EXP): Define.
23880 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
23881 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
23882 * print-rtl.c (print_rtx): Likewise.
23883 * gengtype.c (adjust_field_rtx_def): Likewise.
23884 * var-tracking.c (vt_add_function_parameter): Adjust
23885 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
23886 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
23887 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
23888 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
23889 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
23891 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
23892 Call var_location debug hook even on CALL_INSNs.
23893 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
23894 * rtl.def (ENTRY_VALUE): New.
23895 * dwarf2out.c: Include cfglayout.h.
23896 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
23897 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
23898 (struct call_arg_loc_node): New type.
23899 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
23900 tail_call_site_count): New variables.
23901 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
23902 DW_TAG_GNU_call_site_parameter.
23903 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
23904 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
23905 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
23906 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
23907 and DW_AT_GNU_all_source_call_sites.
23908 (mem_loc_descriptor): Handle ENTRY_VALUE.
23909 (add_src_coords_attributes): Don't add enything if
23910 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
23911 (dwarf2out_abstract_function): Save and clear call_arg_location,
23912 call_site_count and tail_call_site_count around dwarf2out_decl call.
23913 (gen_call_site_die): New function.
23914 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
23915 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
23916 (dwarf2out_function_decl): Clear call_arg_locations,
23917 call_arg_loc_last, set call_site_count and tail_call_site_count
23918 to -1 and free block_map.
23919 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
23920 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
23921 followed by any real instructions.
23922 (dwarf2out_begin_function): Set call_site_count and
23923 tail_call_site_count to 0.
23924 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
23925 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
23926 attempt to force a DIE for it and worst case remove the attribute.
23927 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
23928 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
23930 * var-tracking.c: Include tm_p.h.
23931 (vt_stack_adjustments): For calls call note_register_arguments.
23932 (argument_reg_set): New variable.
23933 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
23934 ensure the VALUE is resolved.
23935 (call_arguments): New variable.
23936 (prepare_call_arguments): New function.
23937 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
23938 (struct expand_loc_callback_data): Add ignore_cur_loc field.
23939 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
23940 always use the best expression.
23941 (vt_expand_loc): Add ignore_cur_loc argument.
23942 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
23943 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
23944 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
23945 note for all calls.
23946 (vt_add_function_parameter): Use cselib_lookup_from_insn.
23947 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
23948 argument. Don't call cselib_preserve_only_values and
23949 cselib_reset_table.
23950 (note_register_arguments): New function.
23951 (vt_initialize): Compute argument_reg_set. Call
23952 vt_add_function_parameters before processing basic blocks instead of
23953 afterwards. For calls call prepare_call_arguments before calling
23954 cselib_process_insn.
23955 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
23956 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
23957 (var-tracking.o): Depend on $(TM_P_H).
23958 * cfglayout.h (insn_scope): New prototype.
23959 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
23960 * cfglayout.c (insn_scope): No longer static.
23961 * insn-notes.def (CALL_ARG_LOCATION): New.
23962 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
23963 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
23964 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
23965 nothing for DECL_EXTERNAL BLOCK_VARS.
23967 2011-03-16 Alan Modra <amodra@gmail.com>
23970 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
23971 create invalid offset address for vsx splat insn.
23972 * config/rs6000/predicates.md (splat_input_operand): New.
23973 * config/rs6000/vsx.md (vsx_splat_*): Use it.
23975 2011-03-15 Xinliang David Li <davidxl@google.com>
23978 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
23979 (normalize_preds): New function.
23980 (is_use_properly_guarded): Normalize def predicates.
23982 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23985 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
23986 in the output template.
23988 2011-03-15 Richard Guenther <rguenther@suse.de>
23990 PR middle-end/47650
23991 * tree-pretty-print.c (dump_function_declaration): Properly
23992 dump unprototyped and varargs function types.
23994 2011-03-15 Richard Guenther <rguenther@suse.de>
23996 PR tree-optimization/13954
23997 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
24000 2011-03-15 Richard Guenther <rguenther@suse.de>
24002 PR tree-optimization/48037
24003 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
24004 selects into BIT_FIELD_REFs.
24005 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
24008 2011-03-15 Jakub Jelinek <jakub@redhat.com>
24010 PR tree-optimization/48129
24011 * builtins.c (fold_builtin_snprintf): Convert to type of
24012 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
24013 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
24015 2011-03-15 Richard Guenther <rguenther@suse.de>
24017 PR tree-optimization/41490
24018 * tree-ssa-dce.c (propagate_necessity): Handle returns without
24019 value but with VUSE.
24020 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
24022 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
24023 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
24024 * tree-tailcall.c (find_tail_calls): Ignore returns.
24026 2011-03-15 Richard Guenther <rguenther@suse.de>
24028 PR middle-end/48031
24029 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
24030 or variable-indexed array accesses when in gimple form.
24032 2011-03-15 Richard Guenther <rguenther@suse.de>
24034 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
24036 2011-03-15 Alan Modra <amodra@gmail.com>
24039 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
24040 presume symbol_refs without a symbol_ref_decl are suitably
24041 aligned, nor other trees we may see here. Handle anchor symbols.
24042 (legitimate_constant_pool_address_p): Comment. Add mode param.
24043 Check cmodel=medium addresses. Adjust all calls.
24044 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
24045 creating cmodel=medium optimized access to locals.
24046 * config/rs6000/constraints.md (R): Pass QImode to
24047 legitimate_constant_pool_address_p.
24048 * config/rs6000/predicates.md (input_operand): Pass mode to
24049 legitimate_constant_pool_address_p.
24050 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
24053 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
24056 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
24057 64-bit constants being loaded into registers other than GPRs such
24058 as loading 0 into a VSX register.
24060 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24062 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
24064 2011-03-14 Jakub Jelinek <jakub@redhat.com>
24066 PR middle-end/47917
24067 * builtins.c (fold_builtin_snprintf): New function.
24068 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
24069 (fold_builtin_4): Likewise.
24071 PR middle-end/38878
24072 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
24073 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
24074 and C - X == X also strip nops from +/-/p+ operand.
24075 When optimizing -X == C, fold C to arg0's type.
24078 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
24079 emit it as add_AT_int instead of add_AT_unsigned.
24081 2011-03-14 Tom Tromey <tromey@redhat.com>
24083 * unwind-dw2.c: Include sys/sdt.h if it exists.
24084 (_Unwind_DebugHook): Use STAP_PROBE2.
24085 * config.in, configure: Rebuild.
24086 * configure.ac: Check for sys/sdt.h.
24088 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
24090 * config/i386/i386.md (ROUND_FLOOR): New constant.
24091 (ROUND_CEIL): Ditto.
24092 (ROUND_TRUNC): Ditto.
24093 (ROUND_MXCSR): Ditto.
24094 (ROUND_NO_EXC): Ditto.
24095 (rint<mode>2): Use new defines instead of numerical constants.
24096 (floor<mode>2): Ditto.
24097 (ceil<mode>2): Ditto.
24098 (btrunc<mode>2): Ditto.
24099 * config/i386/i386-builtin-types.def: Define ROUND function type
24101 * config/i386/i386.c (enum ix86_builtins): Add
24102 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
24103 (struct builtin_description): Add
24104 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
24105 (ix86_expand_sse_round): New static function.
24106 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
24108 (ix86_builtin_vectorized_function): Handle
24109 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
24111 2011-03-14 Tom Tromey <tromey@redhat.com>
24113 * c-parser.c (c_parser_asm_string_literal): Clear
24114 warn_overlength_strings.
24116 2011-03-14 Tom Tromey <tromey@redhat.com>
24118 * c-parser.c (disable_extension_diagnostics): Save
24119 warn_overlength_strings.
24120 (restore_extension_diagnostics): Restore warn_overlength_strings.
24122 2011-03-14 Jakub Jelinek <jakub@redhat.com>
24124 * BASE-VER: Change to 4.7.0.
24126 2011-03-14 Richard Guenther <rguenther@suse.de>
24128 PR middle-end/48098
24129 * tree.c (build_vector_from_val): Adjust assert to requirements
24132 2011-03-14 Jakub Jelinek <jakub@redhat.com>
24135 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
24137 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
24139 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
24140 terms of target_flags_explicit. Adjust copyright year.
24142 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
24143 * config/rs6000/t-freebsd: New file. Add override for
24146 2011-03-13 Chris Demetriou <cgd@google.com>
24148 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
24149 (-fno-diagnostics-show-option): this, to reflect current default.
24150 (-Werror=): Update text about -fno-diagnostics-show-option.
24152 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
24155 * config/rs6000/predicates.md (easy_vector_constant_add_self,
24156 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
24157 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
24158 mode is not V2DImode or V2DFmode.
24159 (vspltis_constant): Do not handle V2DImode and V2DFmode.
24160 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
24161 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
24163 (movdi_internal64): Likewise.
24165 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
24167 PR tree-optimization/47127
24168 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
24170 (set_cloog_options): Same.
24171 (scop_to_clast): Same.
24172 (print_clast_stmt): Do not call cloog_state_malloc and
24174 (print_generated_program): Same.
24176 * graphite-clast-to-gimple.h (cloog_state): Declared.
24177 (scop_to_clast): Adjust declaration.
24178 * graphite.c (cloog_state): Defined here.
24179 (graphite_initialize): Call cloog_state_malloc.
24180 (graphite_finalize): Call cloog_state_free.
24182 2011-03-11 Jason Merrill <jason@redhat.com>
24184 * attribs.c (lookup_attribute_spec): Take const_tree.
24187 2011-03-11 Joseph Myers <joseph@codesourcery.com>
24189 * config/sparc/sparc.c (sparc_option_override): Use
24190 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
24192 2011-03-11 Richard Guenther <rguenther@suse.de>
24194 PR tree-optimization/48067
24195 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
24196 multiplication result will be only used once on the target
24199 2011-03-11 Richard Guenther <rguenther@suse.de>
24201 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
24203 2011-03-11 Richard Guenther <rguenther@suse.de>
24206 * tree.c (find_decls_types_r): Do not walk types only reachable
24207 from IDENTIFIER_NODEs.
24209 2011-03-11 Jakub Jelinek <jakub@redhat.com>
24211 PR middle-end/48044
24212 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
24213 all vnode->force_output nodes as needed.
24215 2011-03-11 Jason Merrill <jason@redhat.com>
24218 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
24219 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
24221 2011-03-11 Martin Jambor <mjambor@suse.cz>
24223 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
24226 2011-03-11 Jakub Jelinek <jakub@redhat.com>
24228 PR tree-optimization/48063
24229 * ipa-inline.c (cgraph_decide_inlining): Don't try to
24230 inline functions called once if !tree_can_inline_p (node->callers).
24232 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
24234 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
24236 * config/score/score3.c: Delete.
24237 * config/score/score3.h: Delete.
24238 * config/score/mul-div.S: Delete.
24239 * config/score/sfp-machine.h: Add new file.
24240 * config/score/constraints.md: Add new file.
24241 * config/score/t-score-softfp: Add new file.
24242 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
24243 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
24244 (score7_extra_constraint): Delete.
24245 (score7_option_override): Remove unused code.
24246 * config/score/score.c: Remove score3 and score5 define and code.
24247 * config/score/score.h: Remove score3 and score5 define and code.
24248 * config/score/score.md: Remove score3 template and unusual insn.
24249 * config/score/score.opt: Remove score3 and score5 options.
24251 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24253 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
24254 when _HPUX_SOURCE is defined.
24255 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
24257 2011-03-10 Jason Merrill <jason@redhat.com>
24260 * stor-layout.c (layout_type): Don't set structural equality
24261 on arrays of incomplete type.
24262 * tree.c (type_hash_eq): Handle comparing them properly.
24264 2011-03-10 Jakub Jelinek <jakub@redhat.com>
24267 * config/s390/s390.c (s390_delegitimize_address): Make sure the
24268 result mode matches original rtl mode.
24270 2011-03-10 Nick Clifton <nickc@redhat.com>
24272 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
24273 (andsi3, andsi3_flags): Fix timings for three operand alternative.
24275 2011-03-09 Jakub Jelinek <jakub@redhat.com>
24277 PR rtl-optimization/47866
24278 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
24279 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
24280 if target wasn't scalar.
24281 * function.c (assign_stack_temp_for_type): Assert that neither
24282 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
24283 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
24285 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
24287 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24289 * config/s390/s390-protos.h (s390_label_align): New prototype.
24290 * config/s390/s390.c (s390_label_align): New function.
24291 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
24293 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
24296 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
24297 V2DI/V2DF constants. Only all 0's or all 1's are easy.
24298 (output_vec_const_move): Ditto.
24300 2011-03-08 Anatoly Sokolov <aesok@post.ru>
24302 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
24303 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
24304 * config/mips/mips.c (mips_preferred_reload_class): Make static.
24305 Change 'rclass' argument and result type to reg_class_t.
24306 (TARGET_PREFERRED_RELOAD_CLASS): Define.
24308 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
24310 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
24311 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
24312 (TARGET_MEMORY_MOVE_COST): Define.
24313 (avr_register_move_cost, avr_memory_move_cost): New Functions.
24315 2011-03-08 Jakub Jelinek <jakub@redhat.com>
24318 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
24321 PR tree-optimization/48022
24322 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
24325 2011-03-07 Jakub Jelinek <jakub@redhat.com>
24328 * var-tracking.c (find_use_val): Return NULL for
24329 cui->sets && cui->store_p BLKmode MEMs.
24331 2011-03-07 Anatoly Sokolov <aesok@post.ru>
24333 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
24335 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
24336 xstormy16_print_operand_address): Remove.
24337 * config/stormy16/stormy16.c (xstormy16_print_operand,
24338 xstormy16_print_operand_address): Make static.
24339 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24341 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
24344 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
24345 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
24348 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
24351 * cfgloopmanip.c (fix_bb_placements): Return immediately
24352 if FROM is BASE_LOOP's header.
24354 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
24356 * gimplify.c (gimplify_function_tree): Fix building calls
24357 to __builtin_return_address.
24359 2011-03-07 Alan Modra <amodra@gmail.com>
24361 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
24362 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
24363 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
24364 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
24366 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
24367 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
24368 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
24369 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
24370 * config/rs6000/rs6000.c
24371 (rs6000_elf_end_indicate_exec_stack): Rename to..
24372 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
24373 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
24374 (rs6000_file_start): ..here.
24375 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
24376 file scope variables.
24377 (call_ABI_of_interest): New function.
24378 (init_cumulative_args): Set above vars when function return value
24379 is a float, vector, or small struct.
24380 (rs6000_function_arg_advance_1): Likewise for function args.
24381 (rs6000_va_start): Set rs6000_passes_float if variable arg function
24382 references float args.
24384 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
24386 * doc/cfg.texi: Remove "See" before @ref.
24387 * doc/invoke.texi: Likewise.
24389 2011-03-05 Jason Merrill <jason@redhat.com>
24391 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
24393 2011-03-05 Anthony Green <green@moxielogic.com>
24395 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
24397 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
24399 PR rtl-optimization/47899
24400 * cfgloopmanip.c (fix_bb_placements): Fix first argument
24401 to flow_loop_nested_p when moving the loop upward.
24403 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
24406 * arm.md (movhi_insn_arch4): Accept any immediate constant.
24408 2011-03-05 Jakub Jelinek <jakub@redhat.com>
24410 PR tree-optimization/47967
24411 * ipa-cp.c (build_const_val): Return NULL instead of creating
24412 VIEW_CONVERT_EXPR for mismatching sizes.
24413 (ipcp_create_replace_map): Return NULL if build_const_val failed.
24414 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
24415 give up on versioning.
24417 2011-03-05 Alan Modra <amodra@gmail.com>
24420 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
24421 full cmodel medium/large lo_sum + high addresses.
24423 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24425 * config/s390/s390.c (s390_decompose_address): Reject non-literal
24426 pool references in UNSPEC_LTREL_OFFSET.
24428 2011-03-04 Jan Hubicka <jh@suse.cz>
24431 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
24432 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
24433 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
24435 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
24436 cgraph_add_thunk): Add node pointers.
24437 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
24438 associated to right node.
24439 (input_node): Update use of cgraph_same_body_alias
24440 and cgraph_add_thunk.
24442 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
24444 * config/i386/i386.opt (mprefer-avx128): New flag.
24445 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
24446 modes when the flag -mprefer-avx128 is on.
24448 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
24450 * dwarf2out.c (compare_loc_operands): Fix address handling.
24452 2011-03-04 Alan Modra <amodra@gmail.com>
24454 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
24456 2011-03-04 Richard Guenther <rguenther@suse.de>
24458 PR middle-end/47968
24459 * expmed.c (extract_bit_field_1): Prefer vector modes that
24460 vec_extract patterns can handle.
24462 2011-03-04 Richard Guenther <rguenther@suse.de>
24464 PR middle-end/47975
24465 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
24467 2011-03-04 Richard Henderson <rth@redhat.com>
24469 * explow.c (emit_stack_save): Remove 'after' parameter.
24470 (emit_stack_restore): Likewise.
24471 * expr.h: Update to match.
24472 * builtins.c, calls.c, stmt.c: Likewise.
24473 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
24474 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
24475 * function.c (expand_function_end): Insert the emit_stack_save
24476 sequence before parm_birth_insn instead of after.
24478 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
24480 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
24481 (ssse3_pmaddubsw128): Ditto.
24482 (ssse3_pmaddubsw): Ditto.
24484 2011-03-03 Steve Ellcey <sje@cup.hp.com>
24486 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
24488 2011-03-03 Jakub Jelinek <jakub@redhat.com>
24491 * gimplify.c (omp_add_variable): Only call omp_notice_variable
24492 on TYPE_SIZE_UNIT if it is a DECL.
24495 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
24496 first operand is not is_gimple_mem_ref_addr, try to fold it.
24497 If the operand still isn't is_gimple_mem_ref_addr, clear
24500 2011-03-03 Richard Guenther <rguenther@suse.de>
24502 PR middle-end/47283
24503 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
24505 (refs_may_alias_p_1): For release branches return true if
24506 we are confused by our input.
24508 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24510 * config/s390/s390.c (s390_function_value): Rename to ...
24511 (s390_function_and_libcall_value): ... this.
24512 (s390_function_value): New function.
24513 (s390_libcall_value): New function.
24514 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
24515 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
24516 target macro definitions.
24517 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
24519 2011-03-02 Joseph Myers <joseph@codesourcery.com>
24521 * config/i386/freebsd64.h (CC1_SPEC): Define.
24522 * config/i386/linux64.h (CC1_SPEC): Define.
24523 * config/i386/x86-64.h (CC1_SPEC): Don't define.
24525 2011-03-02 Anatoly Sokolov <aesok@post.ru>
24527 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
24529 * config/stormy16/stormy16.c: Include reload.h.
24530 (xstormy16_memory_move_cost): New function.
24531 (TARGET_MEMORY_MOVE_COST): Define.
24533 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
24535 PR rtl-optimization/47925
24536 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
24537 with side effects. Remove the more-specific check for volatile asms.
24539 2011-03-02 Alan Modra <amodra@gmail.com>
24542 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
24543 toc relative addresses for valid offsets.
24545 2011-03-01 Richard Guenther <rguenther@suse.de>
24547 PR tree-optimization/47890
24548 * tree-vect-loop.c (get_initial_def_for_induction): Set
24549 related stmt properly.
24551 2011-03-01 Richard Guenther <rguenther@suse.de>
24554 * lto-streamer.c (lto_record_common_node): Also register
24555 the canonical type.
24557 2011-03-01 Richard Guenther <rguenther@suse.de>
24560 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
24561 Do not stream DECL_ABSTRACT_ORIGIN.
24562 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
24563 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
24564 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
24565 Do not stream DECL_ABSTRACT_ORIGIN.
24566 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
24567 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
24569 2011-02-28 Anatoly Sokolov <aesok@post.ru>
24571 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
24572 FUNCTION_VALUE_REGNO_P): Remove.
24573 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
24574 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
24575 Add 'outgoing' argument.
24576 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
24578 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24579 TARGET_FUNCTION_VALUE_REGNO_P): Define.
24581 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
24584 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
24585 (lookup_filename): Likewise.
24586 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
24588 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
24589 Jakub Jelinek <jakub@redhat.com>
24591 PR middle-end/47893
24592 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
24593 (assign_stack_local_1): Change last argument type to int.
24594 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
24595 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
24596 don't record padding space into frame_space_list nor use those areas.
24597 (assign_stack_local): Adjust caller.
24598 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
24599 of assign_stack_local, pass 0 as last argument.
24600 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
24603 2011-02-28 Jakub Jelinek <jakub@redhat.com>
24606 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
24607 Use target address_mode and pointer_mode hooks instead of hardcoded
24608 Pmode and ptr_mode. Handle some simple cases of extending if
24609 POINTERS_EXTEND_UNSIGNED < 0.
24610 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
24611 Call convert_debug_memory_address.
24612 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
24613 convert_debug_memory_address.
24615 PR middle-end/46790
24616 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
24617 * configure: Regenerated.
24618 * config.in: Regenerated.
24619 * varasm.c (default_function_section): Return NULL
24620 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
24622 2011-02-28 Martin Jambor <mjambor@suse.cz>
24624 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
24625 the description to match the printed values.
24627 2011-02-28 Richard Guenther <rguenther@suse.de>
24629 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
24630 of the copied scope tree.
24632 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24634 * doc/extend.texi (Function Attributes): Avoid deeply (and
24635 wrongly) nested tables.
24637 2011-02-27 Jakub Jelinek <jakub@redhat.com>
24639 PR middle-end/47903
24640 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
24641 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
24642 r isn't op0 nor op1.
24644 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
24646 * config/avr/avr.md: Remove magic comment for emacs.
24648 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
24651 * config/avr/avr.c (avr_option_override): Use error on bad options.
24652 (avr_help): New function.
24653 (TARGET_HELP): Define.
24655 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
24658 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
24659 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
24661 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
24663 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
24664 (ARM Options): Ditto.
24665 (i386 and x86-64 Options): Ditto.
24666 (RX Options): Ditto.
24667 (SPARC Options): Ditto.
24669 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
24671 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
24672 FreeBSD 6 and later. Generally use cpu generic.
24674 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
24676 * doc/cpp.texi: Update copyright years.
24678 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
24681 * config/lm32/lm32.md (ashrsi3): Added needed variable.
24683 2011-02-25 Jon Beniston <jon@beniston.com>
24686 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
24687 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
24688 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
24689 (lm32_block_move_inline): Add type cast to remove warning.
24690 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
24691 (gen_int_relational): Move declarations to start of function.
24693 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
24695 PR tree-optimization/45470
24696 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
24697 can throw internally only.
24698 * tree-vect-stmts.c (vectorizable_call): Likewise.
24700 2011-02-24 Anatoly Sokolov <aesok@post.ru>
24702 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
24703 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
24704 * config/stormy16/stormy16-protos.h
24705 (xstormy16_preferred_reload_class): Remove.
24706 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
24707 static. Change 'rclass' argument and return type to reg_class_t.
24708 (TARGET_PREFERRED_RELOAD_CLASS,
24709 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
24711 2011-02-24 Richard Guenther <rguenther@suse.de>
24713 * lto-streamer-in.c (input_bb): Do not find referenced vars
24714 in debug statements.
24716 2011-02-23 Jason Merrill <jason@redhat.com>
24718 * common.opt (fabi-version): Document v5 and v6.
24720 2011-02-23 Richard Guenther <rguenther@suse.de>
24722 PR tree-optimization/47849
24723 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
24725 2011-02-23 Jie Zhang <jie@codesourcery.com>
24727 * opts-common.c (decode_cmdline_option): Print empty string
24728 argument as "" in decoded->orig_option_with_args_text.
24729 * gcc.c (execute): Print empty string argument as ""
24730 in the verbose output.
24731 (do_spec_1): Keep empty string argument.
24733 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
24735 * config.gcc: Declare score-* and crx-* obsolete.
24737 2011-02-23 Jie Zhang <jie@codesourcery.com>
24739 PR rtl-optimization/47763
24740 * web.c (web_main): Ignore naked clobber when replacing register.
24742 2011-02-22 Anatoly Sokolov <aesok@post.ru>
24744 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
24747 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
24750 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
24752 2011-02-22 Mike Stump <mikestump@comcast.net>
24754 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
24756 * configure: Regenerate.
24758 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
24760 PR rtl-optimization/46002
24761 * ira-color.c (update_copy_costs): Change class intersection
24762 test to reg_class_contents[] test of 'hard_regno'.
24764 2011-02-21 Joseph Myers <joseph@codesourcery.com>
24766 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
24767 than Driver option.
24768 * config/hpux11.opt (mt): Likewise.
24769 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
24770 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
24771 * config/vax/elf.opt (mno-asm-pic): Likewise.
24772 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
24774 2011-02-21 Mike Stump <mikestump@comcast.net>
24777 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
24778 tree so we can get save the type.
24779 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
24780 for CFString instead of trying to use past the end of the builtins.
24781 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
24782 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
24783 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
24784 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
24785 Rename to darwin_builtin_cfstring.
24786 (darwin_init_cfstring_builtins): Return the built type.
24788 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
24791 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
24792 (_mm256_insert_epi64): Use _mm_insert_epi64.
24794 2011-02-21 Anatoly Sokolov <aesok@post.ru>
24796 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24797 * config/stormy16/stormy16-protos.h
24798 (xstormy16_mode_dependent_address_p): Remove.
24799 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
24800 Make static. Change return type to bool. Change argument type to
24801 const_rtx. Remove dead code.
24802 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24804 2011-02-21 Richard Guenther <rguenther@suse.de>
24807 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
24808 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
24809 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
24811 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
24812 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
24814 2011-02-20 Richard Guenther <rguenther@suse.de>
24817 * tree.c (free_lang_data_in_decl): Clean builtins from
24818 the TU decl BLOCK_VARS.
24820 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
24824 * haifa-sched.c (fix_tick_ready): Skip tick computation
24827 2011-02-19 Richard Guenther <rguenther@suse.de>
24830 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
24831 Remove lazy BLOCK_VARS streaming.
24832 (lto_input_ts_block_tree_pointers): Likewise.
24833 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
24835 2011-02-19 Joseph Myers <joseph@codesourcery.com>
24837 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
24839 2011-02-19 Joseph Myers <joseph@codesourcery.com>
24841 * config/i386/biarch32.h, config/i386/mach.h,
24842 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
24844 2011-02-19 Jakub Jelinek <jakub@redhat.com>
24847 * config/i386/i386.md (peephole2 for shift and plus): Use
24848 operands[1] original mode in the first insn.
24850 2011-02-18 Mike Stump <mikestump@comcast.net>
24852 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
24854 2011-02-18 Jan Hubicka <jh@suse.cz>
24856 PR middle-end/47788
24857 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
24858 to zero when the function is not inlinable at all.
24860 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24862 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
24863 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
24864 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
24865 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
24866 * config/pa/t-pa64: Likewise.
24867 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
24869 2011-02-18 Jakub Jelinek <jakub@redhat.com>
24872 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
24874 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24877 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
24879 2011-02-18 Anatoly Sokolov <aesok@post.ru>
24881 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
24882 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
24883 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
24884 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
24885 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
24886 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
24887 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
24888 m32r_load_postinc_p, m32r_store_preinc_predec_p,
24889 m32r_legitimate_address_p): New functions.
24890 * config/m32r/constraints.md (constraint "S"): Don't use
24891 STORE_PREINC_PREDEC_P.
24892 (constraint "U"): Don't use LOAD_POSTINC_P.
24894 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
24896 PR rtl-optimization/46178
24897 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
24898 compute ira_hard_regno_cover_class[].
24900 2011-02-18 Richard Guenther <rguenther@suse.de>
24903 * lto-streamer.h (lto_global_var_decls): Declare.
24904 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
24905 statics for global var processing.
24907 2011-02-18 Richard Guenther <rguenther@suse.de>
24909 PR tree-optimization/47737
24910 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
24911 edge dominance check.
24913 2011-02-18 Jakub Jelinek <jakub@redhat.com>
24916 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
24917 avoid invalid rtx sharing.
24919 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
24921 * doc/cpp.texi (Obsolete Features): Add background on the
24922 origin of assertions.
24924 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
24926 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
24928 * config/darwin.c (output_objc_section_asm_op): Added support for
24930 (is_objc_metadata): New.
24931 (darwin_objc2_section): New.
24932 (darwin_objc1_section): New.
24933 (machopic_select_section): Added support for ABI v1 and v2.
24934 (darwin_emit_objc_zeroed): New.
24935 (darwin_output_aligned_bss): Detect objc metadata and treat it
24937 (darwin_asm_output_aligned_decl_common): Same.
24938 (darwin_asm_output_aligned_decl_local): Same.
24939 * config/darwin-sections.def: Updated for ABI v1 and v2.
24940 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
24941 compiling Objective-C code for the NeXT runtime, default to using
24942 ABI version 0 for 32-bit, and version 2 for 64-bit.
24944 2011-02-17 Joseph Myers <joseph@codesourcery.com>
24946 * common.opt (optimize_fast): New Variable.
24947 * opts.c (default_options_optimization): Use opts->x_optimize_fast
24948 instead of local variable ofast.
24950 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
24952 * doc/invoke.texi (fobjc-abi-version): Documented.
24953 (fobjc-nilcheck): Documented.
24954 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
24957 2011-02-17 Joseph Myers <joseph@codesourcery.com>
24960 * common.opt (export-dynamic): New Driver option.
24961 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
24963 2011-02-17 Joseph Myers <joseph@codesourcery.com>
24965 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
24967 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
24968 Jan Hubicka <jh@suse.cz>
24972 * cfgexpand.c (account_used_vars_for_block): Remove.
24973 (estimated_stack_frame_size): Use referenced vars.
24974 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
24975 that were referenced in the original function. Test src_fn
24976 rather than cfun. Drop redundant get_var_ann.
24977 (setup_one_parameter): Drop redundant get_var_ann.
24978 (declare_return_variable): Likewise.
24979 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
24980 (copy_arguments_for_versioning): Drop redundant get_var_ann.
24981 * ipa-inline.c (compute_inline_parameters): Do not compute
24982 disregard_inline_limits here.
24983 (compute_inlinable_for_current, pass_inlinable): New.
24984 (pass_inline_parameters): Require PROP_referenced_vars.
24985 * cgraphunit.c (cgraph_process_new_functions): Don't run
24986 compute_inline_parameters explicitly unless function is in SSA form.
24987 (cgraph_analyze_function): Set .disregard_inline_limits.
24988 * tree-sra.c (convert_callers): Compute inliner parameters
24989 only for functions already in SSA form.
24991 2011-02-17 Joseph Myers <joseph@codesourcery.com>
24993 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
24994 -mlittle-endian-data.
24996 2011-02-17 Joseph Myers <joseph@codesourcery.com>
24998 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
24999 -mno-fpu, not -fpu and -no-fpu.
25000 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
25001 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
25003 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
25006 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
25007 input reload with PLUS RTX.
25009 2011-02-16 Joseph Myers <joseph@codesourcery.com>
25011 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
25012 of InverseVar(MDMX).
25014 2011-02-16 Joseph Myers <joseph@codesourcery.com>
25016 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
25019 2011-02-16 Joseph Myers <joseph@codesourcery.com>
25021 * config/mn10300/mn10300.opt (mno-crt0): New.
25023 2011-02-16 Joseph Myers <joseph@codesourcery.com>
25025 * config/m68k/uclinux.opt (static-libc): New Driver option.
25027 2011-02-16 Joseph Myers <joseph@codesourcery.com>
25029 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
25031 2011-02-16 Joseph Myers <joseph@codesourcery.com>
25033 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
25034 %{muser-extend-enabled}.
25036 2011-02-16 Richard Guenther <rguenther@suse.de>
25038 PR tree-optimization/47738
25039 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
25040 the TODO from tree_predictive_commoning.
25042 2011-02-15 Jeff Law <law@redhat.com>
25045 2011-01-25 Jeff Law <law@redhat.com>
25047 PR rtl-optimization/37273
25048 * ira-costs.c (scan_one_insn): Detect constants living in memory and
25049 handle them like argument loads from stack slots. Do not double
25050 count memory for memory constants and argument loads from stack slots.
25052 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
25055 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
25056 mode for vector constants. Remove code that checks for TImode.
25058 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
25062 * cgraph.h (compute_inline_parameters): Return void.
25063 * ipa-inline.c (compute_inline_parameters): Adjust.
25065 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
25069 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
25071 * cfgexpand.c (estimated_stack_frame_size): Likewise.
25072 * ipa-inline.c (compute_inline_parameters): Adjust.
25074 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
25078 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
25079 Adjust all users. Pass FN to...
25080 * tree-flow-inline.h (first_referenced_var): ... this. Add
25082 * ipa-struct-reorg.c: Adjust.
25083 * tree-dfa.c: Adjust.
25084 * tree-into-ssa.c: Adjust.
25085 * tree-sra.c: Adjust.
25086 * tree-ssa-alias.c: Adjust.
25087 * tree-ssa-live.c: Adjust.
25088 * tree-ssa.c: Adjust.
25089 * tree-ssanames.c: Adjust.
25090 * tree-tailcall.c: Adjust.
25092 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
25096 * tree-flow.h (referenced_var_lookup): Add fn parameter.
25097 Adjust all callers.
25098 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
25099 * tree-flow-inline.h: Adjust.
25100 * gimple-pretty-print.c: Adjust.
25101 * tree-into-ssa.c: Adjust.
25102 * tree-ssa.c: Adjust.
25103 * cfgexpand.c: Adjust.
25105 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
25107 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
25108 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25109 (EXTRA_CONSTRAINT): Delete.
25110 * config/iq2000/constraints.md: New file.
25111 * config/iq2000/iq2000.md: Include it.
25112 (define_insn ""): Delete.
25113 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
25114 unsupported constraint letters from patterns.
25115 (call_value, call_value_internal1): Likewise.
25116 (call_value_multiple_internal1): Likewise.
25118 2011-02-15 Nick Clifton <nickc@redhat.com>
25120 * config/mn10300/mn10300.c: Include tm-constrs.h.
25121 (struct liw_data): New data structure describing an LIW candidate
25123 (extract_bundle): Use struct liw_data. Allow small integer
25124 operands for some instructions.
25125 (check_liw_constraints): Use struct liw_data. Remove swapped
25126 parameter. Add comments describing the checks. Fix bug when
25127 assigning the source of liw1 to the source of liw2.
25128 (liw_candidate): Delete. Code moved into extract_bundle.
25129 (mn10300_bundle_liw): Use struct liw_data. Check constraints
25131 * config/mn10300/predicates.md (liw_operand): New predicate.
25132 Allows registers and small integer constants.
25133 * config/mn10300/constraints.md (O): New constraint. Accetps
25134 integers in the range -8 to +7 inclusive.
25135 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
25136 for moving a small integer into a register. Give this alternative
25138 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
25139 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
25140 using the J,K,L and M constraints,
25141 (liw): Remove SI mode on second operands to allow for HI and QI
25143 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
25146 2011-02-15 Richard Guenther <rguenther@suse.de>
25148 PR tree-optimization/47743
25149 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
25150 for a non-type-compatible VN lookup bail out.
25152 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
25154 * config/fr30/constraints.md: New file.
25155 * config/fr30/fr30.md: Include it.
25156 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
25157 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25158 (EXTRA_CONSTRAINT): Delete.
25160 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
25162 * config/frv/constraints.md: New file.
25163 * config/frv/predicates.md: Include it.
25164 * config/frv/frv.c (reg_class_from_letter): Delete.
25165 (frv_option_override): Don't initialize it.
25166 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
25167 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
25168 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
25169 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
25170 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
25171 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25172 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
25173 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
25174 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
25175 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
25176 (REG_CLASS_FROM_CONSTRAINT): Delete.
25178 2011-02-15 Jakub Jelinek <jakub@redhat.com>
25180 PR middle-end/47581
25181 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
25182 if frame size is 0 in a leaf function.
25184 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25187 * config/alpha/host-osf.c: New file.
25188 * config/alpha/x-osf: New file.
25189 * config.host (alpha*-dec-osf*): Use it.
25191 2011-02-14 Anatoly Sokolov <aesok@post.ru>
25193 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
25194 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
25195 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
25196 (rx_mode_dependent_address_p): ...this. Make static. Change argument
25198 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25200 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
25202 * config/stormy16/constraints.md: New file.
25203 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
25204 Use satisfies_constraint_Q and satisfies_constraint_R.
25205 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
25207 (xstormy16_legitiamte_address_p): Declare.
25208 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
25209 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25210 (EXTRA_CONSTRAINT): Delete.
25211 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
25213 (xstormy16_extra_constraint_p): Delete.
25215 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
25217 PR tree-optimization/46494
25218 * loop-unroll.c (split_edge_and_insert): Adjust comment.
25219 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
25220 (pass_rtl_loop_done): Add TODO_verify_flow.
25221 * fwprop.c (pass_rtl_fwprop): Likewise.
25222 * modulo-sched.c (pass_sms): Likewise.
25223 * tree-ssa-dom.c (pass_dominator): Likewise.
25224 * tree-ssa-loop-ch.c (pass_ch): Likewise.
25225 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
25226 (pass_tree_loop_done): Likewise.
25227 * tree-ssa-pre.c (execute_pre): Likewise.
25228 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
25229 * tree-ssa-sink.c (pass_sink_code): Likewise.
25230 * tree-vrp.c (pass_vrp): Likewise.
25232 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
25234 * config/v850/constraints.md: New file.
25235 * config/v850/v850.md: Include it.
25236 * config/v850/predicates.md (reg_or_0_operand): Use
25237 satisfies_constraint_G.
25238 (special_symbolref_operand): Use satisfies_constraint_K.
25239 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
25240 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
25241 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
25242 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
25243 (EXTRA_CONSTRAINT): Delete.
25244 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
25245 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
25246 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
25248 2011-02-14 Anatoly Sokolov <aesok@post.ru>
25251 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
25254 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
25256 * config/mcore/constraints.md: New file.
25257 * config/mcore/mcore.md: Include it.
25258 * config/mcore/mcore.c (reg_class_from_letter): Delete.
25259 * config/mcore/mcore.h (reg_class_from_letter): Delete.
25260 (REG_CLASS_FROM_LETTER): Delete.
25261 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
25262 insn_const_int_ok_for_constraint.
25263 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
25264 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
25265 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25266 (EXTRA_CONSTRAINT): Delete.
25268 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25271 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
25272 (IS_SIGHANDLER): Define.
25273 (sparc64_is_sighandler): New function, split off from
25274 sparc64_fallback_frame_state.
25275 (sparc_is_sighandler): New function, split off from
25276 sparc_fallback_frame_state.
25277 (sparc64_fallback_frame_state): Merge with ...
25278 (sparc_fallback_frame_state): ... this into ...
25279 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
25280 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
25281 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
25282 stack instead of hardcoded offsets.
25284 2011-02-14 Andriy Gapon <avg@freebsd.org>
25287 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
25289 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25291 * configure: Regenerate.
25293 2011-02-12 Joseph Myers <joseph@codesourcery.com>
25296 * gcc.c (asm_options): Correct spec matching --target-help.
25298 2011-02-12 Martin Jambor <mjambor@suse.cz>
25300 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
25301 to gimple call error.
25303 2011-02-12 Mike Stump <mikestump@comcast.net>
25305 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
25306 comments in backslash regions.
25308 2011-02-12 Mike Stump <mikestump@comcast.net>
25309 Jakub Jelinek <jakub@redhat.com>
25310 Iain Sandoe <iains@gcc.gnu.org>
25313 * dwarf2out.c (output_cfa_loc): When required, apply the
25314 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
25315 (output_loc_sequence): Likewise.
25316 (output_loc_operands_raw): Likewise.
25317 (output_loc_sequence_raw): Likewise.
25318 (output_cfa_loc): Likewise.
25319 (output_loc_list): Suppress register number adjustment when
25320 calling output_loc_sequence()
25321 (output_die): Likewise.
25323 2011-02-12 Anatoly Sokolov <aesok@post.ru>
25325 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
25327 * config/xtensa/xtensa.c (xtensa_register_move_cost,
25328 xtensa_memory_move_cost): New functions.
25329 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
25331 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
25334 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
25335 in the current directory.
25336 * configure: Rebuilt.
25338 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
25340 * config/darwin.c (darwin_override_options): Add a hunk missed
25341 from the commit of r168571. Trim comment line lengths and
25342 correct indents of the preceding block.
25344 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
25346 * gcc.c (driver_handle_option): Concatenate the argument to -F with
25349 2011-02-11 Joseph Myers <joseph@codesourcery.com>
25351 * common.opt (nostartfiles): New Driver option.
25353 2011-02-11 Xinliang David Li <davidxl@google.com>
25355 PR tree-optimization/47707
25356 * tree-chrec.c (convert_affine_scev): Keep type precision.
25358 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
25360 PR tree-optimization/47420
25361 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
25363 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
25365 PR rtl-optimization/47614
25366 * rtl.h (check_for_inc_dec): Declare.
25367 * dse.c (check_for_inc_dec): Externalize...
25368 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
25369 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
25371 2011-02-11 Joseph Myers <joseph@codesourcery.com>
25374 * gcc.c (main): Do not compile inputs if there were errors in
25376 * opts-common.c (read_cmdline_option): Check for wrong language
25377 after other error checks.
25379 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
25381 * cgraph.c: Fix comment typos.
25382 * cgraph.h: Likewise.
25383 * cgraphunit.c: Likewise.
25384 * ipa-cp.c: Likewise.
25385 * ipa-inline.c: Likewise.
25386 * ipa-prop.c: Likewise.
25387 * ipa-pure-const.c: Likewise.
25388 * ipa-ref.c: Likewise.
25389 * ipa-reference.c: Likewise.
25391 2011-02-11 Jakub Jelinek <jakub@redhat.com>
25394 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
25396 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25399 * doc/sourcebuild.texi (Require Support): Document
25400 dg-require-ascii-locale.
25402 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
25404 * doc/lto.texi (Write summary): Fix missing parentheses.
25406 2011-02-10 DJ Delorie <dj@redhat.com>
25408 * config/m32c/m32c.c (m32c_option_override): Disable
25409 -fcombine-stack-adjustments until flag value tracking and compare
25410 optimization can be rewritten.
25412 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
25414 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
25416 (PROCESSOR_DEFAULT64): Likewise.
25418 2011-02-10 Richard Henderson <rth@redhat.com>
25420 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
25421 change from 2011-02-03.
25422 * config/rx/rx.c (flags_from_code): Likewise.
25423 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
25424 is valid, n/pz otherwise.
25425 (rx_select_cc_mode): Return CCmode if Y is not zero.
25427 2011-02-10 Richard Guenther <rguenther@suse.de>
25429 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
25431 2011-02-10 Richard Guenther <rguenther@suse.de>
25433 PR tree-optimization/47677
25434 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
25436 2011-02-10 Jakub Jelinek <jakub@redhat.com>
25439 * combine.c (make_compound_operation): Only change shifts into
25440 multiplication for SCALAR_INT_MODE_P.
25442 2011-02-10 Jie Zhang <jie@codesourcery.com>
25446 2011-02-05 Jie Zhang <jie@codesourcery.com>
25448 * web.c (entry_register): Don't clobber the number of the
25449 first uninitialized reference in used[].
25451 2011-02-09 Richard Guenther <rguenther@suse.de>
25453 PR tree-optimization/47664
25454 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
25457 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
25461 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
25463 (PROCESSOR_DEFAULT64): Same.
25464 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
25466 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25468 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
25470 2011-02-09 Martin Jambor <mjambor@suse.cz>
25472 PR middle-end/45505
25473 * tree-sra.c (struct access): New flags grp_scalar_read and
25474 grp_scalar_write. Changed description of assignment read and write
25476 (dump_access): Dump new flags, reorder all of them.
25477 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
25478 to detect multiple scalar reads.
25479 (analyze_access_subtree): Use the new scalar read write flags instead
25480 of the old flags. Adjusted comments.
25482 2011-02-08 DJ Delorie <dj@redhat.com>
25485 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
25488 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25490 * config/m68k/uclinux.opt: New.
25491 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
25493 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25495 * config/cris/elf.opt (sim): New Driver option.
25497 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25499 * config/xtensa/elf.opt: New.
25500 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
25502 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25504 * config/vax/elf.opt: New.
25505 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
25507 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25509 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
25511 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25513 * config/gnu-user.opt: New.
25514 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
25515 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
25516 *-*-uclinux*): Use gnu-user.opt.
25518 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
25520 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
25521 * config/i386/gnu.h (CPP_SPEC): Likewise.
25523 2011-02-08 Ian Lance Taylor <iant@google.com>
25525 * common.opt (fcx-limited-range): Add SetByCombined flag.
25526 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
25527 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
25528 (fassociative-math, freciprocal-math): Likewise.
25529 (funsafe-math-optimizations): Likewise.
25530 * opth-gen.awk: Handle SetByCombined.
25531 * optc-gen.awk: Likewise.
25532 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
25533 (set_unsafe_math_optimizations_flags): Likewise.
25534 * doc/options.texi (Option properties): Document SetByCombined.
25536 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25538 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
25539 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
25540 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
25541 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
25542 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
25544 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
25546 PR tree-optimization/46834
25547 PR tree-optimization/46994
25548 PR tree-optimization/46995
25549 * graphite-sese-to-poly.c (used_outside_reduction): New.
25550 (detect_commutative_reduction): Call used_outside_reduction.
25551 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
25552 translate_scalar_reduction_to_array only when at least one
25553 loop-phi/close-phi tuple has been detected.
25555 2011-02-08 Richard Guenther <rguenther@suse.de>
25557 PR middle-end/47639
25558 * tree-vect-generic.c (expand_vector_operations_1): Update
25560 (expand_vector_operations): ... not here. Cleanup EH info
25561 and the CFG if required.
25563 2011-02-08 Richard Guenther <rguenther@suse.de>
25565 PR tree-optimization/47641
25566 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
25567 require type compatibility.
25569 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25571 * gimple-low.c (lower_function_body): Don't remove the location of
25572 the return statement here.
25573 (lower_gimple_return): Do it here instead but only if the return
25574 statement is actually used twice.
25576 2011-02-08 Richard Guenther <rguenther@suse.de>
25578 PR tree-optimization/47632
25579 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
25580 unused up_to_stmt parameter, return whether cfg-cleanup is
25581 necessary, remove EH info properly.
25582 (forward_propagate_into_gimple_cond): Adjust caller.
25583 (forward_propagate_into_cond): Likewise.
25584 (forward_propagate_comparison): Likewise.
25585 (tree_ssa_forward_propagate_single_use_vars): Make
25586 forward_propagate_comparison case similar to the two others.
25588 2011-02-08 Nick Clifton <nickc@redhat.com>
25590 * config/mn10300/mn10300.opt (mliw): New command line option.
25591 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
25592 (liw_bundling): New automaton.
25593 (liw): New attribute.
25594 (liw_op): New attribute.
25595 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
25596 (movsi_internal): Add LIW attributes.
25597 (andsi3): Likewise.
25598 (iorsi3): Likewise.
25599 (xorsi3): Likewise.
25600 (addsi3): Separate register and immediate alternatives.
25601 Add LIW attributes.
25602 (subsi3): Likewise.
25604 (aslsi3): Likewise.
25605 (lshrsi3): Likewise.
25606 (ashrsi3): Likewise.
25607 (liw): New pattern.
25608 * config/mn10300/mn10300.c (liw_op_names): New
25609 (mn10300_print_operand): Handle 'W' operand descriptor.
25610 (extract_bundle): New function.
25611 (check_liw_constraints): New function.
25612 (liw_candidate): New function.
25613 (mn10300_bundle_liw): New function.
25614 (mn10300_reorg): New function.
25615 (TARGET_MACHINE_DEPENDENT_REORG): Define.
25616 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
25617 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
25618 __LIW__ or __NO_LIW__.
25619 * doc/invoke.texi: Describe the -mliw command line option.
25621 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25623 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
25624 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
25625 pthread_mutex_unlock): Remove.
25626 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
25627 * config/pa/t-pa64: Likewise.
25628 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
25629 shared libc if not linking against libpthread.
25630 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
25632 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
25635 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
25636 on 10.6 and later to ensure that we always use the unwinder from
25637 the system. Only add -no_compact_unwind when tarteting darwin
25640 2011-02-07 Steve Ellcey <sje@cup.hp.com>
25643 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
25644 (vec_interleave_lowv2sf): Ditto.
25645 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
25646 (vec_extract_oddv2sf): Ditto.
25648 2011-02-07 Mike Stump <mikestump@comcast.net>
25651 Add __ieee_divdc3 entry point.
25652 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
25654 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
25655 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
25656 * config/darwin.c (darwin_rename_builtins): Add.
25657 * config/darwin-protos.h (darwin_rename_builtins): Add.
25659 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
25662 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
25665 2011-02-07 Mike Stump <mikestump@comcast.net>
25667 * config/darwin.opt (mmacosx-version-min): Update default OS version.
25669 2011-02-07 Denis Chertykov <chertykov@gmail.com>
25672 * config/avr/libgcc.S (exit): Move .endfunc
25674 2011-02-07 Richard Guenther <rguenther@suse.de>
25676 PR tree-optimization/47615
25677 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
25678 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
25679 (run_scc_vn): Initialize it.
25680 (visit_reference_op_load): Use it.
25681 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
25683 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25685 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
25686 DImode trapping arithmetic libfuncs.
25688 2011-02-07 Richard Guenther <rguenther@suse.de>
25690 PR tree-optimization/47621
25691 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
25693 (execute_update_addresses_taken): ... here. Make it more
25694 conservative in what we accept.
25696 2011-02-06 Joseph Myers <joseph@codesourcery.com>
25698 * config/sparc/freebsd.h (ASM_SPEC): Define.
25699 * config/sparc/vxworks.h (ASM_SPEC): Define.
25701 2011-02-06 Joseph Myers <joseph@codesourcery.com>
25703 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
25705 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
25707 * doc/invoke.texi: Remove reference to compiler internals from
25708 user documentation.
25710 * reg-notes.def: Remove REG_VALUE_PROFILE.
25711 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
25713 2011-02-05 Jakub Jelinek <jakub@redhat.com>
25715 PR middle-end/47610
25716 * varasm.c (default_section_type_flags): If decl is NULL,
25717 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
25719 2011-02-05 Jie Zhang <jie@codesourcery.com>
25722 * web.c (entry_register): Don't clobber the number of the
25723 first uninitialized reference in used[].
25725 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
25727 PR tree-optimization/46194
25728 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
25729 (build_classic_dist_vector_1): Do not represent classic distance
25730 vectors when the access functions are variating in different loops.
25732 2011-02-04 Joseph Myers <joseph@codesourcery.com>
25734 * config/mips/iris6.opt: New.
25735 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
25737 2011-02-04 Richard Henderson <rth@redhat.com>
25738 Steve Ellcey <sje@cup.hp.com>
25741 * config/ia64/predicates.md (mux1_brcst_element): New.
25742 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
25743 * config/ia64/ia64.c (ia64_unpack_assemble): New.
25744 (ia64_unpack_sign): New.
25745 (ia64_expand_unpack): Rewrite using new routines.
25746 (ia64_expand_widen_sum): Ditto.
25747 (ia64_expand_dot_prod_v8qi): Ditto.
25748 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
25749 routines, add endian check.
25750 (pmpy2_even): Rename from pmpy2_r, add endian check.
25751 (pmpy2_odd): Rename from pmpy2_l, add endian check.
25752 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
25753 (vec_widen_smult_hi_v4hi): Ditto.
25754 (vec_widen_umult_lo_v4hi): Ditto.
25755 (vec_widen_umult_hi_v4hi): Ditto.
25756 (mulv2si3): Change endian checks.
25757 (sdot_prodv4hi): Rewrite with new calls.
25758 (udot_prodv4hi): New.
25759 (vec_pack_ssat_v4hi): Add endian check.
25760 (vec_pack_usat_v4hi): Ditto.
25761 (vec_pack_ssat_v2si): Ditto.
25762 (max1_even): Rename from max1_r, add endian check.
25763 (max1_odd): Rename from max1_l, add endian check.
25764 (*mux1_rev): Format change.
25765 (*mux1_mix): Ditto.
25766 (*mux1_shuf): Ditto.
25767 (*mux1_alt): Ditto.
25768 (*mux1_brcst_v8qi): Use new predicate.
25769 (vec_extract_evenv8qi): Remove endian check.
25770 (vec_extract_oddv8qi): Ditto.
25771 (vec_interleave_lowv4hi): Format change.
25772 (vec_interleave_highv4hi): Ditto.
25773 (mix2_even): Rename from mix2_r, add endian check.
25774 (mix2_odd): Rename from mux2_l, add endian check.
25775 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
25776 (vec_extract_evenodd_helper): Format change.
25777 (vec_extract_evenv4hi): Remove endian check.
25778 (vec_extract_oddv4hi): Remove endian check.
25779 (vec_interleave_lowv2si): Format change.
25780 (vec_interleave_highv2si): Format change.
25781 (vec_initv2si): Remove endian check.
25782 (vecinit_v2si): Add endian check.
25783 (reduc_splus_v2sf): Add endian check.
25784 (reduc_smax_v2sf): Ditto.
25785 (reduc_smin_v2sf): Ditto.
25786 (vec_initv2sf): Remove endian check.
25787 (fpack): Add endian check.
25788 (fswap): Add endian check.
25789 (vec_interleave_highv2sf): Add endian check.
25790 (vec_interleave_lowv2sf): Add endian check.
25791 (fmix_lr): Add endian check.
25792 (vec_setv2sf): Format change.
25793 (*vec_extractv2sf_0_be): Use shift to extract operand.
25794 (*vec_extractv2sf_1_be): New.
25795 (vec_pack_trunc_v4hi): Add endian check.
25796 (vec_pack_trunc_v2si): Format change.
25798 2011-02-04 Jakub Jelinek <jakub@redhat.com>
25800 PR inline-asm/23200
25801 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
25802 do bb, locus and block comparison and disallow loads if it is not set.
25803 (stmt_is_replaceable_p): New function.
25804 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
25806 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
25807 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
25809 * tree-flow.h (stmt_is_replaceable_p): New prototype.
25811 2011-02-04 Joseph Myers <joseph@codesourcery.com>
25813 * config/rs6000/xilinx.opt: New.
25814 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
25816 2011-02-04 Joseph Myers <joseph@codesourcery.com>
25818 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
25820 2011-02-03 Anatoly Sokolov <aesok@post.ru>
25822 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
25823 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
25824 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
25825 secondary_reload_info, xtensa_secondary_reload): Remove.
25826 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
25827 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
25828 (xtensa_preferred_reload_class): Make static. Change return and
25829 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
25830 Use CONST_DOUBLE_P predicate.
25831 (xtensa_preferred_output_reload_class): New function.
25832 (xtensa_secondary_reload): Make static.
25834 2011-02-03 Joseph Myers <joseph@codesourcery.com>
25836 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
25837 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
25838 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
25840 2011-02-03 Jakub Jelinek <jakub@redhat.com>
25842 PR middle-end/31490
25843 * output.h (SECTION_RELRO): Define.
25844 (SECTION_MACH_DEP): Adjust.
25845 (get_variable_section): New prototype.
25846 * varpool.c (varpool_finalize_named_section_flags): New function.
25847 (varpool_assemble_pending_decls): Call it.
25848 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
25849 * cgraphunit.c (cgraph_output_in_order): Call
25850 varpool_finalize_named_section_flags.
25851 * varasm.c (get_section): Allow section flags conflicts between
25852 relro and read-only sections if the section hasn't been declared yet.
25853 Set SECTION_OVERRIDE after diagnosing section type conflict.
25854 (get_variable_section): No longer static.
25855 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
25856 readonly sections that need relocations.
25857 (decl_readonly_section_1): New function.
25858 (decl_readonly_section): Use it.
25861 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
25862 Steve Ellcey <sje@cup.hp.com>
25864 PR middle-end/31490
25865 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
25866 if section attribute used.
25868 2011-02-03 Jakub Jelinek <jakub@redhat.com>
25870 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
25871 * config/darwin.c (SECTION_NO_ANCHOR): Define.
25872 (darwin_init_sections): Remove assertion.
25874 2011-02-03 Nick Clifton <nickc@redhat.com>
25876 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
25878 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
25879 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
25880 instead of "n" and "pz".
25881 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
25884 2011-02-03 Jakub Jelinek <jakub@redhat.com>
25887 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
25888 fma, expand FMA_EXPR as fma{,f,l} call.
25891 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
25892 copy them into a unsigned char variable and pass address of it to
25893 lto_output_data_stream.
25896 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
25897 around backend_init_target and lang_dependent_init_target calls.
25898 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
25899 (verify_cgraph_node): Don't call set_cfun here. Use
25900 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
25901 Set error_found for incorrectly represented calls to thunks.
25903 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
25906 PR rtl-optimization/43494
25907 * rtl.h (for_each_inc_dec_fn): New type.
25908 (for_each_inc_dec): Declare.
25909 * rtlanal.c (struct for_each_inc_dec_ops): New type.
25910 (for_each_inc_dec_find_inc_dec): New fn.
25911 (for_each_inc_dec_find_mem): New fn.
25912 (for_each_inc_dec): New fn.
25913 * dse.c (struct insn_size): Remove.
25914 (replace_inc_dec, replace_inc_dec_mem): Remove.
25915 (emit_inc_dec_insn_before): New fn.
25916 (check_for_inc_dec): Use it, along with for_each_inc_dec.
25917 (canon_address): Pass mem modes to cselib_lookup.
25918 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
25919 (cselib_lookup_from_insn): Likewise.
25920 (cselib_subst_to_values): Likewise.
25921 * cselib.c (find_slot_memmode): New var.
25922 (cselib_find_slot): New fn. Use it instead of
25923 htab_find_slot_with_hash everywhere.
25924 (entry_and_rtx_equal_p): Use find_slot_memmode.
25925 (autoinc_split): New fn.
25926 (rtx_equal_for_cselib_p): Rename and implement in terms of...
25927 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
25928 Deal with autoinc. Special-case recursion into MEMs.
25929 (cselib_hash_rtx): Likewise.
25930 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
25931 address and MEM modes.
25932 (cselib_subst_to_values): Add memmode, pass it on.
25934 (cselib_lookup): Add memmode argument, pass it on.
25935 (cselib_lookup_from_insn): Add memmode.
25936 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
25937 (struct cselib_record_autoinc_data): New.
25938 (cselib_record_autoinc_cb): New fn.
25939 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
25940 mode to cselib_lookup. Reset autoinced REGs here instead of...
25941 (cselib_process_insn): ... here.
25942 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
25944 (add_uses): Likewise, also to cselib_subst_to_values.
25945 (add_stores): Likewise.
25946 * sched-deps.c (add_insn_mem_dependence): Pass mode to
25947 cselib_subst_to_values.
25948 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
25949 * gcse.c (do_local_cprop): Adjusted.
25950 * postreload.c (reload_cse_simplify_set): Adjusted.
25951 (reload_cse_simplify_operands): Adjusted.
25952 * sel-sched-dump (debug_mem_addr_value): Pass mode.
25954 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
25956 PR tree-optimization/45122
25957 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
25958 unsafe assumptions when there's more than one loop exit.
25960 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25963 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25964 Document using vector double with the load/store builtins, and
25965 that the load/store builtins always use Altivec instructions.
25967 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
25968 to use altivec memory instructions, even on VSX.
25969 (vector_altivec_store_<mode>): Ditto.
25971 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
25974 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25975 V2DF, V2DI support to load/store overloaded builtins.
25977 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
25978 altivec load/store builtins for V2DF/V2DI types.
25980 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25981 set avoid indexed addresses on power6 if -maltivec.
25982 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
25983 vector_altivec_load/vector_altivec_store builtins.
25984 (altivec_expand_st_builtin): Ditto.
25985 (altivec_expand_builtin): Add VSX memory builtins.
25986 (rs6000_init_builtins): Add V2DI types to internal types.
25987 (altivec_init_builtins): Add support for V2DF/V2DI altivec
25988 load/store builtins.
25989 (rs6000_address_for_altivec): Insure memory address is appropriate
25992 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
25993 vec_vsx_ld and vec_vsx_st.
25994 (vsx_store_<mode>): Ditto.
25996 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
25997 variables to hold long long types for VSX vector memory builtins.
25998 (RS6000_BTI_unsigned_long_long): Ditto.
25999 (long_long_integer_type_internal_node): Ditti.
26000 (long_long_unsigned_type_internal_node): Ditti.
26002 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
26003 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
26004 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
26006 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
26008 (vec_vsx_st): Ditto.
26010 2011-02-02 Joseph Myers <joseph@codesourcery.com>
26012 * config/pa/pa-hpux10.opt: New.
26013 * config/hpux11.opt (pthread): New Driver option.
26014 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
26015 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
26017 2011-02-02 Joseph Myers <joseph@codesourcery.com>
26019 * config/ia64/vms.opt: New.
26020 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
26022 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
26025 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
26026 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
26027 generator functions.
26028 (vsx_floatuns<VSi><mode>2): Ditto.
26029 (vsx_fix_trunc<mode><VSi>2): Ditto.
26030 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
26032 2011-02-02 Joseph Myers <joseph@codesourcery.com>
26034 * config/i386/djgpp.opt (posix): New Driver option.
26036 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
26038 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
26039 Move to the unsupported targets list.
26041 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
26043 PR rtl-optimization/47525
26044 * df-scan.c: Update copyright years.
26045 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
26046 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
26048 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26050 * config/i386/sysv4.h (TARGET_VERSION): Remove.
26051 (SUBTARGET_RETURN_IN_MEMORY): Remove.
26052 (ASM_OUTPUT_ASCII): Remove.
26053 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
26055 2011-02-02 Jeff Law <law@redhat.com>
26057 PR middle-end/47543
26058 * reload.c (find_reloads_address): Handle reg+d address where both
26059 components are invalid by reloading the entire address.
26061 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
26062 Richard Guenther <rguenther@suse.de>
26064 PR tree-optimization/40979
26066 * passes.c (init_optimization_passes): After LIM call copy_prop
26067 and DCE to clean up.
26068 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
26070 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
26072 PR tree-optimization/47576
26073 PR tree-optimization/47555
26074 * doc/invoke.texi (scev-max-expr-complexity): Documented.
26075 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
26076 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
26077 * tree-scalar-evolution.c (follow_ssa_edge): Use
26078 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
26080 2011-02-02 Richard Guenther <rguenther@suse.de>
26082 PR tree-optimization/47566
26083 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
26085 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
26089 * tree-inline.c (declare_return_variable): Remove unused caller
26094 * tree-flow-inline.h (clear_is_used, is_used_p): New.
26095 * cfgexpand.c (account_used_vars_for_block): Use them.
26096 * tree-nrv.c (tree_nrv): Likewise.
26097 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
26098 (dump_scope_block): Likewise.
26099 (remove_unused_locals): Likewise.
26103 * tree-inline.c (declare_return_variable): Add result decl to
26104 local decls only once.
26105 * gimple-low.c (record_vars_into): Mark newly-created variables
26108 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
26114 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
26116 (no_real_insns_p, schedule_block, set_priorities): Drop special
26117 treatment of boundary debug insns.
26118 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
26119 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
26120 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
26121 (BOUNDARY_DEBUG_INSN_P): Likewise.
26122 (SCHEDULE_DEBUG_INSN_P): Likewise.
26123 * sched-rgn.c (init_ready_list): Drop special treatment of
26124 boundary debug insns.
26125 * final.c (rest_of_clean_state): Clear notes' BB.
26127 2011-02-01 Joseph Myers <joseph@codesourcery.com>
26129 * config/openbsd.opt (assert=): New Driver option.
26131 2011-02-01 Joseph Myers <joseph@codesourcery.com>
26133 * config/i386/nto.opt: New.
26134 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
26136 2011-02-01 Joseph Myers <joseph@codesourcery.com>
26138 * config/i386/netware.opt: New.
26139 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
26141 2011-02-01 Joseph Myers <joseph@codesourcery.com>
26143 * config/interix.opt (posix): New Driver option.
26145 2011-02-01 DJ Delorie <dj@redhat.com>
26147 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
26149 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
26152 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
26154 PR tree-optimization/47561
26155 * toplev.c (process_options): Print the Graphite flags. Add
26156 flag_loop_flatten to the list of options requiring Graphite.
26158 2011-02-01 Joseph Myers <joseph@codesourcery.com>
26160 * config/i386/cygming.opt (posix): New Driver option.
26162 2011-02-01 Joseph Myers <joseph@codesourcery.com>
26164 * config/arm/vxworks.opt: New.
26165 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
26167 2011-02-01 Joseph Myers <joseph@codesourcery.com>
26169 * config/alpha/elf.opt: New.
26170 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
26171 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
26173 2011-02-01 Richard Guenther <rguenther@suse.de>
26175 PR tree-optimization/47559
26176 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
26177 store-motion on references that can throw.
26179 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
26181 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
26182 * tree-pass.h (TDF_CSELIB): New macro.
26183 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
26184 cselib_lookup): Check for it rather than for TDF_DETAILS.
26186 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
26189 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
26190 is HOST_BIT_BUCKET.
26192 * opts.c (finish_options): Don't add x_aux_base_name if it is
26195 2011-02-01 Richard Guenther <rguenther@suse.de>
26197 PR tree-optimization/47555
26199 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
26201 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
26203 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
26206 * config/lm32/t-lm32: Add multilib for all CPU options.
26208 2011-02-01 Richard Guenther <rguenther@suse.de>
26210 PR tree-optimization/47541
26211 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
26212 sure to have a field at offset zero.
26214 2011-01-31 Joseph Myers <joseph@codesourcery.com>
26216 * config/arc/arc.opt (EB, EL): New Driver options.
26218 2011-01-31 Joseph Myers <joseph@codesourcery.com>
26220 * config/alpha/osf5.opt: New.
26221 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
26223 2011-01-31 Joseph Myers <joseph@codesourcery.com>
26225 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
26227 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
26229 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
26230 -floop-interchange.
26231 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
26232 is an alias of -floop-interchange and that it requires the
26233 Graphite infrastructure.
26234 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
26235 flag_loop_interchange based on the value of flag_tree_loop_linear.
26237 2011-01-31 Jakub Jelinek <jakub@redhat.com>
26238 Richard Guenther <rguenther@suse.de>
26240 PR tree-optimization/47538
26241 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
26242 type instead of r1type, except for comparisons. For right
26243 shifts and comparisons punt if there are mismatches in
26244 sizetype vs. non-sizetype types.
26246 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26248 * doc/sourcebuild.texi (Effective-Target Keywords): Document
26251 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26253 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
26255 * configure: Regenerate.
26257 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26259 * configure.ac (gcc_cv_ld_static_option): Define.
26260 (gcc_cv_ld_dynamic_option): Define.
26261 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
26263 (HAVE_LD_STATIC_DYNAMIC): Update message.
26264 (LD_STATIC_OPTION): Define.
26265 (LD_DYNAMIC_OPTION): Define.
26266 * configure: Regenerate.
26267 * config.in: Regenerate.
26268 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
26269 HAVE_LD_STATIC_DYNAMIC]: Use them.
26271 2011-01-31 Nick Clifton <nickc@redhat.com>
26273 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
26274 registers inside interrupt handlers if the handler is not a leaf
26277 2011-01-31 Nick Clifton <nickc@redhat.com>
26279 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
26280 reg_renumber returning an INVALID_REGNUM.
26282 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
26285 * doc/install.texi: Document host options discarded when cross
26286 configuring target libraries.
26288 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
26291 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
26294 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
26296 (no_real_insns_p, schedule_block, set_priorities): Drop special
26297 treatment of boundary debug insns.
26298 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
26299 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
26300 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
26301 (BOUNDARY_DEBUG_INSN_P): Likewise.
26302 (SCHEDULE_DEBUG_INSN_P): Likewise.
26303 * sched-rgn.c (init_ready_list): Drop special treatment of
26304 boundary debug insns.
26305 * final.c (rest_of_clean-state): Clear notes' BB.
26307 2011-01-31 Alan Modra <amodra@gmail.com>
26309 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
26310 toc relative expressions as we do in print_operand_address.
26312 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
26314 * doc/extend.texi: Follow spelling conventions.
26315 * doc/invoke.texi: Fix a typo.
26317 2011-01-30 Joseph Myers <joseph@codesourcery.com>
26319 * config/hpux11.opt: New.
26320 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
26321 ia64*-*-hpux*): Use hpux11.opt.
26323 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
26325 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
26328 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
26330 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
26333 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
26335 * doc/install.texi (Binaries): Remove outdated reference for
26336 Motorola 68HC11/68HC12 downloads.
26338 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
26340 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
26343 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
26346 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
26349 2011-01-28 Ahmad Sharif <asharif@google.com>
26351 * value-prof.c (check_counter): Corrected error message.
26353 2011-01-29 Jie Zhang <jie@codesourcery.com>
26355 * config/arm/arm.c (arm_legitimize_reload_address): New.
26356 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
26357 arm_legitimize_reload_address.
26358 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
26360 2011-01-28 Ian Lance Taylor <iant@google.com>
26362 * godump.c (go_define): Ignore macros whose definitions include
26363 two adjacent operands.
26365 2011-01-28 Jakub Jelinek <jakub@redhat.com>
26368 * varasm.c (force_const_mem): Store copy of x in desc->constant
26369 instead of x itself.
26370 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
26371 itself into REG_EQUAL note.
26373 2011-01-28 Joseph Myers <joseph@codesourcery.com>
26375 * config/freebsd.opt (posix, rdynamic): New Driver options.
26377 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26379 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
26380 -Bstatic/-Bdynamic.
26381 * configure: Regenerate.
26383 2011-01-27 Joseph Myers <joseph@codesourcery.com>
26385 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
26386 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
26388 2011-01-27 Anatoly Sokolov <aesok@post.ru>
26390 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
26391 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
26392 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
26393 (s390_preferred_reload_class): Make static. Change return and
26394 'rclass' argument type to reg_class_t.
26396 2011-01-27 Jan Hubicka <jh@suse.cz>
26398 PR middle-end/46949
26399 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
26400 (process_function_and_variable_attributes): Check defined weakrefs.
26402 2011-01-27 Martin Jambor <mjambor@suse.cz>
26404 PR tree-optimization/47228
26405 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
26406 build_ref_for_offset.
26408 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26410 * config/spu/spu-elf.h (ASM_SPEC): Remove.
26412 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
26414 PR rtl-optimization/46856
26415 * postreload.c (reload_combine_recognize_const_pattern): Do not
26416 separate cc0 setter and user on cc0 targets.
26418 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
26421 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
26422 passed a VOID_TYPE expression, immediately emit an error and
26423 return error_mark_node.
26425 2011-01-26 Jeff Law <law@redhat.com>
26427 PR rtl-optimization/47464
26428 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
26429 rather than may_trap_p as needed.
26431 2011-01-26 DJ Delorie <dj@redhat.com>
26433 PR rtl-optimization/46878
26434 * combine.c (insn_a_feeds_b): Check for the implicit cc0
26435 setter/user dependency as well.
26437 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
26439 PR rtl-optimization/44469
26440 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
26441 after removing trivially dead basic blocks.
26443 2011-01-26 Joseph Myers <joseph@codesourcery.com>
26445 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
26446 * config/frv/frv.h (LINK_SPEC): Likewise.
26447 * config/i386/netware.h (LINK_SPEC): Likewise.
26448 * config/m68k/linux.h (ASM_SPEC): Likewise.
26449 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
26450 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
26451 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26452 * config/sparc/linux.h (ASM_SPEC): Likewise.
26453 * config/sparc/linux64.h (ASM_SPEC): Likewise.
26454 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26456 2011-01-26 Joseph Myers <joseph@codesourcery.com>
26458 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
26459 * config/frv/frv.h (ASM_SPEC): Likewise.
26460 * config/m68k/linux.h (ASM_SPEC): Likewise.
26461 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
26462 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
26463 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26464 * config/sparc/linux.h (ASM_SPEC): Likewise.
26465 * config/sparc/linux64.h (ASM_SPEC): Likewise.
26466 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26468 2011-01-26 Joseph Myers <joseph@codesourcery.com>
26470 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
26471 * config/frv/frv.h (LINK_SPEC): Likewise.
26472 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
26474 2011-01-26 Joseph Myers <joseph@codesourcery.com>
26476 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
26477 * config/frv/frv.h (ASM_SPEC): Likewise.
26478 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
26479 * config/m68k/linux.h (ASM_SPEC): Likewise.
26480 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
26481 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
26482 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26483 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
26484 * config/sparc/linux.h (ASM_SPEC): Likewise.
26485 * config/sparc/linux64.h (ASM_SPEC): Likewise.
26486 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26487 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
26489 2011-01-26 Steve Ellcey <sje@cup.hp.com>
26492 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
26494 (vec_extract_evenodd_help): Ditto.
26495 (vec_extract_evenv4hi): Ditto.
26496 (vec_extract_oddv4hi): Ditto.
26497 (vec_interleave_lowv2si): Ditto.
26498 (vec_interleave_highv2si): Ditto.
26499 (vec_extract_evenv2si): Ditto.
26500 (vec_extract_oddv2si: Ditto.
26501 (vec_pack_trunc_v2si): Ditto.
26503 2011-01-22 Jan Hubicka <jh@suse.cz>
26506 * cgraph.h (cgraph_local_info): New field can_change_signature.
26507 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
26508 signature can change.
26509 (ipcp_estimate_growth): Call sequence simplify only if calle signature
26511 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
26512 (cgraph_function_versioning): We can not change signature of functions
26513 that don't allow that.
26514 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
26515 (lto_input_node): Likewise.
26516 * ipa-inline.c (compute_inline_parameters): Compute
26517 local.can_change_signature.
26518 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
26519 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
26520 functions that can not change signature.
26521 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
26522 init_cumulative_args): Do not use local calling conventions
26523 for functions that can not change signature.
26525 2011-01-22 Jan Hubicka <jh@suse.cz>
26527 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
26529 2011-01-26 Richard Guenther <rguenther@suse.de>
26531 PR tree-optimization/47190
26532 * cgraphunit.c (process_common_attributes): New function.
26533 (process_function_and_variable_attributes): Use it.
26535 2011-01-26 Richard Guenther <rguenther@suse.de>
26538 * cgraphbuild.c (record_eh_tables): Record reference to personality
26541 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
26544 * sel-sched.c (moveup_expr): Don't let debug insns prevent
26545 non-debug insns from moving up.
26547 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
26550 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
26551 t-dlldir{,-x} fragment for build and add it to tmake_file.
26552 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
26553 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
26554 * config/i386/t-dlldir: New file.
26555 (SHLIB_DLLDIR): Define.
26556 * config/i386/t-dlldir-x: New file.
26557 (SHLIB_DLLDIR): Define.
26558 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
26559 (SHLIB_INSTALL): Use it.
26561 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
26564 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
26565 lower bound of the allowed Thumb-2 coprocessor load/store
26566 index range to -256. Add explaining comment.
26568 2011-01-25 Ian Lance Taylor <iant@google.com>
26570 * godump.c (go_define): Improve lexing of macro expansion to only
26571 accept expressions which match Go spec.
26573 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
26576 * tree.c (handle_dll_attribute): Handle it.
26577 * doc/extend.texi (@item dllexport): Mention it.
26578 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
26580 2011-01-25 Ian Lance Taylor <iant@google.com>
26582 PR tree-optimization/26854
26583 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
26584 (decl_jump_unsafe): Move higher in file, with no other change.
26585 (bind): Set has_jump_unsafe_decl if appropriate.
26586 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
26587 (check_earlier_gotos): Likewise.
26588 (c_check_switch_jump_warnings): Likewise.
26590 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
26592 * doc/invoke.texi (Warning Options): Add missing hyphen.
26593 (-fprofile-dir): Minor grammatical fixes.
26594 (-fbranch-probabilities): Likewise.
26596 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
26600 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
26602 (no_real_insns_p, schedule_block, set_priorities): Drop special
26603 treatment of boundary debug insns.
26604 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
26605 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
26606 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
26607 (BOUNDARY_DEBUG_INSN_P): Likewise.
26608 (SCHEDULE_DEBUG_INSN_P): Likewise.
26609 * sched-rgn.c (init_ready_list): Drop special treatment of
26610 boundary debug insns.
26611 * final.c (rest_of_clean-state): Clear notes' BB.
26613 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26615 * Makefile.in (LAMBDA_H): Removed.
26616 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
26617 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
26618 lambda-trans.o, and tree-loop-linear.o.
26619 (lto-symtab.o): Remove dependence on LAMBDA_H.
26620 (tree-loop-linear.o): Remove rule.
26621 (lambda-mat.o): Same.
26622 (lambda-trans.o): Same.
26623 (lambda-code.o): Same.
26624 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
26625 (tree-vect-slp.o): Same.
26626 * hwint.h (gcd): Moved here.
26627 (least_common_multiple): Same.
26628 * lambda-code.c: Removed.
26629 * lambda-mat.c: Removed.
26630 * lambda-trans.c: Removed.
26631 * lambda.h: Removed.
26632 * tree-loop-linear.c: Removed.
26633 * lto-symtab.c: Do not include lambda.h.
26634 * omega.c (gcd): Removed.
26635 * passes.c (init_optimization_passes): Remove pass_linear_transform.
26636 * tree-data-ref.c (print_lambda_vector): Moved here.
26637 (lambda_vector_copy): Same.
26638 (lambda_matrix_copy): Same.
26639 (lambda_matrix_id): Same.
26640 (lambda_vector_first_nz): Same.
26641 (lambda_matrix_row_add): Same.
26642 (lambda_matrix_row_exchange): Same.
26643 (lambda_vector_mult_const): Same.
26644 (lambda_vector_negate): Same.
26645 (lambda_matrix_row_negate): Same.
26646 (lambda_vector_equal): Same.
26647 (lambda_matrix_right_hermite): Same.
26648 * tree-data-ref.h: Do not include lambda.h.
26649 (lambda_vector): Moved here.
26650 (lambda_matrix): Same.
26651 (dependence_level): Same.
26652 (lambda_transform_legal_p): Removed declaration.
26653 (lambda_collect_parameters): Same.
26654 (lambda_compute_access_matrices): Same.
26655 (lambda_vector_gcd): Same.
26656 (lambda_vector_new): Same.
26657 (lambda_vector_clear): Same.
26658 (lambda_vector_lexico_pos): Same.
26659 (lambda_vector_zerop): Same.
26660 (lambda_matrix_new): Same.
26661 * tree-flow.h (least_common_multiple): Removed declaration.
26662 * tree-parloops.c (lambda_trans_matrix): Moved here.
26663 (LTM_MATRIX): Same.
26664 (LTM_ROWSIZE): Same.
26665 (LTM_COLSIZE): Same.
26666 (LTM_DENOMINATOR): Same.
26667 (lambda_trans_matrix_new): Same.
26668 (lambda_matrix_vector_mult): Same.
26669 (lambda_transform_legal_p): Same.
26670 * tree-pass.h (pass_linear_transform): Removed declaration.
26671 * tree-ssa-loop.c (tree_linear_transform): Removed.
26672 (gate_tree_linear_transform): Removed.
26673 (pass_linear_transform): Removed.
26674 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
26675 flag_loop_interchange.
26677 2011-01-25 Jakub Jelinek <jakub@redhat.com>
26679 PR tree-optimization/47265
26680 PR tree-optimization/47443
26681 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
26682 if name still has some uses.
26684 2011-01-25 Martin Jambor <mjambor@suse.cz>
26686 PR tree-optimization/47382
26687 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
26688 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
26690 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
26692 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
26693 sjlj_except_unwind_info.
26695 2011-01-25 Richard Guenther <rguenther@suse.de>
26697 PR tree-optimization/47426
26698 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
26699 visible functions results escape.
26701 2011-01-25 Jakub Jelinek <jakub@redhat.com>
26704 * config/arm/arm.c (any_sibcall_uses_r3): New function.
26705 (arm_get_frame_offsets): Use it.
26707 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26708 Jakub Jelinek <jakub@redhat.com>
26710 PR tree-optimization/47271
26711 * tree-if-conv.c (bb_postdominates_preds): New.
26712 (if_convertible_bb_p): Call bb_postdominates_preds.
26713 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
26714 (predicate_scalar_phi): Call bb_postdominates_preds.
26716 2011-01-25 Nick Clifton <nickc@redhat.com>
26718 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
26719 * config/rx/rx.c (rx_function_value): Likewise.
26720 (rx_promote_function_mode): Likewise.
26721 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
26722 in order to make it legitimate.
26723 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
26724 make sure that the first operand is the same as the result register.
26725 (addsi3_unspec): Delete.
26726 (subdi3): Do not accept immediate operands.
26727 (subdi3_internal): Likewise.
26729 2011-01-25 Jeff Law <law@redhat.com>
26731 PR rtl-optimization/37273
26732 * ira-costs.c (scan_one_insn): Detect constants living in memory and
26733 handle them like argument loads from stack slots. Do not double
26734 count memory for memory constants and argument loads from stack slots.
26736 2011-01-25 Jakub Jelinek <jakub@redhat.com>
26738 PR tree-optimization/47427
26739 PR tree-optimization/47428
26740 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
26741 coalesce if the new root var would be TREE_READONLY.
26743 2011-01-25 Richard Guenther <rguenther@suse.de>
26745 PR middle-end/47414
26746 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
26747 correct type for TBAA.
26749 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26751 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
26752 (close_phi_written_to_memory): Call for_each_index with
26753 dr_indices_valid_in_loop.
26755 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26757 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
26758 when it is initialized.
26760 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26762 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
26763 call to graphite_find_data_references_in_stmt.
26764 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
26765 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
26766 call to graphite_find_data_references_in_stmt.
26767 (analyze_drs_in_stmts): Same.
26768 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
26769 in which the scalar analysis of indices is performed.
26770 (create_data_ref): Same. Update call to dr_analyze_indices.
26771 (find_data_references_in_stmt): Update call to create_data_ref.
26772 (graphite_find_data_references_in_stmt): Same.
26773 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
26775 (create_data_ref): Same.
26776 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
26777 call to create_data_ref.
26779 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26781 * graphite-sese-to-poly.c (build_poly_scop): Move
26782 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
26784 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26786 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
26787 VAR_DECL, PARM_DECL, and RESULT_DECL.
26789 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26791 * graphite-dependences.c (reduction_dr_1): Allow several reductions
26792 in a reduction PBB.
26793 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
26794 that have already been marked as PBB_IS_REDUCTION.
26796 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26798 * graphite-scop-detection.c (same_close_phi_node): New.
26799 (remove_duplicate_close_phi): New.
26800 (make_close_phi_nodes_unique): New.
26801 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
26803 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26805 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
26806 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
26807 of both data references to be the same.
26809 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26811 * graphite-dependences.c (build_lexicographical_constraint): Remove
26812 the gdim parameter.
26813 (build_lexicographical_constraint): Adjust call to
26814 ppl_powerset_is_empty.
26815 (dependence_polyhedron): Same.
26816 (graphite_legal_transform_dr): Same.
26817 (graphite_carried_dependence_level_k): Same.
26818 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
26820 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
26822 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26824 * graphite-sese-to-poly.c
26825 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
26826 (close_phi_written_to_memory): New.
26827 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
26830 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26832 * doc/install.texi: Update the expected version number of PPL to 0.11.
26833 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
26834 #if PPL_VERSION_MINOR < 11.
26836 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26838 * graphite-dependences.c: Include graphite-cloog-util.h.
26839 (new_poly_ddr): Inlined into dependence_polyhedron.
26840 (free_poly_ddr): Moved close by new_poly_ddr.
26841 (dependence_polyhedron_1): Renamed dependence_polyhedron.
26842 Early return NULL when ppl_powerset_is_empty returns true.
26843 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
26844 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
26845 (graphite_legal_transform_dr): Call new_poly_ddr.
26846 (graphite_carried_dependence_level_k): Same.
26847 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
26848 (dot_transformed_deps_stmt_1): Removed.
26849 (dot_deps_stmt_1): Call dot_deps_stmt_2.
26850 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
26851 (dot_deps_1): Call dot_deps_2.
26852 * Makefile.in (graphite-dependences.o): Add missing dependence on
26853 graphite-cloog-util.h.
26855 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26857 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
26858 (build_lexicographical_constraint): Same.
26859 (dependence_polyhedron_1): Same.
26860 (graphite_legal_transform_dr): Same.
26861 (graphite_carried_dependence_level_k): Same.
26862 * graphite-ppl.c (ppl_powerset_is_empty): New.
26863 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
26864 * tree-data-ref.c (dump_data_reference): Print the basic block index.
26866 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26868 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
26869 the "a followed by b" relation and document it.
26871 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26873 * graphite-dependences.c (build_lexicographical_constraint): Stop the
26874 iteration when the bag of constraints is empty.
26876 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26878 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
26880 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26882 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
26883 nest and two loop depths as parameters.
26884 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
26885 lst_perfect_nestify.
26887 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26889 * graphite-dependences.c (print_pddr): Call
26890 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
26892 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26894 * graphite-ppl.c (debug_gmp_value): New.
26895 * graphite-ppl.h (debug_gmp_value): Declared.
26897 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
26899 * doc/install.texi: Document availability of cloog-0.16.
26901 2011-01-25 Vladimir Kargov <kargov@gmail.com>
26903 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
26904 invalid postdominance info.
26906 2011-01-24 Jan Hubicka <jh@suse.cz>
26909 * doc/extend.texi (weak pragma): Drop claim that it must
26910 appear before definition.
26911 * varasm.c (merge_weak, declare_weak): Only sanity check
26912 that DECL is not output at a time it is declared weak.
26914 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
26916 * machmode.def: Fixed comments.
26918 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
26920 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
26922 2011-01-24 Paul Koning <ni1d@arrl.net>
26924 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
26927 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
26930 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
26931 (block_info): Add scanned and prev.
26932 (move_or_delete_vzeroupper_2): Return if the basic block
26933 has been scanned and the upper 128bit state is unchanged
26934 from the last scan.
26935 (move_or_delete_vzeroupper_1): Return true if the exit
26937 (move_or_delete_vzeroupper): Visit basic blocks using the
26938 work-list based algorithm based on vt_find_locations in
26941 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
26943 2011-01-24 Nick Clifton <nickc@redhat.com>
26945 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
26946 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
26947 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
26948 then define __v850e1__.
26949 * doc/invoke.texi: Document -mv850es.
26951 2011-01-24 Richard Henderson <rth@redhat.com>
26953 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
26954 compound unordered comparisons.
26955 * config/rx/rx.c (rx_split_fp_compare): Remove.
26956 * config/rx/rx-protos.h: Update.
26957 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
26958 (cbranchsf4): Don't call rx_split_fp_compare.
26959 (*cbranchsf4): Use rx_split_cbranch.
26960 (*cmpsf): Don't accept "i" constraint.
26961 (*conditional_branch): Only valid after reload.
26962 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
26964 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
26967 * config/rs6000/altivec.md (vector constant splitters): Add
26968 support for creating vector single precision constants if -mvsx is
26969 used and we would create the constant using Altivec primitives.
26971 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
26972 Richard Sandiford <rdsandiford@googlemail.com>
26974 PR rtl-optimization/47166
26975 * reload1.c (emit_reload_insns): Disable the spill_reg_store
26976 mechanism for PRE_MODIFY and POST_MODIFY.
26977 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
26980 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
26982 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
26984 2011-01-22 Jan Hubicka <jh@suse.cz>
26987 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
26989 2011-01-22 Jan Hubicka <jh@suse.cz>
26991 PR tree-optimization/43884
26993 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
26994 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
26996 2011-01-22 Anatoly Sokolov <aesok@post.ru>
26998 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
26999 * config/s390/s390.c (s390_register_move_cost,
27000 s390_memory_move_cost): New.
27001 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
27003 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27005 PR middle-end/47401
27006 * except.c (sjlj_assign_call_site_values): Move setting the
27007 crtl->uses_eh_lsda flag to ...
27008 (sjlj_mark_call_sites): ... here.
27009 (sjlj_emit_function_enter): Support NULL dispatch label.
27010 (sjlj_build_landing_pads): In a function with no landing pads
27011 that still has must-not-throw regions, generate code to register
27012 a personality function with empty LSDA.
27014 2011-01-21 Richard Henderson <rth@redhat.com>
27016 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
27018 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
27020 * compare-elim.c: New file.
27021 * Makefile.in (OBJS-common): Add it.
27022 (compare-elim.o): New.
27023 * common.opt (fcompare-elim): New.
27024 * opts.c (default_options_table): Add OPT_fcompare_elim.
27025 * tree-pass.h (pass_compare_elim_after_reload): New.
27026 * passes.c (init_optimization_passes): Add it.
27027 * recog.h: Protect against re-inclusion.
27028 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
27029 * doc/invoke.texi (-fcompare-elim): Document it.
27030 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
27031 * doc/tm.texi: Rebuild.
27033 2011-01-22 Nick Clifton <nickc@redhat.com>
27035 * config/rx/rx.md (cstoresf4): Pass comparison operator to
27036 rx_split_fp_compare.
27038 2011-01-22 Nick Clifton <nickc@redhat.com>
27040 * config/rx/rx.md (UNSPEC_CONST): New.
27041 (deallocate_and_return): Wrap the amount popped off the stack in
27042 an UNSPEC_CONST in order to stop it being rejected by
27043 -mmax-constant-size.
27044 (pop_and_return): Add a "(return)" rtx.
27045 (call): Drop the immediate operand.
27046 (call_internal): Likewise.
27047 (call_value): Likewise.
27048 (call_value_internal): Likewise.
27049 (sibcall_internal): Likewise.
27050 (sibcall_value_internal): Likewise.
27051 (sibcall): Likewise. Generate an explicit call using
27053 (sibcall_value): Likewise.
27054 (mov<>): FAIL if a constant operand is not legitimate.
27055 (addsi3_unpsec): New pattern.
27057 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
27058 (ok_for_max_constant): New function.
27059 (gen_safe_add): New function.
27060 (rx_expand_prologue): Use gen_safe_add.
27061 (rx_expand_epilogue): Likewise.
27062 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
27065 2011-01-21 Jeff Law <law@redhat.com>
27067 PR tree-optimization/47053
27068 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
27069 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
27070 statements are deleted.
27071 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
27072 is nonempty, then purge dead edges and cleanup the CFG.
27074 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
27077 Temporarily revert:
27078 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
27080 * tree-dfa.c (create_var_ann): Mark variable as used.
27082 2011-01-21 Jakub Jelinek <jakub@redhat.com>
27084 PR middle-end/45566
27085 * except.c (convert_to_eh_region_ranges): Emit queued no-region
27086 notes from other section in hot/cold partitioning even if
27087 last_action is -3. Increment call_site_base.
27089 PR rtl-optimization/47366
27090 * fwprop.c (forward_propagate_into): Return bool. If
27091 any changes are made, -fnon-call-exceptions is used and
27092 REG_EH_REGION note is present, call purge_dead_edges
27093 and return true if it purged anything.
27094 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
27095 any EH edges were purged.
27097 2011-01-21 Jeff Law <law@redhat.com>
27099 PR rtl-optimization/41619
27100 * caller-save.c (setup_save_areas): Break out code to determine
27101 which hard regs are live across calls by examining the reload chains
27102 so that it is always used.
27103 Eliminate code which checked REG_N_CALLS_CROSSED.
27105 2011-01-21 Jakub Jelinek <jakub@redhat.com>
27107 PR tree-optimization/47355
27108 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
27109 NOP has non-debug uses beyond PHIs in new_bb.
27111 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
27114 * cfgexpand.c (account_used_vars_for_block): Only account vars
27115 that are annotated as used.
27116 (estimated_stack_frame_size): Don't set TREE_USED.
27117 * tree-dfa.c (create_var_ann): Mark variable as used.
27119 2011-01-21 Richard Guenther <rguenther@suse.de>
27121 PR middle-end/47395
27122 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
27124 2011-01-21 Richard Guenther <rguenther@suse.de>
27126 PR tree-optimization/47365
27127 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
27128 (vn_reference_lookup_pieces): Adjust.
27129 (vn_reference_lookup): Likewise.
27130 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
27131 (vn_reference_lookup_3): Only look through kills if in
27132 VN_WALKREWRITE mode.
27133 (vn_reference_lookup_pieces): Adjust.
27134 (vn_reference_lookup): Likewise.
27135 (visit_reference_op_load): Likewise.
27136 (visit_reference_op_store): Likewise.
27137 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
27138 (compute_avail): Likewise.
27139 (eliminate): Likewise.
27141 2011-01-21 Jakub Jelinek <jakub@redhat.com>
27143 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
27144 DECL_IGNORED_P non-reg vars if they are used.
27146 PR tree-optimization/47391
27147 * varpool.c (const_value_known_p): Return false if
27150 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
27153 * config/i386/i386.c (ix86_local_alignment): Handle
27154 case for va_list_type_node is nil.
27155 (ix86_canonical_va_list_type): Likewise.
27157 2011-01-21 Alan Modra <amodra@gmail.com>
27159 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
27160 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
27162 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27164 * config/arm/arm.md (define_attr type): Rename f_load
27165 and f_store to f_fpa_load and f_fpa_store. Update.
27166 (write_conflict): Deal with rename fallout.
27167 (*push_fp_multi): Likewise.
27168 * config/arm/fpa.md (f_load): Use f_fpa_load.
27169 (f_store): Use f_fpa_store.
27170 (*movsf_fpa): Likewise.
27171 (*movdf_fpa): Likewise.
27172 (*movxf_fpa): Likewise.
27173 (*thumb2_movsf_fpa): Likewise.
27174 (*thumb2_movdf_fpa): Likewise.
27175 (*thumb2_movxf_fpa): Likewise.
27176 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
27177 f_loadd and f_stored.
27178 (*thumb2_movdi_vfp): Likewise.
27179 (*thumb2_movsf_vfp): Fix attribute to f_loads.
27180 (*thumb2_movsi_vfp): Likewise.
27181 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
27182 Use f_loads instead of f_load.
27183 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
27185 2011-01-20 Anatoly Sokolov <aesok@post.ru>
27187 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
27188 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
27189 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27190 (xtensa_mode_dependent_address_p): New function.
27191 (constantpool_address_p): Make static. Change return type to bool.
27192 Change argument type to const_rtx. Use CONST_INT_P predicate.
27194 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
27197 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
27199 2011-01-20 Jakub Jelinek <jakub@redhat.com>
27202 * cfgexpand.c (expand_debug_expr): Instead of generating
27203 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
27206 2011-01-20 Richard Guenther <rguenther@suse.de>
27208 PR middle-end/47370
27209 * tree-inline.c (remap_gimple_op_r): Recurse manually for
27210 the pointer operand of MEM_REFs.
27212 2011-01-20 Jakub Jelinek <jakub@redhat.com>
27214 PR tree-optimization/46130
27215 * ipa-split.c (consider_split): If return_bb contains non-virtual
27216 PHIs other than for retval or if split_function would not adjust it,
27219 2011-01-20 Richard Guenther <rguenther@suse.de>
27221 PR tree-optimization/47167
27222 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
27223 Revert previous change, only avoid enumeral type changes.
27225 2011-01-19 Mike Stump <mikestump@comcast.net>
27227 * doc/tm.texi.in (BRANCH_COST): Englishify.
27228 * doc/tm.texi (BRANCH_COST): Likewise.
27230 2011-01-19 Dodji Seketeli <dodji@redhat.com>
27233 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
27234 (gen_scheduled_generic_parms_dies): New functions.
27235 (gen_struct_or_union_type_die): Schedule template parameters DIEs
27236 generation for the end of CU compilation.
27237 (dwarf2out_finish): Generate template parameters DIEs here.
27239 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
27242 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
27243 debug bind stmt on merge edges.
27245 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
27249 * function.c (instantiate_expr): Instantiate incoming rtl of
27250 implicit arguments, and recurse on VALUE_EXPRs.
27251 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
27252 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
27254 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
27256 * c-parser.c (c_parser_for_statement): Initialize
27257 collection_expression.
27259 2011-01-19 Joseph Myers <joseph@codesourcery.com>
27261 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
27263 2011-01-19 Joseph Myers <joseph@codesourcery.com>
27265 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
27266 (LINK_SHLIB_SPEC): Don't use %(link_path).
27267 (SUBTARGET_EXTRA_SPECS): Remove link_path.
27269 2011-01-19 Joseph Myers <joseph@codesourcery.com>
27271 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
27272 (NO_SHARED_LIB_SUPPORT): Remove.
27273 (LINK_SHLIB_SPEC): Remove one conditional definition.
27275 2011-01-19 Joseph Myers <joseph@codesourcery.com>
27277 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
27279 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
27280 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
27281 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
27282 %{call_shared} and conditionals on these options not being passed.
27283 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
27286 2011-01-19 Jakub Jelinek <jakub@redhat.com>
27288 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
27291 * ipa-split.c: Spelling fixes.
27293 2011-01-19 Richard Henderson <rth@redhat.com>
27295 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
27296 (*mulsi3): Likewise.
27298 * longlong.h [__mn10300__] (count_leading_zeros): New.
27299 [__mn10300__] (umul_ppmm, smul_ppmm): New.
27300 [__mn10300__] (add_ssaaaa, subddmmss): New.
27301 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
27302 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
27304 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27306 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
27308 2011-01-19 Richard Henderson <rth@redhat.com>
27310 * config/mn10300/mn10300.md (addsi3_flags): New.
27311 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
27312 (subsi3_flags, subc_internal, subdi3): New.
27313 (subdi3_internal, *subdi3_degenerate): New.
27314 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
27316 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
27317 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
27318 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
27319 * config/mn10300/mn10300-protos.h: Update.
27320 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
27321 (return_ret): Likewise. Rename from return_internal_regs.
27322 (return_internal): Remove.
27324 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
27325 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
27326 (mn10300_legitimate_constant_p): Likewise.
27327 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
27328 (mn10300_frame_size): New.
27329 (mn10300_expand_prologue): Use it.
27330 (mn10300_expand_epilogue): Likewise.
27331 (mn10300_initial_offset): Likewise.
27332 * config/mn10300/mn10300-protos.h: Update.
27333 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
27334 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
27335 (prologue, epilogue, return_internal): Tidy output code.
27336 (mn10300_store_multiple_operation, return): Likewise.
27337 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
27338 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
27339 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
27340 (load_pic, am33_load_pic): New.
27341 (mn10300_load_pic0, mn10300_load_pic1): New.
27343 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
27344 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
27345 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
27346 (cc_flags_for_mode, cc_flags_for_code): New.
27347 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
27348 overflow flag is not valid. Validate that the flags we need
27349 for the comparison are valid.
27350 (mn10300_output_cmp): Remove.
27351 (mn10300_output_add): New.
27352 (mn10300_select_cc_mode): Use cc_flags_for_code.
27353 (mn10300_split_cbranch): New.
27354 (mn10300_match_ccmode): New.
27355 (mn10300_split_and_operand_count): New.
27356 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
27358 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
27359 (addsi3): ... here. Use mn10300_output_add.
27360 (*addsi3_flags): New.
27361 (*am33_subsi3, *mn10300_subsi3): Merge...
27362 (subsi3): ... here. Use attribute isa.
27363 (*subsi3_flags): New.
27364 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
27366 (*am33_andsi3, *mn10300_andsi3): Merge...
27367 (andsi3): ... here.
27368 (*andsi3_flags): New.
27369 (andsi3 splitters): New.
27370 (*am33_iorsi3, *mn10300_iorsi3): Merge...
27371 (iorsi3): ... here.
27372 (*iorsi3_flags): New.
27373 (*am33_xorsi3, *mn10300_xorsi3): Merge...
27374 (xorsi3): ... here.
27375 (*xorsi3_flags): New.
27376 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
27377 (one_cmplsi2): ... here.
27378 (*one_cmplsi2_flags): New.
27379 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
27380 instead of "dax" in constraints. Use mn10300_split_cbranch.
27381 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
27382 use matching constraints to eliminate a self-comparison.
27383 (*integer_conditional_branch): Rename from integer_conditional_branch.
27384 Use int_mode_flags to match CC_REG.
27385 (*cbranchsi4_btst, *btstsi): New.
27386 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
27387 mn10300_split_cbranch.
27388 (*am33_cmpsf): Rename from am33_cmpsf.
27389 (*float_conditional_branch): Rename from float_conditional_branch.
27390 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
27391 (zero_extendqisi2): ... here.
27392 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
27393 (zero_extendhisi2): ... here.
27394 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
27395 (extendqisi2): ... here.
27396 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
27397 (extendhisi2): ... here.
27398 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
27399 (ashlsi3): ... here.
27400 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
27401 (lshrsi3): ... here.
27402 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
27403 (ashrsi3): ... here.
27404 (consecutive add peephole): Remove.
27405 * config/mn10300/predicates.md (label_ref_operand): New.
27406 (int_mode_flags): New.
27407 (CCZN_comparison_operator): New.
27409 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
27410 (throughput_42_latency_43): New reservation.
27411 (mulsidi3, umulsidi3): New expanders.
27412 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
27413 the MDR register to allocation; separately allocate the low and
27414 high parts of the DImode result.
27415 (umulsidi3_internal): Similarly.
27416 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
27417 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
27418 (udivsi3, umodsi3): Remove.
27419 (udivmodsi4, divmodsi4): New expanders.
27420 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
27421 (*divmodsi4): Simiarly.
27422 (ext_internal): New.
27424 * config/mn10300/constraints.md ("z"): New constraint.
27425 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
27426 (FIXED_REGISTERS): Don't fix MDR.
27427 (CALL_USED_REGSITERS): Reformat nicely.
27428 (REG_ALLOC_ORDER): Add MDR.
27429 (enum regclass): Add MDR_REGS.
27430 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
27431 (IRA_COVER_CLASSES): Add MDR_REGS.
27432 (REGNO_REG_CLASS): Handle MDR_REG.
27433 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
27434 (mn10300_register_move_cost): Likewise.
27435 * config/mn10300/mn10300.md (MDR_REG): New.
27436 (*movsi_internal): Handle moves to/from MDR_REGS.
27438 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
27440 (mn10300_secondary_reload): Tidy combination reload classes.
27441 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
27442 addresses for AM33. Allow symbolic offsets for reg+imm.
27443 (mn10300_regno_in_class_p): New.
27444 (mn10300_legitimize_reload_address): New.
27445 * config/mn10300/mn10300.h (enum reg_class): Remove
27446 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
27447 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
27448 SP_OR_GENERAL_REGS.
27449 (REG_CLASS_NAMES): Update to match.
27450 (REG_CLASS_CONTENTS): Likewise.
27451 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
27452 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
27453 (REGNO_IN_RANGE_P): Remove.
27454 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
27455 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
27456 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
27457 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
27458 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
27459 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
27460 (REGNO_GENERAL_P): New.
27461 (HAVE_POST_MODIFY_DISP): New.
27462 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
27463 (LEGITIMIZE_RELOAD_ADDRESS): New.
27464 * config/mn10300/mn10300-protos.h: Update.
27466 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
27467 DATA_REGS for AM33 stack-pointer destination.
27468 (mn10300_preferred_output_reload_class): Likewise.
27469 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
27470 into a form appropriate for ...
27471 (TARGET_SECONDARY_RELOAD): New.
27472 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
27473 * config/mn10300/mn10300-protos.h: Update.
27474 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
27475 reload_insi; use the "A" constraint for the scratch; handle AM33
27476 moves of sp to non-address registers.
27478 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
27479 (*movqi_internal): ... here.
27480 (*am33_movhi, *mn10300_movhi): Merge into...
27481 (*movhi_internal): ... here.
27482 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
27483 as the source/destination of moves from/to SP.
27484 (movsf): Only allow for AM33-2.
27485 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
27486 any integer constant constraint. Only allow for AM33-2. Tidy
27487 all of the alternative outputs.
27488 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
27489 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
27491 (udivsi3, umodsi3): New patterns for MN103 only.
27493 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
27495 * doc/tm.texi.in: Spell out that a lack of register class unions
27497 * doc/tm.texi: Regenerate.
27499 2011-01-19 Jakub Jelinek <jakub@redhat.com>
27501 PR rtl-optimization/47337
27502 * dce.c (check_argument_store): New function.
27503 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
27505 PR tree-optimization/47290
27506 * tree-eh.c (infinite_empty_loop_p): New function.
27507 (cleanup_empty_eh): Use it.
27509 2011-01-18 Steve Ellcey <sje@cup.hp.com>
27512 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
27513 (a64_expand_widen_sum): Ditto.
27514 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
27515 (vec_extract_evenodd_help): Ditto.
27516 (vec_extract_evenv4hi): Ditto.
27517 (vec_extract_oddv4hi): Ditto.
27518 (vec_extract_evenv2si): Ditto.
27519 (vec_extract_oddv2si): Ditto.
27520 (vec_extract_evenv2sf): Ditto.
27521 (vec_extract_oddv2sf): Ditto.
27522 (vec_pack_trunc_v4hi: Ditto.
27523 (vec_pack_trunc_v2si): Ditto.
27524 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
27525 (vec_interleave_highv8qi): Ditto.
27527 (vec_extract_oddv8qi): Ditto.
27528 (vec_interleave_lowv4hi): Ditto.
27529 (vec_interleave_highv4hi): Ditto.
27530 (vec_interleave_lowv2si): Ditto.
27531 (vec_interleave_highv2si): Ditto.
27533 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27535 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
27536 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
27537 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
27538 (pa_c_mode_for_suffix): New.
27539 (TARGET_EXPAND_BUILTIN): Define.
27540 (TARGET_C_MODE_FOR_SUFFIX): Define.
27541 (pa_builtins): Define.
27542 (pa_init_builtins): Register __float128 type and init new support
27544 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
27545 * config/pa/quadlib.c (_U_Qfcopysign): New.
27547 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
27549 PR middle-end/46894
27550 * explow.c (allocate_dynamic_stack_space): Do not assume more than
27551 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
27554 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27556 PR tree-optimization/47179
27557 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
27558 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
27560 2011-01-18 Richard Guenther <rguenther@suse.de>
27562 PR rtl-optimization/47216
27563 * emit-rtl.c: Include tree-flow.h.
27564 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
27565 of replicating it with different semantics.
27566 * Makefile.in (emit-rtl.o): Adjust.
27568 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27570 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
27571 (cortex_a9_dp): Handle neon types correctly.
27573 2011-01-18 Jakub Jelinek <jakub@redhat.com>
27575 PR rtl-optimization/47299
27576 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
27577 subtarget. Use normal multiplication if both operands are constants.
27578 * expmed.c (expand_widening_mult): Don't try to optimize constant
27579 multiplication if op0 has VOIDmode. Convert op1 constant to mode
27582 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27584 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
27585 spacing after 'e.g.', typos, comma, hyphenation.
27587 2011-01-17 Richard Henderson <rth@redhat.com>
27589 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
27590 (rx_restricted_mem_operand): New.
27591 (rx_shift_operand): Use register_operand.
27592 (rx_source_operand, rx_compare_operand): Likewise.
27593 * config/rx/rx.md (addsi3_flags): New expander.
27594 (adddi3): Rewrite as expander.
27595 (adc_internal, *adc_flags, adddi3_internal): New patterns.
27596 (subsi3_flags): New expander.
27597 (subdi3): Rewrite as expander.
27598 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
27600 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
27601 (rx_init_builtins): Remove sat builtin.
27602 (rx_expand_builtin): Likewise.
27603 * config/rx/rx.md (ssaddsi3): New.
27604 (*sat): Rename from sat. Represent the CC_REG input.
27606 * config/rx/predicates.md (rshift_operator): New.
27607 * config/rx/rx.c (rx_expand_insv): Remove.
27608 * config/rx/rx-protos.h: Update.
27609 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
27610 operand to the canonical position.
27611 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
27612 (*bitclr, *bitclr_in_memory): Similarly.
27613 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
27614 (insv): Retain the zero_extract in the expansion.
27616 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
27617 (bswaphi2, bitinvert, revw): Likewise.
27619 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
27620 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
27621 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
27622 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
27623 (bitset, bitset_in_memory): Likewise.
27624 (bitinvert, bitinvert_in_memory): Likewise.
27625 (bitclr, bitclr_in_memory): Likewise.
27626 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
27627 (rx_strend, rx_cmpstrn): Likewise.
27628 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
27629 (bitop peep2 patterns): Remove.
27631 * config/rx/rx.c (rx_match_ccmode): New.
27632 * config/rx/rx-protos.h: Update.
27633 * config/rx/rx.md (abssi2): Clobber, don't set flags.
27634 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
27635 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
27636 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
27637 (fix_truncsfsi2, floatsisf2): Likewise.
27638 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
27639 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
27640 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
27641 (*subsi3_flags, *xorsi3_flags): New.
27643 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
27645 * config/rx/rx.c (rx_print_operand): Remove workaround for
27646 unsplit comparison operations.
27648 * config/rx/rx.md (movsicc): Split after reload.
27649 (*movsicc): Merge *movsieq and *movsine via match_operator.
27650 (*stcc): New pattern.
27652 * config/rx/rx.c (rx_float_compare_mode): Remove.
27653 * config/rx/rx.h (rx_float_compare_mode): Remove.
27654 * config/rx/rx.md (cstoresi4): Split after reload.
27655 (*sccc): New pattern.
27657 * config/rx/predicates.md (label_ref_operand): New.
27658 (rx_z_comparison_operator): New.
27659 (rx_zs_comparison_operator): New.
27660 (rx_fp_comparison_operator): New.
27661 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
27662 Validate that the flags are set properly for the comparison.
27663 (rx_gen_cond_branch_template): Remove.
27664 (rx_cc_modes_compatible): Remove.
27665 (mode_from_flags): New.
27666 (flags_from_code): Rename from flags_needed_for_conditional.
27667 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
27668 (rx_select_cc_mode): Likewise.
27669 (rx_split_fp_compare): New.
27670 (rx_split_cbranch): New.
27671 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
27672 (*cbranchsi4): Use match_operator and rx_split_cbranch.
27673 (*cbranchsf4): Similarly.
27674 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
27675 match_operator and rx_split_cbranch.
27676 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
27677 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
27678 (*cmpsi): Rename from cmpsi.
27679 (*tstsi): Rename from tstsi.
27680 (*cmpsf): Rename from cmpsf; use CC_Fmode.
27681 (*conditional_branch): Rename from conditional_branch.
27682 (*reveresed_conditional_branch): Remove.
27683 (b<code>): Remove expander.
27684 * config/rx/rx-protos.h: Update.
27686 * config/rx/rx.c (rx_compare_redundant): Remove.
27687 * config/rx/rx.md (cmpsi): Don't use it.
27688 * config/rx/rx-protos.h: Update.
27690 * config/rx/rx-modes.def (CC_F): New mode.
27691 * config/rx/rx.c (rx_select_cc_mode): New.
27692 * config/rx/rx.h (SELECT_CC_MODE): Use it.
27693 * config/rx/rx-protos.h: Update.
27695 2011-01-17 Richard Henderson <rth@redhat.com>
27697 * except.c (dump_eh_tree): Fix stray ; after for statement.
27699 2011-01-17 Richard Guenther <rguenther@suse.de>
27701 PR tree-optimization/47313
27702 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
27703 handling before copying the body. Properly deal with
27704 by-reference result in SSA form.
27706 2011-01-17 Ian Lance Taylor <iant@google.com>
27709 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
27710 (struct_value_alias_set): Don't define.
27711 (sparc_option_override): Don't set sparc_sr_alias_set and
27712 struct_value_alias_set.
27713 (save_or_restore_regs): Use gen_frame_mem rather than calling
27715 (sparc_struct_value_rtx): Likewise.
27717 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
27720 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
27721 (_mm_maskstore_pd): Likewise.
27722 (_mm_maskload_ps): Likewise.
27723 (_mm_maskstore_ps): Likewise.
27724 (_mm256_maskload_pd): Change mask to __m256i.
27725 (_mm256_maskstore_pd): Likewise.
27726 (_mm256_maskload_ps): Likewise.
27727 (_mm256_maskstore_ps): Likewise.
27729 * config/i386/i386-builtin-types.def: Updated.
27730 (ix86_expand_special_args_builtin): Likewise.
27732 * config/i386/i386.c (bdesc_special_args): Update
27733 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
27734 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
27735 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
27736 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
27738 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
27739 Use <avxpermvecmode> on mask register.
27740 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
27742 2011-01-17 Olivier Hainque <hainque@adacore.com>
27743 Michael Haubenwallner <michael.haubenwallner@salomon.at>
27744 Eric Botcazou <ebotcazou@adacore.com>
27747 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
27748 if <= USHRT_MAX in 32-bit mode.
27750 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27752 * doc/install.texi (Configuration, Specific): Wrap long
27753 lines in examples. Allow line wrapping in long options
27754 and URLs where beneficial for PDF output.
27756 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
27758 * config/mips/mips.c (mips_classify_symbol): Don't return
27759 SYMBOL_PC_RELATIVE for nonlocal labels.
27761 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
27763 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
27765 2011-01-15 Jan Hubicka <jh@suse.cz>
27767 PR tree-optimization/47276
27768 * ipa.c (function_and_variable_visibility): Do not try to mark alias
27769 declarations as needed.
27771 2011-01-15 Martin Jambor <mjambor@suse.cz>
27773 * common.opt (fdevirtualize): New flag.
27774 * doc/invoke.texi (Option Summary): Document it.
27775 * opts.c (default_options_table): Add devirtualize flag.
27776 * ipa-prop.c (detect_type_change): Return immediately if
27777 devirtualize flag is not set.
27778 (detect_type_change_ssa): Likewise.
27779 (compute_known_type_jump_func): Likewise.
27780 (ipa_analyze_virtual_call_uses): Likewise.
27782 2011-01-14 Martin Jambor <mjambor@suse.cz>
27784 PR tree-optimization/45934
27785 PR tree-optimization/46302
27786 * ipa-prop.c (type_change_info): New type.
27787 (stmt_may_be_vtbl_ptr_store): New function.
27788 (check_stmt_for_type_change): Likewise.
27789 (detect_type_change): Likewise.
27790 (detect_type_change_ssa): Likewise.
27791 (compute_complex_assign_jump_func): Check for dynamic type change.
27792 (compute_complex_ancestor_jump_func): Likewise.
27793 (compute_known_type_jump_func): Likewise.
27794 (compute_scalar_jump_functions): Likewise.
27795 (ipa_analyze_virtual_call_uses): Likewise.
27796 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
27798 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27800 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
27801 * config/i386/i386.opt (msse5): New Alias.
27803 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27805 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
27806 * config/sparc/linux64.h (CC1_SPEC): Likewise.
27807 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
27808 * config/sparc/sparc.h (CC1_SPEC): Likewise.
27810 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27812 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
27814 * config/sparc/linux64.h (CC1_SPEC): Likewise.
27815 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
27816 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
27817 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
27819 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
27821 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27823 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
27825 2011-01-14 Mike Stump <mikestump@comcast.net>
27827 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
27828 * config/fr30/fr30.md: Likweise
27829 (movsi_push): Likewise.
27830 (movsi_pop): Likewise.
27831 (enter_func): Likewise.
27832 * config/moxie/moxie.md (movsi_push): Likewise.
27833 (movsi_pop): Likewise.
27835 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27837 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
27838 %{no_archive} %{exact_version}.
27839 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
27840 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
27841 %{no_archive} %{exact_version}.
27842 * config/mips/openbsd.h (LINK_SPEC): Likewise.
27843 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
27844 * config/mips/vxworks.h: Likewise.
27846 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27848 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
27850 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27852 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
27853 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
27855 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27857 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
27860 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27862 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
27864 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
27865 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
27867 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
27868 Don't handle -shlib.
27870 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27872 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
27873 (CC1_SPEC): Don't handle -profile.
27875 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27877 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
27878 * config/mips/mips.h (CC1_SPEC): Likewise.
27880 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27882 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
27883 * config/mips/mips.h (CC1_SPEC): Likewise.
27885 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27887 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
27888 * config/m32r/linux.h (LINK_SPEC): Likewise.
27889 * config/mips/linux.h (LINK_SPEC): Likewise.
27890 * config/mips/linux64.h (LINK_SPEC): Likewise.
27891 * config/sparc/linux.h (LINK_SPEC): Likewise.
27892 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
27893 LINK_SPEC): Likewise.
27894 * config/xtensa/linux.h (LINK_SPEC): Likewise.
27896 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27898 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
27900 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
27902 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27904 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
27905 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
27907 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27909 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
27911 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27913 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
27914 supports -Bstatic/-Bdynamic.
27915 * configure: Regenerate.
27917 2011-01-14 Jan Hubicka <jh@suse.cz>
27918 Jack Howarth <howarth@bromo.med.uc.edu>
27921 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
27922 when checking debug_info_level. Test write_symbols instead of
27923 debug_hooks->var_location when setting flag_var_tracking_uninit.
27925 2011-01-14 Richard Guenther <rguenther@suse.de>
27927 PR tree-optimization/47179
27928 * target.def (ref_may_alias_errno): New target hook.
27929 * targhooks.h (default_ref_may_alias_errno): Declare.
27930 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
27931 (default_ref_may_alias_errno): New function.
27932 * target.h (struct ao_ref_s): Declare.
27933 * tree-ssa-alias.c: Include target.h.
27934 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
27935 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
27936 (targhooks.o): Likewise.
27937 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
27938 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
27940 2011-01-14 Richard Guenther <rguenther@suse.de>
27942 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
27944 2011-01-14 Richard Guenther <rguenther@suse.de>
27946 PR tree-optimization/47280
27947 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
27948 return CFG changes.
27949 (tree_ssa_forward_propagate_single_use_vars): Deal with
27950 CFG changes from associate_plusminus.
27952 2011-01-14 Richard Guenther <rguenther@suse.de>
27954 PR middle-end/47281
27956 2011-01-11 Richard Guenther <rguenther@suse.de>
27958 PR tree-optimization/46076
27959 * tree-ssa.c (useless_type_conversion_p): Conversions from
27960 unprototyped to empty argument list function types are useless.
27962 2011-01-14 Richard Guenther <rguenther@suse.de>
27964 PR tree-optimization/47286
27965 * tree-ssa-structalias.c (new_var_info): Register variables are global.
27967 2011-01-14 Martin Jambor <mjambor@suse.cz>
27969 PR middle-end/46823
27970 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
27972 2011-01-13 Anatoly Sokolov <aesok@post.ru>
27974 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
27975 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
27976 * config/xtensa/xtensa.c (xtensa_libcall_value,
27977 xtensa_function_value_regno_p): New functions.
27978 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
27980 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
27983 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
27985 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
27986 New function prototype.
27987 * config/i386/winnt.c (i386_pe_assemble_visibility):
27988 Warn only if attribute was specified by user.
27990 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
27993 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
27995 (floatunsdidf2_fcfidu): Ditto.
27997 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27999 * config/s390/s390.c (print_operand_address): Replace 'error' with
28000 'output_operand_lossage'.
28001 (print_operand): Likewise.
28003 2011-01-13 Jeff Law <law@redhat.com>
28005 PR rtl-optimization/39077
28006 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
28007 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
28008 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
28009 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
28010 * gcse.c (prune_insertions_deletions): New function.
28011 (compute_pre_data): Use it.
28013 2011-01-13 Dodji Seketeli <dodji@redhat.com>
28016 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
28018 (prune_unused_types_mark): Use it.
28020 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
28022 PR rtl-optimization/45352
28023 * sel-sched.c: Update copyright years.
28024 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
28025 in the advancing loop when we have issued issue_rate insns.
28027 2011-01-12 Richard Henderson <rth@redhat.com>
28029 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
28030 (TARGET_MD_ASM_CLOBBERS): New.
28032 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
28033 (TARGET_DELEGITIMIZE_ADDRESS): New.
28035 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
28036 (clzsi2, *bsch): New patterns.
28038 * config/mn10300/mn10300.md (INT): New mode iterator.
28039 (*mov<INT>_clr): New pattern, and peep2 to generate it.
28041 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
28042 flag_split_wide_types.
28044 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
28045 (mn10300_trampoline_init): Rewrite without a template, an immediate
28046 load and a direct branch.
28047 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
28049 2011-01-12 Anatoly Sokolov <aesok@post.ru>
28051 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
28052 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
28053 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
28054 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
28056 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
28059 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
28062 2011-01-12 Jan Hubicka <jh@suse.cz>
28065 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
28066 (PLUGIN_COND_CLOSE): New macro.
28067 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
28069 2011-01-12 Richard Guenther <rguenther@suse.de>
28072 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
28073 register variables in a MEM_REF.
28075 2011-01-12 Joseph Myers <joseph@codesourcery.com>
28077 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
28078 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
28079 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
28080 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
28081 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
28082 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
28083 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
28084 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
28085 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
28086 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
28087 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
28088 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
28089 * config/gnu-user.h: New. Copied from linux.h.
28090 (LINUX_TARGET_STARTFILE_SPEC): Rename to
28091 GNU_USER_TARGET_STARTFILE_SPEC.
28092 (LINUX_TARGET_ENDFILE_SPEC): Rename to
28093 GNU_USER_TARGET_ENDFILE_SPEC.
28094 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
28095 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
28096 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
28097 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
28098 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
28099 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
28100 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
28101 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
28102 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
28103 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
28104 * config/arm/linux-eabi.h (CC1_SPEC): Use
28105 GNU_USER_TARGET_CC1_SPEC.
28106 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
28107 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
28108 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
28109 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
28110 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
28111 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
28112 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
28113 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
28115 2011-01-12 Richard Guenther <rguenther@suse.de>
28118 * doc/invoke.texi (ffast-math): Document it is turned on
28121 2011-01-12 Jan Hubicka <jh@suse.cz>
28123 PR tree-optimization/47233
28124 * opts.c (common_handle_option): Disable ipa-reference with profile
28127 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
28129 * c-parser.c (c_parser_objc_at_property_declaration): Improved
28132 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
28134 * c-parser.c (c_lex_one_token): Updated and reindented some
28135 comments. No changes in code.
28137 2011-01-11 Ian Lance Taylor <iant@google.com>
28139 * godump.c (go_output_var): Don't output the variable if there is
28140 already a type with the same name.
28142 2011-01-11 Ian Lance Taylor <iant@google.com>
28144 * godump.c (go_format_type): Don't generate float80.
28146 2011-01-11 Richard Henderson <rth@redhat.com>
28148 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
28149 declaration. Rewrite for both speed and size.
28150 (mn10300_address_cost_1): Remove.
28151 (mn10300_register_move_cost): New.
28152 (mn10300_memory_move_cost): New.
28153 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
28154 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
28155 extensions, shifts, BSWAP, CLZ.
28156 (mn10300_wide_const_load_uses_clr): Remove.
28157 (TARGET_REGISTER_MOVE_COST): New.
28158 (TARGET_MEMORY_MOVE_COST): New.
28159 * config/mn10300/mn10300-protos.h: Update.
28160 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
28162 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
28163 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
28164 * config/mn10300/mn10300-protos.h: Update.
28165 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
28166 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
28167 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
28168 (*test_int_bitfield, *test_byte_bitfield): Remove.
28169 (*bit_test, *subreg_bit_test): Remove.
28170 * config/mn10300/predicates.md (const_8bit_operand): Remove.
28172 * config/mn10300/constraints.md ("c"): Rename from "A".
28173 ("A", "D"): New constraint letters.
28174 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
28175 (fmssf4, fnmasf4, fnmssf4): Likewise.
28177 * config/mn10300/mn10300.md (isa): New attribute.
28178 (enabled): New attribute.
28180 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
28181 (abssf2, negsf2): Define only for hardware fp.
28182 (sqrtsf2): Reformat.
28183 (addsf3, subsf3, mulsf3): Merge expander and insn.
28185 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
28186 (DEBUGGER_AUTO_OFFSET): Remove.
28187 (DEBUGGER_ARG_OFFSET): Remove.
28189 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
28190 Emit register stores with the same offsets as the hardware.
28191 (mn10300_store_multiple_operation): Don't check that the register
28192 save offsets are monotonic.
28193 * config/mn10300/mn10300-protos.h: Update.
28195 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
28197 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
28198 in terms of the value on the stack, not the MDR register.
28200 2011-01-11 Jan Hubicka <jh@suse.cz>
28204 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
28205 (symbol_alias_set_destroy, symbol_alias_set_contains,
28206 propagate_aliases_backward): Declare.
28207 * lto-streamer-out.c (struct sets): New sturcture.
28208 (trivally_defined_alias): New function.
28209 (output_alias_pair_p): Rewrite.
28210 (output_unreferenced_globals): Fix output of alias pairs.
28211 (produce_symtab): Likewise.
28212 * ipa.c (function_and_variable_visibility): Set weak alias destination
28214 * varasm.c (symbol_alias_set_t): Remove.
28215 (symbol_alias_set_destroy): Export.
28216 (propagate_aliases_forward, propagate_aliases_backward): New functions
28218 (compute_visible_aliases): ... this one; remove.
28219 (trivially_visible_alias): New
28220 (trivially_defined_alias): New.
28221 (remove_unreachable_alias_pairs): Rewrite.
28222 (finish_aliases_1): Reorganize code checking if alias is defined.
28223 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
28226 2011-01-11 Richard Guenther <rguenther@suse.de>
28228 PR tree-optimization/46076
28229 * tree-ssa.c (useless_type_conversion_p): Conversions from
28230 unprototyped to empty argument list function types are useless.
28232 2011-01-11 Richard Guenther <rguenther@suse.de>
28234 PR middle-end/45235
28235 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
28236 volatile MEMs as MEM_READONLY_P.
28238 2011-01-11 Richard Guenther <rguenther@suse.de>
28240 PR tree-optimization/47239
28241 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
28243 2011-01-11 Jeff Law <law@redhat.com>
28245 PR tree-optimization/47086
28246 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
28247 IVs from statements that might throw.
28249 2011-01-10 Jan Hubicka <jh@suse.cz>
28252 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
28254 2011-01-10 Jan Hubicka <jh@suse.cz>
28257 * profile.c (read_profile_edge_counts): Ignore profile inconistency
28258 when correcting profile.
28260 2011-01-10 Jan Hubicka <jh@suse.cz>
28263 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
28264 DECL_FINI_PRIORITY.
28265 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
28266 Restore DECL_FINI_PRIORITY.
28268 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28270 * doc/gimple.texi: Fix quoting of multi-word return values in
28271 @deftypefn statements. Ensure presence of return value. Wrap
28272 overlong @deftypefn lines.
28273 (is_gimple_operand, is_gimple_min_invariant_address): Remove
28274 descriptions of removed functions.
28275 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
28276 of multi-word return value in @deftypefn statement.
28278 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28280 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
28281 (Conditional Expressions, Logical Operators)
28282 (Statement and operand traversals): Do not indent smallexample
28283 code. Fix duplicate function argument in example.
28285 2011-01-10 Jeff Law <law@redhat.com>
28287 PR tree-optimization/47141
28288 * ipa-split.c (split_function): Handle case where we are
28289 returning a value and the return block has a virtual operand phi.
28291 2011-01-10 Jan Hubicka <jh@suse.cz>
28293 PR tree-optimization/47234
28294 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
28295 (pass_feedback_split_functions): Declare.
28296 * passes.c (init_optimization_passes): Add ipa-split as subpass of
28298 * ipa-split.c (gate_split_functions): Update comments; disable
28299 split-functions for profile_arc_flag and branch_probabilities.
28300 (gate_feedback_split_functions): New function.
28301 (execute_feedback_split_functions): New function.
28302 (pass_feedback_split_functions): New global var.
28304 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
28307 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
28308 calling gimple_call_set_cannot_inline.
28310 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
28312 * config/darwin-sections.def: Remove unused section.
28314 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
28317 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
28319 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
28322 * c-parser.c (c_parser_declaration_or_fndef): Improved
28325 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
28327 * config/i386/winnt.c (i386_pe_start_function): Make sure
28328 to switch back to function's section.
28330 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
28334 * plugin.c: Move include of dlfcn.h from here...
28335 * system.h: ... to here.
28337 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28339 * doc/cpp.texi (C++ Named Operators): Fix markup for header
28341 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
28342 two extra empty pages in PDF output.
28344 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
28347 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
28348 for error recovery purposes behave as if it was not specified so
28349 that the default type is usd.
28351 2011-01-07 Jan Hubicka <jh@suse.cz>
28353 PR tree-optmization/46469
28354 * ipa.c (function_and_variable_visibility): Clear needed flags on
28355 nodes with external decls; handle weakrefs merging correctly.
28357 2011-01-07 Joseph Myers <joseph@codesourcery.com>
28359 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
28362 2011-01-07 Jan Hubicka <jh@suse.cz>
28364 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
28365 and no longer claim that gold is required for linker plugin.
28366 * configure: Regenerate.
28367 * gcc.c (PLUGIN_COND): New macro.
28368 (LINK_COMMAND_SPEC): Use it.
28369 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
28370 * config.in (HAVE_LTO_PLUGIN): New.
28371 * configure.ac (--with-lto-plugin): New parameter; autodetect
28374 2011-01-07 Jan Hubicka <jh@suse.cz>
28376 PR tree-optimization/46367
28377 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
28378 when we can update original.
28379 (cgraph_mark_inline_edge): Sanity check.
28380 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
28382 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28384 * config/spu/spu.h (ASM_COMMENT_START): Define.
28386 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
28389 * gcc.c (%>S): New.
28390 (SWITCH_KEEP_FOR_GCC): Likewise.
28391 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
28392 (do_spec_1): Handle "%>".
28394 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
28396 2011-01-07 Jakub Jelinek <jakub@redhat.com>
28399 * config/i386/i386.c (ix86_delegitimize_address): If
28400 simplify_gen_subreg fails, return orig_x.
28403 * value-prof.c (gimple_stringop_fixed_value): Handle
28404 lhs of the call properly.
28406 2011-01-07 Jan Hubicka <jh@suse.cz>
28409 * lto-opt.c (lto_reissue_options): Set flag_shlib.
28411 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
28413 * target.def (function_switched_text_sections): New hook.
28414 * doc/tm.texi: Regenerated.
28415 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
28416 * final.c (default_function_switched_text_sections): New.
28417 (final_scan_insn): Call function_switched_text_sections when a
28418 mid-function section change occurs.
28419 * output.h (default_function_switched_text_sections): Declare.
28420 * config/darwin-protos.h (darwin_function_switched_text_sections):
28422 * config/darwin.c (darwin_function_switched_text_sections): New.
28423 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
28425 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
28427 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
28428 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
28429 the secondary code fragment when outputting for DWARF == 2.
28431 2011-01-07 Anatoly Sokolov <aesok@post.ru>
28433 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
28434 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
28436 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
28437 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
28439 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
28442 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
28443 when it is not empty.
28445 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
28448 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
28449 (case ${target}): Add btver1.
28450 * config/i386/driver-i386.c (host_detect_local_cpu): Let
28451 -march=native recognize btver1 processors.
28452 * config/i386/i386-c.c (ix86_target_macros_internal): Add
28453 btver1 def_and_undef
28454 * config/i386/i386.c (struct processor_costs btver1_cost): New
28456 (m_BTVER1): New definition.
28457 (m_AMD_MULTIPLE): Includes m_BTVER1.
28458 (initial_ix86_tune_features): Add btver1 tune.
28459 (processor_target_table): Add btver1 entry.
28460 (static const char *const cpu_names): Add btver1 entry.
28461 (software_prefetching_beneficial_p): Add btver1.
28462 (ix86_option_override_internal): Add btver1 instruction sets.
28463 (ix86_issue_rate): Add btver1.
28464 (ix86_adjust_cost): Add btver1.
28465 * config/i386/i386.h (TARGET_BTVER1): New definition.
28466 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
28467 (enum processor_type): Add PROCESSOR_BTVER1.
28468 * config/i386/i386.md (define_attr "cpu"): Add btver1.
28470 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28473 * config/i386/i386.c (legitimize_tls_address)
28474 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
28475 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
28476 (tls_initial_exec_64_sun): New pattern.
28478 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
28480 * doc/invoke.texi (Overall Options): Improve wording and markup
28481 of the description of -wrapper.
28483 2011-01-06 Joseph Myers <joseph@codesourcery.com>
28485 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
28486 rdynamic, threads): New Driver options.
28488 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28491 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
28492 if coming from .tdata.
28493 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
28495 2011-01-06 Jan Hubicka <jh@suse.cz>
28498 * collect2.c (main): Do not enable LTOmode when plugin is active.
28500 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28503 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
28504 --version output if supported.
28505 * configure: Regenerate.
28507 2011-01-06 Joseph Myers <joseph@codesourcery.com>
28509 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
28512 2011-01-06 Jakub Jelinek <jakub@redhat.com>
28515 * c-convert.c (convert): When converting a complex expression
28516 other than COMPLEX_EXPR to a different complex type, ensure
28517 c_save_expr is called instead of save_expr, unless in_late_binary_op.
28518 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
28519 when converting COMPLEX_TYPE.
28521 2011-01-06 Ira Rosen <irar@il.ibm.com>
28523 PR tree-optimization/47139
28524 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
28525 only the last reduction value is used outside the loop. Update
28528 2011-01-05 Joseph Myers <joseph@codesourcery.com>
28530 * config/rtems.opt: New.
28531 * config.gcc (*-*-rtems*): Use rtems.opt.
28533 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
28535 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
28536 processors do not support 3DNow instructions.
28538 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28540 * config/spu/spu.c (spu_option_override): Set parameter
28541 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
28543 2011-01-05 Jan Hubicka <jh@suse.cz>
28545 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
28546 at the command line.
28548 2011-01-05 Martin Jambor <mjambor@suse.cz>
28551 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
28552 deltas on streamed outgoing edges.
28553 (output_node_opt_summary): Output info for outgoing edges only when
28554 the node is in new parameter set.
28555 (output_cgraph_opt_summary): New parameter set, passed to the two
28556 aforementioned functions. Update its forward declaration and its
28559 2011-01-05 Tom Tromey <tromey@redhat.com>
28561 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
28562 operator to c_finish_omp_atomic.
28563 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
28564 (build_unary_op): Update.
28565 (build_modify_expr): Update.
28566 (build_asm_expr): Update.
28568 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28570 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
28571 newly inserted insns.
28572 (pad_bb): Likewise.
28573 (spu_emit_branch_hint): Likewise.
28574 (insert_hbrp_for_ilb_runout): Likewise.
28575 (spu_machine_dependent_reorg): Call df_finish_pass after
28576 schedule_insns returns.
28578 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28580 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
28582 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
28584 PR tree-optimization/47005
28585 * tree-sra.c (struct access): Add 'non_addressable' bit.
28586 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
28587 (decide_one_param_reduction): Return 0 if the parameter is passed by
28588 reference and one of the accesses in the group is non_addressable.
28590 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
28592 PR tree-optimization/47056
28593 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
28594 (mark_load): Likewise. Handle FUNCTION_DECL specially.
28595 (mark_store): Likewise. Pass STMT to ipa_record_reference.
28597 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
28599 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
28600 initializer. Skip view conversions from aggregate types.
28602 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
28605 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
28607 2011-01-04 Philipp Thomas <pth@suse.de>
28609 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
28612 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28614 * function.c (thread_prologue_and_epilogue_insns): Do not crash
28615 on empty epilogue sequences.
28617 2011-01-04 Joseph Myers <joseph@codesourcery.com>
28619 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
28620 non-static): New Driver options.
28622 2011-01-04 Jie Zhang <jie@codesourcery.com>
28625 * gcc.c (default_compilers[]): Set combinable field to 0
28626 for all assembly languages.
28628 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
28630 * config/mips/loongson3a.md: New file.
28631 * config/mips/mips.md: Include loongson3a.md.
28632 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
28635 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
28637 PR middle-end/47017
28638 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
28639 instead of convert_memory_address_addr_space on the base expression.
28641 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28643 * config/spu/spu.c (spu_option_override): Update error text
28644 for bad -march= / -mtune= values.
28646 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28648 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
28649 if branch-hint optimization will be performed.
28651 2011-01-03 Jakub Jelinek <jakub@redhat.com>
28653 PR tree-optimization/47148
28654 * ipa-split.c (split_function): Convert arguments to
28655 DECL_ARG_TYPE if possible.
28657 PR tree-optimization/47155
28658 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
28659 when computing uns.
28661 PR rtl-optimization/47157
28662 * combine.c (try_combine): If undobuf.other_insn becomes
28663 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
28664 and set *new_direct_jump_p too.
28666 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
28668 PR tree-optimization/47021
28669 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
28671 2011-01-03 Jakub Jelinek <jakub@redhat.com>
28673 * gcc.c (process_command): Update copyright notice dates.
28674 * gcov.c (print_version): Likewise.
28675 * gcov-dump.c (print_version): Likewise.
28676 * mips-tfile.c (main): Likewise.
28677 * mips-tdump.c (main): Likewise.
28679 2011-01-03 Martin Jambor <mjambor@suse.cz>
28681 PR tree-optimization/46801
28682 * tree-sra.c (type_internals_preclude_sra_p): Check whether
28683 aggregate fields start at byte boundary instead of the bit-field flag.
28685 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
28688 * gcc.c (main): Revert revision 168407.
28690 2011-01-03 Martin Jambor <mjambor@suse.cz>
28692 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
28694 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28696 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
28697 vector optab to expand vector/scalar shift, update gimple to vector.
28699 2011-01-03 Martin Jambor <mjambor@suse.cz>
28701 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
28704 2011-01-03 Martin Jambor <mjambor@suse.cz>
28706 PR tree-optimization/46984
28707 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
28709 (cgraph_create_indirect_edge): Fixed line length.
28710 (cgraph_indirect_call_info): Declare.
28711 (cgraph_make_edge_direct) Update declaration.
28712 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
28713 (cgraph_create_indirect_edge): Use it.
28714 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
28716 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
28717 the new thunk_delta representation.
28718 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
28720 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
28721 (ipa_read_indirect_edge_info): Likewise.
28722 * lto-cgraph.c (output_edge_opt_summary): New function.
28723 (output_node_opt_summary): Call it on all outgoing edges.
28724 (input_edge_opt_summary): New function.
28725 (input_node_opt_summary): Call it on all outgoing edges.
28727 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
28730 * gcc.c (main): Don't check have_o when settting combine_inputs.
28732 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
28734 * regrename.c: Add general comment describing the pass.
28735 (struct du_head): Remove 'length' field.
28736 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
28737 (regrename_optimize): Do not sort chains. Rework comments, add others.
28738 Force renaming to the preferred class (if any) in the first pass and do
28739 not consider registers that belong to it in the second pass.
28740 (create_new_chain): Do not set 'length' field.
28741 (scan_rtx_reg): Likewise.
28743 2011-01-02 Jakub Jelinek <jakub@redhat.com>
28745 PR tree-optimization/47140
28746 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
28747 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
28748 to bit_value_binop.
28750 PR rtl-optimization/47028
28751 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
28752 parm_birth_insn instead of at the beginning of first bb.
28754 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
28756 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
28757 Remove the word "see" before "@pxref".
28758 * doc/rtl.texi: Remove the word "see" before "@pxref".
28760 2011-01-01 Jan Hubicka <jh@suse.cz>
28762 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
28765 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
28768 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
28771 Copyright (C) 2011 Free Software Foundation, Inc.
28773 Copying and distribution of this file, with or without modification,
28774 are permitted in any medium without royalty provided the copyright
28775 notice and this notice are preserved.