1 2011-11-01 Andrew Stubbs <ams@codesourcery.com>
3 * config/arm/bpabi.h (BE8_LINK_SPEC): Recognize generic-armv7 tuning.
5 2011-11-01 Uros Bizjak <ubizjak@gmail.com>
7 * config/i386/i386.md (splitters for int-float conversion): Use
8 SUBREG_REG on SUBREGs in splitter constraints.
10 2011-11-01 Jakub Jelinek <jakub@redhat.com>
12 * config/i386/i386-protos.h (ix86_expand_adjust_ufix_to_sfix_si): New
14 * config/i386/i386.c (ix86_expand_adjust_ufix_to_sfix_si): New
16 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): Use it.
17 (ssepackfltmode): New mode attr.
18 (vec_pack_ufix_trunc_<mode>): New expander.
20 2011-11-01 Uros Bizjak <ubizjak@gmail.com>
23 * config/i386/i386.md (floatsi<mode>2_vector_sse_with_temp splitter):
24 Compare <ssevecmode>mode with V4SFmode, not V4SImode.
26 2011-11-01 Peter Bergner <bergner@vnet.ibm.com>
28 * config.gcc (powerpc*-*-linux*): Add powerpc*-*-linux*ppc476* variant.
29 * config/rs6000/476.h: New file.
30 * config/rs6000/476.opt: Likewise.
31 * config/rs6000/rs6000.h (TARGET_LINK_STACK): New define.
32 (SET_TARGET_LINK_STACK): Likewise.
33 (TARGET_ASM_CODE_END): Define.
34 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
35 TARGET_LINK_STACK for -mtune=476 and -mtune=476fp.
36 (rs6000_legitimize_tls_address): Emit the link stack preserving GOT
37 code if TARGET_LINK_STACK.
38 (rs6000_emit_load_toc_table): Likewise.
39 (output_function_profiler): Likewise
40 (macho_branch_islands): Likewise
41 (machopic_output_stub): Likewise
42 (get_ppc476_thunk_name): New function.
43 (rs6000_code_end): Likewise.
44 * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
45 Convert to a define_expand.
46 (load_toc_v4_PIC_1_normal): New define_insn.
47 (load_toc_v4_PIC_1_476): Likewise.
48 (load_toc_v4_PIC_1b_normal): Likewise.
49 (load_toc_v4_PIC_1b_476): Likewise.
51 2011-11-01 Georg-Johann Lay <avr@gjlay.de>
54 * config/avr/avr.opt (-mbranch-cost=): New option.
55 * config/avr/avr.h (BRANCH_COST): Define to avr_branch_cost.
56 * config/avr/avr.c (avr_rtx_costs_1): Adjust [U]DIV/[U]MOD costs.
57 * config/avr/avr.md (*addqi3.lt0, *addhi3.lt0, *addsi3.lt0): New insns.
58 (*addhi3_zero_extend1): Remove % in constraint of operand 1.
59 (*addhi3.sign_extend1, *subhi3.sign_extend2): New insns.
61 2011-11-01 Tom de Vries <tom@codesourcery.com>
63 PR tree-optimization/50908
64 * tree-ssa-tail-merge.c (update_vuses): Now that edges are removed
65 before update_vuses, test for 1 predecessor rather than two.
66 (delete_block_update_dominator_info): New function, part of it factored
68 (replace_block_by): Use delete_block_update_dominator_info. Call
69 update_vuses after deleting bb1 and updating dominator info, instead of
72 2011-11-01 David S. Miller <davem@davemloft.net>
74 * config/sparc/sparc.c (sparc_expand_vcond): New function.
75 * config/sparc/sparc-protos.h (sparc_expand_vcond): Declare it.
76 * config/sparc/sparc.md (vcond<mode><mode>): New VIS3 expander.
77 (vconduv8qiv8qi): Likewise.
79 2011-11-01 Alexandre Oliva <aoliva@redhat.com>
82 * cselib.c (cfa_base_preserved_regno): Initialize.
83 (cselib_expand_value_rtx_1): Don't expand it.
84 * var-tracking.c (vt_expand_var_loc_chain): Initialize depth.
85 Check it's only zero if result is NULL.
87 2011-11-01 Jakub Jelinek <jakub@redhat.com>
89 * config/i386/sse.md (fixuns_trunc<mode><sseintvecmodelower>2): New
92 * config/i386/sse.md (sseintvecmode): Remove duplicate modes.
93 (sseintvecmodelower): New mode iterator.
94 (floatv8siv8sf2, floatunsv4siv4sf2): Macroize into...
95 (float<sseintvecmodelower><mode>2): ... this using VF1 iterator.
96 (floatunsv4siv4sf2): Macroize into...
97 (floatuns<sseintvecmodelower><mode>2): ... this using VF1 iterator.
99 2011-10-31 David S. Miller <davem@davemloft.net>
101 * config/sparc/sparc.md (cmask patterns): Allow zero operand.
103 * dwarf2out.c (cached_next_real_insn): New.
104 (dwarf2out_end_epilogue): Set it to NULL_RTX.
105 (dwarf2out_var_location): Remove cached_next_real_insn local static.
107 2011-10-31 Richard Henderson <rth@redhat.com>
109 * config/i386/sse.md (floatv8siv8sf2): Rename from avx_cvtdq2ps256.
110 (floatv4siv4sf2): Rename from sse2_cvtdq2ps.
111 (floatunsv4siv4sf2): Rename from sse2_cvtudq2ps.
112 (fix_truncv8sfv8si2): Rename from avx_cvttps2dq256.
113 (fix_truncv4sfv4si2): Rename from sse2_cvttps2dq.
114 (floatv4siv4df2): Rename from avx_cvtdq2pd256.
115 (fix_truncv4dfv4si2): Rename from avx_cvttpd2dq256.
116 (vec_unpacku_float_hi_v8si): Update for insn pattern name changes.
117 * config/i386/i386.md (splitters for int-float conversion): Likewise.
118 * config/i386/i386.c (ix86_split_convert_uns_si_sse): Likewise.
119 (bdesc_args): Likewise.
120 (enum ix86_builtins) [IX86_BUILTIN_CVTUDQ2PS]: Remove.
121 (ix86_vectorize_builtin_conversion): Remove.
122 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
124 2011-10-31 Martin Jambor <mjambor@suse.cz>
126 * ipa-prop.c (mark_modified): Moved up in the file.
127 (is_parm_modified_before_call): Renamed to
128 is_parm_modified_before_stmt, moved up in the file.
129 (load_from_unmodified_param): New function.
130 (compute_complex_assign_jump_func): Also attempt to create pass
131 through jump functions for values loaded from (addressable)
134 2011-10-31 Jakub Jelinek <jakub@redhat.com>
136 * tree-vect-stmts.c (vectorizable_shift): If op1 is vect_external_def
137 in a loop and has different type from op0, cast it to op0's type
138 before the loop first. For slp give up. Don't crash if op1_vectype
141 2011-10-31 Paul Brook <paul@codesourcery.com>
143 * cgraphunit.c: Don't mark clones as static constructors.
145 2011-10-31 David Edelsohn <dje.gcc@gmail.com>
147 * gcc-ar: Do not include stdio.h.
149 2011-10-31 Diego Novillo <dnovillo@google.com>
151 * tree-streamer-out.c (pack_ts_base_value_fields): Emit
153 * tree-streamer-in.c (unpack_ts_base_value_fields): Read
156 2011-10-30 David S. Miller <davem@davemloft.net>
158 * config/sparc/sparc.c (vector_init_bshuffle): New function.
159 (vector_init_fpmerge): New function.
160 (sparc_expand_vector_init): Use them to improve non-const cases.
162 * dwarf2out.c (dwarf2out_var_location): When processing several
163 consecutive location notes, cache the result of next_real_insn().
165 2011-10-30 Uros Bizjak <ubizjak@gmail.com>
167 * config/i386/i386.md (avx2_vec_dup<mode>): Macroize insn from
168 avx2_vec_dup{v8sf,v4sf} using VF1 mode iterator.
169 (vec_dupv4sf): Remove expander.
170 (vec_dupv4sf): Merge from *vec_dupv4sf and *vec_dupv4sf_avx.
171 (vec_dupv2df): Remove expander.
172 (vec_dupv2df): Merge from *vec_dupv2df and *vec_dupv2df_sse3.
173 (*vec_concatv2df): Merge *vec_concatv2df_sse3.
174 (*vec_dupv4si): Merge *vec_dupv4si_avx.
175 (*vec_dupv2di): Merge *vec_dupv2di_sse3.
177 2011-10-30 Dmitry Plotnikov <dplotnikov@ispras.ru>
179 * tree-cfg.c (verify_gimple_assign_unary): Allow vector conversions.
180 * optabs.c (supportable_convert_operation): New function.
181 * optabs.h (supportable_convert_operation): New prototype.
182 * tree-vect-stmts.c (vectorizable_conversion): Change condition and
183 behavior for NONE modifier case.
184 * tree.h (VECTOR_INTEGER_TYPE_P): New macro.
186 2011-10-30 Jakub Jelinek <jakub@redhat.com>
188 * tree-vectorizer.h (NUM_PATTERNS): Bump to 9.
189 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): New
191 (vect_vect_recog_func_ptrs): Add it.
193 2011-10-30 David S. Miller <davem@davemloft.net>
195 * reorg.c (label_before_next_insn): New function.
196 (relax_delay_slots): Use it instead of prev_label.
197 * rtl.h (prev_label): Delete declaration.
198 * emit-rtl.c (prev_label): Remove.
200 2011-10-30 Revital Eres <revital.eres@linaro.org>
202 * modulo-sched.c (generate_prolog_epilog): Mark prolog and epilog
203 as BB_DISABLE_SCHEDULE.
204 (mark_loop_unsched): New function.
205 (sms_schedule): Call it.
207 2011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
210 * config/pa/protos.h (attr_length_save_restore_dltp): Delete.
211 (cmpib_comparison_operator): Likewise.
212 (following_cal, output_and, output_ior, output_move_double,
213 output_fp_move_double, output_block_move, output_block_clear,
214 output_cbranch, output_lbranch, output_bb, output_bvb, output_dbra,
215 output_movb, output_parallel_movb, output_parallel_addb, output_call,
216 output_indirect_call, output_millicode_call, output_mul_insn,
217 output_div_insn, output_mod_insn, singlemove_string,
218 output_arg_descriptor, output_global_address, print_operand,
219 legitimize_pic_address, hppa_encode_label, symbolic_expression_p,
220 fmpyaddoperands, fmpysuboperands, emit_bcond_fp, emit_move_sequence,
221 emit_hpdiv_const, is_function_label_plus_const, jump_in_call_delay,
222 hppa_fpstore_bypass_p, attr_length_millicode_call, attr_length_call,
223 attr_length_indirect_call, return_addr_rtx, function_arg_padding,
224 insn_refs_are_delayed, get_deferred_plabel, ldil_cint_p, zdepi_cint_p,
225 output_ascii, compute_frame_size, and_mask_p, cint_ok_for_move,
226 hppa_expand_prologue, hppa_expand_epilogue, ior_mask_p,
227 compute_zdepdi_operands, output_64bit_and, output_64bit_ior,
228 reloc_needed, magic_milli, shadd_constant_p): Consistently prefix
229 exported functions and variables with "pa_".
230 * config/pa/predicates.md: Likewise.
231 * config/pa/pa64-hpux.h: likewise.
232 * config/pa/som.h: Likewise.
233 * config/pa/elf.h: Likewise.
234 * config/pa/pa64-linux.h: Likewise.
235 * config/pa/pa.md: Likewise.
236 * config/pa/pa.c: Likewise.
237 * config/pa/pa-linux.h: Likewise.
238 * config/pa/pa.h: Likewise.
239 * config/pa/constraints.md: Likewise.
241 2011-10-29 Uros Bizjak <ubizjak@gmail.com>
243 * config/i386/i386.md (xop_sha<mode>3): Rename from xop_ashl<mode>3.
245 (xop_shl<mode>3): Rename from xop_lshl<mode>3. Update all uses.
246 * config/i386/i386.c: Update all uses.
248 2011-10-29 Uros Bizjak <ubizjak@gmail.com>
250 * config/i386/i386.md (lshlv16qi3): Remove expander.
251 (lshrv16qi3): New expander.
252 (<shift_insn>v16qi3): Macroize expander from ashrv16qi3 and lshrv16qi3
253 using any_shiftrt code iterator. Cleanup.
254 (ashlv16qi3): Cleanup.
257 2011-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
260 * config/pa/pa.c (emit_move_sequence): Legitimize TLS symbol
262 (pa_legitimate_constant_p): Return false for TLS_MODEL_GLOBAL_DYNAMIC
263 and TLS_MODEL_LOCAL_DYNAMIC symbol references.
265 2011-10-29 Georg-Johann Lay <avr@gjlay.de>
268 * config/avr/avr.opt (-maccumulate-args): New option.
269 * config/avr/avr.h (STARTING_FRAME_OFFSET): Redefine to
270 avr_starting_frame_offset.
271 (ACCUMULATE_OUTGOING_ARGS): Define to avr_accumulate_outgoing_args.
272 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): Remove.
273 (UNSPECV_WRITE_SP_IRQ_OFF): Remove.
274 (UNSPECV_WRITE_SP): New constant.
275 (*addhi3_sp_R): Rewrite to...
276 (*addhi3_sp): ...this new insn.
277 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): Combine to...
278 (movhi_sp_r): ...this new insn.
279 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): New.
280 (avr_starting_frame_offset): New.
281 * config/avr/avr.c (avr_accumulate_outgoing_args): New function.
282 (avr_starting_frame_offset): New function.
283 (avr_outgoing_args_size): New static function.
284 (avr_initial_elimination_offset): Use it.
285 (avr_simple_epilogue): Use it.
286 (avr_asm_function_end_prologue): Use it.
287 (expand_epilogue): Use it.
288 (expand_prologue): Use it. Break out code to...
289 (avr_prologue_setup_frame): ...this new static function.
290 (avr_can_eliminate): Allow eliminating to frame pointer if there
292 (avr_frame_pointer_required_p): Use frame pointer if target has a
294 * config/avr/constraints.md (R): Remove.
295 (Csp): New constraint.
296 * config/avr/predicates.md (avr_sp_immediate_operand): Use it.
298 2011-10-29 Andi Kleen <ak@linux.intel.com>
300 * gcc-ar.c (target_machine): Add.
302 2011-10-29 Anatoly Sokolov <aesok@post.ru>
304 * config/cris/cris.c (reg_ok_for_base_p, reg_ok_for_index_p,
305 cris_constant_index_p, cris_base_p, cris_index_p,
306 cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p,
307 cris_legitimate_address_p): New functions.
308 (TARGET_LEGITIMATE_ADDRESS_P): Define.
309 (cris_pic_symbol_type, cris_valid_pic_const): Change arguments type
310 from rtx to const_rtx.
311 (cris_print_operand_address, cris_address_cost,
312 cris_side_effect_mode_ok): Use
313 cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
314 cris_biap_index_p and cris_bdap_index_p.
315 * config/cris/cris.h (CONSTANT_INDEX_P, BASE_P, BASE_OR_AUTOINCR_P,
316 BDAP_INDEX_P, BIAP_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
317 REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
318 (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_R, EXTRA_CONSTRAINT_T): Use
319 cris_constant_index_p, cris_base_p, cris_base_or_autoincr_p,
320 cris_biap_index_p and cris_bdap_index_p.
321 * config/cris/cris.md (moversideqi movemsideqi peephole2): Use
323 * config/cris/cris-protos.h (cris_constant_index_p, cris_base_p,
324 cris_base_or_autoincr_p, cris_bdap_index_p, cris_biap_index_p): New
326 (cris_pic_symbol_type, cris_valid_pic_const): Update prototype.
328 2011-10-21 Andi Kleen <ak@linux.intel.com>
330 * ggc-page (PAGE_ALIGN): Add.
331 (alloc_page, ggc_pch_total_size, ggc_pch_this_base, ggc_pch_read):
332 Replace ROUND_UP with PAGE_ALIGN.
334 2011-10-20 Andi Kleen <ak@linux.intel.com>
336 * ggc-page (alloc_anon): Add check argument.
337 (alloc_page): Add fallback to 1 page allocation.
338 Adjust alloc_anon calls to new argument.
340 2011-10-18 Andi Kleen <ak@linux.intel.com>
342 * ggc-page (release_pages): First free large continuous
343 chunks in the madvise path.
345 2011-10-18 Andi Kleen <ak@linux.intel.com>
347 * ggc-page.c (alloc_pages): Always round up entry_size.
349 2011-10-19 Andi Kleen <ak@linux.intel.com>
351 * Makefile.in (MOSTLYCLEANFILES): Add gcc-ar/nm/ranlib.
352 (native): Add gcc-ar, gcc-nm, gcc-ranlib.
353 (AR_LIBS, gcc-ar, gcc-ar.o, gcc-ranlib, gcc-ranlib.o,
354 gcc-nm, gcc-nm.o, gcc-ranlib.c, gcc-nm.c): Add.
355 (install): Depend on install-gcc-ar.
356 (install-gcc-ar): Add.
357 (uninstall): Uninstall gcc-ar, gcc-nm, gcc-ranlib.
358 * gcc-ar.c: Add new file.
360 2011-10-28 Pat Haugen <pthaugen@us.ibm.com>
362 * config/rs6000/rs6000.md (define_attr "type"): Add vecdouble.
363 * config/rs6000/vsx.md (VStype_simple, VStype_mul): Use vecdouble
365 (VStype_div): Use vector types for V2DF/V4SF.
366 (VStype_sqrt): Use *sqrt types.
367 (VS_spdp_type): Change type to vecdouble.
368 (*vsx_fmav2df4, *vsx_nfmsv2df4, vsx_xvcvdpsxws, vsx_xvcvdpuxws,
369 vsx_xvcvuxdsp, vsx_xvcvsxwdp, vsx_xvcvuxwdp, vsx_xvcvspsxds,
370 vsx_xvcvspuxds): Likewise.
371 (*vsx_fms<mode>4): Set type via <VStype_mul>.
372 (*vsx_eq_<mode>_p, *vsx_gt_<mode>_p, *vsx_ge_<mode>_p): Set type via
374 * config/rs6000/power7.md (power7-vecstore): Correct VSU pipe.
375 (power7-fpcompare, power7-sdiv, power7-ddiv, power7-sqrt,
376 power7-dsqrt): Correct insn latency.
377 (power7-vecsimple): Add veccmp type and correct dispatch/VSU values.
378 (power7-veccmp): Delete.
379 (power7-vecfloat): Correct latency/dispatch/VSU values.
380 (define_bypass "power7-vecfloat"): Correct latency and types.
381 (power7-veccomplex, power7-vecperm): Correct dispatch/VSU values.
382 (power7-vecdouble, power7-vecfdiv, power7-vecdiv): New.
384 2011-10-28 Uros Bizjak <ubizjak@gmail.com>
386 * config/i386/i386.md (shift_insn): Rename code attribute from
387 shiftrt_insn. Also handle ashift RTX.
388 (shift): Rename code attribute from shiftrt. Also handle ashift RTX.
389 (vshift): New code attribute.
390 (<shift_insn>*): Rename from <shiftrt_insn>*. Update asm templates.
391 (any_lshift): Move and rename code iterator from ...
392 * config/i386/sse.md (lshift): ... here.
393 (lshift_insn): Remove code attribute.
394 (lshift): Remove code attribute.
395 (vlshr<mode>3): Use lshiftrt RTX.
396 (vashr<mode>3, ashrv16qi3, ashrv2di3): Use ashiftrt RTX.
397 (vashl<mode>3, ashlv16qi3): Use ashift RTX.
398 (avx2_<lshift>v<mode>): Rename from avx2_<shift_insn>v<mode>. Use
399 any_lshift code iterator. Update asm template.
400 (<shift_insn><mode>3): Macroize insn from lshr<mode>3 and ashl<mode>3
401 usign any_lshift code iterator.
402 * config/i386/mmx.md (mmx_<shift_insn><mode>3): Macroize insn from
403 mmx_lshr<mode>3 and mmx_ashl<mode>3 usign any_lshift code iterator.
404 * config/i386/i386.c (bdesc_args) <__builtin_ia32_psll>: Update.
406 2011-10-28 Georg-Johann Lay <avr@gjlay.de>
409 * config/avr/avr.md (parityhi2): Expand allowing pseudos.
410 (*parityhi2): New pre-reload insn-and-split to map 16-bit parity
412 (*parityqihi2): Same for 8-bit parity.
414 2011-10-28 Julian Brown <julian@codesourcery.com>
416 PR rtl-optimization/47918
417 * reload1.c (set_initial_label_offsets): Use initial offsets
418 for labels on the nonlocal_goto_handler_labels chain.
420 2011-10-28 Iain Sandoe <iains@gcc.gnu.org>
422 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
423 Move darwin-fpsave.asm from here to ... LIB2FUNCS_EXTRA.
424 (LIB2FUNCS_EXTRA): Add darwin-gpsave.asm.
425 (TARGET_LIBGCC2_CFLAGS): Ensure that fPIC and -pipe are inherited from
427 * config/rs6000/darwin.h (FP_SAVE_INLINE): Adjust to enable.
428 (GP_SAVE_INLINE): Likewise.
429 (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
430 RESTORE_FP_SUFFIX): Set to empty strings.
431 * config/rs6000/rs6000.c (rs6000_savres_strategy): Implement for Darwin.
432 (debug_stack_info): Print savres_strategy.
433 (rs6000_savres_routine_name): Implement for Darwin.
434 (rs6000_make_savres_rtx): Adjust used register for Darwin.
435 (rs6000_emit_prologue): Implement out-of-line saves for Darwin.
436 (rs6000_output_function_prologue): Don't emit .extern for Mach-O.
437 (rs6000_emit_epilogue): Implement out-of-line saves for Darwin.
438 * config/rs6000/darwin-gpsave.asm: New file.
440 2011-10-28 Jakub Jelinek <jakub@redhat.com>
442 * config/i386/sse.md (VI4SD_AVX2): Removed.
443 (VI48_AVX2, VI128_128, VI48_128, VI48_256): New mode iterators.
444 (vashl<mode>3): Use VI12_128 iterator instead of VI124_128.
445 Add another expander using VI48_128 iterator for
446 TARGET_AVX2 || TARGET_XOP and another using VI48_256 iterator
448 (vlshr<mode>3): Likewise. Change register_operand predicate to
449 nonimmediate_operand on last operand in the VI12_128 expander.
450 (vashr<mode>3): Use VI128_128 iterator instead of VI124_128.
451 (vashrv4si3, vashrv8si3): New expanders.
452 (avx2_ashrvv8si, avx2_ashrvv4si, avx2_<lshift>vv8si,
453 avx2_<lshift>vv2di): Removed.
454 (avx2_ashrv<mode>): New insn with VI4_AVX2 iterator.
455 (avx2_<lshift>v<mode>): Macroize using VI48_AVX2
456 iterator. Simplify pattern.
458 2010-10-28 Richard Guenther <rguenther@suse.de>
461 * lto-wrapper.c (get_options_from_collect_gcc_options):
462 Properly count arguments.
463 (run_gcc): Use an obstack to collect argv, properly separate
464 switches and their arguments.
466 2011-10-28 Jakub Jelinek <jakub@redhat.com>
468 * tree-vect-stmts.c (vectorizable_shift): Give up if op1 has different
469 vector mode from vectype's mode.
471 2011-10-28 Chung-Lin Tang <cltang@codesourcery.com>
473 PR rtl-optimization/49720
474 * simplify-rtx.c (simplify_relational_operation_1): Detect
475 infinite recursion condition in "(eq/ne (plus x cst1) cst2)
476 simplifies to (eq/ne x (cst2 - cst1))" case.
478 2011-10-27 David S. Miller <davem@davemloft.net>
480 * config/sparc/sparc.md (snedi_special): Only match when not VIS3.
481 (*snedi_zero): Likewise.
482 (*snedi_zero_trunc): Likewise.
483 (snedi_special_vis3): New expander.
484 (*snedi_zero_vis3): New insn.
485 (*snedi_zero_trunc_vis3): Likewise.
486 (*sltu_insn_vis3): Likewise.
487 (*sltu_insn_vis3_trunc): Likewise.
489 (*addxc_trunc_sp64_vis3): Likewise.
490 * config/sparc/sparc.c (emit_scc_insn): When VIS3 use the
491 gen_snedi_special_vis3 expander, and try GTU/LTU addx based
492 sequences on DImode values.
494 * config/sparc/sparc.md (64-bit vector moves): Use 'e' not 'f'
497 * regcprop.c (copyprop_hardreg_forward_1): Reject the
498 transformation when we narrow the mode on big endian.
500 2011-10-27 Jakub Jelinek <jakub@redhat.com>
502 * config/i386/sse.md (avx_cvtpd2dq256_2, avx_cvttpd2dq256_2,
503 vec_pack_sfix_trunc_v4df, vec_pack_sfix_v4df): New expanders.
504 (*avx_cvtpd2dq256_2, *avx_cvttpd2dq256_2): New insns.
506 * config/i386/i386.c (ix86_print_operand): Handle 'q' and 'x'
507 overrides for -masm=intel memory.
508 * config/i386/sse.md (sse2_cvtdq2pd, sse2_cvtps2pd,
509 sse4_1_<code>v8qiv8hi2, avx2_<code>v8qiv8si2,
510 sse4_1_<code>v4hiv4si2, avx2_<code>v4hiv4di2,
511 sse4_1_<code>v2siv2di2): Use %q1 instead of %1 for -masm=intel.
512 (sse4_1_<code>v4qiv4si2, avx2_<code>v4qiv4di2,
513 sse4_1_<code>v2hiv2di2): Use %k1 instead of %1 for -masm=intel.
514 (sse4_1_<code>v2qiv2di2): Use %w1 instead of %1 for -masm=intel.
516 2011-10-27 Martin Jambor <mjambor@suse.cz>
518 * ipa-prop.c (compute_pass_through_member_ptrs): Rename parm_info
520 (ipa_compute_jump_functions_for_edge): Likewise.
521 (ipa_compute_jump_functions): Likewise.
522 (ipa_analyze_indirect_call_uses): Likewise.
523 (ipa_analyze_call_uses): Likewise.
524 (ipa_analyze_params_uses): Likewise.
525 (ipa_analyze_node): Likewise.
527 2011-10-27 Uros Bizjak <ubizjak@gmail.com>
530 * config/i386/sse.md (*avx_unpcklpd256): Remove extra insn
531 constraints. Change alternative 1 to "x,m,1".
533 2011-10-27 Jakub Jelinek <jakub@redhat.com>
535 * Makefile.in (build/gencheck.o): Depend on tree.def and
536 c-family/c-common.def.
538 * tree-ssa-strlen.c: Include expr.h.
539 (get_stridx): Don't use c_strlen, instead use string_constant
540 and compute string length from it.
541 * Makefile.in (tree-ssa-strlen.o): Depend on $(EXPR_H).
543 2011-10-27 Eric Botcazou <ebotcazou@adacore.com>
545 PR rtl-optimization/46603
547 * reload.c (push_reload): In the out case, restore previous behavior
548 for subregs that don't have word mode.
550 2011-10-27 Ian Lance Taylor <iant@google.com>
552 * cppdefault.c: Undef NATIVE_SYSTEM_HEADER_DIR if
553 CROSS_DIRECTORY_STRUCTURE is defined and TARGET_SYSTEM_ROOT is not.
554 (cpp_include_defaults): Only use NATIVE_SYSTEM_HEADER_DIR if it is
557 2011-10-27 Richard Henderson <rth@redhat.com>
559 * optabs.c (expand_vec_perm): Use the correct mode for scaling the
560 selector. Save the qimode constant selector for later use by the
561 qimode vec_perm pattern.
563 2011-10-27 Bernd Schmidt <bernds@codesourcery.com>
565 * config/c6x/c6x.c (unit_req_imbalance, res_mii): Cast the first arg
566 to unit_req_factor to the right enum type.
567 (get_unit_operand_masks, reshuffle_units, try_rename_operands,
568 hwloop_optimize): Remove unused variables.
570 2010-10-27 Richard Guenther <rguenther@suse.de>
573 * tree-vect-generic.c (do_binop): Handle scalar operands.
575 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
578 * config/i386/sse.md (*vec_extract_v4sf_mem): Avoid combining registers
579 from different units in a single alternative.
581 2011-10-26 David S. Miller <davem@davemloft.net>
583 * config/sparc/sparc.c (emit_scc_insn): Force attempt of v9 sequences
584 if we're comparing DImode and comparison is other than EQ or NE.
586 * config/sparc/sparc.c (emit_scc_insn): Do not try v9 sequences until
587 LEU/LTU/GEU/GTU is attempted.
588 * config/sparc/sparc.md (*neg_snesi_sign_extend): New 64-bit insn
590 (*neg_seqsi_sign_extend): Likewise.
591 (*sltu_extend_sp64, *neg_sltu_extend_sp64, *sgeu_extend_sp64,
592 *neg_sgeu_extend_sp64): New insns.
594 * config/sparc/sparc-protos.h (sparc_expand_conditional_move): Declare.
595 * config/sparc/sparc.md (mov<I:mode>cc, mov<F:mode>cc): Call it.
596 (*mov<I:mode>_cc_v9): Normalize to expect operand 0 always in operand 4.
597 (*mov<I:mode>_cc_reg_sp64): Likewise.
598 (*movsf_cc_v9): Likewise.
599 (*movsf_cc_reg_sp64): Likewise.
600 (*movdf_cc_v9): Likewise.
601 (*movdf_cc_reg_sp64): Likewise.
602 (*movtf_cc_hq_v9): Likewise.
603 (*movtf_cc_reg_hq_sp64): Likewise.
604 (*movtf_cc_v9): Likewise.
605 (*movtf_cc_reg_sp64): Likewise.
606 * config/sparc/sparc.c (sparc_expand_conditional_move): New function.
607 (sparc_print_operand): Delete 'c' and 'd' handling, no longer used.
609 2011-10-26 Eric Botcazou <ebotcazou@adacore.com>
611 * reload.c (reload_inner_reg_of_subreg): Change type of return value
612 and type of OUTPUT parameter to bool and adjust. Document MODE and
613 OUTPUT parameters. Use HARD_REGISTER_P. Reorder final condition
614 and improve associated comment.
615 (push_reload): Clarify and update comments about reloading of subregs.
616 Adjust calls to reload_inner_reg_of_subreg. Compute the class upfront
617 for the reloading of subregs in the out case as well.
619 2011-10-26 Alexandre Oliva <aoliva@redhat.com>
622 * var-tracking.c (rtx_debug_expr_p): New.
623 (use_type): Don't use debug exprs to track non-VTA variables.
625 2011-10-26 Jeff Law <law@redhat.com>
627 * doc/invoke.texi (sink-frequency-threshold): Document.
628 * tree-ssa-sink.c: Include params.h.
629 (select_best_block): New function.
630 (statement_sink_location): Use it.
631 * params.def (SINK_FREQUENCY_THRESHOLD): New PARAM.
633 2011-10-26 Iain Sandoe <iains@gcc.gnu.org>
636 * config/darwin.c (top level): Amend comments concerning LTO output.
637 (lto_section_num): New variable. (darwin_lto_section_e): New GTY.
638 (LTO_SECTS_SECTION, LTO_INDEX_SECTION): New.
639 (LTO_NAMES_SECTION): Rename.
640 (darwin_asm_named_section): Record LTO section counts and switches
641 in a vec of darwin_lto_section_e.
642 (darwin_file_start): Remove unused code.
643 (darwin_file_end): Put an LTO section termination label. Handle
644 output of the wrapped LTO sections, index and names table.
646 2011-10-26 Alan Modra <amodra@gmail.com>
648 * config/rs6000/rs6000.c (rs6000_make_savres_rtx): Delete unneeded
650 (rs6000_emit_stack_reset): Only return insn emitted when it adjusts sp.
651 (rs6000_make_savres_rtx): Rename to rs6000_emit_savres_rtx. Use
652 simple_return in pattern, emit instruction, and set jump_label.
653 (rs6000_emit_prologue): Update for rs6000_emit_savres_rtx. Use
654 simple_return rather than return.
655 (emit_cfa_restores): New function.
656 (rs6000_emit_epilogue): Emit cfa_restores when flag_shrink_wrap.
657 Add missing cfa_restores for SAVE_WORLD. Add missing LR cfa_restore
658 when using out-of-line gpr restore. Add missing LR and FP regs
659 cfa_restores for out-of-line fpr restore. Consolidate code setting
660 up cfa_restores. Formatting. Use LR_REGNO define.
661 (rs6000_output_mi_thunk): Use simple_return rather than return.
662 * config/rs6000/rs6000.md (sibcall*, sibcall_value*): Likewise.
663 (return_internal*): Likewise.
664 (any_return, return_pred, return_str): New iterators.
665 (return, conditional return insns): Provide both return and
666 simple_return variants.
667 * config/rs6000/rs6000.h (EARLY_R12, LATE_R12): Define.
668 (REG_ALLOC_ORDER): Move r12 before call-saved regs when FIXED_R13.
669 Move r11 and r0 later to suit shrink-wrapping.
671 2011-10-26 Richard Guenther <rguenther@suse.de>
673 * lto-wrapper.c (run_gcc): Properly init/free obstack.
675 2011-10-26 Jakub Jelinek <jakub@redhat.com>
677 * config/i386/i386.md (UNSPEC_VSIBADDR): New.
678 * config/i386/predicates.md (vsib_address_operand,
679 vsib_mem_operator): New predicates.
680 * config/i386/i386.c (ix86_print_operand_address): Handle
681 UNSPEC_VSIBADDR addresses.
682 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>,
683 avx2_gatherdi<mode>256): Adjust expanders to use MEM with
684 UNSPEC_VSIBADDR address.
685 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>256):
686 Adjust insns to use MEM with UNSPEC_VSIBADDR address.
688 2011-10-26 Tom de Vries <tom@codesourcery.com>
690 PR tree-optimization/50763
691 * tree-ssa-tail-merge.c (replace_block_by): Update vops if phi_vuse1 or
692 phi_vuse2 is NULL_TREE only if bb1 dominates or is dominated by bb2.
694 2011-10-26 Richard Guenther <rguenther@suse.de>
697 * Makefile.in (lto-wrapper): Depend on and link against opts-common.o.
698 (lto-wrapper.o): Depend on $(OPTS_H) and $(OPTIONS_H).
699 * lto-wrapper.c (get_options_from_collect_gcc_options): New function.
700 (run_gcc): Use it. Filter out language specific options.
702 2011-10-26 Andreas Tobler <andreast@fgznet.ch>
704 * config/i386/freebsd64.h (LINK_SPEC): Emit the same warning as the
707 2011-10-25 Paolo Carlini <paolo.carlini@oracle.com>
710 * gcc.c (main): Fix fatal_error string for translation.
712 2011-10-25 Ian Lance Taylor <iant@google.com>
714 * tree-eh.c (do_return_redirection): Remove return_value_p
715 parameter. Change all callers.
716 (lower_try_finally_nofallthru): Remove local return_val.
717 (lower_try_finally_onedest): Likewise.
718 (lower_try_finally_copy): Likewise.
719 (lower_try_finally_switch): Likewise.
721 2011-10-25 H.J. Lu <hongjiu.lu@intel.com>
723 * config/i386/mmx.md (*mmx_maskmovq): Replace :SI with :P and
724 remove "&& !TARGET_64BIT"
725 (*mmx_maskmovq_rex): Removed.
727 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
729 PR rtl-optimization/46603
730 * reload.c (push_reload): In the out case, reload the subreg as well
731 as the reg if it has word mode.
733 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
735 * dwarf2out.c (add_gnat_descriptive_type_attribute): Temporarily
736 suppress debug info for the parent type.
738 2011-10-25 Eric Botcazou <ebotcazou@adacore.com>
740 * config/ia64/ia64.c (ia64_profile_hook): Fix thinko.
742 2011-10-25 Richard Henderson <rth@redhat.com>
744 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Remove.
745 (vec_extract_even<mode>, vec_extract_odd<mode>): Remove.
747 * config/rs6000/altivec.md (vec_extract_evenv8hi,
748 vec_extract_evenv16qi, vec_extract_oddv4si,
749 vec_extract_oddv4sf): Remove.
751 * config/spu/spu.md (vec_extract_evenv4si, vec_extract_evenv4sf,
752 vec_extract_evenv8hi, vec_extract_evenv16qi, vec_extract_oddv4si,
753 vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
754 vec_interleave_highv4sf, vec_interleave_lowv4sf,
755 vec_interleave_highv4si, vec_interleave_lowv4si,
756 vec_interleave_highv8hi, vec_interleave_lowv8hi,
757 vec_interleave_highv16qi, vec_interleave_lowv16qi): Remove.
759 * expr.c (expand_expr_real_2) [VEC_EXTRACT_EVEN_EXPR]: Use binop.
760 [VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR]: Likewise.
761 [VEC_INTERLEAVE_LOW_EXPR]: Likewise.
762 * optabs.c (expand_binop): Implement vec_interleave_high_optab,
763 vec_interleave_low_optab, vec_extract_even_optab,
764 vec_extract_odd_optab with expand_vec_perm.
765 (can_vec_perm_for_code_p): New.
767 * tree-vect-data-refs.c (vect_strided_store_supported): Allow for
768 fallback via can_vec_perm_for_code_p.
769 (vect_strided_load_supported): Likewise.
770 * tree-vect-generic.c (expand_vector_operations_1): Never lower
771 VEC_INTERLEAVE_HIGH_EXPR, VEC_INTERLEAVE_LOW_EXPR,
772 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR.
774 * target.def (vec_perm_const_ok): Change parameters to mode and
776 * doc/tm.texi: Rebuild.
777 * config/i386/i386.c (ix86_vectorize_vec_perm_const_ok): Change
778 parameters to mode and array of indicies.
779 * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Expand operands here.
780 * optabs.c (can_vec_perm_p): Rename from can_vec_perm_expr_p.
781 Change parameters to mode and array of indicies.
782 (expand_vec_perm_1): Rename from expand_vec_perm_expr_1.
783 (expand_vec_perm): Rename from expand_vec_perm_expr. Change
784 parameters to mode and rtx inputs. Try lowering to QImode
785 vec_perm_const before trying fully variable permutation.
786 * optabs.h: Update decls.
787 * tree-vect-generic.c (lower_vec_perm): Extract array of indices from
788 VECTOR_CST to pass to can_vec_perm_p.
789 * tree-vect-slp.c (vect_get_mask_element): Change mask parameter type
790 from int pointer to unsigned char pointer.
791 (vect_transform_slp_perm_load): Update for change to can_vec_perm_p.
792 * tree-vect-stmts.c (perm_mask_for_reverse): Likewise.
794 * tree.def (VEC_EXTRACT_EVEN_EXPR): Fix typo in text name.
795 (VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
796 VEC_INTERLEAVE_LOW_EXPR): Likewise.
798 2011-10-25 Mike Stump <mikestump@comcast.net>
800 * reload.c (regno_clobbered_p): Fix typo.
802 2011-10-25 Dodji Seketeli <dodji@redhat.com>
804 * input.c (expand_location): Rewrite using linemap_resolve_location
805 and linemap_expand_location. Add a comment.
807 2011-10-25 Jakub Jelinek <jakub@redhat.com>
809 PR tree-optimization/50596
810 * tree-vect-stmts.c (vect_mark_relevant): Only use
811 FOR_EACH_IMM_USE_FAST if lhs is SSA_NAME.
812 (vectorizable_store): If is_pattern_stmt_p look through
813 VIEW_CONVERT_EXPR on lhs.
814 * tree-vect-patterns.c (check_bool_pattern, adjust_bool_pattern):
815 Use unsigned type instead of signed.
816 (vect_recog_bool_pattern): Optimize also stores into bool memory in
817 addition to casts from bool to integral types.
818 (vect_mark_pattern_stmts): If pattern_stmt already has vinfo
819 created, don't create it again.
821 2011-10-25 Kai Tietz <ktietz@redhat.com>
823 * config/i386/i386.c (ix86_frame_pointer_required): Require
824 frame-pointer, if setjmp is used for 32-bit ms-abi.
826 2011-10-24 Michael Meissner <meissner@linux.vnet.ibm.com>
828 * builtins.c (set_builtin_user_assembler_name): Remove extra
829 newline added in October 11th, 2011 change.
831 2011-10-24 David S. Miller <davem@davemloft.net>
833 * config/sparc/little-endian.opt: Delete.
834 * config.gcc: Remove references to config/sparc/little-endian.opt
835 * doc/invoke.texi: Remove documentation of -mlittl-endian on sparc.
836 * config/sparc/linux64.h: Delete references to -mlittle-endian.
837 * config/sparc/netbsd-elf.h: Likewise.
838 * config/sparc/openbsd64.h: Likewise.
839 * config/sparc/sparc.h: Likewise.
840 * config/sparc/sp64-elf.h: Likewise and delete overrides for
841 BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
842 * config/sparc/sparc.c (dump_target_flag_bits): Remove reference
843 to MASK_LITTLE_ENDIAN.
844 * config/sparc/sparc.opt (Mask(LITTLE_ENDIAN)): Delete.
846 * config/sparc/sparc.md: Only use F, G, and C constraints in FP insns.
847 Only use D, Y, and Z constraints in vector insns.
849 * config/sparc/sparc.md (cpu_feature, enabled): New attributes.
850 (*movsi_insn_novis3, *movsi_insn_vis3): Consolidate into one pattern
852 (*movdi_insn_sp32_v9_novis3, *movdi_insn_sp32_v9_vis3): Consolidate
853 into *movdi_insn_sp32.
854 (*movdi_insn_sp64_novis3, *movdi_insn_sp64_vis3): Consolidate into
855 one pattern called *movdi_insn_sp64.
856 (*movsf_insn_novis3, *movsf_insn_vis3, *movsf_insn_no_fpu):
857 Consolidate into one pattern called *movsf_insn.
858 (*movdf_insn_sp32_no_fpu, *movdf_insn_sp32_v9_novis3,
859 *movdf_insn_sp32_v9_vis3, *movdf_insn_sp32_v9_no_fpu): Consolidate
860 into *movdf_insn_sp32.
861 (*movdf_insn_sp64_novis3, *movdf_insn_sp64_vis3,
862 *movdf_insn_sp64_no_fpu): Consolidate into one pattern called
864 (*zero_extendsidi2_insn_sp64_novis3,
865 *zero_extendsidi2_insn_sp64_vis3): Consolidate into one pattern
866 called *zero_extendsidi2_insn_sp64.
867 (*sign_extendsidi2_insn_novis3, *sign_extendsidi2_insn_vis3):
868 Consolidate into one pattern named *sign_extendsidi2_insn.
869 (*mov<VM32:mode>_insn_novis3, *mov<VM32:mode>_insn_vis3):
870 Consolidate into one pattern named *mov<VM32:mode>_insn.
871 (*mov<VM64:mode>_insn_sp64_novis3,
872 *mov<VM64:mode>_insn_sp64_novis3): Consolidate into one pattern
873 named *mov<VM64:mode>_insn_sp64.
874 (*mov<VM64:mode>_insn_sp32_novis3,
875 *mov<VM64:mode>_insn_sp32_vis3): Consolidate into one pattern
876 named *mov<VM64:mode>_insn_sp32.
878 2011-10-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
880 * tree-ssa-strlen.c (get_string_length): Change assertion to STPCPY.
881 (zero_length_string): Change assertion to accept strinfo without
882 length but with stmt instead.
883 Set the endptr pointer also if starting a new chain.
884 (adjust_related_strinfos): Ignore strinfos marked for delayed
886 (handle_builtin_strcpy): Mark earlier strinfo elements also for
887 delayed length computation.
889 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
892 Port from 4.6 branch r180379
893 * doc/invoke.texi (AVR Options): New subsubsection to explain EIND
894 handling and indirect jump/calls on devices > 128k.
896 2011-10-24 Anatoly Sokolov <aesok@post.ru>
897 Georg-Johann Lay <avr@gjlay.de>
900 * doc/extend.texi (Declaring Attributes of Functions):
901 Document OS_main and OS_task attributes.
902 (Specifying Attributes of Variables): Move up
903 subsection "AVR Variable Attributes" as of alphabetical order.
905 2011-10-24 Richard Guenther <rguenther@suse.de>
907 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Convert constants
908 to vector element type.
909 (vectorizable_assignment): Bail out for non-mode-precision operations.
910 (vectorizable_shift): Likewise.
911 (vectorizable_operation): Likewise.
912 (vectorizable_type_demotion): Likewise.
913 (vectorizable_type_promotion): Likewise.
914 (vectorizable_store): Handle non-mode-precision stores.
915 (vectorizable_load): Handle non-mode-precision loads.
916 (get_vectype_for_scalar_type_and_size): Return a vector type
917 for non-mode-precision integers.
918 * tree-vect-loop.c (vectorizable_reduction): Bail out for
919 non-mode-precision reductions.
921 2011-10-24 Julian Brown <julian@codesourcery.com>
923 * config/m68k/m68k.c (notice_update_cc): Tighten condition for
924 setting CC_REVERSED for FP comparisons.
926 2011-10-24 Richard Guenther <rguenther@suse.de>
928 PR tree-optimization/50838
929 * tree-data-ref.c (dr_analyze_indices): Properly canonicalize
930 a MEM_REF base if we change it.
932 2011-10-24 Bernd Schmidt <bernds@codesourcery.com>
935 * rtlanal.c: Swap includes of "hard-reg-set.h" and "rtl.h".
937 PR rtl-optimization/50833
938 * function.c (thread_prologue_and_epilogue_insns): Expect the
939 return insn optimization only if optimize.
941 2011-10-24 Georg-Johann Lay <avr@gjlay.de>
943 * config/avr/avr.c: Break long lines.
944 Define target hooks on the fly if applicable.
945 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove first definition
947 (targetm): Move definition to end of file.
948 (avr_can_eliminate): Make static on the fly.
949 (avr_frame_pointer_required_p): Ditto.
950 (avr_hard_regno_scratch_ok): Ditto.
951 (avr_builtin_setjmp_frame_value): Make static on the fly.
952 Indent according to coding rules.
953 (avr_case_values_threshold): Ditto.
954 (avr_attribute_table): Move down.
956 2011-10-24 Ira Rosen <ira.rosen@linaro.org>
958 PR tree-optimization/50730
959 * tree-vect-data-refs.c (vect_analyze_data_refs): Stop basic block
960 analysis if encountered unsupported data-ref.
962 2011-10-23 David S. Miller <davem@davemloft.net>
964 * config/sparc/sparc.c (sparc_option_override): Remove -mv8plus
966 * config/sparc/linux64.h (CC1_SPEC): When defaulting to 64-bit,
967 append -mcpu=v9 when -mv8plus is given.
969 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): We can move
970 between float and non-float regs when VIS3.
971 * config/sparc/sparc.c (eligible_for_restore_insn): We can't
972 use a restore when the source is a float register.
973 (sparc_split_regreg_legitimate): When VIS3 allow moves between
974 float and integer regs.
975 (sparc_register_move_cost): Adjust to account for VIS3 moves.
976 (sparc_preferred_reload_class): On 32-bit with VIS3 when moving an
977 integer reg to a class containing EXTRA_FP_REGS, constrain to FP_REGS.
978 (sparc_secondary_reload): On 32-bit with VIS3 when moving between
979 float and integer regs we sometimes need a FP_REGS class
980 intermediate move to satisfy the reload. When this happens
981 specify an extra cost of 2.
982 (*movsi_insn): Rename to have "_novis3" suffix and add !VIS3 guard.
983 (*movdi_insn_sp32_v9): Likewise.
984 (*movdi_insn_sp64): Likewise.
985 (*movsf_insn): Likewise.
986 (*movdf_insn_sp32_v9): Likewise.
987 (*movdf_insn_sp64): Likewise.
988 (*zero_extendsidi2_insn_sp64): Likewise.
989 (*sign_extendsidi2_insn): Likewise.
990 (*movsi_insn_vis3): New insn.
991 (*movdi_insn_sp32_v9_vis3): New insn.
992 (*movdi_insn_sp64_vis3): New insn.
993 (*movsf_insn_vis3): New insn.
994 (*movdf_insn_sp32_v9_vis3): New insn.
995 (*movdf_insn_sp64_vis3): New insn.
996 (*zero_extendsidi2_insn_sp64_vis3): New insn.
997 (*sign_extendsidi2_insn_vis3): New insn.
998 (TFmode reg/reg split): Make sure both REG operands are float.
999 (*mov<VM32:mode>_insn): Add "_novis3" suffix and !VIS3 guard. Remove
1000 easy constant to integer reg alternatives.
1001 (*mov<VM64:mode>_insn_sp64): Likewise.
1002 (*mov<VM64:mode>_insn_sp32_novis3): Likewise.
1003 (*mov<VM32:mode>_insn_vis3): New insn.
1004 (*mov<VM64:mode>_insn_sp64_vis3): New insn.
1005 (*mov<VM64:mode>_insn_sp32_vis3): New insn.
1006 (VM64 reg<-->reg split): New splitter for 32-bit.
1008 * config/sparc/sparc.c (sparc_split_regreg_legitimate): New function.
1009 * config/sparc/sparc-protos.h (sparc_split_regreg_legitimate):
1011 * config/sparc/sparc.md (DImode reg/reg split): Use it.
1012 (DFmode reg/reg split): Likewise.
1014 * config/sparc/sparc.md (*movdi_insn_sp32_v9): Add alternatives for
1015 generating fzero and fone instructions.
1016 (DImode const_int --> reg splitter): Only trigger for integer regs.
1018 * config/sparc/predicates.md (input_operand): Disallow vector
1019 constants other than 0 and -1.
1020 * config/sparc/sparc.c (sparc_preferred_reload_class): Return
1021 NO_REGS for vector constants other than 0 and -1.
1023 * config/sparc/sparc.h (SPARC_FIRST_INT_REG, SPARC_LAST_INT_REG,
1024 SPARC_INT_REG_P): Define.
1025 (HARD_REGNO_NREGS): Use SPARC_INT_REG_P.
1026 (REGNO_OK_FOR_INDEX_P): Likewise.
1027 * config/sparc/sparc.c (gen_df_reg): Likewise.
1028 (eligible_for_return_delay): Likewise.
1029 (eligible_for_sibcall_delay): Likewise.
1030 (sparc_legitimate_address_p): Likewise.
1031 (emit_save_or_restore_regs): Likewise.
1032 (registers_ok_for_ldd_peep): Likewise.
1033 * config/spac/sparc.md (DI mode splitters): Likewise.
1034 (SF mode const splitters): Likewise.
1035 (DF mode splitters): Likewise.
1036 (32-bit DI mode logical op splitters): Likewise.
1038 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1042 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1045 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
1047 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
1049 * config/i386/sse.md (avx2_lshl<mode>3): Remove insn pattern.
1050 (VI248_256): Remove mode iterator.
1051 * config/i386/i386.c (ix86_expand_vec_perm): Use gen_ashlv4di3
1052 instead of gen_avx2_lshlv4di3.
1053 (bdesc_args): Use CODE_FOR_ashl{v16hi,v8si,v4di}3 instead of
1054 CODE_FOR_avx2_lshl{v16hi,v8si,v4di}3.
1056 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
1058 * config/i386/sse.md (sseintprefix): Rename from gthrfirstp.
1059 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>): Delete expander.
1060 (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>) Merge insn
1061 pattern from *avx2_maskload<ssemodesuffix><avxsizesuffix> and
1062 *avx_maskload<ssemodesuffix><avxsizesuffix> using V48_AVX mode
1063 iterator. Use sseintprefix mode attribute.
1064 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Delete expander.
1065 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>) Merge insn
1066 pattern from *avx2_maskstore<ssemodesuffix><avxsizesuffix> and
1067 *avx_maskstore<ssemodesuffix><avxsizesuffix> using V48_AVX mode
1068 iterator. Use sseintprefix mode attribute.
1069 (*avx2_gathersi<mode>) Use sseintprefix and ssemodesuffix mode
1071 (*avx2_gatherdi<mode>): Ditto.
1072 (*avx2_gatherdi<mode>256): Ditto.
1073 (VI48_AVX2): Remove mode iterator.
1074 (gthrlastfp): Remove mode attribute.
1076 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1079 * doc/invoke.texi ([-Wnarrowing], [-Wc++0x-compat]): Update.
1081 2011-10-23 Tom de Vries <tom@codesourcery.com>
1083 PR tree-optimization/50763
1084 * tree-ssa-tail-merge.c (same_succ_flush_bb): New function, factored
1086 (same_succ_flush_bbs): Use same_succ_flush_bb.
1087 (purge_bbs): Remove argument. Remove calls to same_succ_flush_bbs,
1088 release_last_vdef and delete_basic_block.
1089 (unlink_virtual_phi): New function.
1090 (update_vuses): Add and use vuse1_phi_args argument. Set var to
1091 SSA_NAME_VAR of vuse1 or vuse2, and use var. Handle case that
1092 def_stmt2 is NULL. Use phi result as phi arg in case vuse1 or vuse2
1093 is NULL_TREE. Replace uses of vuse1 if vuse2 is NULL_TREE. Fix code
1094 to limit replacement of uses. Propagate phi argument for phis with a
1096 (replace_block_by): Update vops if phi_vuse1 or phi_vuse2 is NULL_TREE.
1097 Set vuse1_phi_args if vuse1 is a phi defined in bb1. Add
1098 vuse1_phi_args as argument to call to update_vuses. Call
1099 release_last_vdef, same_succ_flush_bb, delete_basic_block. Update
1100 CDI_DOMINATORS info.
1101 (tail_merge_optimize): Remove argument in call to purge_bbs. Remove
1102 call to free_dominance_info. Only call calculate_dominance_info once.
1104 2011-10-23 Eric Botcazou <ebotcazou@adacore.com>
1106 * fold-const.c (invert_tree_comparison): Always invert EQ_EXPR/NE_EXPR.
1108 PR tree-optimization/44683
1109 * tree-ssa-dom.c (record_edge_info): Record simple equivalences only if
1110 we can be sure that there are no signed zeros involved.
1112 2011-10-23 Jan Hubicka <jh@suse.cz>
1114 * ipa-inline.c (estimate_badness): Scale up and handle overflows.
1116 2011-10-23 Uros Bizjak <ubizjak@gmail.com>
1119 * config/i386/sse.md (<avx_avx2>_maskload<ssemodesuffix><avxsizesuffix>):
1120 Remove (match_dup 0).
1121 (*avx2_maskload<ssemodesuffix><avxsizesuffix>): New insn pattern.
1122 (*avx_maskload<ssemodesuffix><avxsizesuffix>): Ditto.
1123 (*avx2_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
1124 (*avx_maskstore<ssemodesuffix><avxsizesuffix>): Ditto.
1125 (*avx2_maskmov<ssemodesuffix><avxsizesuffix>): Remove insn pattern.
1126 (*avx_maskmov<ssemodesuffix><avxsizesuffix>): Ditto.
1128 2011-10-23 Ira Rosen <ira.rosen@linaro.org>
1130 PR tree-optimization/50819
1131 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Remove
1133 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
1134 vect_analyze_data_ref_dependences.
1135 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Remove
1136 the last argument. Check load-after-store dependence for unknown
1137 dependencies in basic blocks.
1138 (vect_analyze_data_ref_dependences): Update call to
1139 vect_analyze_data_ref_dependences.
1140 * tree-vect-patterns.c (vect_recog_widen_shift_pattern): Fix typo.
1141 * tree-vect-slp.c (vect_bb_vectorizable_with_dependencies): Remove.
1142 (vect_slp_analyze_bb_1): Update call to
1143 vect_analyze_data_ref_dependences. Don't call
1144 vect_bb_vectorizable_with_dependencies.
1146 2011-10-22 David S. Miller <davem@davemloft.net>
1148 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS,
1149 SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
1150 * config/sparc/sparc.c (TARGET_SECONDARY_RELOAD): Redefine.
1151 (sparc_secondary_reload): New function.
1153 * config/sparc/sparc.h (sparc_costs): Remove extern decl.
1154 (struct processor_costs): Move from here..
1155 * config/sparc/sparc.c (struct processor_costs): To here.
1156 (sparc_costs): Mark static.
1158 * config/sparc/sparc.c (short_branch, reg_unused_after): Delete.
1159 * config/sparc/sparc-protos.h (short_branch, reg_unused_after):
1160 Get rid of declarations.
1162 2011-10-21 Paul Brook <paul@codesourcery.com>
1164 * config/c6x/c6x.c (c6x_asm_emit_except_personality,
1165 c6x_asm_init_sections): New functions.
1166 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): Define.
1168 2011-10-21 Jakub Jelinek <jakub@redhat.com>
1171 * config/i386/i386.c (expand_vec_perm_even_odd_1): Handle
1172 V4DImode and V8SImode for !TARGET_AVX2.
1174 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
1177 * sched-deps.c (add_dependence): If not doing predication, promote
1178 REG_DEP_CONTROL to REG_DEP_ANTI.
1180 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
1182 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Pass address of X
1183 instead of X to avr_legitimize_reload_address.
1184 * config/avr/avr-protos.h (avr_legitimize_reload_address): Change
1185 first argument's type from rtx to rtx*.
1186 * config/avr/avr.c (avr_legitimize_reload_address): Ditto.
1187 Pass PX to push_reload instead of &X. Change log messages for
1190 2011-10-21 Roland Stigge <stigge@antcom.de>
1192 PR translation/47064
1193 * params.def: Fix typo "compilatoin" -> "compilation".
1195 2011-10-21 H.J. Lu <hongjiu.lu@intel.com>
1196 Kirill Yukhin <kirill.yukhin@intel.com>
1199 * config/i386/driver-i386.c (host_detect_local_cpu): Do cpuid 7 only
1200 if max_level allows that.
1202 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
1204 * reg-notes.def (DEP_CONTROL): New.
1205 * sched-ebb.c (add_deps_for_risky_insns): Add a REG_DEP_CONTROL when
1206 not doing speculation.
1207 * rtlanal.c (record_hard_reg_sets, find_all_hard_reg_sets,
1208 record_hard_reg_uses_1, record_hard_reg_uses): New functions.
1209 * function.c (record_hard_reg_sets, record_hard_reg_uses,
1210 record_hard_reg_uses_1): Remove; move to rtlanal.c.
1211 * lists.c (copy_INSN_LIST, concat_INSN_LIST): New functions.
1212 * haifa-sched.c: Swap includes of "rtl.h" and "hard-reg-set.h".
1213 (MUST_RECOMPUTE_SPEC_P): New macro.
1214 (real_insn_for_shadow): New function.
1215 (cond_clobbered_p, recompute_todo_spec, check_clobbered_conditions,
1216 toggle_cancelled_flags): New static functions.
1217 (schedule_insn): Relax an assert to only check for empty hard back
1218 dependencies. Skip cancelled dependencies. Call
1219 check_clobbered_conditions.
1220 (copy_insn_list): Remove function, renamed moved to lists.c.
1221 (save_backtrack_point): Use new spelling copy_INSN_LIST.
1222 (unschedule_insns_until): Ensure TODO_SPEC is reset properly.
1223 (restore_last_backtrack_point): Likewise. Call toggle_cancelled_flags.
1224 (estimate_insn_tick): Ignore cancelled dependencies.
1225 (haifa_speculate_insn): Move declaration.
1226 (try_ready): Move code into recompute_todo_spec and call it. Tweak
1227 some asserts. Ensure predicated patterns are restored if necessary.
1228 Dump DEP_CONTROL flag.
1229 (haifa_change_pattern): Merge with sched_change_pattern.
1230 (sched_change_pattern): Remove function.
1231 * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP): Remove. All
1232 uses changed to simply not test NON_FLUSH_JUMP_P.
1233 (ds_to_dk, dk_to_ds, dump_dep, ds_to_dt, dump_ds, check_dep): Handle
1235 (dep_spec_p): If DO_PREDICATION, REG_DEP_CONTROL is speculative.
1236 (reg_pending_control_uses, control_dependency_cache): New static
1238 (sched_get_reverse_condition_uncached): New function.
1239 (sd_find_dep_between): Remove pointless assert. Look in
1240 control_dependency_cache.
1241 (ask_dependency_caches, set_dependency_caches, sd_delete_dep,
1242 extend_dependency_caches, sched_deps_finish): Handle REG_DEP_CONTROL
1243 and control_dependency_cache.
1244 (sd_unresolve_dep): Use dep_spec_p.
1245 (add_dependence): Now a wrapper around add_dependence_1, handling
1246 REG_DEP_CONTROL specially.
1247 (flush_pending_lists): Clear pending_jump_insns.
1248 (sched_analyze_1): Handle pending_jump_insns like a memory flush.
1249 (sched_analyze_2): Unconditionally add to pending memory flushes,
1250 keep previous behaviour but apply it to pending_jump_insns instead.
1251 (sched_analyze_insn): Defer adding jump reg dependencies using
1252 reg_pending_control_uses; add them to the control_uses list. Handle
1253 pending_jump_insns and control_uses when adding dependence lists.
1254 (deps_analyze_insn): Update INSN_COND_DEPS.
1255 (deps_analyze_insn): Add jumps to pending_jump_insns rather than
1256 last_pending_memory_flush.
1257 (init_deps): Initialize pending_jump_insns.
1258 (free_deps): Free control_uses.
1259 (remove_from_deps): Remove from pending_jump_insns.
1260 (init_deps_global): Allocate reg_pending_control_uses).
1261 (finish_deps_global): Free it.
1262 (add_dependence_1): Renamed from add_dependence. Handle
1264 * rtl.h (record_hard_reg_uses, find_all_hard_reg_sets): Declare.
1265 (copy_INSN_LIST, concat_INSN_LIST): Declare.
1266 * sched-int.h (struct deps_reg): Add control_uses.
1267 (struct deps_desc): Add pending_jump_insns.
1268 (struct _haifa_deps_insn_data): Add cond_deps.
1269 (struct _haifa_insn_data): Add must_recompute_spec and predicated_pat.
1270 (INSN_COND_DEPS, PREDICATED_PAT): New macros.
1271 (BITS_PER_DEP_WEAK): Adjust for two extra bits in the word.
1272 (DEP_CONTROL): New macro.
1273 (DEP_TYPES): Include it.
1274 (HARD_DEP): Adjust definition.
1275 (DEP_CANCELLED): New macro.
1276 (enum SCHED_FLAGS): Add DO_PREDICATION.
1277 (sched_get_reverse_condition_uncached, real_insn_for_shadow): Declare.
1278 * sched-rgn.c (concat_INSN_LIST): Remove function.
1279 (deps_join): Handle pending_jump_insns.
1280 (free_pending_lists): Likewise.
1281 * config/c6x/c6x.c (c6x_set_sched_flags): Set DO_PREDICATION for final
1284 2011-10-21 Georg-Johann Lay <avr@gjlay.de>
1287 * config/avr/libgcc.S (__EIND__): New define to 0x3C.
1288 (__tablejump__): Consistently use EIND for indirect jump/call.
1289 (__tablejump_elpm__): Ditto.
1291 2011-10-21 Bernd Schmidt <bernds@codesourcery.com>
1293 * config/c6x/c6x.md (attr "op_pattern"): New.
1294 (load_sdata_pic, mov<mode>_insn for QIHIM and SISFVM): Set it.
1295 * config/c6x/c6x-mult.md.in (mulhi3_VARIANT_, mulhisi3_insn_VARIANT_):
1297 * config/c6x/c6x-mult.md: Regenerate.
1298 * config/c6x/c6x.c: Include "regrename.h".
1299 (unit_req_table): New typedef.
1300 (unit_reqs): Use it for the declaration.
1301 (unit_req_factor, get_unit_reqs, merge_unit_reqs, unit_req_imbalance,
1302 get_unit_operand_masks, try_rename_operands, reshuffle_units): New
1304 (count_unit_reqs): New arg reqs. All callers changed. Use
1305 get_unit_reqs, and don't merge here.
1306 (res_mii): New arg reqs. All callers changed. Rewrite to use a loop
1307 using unit_req_factor.
1308 (hwloop_optimize): Call reshuffle_units. Call merge_unit_reqs after
1310 (c6x_reorg): Add reg notes problem, and call df_analyze.
1311 * Makefile.in ($(out_object_file)): Depend on regrename.h.
1313 2011-10-21 Kai Tietz <ktietz@redhat.com>
1315 * fold-const.c (simple_operand_p_2): Handle integral
1316 casts from boolean-operands.
1318 2011-10-21 Jan Hubicka <jh@suse.cz>
1320 * cgraph.c (dump_cgraph_node): Dump alias flag.
1321 * cgraphunit.c (handle_alias_pairs): Handle weakrefs with
1323 (get_alias_symbol): New function.
1324 (output_weakrefs): Output also weakrefs with no destinatoin.
1325 (lto_output_node): Output weakref alias flag when at function boundary.
1327 2011-10-21 Andrew Stubbs <ams@codesourcery.com>
1330 * config/arm/driver-arm.c (vendors): Make static.
1332 2011-10-21 Uros Bizjak <ubizjak@gmail.com>
1334 * config/i386/i386.c (ix86_emit_swdivsf): Force b into register.
1335 (ix86_emit_swsqrtsf): Force a into register.
1337 2011-10-20 Mike Stump <mikestump@comcast.net>
1339 * regcprop.c (copyprop_hardreg_forward_1): Update recog_data
1340 after validate_change wipes it out.
1342 2011-10-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1344 * config/spu/spu.md ("vec_permv16qi"): Reduce selector modulo 32
1345 before using the shufb instruction.
1347 2011-10-20 Kirill Yukhin <kirill.yukhin@intel.com>
1350 * config/i386/i386.md (bmi_bextr_<mode>): Update register/
1351 memory operand order.
1352 (bmi2_bzhi_<mode>3): Ditto.
1353 (bmi2_pdep_<mode>3): Ditto.
1354 (bmi2_pext_<mode>3): Ditto.
1356 2011-10-20 Richard Henderson <rth@redhat.com>
1358 * target.def (vec_perm_const_ok): Rename from builtin_vec_perm_ok.
1359 * optabs.c (can_vec_perm_expr_p): Update to match.
1360 (expand_vec_perm_expr): Likewise.
1361 * config/i386/i386.c (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Rename
1362 from TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK.
1363 * doc/tm.texi.in: Likewise.
1365 2011-10-20 Sergey Ostanevich <sergos.gnu@gmail.com>
1368 * config/i386/i386.c (processor_target_table): Change Atom
1369 align_loops_max_skip to 15.
1371 2011-10-20 Richard Henderson <rth@redhat.com>
1373 * target.def (builtin_vec_perm): Remove.
1374 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
1376 * config/i386/i386.c (ix86_expand_vec_perm_builtin): Remove.
1377 (IX86_BUILTIN_VEC_PERM_*): Remove.
1378 (bdesc_args): Remove vec_perm builtins
1379 (ix86_expand_builtin): Likewise.
1380 (ix86_expand_vec_perm_const_1): Rename from
1381 ix86_expand_vec_perm_builtin_1.
1382 (extract_vec_perm_cst): Merge into...
1383 (ix86_vectorize_vec_perm_const_ok): ... here. Rename from
1384 ix86_vectorize_builtin_vec_perm_ok.
1385 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
1387 * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): Remove.
1388 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
1390 * config/spu/spu.c (spu_builtin_vec_perm): Remove.
1391 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Remove.
1393 2011-10-20 Uros Bizjak <ubizjak@gmail.com>
1396 * config/i386/i386.h (RECIP_MASK_DEFAULT): New define.
1397 * config/i386/i386.op (recip_mask): Initialize with RECIP_MASK_DEFAULT.
1398 * doc/invoke.texi (ix86 Options, -mrecip): Document that GCC
1399 implements vectorized single float division and vectorized sqrtf(x)
1400 with reciprocal sequence with additional Newton-Raphson step with
1403 2011-10-20 Dodji Seketeli <dodji@redhat.com>
1405 * ggc-zone.c (ggc_internal_alloc_zone_stat): Rename
1406 ggc_alloced_size_order_for_request into ggc_round_alloc_size like
1407 it was done in ggc-page.c.
1410 * doc/cppopts.texi: Use @smallexample/@end smallexample in
1411 documentation for -fdebug-cpp instead of @quotation/@end quotation
1412 that is not supported by contrib/texi2pod.pl.
1414 2011-10-19 Jan Hubicka <jh@suse.cz>
1416 * ipa-inline.c (inline_small_functions): Always update all calles after
1419 2011-10-19 Jan Hubicka <jh@suse.cz>
1422 * ipa-inline.c (inline_small_functions): Fix checking code to not make
1423 effect on fibheap stability.
1425 2011-10-20 Maxim Kuvyrkov <maxim@codesourcery.com>
1427 * config/m68k/t-linux (M68K_MLIB_CPU): Add ColdFire CPUs.
1429 2011-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1432 * config/arm/arm.c (thumb_unexpanded_epilogue): Handle return
1435 2011-10-20 Richard Guenther <rguenther@suse.de>
1437 * tree-ssa-loop-im.c (stmt_cost): Add WIDEN_*, FMA_EXPR
1438 and rotates to the set of expensive operations.
1440 2011-10-19 David S. Miller <davem@davemloft.net>
1442 * config/sparc/sparc.c (sparc_expand_move): Use can_create_pseudo_p.
1443 (sparc_emit_set_const32): Likewise.
1444 (sparc_emit_set_const64_longway): Likewise.
1445 (sparc_emit_set_const64): Likewise.
1446 (sparc_legitimize_pic_address): Likewise.
1447 (memory_ok_for_ldd): Likewise.
1449 2011-10-20 Dehao Chen <dehao@google.com>
1451 * profile.c (compute_branch_probabilities): Compute and dump the
1452 overlap between the static estimation and the instrumentation profile.
1453 (OVERLAP_BASE): New macro.
1454 (compute_frequency_overlap): New function
1456 2011-10-19 Jakub Jelinek <jakub@redhat.com>
1458 * config/i386/i386.c (expand_vec_perm_vpshufb2_vpermq_even_odd): Use
1459 d->op1 instead of d->op0 for the second vpshufb.
1460 (expand_vec_perm_even_odd_1): For V8SImode fix vpshufd immediates.
1461 (ix86_expand_vec_perm_const): If mask indicates two operands are
1462 needed, but both are the same and expanding them as d.op0 == d.op1
1463 failed, retry with d.op0 != d.op1.
1464 (ix86_expand_vec_perm_builtin): Likewise. Handle sorry printing
1465 also for d.nelt == 32.
1468 * cfgexpand.c (expand_debug_expr): Handle WIDEN_LSHIFT_EXPR, ignore
1471 2011-10-19 Bernd Schmidt <bernds@codesourcery.com>
1473 * regrename.h: New file.
1474 * regrename.c: Include it. Also include "emit-rtl.h".
1475 (struct du_head, struct du_chain, du_head_p DEF_VEC and
1476 DEF_VEC_ALLOC_P): Move to regrename.h.
1477 (do_replace): Remove declaration.
1478 (insn_rr): New variable.
1479 (cur_operand): New static variable.
1480 (regrename_chain_from_id): Renamed from chain_from_id and no longer
1481 static. All callers changed.
1482 (record_operand_use): New static function.
1483 (scan_rtx_reg): Use it.
1484 (find_best_rename_reg): New function, broken out of rename_chains.
1485 (rename_chains): Use it. Don't update chain regno and nregs here, ...
1486 (regrename_do_replace): ... do it here instead. Renamed from
1487 do_replace, and no longer static. All callers changed.
1488 (regrename_analyze): No longer static. New arg bb_mask.
1489 All callers changed. If bb_mask is nonzero, use it to limit the
1490 number of basic blocks we analyze. If we failed to analyze a block,
1491 clear insn operand data.
1492 (record_out_operands): New arg insn_info. Update cur_operand if it is
1494 (build_def_use): If insn_rr is nonnull, pass an insn_info to
1495 record_out_operands, and update cur_operand here as well.
1496 (regrename_init, regrename_finish): New functions.
1497 (regrename_optimize): Use them.
1498 * Makefile.in (regrename.o): Adjust dependencies.
1500 2011-10-19 Tom de Vries <tom@codesourcery.com>
1502 PR tree-optimization/50769
1503 * tree-ssa-tail-merge.c (replace_block_by): Calculate phi_vuse2
1504 unconditionally. Handle case that phi_vuse2 is not an SSA_NAME. Add
1505 dummy argument .MEM to phi when increasing number of arguments of phi by
1506 redirecting edges to the block with phi.
1508 2011-10-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1511 * configure.ac: Save and restore CXXFLAGS around
1512 gcc_AC_CHECK_DECLS uses.
1513 Check for madvise() declaration with g++ if --enable-build-with-cxx.
1514 * configure: Regenerate.
1515 * config.in: Regenerate.
1516 * ggc-page.c (USING_MADVISE): Also check HAVE_DECL_MADVISE.
1518 2011-10-19 Alexandre Oliva <aoliva@redhat.com>
1521 * var-tracking.c (loc_exp_dep, onepart_aux): New structs.
1522 (variable_part): Replace offset with union.
1523 (enum onepart_enum, onepart_enum_t): New.
1524 (variable_def): Drop cur_loc_changed, add onepart.
1525 (value_chain_def, const_value_chain): Remove.
1526 (VAR_PART_OFFSET, VAR_LOC_1PAUX): New macros, with checking.
1527 (VAR_LOC_DEP_LST, VAR_LOC_DEP_LSTP): New macros.
1528 (VAR_LOC_FROM, VAR_LOC_DEPTH, VAR_LOC_DEP_VEC): Likewise.
1529 (value_chain_pool, value_chains): Remove.
1530 (dropped_values): New.
1531 (struct parm_reg): Only if HAVE_window_save.
1532 (vt_stack_adjustments): Don't record register arguments.
1534 (dv_onepart_p): Return a onepart_enum_t.
1535 (onepart_pool): New.
1538 (variable_htab_free): Release onepart aux data. Reset flags.
1539 (value_chain_htab_hash, value_chain_htab_eq): Remove.
1540 (unshare_variable): Use onepart field. Propagate onepart aux
1541 data or offset. Drop cur_loc_changed.
1542 (val_store): Cope with NULL insn. Rephrase dump output. Check
1543 for unsuitable locs. Add FIXME on using cselib locs.
1544 (val_reset): Remove FIXME of unfounded concerns.
1545 (val_resolve): Check for unsuitable locs. Add FIXME on using
1547 (variable_union): Use onepart field, adjust access to offset.
1549 (VALUE_CHANGED, DECL_CHANGED): Update doc.
1550 (set_dv_changed): Clear NO_LOC_P when changed.
1551 (find_loc_in_1pdv): Use onepart field.
1552 (intersect_loc_chains): Likewise.
1553 (unsuitable_loc): New.
1554 (loc_cmp): Keep ENTRY_VALUEs at the end of the loc list.
1555 (add_value_chain, add_value_chains): Remove.
1556 (add_cselib_value_chains, remove_value_chain): Likewise.
1557 (remove_value_chains, remove_cselib_value_chains): Likewise.
1558 (canonicalize_loc_order_check): Use onepart. Drop cur_loc_changed.
1559 (canonicalize_values_star, canonicalize_vars_star): Use onepart.
1560 (variable_merge_over_cur): Likewise. Adjust access to offset.
1561 Drop cur_loc_changed.
1562 (variable_merge_over_src): Use onepart field.
1563 (remove_duplicate_values): Likewise.
1564 (variable_post_merge_new_vals): Likewise.
1565 (find_mem_expr_in_1pdv): Likewise.
1566 (dataflow_set_preserve_mem_locs): Likewise. Drop cur_loc_changed
1568 (dataflow_set_remove_mem_locs): Likewise. Use VAR_LOC_FROM.
1569 (variable_different_p): Use onepart field. Move onepart test out
1571 (argument_reg_set): Drop.
1572 (add_uses, add_stores): Preserve but do not record in dynamic
1573 tables equivalences for ENTRY_VALUEs and CFA_based addresses.
1574 Avoid unsuitable address expressions.
1575 (EXPR_DEPTH): Unlimit.
1576 (EXPR_USE_DEPTH): Repurpose PARAM_MAX_VARTRACK_EXPR_DEPTH.
1577 (prepare_call_arguments): Use DECL_RTL_IF_SET.
1578 (dump_var): Adjust access to offset.
1579 (variable_from_dropped, recover_dropped_1paux): New.
1580 (variable_was_changed): Drop cur_loc_changed. Use onepart.
1581 Preserve onepart aux in empty_var. Recover empty_var and onepart
1582 aux from dropped_values.
1583 (find_variable_location_part): Special-case onepart. Adjust
1585 (set_slot_part): Use onepart. Drop cur_loc_changed. Adjust
1586 access to offset. Initialize onepaux. Drop value chains.
1587 (delete_slot_part): Drop value chains. Use VAR_LOC_FROM.
1588 (VEC (variable, heap), VEC (rtx, stack)): Define.
1589 (expand_loc_callback_data): Drop dummy, cur_loc_changed,
1590 ignore_cur_loc. Add expanding, pending, depth.
1591 (loc_exp_dep_alloc, loc_exp_dep_clear): New.
1592 (loc_exp_dep_insert, loc_exp_dep_set): New.
1593 (notify_dependents_of_resolved_value): New.
1594 (update_depth, vt_expand_var_loc_chain): New.
1595 (vt_expand_loc_callback): Revamped.
1596 (resolve_expansions_pending_recursion): New.
1597 (INIT_ELCD, FINI_ELCD): New.
1598 (vt_expand_loc): Use the new macros above. Drop ignore_cur_loc
1599 parameter, adjust all callers.
1600 (vt_expand_loc_dummy): Drop.
1601 (vt_expand_1pvar): New.
1602 (emit_note_insn_var_location): Operate on non-debug decls only.
1603 Revamp multi-part cur_loc recomputation and one-part expansion.
1604 Drop cur_loc_changed. Adjust access to offset.
1605 (VEC (variable, heap)): Drop.
1606 (changed_variables_stack, changed_values_stack): Drop.
1607 (check_changed_vars_0, check_changed_vars_1): Remove.
1608 (check_changed_vars_2, check_changed_vars_3): Remove.
1609 (values_to_stack, remove_value_from_changed_variables): New.
1610 (notify_dependents_of_changed_value, process_changed_values): New.
1611 (emit_notes_for_changes): Revamp onepart updates.
1612 (emit_notes_for_differences_1): Use onepart. Drop cur_loc_changed
1613 and value chains. Propagate onepaux. Recover empty_var and onepaux
1614 from dropped_values.
1615 (emit_notes_for_differences_2): Drop value chains.
1616 (emit_notes_in_bb): Adjust.
1617 (vt_emit_notes): Drop value chains, changed_variables_stack.
1618 Initialize and release dropped_values.
1619 (create_entry_value): Revamp.
1620 (vt_add_function_parameter): Use new interface.
1621 (note_register_arguments): Remove.
1622 (vt_initialize): Drop value chains and register arguments.
1623 (vt_finalize): Drop value chains. Release windowed_parm_regs only
1624 if HAVE_window_save.
1625 * rtl.h: Document various pass-local uses of RTL flags.
1626 * tree.h (DECL_RTL_KNOWN_SET): New.
1627 * doc/invoke.texi (param max-vartrack-expr-depth): Update
1628 description and default.
1630 2011-10-19 Georg-Johann Lay <avr@gjlay.de>
1633 * config/avr/avr.md (cc): New alternative out_plus_noclobber.
1634 (adjust_len): Ditto.
1635 (addhi3): Don't pipe through short; use gen_int_mode instead.
1636 Prior to reload, expand to gen_addhi3_clobber.
1637 (*addhi3): Use avr_out_plus_noclobber if applicable, use
1638 out_plus_noclobber in cc and adjust_len attribute.
1639 (addhi3_clobber): 2 new RTL peepholes.
1640 (addhi3_clobber): New insn.
1641 * config/avr/avr-protos.h: (avr_out_plus_noclobber): New prototype.
1642 * config/avr/avr.c (avr_out_plus_noclobber): New function.
1643 (notice_update_cc): Handle CC_OUT_PLUS_NOCLOBBER.
1644 (avr_out_plus_1): Tweak if only MSB is +/-1 and other bytes are 0.
1645 Set cc0 to set_zn for adiw on 16-bit values.
1646 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS_NOCLOBBER.
1647 (expand_epilogue): No need to add 0 to frame_pointer_rtx.
1649 2011-10-19 Richard Guenther <rguenther@suse.de>
1652 * tree-ssa-forwprop.c (forward_propagate_into_cond): Verify
1653 the condition is properly gimple before using it.
1654 * tree-eh (stmt_could_throw_1_p): Properly extract the
1655 operation type from comparisons.
1657 2011-10-19 Roland Stigge <stigge@antcom.de>
1659 PR translation/48638
1660 * plugin.c (add_new_plugin): Fix typo in fatal_error message.
1662 2011-10-19 Roland Stigge <stigge@antcom.de>
1664 PR translation/49517
1665 * config/rx/rx.c (rx_print_operand): Fix typo in warning message.
1667 2011-10-19 Richard Guenther <rguenther@suse.de>
1670 * gimple-fold.c (gimplify_and_update_call_from_tree): Rewrite.
1672 2011-10-19 Andrey Belevantsev <abel@ispras.ru>
1674 PR rtl-optimization/50340
1675 * sel-sched-ir.c (update_target_availability): LHS register
1676 availability is not known if the unavailable LHS of the other
1677 expression is a different register.
1679 2011-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1682 * config/spu/spu.c (spu_emit_vector_compare): Support unordered
1683 floating-point comparisons.
1685 2011-10-19 Jan Hubicka <jh@suse.cz>
1687 * cgraphunit.c (handle_alias_pairs): Also handle wekref with
1688 destination declared.
1689 (output_weakrefs): New function.
1690 * varpool.c (varpool_create_variable_alias): Handle external aliases.
1692 2011-10-19 Jakub Jelinek <jakub@redhat.com>
1694 * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
1695 second argument instead of mode.
1697 2011-10-18 Jakub Jelinek <jakub@redhat.com>
1699 * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
1700 mode SUBREG of operands[0] as target.
1701 (valid_perm_using_mode_p): Don't ignore higher bits of d->perm.
1702 (expand_vec_pshufb): For V8SImode vmode emit avx2_permvarv8si.
1703 (expand_vec_perm_1): Handle identity and some broadcast
1705 (expand_vec_perm_interleave2): Handle also 32-byte modes, using
1706 vperm2[fi]128 or vpunpck[lh]* followed by single insn permutation.
1707 For d->testing_p return true earlier to avoid creating more GC
1709 (expand_vec_perm_vpermq_perm_1): New function.
1710 (expand_vec_perm_vpshufb2_vpermq): For d->testing_p return true
1711 earlier to avoid creating more GC garbage. Fix handling of
1712 V16HImode. Avoid some SUBREGs in SET_DEST.
1713 (expand_vec_perm_broadcast_1): Return false for 32-byte integer
1715 (expand_vec_perm_vpshufb4_vpermq2): New function.
1716 (ix86_expand_vec_perm_builtin_1): Call expand_vec_perm_vpermq_perm_1
1717 and expand_vec_perm_vpshufb4_vpermq2.
1719 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
1721 * config/arm/driver-arm.c (host_detect_local_cpu): Close the file
1724 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
1726 PR tree-optimization/50717
1727 * tree-ssa-math-opts.c (is_widening_mult_p): Remove the 'type'
1728 parameter. Calculate 'type' from stmt.
1729 (convert_mult_to_widen): Update call the is_widening_mult_p.
1730 (convert_plusminus_to_widen): Likewise.
1732 2011-10-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1734 * config/spu/spu.c (struct machine_function): New data structure.
1735 (spu_init_machine_status): New function.
1736 (spu_option_override): Install it.
1737 (get_pic_reg): Set and use cfun->machine->pic_reg.
1738 (spu_split_immediate): Do not set crtl->uses_pic_offset_table.
1739 (need_to_save_reg): Use cfun->machine->pic_reg instead of
1740 checking crtl->uses_pic_offset_table.
1741 (spu_expand_prologue): Likewise.
1743 2011-10-18 Jakub Jelinek <jakub@redhat.com>
1745 PR tree-optimization/50735
1746 * function.c (gimplify_parameters): Use create_tmp_var instead of
1747 create_tmp_reg. If parm is not TREE_ADDRESSABLE and type is complex
1748 or vector type, set DECL_GIMPLE_REG_P.
1750 2011-10-18 Andrew Stubbs <ams@codesourcery.com>
1752 * config.host (arm*-*-linux*): Add driver-arm.o and x-arm.
1753 * config/arm/arm.opt: Add 'native' processor_type and
1754 arm_arch enum values.
1755 * config/arm/arm.h (host_detect_local_cpu): New prototype.
1756 (EXTRA_SPEC_FUNCTIONS): New define.
1757 (MCPU_MTUNE_NATIVE_SPECS): New define.
1758 (DRIVER_SELF_SPECS): New define.
1759 * config/arm/driver-arm.c: New file.
1760 * config/arm/x-arm: New file.
1761 * doc/invoke.texi (ARM Options): Document -mcpu=native,
1762 -mtune=native and -march=native.
1764 2011-10-18 Alexander Monakov <amonakov@ispras.ru>
1766 PR rtl-optimization/50205
1767 * sel-sched.c (count_occurrences_1): Simplify on the assumption that
1768 p->x is a register. Forbid substitution when the same register is
1769 found in a different mode.
1770 (count_occurrences_equiv): Assert that 'what' is a register.
1772 2011-10-18 Richard Guenther <rguenther@suse.de>
1774 PR tree-optimization/50767
1775 * tree-ssa-pre.c (create_expression_by_pieces): Update the
1778 2011-10-18 Julian Brown <julian@codesourcery.com>
1780 * config/arm/arm.c (arm_block_move_unaligned_straight)
1781 (arm_adjust_block_mem, arm_block_move_unaligned_loop)
1782 (arm_movmemqi_unaligned): New.
1783 (arm_gen_movmemqi): Support unaligned block copies.
1785 2011-10-18 Ira Rosen <ira.rosen@linaro.org>
1787 * doc/md.texi (vec_widen_ushiftl_hi, vec_widen_ushiftl_lo,
1788 vec_widen_sshiftl_hi, vec_widen_sshiftl_lo): Document.
1789 * tree-pretty-print.c (dump_generic_node): Handle WIDEN_LSHIFT_EXPR,
1790 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
1791 (op_code_prio): Likewise.
1792 (op_symbol_code): Handle WIDEN_LSHIFT_EXPR.
1793 * optabs.c (optab_for_tree_code): Handle
1794 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
1795 (init-optabs): Initialize optab codes for vec_widen_u/sshiftl_hi/lo.
1796 * optabs.h (enum optab_index): Add OTI_vec_widen_u/sshiftl_hi/lo.
1797 * genopinit.c (optabs): Initialize the new optabs.
1798 * expr.c (expand_expr_real_2): Handle
1799 VEC_WIDEN_LSHIFT_HI_EXPR and VEC_WIDEN_LSHIFT_LO_EXPR.
1800 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
1801 * tree-vectorizer.h (NUM_PATTERNS): Increase to 8.
1802 * tree.def (WIDEN_LSHIFT_EXPR, VEC_WIDEN_LSHIFT_HI_EXPR,
1803 VEC_WIDEN_LSHIFT_LO_EXPR): New.
1804 * cfgexpand.c (expand_debug_expr): Handle new tree codes.
1805 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
1806 vect_recog_widen_shift_pattern.
1807 (vect_handle_widen_mult_by_const): Rename...
1808 (vect_handle_widen_op_by_const): ...to this. Handle shifts.
1809 Add a new argument, update documentation.
1810 (vect_recog_widen_mult_pattern): Assume that only second
1811 operand can be constant. Update call to
1812 vect_handle_widen_op_by_const.
1813 (vect_recog_over_widening_pattern): Fix typo.
1814 (vect_recog_widen_shift_pattern): New.
1815 * tree-vect-stmts.c (vectorizable_type_promotion): Handle
1817 (supportable_widening_operation): Likewise.
1818 * tree-inline.c (estimate_operator_cost): Handle new tree codes.
1819 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
1820 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
1821 * config/arm/neon.md (neon_vec_<US>shiftl_<mode>): New.
1822 (vec_widen_<US>shiftl_lo_<mode>, neon_vec_<US>shiftl_hi_<mode>,
1823 vec_widen_<US>shiftl_hi_<mode>, neon_vec_<US>shift_left_<mode>):
1825 * config/arm/predicates.md (const_neon_scalar_shift_amount_operand):
1827 * config/arm/iterators.md (V_innermode): New.
1828 * tree-vect-slp.c (vect_build_slp_tree): Require same shift operand
1831 2011-10-18 Richard Guenther <rguenther@suse.de>
1833 * tree-ssa-alias.h (struct pt_solution): Remove
1834 vars_contains_restrict member.
1835 (pt_solutions_same_restrict_base): Remove.
1836 (pt_solution_set): Adjust.
1837 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Remove
1838 vars_contains_restrict handling.
1839 (dump_points_to_solution): Likewise.
1840 (ptr_derefs_may_alias_p): Do not call pt_solutions_same_restrict_base.
1841 * tree-ssa-structalias.c (struct variable_info): Remove is_restrict_var
1843 (new_var_info): Do not initialize it.
1844 (ipa_escaped_pt): Adjust.
1845 (make_constraint_from_restrict): Make the tag global.
1846 (make_constraint_from_global_restrict): New function.
1847 (make_constraint_from_heapvar): Remove.
1848 (create_variable_info_for): Do not make restrict vars point
1850 (intra_create_variable_infos): Likewise.
1851 (find_what_var_points_to): Remove vars_contains_restrict handling.
1852 (pt_solution_set): Adjust.
1853 (pt_solution_ior_into): Likewise.
1854 (pt_solutions_same_restrict_base): Remove.
1855 (compute_points_to_sets): Do not test is_restrict_var.
1856 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
1857 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
1859 2011-10-18 Tom de Vries <tom@codesourcery.com>
1861 PR tree-optimization/50672
1862 * tree-ssa-dce.c (mark_virtual_operand_for_renaming): New function,
1864 (mark_virtual_phi_result_for_renaming): Use
1865 mark_virtual_operand_for_renaming.
1866 * tree-flow.h (mark_virtual_operand_for_renaming): Declare.
1867 * tree-ssa-tail-merge.c (release_last_vdef): New function.
1868 (purge_bbs): Add update_vops parameter. Call release_last_vdef for each
1869 deleted basic block.
1870 (tail_merge_optimize): Add argument to call to purge_bbs.
1872 2011-10-18 Richard Guenther <rguenther@suse.de>
1875 * expr.c (get_object_or_type_alignment): New function.
1876 (expand_assignment): Use it.
1877 (expand_expr_real_1): Likewise.
1879 2011-10-18 Dodji Seketeli <dodji@redhat.com>
1882 * input.c (dump_line_table_statistics): Use long, not size_t.
1884 2011-10-17 Eric Botcazou <ebotcazou@adacore.com>
1886 * config/sparc/sparc.md (in_call_delay): Fix formatting issues.
1888 2011-10-17 Simon Baldwin <simonb@google.com>
1889 Ian Lance Taylor <iant@google.com>
1891 * configure.ac: Add --with-native-system-header-dir. Set and
1892 substitute NATIVE_SYSTEM_HEADER_DIR. Use native_system_header
1893 when setting target_header_dir.
1894 * config.gcc: Always set native_system_header_dir.
1895 (*-*-gnu*): Set native_system_header_dir. Don't use t-gnu.
1896 (i[34567]86-pc-msdosdjgpp*): Set native_system_header_dir. Don't
1898 (i[34567]86-*-mingw* | x86_64-*-mingw*): Set
1899 native_system_header_dir.
1900 (spu-*-elf*): Set native_system_header_dir.
1901 * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): Set to
1902 @NATIVE_SYSTEM_HEADER_DIR@.
1903 (PREPROCESSOR_DEFINES): Define NATIVE_SYSTEM_HEADER_DIR.
1904 * cppdefault.c (STANDARD_INCLUDE_DIR): Don't define.
1905 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
1906 STANDARD_INCLUDE_COMPONENT.
1907 (cpp_include_defaults): Don't use SYSTEM_INCLUDE_DIR. Rename
1908 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
1909 * system.h: Poison SYSTEM_INCLUDE_DIR, STANDARD_INCLUDE_DIR, and
1910 STANDARD_INCLUDE_COMPONENT.
1911 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Remove.
1912 * config/i386/t-mingw-w32: Likewise.
1913 * config/i386/t-mingw-w64: Likewise.
1914 * config/spu/t-spu-elf: Likewise.
1915 * config/i386/t-djgpp: Remove.
1916 * config/t-gnu: Remove.
1917 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Don't define.
1918 (NATIVE_SYSTEM_HEADER_COMPONENT): Rename from
1919 STANDARD_INCLUDE_COMPONENT.
1920 * config/i386/djgpp.h (STANDARD_INCLUDE_DIR): Don't define.
1921 * config/spu/spu-elf.h: Likewise.
1922 * config/vms/xm-vms.h: Likewise.
1923 * config/gnu.h: Likewise.
1924 * config/openbsd.h (INCLUDE_DEFAULTS): Change STANDARD_INCLUDE_DIR
1925 and STANDARD_INCLUDE_COMPONENT to NATIVE_SYSTEM_HEADER_DIR and
1926 NATIVE_SYSTME_HEADER_COMPONENT.
1927 * doc/install.texi (Configuration): Document
1928 --with-native-system-header-dir. Mention it in the documentation
1929 for --with-sysroot and --with-build-sysroot.
1930 * doc/tm.texi.in (Driver): Don't document SYSTEM_INCLUDE_DIR or
1931 STANDARD_INCLUDE_DIR. Rename STANDARD_INCLUDE_COMPONENT to
1932 NATIVE_SYSTEM_HEADER_COMPONENT. Rename uses of
1933 STANDARD_INCLUDE_DIR to NATIVE_SYSTEM_HEADER_DIR.
1934 * doc/fragments.texi (Target Fragment): Don't document
1935 NATIVE_SYSTEM_HEADER_DIR.
1936 * configure, doc/tm.texi: Rebuild.
1938 2011-10-17 Richard Henderson <rth@redhat.com>
1940 * config/sparc/sparc.md: Use register_or_zero_operand where rJ
1943 * config/sparc/sparc.md (vec_perm_constv8qi, vec_perm<mode>): New
1945 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): New function.
1946 * config/sparc/sparc-protos.h (sparc_expand_vec_perm_bmask): Declare.
1948 2011-10-17 David S. Miller <davem@davemloft.net>
1950 * config/sparc/sparc-modes.def: Add single entry vector modes for
1952 * config/sparc/sparc.md (V32, V32I, V64, V64I, V64N8): Delete
1954 (mov<V32:mode>): Revert back to plain SFmode pattern.
1955 (*movsf_insn): Likewise.
1956 (mov<V64:mode>): Revert back to plain DFmode pattern.
1957 (*movdf_insn_sp32): Likewise.
1958 (*movdf_insn_sp32_v9): Likewise.
1959 (*movdf_insn_sp64): Likewise.
1960 (V64 mode splitters) Likewise.
1961 (addsi3): Remove VIS alternatives.
1963 (and<V64I:mode>3): Revert to DImode only pattern.
1964 (and<V64I:mode>3_sp32): Likewise.
1965 (*and<V64I:mode>3_sp64): Likewise.
1966 (and<V32I:mode>3): Likewise.
1967 (*and_not_<V64I:mode>_sp32): Likewise.
1968 (*and_not_<V64I:mode>_sp64): Likewise.
1969 (*and_not_<V32I:mode>): Likewise.
1970 (ior<V64I:mode>3): Likewise.
1971 (*ior<V64I:mode>3_sp32): Likewise.
1972 (*ior<V64I:mode>3_sp64): Likewise.
1973 (ior<V32I:mode>3): Likewise.
1974 (*or_not_<V64I:mode>_sp32): Likewise.
1975 (*or_not_<V64I:mode>_sp64): Likewise.
1976 (*or_not_<V32I:mode>): Likewise.
1977 (xor<V64I:mode>3): Likewise.
1978 (*xor<V64I:mode>3_sp32): Likewise.
1979 (*xor<V64I:mode>3_sp64): Likewise.
1980 (xor<V32I:mode>3): Likewise.
1981 (V64I mode splitters): Likewise.
1982 (*xor_not_<V64I:mode>_sp32): Likewise.
1983 (*xor_not_<V64I:mode>_sp64): Likewise.
1984 (*xor_not_<V32I:mode>): Likewise.
1985 (one_cmpl<V64I:mode>2): Likewise.
1986 (*one_cmpl<V64I:mode>2_sp32): Likewise.
1987 (*one_cmpl<V64I:mode>2_sp64): Likewise.
1988 (one_cmpl<V32I:mode>2): Likewise.
1989 (VM32, VM64, VMALL): New mode iterators.
1990 (vbits, vconstr, vfptype): New mode attributes.
1991 (mov<VMALL:mode>): New expander.
1992 (*mov<VM32:mode>_insn): New insn.
1993 (*mov<VM64:mode>_insn_sp64): New insn.
1994 (*mov<VM64:mode>_insn_sp32): New insn, and associated splitter
1995 specifically for the register to memory case.
1996 (vec_init<mode>): New expander.
1997 (VADDSUB): New mode iterator.
1998 (<plusminus_insn>v2si3, <plusminus_insn>v2hi3): Remove and replace
2000 (<plusminus_insn><mode>3): New consolidated pattern.
2001 (VL): New mode iterator for logical operations.
2002 (vlsuf): New more attribute.
2003 (vlop): New code iterator.
2004 (vlinsn, vlninsn): New code attributes.
2005 (<code><mode>3): New insn to non-negated vector logical ops.
2006 (*not_<code><mode>3): Likewise for negated variants.
2007 (*nand<mode>_vis): New insn.
2008 (vlnotop): New code iterator.
2009 (*<code>_not1<mode>_vis, *<code>_not2<mode>_vis): New insns.
2010 (one_cmpl<mode>2): New insn.
2011 (faligndata<V64I:mode>_vis): Rewrite to use VM64 iterator.
2012 (bshuffle<VM64:mode>_vis): Likewise.
2013 (v<vis3_shift_patname><mode>3): Use GCM mode iterator.
2014 (fp<plusminus_insn>64_vis): Use V1DI mode.
2015 (VASS mode iterator): Use V1SI not SI mode.
2016 * config/sparc/sparc.c (sparc_vis_init_builtins): Account for
2017 single-entry vector mode changes.
2018 (sparc_expand_builtin): Likewise.
2019 (sparc_expand_vector_init): New function.
2020 * config/sparc/sparc-protos.h (sparc_expand_vector_init): Declare.
2022 2011-10-17 Kai Tietz <ktietz@redhat.com>
2024 * fold-const.c (simple_operand_p_2): New function.
2025 (fold_truthop): Rename to
2026 (fold_truth_andor_1): function name.
2027 Additionally remove branching creation for logical and/or.
2028 (fold_truth_andor): Handle branching creation for logical and/or here.
2030 2011-10-17 Andi Kleen <ak@linux.intel.com>
2032 * ggc-page.c (USING_MADVISE): Adjust ifdef to check for USING_MMAP.
2034 2011-10-17 Georg-Johann Lay <avr@gjlay.de>
2036 * config/avr/avr.h (ASSEMBLER_DIALECT): Remove.
2037 * config/avr/avr.md (mcu_have_movw, mcu_mega): Remove attributes.
2038 (adjust_len): Add alternative "call".
2039 (isa, enabled): New insn attributes.
2040 (length): Use match_test with AVR_HAVE_JMP_CALL instead of
2042 (*sbrx_branch<mode>): Ditto.
2043 (*sbrx_and_branch<mode>): Ditto.
2044 (*sbix_branch): Ditto.
2045 (*sbix_branch_bit7): Ditto.
2046 (*sbix_branch_tmp): Ditto.
2047 (*sbix_branch_tmp_bit7): Ditto.
2049 (negsi2): Use attribute "isa" instead of assembler dialect.
2050 (extendhisi2): Ditto.
2051 (call_insn, call_value_insn): Set adjust_len attribute.
2052 (indirect_jump): Indent to coding rules.
2053 (call_prologue_saves): Use isa attribute instead of mcu_mega.
2054 (epilogue_restores): Ditto. Fix setting of SP as described in the
2056 (*indirect_jump): Fusion of *jcindirect_jump, *njcindirect_jump
2057 and *indirect_jump_avr6.
2058 (*tablejump): Fusion of *tablejump_rjmp and *tablejump_lib.
2059 (*jcindirect_jump, *njcindirect_jump, *indirect_jump_avr6): Remove.
2060 (*tablejump_rjmp, *tablejump_lib): Remove.
2061 * config/avr/avr.c (adjust_insn_length): Handle ADJUST_LEN_CALL.
2063 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
2066 * doc/invoke.texi ([Wnonnull]): Update.
2068 2011-10-17 Richard Henderson <rth@redhat.com>
2071 * optabs.c (expand_vec_perm_expr): Fix indexing error.
2073 2011-10-17 Sergio Durigan Junior <sergiodj@redhat.com>
2075 * configure.ac: Display `yes' if the SystemTap header has been found.
2076 * configure: Regenerate.
2078 2011-10-08 Andi Kleen <ak@linux.intel.com>
2081 * config.in, configure: Regenerate.
2082 * configure.ac (madvise): Add to AC_CHECK_FUNCS.
2083 * ggc-page.c (USING_MADVISE): Add.
2084 (page_entry): Add discarded field.
2085 (alloc_page): Check for discarded pages.
2086 (release_pages): Add USING_MADVISE branch.
2088 2011-10-17 Richard Guenther <rguenther@suse.de>
2090 PR tree-optimization/50729
2091 * tree-vrp.c (extract_range_from_unary_expr_1): Remove redundant test.
2092 (simplify_conversion_using_ranges): Properly test the
2093 intermediate result.
2095 2011-10-15 Tom Tromey <tromey@redhat.com>
2096 Dodji Seketeli <dodji@redhat.com>
2098 * ggc.h (ggc_round_alloc_size): Declare new public entry point.
2099 * ggc-none.c (ggc_round_alloc_size): New public stub function.
2100 * ggc-page.c (ggc_alloced_size_order_for_request): New static
2101 function. Factorized from ggc_internal_alloc_stat.
2102 (ggc_round_alloc_size): New public function. Uses
2103 ggc_alloced_size_order_for_request.
2104 (ggc_internal_alloc_stat): Use ggc_alloced_size_order_for_request.
2105 * ggc-zone.c (ggc_round_alloc_size): New public function extracted
2106 from ggc_internal_alloc_zone_stat.
2107 (ggc_internal_alloc_zone_stat): Use ggc_round_alloc_size.
2108 * toplev.c (general_init): Initialize
2109 line_table->alloced_size_for_request.
2111 2011-10-15 Tom Tromey <tromey@redhat.com>
2112 Dodji Seketeli <dodji@redhat.com>
2114 * input.c (ONE_K, ONE_M, SCALE, STAT_LABEL, FORMAT_AMOUNT): New macros.
2115 (num_expanded_macros_counter, num_macro_tokens_counter): Declare
2117 (dump_line_table_statistics): Define new function.
2118 * input.h (dump_line_table_statistics): Declare new function.
2119 * toplev.c (dump_memory_report): Call dump_line_table_statistics.
2121 2011-10-15 Tom Tromey <tromey@redhat.com>
2122 Dodji Seketeli <dodji@redhat.com>
2124 * doc/cppopts.texi: Document -fdebug-cpp.
2125 * doc/invoke.texi: Add -fdebug-cpp to the list of preprocessor options.
2127 2011-10-15 Tom Tromey <tromey@redhat.com>
2128 Dodji Seketeli <dodji@redhat.com>
2130 * gcc/diagnostic.h (diagnostic_report_current_module): Add a
2132 * diagnostic.c (diagnostic_report_current_module): Add a location
2133 parameter to the function definition. Use it instead of
2134 input_location. Resolve the virtual location rather than just
2135 looking up its map and risking to touch a resulting macro map.
2136 (default_diagnostic_starter): Pass the relevant diagnostic
2137 location to diagnostic_report_current_module.
2138 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): New.
2139 (virt_loc_aware_diagnostic_finalizer): Likewise.
2140 (diagnostic_report_current_function): Pass the
2141 relevant location to diagnostic_report_current_module.
2142 * tree-diagnostic.h (virt_loc_aware_diagnostic_finalizer): Declare
2144 * toplev.c (general_init): By default, use the new
2145 virt_loc_aware_diagnostic_finalizer as diagnostic finalizer.
2146 * Makefile.in: Add vec.h dependency to tree-diagnostic.c.
2148 2011-10-15 Tom Tromey <tromey@redhat.com>
2149 Dodji Seketeli <dodji@redhat.com>
2151 * doc/cppopts.texi (-ftrack-macro-expansion): Document new option.
2152 * doc/invoke.texi (-ftrack-macro-expansion): Add this to the list of
2153 preprocessor related options.
2155 2011-10-15 Tom Tromey <tromey@redhat>
2156 Dodji Seketeli <dodji@redhat.com>
2158 * input.h (struct expanded_location): Move to libcpp/line-map.h.
2159 (LOCATION_COLUMN): New accessor
2160 (in_system_header_at): Use linemap_location_in_system_header_p.
2161 * diagnostic.c (diagnostic_report_current_module): Adjust to avoid
2162 touching the internals of struct line_map. Use the public API instead.
2163 (diagnostic_report_diagnostic): Don't use relational operator '<'
2164 on virtual locations. Use linemap_location_before_p instead.
2165 * input.c (expand_location): Adjust to expand to the tokens'
2166 spelling location when macro location tracking is on.
2169 2011-10-08 Andi Kleen <ak@linux.intel.com>
2171 * ggc-page.c (GGC_QUIRE_SIZE): Increase to 512
2173 2011-10-13 Andi Kleen <ak@linux.intel.com>
2175 * toplev.c (compile_file): Rename __gnu_slim_lto to __gnu_lto_slim.
2177 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
2179 PR tree-optimization/50727
2180 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Add
2181 DEF_STMT to the list of statements to be replaced by the
2184 2011-10-16 Eric Botcazou <ebotcazou@adacore.com>
2186 PR rtl-optimization/50615
2187 * combine.c (distribute_notes) <REG_ARGS_SIZE>: Skip if I3 is a no-op.
2189 2011-10-16 Jakub Jelinek <jakub@redhat.com>
2191 PR tree-optimization/50596
2192 * tree-vectorizer.h (NUM_PATTERNS): Increase to 7.
2193 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
2194 vect_recog_bool_pattern.
2195 (check_bool_pattern, adjust_bool_pattern_cast,
2196 adjust_bool_pattern, vect_recog_bool_pattern): New functions.
2198 2011-10-16 Ira Rosen <ira.rosen@linaro.org>
2200 * tree-vect-stmts.c (vectorizable_load): For SLP without permutation
2201 treat the first load of the node as the first element in its
2203 * tree-vect-slp.c (vect_get_and_check_slp_defs): Swap the operands if
2204 necessary and possible.
2205 (vect_build_slp_tree): Add new argument. Allow load groups of any size
2206 in basic blocks. Keep all the loads for further permutation check.
2207 Use the new argument to determine if there is a permutation. Update
2208 the recursive calls.
2209 (vect_supported_load_permutation_p): Allow subchains of interleaving
2210 chains in basic block vectorization.
2211 (vect_analyze_slp_instance): Update the call to vect_build_slp_tree.
2212 Check load permutation based on the new parameter.
2213 (vect_schedule_slp_instance): Don't start from the first element in
2214 interleaving chain unless the loads are permuted.
2216 2011-10-15 Jan Hubicka <jh@suse.cz>
2220 * cgraphunit.c (cgraph_expand_function): Expand thunks and alises
2221 after function body.
2223 2011-10-15 Richard Henderson <rth@redhat.com>
2225 * tree-vect-slp.c: Include langhooks.h.
2226 (vect_create_mask_and_perm): Emit VEC_PERM_EXPR, not a builtin.
2227 (vect_transform_slp_perm_load): Use can_vec_perm_expr_p. Simplify
2228 mask creation for VEC_PERM_EXPR.
2229 * tree-vect-stmts.c (perm_mask_for_reverse): Return the mask,
2231 (reverse_vec_elements): Emit VEC_PERM_EXPR not a builtin.
2232 * Makefile.in (tree-vect-slp.o): Update dependency.
2233 * optabs.c (can_vec_perm_expr_p): Allow NULL as unknown constant.
2235 2011-10-15 Alan Modra <amodra@gmail.com>
2238 * ifcvt.c (dead_or_predicable): Revert accidental commit with
2239 HAVE_simple_return test.
2241 2011-10-15 Alan Modra <amodra@gmail.com>
2243 * ifcvt.c (dead_or_predicable): Disable if-conversion when
2244 doing so is likely to kill a shrink-wrapping opportunity.
2246 PR rtl-optimization/49941
2247 * jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
2249 * rtl.h (set_return_jump_label): Declare.
2250 * function.c (set_return_jump_label): New function, extracted..
2251 (thread_prologue_and_epilogue_insns): ..from here. Use it in
2252 another instance to set return jump_label.
2253 * cfgrtl.c (force_nonfallthru_and_redirect): Use set_return_jump_label.
2254 * reorg.c (find_end_label): Likewise.
2256 2011-10-14 David S. Miller <davem@davemloft.net>
2258 * config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
2259 with a more complete cpp test.
2260 * config/sparc/linux64.h: Likewise.
2261 * config/sparc/linux.h: Likewise.
2262 * config/sparc/sparc.opt (sparc_debug): New target variable.
2263 (mdebug): New target option.
2264 * config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
2265 TARGET_DEBUG_OPTIONS): New defines.
2266 * config/sparc/sparc.c (debug_target_flag_bits,
2267 debug_target_flags): New functions.
2268 (sparc_option_override): Add name strings back to cpu_table[].
2269 Parse -mdebug string. When TARGET_DEBUG_OPTIONS is true, print
2270 out the target flags before and after override processing as well
2271 as the selected cpu. If MASK_V8PLUS, make sure that the selected
2274 2011-10-15 Oleg Endo <oleg.endo@t-online.de>
2277 * config/sh/sh.h (ZERO_EXTRACT_ANDMASK): New macro.
2278 * config/sh/sh.c (sh_rtx_costs): Add test instruction case.
2279 * config/sh/sh.md (tstsi_t): Name existing insn. Make inner
2280 and instruction commutative.
2281 (tsthi_t, tstqi_t, tstqi_t_zero, tstsi_t_and_not,
2282 tstsi_t_zero_extract_eq, tstsi_t_zero_extract_xor,
2283 tstsi_t_zero_extract_subreg_xor_little,
2284 tstsi_t_zero_extract_subreg_xor_big): New insns.
2285 (*movsicc_t_false, *movsicc_t_true): Replace space with tab in
2287 (*andsi_compact): Reorder alternatives so that K08 is considered first.
2289 2011-10-14 Eric Botcazou <ebotcazou@adacore.com>
2292 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if the default
2293 processor is at least V9 and TARGET_64BIT_DEFAULT is defined.
2295 2011-10-14 Gerald Pfeifer <gerald@pfeifer.com>
2297 * invoke.texi (AVR Options): Avoid \leq{}.
2299 2011-10-14 Kai Tietz <ktietz@redhat.com>
2301 * gimplify.c (gimplify_expr): Take care that for bitwise-binary
2302 transformation the operands have compatible types.
2304 2011-10-14 Jakub Jelinek <jakub@redhat.com>
2306 * config/i386/sse.md (vec_widen_smult_hi_v8hi,
2307 vec_widen_smult_lo_v8hi, vec_widen_umult_hi_v8hi,
2308 vec_widen_umult_lo_v8hi): Macroize using VI2_AVX2
2309 mode iterator and any_extend code iterator.
2310 (vec_widen_<s>mult_hi_v8si, vec_widen_<s>mult_lo_v8si): New expanders.
2311 (vec_widen_smult_hi_v4si, vec_widen_smult_lo_v4si): Enable
2312 also for TARGET_SSE4_1 using pmuldq insn.
2313 (sdot_prodv8hi): Macroize using VI2_AVX2 iterator.
2314 (sse2_sse4_1): New code attr.
2315 (udot_prodv4si): Macroize using any_extend code iterator.
2316 (<s>dot_prodv8si): New expander.
2318 2011-10-14 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
2320 * config/i386/i386.c (atom_cost): Changed cost for loading
2321 QImode using movzbl.
2323 2011-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2325 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo in my
2326 change on October 11th, 2011.
2328 2011-10-14 Jakub Jelinek <jakub@redhat.com>
2330 * config/i386/sse.md (vec_interleave_high<mode>,
2331 vec_interleave_low<mode>): Add AVX2 expanders for VI_256 modes.
2332 * config/i386/i386.c (expand_vec_perm_interleave3): New function.
2333 (ix86_expand_vec_perm_builtin_1): Call it.
2335 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
2337 Fix thinko from r179765
2338 * config/avr/avr.c (avr_option_override): Don't override
2339 flag_omit_frame_pointer if not actually needed.
2341 2011-10-14 Georg-Johann Lay <avr@gjlay.de>
2344 * doc/invoke.texi (AVR Options): Document -mstrict-X.
2346 * config/avr/avr.opt (-mstrict-X): New option.
2347 (avr_strict_X): New variable reflecting -mstrict-X.
2348 * config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
2349 outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
2350 (avr_legitimate_address_p): Pass outer_code to
2351 avr_reg_ok_for_addr_p and use that function in case PLUS.
2352 (avr_mode_code_base_reg_class): Depend on avr_strict_X.
2353 (avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
2354 (avr_option_override): Disable -fcaller-saves if -mstrict-X is on.
2356 2011-10-14 Jakub Jelinek <jakub@redhat.com>
2358 * config/i386/sse.md (neg<mode>2): Use VI_AVX2 iterator instead
2361 * config/i386/sse.md (mulv2di3): Macroize using VI8_AVX2 iterator.
2362 (ashl<mode>3): Use VI248_AVX2 iterator instead of VI248_128.
2363 Use <sseinsnmode> instead of TI in mode attr.
2365 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
2367 * config/arm/linux-atomic-64bit.c: New (based on linux-atomic.c).
2368 * config/arm/linux-atomic.c: Change comment to point to 64bit version.
2369 (SYNC_LOCK_RELEASE): Instantiate 64bit version.
2370 * config/arm/t-linux-eabi: Pull in linux-atomic-64bit.c.
2372 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
2374 * config/arm/arm.c (arm_output_ldrex): Support ldrexd.
2375 (arm_output_strex): Support strexd.
2376 (arm_output_it): New helper to output it in Thumb2 mode only.
2377 (arm_output_sync_loop): Support DI mode. Change comment to
2378 not support const_int.
2379 (arm_expand_sync): Support DI mode.
2380 * config/arm/arm.h (TARGET_HAVE_LDREXBHD): Split into LDREXBH
2382 * config/arm/iterators.md (NARROW): move from sync.md.
2383 (QHSD): New iterator for all current ARM integer modes.
2384 (SIDI): New iterator for SI and DI modes only.
2385 * config/arm/sync.md (sync_predtab): New mode_attr.
2386 (sync_compare_and_swapsi): Fold into sync_compare_and_swap<mode>.
2387 (sync_lock_test_and_setsi): Fold into sync_lock_test_and_setsi<mode>.
2388 (sync_<sync_optab>si): Fold into sync_<sync_optab><mode>.
2389 (sync_nandsi): Fold into sync_nand<mode>.
2390 (sync_new_<sync_optab>si): Fold into sync_new_<sync_optab><mode>.
2391 (sync_new_nandsi): Fold into sync_new_nand<mode>.
2392 (sync_old_<sync_optab>si): Fold into sync_old_<sync_optab><mode>.
2393 (sync_old_nandsi): Fold into sync_old_nand<mode>.
2394 (sync_compare_and_swap<mode>): Support SI & DI.
2395 (sync_lock_test_and_set<mode>): Likewise.
2396 (sync_<sync_optab><mode>): Likewise.
2397 (sync_nand<mode>): Likewise.
2398 (sync_new_<sync_optab><mode>): Likewise.
2399 (sync_new_nand<mode>): Likewise.
2400 (sync_old_<sync_optab><mode>): Likewise.
2401 (sync_old_nand<mode>): Likewise.
2402 (arm_sync_compare_and_swapsi): Turn into iterator on SI & DI.
2403 (arm_sync_lock_test_and_setsi): Likewise.
2404 (arm_sync_new_<sync_optab>si): Likewise.
2405 (arm_sync_new_nandsi): Likewise.
2406 (arm_sync_old_<sync_optab>si): Likewise.
2407 (arm_sync_old_nandsi): Likewise.
2408 (arm_sync_compare_and_swap<mode> NARROW): use sync_predtab, fix indent.
2409 (arm_sync_lock_test_and_setsi<mode> NARROW): Likewise.
2410 (arm_sync_new_<sync_optab><mode> NARROW): Likewise.
2411 (arm_sync_new_nand<mode> NARROW): Likewise.
2412 (arm_sync_old_<sync_optab><mode> NARROW): Likewise.
2413 (arm_sync_old_nand<mode> NARROW): Likewise.
2415 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
2418 * config/arm/arm.c (arm_output_sync_loop): Move label before barrier.
2420 2011-10-14 David Alan Gilbert <david.gilbert@linaro.org>
2422 * config/arm/arm.h (TARGET_HAVE_DMB_MCR): MCR Not available in Thumb1.
2424 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2426 * doc/invoke.texi ([Wformat-zero-length]): Tidy.
2428 2011-10-14 Jakub Jelinek <jakub@redhat.com>
2430 * gimple.c (walk_stmt_load_store_addr_ops): Call visit_addr also
2431 on COND_EXPR/VEC_COND_EXPR comparison operands if they are ADDR_EXPRs.
2433 2011-10-14 Richard Guenther <rguenther@suse.de>
2435 PR tree-optimization/50723
2436 * ipa-split.c (split_function): Use GSI_CONTINUE_LINKING.
2438 2011-10-14 Nicola Pero <nicola.pero@meta-innovation.com>
2440 * gengtype.c (files_rules): Added rules for objc/objc-map.h and
2443 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2446 * doc/invoke.texi ([Wformat-zero-length]): Update.
2448 2011-10-14 Iain Sandoe <iains@gcc.gnu.org>
2451 * config/darwin.c (darwin_patch_builtin): Adjust argument type. Only
2452 build for powerpc targets. (darwin_patch_builtins): Only build for
2455 2011-10-14 Jakub Jelinek <jakub@redhat.com>
2457 * config/i386/sse.md (*avx_cvtdq2pd256_2): Rename to...
2458 (avx_cvtdq2pd256_2): ... this.
2459 (sseunpackfltmode): New mode attr.
2460 (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi,
2461 vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): Macroize
2462 using VI2_AVX2 iterator.
2463 (vec_unpacku_float_hi_v8si, vec_unpacku_float_lo_v8si): New expanders.
2465 2011-10-13 David S. Miller <davem@davemloft.net>
2467 * config/sparc/sparc.md (plusminus): New code iterator.
2468 (plusminus_insn): New code attr.
2469 (addv2si3, subv2si3, addv4hi3, subv4hi3, addv2hi3, subv2hi3): Merge
2470 using plusminus and plusminus_insn.
2471 (fpadd64_vis, fpsub64_vis): Likewise.
2473 2011-10-13 Richard Henderson <rth@redhat.com>
2475 * doc/md.texi (vec_perm): Document fallback to byte permutation.
2476 * genopinit.c (optabs): Add vec_perm_const.
2477 * optabs.c (can_vec_perm_expr_p): Rename from expand_vec_perm_expr_p.
2478 Reject non-vector modes. Allow fallback to byte permutation.
2479 (expand_vec_perm_expr_1): Split out from ...
2480 (expand_vec_perm_expr): ... here. Allow fallback to byte permutation.
2481 * optabs.h (DOI_vec_perm_const, vec_perm_const_optab): New.
2482 * tree-vect-generic.c (lower_vec_perm): Update for name change.
2484 2011-10-13 Richard Henderson <rth@redhat.com>
2486 * config/rs6000/altivec.md (vec_permv16qi): New pattern.
2488 * config/rs6000/spu.md (vec_permv16qi): New pattern.
2490 * config/i386/i386.c (ix86_expand_vec_perm_const): New.
2491 * config/i386/i386-protos.h: Update.
2492 * config/i386/sse.md (VEC_PERM_CONST): New mode iterator.
2493 (vec_perm_const<VEC_PERM_CONST>): New expander.
2495 * optabs.c (expand_vector_broadcast): New.
2496 (expand_binop): Expand scalar shifts of vectors to vector shifts
2497 of vectors, if the former isn't supported.
2498 * tree-vect-generic.c (expand_vector_operations_1): Don't do that
2499 here; always simplify to scalar shift of vector if possible.
2501 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix mode
2502 test for vector splat.
2504 2011-10-13 Jakub Jelinek <jakub@redhat.com>
2506 * config/i386/sse.md (vec_set<mode>): Change V_128 iterator mode to V.
2508 2011-10-13 Jakub Jelinek <jakub@redhat.com>
2509 Richard Guenther <rguenther@suse.de>
2511 * tree-ssa.c (maybe_optimize_var): Drop TREE_ADDRESSABLE from vector
2512 or complex vars even if their DECL_UID is in not_reg_needs bitmap.
2514 2011-10-13 Jakub Jelinek <jakub@redhat.com>
2516 * config/i386/sse.md (reduc_umin_v8hi): New pattern.
2517 * config/i386/i386.c (ix86_build_const_vector): Handle
2518 also V32QI, V16QI, V16HI and V8HI modes.
2519 (emit_reduc_half): New function.
2520 (ix86_expand_reduc): Use phminposuw insn for V8HImode UMIN.
2521 Use emit_reduc_half helper function.
2523 2011-10-13 Lawrence Crowl <crowl@google.com>
2524 Diego Novillo <dnovillo@google.com>
2526 * lto-streamer-in.c (input_struct_function_base): Factor out of ...
2527 (input_function): ... here.
2528 * lto-streamer-out.c (output_struct_function_base): Factor out of ...
2529 (output_function): ... here.
2531 2011-10-13 Gabriel Charette <gchare@google.com>
2532 Diego Novillo <dnovillo@google.com>
2534 * streamer-hooks.h (struct streamer_hooks): Add hooks
2535 input_location and output_location.
2536 * lto-streamer-in.c (lto_input_location): Use
2537 streamer_hooks.input_location, if set.
2538 * lto-streamer-out.c (lto_output_location): Use
2539 streamer_hooks.output_location, if set.
2541 2011-10-13 Eric Botcazou <ebotcazou@adacore.com>
2543 * doc/invoke.texi (SPARC options): Document -mfix-at697f.
2544 * config/sparc/sparc.opt (mfix-at697f): New option.
2545 * config/sparc/sparc.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
2546 (sparc_reorg): New function.
2548 2011-10-13 Richard Guenther <rguenther@suse.de>
2550 PR tree-optimization/50712
2551 * ipa-split.c (split_function): Always re-gimplify parameters
2552 when they are not gimple vals before passing them. Properly
2553 check for type compatibility.
2555 2011-10-13 Tom de Vries <tom@codesourcery.com>
2557 * function.c (gimplify_parameters): Set number of arguments of call to
2558 BUILT_IN_ALLOCA_WITH_ALIGN to 2.
2560 2011-10-13 Tom de Vries <tom@codesourcery.com>
2562 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_READONLY_P
2563 for static const strings.
2564 * varasm.c (build_constant_desc): Generate the memory location of the
2565 constant using gen_const_mem.
2567 2011-10-13 Richard Guenther <rguenther@suse.de>
2569 PR tree-optimization/50698
2570 * tree-data-ref.c (split_constant_offset_1): Also process
2573 2011-10-12 David S. Miller <davem@davemloft.net>
2575 * config/sparc/sparc.md (UNSPEC_FPMERGE): Delete.
2576 (UNSPEC_MUL16AU, UNSPEC_MUL8, UNSPEC_MUL8SU, UNSPEC_MULDSU): New
2578 (fpmerge_vis): Remove inaccurate comment, represent using vec_select
2580 (vec_interleave_lowv8qi, vec_interleave_highv8qi): New insns.
2581 (fmul8x16_vis, fmul8x16au_vis, fmul8sux16_vis, fmuld8sux16_vis):
2582 Reimplement as unspecs and remove inaccurate comments.
2583 (vis3_shift_patname): New code attr.
2584 (<vis3_shift_insn><vbits>_vis): Rename to
2585 "v<vis3_shift_patname><mode>3".
2586 (vis3_addsub_ss_patname): New code attr.
2587 (<vis3_addsub_ss_insn><vbits>_vis): Rename to
2588 "<vis3_addsub_ss_patname><mode>3".
2589 * config/sparc/sparc.c (sparc_vis_init_builtins): Update to
2590 accommodate pattern name changes.
2592 * config/sparc/sparc.h: Do not force TARGET_VIS3 and TARGET_FMAF
2593 to zero when assembler lacks support for such instructions.
2594 * config/sparc/sparc.c (sparc_option_override): Clear MASK_VIS3
2595 and MASK_FMAF in defaults when assembler lacks necessary support.
2597 2011-10-12 Jakub Jelinek <jakub@redhat.com>
2599 * config/i386/sse.md (vec_unpacks_lo_<mode>,
2600 vec_unpacks_hi_<mode>, vec_unpacku_lo_<mode>,
2601 vec_unpacku_hi_<mode>): Change VI124_128 mode to VI124_AVX2.
2602 * config/i386/i386.c (ix86_expand_sse_unpack): Handle
2603 V32QImode, V16HImode and V8SImode for TARGET_AVX2.
2605 * config/i386/sse.md (vec_avx2): New mode_attr.
2606 (mulv16qi3): Macroize to cover also mulv32qi3 for TARGET_AVX2 into ...
2607 (mul<mode>3): ... this.
2609 * config/i386/i386.md (UNSPEC_VPERMDI): Remove.
2610 * config/i386/i386.c (ix86_expand_vec_perm): Handle
2611 V16QImode and V32QImode for TARGET_AVX2.
2612 (MAX_VECT_LEN): Increase to 32.
2613 (expand_vec_perm_blend): Add support for 32-byte integer
2614 vectors with TARGET_AVX2.
2615 (valid_perm_using_mode_p): New function.
2616 (expand_vec_perm_pshufb): Add support for 32-byte integer
2617 vectors with TARGET_AVX2.
2618 (expand_vec_perm_vpshufb2_vpermq): New function.
2619 (expand_vec_perm_vpshufb2_vpermq_even_odd): New function.
2620 (expand_vec_perm_even_odd_1): Handle 32-byte integer vectors
2622 (ix86_expand_vec_perm_builtin_1): Try expand_vec_perm_vpshufb2_vpermq
2623 and expand_vec_perm_vpshufb2_vpermq_even_odd.
2624 * config/i386/sse.md (VEC_EXTRACT_EVENODD_MODE): Add for TARGET_AVX2
2625 32-byte integer vector modes.
2626 (vec_pack_trunc_<mode>): Use VI248_AVX2 instead of VI248_128.
2627 (avx2_interleave_highv32qi, avx2_interleave_lowv32qi): Remove pasto.
2628 (avx2_pshufdv3, avx2_pshuflwv3, avx2_pshufhwv3): Generate
2630 (avx2_pshufd_1, avx2_pshuflw_1, avx2_pshufhw_1): Don't use
2631 match_dup, instead add 4 new operands and require they have
2632 right cross-lane values.
2633 (avx2_permv4di): Change into define_expand.
2634 (avx2_permv4di_1): New instruction.
2635 (avx2_permv2ti): Use nonimmediate_operand instead of register_operand
2636 for "xm" constrained operand.
2637 (VEC_PERM_AVX2): Add V32QI and V16QI for TARGET_AVX2.
2639 * config/i386/sse.md (avx2_gathersi<mode>,
2640 avx2_gatherdi<mode>, avx2_gatherdi<mode>256): Add clobber of
2641 match_scratch, change memory_operand to register_operand,
2642 add (mem:BLK (scratch)) use.
2643 (*avx2_gathersi<mode>, *avx2_gatherdi<mode>,
2644 *avx2_gatherdi<mode>256): Add clobber of match_scratch,
2645 add earlyclobber to the output operand and match_scratch,
2646 add (mem:BLK (scratch)) use, change the other mem to match_operand.
2647 Use %p6 instead of %c6 in the pattern.
2648 * config/i386/i386.c (ix86_expand_builtin): Adjust for
2649 operand 2 being a Pmode register_operand instead of memory_operand.
2651 2011-10-12 Kai Tietz <ktietz@redhat.com>
2653 * config/i386/i386.md (simple_return): Disable if TARGET_SEH is active.
2655 2011-10-12 Steve Ellcey <sje@cup.hp.com>
2657 * config/ia64/ia64.c (ia64_init_builtins): Fix unbalanced parentheses.
2659 2011-10-12 Richard Guenther <rguenther@suse.de>
2661 * tree-ssa-alias.c (maybe_skip_until): Cache also at the point
2662 of the first store we visit in a basic-block.
2663 (get_continuation_for_phi): Search for a candidate VUSE that
2664 might dominates all others. Do pairwise disambiguation against
2667 2011-10-12 Paul Koning <pkoning@gcc.gnu.org>
2669 PR tree-optimization/50189
2670 * tree-vrp.c (extract_range_from_assert): Use the type of
2671 the variable, not the limit.
2673 2011-10-12 Richard Guenther <rguenther@suse.de>
2675 PR tree-optimization/50700
2676 * tree-object-size.c (addr_object_size): Simplify and treat
2677 MEM_REF bases consistently.
2679 2011-10-12 Bernd Schmidt <bernds@codesourcery.com>
2681 * function.c (prepare_shrink_wrap, bb_active_p): New function.
2682 (thread_prologue_and_epilogue_insns): Use bb_active_p. Call
2683 prepare_shrink_wrap, then recompute bb_active_p for the last block.
2685 2011-10-12 Joseph Myers <joseph@codesourcery.com>
2688 * convert.c (convert_to_integer): Do not narrow operands of
2689 pointer subtraction.
2691 2011-10-12 Nick Clifton <nickc@redhat.com>
2693 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): New macro. Used to
2694 emit a .eabi_attribute assembler directive, possibly with a
2696 * config/arm/arm.c (arm_file_start): Use the new macro.
2697 * config/arm/arm-c.c (arm_output_c_attributes): Likewise.
2699 2011-10-12 Georg-Johann Lay <avr@gjlay.de>
2702 * config/avr/avr.md (*movqi): Rename to movqi_insn.
2703 (*call_insn): Rename to call_insn.
2704 (*call_value_insn): Rename to call_value_insn.
2705 * config/avr/avr.c (avr_2word_insn_p): New static function.
2706 (jump_over_one_insn_p): Use it.
2708 2011-10-12 Richard Sandiford <richard.sandiford@linaro.org>
2710 * expr.h (copy_blkmode_to_reg): Declare.
2711 * expr.c (copy_blkmode_to_reg): New function.
2712 (expand_assignment): Don't expand register RESULT_DECLs before
2713 the lhs. Use copy_blkmode_to_reg to copy BLKmode values into a
2714 RESULT_DECL register.
2715 (expand_expr_real_1): Handle BLKmode decls when looking for promotion.
2716 * stmt.c (expand_return): Move BLKmode-to-register code into
2717 copy_blkmode_to_reg.
2719 2011-10-11 Eric Botcazou <ebotcazou@adacore.com>
2722 * config/sparc/sparc.md (mov<I:mode>cc): Do not save comparison code.
2723 (mov<F:mode>cc): Likewise.
2725 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2727 * tree-ssa-address.c (copy_ref_info): Remove copy of TREE_THIS_NOTRAP.
2729 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2731 * tree.h (built_in_decls): Delete old interface with two parallel
2732 arrays to hold standard builtin declarations, and replace it with
2733 a function based interface that can support creating builtins on
2734 the fly in the future. Change all uses, and poison the old
2735 names. Make sure 0 is not a legitimate builtin index.
2736 (implicit_built_in_decls): Ditto.
2737 (built_in_info): Ditto.
2738 (BUILTIN_VALID_P): Ditto.
2739 (builtin_decl_explicit): Ditto.
2740 (builtin_decl_implicit): Ditto.
2741 (set_builtin_decl): Ditto.
2742 (set_builtin_decl_implicit_p): Ditto.
2743 (builtin_decl_explicit_p): Ditto.
2744 (builtin_decl_implicit_p): Ditto.
2745 * tree-complex.c (expand_complex_libcall): Ditto.
2746 * tree-loop-distribution.c (generate_memset_zero): Ditto.
2747 * tree-ssa-strlen.c (get_string_length): Ditto.
2748 (handle_builtin_strcpy): Ditto.
2749 (handle_builtin_strcat): Ditto.
2750 * tree.c (iterative_hash_expr): Ditto.
2751 (local_define_builtin): Ditto.
2752 (build_common_builtin_nodes): Ditto.
2753 * builtins.c (built_in_decls): Ditto.
2754 (implicit_built_in_decls): Ditto.
2755 (built_in_info): Ditto
2756 (expand_builtin_classify_type): Ditto.
2757 (mathfn_built_in_1): Ditto.
2758 (expand_builtin_cexpi): Ditto.
2759 (expand_builtin_mempcpy_args): Ditto.
2760 (expand_builtin_stpcpy): Ditto.
2761 (gimplify_va_arg_expr): Ditto.
2762 (expand_builtin_sync_operation): Ditto.
2763 (build_builtin_expect_predicate): Ditto.
2764 (fold_builtin_memory_op): Ditto.
2765 (fold_builtin_strcpy): Ditto.
2766 (fold_builtin_stpcpy): Ditto.
2767 (fold_builtin_strncpy): Ditto.
2768 (fold_builtin_interclass_mathfn): Ditto.
2769 (fold_builtin_classify): Ditto.
2770 (fold_builtin_2): Ditto.
2771 (fold_builtin_strstr): Ditto.
2772 (fold_builtin_strrchr): Ditto.
2773 (fold_builtin_strpbrk): Ditto.
2774 (fold_builtin_strcat): Ditto.
2775 (fold_builtin_strncat): Ditto.
2776 (fold_builtin_strcspn): Ditto.
2777 (fold_builtin_fputs): Ditto.
2778 (fold_builtin_sprintf): Ditto.
2779 (fold_builtin_snprintf): Ditto.
2780 (expand_builtin_memory_chk): Ditto.
2781 (fold_builtin_memory_chk): Ditto.
2782 (fold_builtin_stxcpy_chk): Ditto.
2783 (fold_builtin_strncpy_chk): Ditto.
2784 (fold_builtin_strcat_chk): Ditto.
2785 (fold_builtin_strncat_chk): Ditto.
2786 (fold_builtin_sprintf_chk_1): Ditto.
2787 (fold_builtin_snprintf_chk_1): Ditto.
2788 (fold_builtin_printf): Ditto.
2789 (fold_builtin_fprintf): Ditto.
2790 (fold_call_stmt): Ditto.
2791 (set_builtin_user_assembler_name): Ditto.
2792 * tree-emutls.c (emutls_common_1): Ditto.
2793 * omp-low.c (scan_omp): Ditto.
2794 (lower_rec_input_clauses): Ditto.
2795 (lower_reduction_clauses): Ditto.
2796 (expand_parallel_call): Ditto.
2797 (expand_task_call): Ditto.
2798 (maybe_catch_exception): Ditto.
2799 (optimize_omp_library_calls): Ditto.
2800 (expand_omp_for_generic): Ditto.
2801 (expand_omp_for_static_nochunk): Ditto.
2802 (expand_omp_for_static_chunk): Ditto.
2803 (expand_omp_sections): Ditto.
2804 (expand_omp_atomic_fetch_op): Ditto.
2805 (expand_omp_atomic_pipeline): Ditto.
2806 (expand_omp_atomic_mutex): Ditto.
2807 (lower_omp_single_simple): Ditto.
2808 (lower_omp_single_copy): Ditto.
2809 (lower_omp_master): Ditto.
2810 (lower_omp_ordered): Ditto.
2811 (lower_omp_critical): Ditto.
2812 * tree-ssa-ccp.c (optimize_stdarg_builtin): Ditto.
2813 * builtins.c (DEF_BUILTIN_STUB): Ditto.
2814 (BUILT_IN_NONE): Ditto.
2815 * tree-ssa-math-opts.c (execute_optimize_bswap): Ditto.
2816 * gimple-low.c (lower_function_body): Ditto.
2817 (lower_builtin_setjmp): Ditto.
2818 * c-decl.c (merge_decls): Ditto.
2819 * tree-eh.c (lower_resx): Ditto.
2820 (lower_resx): Ditto.
2821 (lower_eh_dispatch): Ditto.
2822 * function (gimplify_parameters): Ditto.
2823 * c-typeck.c (build_function_call_vec): Ditto.
2824 * gimplify.c (build_stack_save_restore): Ditto.
2825 (gimplify_vla_decl): Ditto.
2826 (gimplify_modify_expr_to_memcpy): Ditto.
2827 (gimplify_modify_expr_to_memset): Ditto.
2828 (gimplify_variable_sized_compare): Ditto.
2829 (gimplify_function_tree): Ditto.
2830 * calls.c (emit_call_1): Ditto.
2831 * tree-ssa-forprop.c (simplify_builtin_call): Ditto.
2832 * tree-nested.c (convert_nl_goto_reference): Ditto.
2833 (convert_tramp_reference_op): Ditto.
2834 (finalize_nesting_tree_1): Ditto.
2835 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
2836 (tree_ssa_prefetch_arrays): Ditto.
2837 * tree-streamer-in.c (streamer_get_builtin_tree): Ditto.
2838 * system.h (built_in_decls): Ditto.
2839 (implicit_built_in_decls): Ditto.
2840 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
2841 * config/sparc/sparc.c (sparc_gimplify_va_arg): Ditto.
2842 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
2843 (ix86_veclibabi_svml): Ditto.
2844 (ix86_veclibabi_acml): Ditto.
2845 * config/vms/vms.c (vms_patch_builtins): Ditto.
2846 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
2847 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Ditto.
2848 (rs6000_builtin_vectorized_libmass): Ditto.
2849 (rs6000_init_builtins): Ditto.
2850 * config/darwin.c (darwin_override_options): Ditto.
2851 (darwin_patch_builtin): Ditto.
2852 (darwin_rename_builtins): Ditto.
2853 * config/pa/pa.c (pa_init_builtins): Ditto.
2855 2011-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2857 * tree.h (copy_ref_info): Expose existing function.
2858 * tree-ssa-loop-ivopts.c (copy_ref_info): Move function to...
2859 * tree-ssa-address.c (copy_ref_info): ...here, and remove static token.
2861 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
2863 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
2865 (avr_regno_mode_code_ok_for_base_p): New prototype.
2866 * config/avr/avr.h (BASE_REG_CLASS): Remove.
2867 (REGNO_OK_FOR_BASE_P): Remove.
2868 (REG_OK_FOR_BASE_NOSTRICT_P): Remove.
2869 (REG_OK_FOR_BASE_STRICT_P): Remove.
2870 (MODE_CODE_BASE_REG_CLASS): New define.
2871 (REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
2872 * config/avr/avr.c (avr_mode_code_base_reg_class): New function.
2873 (avr_regno_mode_code_ok_for_base_p): New function.
2874 (avr_reg_ok_for_addr_p): New static function.
2875 (avr_legitimate_address_p): Use it. Beautify.
2877 2011-10-11 Georg-Johann Lay <avr@gjlay.de>
2880 * config/avr/avr.md (cc): Add out_plus attribute alternative.
2881 (addsi3): Use it. Adapt avr_out_plus to new prototype. Use
2882 avr_out_plus for all CONST_INT addends.
2883 * config/avr/avr-protos.h (avr_out_plus): Change prototype.
2884 * config/avr/avr.c (notice_update_cc): Call avr_out_plus on
2886 (avr_out_plus_1): Change prototype and report effect on cc0.
2887 (avr_out_plus): Ditto.
2888 (adjust_insn_length): Adapt call to avr_out_plus to new prototype.
2890 2011-10-11 H.J. Lu <hongjiu.lu@intel.com>
2892 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove
2895 2011-10-11 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
2897 * doc/invoke.texi: Document new warning.
2898 * common.opt (Wvector-operation-performance): Define new warning.
2899 * tree-vect-generic.c (expand_vector_piecewise): Warn about expanded
2901 (exapnd_vector_parallel): Warn about expanded vector operation.
2902 (lower_vec_shuffle): Warn about expanded vector operation.
2903 * c-typeck.c (c_build_vec_perm_expr): Store correct location
2904 when creating VEC_PERM_EXPR.
2906 2011-10-11 Richard Guenther <rguenther@suse.de>
2908 PR tree-optimization/50204
2909 * tree-ssa-alias.c (get_continuation_for_phi_1): Split out
2910 two argument handling from ...
2911 (get_continuation_for_phi): ... here. Handle arbitrary number
2914 2011-10-11 Richard Sandiford <richard.sandiford@linaro.org>
2916 * modulo-sched.c: Fix comment typo. Mention the possibility
2917 of using scheduling windows of II+1 cycles.
2919 2011-10-11 Tristan Gingold <gingold@adacore.com>
2921 * doc/invoke.texi (C Dialect Options): Document
2922 -fallow-parameterless-variadic-functions.
2923 * c-parser.c (c_parser_parms_list_declarator): Handle it.
2925 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
2927 * config/avr/avr.c (avr_option_override): Set flag_omit_frame_pointer
2928 to 0 if frame pointer is needed for unwinding.
2930 2011-10-10 Uros Bizjak <ubizjak@gmail.com>
2933 * optabs.h (DOI_vec_perm): Rename from OTI_vec_perm. Move from enum
2934 optab_index to enum direct_optab_index.
2935 (vec_perm_optab): Update.
2937 2011-10-10 Anatoly Sokolov <aesok@post.ru>
2939 * config/cris/cris.c (cris_preferred_reload_class): New function.
2940 (TARGET_PREFERRED_RELOAD_CLASS): Define.
2941 * config/cris/cris.h (PREFERRED_RELOAD_CLASS): Remove.
2943 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
2945 * config/avr/avr.md (*tablejump_rjmp): Change insn condition to
2947 (*tablejump_lib): Change insn condition to AVR_HAVE_JMP_CALL.
2948 (*tablejump_enh, *tablejump): Remove insns.
2949 * config/avr/libgcc.S (__tablejump__): Use RET instead of EIND +
2950 EIJMP for indirect jump. Use LPM Z+ where available.
2952 2011-10-10 Richard Henderson <rth@redhat.com>
2954 * doc/md.texi (vec_perm_const): Fix typo in cindex.
2956 2011-10-10 Kirill Yukhin <kirill.yukhin@intel.com>
2957 Yakovlev Vladimir <vladimir.b.yakovlev@intel.com>
2959 * config/i386/sse.md (fma_fnmsub_<mode>): Fix a typo.
2961 2011-10-10 Richard Guenther <rguenther@suse.de>
2964 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
2965 mark symbols for renaming. Append the VUSE to all statements
2966 that possibly can have one.
2968 2011-10-10 Richard Guenther <rguenther@suse.de>
2970 * ipa-split.c (pass_split_functions): Add verification TODOs.
2971 (pass_feedback_split_functions): Likewise.
2973 2011-10-10 Richard Guenther <rguenther@suse.de>
2976 * fold-const.c (fold_binary_loc): Canonicalize x*x to pow (x, 2)
2977 only when optimizing.
2979 2011-10-10 Nick Clifton <nickc@redhat.com>
2982 * compare-elim.c (find_comparisons_in_bb): Use df_get_live_in and
2983 df_get_live_out instead of accessing the bitmaps directly.
2984 (execute_compare_elim_after_reload): Remove calls to df_set_flags,
2985 df_live_add_problem and df_analyze.
2987 2011-10-10 Michael Matz <matz@suse.de>
2990 * tree-emutls.c (gen_emutls_addr): Call add_referenced_var.
2992 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
2994 * modulo-sched.c (ps_reg_move_info): Add num_consecutive_stages.
2995 (SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES): Delete.
2996 (node_sched_params): Remove first_reg_move and nreg_moves.
2997 (ps_num_consecutive_stages, extend_node_sched_params): New functions.
2998 (update_node_sched_params): Move up file.
2999 (print_node_sched_params): Print the stage. Don't dump info related
3000 to first_reg_move and nreg_moves.
3001 (set_columns_for_row): New function.
3002 (set_columns_for_ps): Move up file and use set_columns_for_row.
3003 (schedule_reg_move): New function.
3004 (schedule_reg_moves): Call extend_node_sched_params and
3005 schedule_reg_move. Extend size of uses bitmap. Initialize
3006 num_consecutive_stages. Return false if a move could not be
3008 (apply_reg_moves): Don't emit moves here.
3009 (permute_partial_schedule): Handle register moves.
3010 (duplicate_insns_of_cycles): Remove for_prolog. Emit moves according
3011 to the same stage-count test as ddg nodes.
3012 (generate_prolog_epilog): Update calls accordingly.
3013 (sms_schedule): Allow move-scheduling to add a new first stage.
3015 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
3017 * modulo-sched.c (ps_insn): Adjust comment.
3018 (ps_reg_move_info): New structure.
3019 (partial_schedule): Add reg_moves field.
3020 (SCHED_PARAMS): Use node_sched_param_vec instead of node_sched_params.
3021 (node_sched_params): Turn first_reg_move into an identifier.
3022 (ps_reg_move): New function.
3023 (ps_rtl_insn): Cope with register moves.
3024 (ps_first_note): Adjust comment and assert that the instruction
3025 isn't a register move.
3026 (node_sched_params): Replace with...
3027 (node_sched_param_vec): ...this vector.
3028 (set_node_sched_params): Adjust accordingly.
3029 (print_node_sched_params): Take a partial schedule instead of a ddg.
3030 Use ps_rtl_insn and ps_reg_move.
3031 (generate_reg_moves): Rename to...
3032 (schedule_reg_moves): ...this. Remove rescan parameter. Record each
3033 move in the partial schedule, but don't emit it here. Don't perform
3034 register substitutions here either.
3035 (apply_reg_moves): New function.
3036 (duplicate_insns_of_cycles): Use register indices directly,
3037 rather than finding instructions using PREV_INSN. Use ps_reg_move.
3038 (sms_schedule): Call schedule_reg_moves before committing to
3039 a partial schedule. Try the next ii if the schedule fails.
3040 Use apply_reg_moves instead of generate_reg_moves. Adjust
3041 call to print_node_sched_params. Free node_sched_param_vec
3042 instead of node_sched_params.
3043 (create_partial_schedule): Initialize reg_moves.
3044 (free_partial_schedule): Free reg_moves.
3046 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
3048 * modulo-sched.c (ps_insn): Replace node field with an identifier.
3049 (SCHED_ASAP): Replace with..
3050 (NODE_ASAP): ...this macro.
3051 (SCHED_PARAMS): New macro.
3052 (SCHED_TIME, SCHED_FIRST_REG_MOVE, SCHED_NREG_MOVES, SCHED_ROW)
3053 (SCHED_STAGE, SCHED_COLUMN): Redefine using SCHED_PARAMS.
3054 (node_sched_params): Remove asap.
3055 (ps_rtl_insn, ps_first_note): New functions.
3056 (set_node_sched_params): Use XCNEWVEC. Don't copy across the
3058 (print_node_sched_params): Use SCHED_PARAMS and NODE_ASAP.
3059 (generate_reg_moves): Pass ids to the SCHED_* macros.
3060 (update_node_sched_params): Take a ps insn identifier rather than
3061 a node as parameter. Use ps_rtl_insn.
3062 (set_columns_for_ps): Update for above field and SCHED_* macro changes.
3063 (permute_partial_schedule): Use ps_rtl_insn and ps_first_note.
3064 (optimize_sc): Update for above field and SCHED_* macro changes.
3065 Update calls to try_scheduling_node_in_cycle and
3066 update_node_sched_params.
3067 (duplicate_insns_of_cycles): Adjust for above field and SCHED_*
3068 macro changes. Use ps_rtl_insn and ps_first_note.
3069 (sms_schedule): Pass ids to the SCHED_* macros.
3070 (get_sched_window): Adjust for above field and SCHED_* macro changes.
3071 Use NODE_ASAP instead of SCHED_ASAP.
3072 (try_scheduling_node_in_cycle): Remove node parameter. Update
3073 call to ps_add_node_check_conflicts. Pass ids to the SCHED_* macros.
3074 (sms_schedule_by_order): Update call to try_scheduling_node_in_cycle.
3075 (ps_insert_empty_row): Adjust for above field changes.
3076 (compute_split_row): Use ids rather than nodes.
3077 (verify_partial_schedule): Adjust for above field changes.
3078 (print_partial_schedule): Use ps_rtl_insn.
3079 (create_ps_insn): Take an id rather than a node.
3080 (ps_insn_find_column): Adjust for above field changes.
3082 (ps_insn_advance_column): Adjust for above field changes.
3083 (add_node_to_ps): Remove node parameter. Update call to
3085 (ps_has_conflicts): Use ps_rtl_insn.
3086 (ps_add_node_check_conflicts): Replace node parameter than an id.
3088 2011-10-10 Richard Sandiford <richard.sandiford@linaro.org>
3090 * modulo-sched.c (undo_replace_buff_elem): Delete.
3091 (generate_reg_moves): Don't build and return an undo list.
3092 (free_undo_replace_buff): Delete.
3093 (sms_schedule): Adjust call to generate_reg_moves.
3094 Don't call free_undo_replace_buff.
3096 2011-10-10 Matthias Klose <doko@ubuntu.com>
3098 * common/config/m32c: Remove empty directory.
3100 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
3102 * config/avr/avr.md (*mulhi3_enh): Treat squaring smarter.
3104 2011-10-10 Georg-Johann Lay <avr@gjlay.de>
3107 * config/avr/avr-mcus.def (AVR_MCU): Set .data_section_start of
3108 atmega164a to 0x100.
3110 2011-10-09 Eric Botcazou <ebotcazou@adacore.com>
3112 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Do not make
3113 the replacement if the conversion to the LHS type is not useless.
3115 2011-10-09 Ira Rosen <ira.rosen@linaro.org>
3117 PR tree-optimization/50635
3118 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add
3119 DEF_STMT to the list of statements to be replaced by the
3121 (vect_handle_widen_mult_by_const): Don't check TYPE_OUT.
3123 2011-10-09 Anatoly Sokolov <aesok@post.ru>
3125 * system.h: Commit forgotten hunk in previous patch.
3126 (OUTPUT_ADDR_CONST_EXTRA): Poison.
3128 2011-10-08 Nicola Pero <nicola.pero@meta-innovation.com>
3131 * doc/objc.texi (Garbage Collection): Updated example to protect
3132 +initialize against execution in subclasses.
3134 2011-10-07 Richard Henderson <rth@redhat.com>
3136 * doc/extend.texi (__builtin_shuffle): Improve the description to
3137 include the modulus of the selector. Mention OpenCL.
3138 * doc/md.texi (vec_perm, vec_perm_const): Document named patterns.
3140 * tree.def (VEC_PERM_EXPR): Rename from VEC_SHUFFLE_EXPR.
3141 * genopinit.c (optabs): Rename vshuffle to vec_perm.
3142 * c-typeck.c (c_build_vec_perm_expr): Rename from
3143 c_build_vec_shuffle_expr. Update for name changes.
3144 * optabs.c (expand_vec_perm_expr_p): Rename from
3145 expand_vec_shuffle_expr_p.
3146 (expand_vec_perm_expr): Rename from expand_vec_shuffle_expr.
3147 * optabs.h (OTI_vec_perm): Rename from DOI_vshuffle.
3148 (vec_perm_optab): Rename from vshuffle_optab.
3149 * expr.c, gimple-pretty-print.c, gimple.c, gimplify.c,
3150 c-tree.h, c-parser.c, tree-cfg.c, tree-inline.c, tree-pretty-print.c,
3151 tree-ssa-operands.c, tree-vect-generic.c: Update for name changes.
3153 * config/i386/i386.c (ix86_expand_vec_perm): Rename from
3154 ix86_expand_vshuffle.
3155 * config/i386/i386-protos.h: Update.
3156 * config/i386/sse.md (VEC_PERM_AVX2): Rename from VSHUFFLE_AVX2.
3157 (vec_perm<VEC_PERM_AVX2>): Rename from vshuffle<VSHUFFLE_AVX2>.
3159 2011-10-07 Richard Henderson <rth@redhat.com>
3161 * config/i386/predicates.md (avx2_pblendw_operand): New.
3162 * config/i386/sse.md (sse4_1_pblendw): Un-macroize.
3163 (avx2_pblendw, *avx2_pblendw): New expander and insn.
3165 2011-10-07 Richard Henderson <rth@redhat.com>
3167 * config/i386/i386.c (bdesc_args): Update code for
3168 __builtin_ia32_palignr256. Change type of __builtin_ia32_pslldqi256,
3169 and __builtin_ia32_psrldqi256 to V4DI_FTYPE_V4DI_INT_CONVERT.
3170 (ix86_expand_args_builtin): Handle V4DI_FTYPE_V4DI_INT_CONVERT.
3171 * config/i386/sse.md (mode iterator V16): Add V2TI.
3172 (mode iterator SSESCALARMODE): Use V2TI not V4DI.
3173 (mode attr ssse3_avx2): Add V2TI.
3174 (avx2_lshrqv4di3, avx2_lshlqv4di3): Remove.
3176 2011-10-07 David S. Miller <davem@davemloft.net>
3179 * configure.ac: Add .register directives to VIS3 test.
3180 * configure: Regenerate.
3182 2011-10-07 Richard Henderson <rth@redhat.com>
3184 * config.gcc (x86_64-*): Add core-avx-i, core-avx2 for with_cpu.
3186 2011-10-07 Richard Henderson <rth@redhat.com>
3189 * fold-const.c (fold_checksum_tree): Remove out-of-date assert.
3191 2011-10-07 Andrew Stubbs <ams@codesourcery.com>
3193 * config/arm/predicates.md (shift_amount_operand): Remove constant
3195 (shift_operator): Check range of constants for all shift operators.
3197 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3199 * config/s390/s390.c (s390_emit_tls_call_insn): Remove assertion.
3200 Load GOT pointer for non-pic builds.
3201 (s390_load_got): Replace pic_offset_table_rtx with hardcoded r12.
3202 (s390_emit_call): Likewise.
3204 2011-10-07 Tom de Vries <tom@codesourcery.com>
3207 * tree.c (build_common_builtin_nodes): Add local_define_builtin for
3208 BUILT_IN_ALLOCA_WITH_ALIGN. Mark that BUILT_IN_ALLOCA_WITH_ALIGN can
3210 * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN
3211 arglist. Set align for BUILT_IN_ALLOCA_WITH_ALIGN.
3212 (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
3213 (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
3214 * tree-ssa-ccp.c (evaluate_stmt): Set align for
3215 BUILT_IN_ALLOCA_WITH_ALIGN.
3216 (fold_builtin_alloca_for_var): Rename to ...
3217 (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd
3218 BUILT_IN_ALLOCA_WITH_ALIGN argument.
3219 (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using
3220 fold_builtin_alloca_with_align.
3221 (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
3222 * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using
3224 * ipa-pure-const.c (special_builtin_state): Handle
3225 BUILT_IN_ALLOCA_WITH_ALIGN.
3226 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1)
3227 (call_may_clobber_ref_p_1): Same.
3228 * function.c (gimplify_parameters): Lower vla to
3229 BUILT_IN_ALLOCA_WITH_ALIGN.
3230 * gimplify.c (gimplify_vla_decl): Same.
3231 * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN.
3232 * tree-mudflap.c (mf_xform_statements): Same.
3233 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
3234 (mark_all_reaching_defs_necessary_1, propagate_necessity): Same.
3235 * varasm.c (incorporeal_function_p): Same.
3236 * tree-object-size.c (alloc_object_size): Same.
3237 * gimple.c (gimple_build_call_from_tree): Same.
3239 2011-10-07 Bernd Schmidt <bernds@codesourcery.com>
3241 * function.c (frame_required_for_rtx): Remove function.
3242 (requires_stack_frame_p): New arg set_up_by_prologue. All callers
3243 changed. Compute a set of mentioned registers and compare against
3244 the new arg rather than calling frame_required_for_rtx.
3245 (thread_prologue_and_epilogue_insns): Compute the set_up_by_prologue
3246 reg set. Convert the unconverted_simple_returns mechanism to store
3247 jump insns rather than their basic blocks. Also check the
3248 orig_entry_edge destination for new blocks.
3250 2011-10-07 Jakub Jelinek <jakub@redhat.com>
3252 PR tree-optimization/50650
3253 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Don't
3254 call vect_is_simple_cond here, instead fail if cond_expr isn't
3255 COMPARISON_CLASS_P or if get_vectype_for_scalar_type returns NULL
3256 for cond_expr's first operand.
3257 * tree-vect-stmts.c (vect_is_simple_cond): Static again.
3258 * tree-vectorizer.h (vect_is_simple_cond): Remove prototype.
3260 2011-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3262 * config/s390/s390.md (DWH, dwh): New mode macros.
3263 ("umulsidi3"): Extend to support "umulditi3" as well.
3265 2011-10-07 Uros Bizjak <ubizjak@gmail.com>
3266 H.J. Lu <hongjiu.lu@intel.com>
3269 * config/i386/i386.c (ix86_fixup_binary_operands): Force src2 of
3270 integer PLUS RTX to a register to improve address combine.
3272 2011-10-06 Richard Henderson <rth@redhat.com>
3274 * combine-stack-adjust.c (maybe_move_args_size_note): Add after
3275 parameter; use it to decide whether to merge two notes.
3276 (combine_stack_adjustments_for_block): Use maybe_move_args_size_note
3277 for the deallocation case as well.
3279 2011-10-06 Anatoly Sokolov <aesok@post.ru>
3281 * system.h (OUTPUT_ADDR_CONST_EXTRA): Poison.
3282 * doc/tm.texi.in (OUTPUT_ADDR_CONST_EXTRA): Remove documentation.
3283 * doc/tm.texi: Regenerate.
3284 * target.def (output_addr_const_extra): Use
3285 hook_bool_FILEptr_rtx_false.
3286 * targhooks.c (default_asm_output_addr_const_extra): Remove.
3287 * targhooks.h (default_asm_output_addr_const_extra): Remove.
3288 * hooks.c (hook_bool_FILEptr_rtx_false): New functions.
3289 * hooks.h (hook_bool_FILEptr_rtx_false): Declare.
3291 2011-10-06 David S. Miller <davem@davemloft.net>
3293 * config/sparc/sparc.md (popcount<mode>2, clz<mode>2): Split up into...
3294 (popcountdi2, popcountsi2, clzdi2, clzsi2): Explicit expanders, in the
3295 SI mode 64-bit code gen case explicitly zero-extend and truncate.
3296 (*popcount<mode>_sp64): Split up into...
3297 (*popcountdi_sp64, *popcountsi_64): Explicit instantiations, and in the
3298 SImode case use truncate.
3299 (*clzsi_sp64): Rewrite to use truncate, and let the expander emit the
3300 subtract so the compiler can optimize it.
3301 (SIDI): Remove unused mode iterator.
3303 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
3305 * function.c (thread_prologue_and_epilogue_insns): Emit split prologue
3306 on the orig_entry_edge. Don't account for it in prologue_clobbered.
3308 2011-10-06 Jakub Jelinek <jakub@redhat.com>
3310 PR tree-optimization/50596
3311 * tree-vectorizer.h (vect_is_simple_cond): New prototype.
3312 (NUM_PATTERNS): Change to 6.
3313 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): New
3315 (vect_vect_recog_func_ptrs): Add vect_recog_mixed_size_cond_pattern.
3316 (vect_mark_pattern_stmts): Don't create stmt_vinfo for def_stmt
3317 if it already has one, and don't set STMT_VINFO_VECTYPE in it
3318 if it is already set.
3319 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Handle
3320 COND_EXPR in pattern stmts.
3321 (vect_is_simple_cond): No longer static.
3323 2001-10-06 Richard Henderson <rth@redhat.com>
3325 * config/i386/i386.c (ix86_expand_vshuffle): Add AVX2 support.
3326 * config/i386/sse.md (sseshuffint): Remove.
3327 (sseintvecmode): Support V16HI, V8HI, V32QI, V16QI.
3328 (VSHUFFLE_AVX2): New mode iterator.
3329 (vshuffle<mode>): Use it.
3330 (avx_vec_concat<V_256>): Rename from *vec_concat<V_256>_avx.
3332 * config/i386/i386.c (ix86_expand_sse_movcc): Use correct mode
3333 for vector_all_ones_operand.
3334 (ix86_expand_int_vcond): Distinguish between comparison mode
3335 and data mode. Allow them to differ.
3336 (ix86_expand_vshuffle): Don't force data mode to match maskmode.
3338 2001-10-06 Richard Henderson <rth@redhat.com>
3340 * optabs.c (expand_vec_shuffle_expr): Use the proper mode for the
3341 mask operand. Tidy the code.
3343 2011-10-06 Jakub Jelinek <jakub@redhat.com>
3345 * tree-vect-patterns.c (vect_pattern_recog_1): Use
3346 vect_recog_func_ptr typedef for the first argument.
3347 (vect_pattern_recog): Rename vect_recog_func_ptr variable
3348 to vect_recog_func, use vect_recog_func_ptr typedef for it.
3350 PR tree-optimization/49279
3351 * tree-ssa-structalias.c (find_func_aliases): Don't handle
3353 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
3354 restrict propagation.
3355 * tree-ssa.c (useless_type_conversion_p): Don't return false
3356 if TYPE_RESTRICT differs.
3358 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
3360 * function.c (thread_prologue_and_epilogue_insns): Build a vector
3361 of unconverted simple return blocks rather than trying to
3362 recompute them later based on bb_flags bitmap tests.
3364 2011-10-06 Michael Matz <matz@suse.de>
3366 * tree-flow.h (get_var_ann): Don't declare.
3367 * tree-flow-inline.h (get_var_ann): Remove.
3368 (set_is_used): Use var_ann, not get_var_ann.
3369 * tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
3370 * tree-profile.c (gimple_gen_edge_profiler): Call
3371 find_referenced_var_in.
3372 (gimple_gen_interval_profiler): Ditto.
3373 (gimple_gen_pow2_profiler): Ditto.
3374 (gimple_gen_one_value_profiler): Ditto.
3375 (gimple_gen_average_profiler): Ditto.
3376 (gimple_gen_ior_profiler): Ditto.
3377 (gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
3378 (gimple_gen_ic_func_profiler): Call add_referenced_var.
3379 * tree-mudflap.c (execute_mudflap_function_ops): Call
3382 2011-10-06 Jakub Jelinek <jakub@redhat.com>
3384 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): For lhs
3385 don't set SSA_NAME_DEF_STMT that has been already set by
3386 gimple_build_assign_with_ops.
3387 (vect_recog_pow_pattern, vect_recog_widen_sum_pattern,
3388 vect_operation_fits_smaller_type, vect_recog_over_widening_pattern):
3391 * tree.h (avoid_folding_inline_builtin): New prototype.
3392 * builtins.c (avoid_folding_inline_builtin): No longer static.
3393 * gimple-fold.c (gimple_fold_builtin): Give up if
3394 avoid_folding_inline_builtin returns true.
3396 2011-10-06 Richard Guenther <rguenther@suse.de>
3398 * tree-vect-generic.c (vector_element): Look at previous
3401 2011-10-06 David Edelsohn <dje.gcc@gmail.com>
3404 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Define
3405 __powerpc__, __PPC__, __unix__.
3407 2011-10-06 Michael Matz <matz@suse.de>
3409 * i386/i386.opt (recip_mask, recip_mask_explicit,
3410 x_recip_mask_explicit): New variables and cl_target member.
3411 (mrecip=): New option.
3412 * i386/i386.h (RECIP_MASK_DIV, RECIP_MASK_SQRT, RECIP_MASK_VEC_DIV,
3413 RECIP_MASK_VEC_SQRT, RECIP_MASK_ALL, RECIP_MASK_NONE): New bitmasks.
3414 (TARGET_RECIP_DIV, TARGET_RECIP_SQRT, TARGET_RECIP_VEC_DIV,
3415 TARGET_RECIP_VEC_SQRT): New tests.
3416 * i386/i386.md (divsf3): Check TARGET_RECIP_DIV.
3417 (sqrt<mode>2): Check TARGET_RECIP_SQRT.
3418 * i386/sse.md (div<mode>3): Check TARGET_RECIP_VEC_DIV.
3419 (sqrt<mode>2): Check TARGET_RECIP_VEC_SQRT.
3420 * i386/i386.c (ix86_option_override_internal): Set recip_mask
3421 for -mrecip and -mrecip=options.
3422 (ix86_function_specific_save): Save recip_mask_explicit.
3423 (ix86_function_specific_restore): Restore recip_mask_explicit.
3425 * doc/invoke.texi (ix86 Options): Document the new option.
3427 2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
3430 * config/arm/arm.md (arm_subsi3_insn): Lose the last alternative.
3432 2011-10-06 Ulrich Weigand <ulrich.weigand@linaro.org>
3435 * config/arm/arm.c (arm_legitimize_reload_address): Recognize
3436 output of a previous pass through legitimize_reload_address.
3437 Do not attempt to optimize addresses if the base register is
3438 equivalent to a constant.
3440 2011-10-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3442 * function.c (thread_prologue_and_epilogue_insns): Mark
3443 last_bb_active as possibly unused. It is unused for targets which
3444 do neither have "return" nor "simple_return" expanders.
3446 2011-10-06 Richard Guenther <rguenther@suse.de>
3448 * fold-const.c (fold_ternary_loc): Also fold non-constant
3449 vector CONSTRUCTORs. Make more efficient.
3450 * tree-ssa-dom.c (cprop_operand): Don't handle virtual operands.
3451 (cprop_into_stmt): Don't propagate into virtual operands.
3452 (optimize_stmt): Really dump original statement.
3454 2011-10-06 Nick Clifton <nickc@redhat.com>
3456 * config/rx/rx.md (smin3): Revert previous delta.
3458 2011-10-06 Richard Guenther <rguenther@suse.de>
3460 PR tree-optimization/38884
3461 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial
3462 reads from aggregate SSA names.
3464 2011-10-05 Jakub Jelinek <jakub@redhat.com>
3466 * tree-vect-patterns.c (vect_pattern_recog_1): Add stmts_to_replace
3467 argument, truncate it at the beginning instead of allocating there
3468 and freeing at the end.
3469 (vect_pattern_recog): Allocate stmts_to_replace here and free at end,
3470 pass its address to vect_pattern_recog_1.
3472 2011-10-05 David S. Miller <davem@davemloft.net>
3474 * config/sparc/sparc.opt (POPC): New option.
3475 * doc/invoke.texi: Document it.
3476 * config/sparc/sparc.c (sparc_option_override): Enable MASK_POPC by
3477 default on Niagara-2 and later.
3478 * config/sparc/sparc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
3479 * config/sparc/sparc.md (SIDI): New mode iterator.
3480 (ffsdi2): Delete commented out pattern and comments.
3481 (popcount<mode>2, clz<mode>2): New expanders.
3482 (*popcount<mode>_sp64, popcountsi_v8plus, popcountdi_v8plus,
3483 *clzdi_sp64, clzdi_v8plus, *clzsi_sp64, clzsi_v8plus): New insns.
3485 2011-10-06 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
3488 * c-tree.h (c_expr_t): New typedef for struct c_expr.
3489 (C_EXPR_APPEND): New macro.
3490 * c-parser.c (c_parser_get_builtin_args): Preserve
3491 original_tree_code of c_expr structure.
3492 (c_parser_postfix_expression): Adjust to the new function.
3494 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
3496 * function.c (thread_prologue_and_epilogue_insns): Don't shrink-wrap
3497 if profiling after the prologue.
3499 2011-10-05 Jakub Jelinek <jakub@redhat.com>
3501 PR tree-optimization/50613
3502 * tree-ssa-strlen.c (find_equal_ptrs): If CASE_CONVERT
3503 operand is ADDR_EXPR, fallthru into ADDR_EXPR handling,
3504 and if it is neither that not SSA_NAME, give up.
3506 2011-10-05 Richard Henderson <rth@redhat.com>
3508 * tree-vect-generic.c (vector_element): Never fail. Use
3509 build_zero_cst. Tidy up type references.
3510 (lower_vec_shuffle): Never fail. Mask shuffle indicies. Reduce
3511 code duplication. Do update_stmt here ...
3512 (expand_vector_operations_1): ... not here.
3514 * config/i386/i386.c (ix86_expand_vshuffle): Never fail. Handle
3515 TARGET_XOP. Fix pshufb constant vector creation. Reduce code
3516 duplication. Handle V2DI without SSE4.1.
3517 * config/i386/i386-protos.h (ix86_expand_vshuffle): Update decl.
3518 * config/i386/i386.md (vshuffle<V_128>): Remove assert for ok.
3520 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
3522 * config/i386/i386.c (distance_non_agu_define): Simplify calculation
3523 of "found". Simplify return value calculation.
3524 (distance_agu_use): Ditto.
3526 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
3529 * config/i386/i386.c (ix86_add_cfa_restore_note): Omit notes only
3530 if the function was not shrink-wrapped.
3531 (ix86_expand_epilogue): Ensure queued cfa_adjust notes are attached
3533 * function.c (thread_prologue_and_epilogue_insns): Make sure the
3534 shrink_wrapped flag is set even if there is no dump file.
3536 2011-10-05 DJ Delorie <dj@redhat.com>
3537 Nick Clifton <nickc@redhat.com>
3539 * config/rx/rx.opt (mpid): Define.
3540 * config/rx/t-rx (MULTILIB_OPTIONS): Add -mpid
3541 (MULTILIB_DIRNAMES): Add pid.
3542 * config/rx/rx.c (rx_gp_base_regnum_val, rx_pid_base_regnum_val)
3543 (rx_num_interrupt_regs): New variable.
3544 (rx_gp_base_regnum): New function. Returns the number of the
3545 small data area register.
3546 (rx_pid_base_regnum): New function. Returns the number of the pid
3548 (rx_decl_for_addr): New function. Returns the symbolic part of a MEM.
3549 (rx_pid_data_operand): New function. Returns whether an object is
3550 in the position independent data area.
3551 (rx_legitimize_address): New function. Puts undecided PID
3552 objects in the PID data area.
3553 (rx_is_legitimate_address): Add support for PID operands.
3554 (rx_print_operand_address): Likewise.
3555 (rx_print_operand): Likewise.
3556 (rx_maybe_pidify_operand): New function. Determine if an operand
3557 is suitable for PID addressing.
3558 (rx_gen_move_template): Add PID support.
3559 (rx_conditional_register_usage): Likewise.
3560 (rx_option_override): Initialise rx_num_interrupt_regs.
3561 (rx_is_legitimate_constant): Add support for PID constants.
3562 (TARGET_LEGITIMIZE_ADDRESS): Define.
3563 * config/rx/constraints.md (Rpid): Define.
3565 * config/rx/rx.md (UNSPEC_PID_ADDR): Define.
3566 (tablejump): Add PID support.
3568 (mov<>_internal): Likewise.
3569 (addsi3): Convert to an expander. Add PID support.
3570 (pid_addr): New pattern.
3571 * config/rx/rx.h (CPP_SPEC): Define.
3572 (ASM_SPEC): Pass -mpid and -mint-register on to assembler.
3573 (CASE_VECTOR_PC_RELATIVE): Define.
3574 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PID mode.
3575 * config/rx/rx-protos.h (rx_maybe_pidify_operand): Prototype.
3576 * doc/invoke.texi (RX Options): Document -mpid command line option.
3578 2011-10-05 Richard Guenther <rguenther@suse.de>
3580 PR tree-optimization/38885
3581 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle partial reads
3584 2011-10-05 Bernd Schmidt <bernds@codesourcery.com>
3586 * doc/invoke.texi (-fshrink-wrap): Document.
3587 * opts.c (default_options_table): Add it.
3588 * common.opt (fshrink-wrap): Add.
3589 * function.c (emit_return_into_block): Remove useless declaration.
3590 (record_hard_reg_uses_1, record_hard_reg_uses, frame_required_for_rtx,
3591 requires_stack_frame_p, gen_return_pattern): New static functions.
3592 (emit_return_into_block): New arg simple_p. All callers changed.
3593 Use gen_return_pattern.
3594 (thread_prologue_and_epilogue_insns): Implement shrink-wrapping.
3595 * config/i386/i386.md (return): Expand into a simple_return.
3596 (simple_return): New expander):
3597 (simple_return_internal, simple_return_internal_long,
3598 simple_return_pop_internal_long, simple_return_indirect_internal):
3599 Renamed from return_internal, return_internal_long,
3600 return_pop_internal_long and return_indirect_internal; changed to use
3602 * config/i386/i386.c (ix86_expand_epilogue): Adjust to expand
3604 (ix86_pad_returns): Likewise.
3605 * function.h (struct rtl_data): Add member shrink_wrapped.
3606 * cfgcleanup.c (outgoing_edges_match): If shrink-wrapped, edges that
3607 are not jumps or sibcalls can't be compared.
3609 2011-10-05 Richard Guenther <rguenther@suse.de>
3611 * tree-ssa-sccvn.c (vn_get_expr_for): Handle CONSTRUCTOR of
3613 (simplify_unary_expression): Handle BIT_FIELD_REFs.
3614 (try_to_simplify): Handle BIT_FIELD_REFs.
3616 2011-10-05 Georg-Johann Lay <avr@gjlay.de>
3618 * config/avr/avr-protos.h (avr_out_addto_sp): New prototype.
3619 * config/avr/avr.c (avr_out_addto_sp): New function.
3620 (adjust_insn_length): Handle ADJUST_LEN_ADDTO_SP.
3621 * config/avr/avr.md (adjust_len): Add "addto_sp".
3622 (*movhi_sp): Remove insn.
3623 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): Merge to *addhi3_sp_R.
3625 2011-10-05 Richard Guenther <rguenther@suse.de>
3627 * gimple-fold.c (gimple_fold_stmt_to_constant_1): For ternary ops
3628 with an embedded expression valueize and fold that as well.
3629 * tree-ssa-sccvn.c (try_to_simplify): Also allow SSA name
3630 results from gimple_fold_stmt_to_constant_1.
3632 2011-10-05 Nick Clifton <nickc@redhat.com>
3634 * config/rx/rx.md (tablejump): Add missing label.
3635 (adddi3_internal): Mark operand 0 as early-clobbered.
3636 (smaxsi3): Revert previous delta.
3637 (adc_internal): Fix whitespace in generated asm.
3638 (adc_flags): Likewise.
3640 2011-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3642 * expmed.c (expand_mult_highpart_optab): Replace optab_handler
3643 with the new widening_optab_handler.
3645 2011-10-05 Richard Guenther <rguenther@suse.de>
3647 PR tree-optimization/50609
3648 * gimple-fold.c (fold_array_ctor_reference): Also handle
3649 vector typed constructors.
3650 (fold_ctor_reference): Dispatch to fold_array_ctor_reference
3651 for vector typed constructors.
3653 2011-10-05 Uros Bizjak <ubizjak@gmail.com>
3655 * config/i386/i386.c (ix86_emit_binop): New static function.
3656 (ix86_split_lea_for_addr): Use ix86_emit_binop to emit add and shl
3658 (x86_output_mi_thunk): Use ix86_emit_binop to emit add instructions.
3660 2011-10-04 David S. Miller <davem@davemloft.net>
3662 * config/sparc/sparc.md (UNSPEC_FHADD, UNSPEC_FHSUB,
3663 UNSPEC_XMUL): New unspecs.
3664 (muldi3_v8plus): Use output_v8plus_mult.
3665 (*naddsf3, *nadddf3, *nmulsf3, *nmuldf3, *nmuldf3_extend):
3666 New VIS 3.0 combiner patterns.
3667 (fhaddsf_vis, fhadddf_vis, fhsubsf_vis, fhsubdf_vis,
3668 fnhaddsf_vis, fnhaddf_vis, umulxhi_vis, *umulxhi_sp64,
3669 umulxhi_v8plus, xmulx_vis, *xmulx_sp64, xmulx_v8plus,
3670 xmulxhi_vis, *xmulxhi_sp64, xmulxhi_v8plus): New VIS 3.0
3672 * config/sparc/sparc.c (sparc_vis_init_builtins): Emit new builtins.
3673 (output_v8plus_mult): New function.
3674 * config/sparc/sparc-protos.h: Declare it.
3675 * config/sparc/visintrin.h (__vis_fhadds, __vis_fhaddd,
3676 __vis_fhsubs, __vis_fhsubd, __vis_fnhadds, __vis_fnhaddd,
3677 __vis_umulxhi, __vis_xmulx, __vis_xmulxhi): New intrinsics.
3678 * doc/extend.texi: Document new builtins.
3680 2011-10-04 Richard Henderson <rth@redhat.com>
3682 * c-typeck.c (c_build_vec_shuffle_expr): Fix uninitialized variable.
3683 Avoid save_expr unless two_arguments.
3685 2011-10-04 Ozkan Sezer <sezeroz@gmail.com>
3687 * config/i386/mingw-w64.h (CPP_SPEC): Rename _REENTRANCE to _REENTRANT.
3688 * config/i386/mingw32.h (CPP_SPEC): Likewise.
3690 2011-10-04 David S. Miller <davem@davemloft.net>
3692 * config/sparc/driver-sparc.c (cpu_names): Fix string for supersparc
3695 2011-10-04 Jakub Jelinek <jakub@redhat.com>
3697 PR tree-optimization/50604
3698 * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy,
3699 fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure
3700 last argument to memcpy has size_type_node type instead of ssizetype.
3701 * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node
3702 instead of TREE_TYPE (len) as type for newlen.
3704 PR tree-optimization/50522
3705 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Don't test
3707 (ptr_derefs_may_alias_p): Call pt_solutions_same_restrict_base
3710 * fold-const.c (fold_unary_loc): Don't optimize
3711 POINTER_PLUS_EXPR casted to TYPE_RESTRICT pointer by
3712 casting the inner pointer if it isn't TYPE_RESTRICT.
3713 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't through
3714 casts from non-TYPE_RESTRICT pointer to TYPE_RESTRICT pointer.
3716 2011-10-04 Joseph Myers <joseph@codesourcery.com>
3718 * config.gcc (i[34567]86-*-elf*, x86_64-*-elf*): Use i386/t-crtstuff.
3720 2011-10-04 Jan Hubicka <jh@suse.cz>
3722 * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter.
3723 * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order.
3724 * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order.
3725 * lto-cgraph.c (order_base): New static var.
3726 (lto_output_node): Stream in order.
3727 (lto_output_varpool_node): Stream out order.
3728 (input_node): Stream in order.
3729 (input_varpool_node): Stream out order.
3730 (input_cgraph_1): Initialize order base; update call of
3731 lto_input_toplevel_asms.
3733 2011-10-04 Georg-Johann Lay <avr@gjlay.de>
3736 * config/avr/avr-protos.h (avr_legitimize_reload_address): New
3738 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
3740 * config/avr/avr.c (avr_legitimize_reload_address) ...to this new
3741 function. Log if avr_log.legitimize_reload_address.
3743 2011-10-04 Eric Botcazou <ebotcazou@adacore.com>
3745 * config/sparc/sparc.c (sparc_fold_builtin): Use a sequence of tests.
3747 2011-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3749 * longlong.h (smul_ppmm, sdiv_qrnnd): Add underscores to the local
3750 variables. Fix second operand of DR. Swap inputs for sdiv_qrnnd.
3752 2011-10-03 David S. Miller <davem@davemloft.net>
3754 * config/sparc/sparc.md (fpack16_vis, fpackfix_vis, fpack32_vis): Make
3755 GSR_REG an input operand to UNSPEC instead of a parallel USE.
3756 (faligndata<V64I:mode>_vis): Likewise and use DI mode.
3757 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis, alignaddrldi_vis):
3758 Reference GSR_REG in DI mode, simplify convoluted expressions by using
3760 (bshuffle<V64I:mode>_vis): Reference GSR_REG in DI mode.
3762 2011-10-03 Maxim Kuvyrkov <maxim@codesourcery.com>
3764 * tree-eh.c (remove_unreachable_handlers): Obvious cleanup.
3766 2011-10-03 Jakub Jelinek <jakub@redhat.com>
3767 Ian Lance Taylor <iant@google.com>
3769 * godump.c (go_output_typedef): Support printing enum values that
3770 don't fit in a signed HOST_WIDE_INT.
3772 2011-10-03 Anatoly Sokolov <aesok@post.ru>
3774 * config/cris/cris.c (cris_output_addr_const_extra): Make static.
3775 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3776 * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3777 * config/cris/cris-protos.h (cris_output_addr_const_extra): Remove.
3779 2011-10-03 Anatoly Sokolov <aesok@post.ru>
3781 * config/m68k/m68k.c (m68k_output_addr_const_extra): Make static.
3782 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3783 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3784 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Remove.
3786 2011-10-03 Steve Ellcey <sje@cup.hp.com>
3789 * configure.ac (gcc_cv_ld_static_dynamic): Define for *-*-hpux*.
3790 (gcc_cv_ld_static_option): Ditto.
3791 (gcc_cv_ld_dynamic_option): Ditto.
3792 * configure: Regenerate.
3794 2011-10-03 David S. Miller <davem@davemloft.net>
3796 * config/sparc/sparc.md (bmask<P:mode>_vis): Split into explicit 'di'
3797 and 'si' patterns which describe the GSR changes explicitly in the
3798 RTL using zero_extract.
3799 (bshuffle<V64I:mode>_vis): Put the GSR use inside of the unspec.
3801 * config/sparc/sparc.md (bshuffle<V64I:mode>_vis): Don't wrap
3802 GSR_REG in a USE, since it's now a true arg to the UNSPEC.
3804 2011-10-03 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
3806 * optabs.c (expand_vec_shuffle_expr_p): New function. Checks
3807 if given expression can be expanded by the target.
3808 (expand_vec_shuffle_expr): New function. Expand VEC_SHUFFLE_EXPR
3809 using target vector instructions.
3810 * optabs.h: New optab vshuffle.
3811 (expand_vec_shuffle_expr_p): New prototype.
3812 (expand_vec_shuffle_expr): New prototype.
3813 (vshuffle_optab): New optab.
3814 * genopinit.c: Adjust to support vecshuffle.
3815 * c-tree.h (c_build_vec_shuffle_expr): New prototype.
3816 * expr.c (expand_expr_real_2): Adjust.
3817 * c-typeck.c: (c_build_vec_shuffle_expr): Build a VEC_SHUFFLE_EXPR
3818 recognizing the cases of two and three arguments.
3819 (convert_arguments) (build_binary_op)
3820 (scalar_to_vector) (build_array_ref): Spurious whitespace.
3821 * gimplify.c (gimplify_exp): Adjusted to support VEC_SHUFFLE_EXPR.
3822 * tree.def: New tree code VEC_SHUFFLE_EXPR.
3823 * tree-inline.c (estimate_operator_cost): Recognize VEC_SHUFFLE_EXPR.
3824 * tree-vect-generic.c (vector_element): New function. Returns an
3825 element of the vector at the given position.
3826 (lower_vec_shuffle): Checks if VEC_SHUFLLE_EXPR is supported
3827 by the backend or expand an expression piecewise.
3828 (expand_vector_operations_1): Adjusted.
3829 (gate_expand_vector_operations_noop): New gate function.
3830 * Makefile.in (tree-vect-generic.o): New include.
3831 * gimple.c (get_gimple_rhs_num_ops): Adjust.
3832 * tree-cfg.c (verify_gimple_assign_trenary): Verify VEC_SHUFFLE_EXPR.
3833 * passes.c: Move veclower down.
3834 * tree-pretty-print.c (dump_generic_node): Recognize
3835 VEC_SHUFFLE_EXPR as valid expression.
3836 * c-parser.c (c_parser_get_builtin_args): Helper function for the
3837 builtins with variable number of arguments.
3838 (c_parser_postfix_expression): Use a new helper function for
3839 RID_CHOOSE_EXPR, RID_BUILTIN_COMPLEX and RID_BUILTIN_SHUFFLE.
3840 * tree-ssa-operands: Adjust.
3841 * c-family/c-common.c: New __builtin_shuffle keyword.
3842 * c-family/c-common.h: New __builtin_shuffle keyword.
3843 * gcc/doc/extend.texi: Adjust.
3845 * gcc/config/i386/sse.md: (sseshuffint) New mode_attr. Correspondence
3846 between the vector and the type of the mask when shuffling.
3847 (vecshuffle<mode>): New expansion.
3848 * gcc/config/i386/i386-protos.h (ix86_expand_vshuffle): New prototype.
3849 * gcc/config/i386/i386.c (ix86_expand_vshuffle): New function.
3850 (ix86_vectorize_builtin_vec_perm_ok): Adjust.
3852 2011-10-03 Jakub Jelinek <jakub@redhat.com>
3854 PR tree-optimization/50587
3855 * tree-ssa-reassoc.c (init_range_entry): Stop iterating when
3856 arg0 is not a SSA_NAME.
3858 2011-10-03 Richard Sandiford <rdsandiford@googlemail.com>
3860 * ipa-inline-analysis.c (MAX_TIME): Update comment.
3862 2011-10-02 Richard Henderson <rth@redhat.com>
3863 David S. Miller <davem@davemloft.net>
3865 * config/sparc/sparc.md (ashlsi3, *ashldi3_sp64): Remove
3866 conditional insn type setting, we always emit a shift.
3867 (*ashlsi3_extend, *lshrsi3_extend0): New patterns.
3868 (*lshrsi3_extend): Rename to *lshrsi3_extend1.
3869 * config/sparc/predicates.md (const_one_operand): Delete.
3871 2011-10-02 Gerald Pfeifer <gerald@pfeifer.com>
3873 * invoke.texi (SPARC Options): Refer to GNU/Linux.
3875 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
3877 * config/mips/mips.c (mips_frame_barrier): New function.
3878 (mips_expand_prologue): Call it after allocating stack space.
3879 (mips_deallocate_stack): New function.
3880 (mips_expand_epilogue): Call mips_frame_barrier and
3881 mips_deallocate_stack.
3883 2011-10-02 Richard Sandiford <rdsandiford@googlemail.com>
3886 * config/mips/sync.md (sync_<optab>_12): Allow zero operands.
3887 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
3888 (sync_old_nand_12, sync_new_nand_12, test_and_set_12): Likewise.
3890 2011-10-02 Jan Hubicka <jh@suse.cz>
3892 * cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
3894 * cgraphunit.c (ipa_passes): Remove unrechable nodes.
3895 * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
3896 * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
3897 functions are reachable when address is taken.
3898 * tree-sra.c (modify_function): Free dominance info.
3900 2011-10-02 Jan Hubicka <jh@suse.cz>
3902 * ipa-inline-analysis.c (inline_summary_alloc): Bounds check.
3904 * ipa-inline-analysis.c (reset_inline_edge_summary): New function.
3905 (reset_inline_summary): New function.
3906 (compute_inline_parameters, inline_node_removal_hook,
3907 inline_edge_removal_hook): Use it.
3908 (inline_free_summary): Reset holders correctly.
3909 (inline_generate_summary): Free summary before computing it.
3911 2011-10-02 Paolo Carlini <paolo.carlini@oracle.com>
3913 PR preprocessor/36819
3914 * incpath.c (merge_include_chains): Call free_path on
3915 heads[QUOTE] and tails[QUOTE].
3917 2011-10-02 Jan Hubicka <jh@suse.cz>
3920 * lto-symtab.c (lto_symtab_resolve_symbols): Do not resolve
3921 when resolution is already availbale from plugin.
3922 (lto_symtab_merge_decls_1): Handle LDPR_PREVAILING_DEF_IRONLY_EXP.
3923 * cgraph.c (ld_plugin_symbol_resolution): Add
3924 prevailing_def_ironly_exp.
3925 * lto-cgraph.c (LDPR_NUM_KNOWN): Update.
3926 * ipa.c (varpool_externally_visible_p): IRONLY variables are never
3928 * varasm.c (resolution_to_local_definition_p): Add
3929 LDPR_PREVAILING_DEF_IRONLY_EXP.
3930 (resolution_local_p): Likewise.
3932 2011-10-01 David S. Miller <davem@davemloft.net>
3934 * config/sparc/sparc.opt (VIS3): New option.
3935 * doc/invoke.texi: Document it.
3936 * config/sparc/sparc.h: Force TARGET_VIS3 to zero if assembler is
3937 not capable of such instructions.
3938 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
3939 to 0x300 when TARGET_VIS3.
3940 * config/sparc/sparc-modes.def: Create 16-byte vector modes.
3941 * config/sparc/sparc.md (UNSPEC_CMASK8, UNSPEC_CMASK16, UNSPEC_CMASK32,
3942 UNSPEC_FCHKSM16, UNSPEC_PDISTN, UNSPC_FUCMP): New unspecs.
3943 (V64N8, VASS): New mode iterators.
3944 (vis3_shift, vis3_addsub_ss): New code iterators.
3945 (vbits, vconstr): New mode attributes.
3946 (vis3_shift_insn, vis3_addsub_ss_insn): New code attributes.
3947 (cmask8<P:mode>_vis, cmask16<P:mode>_vis, cmask32<P:mode>_vis,
3948 fchksm16_vis, <vis3_shift_insn><vbits>_vis, pdistn<mode>_vis,
3949 fmean16_vis, fpadd64_vis, fpsub64_vis,
3950 <vis3_addsub_ss_insn><vbits>_vis, fucmp<code>8<P:mode>_vis): New
3951 VIS 3.0 instruction patterns.
3952 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS3 by
3953 default when targetting capable cpus. TARGET_VIS3 implies
3954 TARGET_VIS2 and TARGET_VIS, and clear them when TARGET_FPU is disabled.
3955 (sparc_vis_init_builtins): Emit new VIS 3.0 builtins.
3956 (sparc_fold_builtin): Do not eliminate cmask{8,16,32} when result
3958 * config/sparc/visintrin.h (__vis_cmask8, __vis_cmask16,
3959 __vis_cmask32, __vis_fchksm16, __vis_fsll16, __vis_fslas16,
3960 __vis_fsrl16, __vis_fsra16, __vis_fsll32, __vis_fslas32,
3961 __vis_fsrl32, __vis_fsra32, __vis_pdistn, __vis_fmean16,
3962 __vis_fpadd64, __vis_fpsub64, __vis_fpadds16, __vis_fpadds16s,
3963 __vis_fpsubs16, __vis_fpsubs16s, __vis_fpadds32, __vis_fpadds32s,
3964 __vis_fpsubs32, __vis_fpsubs32s, __vis_fucmple8, __vis_fucmpne8,
3965 __vis_fucmpgt8, __vis_fucmpeq8): New VIS 3.0 interfaces.
3966 * doc/extend.texi: Document new VIS 3.0 builtins.
3968 2011-10-01 Eric Botcazou <ebotcazou@adacore.com>
3970 * ira-color.c (assign_hard_reg): Fix typo.
3972 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
3974 * doc/extend.texi: Add missing ','.
3976 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
3978 * common/config/c6x/c6x-common.c (c6x_option_optimization_table):
3979 Enable -fmodulo-sched at -O2 and above.
3980 * config/c6x/c6x.md (doloop_end): New expander.
3981 (mvilc, sploop, spkernel, loop_end): New patterns.
3982 (loop_end with memory destination splitter): New.
3983 * config/c6x/c6x.c: Include "hw-doloop.h".
3984 (enum unitreqs): New.
3985 (unit_req_table): New typedef.
3986 (unit_reqs): New static variable.
3987 (unit_req_factor, get_unit_reqs, count_unit_reqs, merge_unit_reqs,
3988 res_mii, split_delayed_nonbranch, undo_split_delayed_nonbranch,
3989 hwloop_pattern_reg, bb_earliest_end_cycle, filter_insns_above,
3990 hwloop_optimize, hwloop_fail, c6x_hwloops): New static functions.
3991 (struct c6x_sched_context): New member last_scheduled_iter0.
3992 (init_sched_state): Initialize it.
3993 (c6x_variable_issue): Update it.
3994 (sploop_max_uid_iter0): New static variable.
3995 (c6x_sched_reorder_1): Be careful about issuing sploop.
3996 (c6x_reorg): Call c6x_hwlooops before the final schedule.
3998 2011-09-30 Georg-Johann Lay <avr@gjlay.de>
4001 * config/avr/avr-protos.h (avr_log_t): New field address_cost.
4002 * config/avr/avr.c (avr_address_cost): Use it.
4003 * config/avr/avr-log.c (avr_log_set_avr_log): Initialize it.
4004 (avr_log_vadump): Unknown %-codes finish printing.
4006 2011-09-30 Jakub Jelinek <jakub@redhat.com>
4009 * gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
4010 input constraints allow mem and not reg, pass true instead of
4011 false as second argument to maybe_fold_reference.
4013 PR tree-optimization/46309
4014 * fold-const.c (make_range, merge_ranges): Remove prototypes.
4015 (make_range_step): New function.
4016 (make_range): Use it.
4017 * tree.h (make_range_step): New prototypes.
4018 * Makefile.in (tree-ssa-reassoc.o): Depend on $(DIAGNOSTIC_CORE_H).
4019 * tree-ssa-reassoc.c: Include diagnostic-core.h.
4020 (struct range_entry): New type.
4021 (init_range_entry, range_entry_cmp, update_range_test,
4022 optimize_range_tests): New functions.
4023 (reassociate_bb): Call optimize_range_tests.
4025 2011-09-30 Jakub Jelinek <jakub@redhat.com>
4026 Richard Guenther <rguenther@suse.de>
4028 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Handle
4029 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
4030 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise. Fix
4031 handling of BUILT_IN_STRNCAT and BUILT_IN_STRNCAT_CHK.
4032 (ref_maybe_used_by_call_p_1): Fix handling of BUILT_IN_STRCAT,
4033 BUILT_IN_STRNCAT, BUILT_IN_STRCAT_CHK and BUILT_IN_STRNCAT_CHK.
4035 2011-09-30 Jan Beulich <jbeulich@suse.com>
4037 * lto-cgraph.c (output_cgraph): Remove processing of
4038 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead.
4039 (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call
4040 lto_input_toplevel_asms() instead.
4041 * lto-section-in.c (lto_section_name): Add "asm" entry.
4042 * lto-streamer-in.c (lto_input_toplevel_asms): New.
4043 * lto-streamer-out.c (lto_output_toplevel_asms): New.
4044 * lto-streamer.h (LTO_minor_version): Bump.
4045 (enum lto_section_type): Add LTO_section_asm.
4046 (struct lto_asm_header): New.
4047 (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare.
4048 * tree-streamer.h (streamer_write_string_cst): Declare.
4049 * tree-streamer-out.c (write_string_cst): Rename to
4050 streamer_write_string_cst and make global. Handle incoming string
4052 (streamer_write_tree_header): Adjust call to renamed function.
4054 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
4056 * haifa-sched.c (modulo_ii, modulo_max_states, modulo_n_insns,
4057 modulo_insns_scheduled, modulo_iter0_max_uid, modulo_backtracks_left,
4058 modulo_last_stage): New static variables.
4059 (set_modulo_params, discard_delay_pairs_above): New functions.
4060 (struct delay_pair): New member stages.
4061 (htab_i2_traverse, htab_i1_traverse): New static functions.
4062 (record_delay_slot_pair): New arg stages. All callers changed.
4064 (pair_delay): Take stages into account.
4065 (add_delay_dependencies): Don't do so for stage pairs.
4066 (struct sched_block_state): New member modulo_epilogue.
4067 (save_backtrack_point): Don't set SHADOW_P for stage pairs.
4068 (unschedule_insns_until): Decrease modulo_insns_scheduled.
4069 Set HARD_DEP without using or.
4070 (resolve_dependencies): New static function.
4071 (prune_ready_list): New arg modulo_epilogue_p. All callers changed.
4072 If it is true, allow only insns with INSN_EXACT_TICK set.
4073 (schedule_block): Return bool, always true for normal scheduling,
4074 true or false depending on modulo scheduling success otherwise.
4075 Add bookkeeping for modulo scheduling, and call resolve_dependencies
4076 on everything left over after a modulo schedule.
4077 (haifa_sched_init): Remove check_cfg call. Clear modulo_ii.
4078 * sched-int.h (schedule_block, record_delay_slot_pair): Adjust
4080 (set_modulo_params, discard_delay_pairs_above): Declare.
4081 * params.def (PARAM_MAX_MODULO_BACKTRACK_ATTEMPS): New.
4082 * doc/invoke.texi (--param): Document it.
4084 * sched-ebb.c (schedule_ebb): No longer static. Remove declaration.
4085 New arg modulo_scheduling. All callers changed. Move note handling
4086 code here from schedule_ebbs.
4087 (schedule_ebbs_finish, schedule_ebbs_init): New functions, broken
4088 out of schedule_ebbs.
4089 (schedule_ebbs): Call them. Remove note handling code moved to
4091 * sched-int.h (schedule_ebb, schedule_ebbs_init,
4092 schedule_ebbs_finish): Declare.
4094 2011-09-30 Richard Guenther <rguenther@suse.de>
4097 * tree-cfg.c (verify_gimple_comparison): Compare component
4098 mode sizes for vector comparisons.
4100 2011-09-30 Revital Eres <revital.eres@linaro.org>
4102 * ddg.c (autoinc_var_is_used_p): New function.
4103 (create_ddg_dep_from_intra_loop_link,
4104 add_cross_iteration_register_deps): Call it.
4105 * ddg.h (autoinc_var_is_used_p): Declare.
4106 * modulo-sched.c (generate_reg_moves): Call autoinc_var_is_used_p.
4107 (sms_schedule): Handle instructions with REG_INC.
4109 2011-09-30 Revital Eres <revital.eres@linaro.org>
4111 * modulo-sched.c (generate_reg_moves): Skip instructions that
4112 do not set a register and verify no regmoves are created for
4113 !single_set instructions.
4115 2011-09-30 Bernd Schmidt <bernds@codesourcery.com>
4117 * hw-doloop.c (scan_loop): Compute register usage only for non-debug
4120 2011-09-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4123 * config/arm/iterators.md (qhs_zextenddi_cstr): New.
4124 (qhs_zextenddi_op): New.
4125 * config/arm/arm.md ("zero_extend<mode>di2"): Use them.
4126 * config/arm/predicates.md ("arm_extendqisi_mem_op"):
4127 Distinguish between ARM and Thumb2 states.
4129 2011-09-30 David S. Miller <davem@davemloft.net>
4131 * config/sparc/sparc.opt (VIS2): New option.
4132 * doc/invoke.texi: Document it.
4133 * config/sparc/sparc.md (UNSPEC_EDGE8N, UNSPEC_EDGE8LN,
4134 UNSPEC_EDGE16N, UNSPEC_EDGE16LN, UNSPEC_EDGE32N,
4135 UNSPEC_EDGE32LN, UNSPEC_BSHUFFLE): New unspecs.
4136 (define_attr type): New insn type 'edgen'.
4137 (bmask<P:mode>_vis, bshuffle<V64I:mode>_vis, edge8n<P:mode>_vis,
4138 edge8ln<P:mode>_vis, edge16n<P:mode>_vis, edge16ln<P:mode>_vis,
4139 edge32n<P:mode>_vis, edge32ln<P:mode>_vis): New insn VIS 2.0
4141 * niagara.md: Handle edgen.
4142 * niagara2.md: Likewise.
4143 * ultra1_2.md: Likewise.
4144 * ultra3.md: Likewise.
4145 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__
4146 to 0x200 when TARGET_VIS2.
4147 * config/sparc/sparc.c (sparc_option_override): Set MASK_VIS2 by
4148 default when targetting capable cpus. TARGET_VIS2 implies
4149 TARGET_VIS, clear and it when TARGET_FPU is disabled.
4150 (sparc_vis_init_builtins): Emit new VIS 2.0 builtins.
4151 (sparc_expand_builtin): Fix predicate indexing when builtin returns
4153 (sparc_fold_builtin): Do not eliminate bmask when result is ignored.
4154 * config/sparc/visintrin.h (__vis_bmask, __vis_bshuffledi,
4155 __vis_bshufflev2si, __vis_bshufflev4hi, __vis_bshufflev8qi,
4156 __vis_edge8n, __vis_edge8ln, __vis_edge16n, __vis_edge16ln,
4157 __vis_edge32n, __vis_edge32ln): New VIS 2.0 interfaces.
4158 * doc/extend.texi: Document new VIS 2.0 builtins.
4160 2011-09-29 Nick Clifton <nickc@redhat.com>
4161 Bernd Schmidt <bernds@codesourcery.com>
4163 * config/frv/frvbegin.c: Fix location of unwind-dw2-fde.h header file.
4164 * config/frv/frvend.c: Likewise.
4165 * config/frv/frv.c (frv_function_prologue): Move misplaced
4166 CALL_ARG_LOCATION notes back to their proper locations.
4168 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
4171 * config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
4172 * config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
4174 (avr_legitimate_address_p): Use avr_edump to print log information
4175 filtered by avr_log.
4176 (extra_constraint_Q): Ditto.
4177 (avr_legitimize_address): Ditto.
4178 (avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
4179 (final_prescan_insn): Use avr_log.rtx_costs as filter.
4181 2011-09-29 Richard Sandiford <richard.sandiford@linaro.org>
4183 * config/arm/arm-protos.h (arm_modes_tieable_p): Declare.
4184 * config/arm/arm.h (MODES_TIEABLE_P): Use it.
4185 * config/arm/arm.c (arm_modes_tieable_p): New function. Allow
4186 NEON vector and structure modes to be tied.
4188 2011-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4190 * graphite-scop-detection.c (make_close_phi_nodes_unique): New
4191 forward declaration.
4192 (remove_duplicate_close_phi): Detect and repair creation of
4193 duplicate close-phis for a containing loop.
4195 2011-09-27 Andi Kleen <ak@linux.intel.com>
4197 * gcc.c (get_local_tick). Rename to get_random_number. Read from
4198 /dev/urandom. Add getpid call.
4199 (compare_debug_dump_opt_spec_function): Drop getpid call.
4201 2011-09-26 Andi Kleen <ak@linux.intel.com>
4203 * toplev.c (init_local_tick): Try reading random seed
4206 2011-09-26 Andi Kleen <ak@linux.intel.com>
4208 * hwint.h (HOST_WIDE_INT_PRINT_HEX_PURE): Add.
4209 * lto-streamer.c (lto_get_section_name): Remove crc32_string.
4210 Handle numerical random seed.
4211 * lto-streamer.h (lto_file_decl_data): Change id to
4212 unsigned HOST_WIDE_INT.
4213 * toplev.c (random_seed): Add.
4214 (init_random_seed): Change for numerical random seed.
4215 (get_random_seed): Return as HOST_WIDE_INT.
4216 (set_random_seed): Crc32 existing string.
4217 * toplev.h (get_random_seed): Change to numercal return.
4218 * tree.c (get_file_function_name): Remove CRC. Handle
4219 numerical random seed.
4221 2011-09-29 Georg-Johann Lay <avr@gjlay.de>
4224 * config.gcc (extra_objs): Add avr-log.o for $target in:
4225 avr-*-rtems*, avr-*-*.
4226 * config/avr/t-avr (avr-log.o): New rule to compile...
4227 * config/avr/avr-log.c: ...this new file.
4228 * config/avr/avr.opt (mlog=): New option.
4229 * config/avr/avr-protos.h (avr_edump, avr_fdump): New macros.
4230 (avr_log_set_caller_e, avr_log_set_caller_f): New prototypes.
4231 (avr_log_set_avr_log): New prototype.
4232 (avr_log_t): New typedef.
4233 (avr_log): New declaration.
4234 * config/avr/avr.c (avr_option_override): Call avr_log_set_avr_log.
4236 2011-09-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
4238 * expr.c (do_store_flag): Expand vector comparison by
4239 building an appropriate VEC_COND_EXPR.
4240 * c-typeck.c (build_binary_op): Typecheck vector comparisons.
4241 (c_objc_common_truthvalue_conversion): Adjust.
4242 * tree-vect-generic.c (do_compare): Helper function.
4243 (expand_vector_comparison): Check if hardware supports
4244 vector comparison of the given type or expand vector piecewise.
4245 (expand_vector_operation): Treat comparison as binary
4246 operation of vector type.
4247 (expand_vector_operations_1): Adjust.
4249 2011-09-29 Richard Guenther <rguenther@suse.de>
4251 * tree.c (build_opaque_vector_type): Make opaque vectors
4252 variant types of the corresponding non-opaque type. Make
4253 sure to share opaque vector types properly.
4255 2011-09-29 David S. Miller <davem@davemloft.net>
4257 * config/sparc/sparc.md (UNSPEC_ARRAY8, UNSPEC_ARRAY16,
4258 UNSPEC_ARRAY32): New unspec.
4259 (define_attr type): New type 'array'.
4260 (array{8,16,32}<P:mode>_vis): New patterns.
4261 * config/sparc/ultra1_2.md: Add reservations for 'array'.
4262 * config/sparc/ultra3.md: Likewise.
4263 * config/sparc/niagara.md: Likewise.
4264 * config/sparc/niagara2.md: Likewise.
4265 * config/sparc/sparc.c (sparc_vis_init_builtins): Build new
4267 * config/sparc/visintrin.h (__vis_array8, __vis_array16,
4268 __vis_array32): New.
4269 * doc/extend.texi: Document new VIS builtins.
4271 * config/sparc/sparc.md (gcond_name): Delete unnecessary code attr.
4272 (VIS pixel-compare insn): Just use <gcond:name>.
4274 * config/sparc/sparc.md (VIS pixel-compare insn): There is only one
4275 code iterator used, so just use <code>. There are two mode iterators
4276 so explicitly use <GCM:gcm_name>.
4278 2011-09-29 Iain Sandoe <iains@gcc.gnu.org>
4280 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Enable for
4283 2011-09-28 David S. Miller <davem@davemloft.net>
4285 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE,
4286 UNSPEC_FCMPGT, UNSPEC_FCMPEQ): Delete and reduce to...
4287 (UNSPEC_FCMP): New unspec.
4288 (gcond): New code iterator.
4289 (gcond_name): New code attr.
4290 (GCM): New mode iterator.
4291 (gcm_name): New mode attr.
4292 (fcmp{le,ne,gt,eq}{16,32}_vis): Reimplement using iterators.
4294 2011-09-28 Oleg Endo <oleg.endo@t-online.de>
4297 * config/sh/sh.md (negdi2): Move expansion into split to
4298 allow more combination options. Add T_REG clobber.
4299 (abssi2): New expander.
4300 (*negdi2, *abssi2, *negabssi2): New insns.
4301 (cneg): Change from insn to insn_and_split. Rename to
4302 negsi_cond. Add alternative for non-SH4.
4304 2011-09-28 Richard Sandiford <richard.sandiford@linaro.org>
4306 * config/arm/neon.md (neon_move_lo_quad_<mode>): Delete.
4307 (neon_move_hi_quad_<mode>): Likewise.
4308 (move_hi_quad_<mode>, move_lo_quad_<mode>): Use subreg moves.
4310 2011-09-28 Nick Clifton <nickc@redhat.com>
4312 * config/rx/predicates.md (rx_minmax_operand): New predicate.
4313 Accepts immediates and a restricted subset of MEMs.
4314 * config/rx/rx.md (int_modes): New iterator.
4315 (smaxsi3, sminsi3): Delete and replace with...
4316 (smax<int_mode>3, smin<int_mode>3): New patterns.
4317 (umax<>3_u, umax<>3_ur, umax<>3, umin<>3): New patterns.
4319 2011-09-28 Richard Guenther <rguenther@suse.de>
4322 * fold-const.c (try_move_mult_to_index): Handle &a.array the
4323 same as &a.array[0].
4325 2011-09-28 Kai Tietz <ktietz@redhat.com>
4327 * configure.ac: Add test for new section attribute
4328 specifier "e" via define HAVE_GAS_SECTION_EXCLUDE.
4329 * config.in: Regenerated.
4330 * configure: Regenerated.
4331 * config/i386/winnt.c (i386_pe_asm_named_section): Emit
4332 new section flag "e" for excluded sections, if supported.
4333 Otherwise we mark section withc SECTION_EXCLUDE flag as never-load.
4335 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
4337 * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref
4340 2011-09-28 Richard Sandiford <rdsandiford@googlemail.com>
4342 * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
4345 2011-09-27 Sriraman Tallam <tmsriram@google.com>
4347 * output.h (SECTION_EXCLUDE): New macro.
4348 * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE.
4350 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
4352 * fwprop.c (forward_propagate_and_simplify): After checking
4353 reg/subreg combinations, check whether the modes are the same.
4355 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
4356 Richard Sandiford <rdsandiford@googlemail.com>
4358 * config/mips/mips.c (mips_add_cfa_restore): New function.
4359 (mips16e_save_restore_reg): Use it.
4360 (mips_restore_reg): Likewise. Split double FPRs for
4361 REG_CFA_RESTORE notes.
4363 2011-09-27 Richard Sandiford <rdsandiford@googlemail.com>
4367 * tree-sra.c (build_ref_for_model): Use the type of the field as
4368 the type of the COMPONENT_REF.
4370 2011-09-27 Jeff Law <law@redhat.com>
4372 * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument. Scale
4373 non-jumping insns by REG_BR_PROB_BASE and the maximum cost by SCALE.
4374 (find_if_case_1): Use the probability of the THEN clause when
4375 determining if speculation is profitable.
4376 (find_if_case_2): Similarly for the ELSE clause.
4378 2011-09-27 Jakub Jelinek <jakub@redhat.com>
4380 * common.opt: Add -foptimize-strlen option.
4381 * Makefile.in (OBJS): Add tree-ssa-strlen.o.
4382 (tree-sssa-strlen.o): Add dependencies.
4383 * opts.c (default_options_table): Enable -foptimize-strlen
4384 by default at -O2 if not -Os.
4385 * passes.c (init_optimization_passes): Add pass_strlen
4386 after pass_object_sizes.
4387 * timevar.def (TV_TREE_STRLEN): New timevar.
4388 * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
4389 * tree-pass.h (pass_strlen): Declare.
4390 * tree-ssa-strlen.c: New file.
4391 * c-decl.c (merge_decls): If compatible stpcpy prototype
4392 is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
4394 2011-09-27 Tom de Vries <tom@codesourcery.com>
4397 * tree-ssa-tail-merge.c: New file.
4398 (struct same_succ_def): Define.
4399 (same_succ, const_same_succ): New typedef.
4400 (struct bb_cluster_def): Define.
4401 (bb_cluster, const_bb_cluster): New typedef.
4402 (struct aux_bb_info): Define.
4403 (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
4404 (gvn_uses_equal): New function.
4405 (same_succ_print, same_succ_print_traverse, update_dep_bb)
4406 (stmt_update_dep_bb, local_def, same_succ_hash)
4407 (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
4408 (same_succ_reset): New function.
4409 (same_succ_htab, same_succ_edge_flags)
4410 (deleted_bbs, deleted_bb_preds): New var.
4411 (debug_same_succ): New function.
4412 (worklist): New var.
4413 (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
4414 (init_worklist, delete_worklist, delete_basic_block_same_succ)
4415 (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
4416 (print_cluster, debug_cluster, update_rep_bb)
4417 (add_bb_to_cluster, new_cluster, delete_cluster): New function.
4418 (all_clusters): New var.
4419 (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
4420 (merge_clusters, set_cluster): New function.
4421 (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
4422 (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
4423 (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
4424 (find_clusters_1, find_clusters): New function.
4425 (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
4426 (update_bbs): New var.
4427 (apply_clusters): New function.
4428 (update_debug_stmt, update_debug_stmts): New function.
4429 (tail_merge_optimize): New function.
4430 tree-pass.h (tail_merge_optimize): Declare.
4431 * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
4432 * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
4433 (tree-ssa-tail-merge.o): New rule.
4434 * opts.c (default_options_table): Set OPT_ftree_tail_merge by
4435 default at OPT_LEVELS_2_PLUS.
4436 * tree-ssa-sccvn.c (vn_valueize): Move to ...
4437 * tree-ssa-sccvn.h (vn_valueize): Here.
4438 * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
4439 * common.opt (ftree-tail-merge): New switch.
4440 * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
4441 (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
4442 * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
4443 (-ftree-tail-merge, max-tail-merge-comparisons)
4444 (max-tail-merge-iterations): New item.
4446 2011-09-27 Jan Hubicka <jh@suse.cz>
4448 * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
4450 2011-09-27 Jan Hubicka <jh@suse.cz>
4452 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
4453 parameters passed by reference; handle loads from non-SSA scalars
4454 and update comments.
4456 2011-09-27 Bernd Schmidt <bernds@codesourcery.com>
4458 PR rtl-optimization/50249
4459 * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
4460 instead of opnum and type. All callers changed. Remove useless
4462 Search forward for other reloads of the same type for the same operand
4463 using the same register; if any are found, return false.
4464 (reload_regs_reach_end_p): Same argument changes; all callers changed.
4466 2011-09-27 Andi Kleen <ak@linux.intel.com>
4467 Jan Hubicka <jh@suse.cz>
4469 * doc/invoke.texi (ffat-lto-objects): Document.
4470 * toplev.c (compile_file): Do not output assembly when doing slim lto;
4471 Output __gnu_slim_lto when doing slim lto.
4472 * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
4473 (cgraph_optimize): Return early when doing slim lto.
4474 * opts.c (finish_options): Complain about lack of linker plugin
4475 when doing slim lto.
4476 * common.opt (ffat-lto-objects): New.
4478 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
4480 * ipa-inline-analysis.c (predicate_probability): Avoid comparison
4481 between signed and unsigned.
4483 2011-09-27 Ira Rosen <ira.rosen@linaro.org>
4485 * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
4487 (vectorizable_type_promotion): Likewise.
4488 (vect_analyze_stmt): Call vectorizable_type_demotion and
4489 vectorizable_type_promotion for basic blocks.
4490 (supportable_widening_operation): Don't assume loop vectorization.
4491 * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
4492 basic blocks. Update vectorization factor for basic block
4494 (vect_analyze_slp_instance): Allow multiple types for basic block
4495 vectorization. Recheck unrolling factor after construction of SLP
4498 2011-09-27 Richard Guenther <rguenther@suse.de>
4500 * tree-object-size.c (compute_object_sizes): Fix dumping of
4503 2011-09-27 Richard Guenther <rguenther@suse.de>
4505 PR tree-optimization/50363
4506 * tree-ssa-pre.c (create_expression_by_pieces): Handle
4507 pointer conversions in POINTER_PLUS_EXPRs properly.
4509 2011-09-27 Richard Sandiford <richard.sandiford@linaro.org>
4511 * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
4512 (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
4513 (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
4514 (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
4515 that produce subreg moves. Define using VQX iterators.
4517 2011-09-27 Georg-Johann Lay <avr@gjlay.de>
4519 * config/avr/avr.md (ashrqi3): Split alternative "n"
4520 into its remaining parts C03, C04, C05, C06, C07 and describe
4521 impact in CC by attribute "cc" appropriately.
4522 * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
4525 2011-09-27 Jakub Jelinek <jakub@redhat.com>
4527 * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
4528 from 3 x MAX_MACHINE_MODE.
4529 (CONSTM1_RTX): Define.
4530 * emit-rtl.c (const_tiny_rtx): Change into array of
4531 4 x MAX_MACHINE_MODE from 3 x MAX_MACHINE_MODE.
4532 (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
4534 (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
4535 MODE_VECTOR_INT modes.
4536 * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
4537 Optimize if one operand is CONSTM1_RTX.
4538 * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
4541 2011-09-26 David S. Miller <davem@davemloft.net>
4543 * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
4544 (fcmp{le,ne,gt,eq}{16,32}): Likewise.
4545 * config/sparc/visintrin.h: Update edge and pixel-compare
4546 intrinsics to return 'long' instead of 'int'.
4547 * doc/extend.texi: Update documentation to match.
4548 * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
4549 flat, allow any instruction. Otherwise, when V9 allow parallels
4550 which consist only of sets to registers outside of %o0 to %o5.
4551 (sparc_vis_init_builtins): Update VIS builtin types for edge
4554 * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
4555 is enabled, mark %gsr as global.
4556 * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
4557 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
4559 * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
4560 which will now define __VIS and __VIS__ when -mvis is enabled.
4561 * config/sparc/t-sparc: Likewise.
4562 * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
4563 and add t-sparc to tmake_file for all sparc targets.
4564 * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
4565 * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
4567 * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
4568 builtins for VIS vector addition and subtraction.
4569 * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
4570 __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
4571 __vis_fpsub32, __vis_fpsub32s): New.
4572 * doc/extend.texi: Document new VIS intrinsics.
4574 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
4576 * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
4577 * config/avr/avr.c (avr_out_compare): Print shorter sequence for
4578 EQ/NE comparisons against +/-1 in the case of unused-after,
4581 2011-09-26 Jakub Jelinek <jakub@redhat.com>
4583 * gimple-fold.c (gimplify_and_update_call_from_tree): Set
4584 gctx.into_ssa after push_gimplify_context.
4586 * gimple.c (gimple_build_call_valist): New function.
4587 * gimple.h (gimple_build_call_valist): New prototype.
4588 * tree-ssa-propagate.c (finish_update_gimple_call): New function.
4589 (update_gimple_call): Likewise.
4590 (update_call_from_tree): Use finish_update_gimple_call.
4591 * tree-ssa-propagate.h (update_gimple_call): New prototype.
4593 2011-09-26 Richard Guenther <rguenther@suse.de>
4595 PR tree-optimization/50472
4596 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
4597 volatile references.
4599 2011-09-26 Bingfeng Mei <bmei@broadcom.com>
4601 * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
4602 * target.def: (addr_space_subset_p): Likewise.
4604 2011-09-26 Tom de Vries <tom@codesourcery.com>
4606 * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
4607 * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
4608 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
4611 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
4614 * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
4615 * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
4616 output_reload_insisf.
4617 (adjust_len): Set default to "no".
4618 Remove alternative "yes". Add alternatives: "mov8", "mov16",
4619 "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
4620 "lshrhi", "ashlsi, "ashrsi", "lshrsi".
4621 (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
4622 *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
4623 *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
4624 *lshrsi3_const): Set attribute "adjust_len".
4625 * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
4626 (output_movsisf): Don't pass insn to output_reload_insisf.
4627 (adjust_insn_length): Handle new alternatives to adjust_len.
4628 Remove handling of ADJUST_LEN_YES. Clean-up code.
4630 2011-09-26 Eric Botcazou <ebotcazou@adacore.com>
4632 * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
4633 may_trap_p to detect loads that may trap of fault.
4635 2011-09-26 Georg-Johann Lay <avr@gjlay.de>
4637 * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
4638 * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
4639 (*reload_inhi): Use it. Adapt call to output_reload_inhi to new
4641 (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
4642 * config/avr/avr.c: Rename output_reload_insisf_1 to
4643 output_reload_in_const.
4644 (avr_popcount_each_byte): Handle SFmode, too.
4645 (output_reload_in_const): Change so it can handle HI loads, too.
4646 Use avr_popcount_each_byte to work out if scratch register must be
4648 (output_reload_inhi): Rewrite using output_reload_in_const and...
4649 (output_movhi): ...use it to print constants' loads.
4650 (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
4652 2011-09-25 David S. Miller <davem@davemloft.net>
4654 * config/sparc/constraints.md (C, P, Z): New constraints for
4655 const_doube, const_int, and const_vector "all ones" values.
4656 Make unused constraint letters comment match reality.
4657 * config/sparc/predicates.md (const_all_ones_operand,
4658 register_or_zero_or_all_ones_operand): New predicates.
4659 * config/sparc/sparc.c (sparc_expand_move): Allow all ones
4660 as well as zero constants when VIS.
4661 (sparc_legitimate_constant_p): Likewise.
4662 * config/sparc/sparc.md (movsi_insn): Add fones alternative.
4663 (movsf_insn): Likewise
4664 (movdi_insn_sp64): Add fone alternative.
4665 (movdf_insn_sp32_v9): Likewise.
4666 (movdf_insn_sp64): Likewise.
4668 * configure.ac: Add feature check to make sure the assembler
4669 supports the FMAF, HPC, and VIS 3.0 instructions found on
4670 Niagara-3 and later cpus.
4671 * configure: Rebuild.
4672 * config.in: Likewise.
4673 * config/sparc/sparc.opt: New option '-mfmaf'.
4674 * config/sparc/sparc.md: Add float fused multiply-add patterns.
4675 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
4676 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
4677 * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
4678 ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
4679 * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
4680 by default for Niagara-3 and later. Turn it off if TARGET_FPU is
4682 (sparc_rtx_costs): Handle 'FMA'.
4683 * doc/invoke.texi: Document -mfmaf.
4685 2011-09-25 Jakub Jelinek <jakub@redhat.com>
4687 * tree-ssa-structalias.c (intra_create_variable_infos): Treat
4688 TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
4689 DECL_BY_REFERENCE parameters.
4691 2011-09-25 Eric Botcazou <ebotcazou@adacore.com>
4693 * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
4694 if there is no outgoing edge.
4696 * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
4699 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
4701 * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
4702 of vect_analyze_bb here.
4703 (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
4705 2011-09-25 Ira Rosen <ira.rosen@linaro.org>
4707 * tree-data-ref.c (dr_analyze_innermost): Add new argument.
4708 Allow not simple iv if analyzing basic block.
4709 (create_data_ref): Update call to dr_analyze_innermost.
4710 (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
4711 * tree-loop-distribution.c (generate_memset_zero): Likewise.
4712 * tree-predcom.c (find_looparound_phi): Likewise.
4713 * tree-data-ref.h (dr_analyze_innermost): Add new argument.
4715 2011-09-24 David S. Miller <davem@davemloft.net>
4717 * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
4718 (SPARC_GSR_REG): Define.
4719 (FIXED_REGISTERS): Mark GSR as fixed.
4720 (CALL_USED_REGISTERS): Mark GSR as call used.
4721 (HARD_REGNO_NREGS): GSR is always 1 register.
4722 (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
4723 (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
4724 (REGISTER_NAMES): Add "%gsr".
4725 * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL): Delete.
4726 (UNSPEC_WRGSR): New unspec.
4727 (GSR_REG): New constant.
4728 (type): Add new insn type 'gsr'.
4729 (fpack16_vis, fpackfix_vis, fpack32_vis,
4730 faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
4731 (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
4732 rdgsr_v8plus): New expanders and insns.
4733 (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
4734 using patterns which show that this is a plus in addition to a
4735 modification of GSR_REG, instead of an unspec.
4736 * config/sparc/ultra1_2.md: Handle 'gsr'.
4737 * config/sparc/ultra3.md: Likewise.
4738 * config/sparc/niagara.md: Likewise.
4739 * config/sparc/niagara2.md: Likewise.
4740 * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
4742 (sparc_option_override): Make -mvis imply -mv8plus.
4743 (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
4745 (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
4746 __builtin_vis_read_gsr.
4747 (sparc_expand_buildin): Handle builtins that take one argument and
4749 (sparc_fold_builtin): Never fold writes to %gsr.
4750 * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
4751 * doc/extend.texi: Document new VIS intrinsics.
4753 2011-09-23 Jan Hubicka <jh@suse.cz>
4755 * ipa-inline-transform.c (inline_call): Add comment.
4756 * ipa-inline.h (inline_param_summary): New structure and vector.
4757 (struct inline_edge_summary): Add param field.
4758 * ipa-inline-analysis.c (CHANGED): New constant.
4759 (add_clause): Handle CHANGED and NOT_CONSTANT.
4760 (predicate_probability): New function.
4761 (dump_condition): Dump CHANGED predicate.
4762 (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
4763 of unknown function wide invariant.
4764 (evaluate_conditions_for_edge): Handle change probabilities.
4765 (inline_edge_duplication_hook): Copy param summaries.
4766 (inline_edge_removal_hook): Free param summaries.
4767 (dump_inline_edge_summary): Fix dumping of indirect edges and callee
4768 sizes; dump param summaries.
4769 (will_be_nonconstant_predicate): Use CHANGED predicate.
4770 (record_modified_bb_info): New structure.
4771 (record_modified): New function.
4772 (param_change_prob): New function.
4773 (estimate_function_body_sizes): Compute param summaries.
4774 (estimate_edge_size_and_time): Add probability argument.
4775 (estimate_node_size_and_time): Add inline_param_summary argument;
4776 handle predicate probabilities.
4777 (remap_predicate): Fix formating.
4778 (remap_edge_change_prob): New function.
4779 (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
4780 (remap_edge_predicates): ... this one.
4781 (inline_merge_summary): Remap edge summaries; handle predicate
4782 probabilities; remove param summaries after we are done.
4783 (do_estimate_edge_time): Update.
4784 (do_estimate_edge_growth): Update.
4785 (read_inline_edge_summary): Read param info.
4786 (inline_read_summary): Fix formating.
4787 (write_inline_edge_summary): Write param summaries.
4789 2011-09-23 Jakub Jelinek <jakub@redhat.com>
4791 * config/i386/i386.c (ix86_print_operand): Handle %~.
4792 (ix86_print_operand_punct_valid_p): Return true also for '~'.
4793 * config/i386/sse.md (i128): New mode_attr.
4794 (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
4795 avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
4796 *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>,
4797 vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
4798 patterns, use "<sseinsnmode>" for "mode" attribute.
4799 (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
4800 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
4801 %~128 in the patterns, use "OI" for "mode" attribute.
4803 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
4806 * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
4808 (*cmpqi_sign_extend): Use s8_operand.
4809 (*cmphi, *cmpsi): Rewrite using avr_out_compare.
4810 * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
4812 (out_tsthi, out_tstsi): Remove prototypes.
4813 (avr_out_tsthi, avr_out_tstsi): New prototypes.
4814 * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
4815 (avr_asm_len): Negative length now sets *plen to -length.
4816 (compare_sign_p): Return bool instead of int.
4817 (compare_diff_p, compare_eq_p): Ditto and make static.
4818 (avr_out_tsthi): New function.
4819 (avr_out_tstsi): New function.
4820 (avr_out_compare): New function.
4821 (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
4824 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
4827 * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
4828 (addsi3): Rewrite using QI scratch register. Adjust text
4829 peepholes using plus:SI.
4830 (*addsi3_zero_extend.hi): New insn.
4831 (*subsi3_zero_extend.hi): New insn.
4832 (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
4833 (*subsi3_zero_extend): Ditto.
4834 (subsi3): Change predicate #2 to register_operand.
4835 * config/avr/avr-protos.h (avr_out_plus): New prototype.
4836 (avr_out_plus_1): New static function.
4837 (avr_out_plus): New function.
4838 (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
4840 2011-09-23 Jakub Jelinek <jakub@redhat.com>
4842 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
4843 GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
4845 2011-09-23 Ian Lance Taylor <iant@google.com>
4847 * godump.c (go_define): Treat a single character in single quotes,
4848 or a string, as an operand.
4850 2011-09-23 Martin Jambor <mjambor@suse.cz>
4852 * ipa-prop.h (jump_func_type): Updated comments.
4853 (ipa_known_type_data): New type.
4854 (ipa_jump_func): Use it to describe known type jump functions.
4855 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
4856 reflect the new known type jump function contents.
4857 (compute_known_type_jump_func): Likewise.
4858 (combine_known_type_and_ancestor_jfs): Likewise.
4859 (try_make_edge_direct_virtual_call): Likewise.
4860 (ipa_write_jump_function): Likewise.
4861 (ipa_read_jump_function): Likewise.
4862 * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
4863 (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
4864 (propagate_accross_jump_function): Likewise.
4866 2011-09-23 Georg-Johann Lay <avr@gjlay.de>
4869 * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
4870 (rotlqi3_4): Turn insn into expander.
4871 (*rotlqi3): New insn.
4872 (rotlhi3, rotlsi3): Support rotate left/right by 1.
4873 (*rotlhi2.1, *rotlhi2.15): New insns.
4874 (*rotlsi2.1, *rotlsi2.31): New insns.
4875 * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
4877 2011-09-23 Bin Cheng <bin.cheng@arm.com>
4879 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch and processors.
4881 2011-09-22 Maxim Kuvyrkov <maxim@codesourcery.com>
4883 * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
4885 2011-09-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4887 * reload.c (find_reloads): Set operand_mode to Pmode for address
4888 operands consisting of just a CONST_INT.
4890 2011-09-22 Uros Bizjak <ubizjak@gmail.com>
4893 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
4894 blendv, force op_true to register if it doesn't satisfy
4895 nonimmediate_operand predicate.
4897 2011-09-22 Richard Sandiford <rdsandiford@googlemail.com>
4901 * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
4902 get the locate.where_pad value for register-only arguments.
4903 * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
4904 (arm_pad_reg_upward): Handle null types.
4906 2011-09-22 Jan Hubicka <jh@suse.cz>
4908 * ipa-inline-analysis.c: Fix overly long lines.
4910 2011-09-22 Jan Hubicka <jh@suse.cz>
4912 * ipa-inline-transform.c (inline_call): Always update jump functions
4914 * ipa-inline.c (ipa_inline): Likewise; do not call
4915 ipa_create_all_structures_for_iinln.
4916 (ipa_inline): Always free jump functions.
4917 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
4918 (remap_edge_predicates): Fix pasto.
4919 (inline_merge_summary): Remove nlined edge predicate; remove hack.
4920 (inline_analyze_function): Always initialize jump functions.
4921 (inline_generate_summary): Likewise.
4922 (inline_write_summary): Always write jump functions when ipa-cp
4924 (inline_read_summary): Always read jump functions when ipa-cp
4926 * ipa-prop.c (iinlining_processed_edges): Remove.
4927 (update_indirect_edges_after_inlining): Do not use
4928 iinlining_processed_edges; instead set param_index to -1.
4929 (propagate_info_to_inlined_callees): Only try to indirect inlining
4930 when asked to do so; update jump functions of indirect calls, too;
4931 remove jump functions of the inlined edge.
4932 (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
4933 (ipa_create_all_structures_for_iinln): Remove.
4934 (ipa_free_all_structures_after_iinln): Do not free
4935 iinlining_processed_edges.
4936 * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
4938 2011-09-22 Richard Sandiford <richard.sandiford@linaro.org>
4940 * config/arm/predicates.md (expandable_comparison_operator): New
4941 predicate, extracted from...
4942 (arm_comparison_operator): ...here.
4943 * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
4944 (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
4945 (movdfcc): Use expandable_comparison_operator.
4947 2011-09-22 Georg-Johann Lay <avr@gjlay.de>
4951 * config/avr/avr-protos.h (avr_out_bitop): New prototype.
4952 (avr_popcount_each_byte): New prototype.
4953 * config/avr/avr.c (avr_popcount): New static function.
4954 (avr_popcount_each_byte): New function.
4955 (avr_out_bitop): New function.
4956 (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
4957 avr_out_bitop. Cleanup code.
4958 * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
4959 (Ca4, Co4, Cx4): New constraints.
4960 * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
4962 (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
4963 (andsi3, iorsi3, xorsi3): Ditto.
4964 (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
4966 2011-09-22 Ira Rosen <ira.rosen@linaro.org>
4968 PR tree-optimization/50451
4969 * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
4970 constant operands in reduction.
4971 (vect_get_slp_defs): Don't create vector operand for NULL scalar
4974 2011-09-22 David S. Miller <davem@davemloft.net>
4976 * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
4977 fpack16, fpack32, fpackfix as const.
4979 * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
4980 I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
4981 constants. Use them everywhere.
4983 2011-09-22 Oleg Endo <oleg.endo@t-online.de>
4985 * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
4986 Added AND special case. Adapted comments.
4987 (sh_rtx_costs): Added XOR and IOR case.
4989 2011-09-21 Jan Hubicka <jh@suse.cz>
4991 * ipa-inline-analsis.c (compute_inline_parameters): Set
4992 cfun and current_function_decl.
4994 2011-09-21 Jan Hubicka <jh@suse.cz>
4996 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
4997 handled components in parameter of builtin_constant_p.
4998 (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
5000 2011-09-21 Jan Hubicka <jh@suse.cz>
5002 * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
5003 * ipa-inline.h (estimate_edge_time): Fix pasto.
5004 * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
5006 2011-09-21 Jakub Jelinek <jakub@redhat.com>
5008 * config/i386/i386.c (ix86_expand_sse_movcc): Use
5009 blendvps, blendvpd and pblendvb if possible.
5011 2011-09-21 Uros Bizjak <ubizjak@gmail.com>
5014 * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
5015 operand 1 predicate to register_operand and operand 2 predicate
5016 to nonimmediate_operand.
5017 * config/i386/i386.c (ix86_expand_sse_movcc): When generating
5018 xop_pcmov, force op_true to register. Also, force op_false to
5019 register if it doesn't satisfy nonimmediate_operand predicate.
5021 2011-09-21 Kirill Yukhin <kirill.yukhin@intel.com>
5023 * config/i386/bmi2intrin.h (_mulx_u64): New.
5026 2011-09-21 Jan Hubicka <jh@suse.cz>
5028 PR tree-optimization/50433
5029 * ipa-inline-analysis.c (eliminated_by_inlining_prob):
5030 Use get_base_address.
5032 2011-09-21 Jakub Jelinek <jakub@redhat.com>
5034 * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
5035 nonimmediate_operand instead of register_operand predicate for operands
5036 1 and 2, force them into registers if expanding them as comparison.
5037 (<code><mode>3 umaxmin:VI124_128 expander): Similarly. For UMAX
5038 V8HImode force into register just operand 1.
5040 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
5043 * config/avr/avr.c (avr_function_arg_advance): Change error to
5044 warning if a fixed register is needed as function argument.
5046 2011-09-21 Georg-Johann Lay <avr@gjlay.de>
5050 * config/avr/avr.md (adjust_len): New insn attribute.
5051 (*reload_insi, *reload_insf): Use it.
5052 (*movsi, *movsf): Use new interface of output_movsisf.
5053 * config/avr/avr-protos.h (output_movsisf): Change prototype.
5054 * config/avr/avr.c (output_movsisf): Ditto.
5055 (adjust_insn_length): Use insn attribute "adjust_len" to adjust
5056 lengths of insns *reload_insi, *reload_insf.
5057 (output_reload_insisf_1): New static function.
5058 (output_reload_insisf): Use it.
5060 2011-09-21 David S. Miller <davem@davemloft.net>
5062 * config/sparc/sparc.c (def_builtin): Change from macro into function.
5063 (def_builtin_const): New.
5064 (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
5065 other than alignaddr and falignaddr.
5067 * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
5068 UNSPEC_FCMPEQ): New unspec codes.
5069 (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
5070 fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
5071 * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
5072 new pixel compare VIS patterns.
5073 * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
5074 __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
5075 __vis_fcmpeq16, __vis_fcmpeq32): New.
5076 * doc/extend.texi: Document new pixel compare VIS intrinsics.
5078 2011-09-21 Tom de Vries <tom@codesourcery.com>
5080 * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
5082 2011-09-20 David S. Miller <davem@davemloft.net>
5084 * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
5085 (aligneddrl<P:mode>_vis): New pattern.
5086 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
5087 edge32l_vis): Adjust to take Pmode arguments, and return SImode.
5088 * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
5089 alignaddrl insn, and adjust edge operations for updated types.
5090 * config/sparc/visintrin.h: Likewise.
5091 * doc/extend.texi: Make typing in VIS documentation match reality.
5093 2011-09-20 Terry Guo <terry.guo@arm.com>
5095 * config/arm/arm-arches.def: Add armv6s-m.
5096 * config/arm/arm-tables.opt: Regenerate.
5098 2011-09-20 Wei Guozhi <carrot@google.com>
5100 PR rtl-optimization/49452
5101 * postreload.c (reload_combine): Invalidate use information when across
5104 2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
5106 * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
5107 Remove maintenance overhead.
5108 (haifa_sched_init, sched_finish): Update.
5110 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
5112 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
5113 to calculate unit, prefix_rep and prefix_data16 attributes.
5114 (*mov<mode>_internal): Ditto for unit attribute.
5115 (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
5116 (*movv2sf_internal): Ditto.
5117 * config/i386/sse.md (VI1248_256): Remove mode iterator.
5118 (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
5119 (*avx2_eq<mode>3): Ditto.
5120 (avx2_gt<mode>3): Ditto.
5122 2011-09-19 Uros Bizjak <ubizjak@gmail.com>
5124 * config/i386/i386.md (maxmin): New code iterator.
5125 * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
5126 from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
5128 (*avx2_<maxmin:code><mode>3): Macroize isn from
5129 *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
5130 maxmin code iterator.
5131 (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
5132 (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
5133 <umaxmin:code>v16qi3.
5135 2011-09-19 Alan Modra <amodra@gmail.com>
5136 Michael Meissner <meissner@linux.vnet.ibm.com>
5139 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
5140 split the load of the indirect function's TOC from the call to
5141 prevent the compiler from moving the load of the new TOC above
5142 code that references the current function's TOC.
5143 (call_indirect_aix<ptrsize>_internal): Ditto.
5144 (call_indirect_aix<ptrsize>_nor11): Ditto.
5145 (call_indirect_aix<ptrsize>_internal2): Ditto.
5146 (call_value_indirect_aix<ptrsize>): Ditto.
5147 (call_value_indirect_aix<ptrsize>_internal): Ditto.
5148 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
5149 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
5151 2011-09-19 Jakub Jelinek <jakub@redhat.com>
5153 * config/i386/sse.md (*sse4_1_extractps): Change into
5154 define_insn_and_split, add =x 0 n and =x x n alternatives
5155 and split them after reload.
5157 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
5159 * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
5161 2011-09-19 Alexandre Oliva <aoliva@redhat.com>
5163 * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
5165 2011-09-19 Ira Rosen <ira.rosen@linaro.org>
5167 PR tree-optimization/50413
5168 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
5169 a basic block if one of its data-refs can't be analyzed.
5171 2011-09-19 Paul Brook <paul@codesourcery.com>
5173 * config/arm/predicates.md (shift_amount_operand): Check constant
5174 shift count is in range.
5175 (const_shift_operand): Remove.
5177 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
5178 Iain Sandoe <developer@sandoe-acoustics.co.uk>
5181 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
5182 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
5184 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
5186 * config/i386/bmiintrin.h: Remove tmp.
5187 * config/i386/tbmintrin.h: Likewise.
5189 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
5191 PR tree-optimization/50414
5192 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
5195 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
5197 PR tree-optimization/50412
5198 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
5199 acceses that require epilogue loop if vectorizing outer loop.
5201 2011-09-17 David S. Miller <davem@davemloft.net>
5203 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
5204 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
5206 (define_attr type): New type 'edge'.
5207 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
5208 edge32l_vis): New patterns.
5209 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
5210 * config/sparc/ultra3.md: Likewise.
5211 * config/sparc/niagara.md: Likewise.
5212 * config/sparc/niagara2.md: Likewise.
5213 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
5214 builtins for VIS edge instructions.
5215 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
5216 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
5218 (__v8qi, __v4qi): Make unsigned.
5219 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
5220 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
5221 __vis_fpack32): Fix types.
5222 * doc/extend.texi: Document new 'edge' VIS intrinsics.
5224 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
5226 (niagara3_costs): New.
5227 (sparc_option_override): Use it.
5228 * gcc/config/sparc/niagara2.md: Adjust with more accurate
5229 Niagara-3 reservations.
5231 2011-09-17 Jakub Jelinek <jakub@redhat.com>
5233 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
5234 (sse2_avx, sseinsnmode): Add V2TI.
5235 (REDUC_SMINMAX_MODE): New mode iterator.
5236 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
5237 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
5238 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
5239 (sse2_lshrv1ti3): Rename to...
5240 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
5241 iterator. Move before umaxmin expanders.
5242 * config/i386/i386.h (VALID_AVX256_REG_MODE,
5243 SSE_REG_MODE_P): Accept V2TImode.
5244 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
5245 V16HImode, V8SImode and V4DImode.
5247 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
5249 (ix86_build_signbit_mask): Likewise.
5250 (ix86_expand_int_vcond): Likewise. Handle V16HImode and V32QImode.
5251 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
5252 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
5253 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
5254 (<code><mode>3) ... this.
5255 (avx2_<code><mode>3 smaxmin expand): Rename to...
5256 (<code><mode>3) ... this.
5257 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
5258 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
5259 VI8_AVX2 mode iterator.
5260 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
5261 VI8_AVX2 mode iterator.
5262 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
5265 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
5267 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
5270 2011-09-16 David S. Miller <davem@davemloft.net>
5272 * config/sparc/visintrin.h: New file.
5273 * config.gcc: Add it to extra_headers on sparc.
5275 2011-09-16 Jakub Jelinek <jakub@redhat.com>
5277 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
5278 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
5279 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
5280 reduc_smin_v4sf): Adjust callers.
5281 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
5284 * config/i386/sse.md (vec_extract_hi_<mode>,
5285 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
5286 vextracti128 instead of vextractf128 for -mavx2 and
5287 integer vectors. For V4DFmode fix up mode attribute.
5288 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
5289 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
5290 instead of V8SF mode attribute.
5291 (avx2_extracti128): Change into define_expand.
5292 * config/i386/i386.c (ix86_expand_vector_extract): Handle
5293 32-byte vector modes if TARGET_AVX.
5295 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
5297 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
5298 (umulqi3_highpart, smulqi3_highpart): Ditto.
5299 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
5300 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
5301 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
5303 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
5306 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
5307 (*maddqi4, *maddqi4.const): New insns.
5308 (*msubqi4, *msubqi4.const): New insns.
5309 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
5310 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
5311 HImode by 1 in the case of multiplying with a CONST_INT.
5312 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
5314 2011-09-15 Jan Hubicka <jh@suse.cz>
5317 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
5318 error_mark_node in the DECL_INITIAL of vtable.
5320 2011-09-15 Diego Novillo <dnovillo@google.com>
5322 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
5323 @SYSROOT_CFLAGS_FOR_TARGET@.
5324 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
5325 * configure: Regenerate.
5326 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
5327 Remove setting of GCC_UNDER_TEST.
5329 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
5331 * config/i386/i386.c (output_fp_compare): Return %v prefixed
5332 instruction mnemonics for TARGET_AVX.
5334 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
5335 "type" attribute calculation.
5336 (*movdf_internal): Ditto.
5337 (*movsf_internal): Ditto.
5339 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
5341 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
5343 2011-09-15 Jason Merrill <jason@redhat.com>
5346 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
5348 2011-09-15 Jan Hubicka <jh@suse.cz>
5350 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
5351 simplify obviously true clauses.
5352 (and_predicates, or_predicates): Add conditions parameter.
5353 (inline_duplication_hoook): Update.
5354 (mark_modified): New function.
5355 (unmodified_parm): New function.
5356 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
5357 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
5358 Use unmodified_parm.
5359 (estimate_function_body_sizes): Update.
5360 (remap_predicate): Update.
5362 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
5364 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
5365 read-after-read dependencies in basic block SLP.
5367 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
5369 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
5372 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
5374 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
5377 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
5379 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
5382 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
5384 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
5386 * config/rs6000/constraints.md: Likewise.
5388 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
5390 * config/microblaze/microblaze.md: Use match_test rather than
5391 eq/ne symbol_ref throughout file.
5393 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
5395 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
5398 2011-09-14 Tom de Vries <tom@codesourcery.com>
5401 * explow.c (emit_stack_restore): Set crtl->need_drap if
5402 stack_restore is emitted.
5404 2011-09-14 Julian Brown <julian@codesourcery.com>
5406 * config/arm/arm.c (arm_override_options): Add unaligned_access
5408 (arm_file_start): Emit attribute for unaligned access as appropriate.
5409 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
5410 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
5411 (insv, extzv): Add unaligned-access support.
5412 (extv): Change to expander. Likewise.
5413 (extzv_t1, extv_regsi): Add helpers.
5414 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
5415 (unaligned_storesi, unaligned_storehi): New.
5416 (*extv_reg): New (previous extv implementation).
5417 * config/arm/arm.opt (munaligned_access): Add option.
5418 * config/arm/constraints.md (Uw): New constraint.
5419 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
5420 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
5421 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
5422 volatile accesses when -fstrict-volatile-bitfields is in effect.
5423 (extract_bit_field_1): Likewise.
5425 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
5427 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
5428 a scalar integer before applying integer-only optimisations to
5431 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
5433 * config/mips/mips.c (mips_expand_epilogue): Generate a
5434 simple_return only if the return address is in r31.
5436 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
5438 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
5439 NULL for a jump that is a cc0 insn, pick the previous insn for
5442 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
5444 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
5447 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
5449 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
5452 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
5454 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
5455 symbol_ref throughout file.
5457 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
5459 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
5462 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
5464 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
5467 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
5469 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
5471 * config/arm/neon.md: Likewise.
5472 * config/arm/vfp.md: Likewise.
5473 * config/arm/thumb2.md: Likewise.
5474 * config/arm/cortex-m4.md: Likewise.
5476 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
5478 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
5479 define_insn patterns for combine.
5481 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
5483 * reorg.c: Always define make_return_insns.
5485 2011-09-13 Jan Hubicka <jh@suse.cz>
5488 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
5490 2011-09-13 Jan Hubicka <jh@suse.cz>
5493 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
5495 2011-09-13 Paul Brook <paul@codesourcery.com>
5497 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5498 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
5499 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
5500 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
5501 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
5502 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
5503 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
5504 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
5505 enabling unwind tables.
5506 (c6x_debug_unwind_info): New function.
5507 (TARGET_ARM_EABI_UNWINDER): Define.
5508 (TARGET_DEBUG_UNWIND_INFO): Define.
5509 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
5510 (TARGET_EXTRA_CFI_SECTION): Remove.
5511 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
5512 * ginclude/unwind-arm-common.h: New file.
5514 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
5517 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
5518 * config/avr/avr.md: (extend_s): New code attribute.
5519 (mul_r_d): New code attribute.
5520 (*maddqihi4, *umaddqihi4): New insns.
5521 (*msubqihi4, *umsubqihi4): New insns.
5522 (*usmaddqihi4, *sumaddqihi4): New insns.
5523 (*usmsubqihi4, *susubdqihi4): New insns.
5524 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
5525 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
5526 (*umsubqihi4.uconst.ashift): New insn-and-split.
5527 (*msubqihi4.sconst.ashift): New insn-and-split.
5528 (*sumaddqihi4.uconst): New insn-and-split.
5529 (*sumsubqihi4.uconst): New insn-and-split.
5530 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
5531 PLUS:HI and MINUS:HI.
5533 2011-09-13 Revital Eres <revital.eres@linaro.org>
5535 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
5536 (optimize_sc): Adjust call to remove_node_from_ps.
5537 (sms_schedule): Add print info.
5539 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
5541 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
5544 2011-09-12 Jakub Jelinek <jakub@redhat.com>
5547 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
5548 NOTE_INSN_CFI notes, with the exception of
5549 NOTE_INSN_SWITCH_TEXT_SECTIONS.
5551 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
5552 Richard Sandiford <rdsandiford@googlemail.com>
5554 * config/mips/mips.c (mips_epilogue): New structure.
5555 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
5556 restoring registers.
5557 (mips_epilogue_emit_cfa_restores): New function.
5558 (mips_epilogue_set_cfa): Likewise.
5559 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
5560 the current CFA register from the stack, redefine the CFA in terms
5561 of the stack pointer.
5562 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
5563 to the epilogue instructions.
5565 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
5567 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
5569 (mips16e_build_save_restore): Update accordingly.
5571 2011-09-12 Jakub Jelinek <jakub@redhat.com>
5573 PR rtl-optimization/50212
5574 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
5575 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
5578 * calls.c (load_register_parameters): Use use_reg_mode instead
5579 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
5581 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
5582 for stack CALL_INSN_FUNCTION_USAGE uses.
5583 * expr.h (use_reg_mode): New prototype.
5584 (use_reg): Changed into inline around use_reg_mode.
5585 * expr.c (use_reg): Renamed to...
5586 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
5587 mode to that mode instead of VOIDmode.
5588 * var-tracking.c (prepare_call_arguments): Don't track parameters
5589 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
5590 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
5593 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
5596 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
5597 (progmem_section): New Variable.
5598 (avr_asm_init_sections): Initialize it.
5599 (TARGET_ASM_SELECT_SECTION): Define to...
5600 (avr_asm_select_section): ... this new Function.
5601 (avr_replace_prefix): New Function.
5602 (avr_asm_function_rodata_section): Use it.
5603 (avr_insert_attributes): Don't add section attribute for PROGMEM.
5604 (avr_section_type_flags): Use avr_progmem_p instead of section
5605 name to detect if object is in PROGMEM.
5606 (avr_asm_named_section): Set section name prefix for objects in
5609 2011-09-12 Jakub Jelinek <jakub@redhat.com>
5612 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
5613 sprintf format string.
5615 2011-09-12 Richard Guenther <rguenther@suse.de>
5617 PR tree-optimization/50343
5618 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
5619 that the reduction is over an SSA name before checking its definition.
5621 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
5623 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
5626 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
5628 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
5630 * config/mips/sb1.md: Likewise.
5631 * config/mips/predicates.md: Replace (match_test "!...")
5632 with (not (match_test "..."))
5633 * config/mips/constraints.md: Likewise.
5635 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
5637 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
5638 * config/arm/arm-tables.opt: Regenerate.
5639 * config/arm/arm-tune.md: Regenerate.
5640 * config/arm/arm.c (arm_file_start): Output .arch directive when
5641 user passes -mcpu=generic-*.
5642 (arm_issue_rate): Add genericv7a support.
5643 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
5644 (ASM_CPU_SPEC): New define.
5645 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
5646 * config/arm/semi.h (ASM_SPEC): Likewise.
5647 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
5648 and -mtune=generic-*.
5650 2011-09-09 Richard Guenther <rguenther@suse.de>
5652 PR tree-optimization/50328
5653 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
5654 constant or default-def operand.
5656 2011-09-09 Richard Guenther <rguenther@suse.de>
5658 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
5661 2011-09-09 Richard Guenther <rguenther@suse.de>
5663 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
5664 instead of a statement.
5665 * gimple-fold.c (fold_stmt_inplace): Likewise.
5666 * sese.c (graphite_copy_stmts_from_block): Adjust.
5667 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
5668 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
5670 (forward_propagate_addr_into_variable_array_index): Likewise.
5671 (forward_propagate_addr_expr_1): adjust.
5672 (associate_plusminus): Likewise.
5673 (ssa_forward_propagate_and_combine): Likewise.
5674 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
5675 (execute_cse_reciprocals): Likewise.
5676 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
5678 2011-09-09 Nick Clifton <nickc@redhat.com>
5680 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
5681 Return a positive value to indicate that the bits at the
5682 bottom of the register should be cleared.
5684 2011-09-09 Richard Guenther <rguenther@suse.de>
5686 * tree-ssa-operands.c (swap_tree_operands): Always adjust
5687 existing operand positions.
5689 2011-09-09 Richard Guenther <rguenther@suse.de>
5692 * tree-data-ref.c (split_constant_offset): Do not try to handle
5695 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
5697 PR tree-optimization/50318
5698 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
5699 typo in use of mult_rhs1 and mult_rhs2.
5701 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
5703 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
5704 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
5706 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
5708 * config/arm/arm.md (push_multi): Emit predicates.
5709 (push_fp_multi): Likewise.
5710 * config/arm/arm.c (vfp_output_fstmd): Likewise.
5712 2011-09-08 Dodji Seketeli <dodji@redhat.com>
5714 PR c++/33255 - Support -Wunused-local-typedefs warning
5715 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
5716 (pushdecl): Use the new record_locally_defined_typedef.
5717 (store_parm_decls): Allocate cfun->language.
5718 (finish_function): Use the new maybe_warn_unused_local_typedefs,
5719 and free cfun->language.
5720 (c_push_function_context): Allocate cfun->language here only if needed.
5721 (c_pop_function_context): Likewise, mark cfun->language
5722 for collection only when it should be done.
5723 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
5724 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
5725 maybe_record_local_typedef_use.
5726 * doc/invoke.texi: Update documentation for
5727 -Wunused-local-typedefs.
5729 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
5731 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
5732 (ix86_avoid_lea_for_add): Likewise.
5733 (ix86_avoid_lea_for_addr): Likewise.
5734 (ix86_split_lea_for_addr): Likewise.
5736 * config/i386/i386.c (LEA_MAX_STALL): New.
5737 (increase_distance): Likewise.
5738 (insn_defines_reg): Likewise.
5739 (insn_uses_reg_mem): Likewise.
5740 (distance_non_agu_define_in_bb): Likewise.
5741 (distance_agu_use_in_bb): Likewise.
5742 (ix86_lea_outperforms): Likewise.
5743 (ix86_ok_to_clobber_flags): Likewise.
5744 (ix86_avoid_lea_for_add): Likewise.
5745 (ix86_avoid_lea_for_addr): Likewise.
5746 (ix86_split_lea_for_addr): Likewise.
5747 (distance_non_agu_define): Search in pred BBs added.
5748 (distance_agu_use): Search in succ BBs added.
5749 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
5750 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
5751 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
5753 * config/i386/i386.md: Split added to transform non destructive
5754 add into move and add.
5755 (lea_1): transformed into insn_and_split to avoid AGU stalls.
5756 (lea<mode>_2): Likewise.
5758 2011-09-08 Martin Jambor <mjambor@suse.cz>
5760 PR tree-optimization/50287
5761 * ipa-split.c (split_function): Do not create SSA names for
5762 non-gimple-registers.
5764 2011-09-08 Richard Guenther <rguenther@suse.de>
5766 PR tree-optimization/19831
5767 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
5768 skip builtins with vdefs that do not really store something.
5769 (propagate_necessity): For calls to free that we can associate
5770 with an allocation function do not mark the freed pointer
5771 definition necessary.
5772 (eliminate_unnecessary_stmts): Remove a call to free if
5773 the associated call to an allocation function is not necessary.
5775 2011-09-08 Richard Guenther <rguenther@suse.de>
5777 PR tree-optimization/19831
5778 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
5779 allocation functions as necessary.
5781 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
5783 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
5785 (darwin_default_min_version): Amended to provide defaults
5786 for the cross directory case.
5787 (darwin_driver_init): call darwin_default_min_version unconditionally.
5788 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
5789 * config/darwin9.h: Likewise.
5790 * config/darwin10.h: Likewise.
5791 * config/rs6000/darwin7.h: Likewise.
5793 2011-09-08 Jakub Jelinek <jakub@redhat.com>
5796 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
5797 code early if TARGET_AVX.
5798 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
5800 2011-09-07 Jakub Jelinek <jakub@redhat.com>
5802 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
5806 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
5807 "mode" attribute computation.
5809 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
5811 * regrename.c (struct du_head): Make nregs signed.
5812 (closed_chains): Remove.
5813 (create_new_chain): Return the new chain.
5814 (chain_from_id): New static function.
5815 (dump_def_use_chain): Change argument to be an int, indicating
5816 the first ID to print. All callers changed.
5817 (merge_overlapping_regs): Use chain_from_id. Assert that
5818 chains don't conflict with themselves.
5819 (rename_chains): Take no argument. Iterate over id_to_chain
5820 rather to find chains to rename. Clear tick before the main loop.
5821 (struct incoming_reg_info): New struct.
5822 (struct bb_rename_info): New struct.
5823 (init_rename_info, set_incoming_from_chain, merge_chains): New
5825 (regrename_analyze): New static function, broken out of
5826 regrename_optimize. Record and make use of open chain information
5827 at basic block boundaries, and merge chains where possible.
5828 (scan_rtx_reg): Make this_nregs signed. Don't update
5830 (build_def_use): Return a bool to indicate success. All callers
5831 changed. Don't initialize global data here.
5832 (regrename_optimize): Move most code out of here into
5834 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
5835 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
5836 static inline functions.
5837 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
5839 * bb-reorder.c (insert_section_boundary_note): Don't check
5840 optimize_function_for_speed_p.
5841 (gate_handle_partition_blocks): Do it here instead.
5842 (gate_handle_reorder_blocks): Move preliminary checks here ...
5843 (rest_of_handle_reorder_blocks): ... from here.
5845 2011-09-07 Martin Jambor <mjambor@suse.cz>
5848 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
5849 function index bounds.
5850 (perhaps_add_new_callers): Likewise.
5852 2011-09-07 Martin Jambor <mjambor@suse.cz>
5854 PR tree-optimization/49911
5855 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
5856 enumerations to the corresponding plain integer type.
5858 2011-09-07 Richard Guenther <rguenther@suse.de>
5860 PR tree-optimization/50319
5861 * tree-if-conv.c (set_bb_predicate): Assert we only set
5862 canonical predicates.
5863 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
5864 around canonical predicates.
5865 (predicate_bbs): Do not re-gimplify already canonical
5866 predicates. Properly unshare them though.
5867 (find_phi_replacement_condition): Simplify.
5869 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
5872 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
5873 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
5874 reusing the old code from get_arm_condition_code. Return ARM_NV
5875 for invalid comparison codes.
5876 (get_arm_condition_code): Redefine in terms of
5877 maybe_get_arm_condition_code.
5878 * config/arm/predicates.md (arm_comparison_operator): Use
5879 maybe_get_arm_condition_code.
5881 2011-09-07 Richard Guenther <rguenther@suse.de>
5883 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
5884 Canonicalize negated predicates by swapping edges.
5885 (forward_propagate_into_cond): Likewise.
5887 2011-09-07 Richard Guenther <rguenther@suse.de>
5889 PR tree-optimization/50213
5890 * tree-flow.h (simple_iv_increment_p): Declare.
5891 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
5893 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
5894 not propagate simple IV counter increments.
5896 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
5897 Iain Sandoe <iains@gcc.gnu.org>
5899 * config/rs6000/rs6000.c (compute_save_world_info): Test
5900 cfun->has_nonlocal_label to determine if the out-of-line save
5901 world call may be used.
5903 2011-09-07 Nick Clifton <nickc@redhat.com>
5905 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
5906 label on the parallel part of the insn.
5908 2011-09-07 Jakub Jelinek <jakub@redhat.com>
5911 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
5912 avoid_constant_pool_reference first instead of last.
5914 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
5916 * doc/configfiles.texi (Configuration Files): Update documentation
5917 about tm_p.h and remove FIXME comment.
5919 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
5921 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
5922 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
5924 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
5926 * config/darwin10.h Remove duplicate LIB_SPEC.
5928 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
5931 * target.def (reassociation_width): New hook.
5933 * doc/tm.texi.in (reassociation_width): Likewise.
5935 * doc/tm.texi (reassociation_width): Likewise.
5937 * doc/invoke.texi (tree-reassoc-width): New param documented.
5939 * hooks.h (hook_int_uint_mode_1): New default hook.
5941 * hooks.c (hook_int_uint_mode_1): Likewise.
5943 * config/i386/i386.h (ix86_tune_indices): Add
5944 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
5946 (TARGET_REASSOC_INT_TO_PARALLEL): New.
5947 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
5949 * config/i386/i386.c (initial_ix86_tune_features): Add
5950 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
5952 (ix86_reassociation_width): New function.
5954 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
5956 * tree-ssa-reassoc.c (get_required_cycles): New function.
5957 (get_reassociation_width): Likewise.
5958 (swap_ops_for_binary_stmt): Likewise.
5959 (rewrite_expr_tree_parallel): Likewise.
5961 (rewrite_expr_tree): Refactored. Part of code moved into
5962 swap_ops_for_binary_stmt.
5964 (reassociate_bb): Now checks reassociation width to be used and
5965 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
5967 2011-09-06 Richard Guenther <rguenther@suse.de>
5969 PR tree-optimization/47025
5970 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
5972 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
5974 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
5975 definitely points to.
5976 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5977 BUILT_IN_VA_START doesn't let its va_list argument escape.
5978 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
5979 not make any previous stores necessary.
5981 2011-09-06 Martin Jambor <mjambor@suse.cz>
5983 * ipa-inline.h (struct inline_summary): Move versionable flag...
5984 * cgraph.h (struct cgraph_local_info): ...here
5985 * ipa-cp.c (determine_versionability): Use the new versionable flag.
5986 (determine_versionability): Likewise.
5987 (ipcp_versionable_function_p): Likewise.
5988 (ipcp_generate_summary): Likewise.
5989 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
5991 (compute_inline_parameters): Do not clear the versionable flag.
5992 (inline_read_section): Do not stream the versionable flag.
5993 (inline_write_summary): Likewise.
5994 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
5995 (input_overwrite_node): Likewise.
5997 2011-09-06 Richard Guenther <rguenther@suse.de>
5999 PR tree-optimization/48149
6000 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
6001 (vn_valueize): Move earlier.
6002 (valueize_expr): Use vn_valueize.
6003 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
6005 (simplify_unary_expression): Simplify.
6007 2011-09-06 Richard Guenther <rguenther@suse.de>
6009 PR tree-optimization/48317
6010 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
6012 (sizeof_vn_nary_op): New inline function.
6013 (vn_nary_op_lookup_pieces): Adjust.
6014 (vn_nary_op_insert_pieces): Likewise.
6015 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
6016 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
6017 any number of operands.
6018 (vn_nary_length_from_stmt): New function.
6019 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
6020 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
6022 (vn_nary_op_lookup): Likewise.
6023 (vn_nary_op_lookup_stmt): Likewise.
6024 (vn_nary_op_insert_into): Likewise.
6025 (vn_nary_op_insert_stmt): Likewise.
6026 (visit_use): Handle CONSTRUCTOR as nary.
6027 * tree-ssa-pre.c (phi_translate_1): Adjust.
6028 (create_expression_by_pieces): Likewise.
6029 (compute_avail): Likewise.
6031 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
6033 * config/arm/arm.c (arm_preferred_simd_mode): Check
6034 TARGET_NEON_VECTORIZE_DOUBLE instead of
6035 TARGET_NEON_VECTORIZE_QUAD.
6036 (arm_autovectorize_vector_sizes): Likewise.
6037 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
6038 mask of mvectorize-with-neon-double. Add RejectNegative.
6039 (mvectorize-with-neon-double): New.
6041 2011-09-06 Richard Guenther <rguenther@suse.de>
6043 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
6045 2011-09-06 Tom de Vries <tom@codesourcery.com>
6047 * recog.c (asm_labels_ok): New function.
6048 (check_asm_operands): Use asm_labels_ok.
6050 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
6053 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
6054 (PMODE_INSN): New macro.
6055 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
6056 (mips_got_load, mips_expand_synci_loop): Likewise.
6057 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
6059 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
6060 copygp_mips16 patterns.
6061 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
6062 and use_cprestore patterns.
6063 (mips_override_options): Check for incompatible -mabi and -mlong
6065 * config/mips/mips.md (unspec_got<mode>): Rename to...
6066 (unspec_got_<mode>): ...this.
6067 (copygp_mips16): Use the Pmode iterator.
6068 (potential_cprestore, cprestore, use_cprestore): Likewise.
6069 (clear_cache, indirect_jump): Use PMODE_INSN.
6070 (indirect_jump<mode>): Rename to...
6071 (indirect_jump_<mode>): ...this.
6072 (tablejump): Use PMODE_INSN.
6073 (tablejump<mode>): Rename to...
6074 (tablejump_<mode>): ...this.
6075 (exception_receiver): Handle restore_gp_si and restore_gp_di.
6076 (restore_gp): Use the Pmode iterator.
6077 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
6080 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
6082 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
6083 Fix the type of the BIT_AND_EXPR.
6085 2011-09-05 David S. Miller <davem@davemloft.net>
6087 * config.host: Add driver-sparc.o and sparc/x-sparc on
6088 native sparc*-*-linux* builds.
6089 * config/sparc/driver-sparc.c: Correct Linux strings.
6090 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
6091 * config/sparc/linux64.h: Likewise.
6092 * doc/invoke.texi: Document that Linux also supports
6093 -mcpu=native and -mtune=native on sparc.
6095 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
6096 PROCESSOR_NIAGARA4): New.
6097 * config/sparc/sparc.opt: Handle new processor types.
6098 * config/sparc/sparc.md: Add to "cpu" attribute.
6099 * config/sparc/sparc.h (TARGET_CPU_niagara3,
6100 TARGET_CPU_niagara4): New, treat as niagara2.
6101 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
6102 * config/sparc/sol2.h: Likewise.
6103 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
6104 * config/sparc/sparc.c (sparc_option_override): Add
6105 niagara3 and niagara4 handling.
6106 (sparc32_initialize_trampoline): Likewise.
6107 (sparc64_initialize_trampoline): Likewise.
6108 (sparc_use_sched_lookahead): Likewise.
6109 (sparc_issue_rate): Likewise.
6110 (sparc_register_move_cost): Likewise.
6111 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
6112 and niagara4 as appropriate.
6113 * doc/invoke.texi: Document new processor types.
6114 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
6115 and --with-tune options.
6117 * config/sparc/sol2-64.h: Move ...
6118 * config/sparc/default-64.h: ... to here. Update comment.
6119 * config.gcc: Update Solaris sparc to use default-64.h, also
6120 prefix this header into the list on sparc64-*-linux.
6121 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
6122 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
6125 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
6128 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
6129 that contain global register variable.
6131 2011-09-05 Richard Guenther <rguenther@suse.de>
6133 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
6135 2011-09-05 Richard Guenther <rguenther@suse.de>
6137 * stor-layout.c (layout_type): Use size_binop for array size
6140 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
6142 * config/avr/avr.h (progmem_section): Remove Declaration.
6143 * config/avr/avr.c (progmem_section): Make static and rename to
6144 progmem_swtable_section.
6145 (avr_output_addr_vec_elt): No need to switch sections.
6146 (avr_asm_init_sections): Use output_section_asm_op as section
6147 callback for progmem_swtable_section.
6148 (avr_output_progmem_section_asm_op): Remove Function.
6149 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
6150 (avr_asm_function_rodata_section): New static Function.
6151 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
6152 alignment 2**1 for jump tables.
6154 2011-09-04 Jan Hubicka <jh@suse.cz>
6156 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
6157 parameter is SSA name.
6159 2011-09-04 Richard Guenther <rguenther@suse.de>
6162 2011-08-31 Richard Guenther <rguenther@suse.de>
6164 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
6167 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
6170 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
6172 2011-09-04 Jakub Jelinek <jakub@redhat.com>
6173 Ira Rosen <ira.rosen@linaro.org>
6175 PR tree-optimization/50208
6176 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
6177 argument. Check that def_stmt is inside the loop.
6178 (vect_recog_widen_mult_pattern): Update calls to
6179 vect_handle_widen_mult_by_cons.
6180 (vect_operation_fits_smaller_type): Check that def_stmt is
6183 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
6185 * tree-vectorizer.c (vect_print_dump_info): Print line
6186 number when dumping to a file.
6187 (vectorize_loops): Add new messages to dump file.
6189 2011-09-03 Martin Jambor <mjambor@suse.cz>
6191 * ipa-prop.h (ipa_jump_func_t): New typedef.
6192 (struct ipa_edge_args): Removed field argument_count, field
6193 jump_functions turned into a vector.
6194 (ipa_set_cs_argument_count): Removed.
6195 (ipa_get_cs_argument_count): Updated to work on vectors.
6196 (ipa_get_ith_jump_func): Likewise.
6197 * ipa-prop.c (ipa_count_arguments): Removed.
6198 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
6199 jump functions. Update caller.
6200 (compute_pass_through_member_ptrs): Likewise.
6201 (compute_cst_member_ptr_arguments): Likewise.
6202 (ipa_compute_jump_functions_for_edge): Get number of arguments from
6203 the statement, allocate vector.
6204 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
6205 (duplicate_ipa_jump_func_array): Removed.
6206 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
6207 (ipa_read_node_info): Allocate vector.
6209 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6212 * config/pa/pa.md (return): Define "return" insn pattern.
6213 (epilogue): Use it when no epilogue is needed.
6214 * config/pa/pa.c (pa_can_use_return_insn): New function.
6215 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
6217 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
6219 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
6220 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
6221 Force at least BITS_PER_UNIT alignment on the new variable.
6223 2011-09-02 Gary Funck <gary@intrepid.com>
6225 * opts.c (print_specific_help): Fix off-by-one compare in
6227 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6228 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
6229 Increase by +5 to allow for more languages.
6230 * optc-gen.awk: Generate #if that ensures that the number of
6231 languages is within the implementation-defined limit.
6233 2011-09-02 Michael Matz <matz@suse.de>
6236 * ipa-split.c (split_function): Call add_referenced_var.
6238 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
6239 (cond_if_else_store_replacement_1): Ditto.
6240 * tree-ssa-pre.c (get_representative_for): Ditto.
6241 (create_expression_by_pieces): Ditto.
6242 (insert_into_preds_of_block): Ditto.
6243 * tree-sra.c (create_access_replacement): Ditto.
6244 (get_replaced_param_substitute): Ditto.
6246 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
6248 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
6250 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
6251 (l1w, s1w, l2w, s2w): Define in the main automaton.
6252 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
6254 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
6255 (c6x_unit_names): Add the new units.
6256 (c6x_unit_codes): New static array.
6257 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
6258 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
6259 UNIT_QID_SIDE_OFFSET): New macros.
6260 (RESERVATION_S2): Adjust value.
6261 (c6x_option_override): Compute c6x_unit_codes.
6262 (assign_reservations): Take the unit_mask of the last instruction
6263 into account. Detect floating point reservations by looking for
6264 the new units. Don't assign reservations if the field is already
6266 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
6267 (init_sched_state): Initialize it.
6268 (c6x_clear_sched_context): Free it.
6269 (insn_set_clock): Clear reservation.
6270 (prev_cycle_state): New static variable.
6271 (c6x_init_sched_context): Save it.
6272 (c6x_sched_init): Allocate space for it and clear it.
6273 (c6x_sched_dfa_pre_cycle_insn): New static function.
6274 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
6275 (c6x_variable_issue): Only record units in the unit_mask that
6276 were not set at the start of the cycle.
6277 (c6x_variable_issue): Compute and store the unit_mask from the
6279 (reorg_split_calls): Ensure the new information remains correct.
6280 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
6281 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
6282 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
6283 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
6284 Add special reservations.
6285 * config/c6x/c6x-sched.md: Regenerate.
6287 2011-09-02 Martin Jambor <mjambor@suse.cz>
6289 * ipa-prop.h (ipa_node_params): Removed fields
6290 called_with_var_arguments and node_versionable.
6291 (ipa_set_called_with_variable_arg): Removed.
6292 (ipa_is_called_with_var_arguments): Likewise.
6293 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
6294 (determine_versionability): Do not check for type attributes and va
6295 builtins. Record versionability into inline summary.
6296 (initialize_node_lattices): Do not check
6297 ipa_is_called_with_var_arguments.
6298 (propagate_constants_accross_call): Likewise, ignore arguments we do
6299 not have PARM_DECLs for, set variable flag for parameters that were
6301 (create_specialized_node): Dump info that we cannot change signature.
6302 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
6303 number of arguments.
6304 (ipa_make_edge_direct_to_target): Likewise.
6305 (ipa_update_after_lto_read): Likewise.
6306 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
6307 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
6310 2011-09-02 Richard Guenther <rguenther@suse.de>
6312 PR tree-optimization/27460
6314 * doc/md.texi (vcond): Document.
6315 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
6316 optab with two modes.
6317 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
6318 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
6319 (vcond_optab): Adjust.
6320 (vcondu_optab): Likewise.
6321 (expand_vec_cond_expr_p): Adjust prototype.
6322 * optabs.c (get_vcond_icode): Adjust.
6323 (expand_vec_cond_expr_p): Likewise.
6324 (expand_vec_cond_expr): Likewise.
6325 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
6327 (vectorizable_condition): Allow differing types for comparison
6329 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
6331 * config/i386/sse.md (vcond<mode>): Split to
6332 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
6333 vcond<V_128:mode><VI124_128:mode> and
6334 vcondu<V_128:mode><VI124_128:mode>.
6335 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
6336 (vconduv2di): Likewise.
6337 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
6338 (vcondu<mode>): Likewise.
6339 * config/ia64/vect.md (vcond<mode>): Likewise.
6340 (vcondu<mode>): Likewise.
6341 (vcondv2sf): Likewise.
6342 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
6343 * config/rs6000/paired.md (vcondv2sf): Likewise.
6344 * config/rs6000/vector.md (vcond<mode>): Likewise.
6345 (vcondu<mode>): Likewise.
6346 * config/spu/spu.md (vcond<mode>): Likewise.
6347 (vcondu<mode>): Likewise.
6349 2011-09-02 Richard Guenther <rguenther@suse.de>
6351 * pretty-print.h (pp_unsigned_wide_integer): New.
6352 * tree-pretty-print.c (dump_generic_node): Print unsigned
6353 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
6355 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
6358 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
6359 valid CONST_VECTOR operands.
6360 (rs6000_expand_vector_init): Likewise.
6362 2011-09-02 Martin Jambor <mjambor@suse.cz>
6364 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
6365 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
6366 BINFO_VTABLE. Parameter delta removed, all callers updated.
6367 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
6369 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
6371 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
6372 handling of thunk_delta.
6373 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
6374 (devirtualization_time_bonus): Do not handle thunk deltas.
6375 (ipcp_discover_new_direct_edges): Likewise.
6376 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6377 (try_make_edge_direct_simple_call): Likewise.
6378 (try_make_edge_direct_virtual_call): Likewise.
6379 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
6380 parameter set as unused.
6381 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
6382 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
6383 parameter set as unused.
6384 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
6385 (input_edge_opt_summary): Likewise.
6386 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
6387 BINFO_VIRTUALS at all.
6388 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
6390 2011-09-02 Richard Guenther <rguenther@suse.de>
6392 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
6393 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
6395 2011-08-31 Richard Guenther <rguenther@suse.de>
6397 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
6398 handling here, from ...
6399 (expand_expr_real_1): ... here.
6400 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
6402 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
6403 a GIMPLE_TERNARY_RHS.
6404 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
6405 and VEC_COND_EXPR here ...
6406 (verify_gimple_assign_single): ... not here.
6407 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
6408 * tree-object-size.c (cond_expr_object_size): Adjust.
6409 (collect_object_sizes_for): Likewise.
6410 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
6411 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
6412 (ssa_forward_propagate_and_combine): Adjust.
6413 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
6415 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
6416 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
6417 * tree-vect-stmt.c (vectorizable_condition): Likewise.
6418 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
6419 (extract_range_from_assignment): Likewise.
6421 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
6423 * config/i386/i386.md: Use (match_test ...) for attribute tests.
6424 * config/i386/mmx.md: Likewise.
6425 * config/i386/sse.md: Likewise.
6426 * config/i386/predicates.md (call_insn_operand): Use
6427 (not (match_test "...")) instead of (match_test "!...")
6428 * config/i386/constraints.md (w): Likewise.
6430 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
6432 * doc/md.texi: Describe the use of match_tests in attribute tests.
6433 * rtl.def (MATCH_TEST): Update commentary.
6434 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
6435 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
6437 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
6439 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
6440 (attr_string): Use copy_md_ptr_loc.
6442 2011-08-31 Martin Jambor <mjambor@suse.cz>
6445 * ipa-inline-analysis.c (compute_inline_parameters): Set
6446 can_change_signature of noes with typde attributes.
6447 * ipa-split.c (split_function): Do not skip any arguments if
6448 can_change_signature is set.
6450 2011-08-31 Martin Jambor <mjambor@suse.cz>
6452 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
6455 2011-08-31 Richard Guenther <rguenther@suse.de>
6457 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
6460 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
6462 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
6464 2011-08-31 Tom de Vries <tom@codesourcery.com>
6467 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
6468 * tree-ssa-ccp.c (params.h): Include.
6469 (fold_builtin_alloca_for_var): New function.
6470 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
6472 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
6474 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
6477 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
6479 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
6482 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
6484 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
6487 2011-08-30 Richard Guenther <rguenther@suse.de>
6490 * gimple.h (maybe_fold_offset_to_address): Remove.
6491 (maybe_fold_offset_to_reference): Likewise.
6492 (maybe_fold_stmt_addition): Likewise.
6493 (may_propagate_address_into_dereference): Likewise.
6494 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
6496 * gimple-fold.c (canonicalize_constructor_val): Likewise.
6497 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
6499 (may_propagate_address_into_dereference): Remove.
6500 (maybe_fold_offset_to_array_ref): Likewise.
6501 (maybe_fold_offset_to_reference): Likewise.
6502 (maybe_fold_offset_to_address): Likewise.
6503 (maybe_fold_stmt_addition): Likewise.
6504 (fold_gimple_assign): Do not reconstruct array references but
6505 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
6507 (gimple_fold_stmt_to_constant_1): Likewise.
6508 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6509 * gimplify.c (gimplify_conversion): Likewise.
6510 (gimplify_expr): Likewise.
6512 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
6514 * config/i386/fmaintrin.h: New.
6515 * config.gcc: Add fmaintrin.h.
6516 * config/i386/i386.c
6517 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
6518 <IX86_BUILTIN_VFMADDSD3>: Likewise.
6519 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
6520 (*fmai_fmadd_<mode>): Likewise.
6521 (*fmai_fmsub_<mode>): Likewise.
6522 (*fmai_fnmadd_<mode>): Likewise.
6523 (*fmai_fnmsub_<mode>): Likewise.
6524 * config/i386/immintrin.h: Add fmaintrin.h.
6526 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
6528 * genautomata.c (NO_COMB_OPTION): New macro.
6529 (no_comb_flag): New static variable.
6530 (gen_automata_option): Handle NO_COMB_OPTION.
6531 (comb_vect_p): False if no_comb_flag.
6532 (add_vect): Move computation of min/max values. Return early if
6534 * doc/md.texi (automata_option): Document no-comb-vect.
6536 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
6537 "__x86.get_pc_thunk".
6539 * bb-reorder.c (insert_section_boundary_note): Only do it if
6540 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
6542 2011-08-30 Christian Bruel <christian.bruel@st.com>
6544 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
6547 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
6549 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
6550 to off. Document switch.
6551 * doc/invoke.texi (-msave-toc-indirect): Ditto.
6553 2011-08-29 Jakub Jelinek <jakub@redhat.com>
6555 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
6556 conditionals and comments inside macro arguments.
6558 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
6559 Richard Guenther <rguenther@suse.de>
6561 * tree.h (constant_boolean_node): Adjust prototype.
6562 * fold-const.c (fold_convert_loc): Move aggregate conversion
6564 (constant_boolean_node): Make value parameter boolean, add
6565 vector type handling.
6566 (fold_unary_loc): Use constant_boolean_node.
6567 (fold_binary_loc): Preserve types properly when folding
6568 COMPLEX_EXPR <__real x, __imag x>.
6569 * gimplify.c (gimplify_expr): Handle vector comparison.
6570 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
6572 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
6575 2011-08-29 Jakub Jelinek <jakub@redhat.com>
6578 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
6579 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
6580 (verify_rtl_sharing): Likewise and verify_rtx_sharing
6582 (unshare_all_rtl_in_chain): For CALL_INSNs
6583 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
6585 2011-08-29 Richard Guenther <rguenther@suse.de>
6587 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
6588 on the built ADDR_EXPR.
6590 2011-08-29 Jakub Jelinek <jakub@redhat.com>
6593 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
6594 before adding ENTRY_VALUE to val->locs.
6596 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
6599 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
6602 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
6604 * doc/rtl.texi (simple_return): Document.
6605 (parallel, PATTERN): Here too.
6606 * doc/md.texi (return): Mention it's allowed to expand to simple_return
6608 (simple_return): Document standard pattern.
6609 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
6610 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
6611 * reorg.c (function_return_label, function_simple_return_label):
6612 New static variables, replacing...
6613 (end_of_function_label): ... this.
6614 (simplejump_or_return_p): New static function.
6615 (optimize_skip, steal_delay_list_from_fallthrough,
6616 fill_slots_from_thread): Use it.
6617 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
6618 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
6619 (find_end_label): Take a new arg which is one of the two return
6620 rtxs. Depending on which, set either function_return_label or
6621 function_simple_return_label. All callers changed.
6622 (make_return_insns): Make both kinds.
6623 (dbr_schedule): Adjust for two kinds of end labels.
6624 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
6625 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
6626 (gen_expand, gen_split): Use ANY_RETURN_P.
6627 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
6628 * rtl.def (SIMPLE_RETURN): New code.
6629 * ifcvt.c (find_if_case_1): Be more careful about
6630 redirecting jumps to the EXIT_BLOCK.
6631 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
6632 returnjump_p_1): Handle SIMPLE_RETURNs.
6633 * print-rtl.c (print_rtx): Likewise.
6634 * rtl.c (copy_rtx): Likewise.
6635 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
6636 * combine.c (simplify_set): Likewise.
6637 * resource.c (find_dead_or_set_registers, mark_set_resources):
6639 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
6640 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
6641 (init_emit_regs): Initialize simple_return_rtx.
6642 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
6643 force_nonfallthru_and_redirect.
6644 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
6645 (GR_SIMPLE_RETURN): New enum value.
6646 (simple_return_rtx): New macro.
6647 * basic-block.h (force_nonfallthru_and_redirect): Adjust
6649 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
6650 argument. All callers changed. Be careful about what kinds of
6651 returnjumps to generate.
6652 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
6653 ix86_pad_short_function): Likewise.
6654 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
6656 * config/mips/mips.md (any_return): New code_iterator.
6657 (optab): Add cases for return and simple_return.
6658 (return): Expand to a simple_return.
6659 (simple_return): New pattern.
6660 (*<optab>, *<optab>_internal for any_return): New patterns.
6661 (return_internal): Remove.
6662 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
6663 a simple_return_internal.
6665 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
6667 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
6668 (vec_extract_lo_<mode>): Prevent both operands in memory.
6669 (vec_extract_lo_v16hi): Ditto.
6670 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
6672 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
6674 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
6675 (*sse2_mulv4si3): Ditto.
6677 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
6680 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
6683 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
6684 when all outputs are unused.
6685 (sse4_2_pcmpistr): Ditto.
6687 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
6689 * config/i386/i386.md (round<mode>2): New expander.
6690 * config/i386/i386.c (enum ix86_builtins): Add
6691 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
6692 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
6694 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
6695 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
6697 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
6700 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
6701 only when TARGET_C99_FUNCTIONS.
6702 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
6703 <BUILT_IN_RINT{,F,L}>: Ditto.
6705 2011-08-26 Michael Matz <matz@suse.de>
6706 Jakub Jelinek <jakub@redhat.com>
6709 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
6710 don't call strlen twice, use memcpy.
6712 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
6714 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
6715 * config/i386/bmiintrin.h: Likewise.
6716 * config/i386/lzcntintrin.h: Likewise.
6718 * config/i386/immintrin.h: Include <lzcntintrin.h>,
6719 <bmiintrin.h> and <bmi2intrin.h>.
6721 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6724 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
6725 * configure: Regenerate.
6727 2011-08-26 Jakub Jelinek <jakub@redhat.com>
6730 * c-typeck.c (c_process_expr_stmt): Skip over nops and
6731 call mark_exp_read even if exprv is ADDR_EXPR.
6733 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
6735 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
6736 to df_set_dead_notes_for_mw.
6738 2011-08-26 Richard Guenther <rguenther@suse.de>
6740 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
6742 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
6743 Tom de Vries <tom@codesourcery.com>
6745 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
6746 (struct ivopts_data): Add loop_single_exit_p field.
6747 (niter_for_exit): Change parameter desc_p into return value. Return
6748 desc if desc->may_be_zero. Free desc if unused.
6749 (niter_for_single_dom_exit): Change return type.
6750 (find_induction_variables): Handle changed return type of
6751 niter_for_single_dom_exit. Dump may_be_zero.
6752 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
6753 (set_use_iv_cost): Add and handle comp parameter.
6754 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
6755 comp argument to set_use_iv_cost.
6756 (strip_wrap_conserving_type_conversions, expr_equal_p)
6757 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
6758 (may_eliminate_iv): Add comp parameter. Handle new return type of
6759 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
6760 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
6761 and may_eliminate_iv.
6762 (rewrite_use_compare): Move call to iv_elimination_compare to ...
6763 (may_eliminate_iv): Here.
6764 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
6766 2011-08-26 Tom de Vries <tom@codesourcery.com>
6768 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
6769 accessing TREE_TYPE.
6771 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
6773 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
6774 (*ior_scc_scc_cmp): Likewise
6775 (*and_scc_scc): Likewise.
6776 (*and_scc_scc_cmp): Likewise.
6777 (*and_scc_scc_nodom): Likewise.
6778 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
6780 2011-08-26 Jakub Jelinek <jakub@redhat.com>
6782 * rtlanal.c (nonzero_bits1): Handle CLRSB.
6784 2011-08-26 Richard Guenther <rguenther@suse.de>
6786 * expr.c (string_constant): Handle &MEM_REF.
6788 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
6790 * config/arm/arm.c (struct four_ints): New type.
6791 (count_insns_for_constant): Delete function.
6792 (find_best_start): Delete function.
6793 (optimal_immediate_sequence): New function.
6794 (optimal_immediate_sequence_1): New function.
6795 (arm_gen_constant): Move constant splitting code to
6796 optimal_immediate_sequence.
6797 Rewrite constant negation/invertion code.
6799 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
6801 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
6802 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
6803 Remove prototype. Remove static function type.
6804 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
6806 * config/arm/constraints.md (Pj, PJ): New constraints.
6808 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6810 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
6811 ("cortex_a9_multiply_long"): New and use above. Handle all
6812 long multiply cases.
6813 ("cortex_a9_multiply"): Handle smmul and smmulr.
6814 ("cortex_a9_mac"): Handle smmla.
6816 2011-08-25 Richard Henderson <rth@redhat.com>
6820 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
6821 non-constant stack adjutment.
6822 * expr.c (find_args_size_adjust): Break out from ...
6823 (fixup_args_size_notes): ... here.
6824 * rtl.h (find_args_size_adjust): Declare.
6826 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
6828 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
6829 sse4 and sse4_noavx.
6830 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
6831 (*pushdf_rex64): Change Y2 register constraint to x.
6832 (*movdf_internal_rex64): Ditto.
6833 (*zero_extendsidi2_rex64): Ditto.
6834 (*movdi_internal): Change Y2 register constraint to x
6835 and update "isa" attribute.
6837 (*movdf internal): Ditto.
6838 (zero_extendsidi2_1): Ditto.
6839 (*truncdfdf_mixed): Ditto.
6840 (*truncxfdf2_mixed): Ditto.
6841 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
6842 register constraint to x.
6843 (*movv2sf_internal_rex64): Ditto.
6844 (*mov<mode>_internal): Change Y2 register constraint to x
6845 and add "isa" attribute.
6846 (*movv2sf_internal): Ditto.
6847 (*vec_extractv2si_1): Ditto.
6848 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
6849 constraints to x and update "isa" attribute.
6850 (*vec_interleave_highv2df): Change Y3 registerconstraint
6851 to x and update "isa" attribute.
6852 (*vec_interleave_lowv2df): Ditto.
6853 (*vec_concatv2df): Change Y2 register constraint to x and
6854 update "isa" attribute.
6855 (sse2_loadld): Ditto.
6856 (*vec_extractv2di_1): Ditto.
6857 (*vec_dupv4si): Ditto.
6858 (*vec_dupv2di): Ditto.
6859 (*vec_concatv4si): Ditto.
6860 (vec_concatv2di): Ditto.
6861 * config/i386/constraints.md (Y2): Remove.
6865 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
6867 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
6868 dump_def_use_chain): Don't declare.
6869 (mark_conflict, create_new_chain): Move before users.
6870 (regrename_optimize): Move to near end of file.
6872 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
6874 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
6875 (secondary_input_reload_class): Remove Prototype.
6876 * config/avr/avr.c (byte_immediate_operand): Remove Function.
6877 * config/avr/avr.md (setmemhi): Use u8_operand.
6878 (strlenhi): Use const0_rtx for comparison.
6879 * config/avr/avr.h (avr_reg_order): Remove Declaration.
6881 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
6883 * config/avr/avr.c (reg_class_tab): Make local to
6884 avr_regno_reg_class. Return smallest register class available.
6886 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
6888 * config/avr/avr.c (STR_PREFIX_P): New Define.
6889 (avr_asm_declare_function_name): Use it.
6890 (avr_asm_named_section): Use it.
6891 (avr_section_type_flags): Use it.
6893 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
6895 * doc/md.texi (automata_option): Document collapse-ndfa.
6896 * genautomata.c (COLLAPSE_OPTION): New macro.
6897 (collapse_flag): New static variable.
6898 (struct description): New member normal_decls_num.
6899 (struct automaton): New members advance_ainsn and collapse_ainsn.
6900 (gen_automata_option): Check for COLLAPSE_OPTION.
6901 (collapse_ndfa_insn_decl): New static variable.
6902 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
6903 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
6904 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
6905 necessary. Use normal_decls_num rather than decls_num, remove
6906 test for special decls.
6907 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
6908 (make_automaton); Likewise. Use the new advance_cycle_insn member
6909 of struct automaton.
6910 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
6912 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
6913 transition. Create the necessary transitions for it.
6914 (create_ainsns): Return void. Take an automaton_t argument, and
6915 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
6917 (COLLAPSE_NDFA_VALUE_NAME): New macro.
6918 (output_tables): Output code to define it.
6919 (output_internal_insn_code_evaluation): Output code to accept
6920 const0_rtx as collapse-ndfa transition.
6921 (output_default_latencies, output_print_reservation_func,
6922 output_print_description): Reorganize loops to use normal_decls_num
6923 as loop bound; remove special case for advance_cycle_insn_decl.
6924 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
6925 (check_automata_insn_issues): Check for collapse_ainsn.
6926 (expand_automate): Allocate sufficient space. Initialize
6929 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
6931 * config/avr/avr.md: Fix indentation from r177991.
6933 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
6935 * regrename.c (struct du_head): Remove member terminated.
6936 (create_new_chain): Don't initialize it.
6937 (scan_rtx_reg): Don't set or test it, test the open_chains_set
6939 (tick, this_tick): New global variables, moved out of
6941 (current_id, open_chains, closed_chains, open_chains_set,
6942 live_in_chains, live_hard_regs): Reorder declarations.
6943 (dump_def_use_chain): Move function earlier in the file.
6944 (rename_chains): New static function, broken out of
6946 (regrename_optimize): Use it. Remove #if 0'ed code.
6948 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6950 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
6952 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
6955 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
6957 2011-08-24 Richard Guenther <rguenther@suse.de>
6959 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
6960 ref in the basic-block case. Move stripping array-refs
6961 to the place we create an access-function for it. Remove
6962 bogus stripping down a MEM_REF to its base.
6964 2011-08-24 Richard Guenther <rguenther@suse.de>
6966 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
6967 with -fno-strict-overflow.
6969 2011-08-24 Richard Guenther <rguenther@suse.de>
6971 * tree-vectorizer.c (vect_print_dump_info): Avoid the
6972 file and location clutter when dumping to dump files.
6974 2011-08-24 Simon Baldwin <simonb@google.com>
6976 * gengtype-state.c (write_state): Remove timestamped header line.
6978 2011-08-24 Joseph Myers <joseph@codesourcery.com>
6980 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
6981 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
6982 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
6983 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
6984 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
6985 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
6986 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
6988 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
6990 2011-08-24 Joseph Myers <joseph@codesourcery.com>
6992 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
6994 2011-08-24 Richard Guenther <rguenther@suse.de>
6996 PR tree-optimization/50067
6997 * tree-data-ref.c (dr_analyze_indices): Do not add an access
6998 function for a MEM_REF base that has no evolution in the loop
6999 nest or that is not analyzable.
7001 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
7003 * ira.c (ira_init_register_move_cost): Check small subclasses
7004 through ira_reg_class_max_nregs and ira_available_class_regs.
7006 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
7008 * config/i386/constraints.md (Yp): New register constraint.
7009 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
7010 Yp register constraint.
7011 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
7012 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
7013 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
7015 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
7017 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
7019 2011-08-23 Mark Heffernan <meheff@google.com>
7022 * common.opt (Wfree-nonheap-object): New option.
7023 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
7024 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
7026 (expand_builtin): Make warning conditional.
7028 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
7030 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
7031 (length_immediate): Handle imulx, ishiftx and rotatex.
7034 (enabled): Handle bmi2.
7035 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
7036 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
7037 (*bmi2_umulditi3_1): New insn pattern.
7038 (*bmi2_umulsidi3_1): Ditto.
7039 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
7040 (*bmi2_ashl<mode>3_1): New insn pattern.
7041 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
7042 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
7043 (*bmi2_ashlsi3_1_zext): New insn pattern.
7044 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
7045 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
7046 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
7047 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
7048 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
7050 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
7051 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
7052 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
7054 (*bmi2_rorx<mode>3_1): New insn pattern.
7055 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
7056 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
7057 (*rotatert<mode>3_1 splitter): Ditto.
7058 (*bmi2_rorxsi3_1_zext): New insn pattern.
7059 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
7060 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
7061 (*rotatertsi3_1_zext splitter): Ditto.
7063 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
7065 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
7066 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
7067 (ix86_handle_option): Handle OPT_mbmi2 case.
7068 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
7069 (x86_64-*-*): Likewise.
7070 * config/i386/bmi2intrin.h: New file.
7071 * config/i386/cpuid.h (bit_BMI2): New.
7072 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
7074 * config/i386/i386-c.c (ix86_target_macros_internal):
7075 Conditionally define __BMI2__.
7076 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
7078 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
7079 (print_reg): New code.
7080 (ix86_print_operand): Likewise.
7081 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
7082 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
7083 IX86_BUILTIN_PEXT64.
7084 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
7085 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
7086 IX86_BUILTIN_PEXT64.
7087 * config/i386/i386.h (TARGET_BMI2): New.
7088 * config/i386/i386.md (UNSPEC_PDEP): New.
7089 (UNSPEC_PEXT): Likewise.
7090 (*bmi2_bzhi_<mode>3): Likewise.
7091 (*bmi2_pdep_<mode>3): Likewise.
7092 (*bmi2_pext_<mode>3): Likewise.
7093 * config/i386/i386.opt (mbmi2): New.
7094 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
7096 * doc/extend.texi: Document BMI2 built-in functions.
7097 * doc/invoke.texi: Document -mbmi2.
7099 2011-08-23 Jakub Jelinek <jakub@redhat.com>
7102 * simplify-rtx.c (simplify_const_unary_operation): If
7103 op is CONST_INT, don't look at op_mode, but use instead mode.
7104 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
7105 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
7106 operation and TRUNCATE/ZERO_EXTEND if needed.
7107 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
7108 Document that operand mode must be same as operation mode,
7110 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
7111 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
7112 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
7113 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
7114 use the mode of operand for the operation and add truncate
7115 or zero_extend around if needed.
7116 * config/c6x/c6x.md (ctzdi2): Likewise.
7117 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
7119 2011-08-12 Michael Matz <matz@suse.de>
7121 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
7122 (gimple_expand_cfg): Merge alignment info for coalesced pointer
7125 2011-08-23 Richard Guenther <rguenther@suse.de>
7127 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
7128 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
7129 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
7131 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
7132 (mem_refs_may_alias_p): Adjust.
7133 * tree-data-ref.h (dr_may_alias_p): Adjust.
7134 * tree-data-ref.c: Include tree-affine.h.
7135 (dr_analyze_indices): Do nothing for the non-loop case.
7136 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
7137 more cases in the non-loop case.
7138 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
7139 calls to dr_may_alias_p.
7140 (write_alias_graph_to_ascii_ecc): Likewise.
7141 (write_alias_graph_to_ascii_dot): Likewise.
7142 (build_alias_set_optimal_p): Likewise.
7144 2011-08-23 Richard Guenther <rguenther@suse.de>
7146 PR tree-optimization/50162
7147 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
7149 2011-08-23 Richard Guenther <rguenther@suse.de>
7151 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
7152 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
7153 (create_data_ref): Also dump access functions for the created data-ref.
7155 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
7156 Kirill Yukhin <kirill.yukhin@intel.com>
7159 * config/i386/sse.md (VI_AVX2): New.
7160 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
7161 (*<plusminus_insn><mode>3): Ditto.
7162 (<sse2_avx2>_andnot<mode>3): Ditto.
7163 (*andnot<mode>3): Fix order of cond operands.
7164 Add asserts for correct TARGET_xxx.
7165 (*<any_logic:code><mode>3): Ditto.
7167 2011-08-22 Anatoly Sokolov <aesok@post.ru>
7169 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
7170 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
7171 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
7172 regclass argument type to reg_class_t. Change 'max' and 'v' vars
7173 and return types to unsigned char. Use reg_class_contents instead
7175 (TARGET_CLASS_MAX_NREGS): Define.
7177 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
7179 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
7180 to make computed_jump_p return true.
7182 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7184 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
7185 (PICFLAG_FOR_TARGET): Substitute.
7186 * aclocal.m4: Regenerate.
7187 * configure: Regenerate.
7189 2011-08-22 Dodji Seketeli <dodji@redhat.com>
7191 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
7192 after reading in the pch.
7194 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
7196 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
7197 * configure: Regenerated.
7199 2011-08-22 Jakub Jelinek <jakub@redhat.com>
7201 PR tree-optimization/50133
7202 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
7203 from stmt instead of some statement around gsi.
7206 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
7207 innerdecl is a VAR_DECL.
7209 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
7211 * config/i386/avx2intrin.h: New file.
7212 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
7213 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
7214 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
7215 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
7216 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
7217 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
7218 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
7219 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
7220 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
7221 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
7222 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
7223 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
7224 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
7225 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
7226 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
7227 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
7228 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
7229 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
7230 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
7231 VOID_FTYPE_PV8SI_V8SI_V8SI,
7232 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
7233 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
7234 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
7235 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
7236 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
7237 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
7238 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
7239 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
7240 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
7241 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
7242 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
7243 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
7244 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
7245 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
7246 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
7247 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
7248 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
7249 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
7250 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
7251 V4DI_FTYPE_V4DI_INT_CONVERT,
7252 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
7253 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
7254 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
7255 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
7256 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
7257 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
7258 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
7259 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
7260 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
7261 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
7262 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
7263 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
7264 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
7265 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
7266 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
7267 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
7268 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
7269 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
7270 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
7271 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
7272 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
7273 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
7274 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
7275 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
7276 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
7277 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
7278 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
7279 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
7280 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
7281 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
7282 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
7283 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
7284 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
7285 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
7286 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
7287 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
7288 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
7289 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
7290 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
7291 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
7292 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
7293 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
7294 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
7295 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
7296 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
7297 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
7298 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
7299 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
7300 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
7301 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
7302 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
7303 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
7304 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
7305 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
7306 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
7307 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
7308 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
7309 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
7310 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
7311 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
7312 IX86_BUILTIN_VBROADCASTSS_PS256,
7313 IX86_BUILTIN_VBROADCASTSD_PD256,
7314 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
7315 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
7316 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
7317 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
7318 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
7319 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
7320 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
7321 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
7322 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
7323 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
7324 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
7325 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
7326 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
7327 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
7328 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
7329 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
7330 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
7331 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
7332 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
7333 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
7334 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
7335 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
7336 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
7337 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
7338 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
7339 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
7340 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
7341 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
7342 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
7343 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
7344 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
7345 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
7346 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
7347 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
7348 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
7349 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
7350 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
7351 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
7352 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
7353 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
7354 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
7355 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
7356 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
7357 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
7358 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
7359 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
7360 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
7361 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
7362 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
7363 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
7364 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
7365 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
7366 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
7367 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
7368 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
7369 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
7370 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
7371 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
7372 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
7373 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
7374 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
7375 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
7376 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
7377 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
7378 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
7379 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
7380 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
7381 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
7382 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
7383 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
7384 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
7385 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
7386 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
7387 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
7388 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
7389 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
7390 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
7391 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
7392 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
7393 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
7394 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
7395 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
7396 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
7397 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
7398 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
7399 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
7400 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
7401 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
7402 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
7403 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
7404 IX86_BUILTIN_VBROADCASTSD_PD256,
7405 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
7406 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
7407 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
7408 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
7409 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
7410 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
7411 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
7412 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
7413 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
7414 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
7415 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
7416 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
7417 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
7418 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
7419 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
7420 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
7421 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
7422 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
7423 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
7424 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
7425 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
7426 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
7427 IX86_BUILTIN_GATHERDIV8SI.
7428 (ix86_preferred_simd_mode): Support AVX2 modes.
7429 (ix86_expand_args_builtin): Support AVX2 builtins.
7430 (ix86_expand_special_args_builtin): Likewise.
7431 (ix86_expand_builtin): Likewise.
7432 * config/i386/i386.md (UNSPEC_VPERMSI): New.
7433 (UNSPEC_VPERMDF): Likewise.
7434 (UNSPEC_VPERMSF): Likewise.
7435 (UNSPEC_VPERMDI): Likewise.
7436 (UNSPEC_VPERMTI): Likewise.
7437 (UNSPEC_GATHER): Likewise.
7438 (ssemodesuffix): Extend.
7439 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
7441 * config/i386/predicates.md (const1248_operand): New.
7442 * config/i386/sse.md (VI1_AVX2): New mode iterator.
7443 (VI2_AVX2): Likewise.
7444 (VI4_AVX2): Likewise.
7445 (VI8_AVX2): Likewise.
7446 (VIMAX_AVX2): Likewise.
7447 (SSESCALARMODE): Likewise.
7448 (VI12_AVX2): Likewise.
7449 (VI24_AVX2): Likewise.
7450 (VI124_AVX2): Likewise.
7451 (VI248_AVX2): Likewise.
7452 (VI48_AVX2): Likewise.
7453 (VI4SD_AVX2): Likewise.
7454 (V48_AVX2): Likewise.
7455 (AVX256MODE2P): Likewise.
7456 (AVXMODE48P_DI): Likewise.
7457 (sse2_avx2): New mode attribute.
7458 (ssse3_avx2): Likewise.
7459 (sse4_1_avx2): Likewise.
7460 (avx_avx2): Likewise.
7461 (ssebytemode): Likewise.
7462 (AVXTOSSEMODE): Likewise.
7463 (AVXMODE48P_DI): Likewise.
7464 (gthrfirstp): Likewise.
7465 (gthrlastp): Likewise.
7466 (lshift): New code_iterator
7467 (lshift): New code attribute.
7469 (ssescalarmodesuffix): Update.
7470 (sseunpackmode): Likewise.
7471 (ssepackmode): Likewise.
7472 (avx2_vec_dupv4sf): New insn pattern.
7473 (avx2_vec_dupv8sf): Likewise.
7474 (avx2_interleave_highv4di): Likewise.
7475 (avx2_interleave_lowv4di): Likewise.
7476 (avx2_umulv4siv4di3): Likewise
7477 (*avx2_umulv4siv4di3): Likewise
7478 (avx2_pmaddwd): Likewise.
7479 (*avx2_pmaddwd): Likewise.
7480 (avx2_lshrqv4di3): Likewise.
7481 (avx2_lshlqv4di3): Likewise.
7482 (avx2_lshl<mode>3): Likewise.
7483 (avx2_<umaxmin:code><mode>3): Likewise.
7484 (*avx2_<umaxmin:code><mode>3): Likewise.
7485 (avx2_<smaxmin:code><mode>3): Likewise.
7486 (*avx2_<smaxmin:code><mode>3): Likewise.
7487 (avx2_eq<mode>3): Likewise.
7488 (*avx2_eq<mode>3): Likewise.
7489 (avx2_gt<mode>3): Likewise.
7490 (avx2_interleave_highv32qi): New.
7491 (avx2_interleave_lowv32qi): Likewise.
7492 (avx2_interleave_highv16hi): Likewise.
7493 (avx2_interleave_lowv16hi): Likewise.
7494 (avx2_interleave_highv8si): Likewise.
7495 (avx2_interleave_lowv8si): Likewise.
7496 (avx2_pshufd): Likewise.
7497 (avx2_pshufd_1): Likewise.
7498 (avx2_pshuflwv3): Likewise.
7499 (avx2_pshuflw_1): Likewise.
7500 (avx2_pshufhwv3): Likewise.
7501 (avx2_pshufhw_1): Likewise.
7502 (avx2_uavgv32qi3): Likewise.
7503 (*avx2_uavgv32qi3): Likewise.
7504 (avx2_uavgv16hi3): Likewise.
7505 (*avx2_uavgv16hi3): Likewise.
7506 (avx2_pmovmskb): Likewise.
7507 (avx2_phaddwv16hi3): Likewise.
7508 (avx2_phadddv8si3): Likewise.
7509 (avx2_phaddswv16hi3): Likewise.
7510 (avx2_phsubwv16hi3): Likewise.
7511 (avx2_phsubdv8si3): Likewise.
7512 (avx2_phsubswv16hi3): Likewise.
7513 (avx2_pmaddubsw256): Likewise.
7514 (avx2_umulhrswv16hi3): Likewise.
7515 (*avx2_umulhrswv16hi3): Likewise.
7516 (avx2_packusdw): Likewise.
7517 (avx2_pblendd<mode>): Likewise.
7518 (avx2_<code>v16qiv16hi2): Likewise.
7519 (avx2_<code>v8qiv8si2): Likewise.
7520 (avx2_<code>v8hiv8si2): Likewise.
7521 (avx2_<code>v4qiv4di2): Likewise.
7522 (avx2_<code>v4hiv4di2): Likewise.
7523 (avx2_<code>v4siv4di2): Likewise.
7524 (avx2_pbroadcast<mode>): Likewise.
7525 (avx2_permvarv8si): Likewise.
7526 (avx2_permv4df): Likewise.
7527 (avx2_permvarv8sf): Likewise.
7528 (avx2_permv4di): Likewise.
7529 (avx2_permv2ti): Likewise.
7530 (avx2_vec_dupv4df): Likewise.
7531 (avx2_vbroadcasti128_<mode>): Likewise.
7532 (avx2_vec_set_lo_v4di): Likewise.
7533 (avx2_vec_set_hi_v4di): Likewise.
7534 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
7535 (avx2_extracti128): Likewise.
7536 (avx2_inserti128): Likewise.
7537 (avx2_ashrvv8si): Likewise.
7538 (avx2_ashrvv4si): Likewise.
7539 (avx2_<lshift>vv8si): Likewise.
7540 (avx2_<lshift>v<mode>): Likewise.
7541 (avx2_<lshift>vv2di): Likewise.
7542 (avx2_gathersi<mode>): Likewise.
7543 (*avx2_gathersi<mode>): Likewise.
7544 (avx2_gatherdi<mode>): Likewise.
7545 (*avx2_gatherdi<mode>): Likewise.
7546 (avx2_gatherdi<mode>256): Likewise.
7547 (*avx2_gatherdi<mode>256): Likewise.
7548 (<plusminus_insn><mode>3): Use VI mode iterator.
7549 (*<plusminus_insn><mode>3): Use VI mode iterator.
7550 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
7551 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
7552 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
7553 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
7554 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
7555 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
7556 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
7557 Use VI2_AVX2 mode iterator.
7558 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
7559 Use VI2_AVX2 mode iterator.
7560 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
7561 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
7562 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
7563 Use VI4_AVX2 mode iterator.
7564 (ashr<mode>3): Use VI24_AVX2 mode iterator.
7565 (lshr<mode>3): Use VI248_AVX2 mode iterator.
7566 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
7567 Use VIMAX_AVX2 mode iterator.
7568 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
7569 Use VI mode iterator.
7570 (*andnot<mode>3): Update for AVX2.
7571 (*<any_logic:code><mode>3): Likewise.
7572 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
7573 Use VI1_AVX mode iterator.
7574 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
7575 Use VI2_AVX mode iterator.
7576 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
7577 Use VI1_AVX mode iterator.
7578 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
7579 Use VI8_AVX2 mode iterator.
7580 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
7581 Use VI1_AVX2 mode iterator.
7582 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
7583 Use VI124_AVX2 mode iterator.
7584 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
7585 Use SSESCALARMODE mode iterator.
7586 (abs<mode>2): Use VI124_AVX2 mode iterator.
7587 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
7588 Use VI8_AVX2 mode iterator.
7589 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
7590 Use VI1_AVX2 mode iterator.
7591 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
7592 Use VI1_AVX2 mode iterator.
7593 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
7594 Use VI2_AVX2 mode iterator.
7595 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
7596 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
7597 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
7598 avx_maskstore<ssemodesuffix><avxsizesuffix>.
7599 Use V48_AVX2 mode iterator.
7600 * doc/extend.texi: Document AVX2 built-in functions.
7601 * doc/invoke.texi: Document -mavx2.
7603 2011-08-22 Matthias Klose <doko@debian.org>
7606 2011-07-11 Arthur Loiret <aloiret@debian.org>
7607 Matthias Klose <doko@debian.org>
7608 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
7609 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
7611 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
7613 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
7616 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
7617 to #ifndef HONOR_REG_ALLOC_ORDER block.
7619 2011-08-21 Richard Henderson <rth@redhat.com>
7621 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
7622 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
7623 * resource.c (next_insn_no_annul): Likewise.
7624 (mark_set_resources): Likewise.
7625 * reorg.c (delete_from_delay_slot): Likewise.
7626 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
7627 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
7629 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
7631 * config/i386/i386.md (any_div): Remove.
7632 (sgnprefix): Update for removal.
7635 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
7637 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
7638 for ira_reg_class_max_nregs. Increase pressure by 1.
7639 (mark_pseudo_regno_subword_dead): Use allocno class
7640 for ira_reg_class_max_nregs.
7642 2011-08-20 Richard Henderson <rth@redhat.com>
7644 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
7645 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
7646 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
7647 config/c6x/ltf.c: Adjust include path for soft-fp.
7649 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
7652 * config.gcc (tm_file): Add initfini-array.h if
7653 .init_arrary/.fini_array are supported.
7655 * crtstuff.c: Don't generate .ctors nor .dtors sections if
7656 USE_INITFINI_ARRAY is defined.
7658 * output.h (default_elf_init_array_asm_out_constructor): New.
7659 (default_elf_fini_array_asm_out_destructor): Likewise.
7660 * varasm.c (elf_init_array_section): Likewise.
7661 (elf_fini_array_section): Likewise.
7662 (get_elf_initfini_array_priority_section): Likewise.
7663 (default_elf_init_array_asm_out_constructor): Likewise.
7664 (default_elf_fini_array_asm_out_destructor): Likewise.
7666 * config/initfini-array.h: New.
7668 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
7670 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
7671 OK for ST_REGS and FP_REGS before taking those classes into account.
7673 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
7675 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
7676 before checking for annulled branches.
7678 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
7680 * config/i386/i386.c (ix86_binary_operator_ok): Use
7681 satisfies_constraint_L.
7683 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
7684 Michael Matz <matz@suse.de>
7686 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
7687 trunc (a + copysign (nextafter (0.5, 0.0), a)).
7689 2011-08-20 Anatoly Sokolov <aesok@post.ru>
7691 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7692 * doc/tm.texi: Regenerate.
7693 * targhooks.c (default_preferred_output_reload_class): Don't use
7694 PREFERRED_OUTPUT_RELOAD_CLASS macro.
7695 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
7697 2011-08-20 Jakub Jelinek <jakub@redhat.com>
7699 PR tree-optimization/48739
7700 * tree-ssa.c: Include cfgloop.h.
7701 (execute_update_addresses_taken): When updating ssa, if in loop closed
7702 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
7703 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
7705 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
7707 PR rtl-optimization/49936
7708 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
7709 for calculation of max register move costs.
7711 2011-08-19 Joseph Myers <joseph@codesourcery.com>
7713 * c-parser.c (c_parser_postfix_expression): Convert operands of
7714 __builtin_complex to their semantic types.
7716 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
7719 * explow.c (convert_memory_address_addr_space): Also permute the
7720 conversion and addition of constant for zero-extend.
7722 2011-08-19 Joseph Myers <joseph@codesourcery.com>
7724 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
7725 * doc/extend.texi (__builtin_complex): Document.
7727 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7729 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
7731 (convert_mult_to_widen): Convert constant inputs to the right type.
7732 (convert_plusminus_to_widen): Don't automatically reject inputs that
7733 are not an SSA_NAME.
7734 Convert constant inputs to the right type.
7736 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7738 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
7739 to the correct type.
7741 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7743 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
7744 unsigned inputs of different modes.
7745 (convert_plusminus_to_widen): Likewise.
7747 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7749 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
7751 Use 'type' from caller, not inferred from 'rhs'.
7752 Don't reject non-conversion statements. Do return lhs in this case.
7753 (is_widening_mult_p): Add new argument 'type'.
7754 Use 'type' from caller, not inferred from 'stmt'.
7755 Pass type to is_widening_mult_rhs_p.
7756 (convert_mult_to_widen): Pass type to is_widening_mult_p.
7757 (convert_plusminus_to_widen): Likewise.
7759 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7761 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
7762 Ensure the the larger type is the first operand.
7764 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7766 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
7767 unsupported unsigned multiplies to signed.
7768 (convert_plusminus_to_widen): Likewise.
7770 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7772 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
7773 conversion statement separating multiply-and-accumulate.
7775 2011-08-19 Richard Guenther <rguenther@suse.de>
7777 PR tree-optimization/50067
7778 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
7779 offset only if we accounted for it.
7781 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7783 * config/arm/arm.md (maddhidi4): Remove '*' from name.
7784 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
7785 * optabs.c (find_widening_optab_handler_and_mode): New function.
7786 (expand_widen_pattern_expr): Use find_widening_optab_handler.
7787 (expand_binop_directly): Likewise.
7788 (expand_binop): Likewise.
7789 * optabs.h (find_widening_optab_handler): New macro define.
7790 (find_widening_optab_handler_and_mode): New prototype.
7791 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
7792 type precision rules.
7793 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
7794 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
7795 (is_widening_mult_rhs_p): Allow widening by more than one mode.
7796 Explicitly disallow mis-matched input types.
7797 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
7798 input types to fit the new handler.
7799 (convert_plusminus_to_widen): Likewise.
7801 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
7803 * expr.c (expand_expr_real_2): Use widening_optab_handler.
7804 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
7805 (gen_insn): $N now means $a must be wider than $b, not consecutive.
7806 * optabs.c (widened_mode): New function.
7807 (expand_widen_pattern_expr): Use widening_optab_handler.
7808 (expand_binop_directly): Likewise.
7809 (expand_binop): Likewise.
7810 * optabs.h (widening_optab_handlers): New struct.
7811 (optab_d): New member, 'widening'.
7812 (widening_optab_handler): New function.
7813 (set_widening_optab_handler): New function.
7814 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
7815 widening_optab_handler.
7816 (convert_plusminus_to_widen): Likewise.
7818 2011-08-19 Joseph Myers <joseph@codesourcery.com>
7820 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
7822 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
7823 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
7825 2011-08-19 Joseph Myers <joseph@codesourcery.com>
7827 * opth-gen.awk: Do not declare target save/restore structures and
7828 functions if IN_RTS defined.
7830 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7833 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
7834 when stack was realigned in interrupt handler prologue.
7836 2011-08-18 Joseph Myers <joseph@codesourcery.com>
7838 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
7839 (quals_from_declspecs): Assert _Noreturn not present.
7840 (grokdeclarator): Handle _Noreturn.
7841 (build_null_declspecs): Initialize noreturn_p.
7842 (declspecs_add_scspec): Handle RID_NORETURN.
7843 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
7844 (c_parser_attributes): Handle RID_NORETURN.
7845 * c-tree.h (struct c_declspecs): Add noreturn_p.
7846 * ginclude/stdnoreturn.h: New.
7847 * Makefile.in (USER_H): Add stdnoreturn.h.
7849 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
7851 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
7852 (OPTION_MASK_ISA_AVX_UNSET): Update.
7853 (OPTION_MASK_ISA_AVX2_UNSET): New.
7854 (ix86_handle_option): Handle OPT_mavx2 case.
7855 * config/i386/cpuid.h (bit_AVX2): New.
7856 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
7858 * config/i386/i386-c.c (ix86_target_macros_internal):
7859 Conditionally define __AVX2__.
7860 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
7861 Define "core-avx2" processor alias. Handle avx2 option.
7862 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
7863 * config/i386/i386.h (TARGET_AVX2): New.
7864 * config/i386/i386.opt (mavx2): New.
7865 * doc/invoke.texi: Document -mavx2.
7867 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
7869 PR rtl-optimization/49890
7870 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
7871 subclasses of class which is superset of a pressure class.
7873 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
7874 Igor Zamyatin <igor.zamyatin@intel.com>
7876 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
7877 with HOST_WIDE_INT for isa_flag.
7878 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
7881 * config/i386/i386.c (ix86_target_string): Replace int with
7882 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
7883 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
7884 (pta_flags): Removed.
7885 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
7886 (pta): Use HOST_WIDE_INT on flags.
7887 (builtin_isa): Use HOST_WIDE_INT on isa.
7888 (ix86_add_new_builtins): Likewise.
7889 (def_builtin): Use HOST_WIDE_INT on mask.
7890 (def_builtin_const): Likewise.
7891 (builtin_description): Likewise.
7893 * config/i386/i386.opt (ix86_isa_flags): Replace int with
7895 (ix86_isa_flags_explicit): Likewise.
7896 (x_ix86_isa_flags_explicit): Likewise.
7898 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
7900 PR rtl-optimization/50107
7901 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
7902 (ira_hard_reg_in_set_p): New.
7904 * ira-color.c (calculate_saved_nregs): New.
7905 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
7907 (allocno_reload_assign, fast_allocation): Use
7908 ira_hard_reg_set_intersection_p instead of
7909 ira_hard_reg_not_in_set_p.
7911 * ira.c (setup_reg_renumber): Use
7912 ira_hard_reg_set_intersection_p instead of
7913 ira_hard_reg_not_in_set_p.
7914 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
7915 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
7917 * ira-costs.c (ira_tune_allocno_costs): Use
7918 ira_hard_reg_set_intersection_p instead of
7919 ira_hard_reg_not_in_set_p.
7921 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
7922 Igor Zamyatin <igor.zamyatin@intel.com>
7924 * hwint.h (HOST_WIDE_INT_1): New.
7926 * opt-functions.awk (switch_bit_fields): Initialize the
7927 host_wide_int field.
7928 (host_wide_int_var_name): New.
7929 (var_type_struct): Check and return HOST_WIDE_INT.
7931 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
7933 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
7935 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
7936 check masks for HOST_WIDE_INT.
7938 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
7939 (option_enabled): Likewise.
7940 (get_option_state): Likewise.
7942 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
7945 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7946 Marc Glisse <marc.glisse@normalesup.org>
7948 PR libstdc++-v3/1773
7949 * target.def (decl_mangling_context): New C++ hook.
7950 * doc/tm.texi: Regenerate.
7951 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
7952 * config/sol2-protos.h: Group by source file.
7953 (solaris_cxx_decl_mangling_context): Declare.
7954 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
7955 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
7957 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
7958 Add sol2-stubs.o to extra_objs.
7960 2011-08-18 Jakub Jelinek <jakub@redhat.com>
7963 * stor-layout.c (update_alignment_for_field): Don't ICE on
7964 packed flexible array members if ms_bitfield_layout_p.
7967 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
7968 on the result before returning it.
7971 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
7972 is a debug stmt, use location of the first non-debug stmt after it.
7974 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
7976 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
7977 (arm_size_rtx_costs): Likewise.
7979 2011-08-18 Richard Guenther <rguenther@suse.de>
7981 * tree.h (tree_int_cst_msb): Remove.
7982 * tree.c (tree_int_cst_msb): Likewise.
7983 (tree_int_cst_sign_bit): Move from ...
7984 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
7986 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
7988 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
7989 * doc/tm.texi: Regenerate.
7990 * target.def (rtx_costs): Add an opno parameter.
7991 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
7992 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
7993 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
7994 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
7995 * cse.c (COST_IN): Add an opno parameter.
7996 (notreg_cost): Likewise. Update call to rtx_cost.
7997 (COST, fold_rtx): Update accordingly.
7998 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
7999 * expmed.c (emit_store_flag): Likewise.
8000 * optabs.c (avoid_expensive_constant): Add an opno parameter.
8001 Update call to rtx_cost.
8002 (expand_binop_directly, expand_binop): Likewise.
8003 (expand_twoval_binop, prepare_cmp_insn): Likewise.
8004 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
8005 (set_src_cost, get_full_set_src_cost): Update accordingly.
8006 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
8008 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
8009 (default_adress_cost): Update calls to rtx_cost.
8011 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
8012 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
8013 (arm_rtx_costs): Add an opno parameter.
8014 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
8015 adjust any recursive rtx-cost calls.
8016 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
8017 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
8018 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
8019 * config/cris/cris.c (cris_rtx_costs): Likewise.
8020 * config/frv/frv.c (frv_rtx_costs): Likewise.
8021 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
8022 * config/i386/i386.c (ix86_rtx_costs): Likewise.
8023 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
8024 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
8025 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
8026 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
8027 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
8028 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
8029 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
8030 * config/mep/mep.c (mep_rtx_cost): Likewise.
8031 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
8032 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
8033 (mips_zero_extend_cost): Add an opno parameter.
8034 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
8035 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
8037 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
8039 * config/pa/pa.c (hppa_rtx_costs): Likewise.
8040 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
8041 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
8042 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
8043 (rs6000_debug_rtx_costs): Likewise.
8044 * config/s390/s390.c (s390_rtx_costs): Likewise.
8045 * config/score/score-protos.h (score_rtx_costs): Likewise.
8046 * config/score/score.c (score_rtx_costs): Likewise.
8047 * config/sh/sh.c (andcosts): Update call to rtx_cost.
8048 (sh_rtx_costs): Add an opno parameter.
8049 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
8050 * config/spu/spu.c (spu_rtx_costs): Likewise.
8051 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
8052 * config/v850/v850.c (v850_rtx_costs): Likewise.
8053 * config/vax/vax.c (vax_rtx_costs): Likewise.
8054 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
8056 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
8058 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
8059 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
8061 * calls.c (precompute_register_parameters): Likewise.
8062 * combine.c (expand_compound_operation, make_extraction): Likewise.
8063 (force_to_mode, distribute_and_simplify_rtx): Likewise.
8064 * dse.c (find_shift_sequence): Likewise.
8065 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
8066 * expr.c (compress_float_constant): Likewise.
8067 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
8068 * gcse.c (want_to_gcse_p): Likewise.
8069 * ifcvt.c (noce_try_sign_mask): Likewise.
8070 * loop-doloop.c (doloop_optimize): Likewise.
8071 * loop-invariant.c (create_new_invariant): Likewise.
8072 * optabs.c (avoid_expensive_constant): Likewise.
8073 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
8074 (try_replace_in_use, reload_cse_move2add): Likewise.
8075 * reload1.c (calculate_elim_costs_all_insns): Likewise.
8076 (note_reg_elim_costly): Likewise.
8077 * rtlanal.c (insn_rtx_cost): Likewise.
8078 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
8079 * stmt.c (lshift_cheap_p): Likewise.
8080 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
8081 * config/avr/avr.c (final_prescan_insn): Likewise.
8082 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
8083 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
8085 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
8087 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
8088 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
8089 * cfgloopanal.c (seq_cost): Likewise.
8090 * loop-invariant.c (create_new_invariant): Likewise.
8091 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
8092 (reload_cse_move2add): Use get_full_set_rtx_cost.
8094 2011-08-18 Richard Guenther <rguenther@suse.de>
8096 * expr.c (get_inner_reference): Fix typo in last change.
8098 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
8099 Joseph Myers <joseph@codesourcery.com>
8101 PR tree-optimization/49963
8102 * hwint.c (absu_hwi): Define.
8103 * hwint.h (absu_hwi): Declare.
8104 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
8106 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
8107 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
8109 2011-08-18 Richard Guenther <rguenther@suse.de>
8111 * expr.c (get_inner_reference): Sign-extend the constant
8112 twos-complement offset before doing arbitrary precision
8114 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
8115 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
8116 to get_constraint_for_ptr_offset.
8118 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
8121 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
8123 2011-08-17 Richard Guenther <rguenther@suse.de>
8125 * tree.h (convert_to_ptrofftype_loc): New function.
8126 (convert_to_ptrofftype): Define.
8127 * builtins.c (expand_builtin_bzero): Use size_type_node.
8128 (fold_builtin_bzero): Likewise.
8129 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
8130 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
8131 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
8132 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
8133 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
8134 * fold-const.c (build_range_check): Negate using the original type.
8135 (fold_unary_loc): Use fold_build_pointer_plus_loc.
8136 * gimple-fold.c (gimple_adjust_this_by_delta): Use
8137 convert_to_ptrofftype.
8138 * gimplify.c (gimplify_self_mod_expr): Likewise.
8139 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
8140 (graphite_create_new_loop_guard): Likewise.
8141 * graphite-sese-to-poly.c (my_long_long): Remove.
8142 (scop_ivs_can_be_represented): Adjust.
8143 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
8144 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
8145 * tree-loop-distribution.c (build_size_arg_loc): Use
8147 (generate_memset_zero): Simplify.
8148 * tree-mudflap.c: Use fold_convert, not convert.
8149 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
8151 (determine_offset): Likewise for DR_STEP.
8152 (valid_initializer_p): Likewise.
8153 * tree-profile.c (prepare_instrumented_value): Convert the pointer
8154 to an integer type of same size.
8155 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
8156 to sizetype without need.
8157 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
8158 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
8159 * tree-ssa-loop-manip.c (create_iv): Likewise.
8160 (determine_exit_conditions): Adjust comment.
8161 * tree-ssa-pre.c (create_expression_by_pieces): Use
8162 convert_to_ptrofftype.
8163 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
8164 * varasm.c (array_size_for_constructor): Compute using double_ints.
8166 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8168 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
8169 when generating an integer result where possible. Short-cut
8170 comparison against 0 also for QImode.
8172 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8174 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
8175 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
8177 * config/spu/spu.c (spu_legitimize_reload_address): New function.
8178 (spu_legitimate_address_p): Do not check displacement if the base
8179 is an eliminable stack register.
8181 2011-08-16 Anatoly Sokolov <aesok@post.ru>
8183 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
8184 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
8185 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
8186 m32c_preferred_output_reload_class): Remove.
8187 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
8188 Change rclass argument and return types to reg_class_t. Use
8189 reg_class_subset_p instead of class_sizes.
8190 (m32c_preferred_output_reload_class): Make static. Change rclass
8191 argument and return types to reg_class_t.
8192 (TARGET_PREFERRED_RELOAD_CLASS,
8193 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8195 2011-08-16 Kai Tietz <ktietz@redhat.com>
8197 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
8199 2011-08-16 Richard GUenther <rguenther@suse.de>
8201 PR tree-optimization/50082
8202 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
8203 warnings here, instead of ...
8204 (ssa_forward_propagate_and_combine): ... here.
8205 (forward_propagate_into_comparison_1): Adjust.
8206 (forward_propagate_into_comparison): Likewise.
8207 (forward_propagate_into_gimple_cond): Likewise.
8208 (forward_propagate_into_cond): Likewise.
8210 2011-08-16 Andreas Schwab <schwab@redhat.com>
8212 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
8213 instead of ggc_alloc_zone_vec_rtvec_def.
8215 2011-08-16 Richard Guenther <rguenther@suse.de>
8217 * tree.h (ptrofftype_p): New helper function.
8218 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
8219 offset verification.
8220 (verify_gimple_assign_binary): Likewise.
8221 * tree.c (build2_stat): Likewise.
8222 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
8223 (reset_evolution_in_loop): Likewise.
8224 * tree-chrec.h (build_polynomial_chrec): Likewise.
8226 2011-08-16 Liang Wang <lwang1@marvell.com>
8228 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
8229 ggc_alloc_zone_vec_rtvec_def.
8231 2011-08-16 Richard Guenther <rguenther@suse.de>
8233 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
8234 helper factored out from ...
8235 (extract_range_from_binary_expr_1): ... here. Re-structure
8236 to not glob handling too different tree codes.
8238 2011-08-15 Richard Henderson <rth@redhat.com>
8241 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
8242 setting out to include allocate_stack named pattern as well.
8243 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
8244 * stmt.c (expand_stack_restore): Likewise.
8246 2011-08-15 Richard Guenther <rguenther@suse.de>
8249 * fold-const.c (maybe_canonicalize_comparison_1): Properly
8250 convert the modified operand to the other operand type.
8251 (fold_comparison): Call maybe_canonicalize_comparison_1 with
8252 useless conversions stripped from comparison operands.
8254 2011-08-15 Richard Guenther <rguenther@suse.de>
8256 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
8257 (extract_range_from_unary_expr_1): Restructure.
8259 2011-08-15 Richard Guenther <rguenther@suse.de>
8261 PR tree-optimization/50058
8262 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
8265 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8268 * config/arm/arm.c (output_move_double): Add 2 parameters
8269 to count the number of insns emitted and whether to emit or not.
8270 Use the flag to decide when to emit and count number of instructions
8271 that will be emitted.
8272 Handle case where output_move_double might be called for calculating
8273 lengths with an invalid constant.
8274 (arm_count_output_move_double_insns): Define.
8275 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
8276 (output_move_double): Adjust prototype.
8277 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
8279 ("*movdi_vfp_cortexa8"): Likewise and add attribute
8281 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
8282 ("*movdf_soft_insn"): Likewise.
8283 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
8284 ("*cirrus_thumb2_movdi"): Likewise.
8285 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
8286 ("*cirrus_movdf_hard_insn"): Likewise.
8287 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
8288 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
8289 ("mov<mode>_internal VMMX"): Likewise.
8290 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
8292 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
8294 * config/i386/i386.c (ix86_expand_round_sse4): New function.
8295 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
8296 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
8299 (rint<mode>2): Simplify TARGET_ROUND check.
8300 (floor<mode>2): Ditto.
8301 (ceil<mode>2): Ditto.
8302 (btrunc<mode>2): Ditto.
8304 2011-08-14 Anatoly Sokolov <aesok@post.ru>
8306 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
8307 as mmix_preferred_output_reload_class.
8309 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
8312 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
8313 (branch_unspec): New insn.
8314 (branch): Beauty farm.
8315 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
8317 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
8318 New static functions.
8319 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
8320 Use CONST_INT_P. Beauty.
8322 2011-08-12 Richard Henderson <rth@redhat.com>
8325 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
8326 * sched-deps.c (init_deps): Clear it.
8327 (deps_analyze_insn): Consume it.
8328 (sched_analyze_insn): Fill it.
8330 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8333 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
8334 for tbh instructions.
8336 2011-08-12 Diego Novillo <dnovillo@google.com>
8338 * data-streamer.h (streamer_write_zero): Rename from output_zero.
8339 (streamer_write_uhwi): Rename from lto_output_uleb128.
8340 (streamer_write_hwi): Rename from output_sleb128.
8341 (streamer_write_string): Rename from lto_output_string.
8342 (streamer_string_index): Rename from lto_string_index.
8343 (streamer_write_string_with_length): Rename from
8344 lto_output_string_with_length.
8345 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
8346 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
8347 (streamer_read_string): Rename from lto_input_string.
8348 (streamer_read_indexed_string): Rename from input_string_internal.
8349 (streamer_read_uhwi): Rename from lto_input_uleb128.
8350 (streamer_read_hwi): Rename from lto_input_sleb128.
8351 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
8352 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
8353 (streamer_write_enum): Rename from lto_output_enum.
8354 (streamer_read_enum): Rename from lto_input_enum.
8355 (streamer_write_record_start): Rename from output_record_start.
8356 (streamer_read_record_start): Rename from input_record_start.
8357 (streamer_write_bitpack): Rename from lto_output_bitpack.
8358 (streamer_read_bitpack): Rename from lto_input_bitpack.
8359 (streamer_write_char_stream): Rename from lto_output_1_stream.
8360 (streamer_read_uchar): Rename from lto_input_1_unsigned.
8361 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
8362 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
8363 (streamer_read_string_cst): Rename from input_string_cst.
8364 (streamer_read_chain): Rename from lto_input_chain.
8365 (streamer_alloc_tree): Rename from lto_materialize_tree.
8366 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
8367 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
8368 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
8369 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
8370 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
8371 (streamer_write_chain): Rename from lto_output_chain.
8372 (streamer_write_tree_header): Rename from lto_output_tree_header.
8373 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
8374 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
8375 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
8376 (streamer_write_builtin): Rename from lto_output_builtin_tree.
8377 (streamer_check_handled_ts_structures): Rename from
8378 check_handled_ts_structures.
8379 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
8380 (streamer_tree_cache_insert_at): Rename from
8381 lto_streamer_cache_insert_at.
8382 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
8383 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
8384 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
8385 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
8386 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
8387 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
8388 (write_identifier): Rename from output_identifier.
8389 (write_ts_common_tree_pointers): Rename from
8390 lto_output_ts_common_tree_pointers.
8391 (write_ts_vector_tree_pointers): Rename from
8392 lto_output_ts_vector_tree_pointers.
8393 (write_ts_complex_tree_pointers): Rename from
8394 lto_output_ts_complex_tree_pointers.
8395 (write_ts_decl_minimal_tree_pointers): Rename from
8396 lto_output_ts_decl_minimal_tree_pointers.
8397 (write_ts_decl_common_tree_pointers): Rename from
8398 lto_output_ts_decl_common_tree_pointers.
8399 (write_ts_decl_non_common_tree_pointers): Rename from
8400 lto_output_ts_decl_non_common_tree_pointers.
8401 (write_ts_decl_with_vis_tree_pointers): Rename from
8402 lto_output_ts_decl_with_vis_tree_pointers.
8403 (write_ts_field_decl_tree_pointers): Rename from
8404 lto_output_ts_field_decl_tree_pointers.
8405 (write_ts_function_decl_tree_pointers): Rename from
8406 lto_output_ts_function_decl_tree_pointers.
8407 (write_ts_type_common_tree_pointers): Rename from
8408 lto_output_ts_type_common_tree_pointers.
8409 (write_ts_type_non_common_tree_pointers): Rename from
8410 lto_output_ts_type_non_common_tree_pointers.
8411 (write_ts_list_tree_pointers): Rename from
8412 lto_output_ts_list_tree_pointers.
8413 (write_ts_vec_tree_pointers): Rename from
8414 lto_output_ts_vec_tree_pointers.
8415 (write_ts_exp_tree_pointers): Rename from
8416 lto_output_ts_exp_tree_pointers.
8417 (write_ts_block_tree_pointers): Rename from
8418 lto_output_ts_block_tree_pointers.
8419 (write_ts_binfo_tree_pointers): Rename from
8420 lto_output_ts_binfo_tree_pointers.
8421 (write_ts_constructor_tree_pointers): Rename from
8422 lto_output_ts_constructor_tree_pointers.
8423 (write_ts_target_option): Rename from lto_output_ts_target_option.
8424 (write_ts_translation_unit_decl_tree_pointers): Rename from
8425 lto_output_ts_translation_unit_decl_tree_pointers.
8426 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
8427 Rename from lto_streamer_cache_add_to_node_array.
8428 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
8429 (record_common_node): Rename from lto_record_common_node.
8431 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
8433 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
8435 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
8437 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
8438 (ipa-reference.o): Likewise.
8439 * lto-section-out.c: Include data-streamer.h.
8440 * ipa-reference.c: Include data-streamer.h.
8442 2011-08-12 Nick Clifton <nickc@redhat.com>
8444 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
8445 * doc/md.texi (cmpstrn): Note that the comparison stops if both
8446 fetched bytes are zero.
8448 (cmpmem): Note that the comparison does not stop if both of the
8449 fetched bytes are zero.
8451 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
8453 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
8454 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
8455 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
8456 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
8457 to integer_type_node.
8458 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
8459 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
8460 * builtins.c (expand_builtin_in): Ditto.
8461 (mathfn_built_in_1): Ditto.
8462 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
8464 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
8466 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
8467 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
8468 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
8470 2011-08-12 Richard Guenther <rguenther@suse.de>
8472 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
8474 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
8476 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
8478 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
8480 * config/arm/arm.c (get_label_padding): New function.
8481 (create_fix_barrier, arm_reorg): Use it.
8483 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
8486 * config/i386/i386.md (*lea_5_zext): New.
8487 (*lea_6_zext): Ditto.
8488 * config/i386/predicates.md (const_32bit_mask): New predicate.
8489 (lea_address_operand): Reject AND.
8490 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
8491 const_32bit_mask immediate.
8492 (ix86_print_operand_address): Handle AND.
8493 (memory_address_length): Ditto.
8495 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
8496 Brian Hackett <bhackett1024@gmail.com>
8498 * plugin.def: Add event for finish_decl.
8499 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
8500 * c-decl.c (finish_decl): Invoke callbacks on above event.
8501 * doc/plugins.texi: Document above event.
8503 2011-08-11 Richard Guenther <rguenther@suse.de>
8505 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
8506 lookups, make looking through aggregate copies stronger.
8508 2011-08-11 Richard Henderson <rth@redhat.com>
8511 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
8513 2011-08-11 Richard Guenther <rguenther@suse.de>
8515 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
8516 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
8517 (vrp_visit_stmt): Likewise.
8519 2011-08-11 Richard Guenther <rguenther@suse.de>
8522 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
8523 load of the other piece with TREE_NO_WARNING.
8524 * tree-flow.h (warn_uninit): Adjust prototype.
8525 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
8526 the base variable and the expression that is used separately.
8527 Properly query all TREE_NO_WARNING flags.
8528 (struct walk_data): Remove.
8529 (warn_uninitialized_var): Likewise.
8530 (warn_uninitialized_vars): Do not walk gimple pieces but simply
8531 look at all SSA uses of the statement. Handle unused memory
8533 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
8535 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
8537 * config/rx/rx.md (movsicc): Allow register to register transfers.
8538 (*movsicc): Likewise.
8539 (*stcc): Restrict this pattern to EQ and NE compares.
8540 (*stcc_reg): New pattern. Works for any comparison but only for
8543 2011-08-11 Diego Novillo <dnovillo@google.com>
8545 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
8546 Call stream_write_tree instead of output_record_start.
8547 (lto_output_ts_binfo_tree_pointers): Likewise.
8549 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
8550 Convert it to a macro.
8551 (stream_read_tree): Likewise.
8553 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
8554 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
8556 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
8557 and tree_read_bitfields.
8558 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
8559 (lto_write_tree): Call it.
8560 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
8561 * streamer-hooks.h (struct streamer_hooks): Remove fields
8562 name, is_streamable and alloc_tree. Update all users.
8563 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
8564 (lto_materialize_tree): ... here.
8565 Handle CALL_EXPR codes.
8566 Remove call to lto_streamer_cache_append.
8567 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
8568 * tree-streamer.h (tree_read_bitfields): Declare.
8570 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
8571 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
8572 * tree-streamer.h (stream_read_tree): New. Replace all calls
8573 to lto_input_tree with it.
8574 (stream_write_tree): New. Replace all calls to lto_output_tree,
8575 lto_output_tree_ref and lto_output_tree_or_ref with it.
8576 * lto-streamer-in.c (lto_read_tree): Inline code from
8577 lto_streamer_read_tree.
8578 (lto_input_tree): Move from tree-streamer-in.c.
8579 * lto-streamer-out.c (lto_output_tree_ref): Make static.
8580 Remove handling of NULL values for EXPR.
8581 Do not handle EXPRs that are not indexable.
8582 (lto_write_tree): Move from tree-streamer-out.c.
8583 Inline lto_streamer_write_tree.
8584 (lto_output_tree): Move from tree-streamer-out.c.
8585 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
8586 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
8587 (lto_preload_common_nodes): Likewise.
8588 Remove assertions and adjustments for nodes
8589 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
8590 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
8591 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
8592 * lto-streamer.h (lto_input_tree): Declare.
8593 (lto_output_tree_ref): Remove.
8594 * streamer-hooks.h (struct streamer_hooks): Remove fields
8595 preload_common_nodes, indexable_with_decls_p,
8596 pack_value_fields, unpack_value_fields and output_tree_header.
8598 * tree-streamer-in.c (lto_materialize_tree): Make extern.
8599 (lto_input_tree_pointers): Likewise.
8600 (lto_read_tree): Move to lto-streamer-in.c.
8601 (lto_input_integer_cst): Make extern.
8602 (lto_get_pickled_tree): Likewise.
8603 (lto_get_builtin_tree): Likewise.
8604 (lto_input_tree): Move to lto-streamer-in.c.
8605 * tree-streamer-out.c (pack_value_fields): Make extern.
8606 (lto_output_tree_or_ref): Remove. Replace all callers with
8607 calls to stream_write_tree.
8608 (lto_output_builtin_tree): Make extern.
8609 (lto_streamer_write_tree): Inline into lto_write_tree.
8610 (lto_output_tree_pointers): Make extern.
8611 (lto_output_tree_header): Likewise.
8612 (lto_output_integer_cst): Likewise.
8613 (lto_write_tree): Move to lto-streamer-out.c.
8614 (lto_output_tree): Likewise.
8615 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
8616 (preload_common_nodes): Likewise.
8617 (lto_streamer_cache_create): Call it.
8618 * tree-streamer.h: Include streamer-hooks.h.
8619 (stream_write_tree): New.
8620 (stream_read_tree): New.
8621 (lto_input_tree): Remove.
8622 (lto_materialize_tree): Declare.
8623 (lto_input_tree_pointers): Declare.
8624 (lto_get_pickled_tree): Declare.
8625 (lto_get_builtin_tree): Declare.
8626 (lto_input_integer_cst): Declare.
8627 (lto_output_tree_header): Declare.
8628 (pack_value_fields): Declare.
8629 (lto_output_tree_pointers): Declare.
8630 (lto_output_integer_cst): Declare.
8631 (lto_output_builtin_tree): Declare.
8633 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
8635 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
8636 only if producer writes to the register given by regno.
8638 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
8639 Alexander Monakov <amonakov@ispras.ru>
8641 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
8642 (sched_get_condition_with_rev_uncached): ... this. Factor out
8643 condition caching logic into ...
8644 (sched_get_condition_with_rev): ... this. Reimplement. Do not
8645 attempt to use cache for instructions with zero luid.
8646 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
8647 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
8649 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
8651 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
8652 get_seqno_for_a_jump. Update the caller.
8653 (get_seqno_by_succs): New. Use it ...
8654 (get_seqno_for_a_jump): ... here to find a seqno if looking at
8655 predecessors was not sufficient.
8656 (get_seqno_by_preds): Include head in iteration range, exclude insn.
8658 2011-08-11 Dmitry Melnik <dm@ispras.ru>
8660 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
8662 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
8664 * sel-sched-ir.h (register_unavailable_p): Declare.
8665 * sel-sched-ir.c (register_unavailable_p): New. Use it...
8666 (set_unavailable_target_for_expr): ... here to properly test
8667 availability of a register.
8668 (speculate_expr): Ditto.
8669 * sel-sched.c (substitute_reg_in_expr): Ditto.
8670 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
8672 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
8674 * sel-sched.c (verify_target_availability): Fix usage of
8677 2011-08-11 Dmitry Melnik <dm@ispras.ru>
8679 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
8680 recognized by cannot_copy_insn_p hook and volatile instructions.
8682 2011-08-11 Dmitry Melnik <dm@ispras.ru>
8684 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
8686 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
8688 * doc/md.texi (define_bypass): Say that the instruction names can
8689 be filename-style globs.
8690 * Makefile.in (FNMATCH_H): Define.
8691 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
8692 * genattrtab.c: Include fnmatch.h.
8693 (bypass_list): Change field name from "insn" to "pattern".
8694 (gen_bypass_1): Update accordingly.
8695 (process_bypasses): Use fnmatch to check for matches between
8696 insn reservations and define_bypasses.
8697 * genautomata.c: Include fnmatch.h.
8698 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
8699 and out_pattern respectively.
8700 (gen_bypass, insert_bypass): Update accordingly.
8701 (for_each_matching_insn, process_bypass_2, process_bypass_1)
8702 (process_bypass): New functions.
8703 (process_decls): Use process_bypass. Update after field name changes.
8705 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
8708 * config/avr/avr.md (smulqi3_highpart): New insn.
8709 (umulqi3_highpart): New insn.
8710 (*subqi3.ashiftrt7): New insn.
8711 (smulhi3_highpart): New expander.
8712 (umulhi3_highpart): Nex expander.
8713 (*smulhi3_highpart_call): New insn.
8714 (*umulhi3_highpart_call): New insn.
8715 (extend_u): New code attribute.
8716 (extend_prefix): Rename code attribute to extend_su.
8717 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
8718 widening QI/HI multiply.
8720 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
8722 PR tree-optimization/50039
8723 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
8724 that DEF_STMT has a stmt_vec_info.
8726 2011-08-10 Richard Guenther <rguenther@suse.de>
8728 * tree.h (can_trust_pointer_alignment): Remove.
8729 * builtins.c (can_trust_pointer_alignment): Remove.
8731 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
8733 * c-typeck.c (scalar_to_vector): New function. Try scalar to
8735 (stv_conv): New enum for scalar_to_vector return type.
8736 (build_binary_op): Adjust.
8737 * doc/extend.texi: Description of scalar to vector expansion.
8739 2011-08-10 Richard Guenther <rguenther@suse.de>
8741 * tree.h (get_pointer_alignment): Remove max-align argument.
8742 (get_object_alignment): Likewise.
8743 * builtins.c (get_object_alignment_1): Adjust.
8744 (get_object_alignment): Remove max-align argument.
8745 (get_pointer_alignment): Likewise.
8746 (expand_builtin_strlen): Adjust.
8747 (expand_builtin_memcpy): Likewise.
8748 (expand_builtin_mempcpy_args): Likewise.
8749 (expand_builtin_strncpy): Likewise.
8750 (expand_builtin_memset_args): Likewise.
8751 (expand_builtin_memcmp): Likewise.
8752 (expand_builtin_strcmp): Likewise.
8753 (expand_builtin_strncmp): Likewise.
8754 (get_builtin_sync_mem): Likewise.
8755 (fold_builtin_memset): Likewise.
8756 (fold_builtin_memory_op): Likewise.
8757 (expand_builtin_memory_chk): Likewise.
8758 * emit-rtl.c (get_mem_align_offset): Likewise.
8759 (set_mem_attributes_minus_bitpos): Likewise.
8760 * expr.c (expand_assignment): Likewise.
8761 (expand_expr_real_1): Likewise.
8762 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
8763 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
8764 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
8765 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
8766 * value-prof.c (gimple_stringops_transform): Likewise.
8768 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
8770 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
8771 * doc/tm.texi: Regenerate.
8773 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
8776 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
8777 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
8778 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
8779 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
8780 shift target is unused.
8782 2011-08-10 Richard Guenther <rguenther@suse.de>
8784 PR tree-optimization/49937
8785 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
8786 using get_object_alignment_1.
8788 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
8790 * config/i386/i386.c (ix86_emit_i387_round): New function.
8791 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
8792 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
8793 Use ix86_emit_i387_round to expand round function for i387 math.
8794 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
8795 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
8797 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8799 * config/sync.c: Move to ../libgcc.
8800 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
8801 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
8804 2011-08-09 Anatoly Sokolov <aesok@post.ru>
8806 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
8807 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
8808 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
8809 Change 'from' and 'to' arguments type to reg_class_t.
8810 (TARGET_REGISTER_MOVE_COST): Define.
8812 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
8816 PR rtl-optimization/49990
8817 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
8818 ignore classes which can not change mode.
8819 (find_costs_and_classes): Ditto.
8821 2011-08-09 Richard Guenther <rguenther@suse.de>
8823 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
8824 information for ranges with only negative values.
8825 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
8826 BIT_AND_EXPR handling to handle ranges with negative values.
8828 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
8830 * config/i386/i386.c: Remove traling spaces.
8831 * config/i386/sse.md: Likewise.
8832 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
8833 (*fma_fmsub_<mode>): Likewise.
8834 (*fma_fnmadd_<mode>): Likewise.
8835 (*fma_fnmsub_<mode>): Likewise.
8837 2011-08-09 Nick Clifton <nickc@redhat.com>
8839 * config/rx/rx.md: Disable extender peepholes at -O3.
8841 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
8844 * config/i386/i386.md (reload_noff_load): New.
8845 (reload_noff_store): Ditto.
8846 * config/i386/i386.c (ix86_secondary_reload): Use
8847 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
8848 double-word moves from/to non-offsetable addresses instead of
8849 generating XMM temporary.
8851 2011-08-09 Anatoly Sokolov <aesok@post.ru>
8853 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
8855 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
8857 PR tree-optimization/50014
8858 * tree-vect-loop.c (vectorizable_reduction): Get def type before
8859 calling vect_get_vec_def_for_stmt_copy ().
8861 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
8863 PR rtl-optimization/49990
8864 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
8865 ignore classes which can not change mode.
8866 (find_costs_and_classes): Ditto.
8868 2011-08-08 Richard Henderson <rth@redhat.com>
8871 * config/i386/i386.c (ix86_expand_prologue): Call
8872 for SEH target gen_prologue_use instead of gen_blockage
8875 2011-08-08 Martin Jambor <mjambor@suse.cz>
8878 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
8881 2011-08-08 Diego Novillo <dnovillo@google.com>
8883 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
8884 (DATA_STREAMER_H): New.
8885 (GIMPLE_STREAMER_H): New.
8886 (TREE_STREAMER_H): New.
8887 (STREAMER_HOOKS_H): New.
8888 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
8889 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
8890 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
8891 (data-streamer.o): New.
8892 (data-streamer-in.o): New.
8893 (data-streamer-out.o): New.
8894 (gimple-streamer-in.o): New.
8895 (gimple-streamer-out.o): New.
8896 (streamer-hooks.o): New.
8897 (tree-streamer.o): New.
8898 (tree-streamer-in.o): New.
8899 (tree-streamer-out.o): New.
8900 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
8901 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
8902 GIMPLE_STREAMER_H and TREE_STREAMER_H.
8903 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
8904 GIMPLE_STREAMER_H and TREE_STREAMER_H.
8905 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
8906 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
8907 (ipa-inline-analysis.o): Likewise.
8908 (ipa-pure-const.o): Likewise.
8909 * data-streamer-in.c: New.
8910 * data-streamer-out.c: New.
8911 * data-streamer.c: New.
8912 * data-streamer.h: New.
8913 * gimple-streamer-in.c: New.
8914 * gimple-streamer-out.c: New.
8915 * gimple-streamer.h: New.
8916 * ipa-inline-analysis.c: Include data-streamer.h.
8917 * ipa-prop.c: Include data-streamer.h.
8918 * ipa-pure-const.c: Include data-streamer.h.
8919 * lto-cgraph.c: Include data-streamer.h.
8920 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
8921 (lto_input_widest_uint_uleb128): Likewise.
8922 (lto_input_sleb128): Likewise.
8923 (bp_unpack_var_len_unsigned): Likewise.
8924 (bp_unpack_var_len_int): Likewise.
8925 * lto-section-out.c (lto_output_uleb128_stream): Move to
8926 data-streamer-out.c.
8927 (lto_output_widest_uint_uleb128_stream): Likewise.
8928 (lto_output_sleb128_stream): Likewise.
8929 (bp_pack_var_len_unsigned): Likewise.
8930 (bp_pack_var_len_int): Likewise.
8931 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
8932 (struct string_slot): Remove. Update all users.
8933 (lto_tag_check_set): Make extern.
8934 (lto_tag_check_range): Move to lto-streamer.h.
8935 (lto_tag_check): Likewise.
8936 (hash_string_slot_node): Remove. Update all users.
8937 (eq_string_slot_node): Remove. Update all users.
8938 (string_for_index): Move to data-streamer-in.c
8939 (input_string_internal): Likewise.
8940 (input_string_cst): Move to tree-streamer-in.c.
8941 (input_identifier): Likewise.
8942 (lto_input_string): Move to data-streamer-in.c
8943 (input_record_start): Move to data-streamer.h
8944 (canon_file_name): Use new definition of struct string_slot
8945 from data-streamer.h. Set S_SLOT.LEN.
8946 (lto_input_location): Make extern.
8947 (lto_input_chain): Move to tree-streamer-in.c.
8948 (lto_init_eh): Make extern.
8949 (input_phi): Move to gimple-streamer-in.c.
8950 (input_gimple_stmt): Likewise.
8951 (input_bb): Likewise.
8952 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
8953 (unpack_ts_real_cst_value_fields): Likewise.
8954 (unpack_ts_fixed_cst_value_fields): Likewise.
8955 (unpack_ts_decl_common_value_fields): Likewise.
8956 (unpack_ts_decl_wrtl_value_fields): Likewise.
8957 (unpack_ts_decl_with_vis_value_fields): Likewise.
8958 (unpack_ts_function_decl_value_fields): Likewise.
8959 (unpack_ts_type_common_value_fields): Likewise.
8960 (unpack_ts_block_value_fields): Likewise.
8961 (unpack_ts_translation_unit_decl_value_fields): Likewise.
8962 (unpack_value_fields): Likewise.
8963 (lto_materialize_tree): Likewise.
8964 (lto_input_ts_common_tree_pointers): Likewise.
8965 (lto_input_ts_vector_tree_pointers): Likewise.
8966 (lto_input_ts_complex_tree_pointers): Likewise.
8967 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
8968 (lto_input_ts_decl_common_tree_pointers): Likewise.
8969 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
8970 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
8971 (lto_input_ts_field_decl_tree_pointers): Likewise.
8972 (lto_input_ts_function_decl_tree_pointers): Likewise.
8973 (lto_input_ts_type_common_tree_pointers): Likewise.
8974 (lto_input_ts_type_non_common_tree_pointers): Likewise.
8975 (lto_input_ts_list_tree_pointers): Likewise.
8976 (lto_input_ts_vec_tree_pointers): Likewise.
8977 (lto_input_ts_exp_tree_pointers): Likewise.
8978 (lto_input_ts_block_tree_pointers): Likewise.
8979 (lto_input_ts_binfo_tree_pointers): Likewise.
8980 (lto_input_ts_constructor_tree_pointers): Likewise.
8981 (lto_input_ts_target_option): Likewise.
8982 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
8983 (lto_input_tree_pointers): Likewise.
8984 (lto_get_pickled_tree): Likewise.
8985 (lto_get_builtin_tree): Likewise.
8986 (lto_read_tree): Likewise.
8987 (lto_input_integer_cst): Likewise.
8988 (lto_input_tree): Likewise.
8989 * lto-streamer-out.c: Include data-streamer.h,
8990 gimple-streamer.h and streamer-hooks.h.
8991 (struct string_slot): Move to data-streamer.h.
8992 (hash_string_slot_node): Likewise.
8993 (eq_string_slot_node): Likewise.
8994 (lto_string_index): Move to data-streamer-out.c.
8995 (lto_output_string_with_length): Likewise.
8996 (lto_output_string): Likewise.
8997 (output_string_cst): Move to tree-streamer-out.c.
8998 (output_identifier): Likewise.
8999 (output_zero): Move to data-streamer-out.c
9000 (output_uleb128): Likewise.
9001 (output_sleb128): Likewise.
9002 (output_record_start): Move to data-streamer.h
9003 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
9004 (pack_ts_real_cst_value_fields): Likewise.
9005 (pack_ts_fixed_cst_value_fields): Likewise.
9006 (pack_ts_decl_common_value_fields): Likewise.
9007 (pack_ts_decl_wrtl_value_fields): Likewise.
9008 (pack_ts_decl_with_vis_value_fields): Likewise.
9009 (pack_ts_function_decl_value_fields): Likewise.
9010 (pack_ts_type_common_value_fields): Likewise.
9011 (pack_ts_block_value_fields): Likewise.
9012 (pack_ts_translation_unit_decl_value_fields): Likewise.
9013 (pack_value_fields): Likewise.
9014 (lto_output_chain): Likewise.
9015 (lto_output_ts_common_tree_pointers): Likewise.
9016 (lto_output_ts_vector_tree_pointers): Likewise.
9017 (lto_output_ts_complex_tree_pointers): Likewise.
9018 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
9019 (lto_output_ts_decl_common_tree_pointers): Likewise.
9020 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
9021 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
9022 (lto_output_ts_field_decl_tree_pointers): Likewise.
9023 (lto_output_ts_function_decl_tree_pointers): Likewise.
9024 (lto_output_ts_type_common_tree_pointers): Likewise.
9025 (lto_output_ts_type_non_common_tree_pointers): Likewise.
9026 (lto_output_ts_list_tree_pointers): Likewise.
9027 (lto_output_ts_vec_tree_pointers): Likewise.
9028 (lto_output_ts_exp_tree_pointers): Likewise.
9029 (lto_output_ts_block_tree_pointers): Likewise.
9030 (lto_output_ts_binfo_tree_pointers): Likewise.
9031 (lto_output_ts_constructor_tree_pointers): Likewise.
9032 (lto_output_ts_target_option): Likewise.
9033 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
9034 (lto_output_tree_pointers): Likewise.
9035 (lto_output_tree_header): Likewise.
9036 (lto_output_builtin_tree): Likewise.
9037 (lto_write_tree): Likewise.
9038 (lto_output_integer_cst): Likewise.
9039 (lto_output_tree): Likewise.
9040 (output_phi): Move to gimple-streamer-out.c.
9041 (output_gimple_stmt): Likewise.
9042 (output_bb): Likewise.
9043 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
9044 (streamer_hooks): Move to streamer-hooks.c.
9045 (check_handled_ts_structures): Move to tree-streamer.c
9046 (lto_streamer_cache_add_to_node_array): Likewise.
9047 (lto_streamer_cache_insert_1): Likewise.
9048 (lto_streamer_cache_insert): Likewise.
9049 (lto_streamer_cache_insert_at): Likewise.
9050 (lto_streamer_cache_append): Likewise.
9051 (lto_streamer_cache_lookup): Likewise.
9052 (lto_streamer_cache_get): Likewise.
9053 (lto_record_common_node): Likewise.
9054 (lto_preload_common_nodes): Likewise.
9055 (lto_streamer_cache_create): Likewise.
9056 (lto_streamer_cache_delete): Likewise.
9057 (streamer_hooks_init): Move to streamer-hooks.c.
9058 * lto-streamer.h: Include diagnostic.h
9059 (struct output_block, struct lto_input_block,
9060 struct data_in, struct bitpack_d): Remove forward declarations.
9061 (struct bitpack_d): Move to data-streamer.h.
9062 (struct lto_streamer_cache_d): Move to tree-streamer.h.
9063 (struct streamer_hooks): Move to streamer-hooks.h.
9064 (bp_pack_var_len_unsigned): Move to data-streamer.h.
9065 (bp_pack_var_len_int): Likewise.
9066 (bp_unpack_var_len_unsigned): Likewise.
9067 (bp_unpack_var_len_int): Likewise.
9068 (lto_input_location): Declare.
9069 (lto_tag_check_set): Declare.
9070 (lto_init_eh): Declare.
9071 (lto_output_tree_ref): Declare.
9072 (lto_output_location): Declare.
9073 (bitpack_create): Move to data-streamer.h.
9074 (bp_pack_value): Likewise.
9075 (lto_output_bitpack): Likewise.
9076 (lto_input_bitpack): Likewise.
9077 (bp_unpack_value): Likewise.
9078 (lto_output_1_stream): Likewise.
9079 (lto_input_1_unsigned): Likewise.
9080 (lto_output_int_in_range): Likewise.
9081 (lto_input_int_in_range): Likewise.
9082 (bp_pack_int_in_range): Likewise.
9083 (bp_unpack_int_in_range): Likewise.
9084 (lto_output_enum): Likewise.
9085 (lto_input_enum): Likewise.
9086 (bp_pack_enum): Likewise.
9087 (bp_unpack_enum): Likewise.
9088 * streamer-hooks.c: New.
9089 * streamer-hooks.h: New.
9090 * tree-streamer-in.c: New.
9091 * tree-streamer-out.c: New.
9092 * tree-streamer.c: New.
9093 * tree-streamer.h: New.
9095 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9097 * gthr-posix95.h: Remove.
9098 * gthr.h [_PTHREADS95]: Remove.
9099 * configure.ac (enable_threads): Remove posix95.
9100 * configure: Regenerate.
9101 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
9103 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
9106 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
9108 (ix86_print_operand_address): Handle zero-extended addresses.
9109 (memory_address_length): Add length of addr32 prefix for
9110 zero-extended addresses.
9111 (ix86_secondary_reload): Handle moves to/from double-word general
9112 registers from/to zero-extended addresses.
9113 * config/i386/predicates.md (lea_address_operand): Reject
9114 zero-extended operands.
9116 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
9119 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
9121 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
9122 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
9124 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
9125 (_Unwind_Context_Reg_Val): Likewise.
9126 (_Unwind_Get_Unwind_Word): Likewise.
9127 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
9128 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
9129 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
9130 for EXTENDED_CONTEXT_BIT.
9131 (__frame_state_for): Likewise.
9132 (uw_init_context_1): Likewise.
9133 (_Unwind_GetGR): Updated.
9134 (_Unwind_SetGR): Likewise.
9135 (_Unwind_GetGRPtr): Likewise.
9136 (_Unwind_SetGRPtr): Likewise.
9137 (_Unwind_SetGRValue): Likewise.
9138 (_Unwind_GRByValue): Likewise.
9139 (uw_install_context_1): Likewise.
9141 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
9142 ASSUME_EXTENDED_UNWIND_CONTEXT.
9143 * doc/tm.texi: Regenerated.
9145 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9147 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
9149 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9151 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
9153 (DEC Alpha Options, -mtune): Likewise.
9154 (MIPS Options, -march): native is supported on IRIX.
9156 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9158 * config/sparc/driver-sparc.c: New file.
9159 * config/sparc/x-sparc: New file.
9160 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
9161 * config/sparc/sparc.opt (native): New value for enum processor_type.
9162 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
9163 * config/sparc/sparc.c (sparc_option_override): Abort if
9164 PROCESSOR_NATIVE gets here.
9165 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
9166 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
9167 DRIVER_SELF_SPECS): Define.
9168 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
9169 (SPARC Options, -mtune): Likewise.
9170 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
9172 * configure: Regenerate.
9173 * Makefile.in (EXTRA_GCC_LIBS): Set.
9174 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
9175 (cpp$(exeext)): Likewise.
9177 2011-08-08 Richard Guenther <rguenther@suse.de>
9179 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
9181 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
9184 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
9186 PR tree-optimization/50005
9187 * ipa-inline-analysis (remap_predicate): Add cast to
9188 silence signed/unsigned comparison warning.
9190 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
9192 * modulo-sched.c (get_sched_window): Use a table for the debug output.
9193 Print the current ii.
9194 (sms_schedule_by_order): Reduce whitespace in dump line.
9196 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
9198 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
9199 and one loop for successors. Fix upper bound of memory range.
9201 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
9204 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
9205 (TARGET_INSTANTIATE_DECLS): New define.
9207 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
9208 Mikael Morin <mikael.morin@sfr.fr>
9210 * Makefile.in (INCLUDES_FOR_TARGET): New.
9211 (LIBGCC2_CFLAGS): Use it.
9212 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
9214 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
9216 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
9217 frame->save_regs_using_mov calculation.
9219 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
9221 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
9222 * config/i386/sse.md (castmode): New mode attribute.
9223 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
9224 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
9226 2011-08-05 Jan Hubicka <jh@suse.cz>
9229 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
9231 2011-08-05 Jan Hubicka <jh@suse.cz>
9234 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
9236 (create_emultls_var):New function.
9237 (ipa_lower_emutls): Handle aliases correctly.
9239 2011-08-05 Jan Hubicka <jh@suse.cz>
9242 * ipa-inline.c (recursive_inlining): Look through aliases.
9244 2011-08-05 Jason Merrill <jason@redhat.com>
9246 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
9247 declarations to beginning of function.
9249 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
9251 PR rtl-optimization/49900
9252 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
9253 ensure basic blocks stay in the same order.
9255 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
9257 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
9259 (s390_expand_atomic): Same.
9261 2011-08-05 Richard Henderson <rth@redhat.com>
9264 * dwarf2cfi.c (scan_insn_after): Split out of ...
9265 (scan_trace): ... here. Correctly place notes wrt sequences.
9267 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
9268 Richard Henderson <rth@redhat.com>
9271 * expr.c (fixup_args_size_notes): Look through no-op moves.
9273 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
9275 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
9276 of "m" for operand 0. Add type and mode attribute.
9277 (*pushxf_nointeger"): Use "<" constraint for operand 0.
9278 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
9279 constraint instead of "o" for opreand 1.
9280 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
9281 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
9282 operand 0, alternative 4.
9283 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
9285 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
9287 * config/i386/predicates.md (lea_address_operand): Rename from
9288 no_seg_address_operand.
9289 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
9290 (*lea_1_zext): Ditto.
9292 (*lea_2_zext): Ditto.
9294 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
9296 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
9297 parts.base and parts.index.
9298 * config/i386/predicates.md (aligned_operand): Ditto.
9299 (cmpxchg8b_pic_memory_operand): Ditto.
9301 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9303 * config/soft-fp: Move to ../libgcc.
9304 * Makefile.in (SFP_MACHINE): Remove.
9305 (libgcc-support): Remove $(SFP_MACHINE) dependency.
9306 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
9307 * config/arm/t-arm-softfp: Move to
9308 ../libgcc/config/arm/t-softfp.
9309 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
9310 * config/c6x/t-c6x-softfp: Remove.
9311 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
9312 * config/i386/t-fprules-softfp: Move to
9313 ../libgcc/config/t-softfp-tf.
9314 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
9315 * config/ia64/t-fprules-softfp: Remove.
9316 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
9317 * config/lm32/t-fprules-softfp: Remove.
9318 * config/moxie/sfp-machine.h: Remove.
9319 * config/moxie/t-moxie-softfp: Remove.
9320 * config/rs6000/darwin-ldouble-format: Move to
9321 ../libgcc/config/rs6000/ibm-ldouble-format.
9322 * config/rs6000/darwin-ldouble.c: Move to
9323 ../libgcc/config/rs6000/ibm-ldouble.c
9324 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
9325 * config/rs6000/libgcc-ppc64.ver: Likewise.
9326 * config/rs6000/sfp-machine.h: Likewise.
9327 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
9328 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
9329 (LIB2FUNCS_EXTRA): Remove.
9330 (TARGET_LIBGCC2_CFLAGS): Remove.
9331 * config/rs6000/t-aix52: Likewise
9332 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
9333 $(srcdir)/config/rs6000/darwin-ldouble.c.
9334 (SHLIB_MAPFILES): Remove.
9335 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
9336 $(srcdir)/config/rs6000/darwin-ldouble.c.
9337 * config/rs6000/t-fprules-softfp: Move to
9338 ../libgcc/config/t-softfp-sfdf.
9339 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
9340 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
9341 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
9342 $(srcdir)/config/rs6000/darwin-ldouble.c.
9343 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
9344 * config/score/t-score-softfp: Remove.
9345 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
9346 soft-fp/t-softfp from tmake_file.
9347 (arm*-*-uclinux*): Likewise.
9348 (arm*-*-ecos-elf): Likewise.
9349 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
9350 (arm*-*-rtems*): Likewise.
9351 (arm*-*-elf): Likewise.
9352 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
9354 (moxie-*-uclinux*): Likewise.
9355 (moxie-*-rtems*): Likewise.
9356 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
9358 (lm32-*-rtems*): Likewise.
9359 (lm32-*-uclinux*): Likewise.
9360 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
9361 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
9362 (powerpc-*-linux*, powerpc64-*-linux*): Remove
9363 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
9364 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
9366 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
9368 (tic6x-*-uclinux): Likewise.
9369 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
9370 soft-fp/t-softfp from tmake_file.
9371 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
9372 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
9373 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
9374 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
9375 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
9377 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9379 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
9380 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
9381 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
9383 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
9384 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
9386 * config/arm/t-vxworks: Likewise.
9387 * config/arm/t-wince-pe: Likewise.
9388 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
9389 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9390 * config/bfin/t-bfin-elf: Likewise.
9391 * config/bfin/t-bfin-linux: Likewise.
9392 * config/bfin/t-bfin-uclinux: Likewise.
9393 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
9395 * config/fr30/t-fr30: Likewise.
9396 * config/frv/t-frv: Likewise.
9397 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
9398 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9399 * config/m32c/t-m32c: Likewise.
9400 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
9401 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9402 * config/mcore/t-mcore: Likewise.
9403 * config/mep/t-mep: Likewise.
9404 * config/microblaze/t-microblaze: Likewise.
9405 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
9406 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9407 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
9408 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9409 * config/mn10300/t-linux: Remove.
9410 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9411 * config/pdp11/t-pdp11: Likewise.
9412 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
9413 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
9414 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9415 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
9416 * config/rs6000/t-aix52: Likewise.
9417 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
9418 $(srcdir)/config/rs6000/ppc64-fp.c.
9419 * config/rs6000/t-fprules-fpbit: Remove.
9420 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
9421 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9422 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
9423 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9424 * config/sparc/t-elf: Likewise.
9425 * config/sparc/t-leon: Likewise.
9426 * config/sparc/t-leon3: Likewise.
9427 * config/spu/t-spu-elf: Likewise.
9428 (DPBIT_FUNCS): Remove.
9429 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
9430 * config/v850/t-v850: Likewise.
9431 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
9432 (avr-*-*): Likewise.
9433 (h8300-*-rtems*): Set libgcc_tm_file.
9434 (h8300-*-elf*): Likewise.
9435 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
9437 (powerpc-*-eabisim*): Likewise.
9438 (powerpc-*-elf*): Likewise.
9439 (powerpc-*-eabialtivec*): Likewise.
9440 (powerpc-xilinx-eabi*): Likewise.
9441 (powerpc-*-eabi*): Likewise.
9442 (powerpc-*-rtems*): Likewise.
9443 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
9444 (powerpcle-*-elf*): Likewise.
9445 (powerpcle-*-eabisim*): Likewise.
9446 (powerpcle-*-eabi*): Likewise.
9447 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
9448 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
9449 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
9452 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9454 * Makefile.in (UNWIND_H): Remove.
9455 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
9456 ../libgcc/Makefile.in.
9457 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
9458 (LIBUNWINDDEP): Remove.
9459 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
9460 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
9461 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
9462 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
9463 Don't copy $(UNWIND_H).
9464 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
9465 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
9466 * aclocal.m4: Regenerate.
9467 * configure: Regenerate.
9468 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
9469 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
9470 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
9471 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
9472 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
9473 * config/arm/libunwind.S, config/arm/pr-support.c,
9474 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
9475 ../libgcc/config/arm.
9476 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
9477 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
9478 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
9479 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
9480 ($(T)frvend$(objext)): Likewise.
9481 * config/ia64/t-glibc (LIB2ADDEH): Remove.
9482 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
9483 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
9484 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
9485 ../libgcc/config/ia64.
9486 * config/ia64/t-hpux (LIB2ADDEH): Remove.
9487 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
9488 * config/ia64/t-vms (LIB2ADDEH): Remove.
9489 * config/ia64/vms.h (UNW_IVMS_MODE,
9490 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
9491 * config/picochip/t-picochip (LIB2ADDEH): Remove.
9492 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
9493 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
9494 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
9495 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
9496 $(srcdir)/../libgcc to refer to unwinder sources.
9497 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
9498 * config/t-darwin (LIB2ADDEH): Remove.
9499 * config/t-freebsd (LIB2ADDEH): Remove.
9500 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
9501 * config/t-libunwind-elf: Move to ../libgcc/config.
9502 * config/t-linux (LIB2ADDEH): Remove.
9503 * config/t-sol2 (LIB2ADDEH): Remove.
9504 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
9505 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
9507 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
9509 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
9511 * doc/invoke.texi: Document core-avx-i.
9513 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9515 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
9517 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
9519 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
9520 result of multiple results reduction when extracting the final
9521 value using scalar code.
9523 2011-08-05 Richard Guenther <rguenther@suse.de>
9525 PR tree-optimization/49984
9526 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
9528 2011-08-05 Richard Guenther <rguenther@suse.de>
9530 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
9531 return true for constant integer ranges.
9532 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
9533 BIT_IOR_EXPR handling.
9535 2011-08-04 Kai Tietz <ktietz@redhat.com>
9537 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
9538 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
9540 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
9542 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
9543 pattern def statement, and its access macro.
9544 (NUM_PATTERNS): Set to 5.
9545 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
9546 pattern def statement.
9547 (vect_transform_loop): Likewise.
9548 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
9549 function vect_recog_over_widening_pattern ().
9550 (vect_operation_fits_smaller_type): New function.
9551 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
9553 (vect_pattern_recog_1): Move the code that marks pattern
9554 statements to vect_mark_pattern_stmts (), and call it. Update
9556 * tree-vect-stmts.c (vect_supportable_shift): New function.
9557 (vect_analyze_stmt): Handle pattern def statement.
9558 (new_stmt_vec_info): Initialize pattern def statement.
9560 2011-08-04 Richard Henderson <rth@redhat.com>
9563 * config/i386/i386.c (ix86_expand_call): Don't create nested
9564 PARALLELs for TARGET_VZEROUPPER.
9565 (ix86_split_call_vzeroupper): Fix extraction of the original call.
9566 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
9567 recognize nested PARALLELs.
9568 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
9569 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
9570 *sibcall_value_pop_vzeroupper): Likewise.
9572 2011-08-04 Richard Henderson <rth@redhat.com>
9575 * calls.c (expand_call): Use fixup_args_size_notes for
9577 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
9578 in non-standard modes.
9580 2011-08-04 Jakub Jelinek <jakub@redhat.com>
9582 * gcc.c (self_spec): New variable.
9583 (static_specs): Add self_spec.
9584 (main): Call do_self_spec on "self_spec" specs after reading
9585 user specs files. Move compare_debug handling right after that.
9587 2011-08-04 Richard Guenther <rguenther@suse.de>
9589 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
9590 (value_range_nonnegative_p): New function.
9591 (ssa_name_nonnegative_p): Use it.
9592 (value_range_constant_singleton): New function.
9593 (op_with_constant_singleton_value_range): Use it.
9594 (extract_range_from_binary_expr_1): New function, split out from ...
9595 (extract_range_from_binary_expr): ... this. Remove fallback
9596 constant folding done here.
9598 2011-08-04 Richard Guenther <rguenther@suse.de>
9600 PR tree-optimization/49806
9601 * tree-vrp.c (op_with_boolean_value_range_p): New function.
9602 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
9603 a new statement for a final conversion to bool.
9605 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
9607 * gengtype-state.c: Include "bconfig.h" if
9608 GENERATOR_FILE is defined, "config.h" otherwise.
9609 * gengtype.c: Likewise.
9610 * gengtype-lex.l: Likewise.
9611 * gengtype-parse.c: Likewise.
9612 * Makefile.in (gengtype-lex.o-warn): New variable.
9613 (plugin_resourcesdir): Likewise.
9614 (plugin_bindir): Likewise.
9615 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
9616 (MOSTLYCLEANFILES): Add gengtype$(exeext).
9617 (native): Depend on gengtype$(exeext) is $enable_plugin
9619 (gtype.state): Depend on s-gtype. Use temporary file.
9620 (gengtype-lex.o): New rule.
9621 (gengtype-parse.o): Likewise.
9622 (gengtype-state.o): Likewise.
9623 (gengtype$(exeext)): Likewise.
9624 (install-gengtype): Likewise.
9625 (gengtype.o): Likewise.
9626 (build/gengtype.o): Depend on version.h.
9627 (build/gengtype-state): Depend on double-int.h, version.h,
9628 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
9629 (install-plugin): Depend on install-gengtype.
9631 2011-08-04 Jakub Jelinek <jakub@redhat.com>
9634 * tree.h (init_attributes): New prototype.
9635 * attribs.c (init_attributes): No longer static.
9637 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9639 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
9642 2011-08-03 David Li <davidxl@google.com>
9644 * tree-optimize.c (execute_fixup_cfg): Fix up entry
9645 outgoing edge counts after inlining.
9647 2011-08-03 David Li <davidxl@google.com>
9649 * profile.c (compute_branch_probabilities): Compute
9650 function frequency after profile annotation.
9652 2011-08-04 Alan Modra <amodra@gmail.com>
9654 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
9655 use_backchain_to_restore_sp initialisation.
9656 (rs6000_legitimate_offset_address_p): Simplify offset test.
9658 2011-08-03 Richard Henderson <rth@redhat.com>
9660 * config/spu/spu.md: Use define_c_enum instead of define_constants.
9661 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
9664 2011-08-03 Richard Henderson <rth@redhat.com>
9667 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
9669 2011-08-03 Jakub Jelinek <jakub@redhat.com>
9671 PR tree-optimization/49948
9672 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
9674 2011-08-03 Anatoly Sokolov <aesok@post.ru>
9676 * config/m32c/m32c.c (class_sizes): Remove.
9677 (reduce_class): Change arguments and return type to reg_class_t.
9678 Change type cc var to HARD_REG_SET. Change type best var to
9679 reg_class_t. Change type best_size var to unsigned int. Remove
9680 initialization class_sizes var. Use reg_class_size array instead
9681 of class_sizes. Use reg_class_contents array instead
9684 2011-08-03 Richard Guenther <rguenther@suse.de>
9687 * fold-const.c (fold_binary_loc): Only associate
9688 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
9691 2011-08-03 Alan Modra <amodra@gmail.com>
9693 PR rtl-optimization/49941
9694 * jump.c (mark_jump_label): Comment.
9695 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
9696 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
9697 (mark_used_flags): Don't mark RETURN.
9699 2011-08-03 Richard Guenther <rguenther@suse.de>
9701 PR tree-optimization/49938
9702 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
9703 deal with a POLYNOMIAL_CHREC.
9705 2011-08-03 Revital Eres <revital.eres@linaro.org>
9707 * modulo-sched.c (calculate_stage_count,
9708 calculate_must_precede_follow, get_sched_window,
9709 try_scheduling_node_in_cycle, remove_node_from_ps): Add
9711 (update_node_sched_params, set_must_precede_follow, optimize_sc):
9713 (reset_sched_times): Call update_node_sched_params.
9714 (sms_schedule): Call optimize_sc.
9715 (get_sched_window): Change function arguments.
9716 (sms_schedule_by_order): Update call to get_sched_window.
9717 Call set_must_precede_follow.
9718 (calculate_stage_count): Add function argument.
9720 2011-08-02 Richard Henderson <rth@redhat.com>
9724 * reg-notes.def (REG_ARGS_SIZE): New.
9725 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
9726 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
9727 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
9728 different stack levels.
9729 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
9730 (maybe_move_args_size_note): New.
9731 (combine_stack_adjustments_for_block): Use it.
9732 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
9733 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
9734 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
9735 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
9737 (queued_args_size): Remove.
9738 (add_cfi_args_size): Assert size is non-negative.
9739 (stack_adjust_offset, dwarf2out_args_size): Remove.
9740 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
9741 (notice_args_size, notice_eh_throw): New.
9742 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
9743 (dwarf2out_frame_debug_adjust_cfa): Likewise.
9744 (dwarf2out_frame_debug_cfa_offset): Likewise.
9745 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
9746 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
9747 (change_cfi_row): Don't emit args_size.
9748 (maybe_record_trace_start_abnormal): Split out from ...
9749 (maybe_record_trace_start): Here. Set args_size_undefined.
9750 (create_trace_edges): Update to match.
9751 (scan_trace): Handle REG_ARGS_SIZE.
9752 (connect_traces): Connect args_size between EH insns.
9753 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
9754 * explow.c (suppress_reg_args_size): New.
9755 (adjust_stack_1): Split out from ...
9756 (adjust_stack): ... here.
9757 (anti_adjust_stack): Use it.
9758 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
9759 * expr.c (mem_autoinc_base): New.
9760 (fixup_args_size_notes): New.
9761 (emit_single_push_insn_1): Rename from emit_single_push_insn.
9762 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
9763 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
9764 * reload1.c (reload_as_needed): Likewise.
9765 * rtl.h (fixup_args_size_notes): Declare.
9767 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
9770 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
9772 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
9773 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
9775 2011-08-02 Richard Henderson <rth@redhat.com>
9777 * config/h8300/h8300.c (push, pop): Return the insn.
9778 (h8300_swap_into_er6): Generate correct unwind info.
9779 (h8300_swap_out_of_er6): Likewise.
9780 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
9781 complex cfa expression.
9782 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
9784 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
9786 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
9788 2011-08-02 Richard Henderson <rth@redhat.com>
9791 * config/h8300/h8300.c (h8300_move_ok): New.
9792 * config/h8300/h8300-protos.h: Declare it.
9793 * config/h8300/h8300.md (P): New mode iterator.
9794 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
9795 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
9796 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
9797 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
9798 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
9799 and pushqi1_h8300hs_normal; use PRE_MODIFY and
9800 register_no_sp_elim_operand.
9801 (*pushhi1_h8300hs_<P>): Similarly.
9802 (pushqi1, pushhi1, pushhi1_h8300): Remove.
9803 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
9805 2011-08-02 Richard Henderson <rth@redhat.com>
9808 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
9810 2011-08-02 Jakub Jelinek <jakub@redhat.com>
9812 * c-parser.c (enum c_parser_prec): New enum, moved from within
9813 c_parser_binary_expression.
9814 (c_parser_binary_expression): Add PREC argument. Stop parsing
9815 if operator has lower or equal precedence than PREC.
9816 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
9818 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
9819 Adjust c_finish_omp_atomic caller.
9820 (c_parser_omp_taskyield): New function.
9821 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
9822 (c_parser_omp_clause_name): Handle final and mergeable clauses.
9823 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
9825 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
9826 and PRAGMA_OMP_CLAUSE_MERGEABLE.
9827 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
9828 (c_parser_omp_clause_reduction): Handle min and max.
9829 * c-typeck.c (c_finish_omp_clauses): Don't complain about
9830 const qualified predetermined vars in firstprivate clause.
9831 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
9832 Handle MIN_EXPR and MAX_EXPR.
9833 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
9834 and OMP_CLAUSE_MERGEABLE.
9835 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
9836 and OMP_ATOMIC_CAPTURE_NEW.
9837 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
9838 OMP_CLAUSE_MERGEABLE.
9839 (omp_clause_code_name): Likewise.
9840 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
9841 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
9842 and OMP_CLAUSE_MERGEABLE.
9843 (OMP_CLAUSE_FINAL_EXPR): Define.
9844 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
9845 OMP_CLAUSE_MERGEABLE.
9846 (expand_task_call): Likewise.
9847 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
9848 (expand_omp_atomic_fetch_op): Handle cases where old or new
9849 value is needed afterwards.
9850 (expand_omp_atomic): Call expand_omp_atomic_load resp.
9851 expand_omp_atomic_store.
9852 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
9853 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
9854 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
9855 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
9856 * tree-nested.c (convert_nonlocal_omp_clauses,
9857 convert_local_omp_clauses): Likewise.
9858 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
9859 OMP_ATOMIC_CAPTURE_NEW): New.
9860 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
9861 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
9863 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
9864 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
9865 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
9867 2011-08-02 Kai Tietz <ktietz@redhat.com>
9869 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
9871 (ssa_forward_propagate_and_combine): Interprete result of
9872 forward_propagate_comparison.
9873 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
9874 boolean-typed operands for comparisons.
9876 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
9878 * config/avr/libgcc.S: Gather related function in the
9880 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
9881 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
9883 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
9884 __udivmodsi4, __divmodsi4, __prologue_saves__,
9885 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
9886 __do_copy_data, __do_clear_bss, __do_global_ctors,
9887 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
9889 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
9892 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
9893 (stack_protect_test): The pattern compares ptr_mode value.
9895 2011-08-02 Alan Modra <amodra@gmail.com>
9897 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
9898 note for save_LR_around_toc_setup sequence.
9900 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
9902 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
9904 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
9905 Joseph Myers <joseph@codesourcery.com>
9907 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
9908 * hwint.c: Include diagnostic-core.h.
9910 (gcd): Moved here...
9913 (least_common_multiple): Moved here...
9914 * hwint.h (gcd): ... from here.
9915 (least_common_multiple): ... from here.
9916 (HOST_WIDE_INT_MIN): New.
9917 (HOST_WIDE_INT_MAX): New.
9918 (abs_hwi): Declared.
9920 (pos_mul_hwi): Declared.
9921 (mul_hwi): Declared.
9922 (least_common_multiple): Declared.
9923 * omega.c (check_pos_mul): Removed.
9924 (check_mul): Removed.
9925 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
9926 mul_hwi instead of check_mul.
9928 2011-08-01 Richard Henderson <rth@redhat.com>
9931 * config/avr/avr.h (PUSH_ROUNDING): New.
9932 * config/avr/avr.md (pushqi1): Rename from *pushqi.
9933 (*pushhi, *pushsi, *pushsf): Remove.
9934 (MPUSH): New mode iterator.
9935 (push<MPUSH>1): New expander.
9937 2011-08-01 Anatoly Sokolov <aesok@post.ru>
9939 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
9940 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
9941 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
9942 mmix_preferred_output_reload_class): Remove.
9943 * config/mmix/mmix.c (mmix_preferred_reload_class,
9944 mmix_preferred_output_reload_class): Make static. Change rclass
9945 argument and return type to reg_class_t.
9946 (TARGET_PREFERRED_RELOAD_CLASS,
9947 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9949 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
9951 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
9954 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
9957 * config/i386/i386.md (PTR): New.
9958 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
9959 (stack_protect_test): Likewise.
9960 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
9961 (stack_tls_protect_set_<mode>): Likewise.
9962 (stack_tls_protect_test_<mode>): Likewise.
9964 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
9967 * config/i386/i386.c (ix86_address_subreg_operand): New.
9968 (ix86_decompose_address): Use ix86_address_subreg_operand.
9969 (ix86_legitimate_address_p): Do not assert that subregs satisfy
9970 register_no_elim_operand in DImode.
9972 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
9974 PR tree-optimization/49926
9975 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
9976 in a chain doesn't have uses both inside and outside the loop.
9978 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
9980 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
9981 * config/avr/avr-devices.c (avr_mcu_types): Use it.
9982 * config/avr/avr-mcus.def (AVR_MCU): Use it.
9983 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
9984 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
9985 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
9986 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
9987 to detect if XJMP must not be skipped.
9989 2011-08-02 Alan Modra <amodra@gmail.com>
9991 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
9993 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
9994 (rs6000_emit_prologue): Don't prematurely return when
9995 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
9996 save_toc_in_prologue case.
9997 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
10000 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
10002 * config/avr/avr-devices.c: Delete SVN property svn:executable.
10003 * config/avr/predicates.md: Ditto.
10004 * config/avr/driver-avr.c: Ditto.
10005 * config/avr/genopt.sh: Set SVN property svn:executable to *.
10007 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
10009 * calls.c (emit_library_call_value_1): Declare size only if
10010 BLOCK_REG_PADDING is defined.
10012 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
10015 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
10016 (x86_64-*-*): Likewise.
10017 * config/i386/i386.opt (mlzcnt): New.
10018 * config/i386/abmintrin.h: File removed.
10019 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
10020 * config/i386/lzcntintrin.h: ... here. New file.
10021 (__lzcnt): Rename to ...
10022 (__lzcnt32): ... this.
10023 * config/i386/bmiintrin.h (head): Update copyright year.
10024 (__lzcnt_u16): Removed.
10025 (__lzcnt_u32): Likewise.
10026 (__lzcnt_u64): Likewise.
10027 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
10028 is defined, remove abmintrin.h.
10029 * config/i386/cpuid.h (bit_LZCNT): New.
10030 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
10032 * config/i386/i386-c.c (ix86_target_macros_internal): Define
10033 __LZCNT__ if needed.
10034 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
10035 (ix86_option_override_internal): Handle LZCNT option.
10036 (ix86_valid_target_attribute_inner_p): Likewise.
10037 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
10038 * config/i386/i386.h (TARGET_LZCNT): New.
10039 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
10040 * config/i386/i386.md (clz<mode>2): Update insn constraint.
10041 (clz<mode>2_lzcnt): Likewise.
10042 * doc/invoke.texi: Mention -mlzcnt option.
10043 * doc/extend.texi: Likewise.
10045 2011-08-01 Julian Brown <julian@codesourcery.com>
10047 * configure.ac (fixed-point): Add ARM support.
10048 * configure: Regenerate.
10049 * config/arm/arm.c (arm_fixed_mode_set): New struct.
10050 (arm_set_fixed_optab_libfunc): New.
10051 (arm_set_fixed_conv_libfunc): New.
10052 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
10053 ARM-specific names.
10054 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
10055 return values in SImode.
10056 (arm_return_in_msb): Return fixed-point types in the msb.
10057 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
10059 (arm_scalar_mode_supported_p): Support fixed-point modes.
10060 (arm_vector_mode_supported_p): Support vector fixed-point modes.
10061 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
10062 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
10063 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
10064 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
10065 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
10066 New mode iterators.
10067 (qaddsub_suf): New mode attribute.
10068 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
10070 * config/arm/predicates.md (sat_shift_operator): New predicate.
10071 * config/arm/arm-fixed.md: New.
10072 * config/arm/arm.md: Include arm-fixed.md.
10073 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
10075 2011-08-01 Julian Brown <julian@codesourcery.com>
10077 * calls.c (emit_library_call_value_1): Support padding for libcall
10078 arguments and return values.
10079 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
10080 downwards in big-endian mode.
10082 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10085 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
10086 * config/sol2-protos.h: Likewise.
10087 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
10089 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
10090 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
10092 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
10094 2011-08-01 Julian Brown <julian@codesourcery.com>
10096 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
10098 2011-08-01 Julian Brown <julian@codesourcery.com>
10100 * final.c (output_addr_const): Print fixed-point constants as
10103 2011-08-01 Richard Guenther <rguenther@suse.de>
10105 * stor-layout.c (initialize_sizetypes): Properly sign-extend
10106 bitsiztype TYPE_MAX_VALUE.
10108 2011-08-01 Julian Brown <julian@codesourcery.com>
10110 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
10111 comparison helpers.
10113 2011-07-31 Richard Henderson <rth@redhat.com>
10115 * config/h8300/crti.asm: Add flags to .section directive.
10116 * config/h8300/crtn.asm: Likewise.
10118 2011-07-31 Richard Henderson <rth@redhat.com>
10120 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
10121 * tree.c (build_common_tree_nodes): Likewise.
10123 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
10126 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
10127 (divsi3_i1): Likewise.
10129 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10131 PR tree-optimization/49749
10132 * tree-ssa-reassoc.c (get_rank): New forward declaration.
10133 (PHI_LOOP_BIAS): New macro.
10134 (phi_rank): New function.
10135 (loop_carried_phi): Likewise.
10136 (propagate_rank): Likewise.
10137 (get_rank): Add calls to phi_rank and propagate_rank.
10139 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
10141 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
10143 (PTRDIFF_TYPE): Likewise.
10145 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
10148 * config/i386/i386.md (strset): Do not expand strset_singleop
10149 when %eax or $edi are fixed.
10150 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
10151 (*strsetsi_1): Ditto.
10152 (*strsethi_1): Ditto.
10153 (*strsetqi_1): Ditto.
10154 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
10155 (*rep_stossi): Ditto.
10156 (*rep_stosqi): Ditto.
10157 (*strlenqi_1): Ditto.
10158 (cmpstrnsi): Also fail when %ecx is fixed.
10159 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
10160 (*cmpstrnqi_1): Ditto.
10161 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
10162 (*strmovsi_1): Ditto.
10163 (*strmovhi_1): Ditto.
10164 (*strmovqi_1): Ditto.
10165 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
10166 (*rep_movsi): Ditto.
10167 (*rep_movqi): Ditto.
10169 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
10172 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
10173 Disable instruction scheduling for non-ColdFire targets.
10174 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
10176 2011-07-31 Revital Eres <revital.eres@linaro.org>
10178 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
10179 of anti-dep edge from a branch.
10180 (add_cross_iteration_register_deps): Create anti-dep edge from
10183 2011-07-31 Revital Eres <revital.eres@linaro.org>
10185 * modulo-sched.c: Change comment.
10186 (reset_sched_times): Fix print message.
10187 (print_partial_schedule): Add print info.
10189 2011-07-31 Tom de Vries <tom@codesourcery.com>
10191 PR middle-end/43513
10192 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
10193 get_object_alignment and TYPE_ALIGN.
10195 2011-07-30 Tom de Vries <tom@codesourcery.com>
10197 PR middle-end/43513
10198 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
10199 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
10201 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10203 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
10205 (cpu_types): New array.
10206 (cputype): New function.
10207 (host_detect_local_cpu): Only define buf, f if !__sgi__.
10208 Use scaninvent instead of /proc/cpuinfo if __sgi__.
10209 * config.host: Also use driver-native.o, mips/x-native on
10211 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
10212 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
10213 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
10215 2011-07-29 Jakub Jelinek <jakub@redhat.com>
10217 PR middle-end/49897
10218 PR middle-end/49898
10219 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
10220 in nested parallel and outer is a gimple_reg, mark it as addressable
10221 and set its bit in task_shared_vars bitmap too.
10223 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
10225 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
10227 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10229 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
10230 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
10231 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
10232 AMASK_LOCKPFTCHOK): Define.
10233 (host_detect_local_cpu): Remove buf, f, cpu_names.
10234 Define cpu_types, implver, amask.
10235 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
10237 * config.host: Also use driver-alpha.o, alpha/x-alpha on
10239 * config/alpha/osf5.h [__alpha__ || __alpha]
10240 (host_detect_local_cpu): Declare.
10241 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
10242 (DRIVER_SELF_SPECS): Define.
10244 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
10247 * config/i386/i386.md (*load_tp_x32): New.
10248 (*load_tp_x32_zext): Ditto.
10249 (*add_tp_x32): Ditto.
10250 (*add_tp_x32_zext): Ditto.
10251 (*load_tp_<mode>): Disable for TARGET_X32 targets.
10252 (*add_tp_<mode>): Ditto.
10253 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
10254 ptr_mode and convert to Pmode if needed.
10256 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
10259 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
10260 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
10261 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
10262 Add X to register footprint: Clobber r26/r27.
10264 2011-07-29 Richard Guenther <rguenther@suse.de>
10266 * builtins.c (fold_builtin_signbit): Build the comparison
10267 with a proper type.
10269 2011-07-29 Richard Guenther <rguenther@suse.de>
10271 PR tree-optimization/49893
10272 * tree-predcom.c (suitable_reference_p): Volatile references
10275 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
10278 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
10279 (__ctzsi2): Result for 0 may be undefined.
10280 (__ctzhi2): Result for 0 may be undefined.
10281 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
10282 (__popcountsi2): Ditto. And don't clobber r26.
10283 (__popcountdi2): Ditto. And don't clobber r27.
10284 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
10285 (parityhi2): New expand.
10286 (paritysi2): New expand.
10287 (popcounthi2): New expand.
10288 (popcountsi2): New expand.
10289 (clzhi2): New expand.
10290 (clzsi2): New expand.
10291 (ctzhi2): New expand.
10292 (ctzsi2): New expand.
10293 (ffshi2): New expand.
10294 (ffssi2): New expand.
10295 (copysignsf3): New insn.
10296 (bswapsi2): New expand.
10297 (*parityhi2.libgcc): New insn.
10298 (*parityqihi2.libgcc): New insn.
10299 (*paritysihi2.libgcc): New insn.
10300 (*popcounthi2.libgcc): New insn.
10301 (*popcountsi2.libgcc): New insn.
10302 (*popcountqi2.libgcc): New insn.
10303 (*popcountqihi2.libgcc): New insn-and-split.
10304 (*clzhi2.libgcc): New insn.
10305 (*clzsihi2.libgcc): New insn.
10306 (*ctzhi2.libgcc): New insn.
10307 (*ctzsihi2.libgcc): New insn.
10308 (*ffshi2.libgcc): New insn.
10309 (*ffssihi2.libgcc): New insn.
10310 (*bswapsi2.libgcc): New insn.
10312 2011-07-29 Richard Guenther <rguenther@suse.de>
10314 * tree-vrp.c (get_value_range): Only set parameter default
10315 definitions to varying, leave others at undefined.
10316 (extract_range_from_binary_expr): Fix undefined handling.
10317 (vrp_visit_phi_node): Handle merged undefined state.
10319 2011-07-29 Wei Guozhi <carrot@google.com>
10321 PR rtl-optimization/49799
10322 * combine.c (make_compound_operation): Check if the bit field is valid
10323 before change it to bit field extraction.
10325 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
10327 PR rtl-optimization/49891
10328 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
10329 newly created returnjumps.
10331 2011-07-28 DJ Delorie <dj@redhat.com>
10333 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
10334 local frame in a naked function, and produce a suitable error for
10335 that specific case.
10337 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
10338 registers to be reloaded in HI classes when the target is HI.
10340 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
10342 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
10343 bound_one, bound_two.
10345 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
10347 PR middle-end/48648
10348 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
10350 (translate_clast): Same.
10351 (translate_clast_assignment): New.
10353 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
10355 PR tree-optimization/49876
10356 * sese.c (rename_uses): Do not return false on gloog_error: set
10357 the new_expr to integer_zero_node and continue code generation.
10358 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
10360 2011-07-28 Jakub Jelinek <jakub@redhat.com>
10363 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
10364 arguments also check if they aren't initialized with a MODE_INT
10365 mode of the same size.
10367 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
10369 * expr.c (get_bit_range): Handle *MEM_REF's.
10371 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
10373 * rtlanal.c (tablejump_p): False for returns.
10374 * reorg.c (first_active_target_insn): New static function.
10375 (find_end_label): Set JUMP_LABEL for a new returnjump.
10376 (optimize_skip, get_jump_flags, rare_destination,
10377 mostly_true_jump, get_branch_condition,
10378 steal_delay_list_from_target, own_thread_p,
10379 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
10380 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
10381 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
10382 * jump.c (delete_related_insns): Likewise.
10383 (jump_to_label_p): New function.
10384 (redirect_target): New static function.
10385 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
10386 (redirect_jump_1): Assert that the new label is nonnull.
10387 (redirect_jump): Likewise.
10388 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
10389 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
10391 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
10392 changed. Ensure that the right label is passed to redirect_jump.
10393 * function.c (emit_return_into_block,
10394 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
10395 ret_rtx in their JUMP_LABEL.
10396 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
10397 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
10398 pass ret_rtx as label.
10399 * cfglayout.c (fixup_reorder_chain): Use
10400 force_nonfallthru_and_redirect rather than force_nonfallthru.
10401 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
10402 * rtl.h (ANY_RETURN_P): New macro.
10403 (jump_to_label_p): Declare.
10404 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
10406 (mark_target_live_regs): Likewise.
10407 * basic-block.h (force_nonfallthru_and_redirect): Declare.
10408 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
10409 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
10410 alpha_tablejump_best_label): Remove functions.
10411 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
10412 alpha_tablejump_best_label): Remove declarations.
10413 * config/sh/sh.c (barrier_align, split_branches): Adjust for
10414 ret_rtx in JUMP_LABELs.
10415 * config/arm/arm.c (is_jump_table): Likewise.
10417 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
10419 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
10420 special predicate. Remove explicit mode checks.
10422 2011-07-28 Jakub Jelinek <jakub@redhat.com>
10424 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
10425 DW_AT_data_member_location containing just DW_OP_plus_uconst.
10428 * dwarf2out.c (size_of_die, value_format, output_die): Use
10429 DW_FORM_udata instead of DW_FORM_data[48] for
10430 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
10432 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
10434 * config/i386/i386.md (*tls_global_dynamic_64): Update
10437 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
10440 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
10441 tls_symbolic_operand check. Update code sequence for TARGET_X32.
10442 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
10443 (tls_dynamic_gnu2_64): Ditto.
10444 (*tls_dynamic_gnu2_lea_64): Ditto.
10445 (*tls_dynamic_gnu2_call_64): Ditto.
10446 (*tls_dynamic_gnu2_combine_64): Ditto.
10448 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
10450 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
10452 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
10455 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
10457 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10459 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
10460 before the core constraints. Adjust attributes.
10461 ("*thumb2_movdf_vfp"): Likewise.
10463 2011-07-28 Kai Tietz <ktietz@redhat.com>
10465 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
10466 (simplify_truth_ops_using_ranges): Likewise.
10467 (build_assert_expr_for): Likewise.
10468 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
10469 and handle BIT_NOT_EXPR for truth-operation.
10471 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
10474 Undo r176835 from trunk
10475 2011-07-27 Georg-Johann Lay
10477 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
10480 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
10481 Add _muluhisi3, _mulshisi3, _usmulhisi3.
10482 * config/avr/libgcc.S (__mulsi3): Rewrite.
10483 (__mulhisi3): Rewrite.
10484 (__umulhisi3): Rewrite.
10485 (__usmulhisi3): New.
10486 (__muluhisi3): New.
10487 (__mulshisi3): New.
10488 (__mulohisi3): New.
10489 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
10491 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
10492 (pseudo_register_or_const_int_operand): New.
10493 (combine_pseudo_register_operand): New.
10494 (u16_operand): New.
10495 (s16_operand): New.
10496 (o16_operand): New.
10497 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
10498 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
10499 (any_extend, any_extend2): New code iterators.
10500 (extend_prefix): New code attribute.
10501 (mulsi3): Rewrite. Turn insn to expander.
10503 (umulhisi3): Ditto.
10504 (usmulhisi3): New expander.
10505 (*mulsi3): New insn-and-split.
10506 (mulu<mode>si3): New insn-and-split.
10507 (muls<mode>si3): New insn-and-split.
10508 (mulohisi3): New insn-and-split.
10509 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
10510 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
10511 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
10512 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
10514 (*mulsi3_call): Rewrite.
10515 (*mulhisi3_call): Rewrite.
10516 (*umulhisi3_call): Rewrite.
10517 (*usmulhisi3_call): New insn.
10518 (*muluhisi3_call): New insn.
10519 (*mulshisi3_call): New insn.
10520 (*mulohisi3_call): New insn.
10521 (extendqihi2): Use combine_pseudo_register_operand as predicate
10523 (extendqisi2): Ditto.
10524 (zero_extendqihi2): Ditto.
10525 (zero_extendqisi2): Ditto.
10526 (zero_extendhisi2): Ditto.
10527 (extendhisi2): Ditto. Don't early-clobber operand 0.
10529 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
10531 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
10533 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
10535 PR tree-optimization/49471
10536 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
10537 iv only when the largest type is unsigned. Do not call
10538 lang_hooks.types.type_for_size.
10540 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
10542 PR middle-end/45450
10543 * graphite-poly.c (apply_poly_transforms): Disable legality check
10544 after an openscop read.
10546 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
10548 PR middle-end/47691
10549 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
10550 copy_bb_and_scalar_dependences.
10551 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
10552 (graphite_copy_stmts_from_block): Update call to rename_uses.
10553 (copy_bb_and_scalar_dependences): Update call to
10554 graphite_copy_stmts_from_block.
10555 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
10557 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
10560 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
10561 (__ctzsi2): Result for 0 may be undefined.
10562 (__ctzhi2): Result for 0 may be undefined.
10563 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
10564 (__popcountsi2): Ditto. And don't clobber r26.
10565 (__popcountdi2): Ditto. And don't clobber r27.
10566 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
10567 (parityhi2): New expand.
10568 (paritysi2): New expand.
10569 (popcounthi2): New expand.
10570 (popcountsi2): New expand.
10571 (clzhi2): New expand.
10572 (clzsi2): New expand.
10573 (ctzhi2): New expand.
10574 (ctzsi2): New expand.
10575 (ffshi2): New expand.
10576 (ffssi2): New expand.
10577 (copysignsf3): New insn.
10578 (bswapsi2): New expand.
10579 (*parityhi2.libgcc): New insn.
10580 (*parityqihi2.libgcc): New insn.
10581 (*paritysihi2.libgcc): New insn.
10582 (*popcounthi2.libgcc): New insn.
10583 (*popcountsi2.libgcc): New insn.
10584 (*popcountqi2.libgcc): New insn.
10585 (*popcountqihi2.libgcc): New insn-and-split.
10586 (*clzhi2.libgcc): New insn.
10587 (*clzsihi2.libgcc): New insn.
10588 (*ctzhi2.libgcc): New insn.
10589 (*ctzsihi2.libgcc): New insn.
10590 (*ffshi2.libgcc): New insn.
10591 (*ffssihi2.libgcc): New insn.
10592 (*bswapsi2.libgcc): New insn.
10594 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
10596 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
10597 the mode of symbolic_opreand RTXes.
10599 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
10601 * config/i386/predicates.md (x86_64_movabs_operand): Return false
10602 for pic_32bit_operand RTXes.
10603 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
10606 2011-07-27 Kai Tietz <ktietz@redhat.com>
10608 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
10610 (ix86_handle_abi_attribute): Allow function attributes
10611 ms_abi/sysv_abi in 32-bit mode, too.
10612 * doc/extend.texi: Adjust attribute documentation.
10614 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
10615 expression handling.
10616 (and_var_with_comparison_1): Likewise.
10618 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
10620 * params.h (ALLOW_STORE_DATA_RACES): New.
10621 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
10622 * Makefile.in (expr.o): Depend on PARAMS_H.
10623 * machmode.h (get_best_mode): Add argument.
10624 * fold-const.c (optimize_bit_field_compare): Add argument to
10626 (fold_truthop): Same.
10627 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
10628 * expr.c (emit_group_store): Same.
10629 (copy_blkmode_from_reg): Same.
10630 (write_complex_part): Same.
10631 (optimize_bitfield_assignment_op): Add argument.
10632 Add argument to get_best_mode.
10633 (get_bit_range): New.
10634 (expand_assignment): Calculate maxbits and pass it down accordingly.
10635 (store_field): New argument.
10636 (expand_expr_real_2): New argument to store_field. Include params.h.
10637 * expr.h (store_bit_field): New argument.
10638 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
10639 into account maxbits.
10640 * calls.c (store_unaligned_arguments_into_pseudos): New argument
10641 to store_bit_field.
10642 * expmed.c (store_bit_field_1): New argument. Use it.
10643 (store_bit_field): Same.
10644 (store_fixed_bit_field): Same.
10645 (store_split_bit_field): Same.
10646 (extract_bit_field_1): Pass new argument to get_best_mode.
10647 (extract_bit_field): Same.
10648 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
10649 * doc/invoke.texi: Document parameter allow-store-data-races.
10651 2011-07-27 Jakub Jelinek <jakub@redhat.com>
10653 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
10655 2011-07-27 Kai Tietz <ktietz@redhat.com>
10657 * tree-vrp.c (extract_range_from_binary_expr): Remove
10658 TRUTH-binary cases and add new bitwise-cases.
10659 (extract_range_from_assignment): Likewise.
10660 (register_edge_assert_for_1): Likeiwise.
10661 (register_edge_assert_for): Likewise.
10662 (simplify_truth_ops_using_ranges): Likewise.
10663 (simplify_stmt_using_ranges): Likewise.
10665 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
10668 * config/i386/i386.c (ix86_delegitimize_address): Call
10669 simplify_gen_subreg for PIC with mode of x only if modes of
10670 x and orig_x are different.
10672 2011-07-26 Jakub Jelinek <jakub@redhat.com>
10674 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
10675 to GC allocated copy of the string.
10676 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
10677 before .debug_line, not after it.
10679 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
10681 PR middle-end/47046
10682 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
10683 evolution_function_is_affine_p on CHREC_RIGHT.
10685 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
10687 * tree-data-ref.c (max_stmt_executions_tree): Do not call
10688 lang_hooks.types.type_for_size.
10690 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
10692 PR middle-end/47653
10693 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
10694 loops using wrapping semantics.
10696 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
10698 PR middle-end/48805
10699 * tree-scalar-evolution.c (instantiate_scev_r): Return
10700 chrec_dont_know for ADDR_EXPR.
10702 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
10703 H.J. Lu <hongjiu.lu@intel.com>
10707 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
10708 if legitimize_tls_address returned operand in wrong mode. Allow
10709 SImode and DImode symbolic operand for PIC. Call convert_to_mode
10710 if legitimize_pic_address returned operand in wrong mode.
10712 2011-07-26 Martin Jambor <mjambor@suse.cz>
10714 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
10715 return false for invariants.
10717 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
10719 * config/i386/i386.md (add->lea splitter): Implement using SWI
10720 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
10721 (add->lea zext splitter): Change operand 2 predicate to
10722 x86_64_nonmemory_operand.
10724 2011-07-26 Richard Guenther <rguenther@suse.de>
10726 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
10727 frequency makes everything hot.
10729 2011-07-26 Richard Guenther <rguenther@suse.de>
10731 PR tree-optimization/49840
10732 * tree-vrp.c (range_fits_type_p): Properly handle full
10733 double-int precision.
10735 2011-07-26 Martin Jambor <mjambor@suse.cz>
10738 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
10740 (update_specialized_profile): Likewise.
10742 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
10743 H.J. Lu <hongjiu.lu@intel.com>
10748 * config/i386/i386.md (i): Change SImode attribute to "e".
10749 (g): Change SImode attribute to "rme".
10750 (di): Change SImode attribute to "nF".
10751 (general_operand): Change SImode attribute to x86_64_general_operand.
10752 (general_szext_operand): Change SImode attribute to
10753 x86_64_szext_general_operand.
10754 (immediate_operand): Change SImode attribute to
10755 x86_64_immediate_operand.
10756 (nonmemory_operand): Change SImode attribute to
10757 x86_64_nonmemory_operand.
10758 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
10759 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
10760 (*lea_1): Use SWI48 mode iterator.
10761 (*lea_1_zext): New insn pattern.
10762 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
10763 (*bt<mode>): Ditto.
10764 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
10765 Update operand constraints.
10766 (addsi_1_zext): Ditto.
10767 (*add<mode>2): Ditto.
10768 (*addsi_3_zext): Ditto.
10769 (*subsi_1_zext): Ditto.
10770 (*subsi_2_zext): Ditto.
10771 (*subsi_3_zext): Ditto.
10772 (*addsi3_carry_zext): Ditto.
10773 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
10774 (*mulsi3_1_zext): Ditto.
10776 (*andsi_1_zext): Ditto.
10777 (*andsi_2_zext): Ditto.
10778 (*<any_or:code>si_1_zext): Ditto.
10779 (*<any_or:code>si_2_zext): Ditto.
10780 (*test<mode>_1): Use <general_operand> predicate for operand 1.
10781 (*and<mode>_2): Ditto.
10782 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
10783 (add->lea splitter): Check operand modes in insn constraint. Extend
10784 operands less than SImode wide to SImode.
10785 (add->lea zext splitter): Do not extend input operands to DImode.
10786 (*lea_general_1): Handle only QImode and HImode operands.
10787 (*lea_general_2): Ditto.
10788 (*lea_general_3): Ditto.
10789 (*lea_general_1_zext): Remove.
10790 (*lea_general_2_zext): Ditto.
10791 (*lea_general_3_zext): Ditto.
10792 (*lea_general_4): Check operand modes in insn constraint. Extend
10793 operands less than SImode wide to SImode.
10794 (ashift->lea splitter): Ditto.
10795 * config/i386/i386.c (ix86_print_operand_address): Print address
10796 registers with 'q' modifier on 64bit targets.
10797 * config/i386/predicates.md (pic_32bit_opreand): Define as special
10798 predicate. Reject non-SI and non-DI modes.
10800 2011-07-25 Andrew Pinski <apinski@cavium.com>
10803 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
10804 TREE_THIS_NOTRAP into the inner most MEM_REF.
10805 Always copy TREE_THIS_VOLATILE.
10806 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
10807 arguments are not volatile references.
10809 2011-07-25 Richard Henderson <rth@redhat.com>
10811 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
10812 * final.c (final_scan_insn): Don't test for it.
10813 (rest_of_clean_state): Likewise.
10815 2011-07-25 Richard Henderson <rth@redhat.com>
10818 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
10819 (emit_frame_save): Likewise.
10820 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
10821 insn onto a dummy blockage insn after the join label.
10823 2011-07-25 Richard Henderson <rth@redhat.com>
10825 * dwarf2cfi.c (dw_trace_info): Add ID member.
10826 (get_trace_index): Remove. Change users to use ID member.
10827 (before_next_cfi_note): New.
10828 (connect_traces): Remove unreachable traces before the main loop.
10829 Look across one trace and generate remember/restore_state if needed.
10831 2011-07-25 Richard Henderson <rth@redhat.com>
10833 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
10835 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
10837 * genattr.c (write_upcase, gen_attr <enum definition writing>):
10839 * genattr-common.c ... here.
10840 (main): Call gen_attr.
10841 * optc-gen.awk: Make generated program include insn-attr-common.h .
10842 * Makefile.in (oprions.o): Depend on insn-attr-common.h
10844 2011-07-25 Anatoly Sokolov <aesok@post.ru>
10846 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
10847 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
10848 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
10849 m32c_print_operand, m32c_print_operand_address): Remove.
10850 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
10851 Change return type to bool. Change argument type to bool.
10852 (m32c_print_operand, m32c_print_operand_address): Make static.
10853 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
10854 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10856 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10858 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
10859 attributes): Document mmap.
10861 2011-07-25 Anatoly Sokolov <aesok@post.ru>
10863 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
10864 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
10865 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
10866 mmix_print_operand, mmix_print_operand_address): Remove.
10867 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
10868 Change return type to bool. Change argument type to bool.
10869 (mmix_print_operand, mmix_print_operand_address): Make static.
10870 (mmix_intval, mmix_output_condition): Change 'x' argument type
10872 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
10873 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10875 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
10878 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
10879 shift counter for x << x and x >> x shifts.
10881 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10884 * config.gcc: Reject *-*-solaris2 configuration.
10886 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
10888 PR tree-optimization/49809
10889 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
10890 gimple_get_lhs instead of gimple_assign_lhs.
10892 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10894 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
10896 2011-07-25 Richard Guenther <rguenther@suse.de>
10898 PR tree-optimization/49822
10899 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
10900 more. Make sure to preserve stmts with side-effects. Properly
10901 handle virtual defs, follow a longer def chain.
10903 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
10908 * Makefile.in: Do not flatten c-family directory when installing
10911 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
10913 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
10914 original nodes if we are dealing with virtual clones.
10916 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
10918 * common/config/c6x/c6x-common.c: New file.
10920 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
10922 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
10924 2011-07-25 Richard Guenther <rguenther@suse.de>
10926 PR tree-optimization/49715
10927 * tree-vrp.c: Include expr.h and optabs.h.
10928 (range_fits_type_): New function.
10929 (simplify_float_conversion_using_ranges): Likewise.
10930 (simplify_stmt_using_ranges): Call it.
10931 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
10932 * optabs.c (can_float_p): Export.
10933 * optabs.h (can_float_p): Declare.
10935 2011-07-25 Richard Guenther <rguenther@suse.de>
10937 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
10938 (get_value_range): For out-of-range SSA names or names created
10939 after propagation return a read-only varying range.
10940 (dump_all_value_ranges): Adjust.
10941 (vrp_initialize): Likewise.
10942 (vrp_finalize): Likewise.
10944 2011-07-24 Richard Henderson <rth@redhat.com>
10947 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
10950 2011-07-24 Richard Henderson <rth@redhat.com>
10953 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
10954 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
10956 2011-07-24 Richard Henderson <rth@redhat.com>
10959 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
10961 2011-07-24 Richard Henderson <rth@redhat.com>
10963 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
10964 Zero args_size for abnormal edges. Adjust all callers.
10966 2011-07-24 Richard Henderson <rth@redhat.com>
10969 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
10971 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
10974 * collect2.c (demangle_flag): Removed.
10976 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
10978 * configure.ac (demangler_in_ld): Default to yes.
10979 * configure: Regenerated.
10980 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
10981 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
10982 --no-demangle options straight through to ld. When
10983 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
10984 way that has the intended effect on Windows.
10986 2011-07-23 Richard Henderson <rth@redhat.com>
10988 * dwarf2cfi.c: Include basic-block.h.
10989 (dw_label_info): Remove.
10990 (trace_work_list, trace_index): New.
10991 (remember_row, emit_cfa_remember): Remove.
10992 (dw_trace_info_hash, dw_trace_info_eq): New.
10993 (get_trace_index, get_trace_info): New.
10994 (save_point_p): New.
10995 (free_cfi_row): Remove.
10996 (add_cfi): Do not emit DW_CFA_remember_state.
10997 (cfa_row_equal_p): New.
10998 (barrier_args_size): Remove.
10999 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
11000 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
11001 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
11002 (dwarf2out_cfi_begin_epilogue): Remove.
11003 (dwarf2out_frame_debug_restore_state): Remove.
11004 (connect_traces, create_pseudo_cfg): New.
11005 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
11006 * Makefile.in (dwarf2cfi.o): Update.
11008 2011-07-23 Richard Henderson <rth@redhat.com>
11010 * dwarf2cfi.c (dw_trace_info): New.
11011 (dw_label_info): New.
11012 (cie_return_save): New.
11014 (queued_args_size): Rename from args_size. Update all users.
11015 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
11016 (def_cfa_1): Use cur_trace instead of cfa_*.
11017 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
11018 (clobbers_queued_reg_save, reg_saved_in): Likewise.
11019 (dwarf2out_frame_debug_expr): Likewise.
11020 (create_cie_data): Split out from ...
11021 (execute_dwarf2_frame): ... here. Initialize cur_trace.
11023 2011-07-23 Richard Henderson <rth@redhat.com>
11025 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
11026 Update all users to match.
11027 (execute_dwarf2_frame): Free reg_saved_in_data.
11029 2011-07-23 Richard Henderson <rth@redhat.com>
11031 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
11032 (queued_reg_saves): Don't GTY. Change to a VEC.
11033 (queue_reg_save): Update to match.
11034 (dwarf2out_flush_queued_reg_saves): Likewise.
11035 (clobbers_queued_reg_save): Likewise.
11036 (reg_saved_in): Likewise.
11037 (execute_dwarf2_frame): Free queued_reg_saves.
11039 2011-07-23 Richard Henderson <rth@redhat.com>
11041 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
11043 2011-07-23 Richard Henderson <rth@redhat.com>
11045 * dwarf2cfi.c (add_cfi_args_size): Split out from...
11046 (dwarf2out_args_size): ... here.
11047 (add_cfi_restore): Split out from ...
11048 (dwarf2out_frame_debug_cfa_restore): ... here.
11049 (def_cfa_0): Split out from ...
11050 (def_cfa_1): ... here.
11051 (cfi_oprnd_equal_p, cfi_equal_p): New.
11052 (change_cfi_row): New.
11053 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
11054 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
11055 (output_cfis): Remove.
11056 * dwarf2out.c (output_fde): Simplify output_cfi loop.
11057 (dwarf2out_switch_text_section): Don't call output_cfis.
11058 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
11059 * dwarf2out.h: Update decls.
11060 (enum dw_val_class): Add dw_val_class_none.
11062 2011-07-23 Richard Henderson <rth@redhat.com>
11064 * dwarf2cfi.c (update_row_reg_save): New.
11065 (dwarf2out_frame_debug_cfa_expression): Use it.
11066 (dwarf2out_frame_debug_cfa_restore): Likewise.
11067 (reg_save): Likewise. Do not emit DW_CFA_same_value.
11069 2011-07-23 Richard Henderson <rth@redhat.com>
11071 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
11073 2011-07-23 Richard Henderson <rth@redhat.com>
11075 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
11076 (cie_cfi_row): New.
11077 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
11078 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
11079 (cur_row, remember_row): New.
11080 (def_cfa_1): Use cur_row instead of the old_* variables.
11081 (dwarf2out_frame_debug_restore_state): Similarly.
11082 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
11083 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
11084 (dwarf2out_frame_debug_adjust_cfa): Likewise.
11085 (dwarf2out_frame_debug_cfa_offset): Likewise.
11086 (dwarf2out_frame_debug_expr): Likewise.
11087 (execute_dwarf2_frame): Set up cur_row.
11088 * dwarf2out.h (struct cfa_loc): Mark for GTY.
11090 2011-07-23 Richard Henderson <rth@redhat.com>
11092 * basic-block.h (EDGE_PRESERVE): New.
11093 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
11094 * bb-reorder.c: Include except.h.
11095 (fix_up_crossing_landing_pad): New.
11096 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
11097 landing pads in the right partition. Duplicate as necessary.
11098 (partition_hot_cold_basic_blocks): Fix up DF info after
11099 duplicating landing pads.
11100 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
11101 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
11102 is set properly. Validate that EH edges are not CROSSING.
11103 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
11104 (dw2_build_landing_pads): ... here.
11105 (convert_to_eh_region_ranges): Remove code to fixup crossing
11107 * except.h (expand_dw2_landing_pad_for_region): Declare.
11108 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
11110 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
11113 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
11115 2011-07-22 Jason Merrill <jason@redhat.com>
11117 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
11119 2011-07-22 Richard Henderson <rth@redhat.com>
11121 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
11123 2011-07-22 Richard Henderson <rth@redhat.com>
11125 * jump.c (maybe_propagate_label_ref): Split out of...
11126 (mark_all_labels): ... here. Do not attempt label_ref
11127 propagation while in cfglayout mode.
11129 2011-07-22 Jakub Jelinek <jakub@redhat.com>
11131 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
11132 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
11133 (dwarf_attr_name): Handle DW_AT_GNU_macros.
11134 (dwarf2out_define): If the vector is empty and
11135 lineno is 0, emit a dummy entry first.
11136 (dwarf2out_undef): Likewise. Remove redundant semicolon.
11137 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
11138 optimize_macinfo_range): New functions.
11139 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
11140 mergeable, optimize longer strings using
11141 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
11142 optimize longer sequences of define/undef ops from headers
11143 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
11144 emit a section headers.
11145 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
11146 and macinfo_section_label to DEBUG_MACRO_SECTION
11147 resp. DEBUG_MACRO_SECTION_LABEL.
11148 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
11149 instead of DW_AT_macro_info.
11152 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
11154 * dwarf2out.c: Include opts.h.
11155 (dchar_p): New typedef. Define heap VEC for it.
11156 (producer_string): New variable.
11157 (gen_producer_string): New function.
11158 (gen_compile_unit_die): Use it.
11159 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
11160 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
11161 * doc/invoke.texi: Document -grecord-gcc-switches and
11162 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
11163 to -frecord-gcc-switches description.
11165 2011-07-22 Jason Merrill <jason@redhat.com>
11168 * c-decl.c (c_linkage_bindings): Define.
11170 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
11173 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
11175 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
11177 * config/i386/i386.c (ix86_option_override_internal): Disallow
11178 MS ABI in x32 mode.
11179 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
11180 only for TARGET_LP64.
11181 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
11183 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
11185 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
11186 avoid warnings when GCC is built with a C++ compiler.
11188 2011-07-22 Martin Jambor <mjambor@suse.cz>
11191 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
11192 if decl node is in another partition, call cgraph_get_node only once.
11194 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
11196 * config.gcc (x86_64-*-linux*): Set
11197 default_gnu_indirect_function to yes.
11199 2011-07-22 Richard Guenther <rguenther@suse.de>
11201 PR tree-optimization/45819
11202 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
11203 preserve volatile and notrap flags.
11205 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11206 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11209 * configure.ac: Test AM_ICONV with CXX.
11210 * configure: Regenerate.
11211 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
11213 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11216 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
11217 (set_cloog_options): Use it.
11219 2011-07-22 Jakub Jelinek <jakub@redhat.com>
11222 * gcc.c (main): Call stack_limit_increase (64MB).
11223 * toplev.c (toplev_main): Likewise.
11225 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
11227 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
11228 instead of force_reg.
11230 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
11232 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
11233 needed and use force_reg after convert.
11234 (ix86_expand_call): Likewise.
11235 (ix86_expand_special_args_builtin): Likewise.
11236 (ix86_expand_builtin): Likewise.
11238 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11240 PR middle-end/47654
11241 PR middle-end/49649
11242 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
11243 in parameter. Initialize v1 and v2 based on the values returned
11244 by clast_name_to_lb_ub.
11245 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
11247 (type_for_clast_bin): Same.
11248 (type_for_clast_expr): Same.
11249 (type_for_clast_eq): Update calls to type_for_clast_expr.
11250 (type_for_clast_for): Same.
11251 (build_iv_mapping): Same.
11252 * graphite-ppl.h (value_min): New.
11254 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11256 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
11257 types whenever possible.
11259 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11261 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
11263 (new_clast_name_index): Add lb and ub parameters.
11264 (free_clast_name_index): New.
11265 (clast_name_to_lb_ub): New.
11266 (save_clast_name_index): Add lb and ub parameters.
11267 (compute_bounds_for_param): New.
11268 (type_for_level): Removed.
11269 (type_for_clast_for): Removed level parameter. Do not call
11271 (graphite_create_new_loop): Store the lb and ub for the clast_name
11272 of the iterator of the loop that has been generated.
11273 (graphite_create_new_loop_guard): Remove parameter level.
11274 (create_params_index): Store the lb and ub of each parameter.
11275 (gloog): Use free_clast_name_index. Pass to create_params_index
11278 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11280 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
11281 (max_precision_type): Inline max_signed_precision_type.
11282 (type_for_clast_red): Use max_precision_type.
11283 (type_for_clast_bin): Same.
11284 (type_for_clast_for): Same.
11286 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11288 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
11290 (gcc_type_for_value): Renamed type_for_value.
11291 (gcc_type_for_clast_term): Renamed type_for_clast_term.
11292 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
11293 (gcc_type_for_clast_red): Renamed type_for_clast_red.
11294 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
11295 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
11296 (graphite_translate_clast_equation): Update calls.
11297 (compute_type_for_level): Renamed type_for_level.
11298 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
11299 (build_iv_mapping): Update calls.
11300 (graphite_create_new_loop_guard): Same.
11302 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11304 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
11307 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11309 * graphite-clast-to-gimple.c (struct ivs_params): New.
11310 (clast_name_to_gcc): Use ivs_params to pass around parameters.
11311 (clast_to_gcc_expression): Same.
11312 (clast_to_gcc_expression_red): Same.
11313 (gcc_type_for_clast_term): Same.
11314 (gcc_type_for_clast_expr): Same.
11315 (gcc_type_for_clast_red): Same.
11316 (gcc_type_for_clast_bin): Same.
11317 (gcc_type_for_clast_eq): Same.
11318 (graphite_translate_clast_equation): Same.
11319 (graphite_create_guard_cond_expr): Same.
11320 (graphite_create_new_guard): Same.
11321 (graphite_create_new_loop): Same.
11322 (build_iv_mapping): Same.
11323 (translate_clast_user): Same.
11324 (graphite_create_new_loop_guard): Same.
11325 (translate_clast): Same.
11326 (translate_clast_for_loop): Same.
11327 (translate_clast_for): Same.
11328 (translate_clast_guard): Same.
11329 (initialize_cloog_names): Fix typo.
11330 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
11332 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11334 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
11335 (new_clast_name_index): Add level parameter.
11336 (clast_name_to_level): New.
11337 (save_clast_name_index): Add level parameter.
11338 (newivs_to_depth_to_newiv): Removed.
11339 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
11340 (graphite_create_new_loop): Add level parameter. Pass level to
11341 save_clast_name_index.
11342 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
11343 (create_params_index): Pass level to save_clast_name_index.
11345 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11347 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
11348 recompute type, lb, and ub. Get them from...
11349 (graphite_create_new_loop_guard): ...here. Pass in parameter
11350 pointers to type, lb, and ub.
11351 (translate_clast_for_loop): Update function calls.
11352 (translate_clast_for): Same.
11354 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
11356 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
11358 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
11359 (gcc_type_for_iv_of_clast_loop): Update use of level.
11360 (gloog): Start counting nesting level from 0.
11361 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
11362 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
11363 psct_dynamic_dim on level.
11365 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
11367 * config/i386/i386.c (ix86_legitimize_address): Convert to
11370 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
11372 * config/i386/i386.c (function_value_64): Always return pointers
11374 (ix86_promote_function_mode): New.
11375 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
11377 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11379 PR tree-optimization/49749
11380 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
11381 remove no-longer-used maxrank variable.
11383 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
11385 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
11387 2011-07-21 Jason Merrill <jason@redhat.com>
11389 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
11390 * recog.h (struct insn_data_d): Check it instead of
11391 HAVE_DESIGNATED_INITIALIZERS.
11392 * genoutput.c (output_insn_data): Likewise.
11394 2011-07-21 Richard Guenther <rguenther@suse.de>
11396 PR tree-optimization/49770
11397 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
11398 valueized any operand. Renamed from ...
11399 (valueize_refs): ... this. New wrapper around valueize_refs_1.
11400 (valueize_shared_reference_ops_from_ref): Return whether we
11401 valueized any operand.
11402 (vn_reference_lookup): Only when we valueized any operand
11403 use the valueized reference for alias analysis. Do not preserve
11404 the original reference tree in this case.
11406 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
11408 * config/i386/i386.c (ix86_decompose_address): Reject all but
11409 register operands and subregs of DImode hard registers in index.
11411 2011-07-21 Kai Tietz <ktietz@redhat.com>
11413 * fold-const.c (fold_unary_loc): Preserve indirect
11414 comparison cast to none-boolean type.
11415 * tree-ssa.c (useless_type_conversion_p): Preserve cast
11416 from/to boolean-type.
11417 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
11418 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
11419 * tree-cfg.c (verify_gimple_comparison): Check result
11420 type of comparison expression.
11421 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
11422 of condition result and disallow type-cast sinking into comparison.
11424 2011-07-21 Richard Guenther <rguenther@suse.de>
11426 * tree-ssa-forwprop.c (combine_conversions): Return whether
11427 we have to run cfg-cleanup. Properly remove dead stmts.
11428 (ssa_forward_propagate_and_combine): Adjust.
11430 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
11432 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
11434 2011-07-21 Kai Tietz <ktietz@redhat.com>
11436 * tree-ssa-propagate.c (substitute_and_fold): Use
11437 do_dce flag to deside, if BB's statements are scanned
11438 in last to first, or first to last order.
11440 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
11442 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
11444 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
11445 Uros Bizjak <ubizjak@gmail.com>
11446 Richard Henderson <rth@redhat.com>
11448 * config/i386/constraints.md (w): New.
11450 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
11451 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
11453 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
11454 instead of TARGET_64BIT.
11456 * config/i386/i386.md (indirect_jump): Replace
11457 nonimmediate_operand with indirect_branch_operand.
11458 (*indirect_jump): Likewise. Replace constraint "m" with "w".
11459 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
11460 Convert operand 0 to Pmode for x32 if not PIC.
11461 (*tablejump_1): Replace nonimmediate_operand with
11462 indirect_branch_operand. Replace constraint "m" with "w".
11463 (*call_vzeroupper): Replace constraint "m" with "w".
11465 (*call_rex64_ms_sysv_vzeroupper): Likewise.
11466 (*call_rex64_ms_sysv): Likewise.
11467 (*call_value_vzeroupper): Likewise.
11468 (*call_value): Likewise.
11469 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
11470 (*call_value_rex64_ms_sysv): Likewise.
11471 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
11473 * config/i386/predicates.md (indirect_branch_operand): New.
11474 (call_insn_operand): Support x32.
11476 2011-07-20 Michael Eager <eager@eagercon.com>
11478 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
11480 2011-07-20 Richard Henderson <rth@redhat.com>
11482 * cfg.c (dump_bb_info): Dump basic_block->flags.
11483 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
11485 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
11487 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
11488 of DImode hard registers in index.
11489 (ix86_legitimate_address_p): Allow subregs of base and index to span
11490 more than a word. Assert that subregs of base and index satisfy
11491 register_no_elim_operand predicates. Reject addresses where
11492 base and index have different modes.
11494 2011-07-20 Robert Millan <rmh@gnu.org>
11496 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
11498 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11500 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
11501 removing now-unnecessary assignment.
11503 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11505 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
11506 memory address space to the type's address space.
11508 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
11512 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
11513 and expand appropriately if there is a CONST_INT in operand2.
11514 (usmulqihi3): New insn.
11515 (*sumulqihi3): New insn.
11516 (*osmulqihi3): New insn.
11517 (*oumulqihi3): New insn.
11518 (*muluqihi3.uconst): New insn_and_split.
11519 (*muluqihi3.sconst): New insn_and_split.
11520 (*mulsqihi3.sconst): New insn_and_split.
11521 (*mulsqihi3.uconst): New insn_and_split.
11522 (*mulsqihi3.oconst): New insn_and_split.
11523 (*ashifthi3.signx.const): New insn_and_split.
11524 (*ashifthi3.signx.const7): New insn_and_split.
11525 (*ashifthi3.zerox.const): New insn_and_split.
11526 (mulsqihi3): New insn.
11527 (muluqihi3): New insn.
11528 (muloqihi3): New insn.
11529 * config/avr/predicates.md (const_2_to_7_operand): New.
11530 (const_2_to_6_operand): New.
11535 (register_or_s9_operand): New.
11537 2011-07-20 Kai Tietz <ktietz@redhat.com>
11539 * builtins.c (fold_builtin_expect): See through the cast
11540 from truthvalue_type_node to long.
11542 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
11544 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
11545 where we can use them from the standard and altivec instruction
11546 sets, instead of always using the 3 operand VSX forms that require
11547 the destination to overlap one of the inputs.
11549 (vsx_fnma*): Ditto.
11550 (vsx_fnms*): Ditto.
11552 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
11554 (fmsdf4_fpr): Ditto.
11555 (nfmadf4_fpr): Ditto.
11556 (nfmsdf4_fpr): Ditto.
11558 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
11560 * genrecog.c (make_insn_sequence): Correct position numbering
11561 when filtering out match_scratch and match_dup.
11563 2011-07-20 Richard Guenther <rguenther@suse.de>
11565 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
11566 against already removed statements.
11567 (forward_propagate_into_comparison): Remove dead defining stmts.
11568 (forward_propagate_into_gimple_cond): Likewise.
11569 (forward_propagate_into_cond): Simplify.
11570 (ssa_forward_propagate_and_combine): Handle changed cfg from
11571 forward_propagate_into_comparison.
11572 * tree-ssa-phiopt.c (conditional_replacement): Use proper
11573 locations for newly built statements.
11575 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
11577 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
11579 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11581 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
11582 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
11584 2011-07-20 Richard Guenther <rguenther@suse.de>
11586 PR middle-end/18908
11587 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
11588 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
11589 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
11591 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
11593 * config/frv/frv.c (frv_register_move_cost): Define explicitly
11594 costs for subclasses of GR_REGS.
11596 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
11599 * config/i386/predicates.md (no_seg_addres_operand): No more special.
11600 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
11601 of DImode hard registers in base.
11602 (ix86_legitimate_address_p): Allow SImode and DImode base and index
11605 2011-07-20 Richard Guenther <rguenther@suse.de>
11607 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
11608 (unify_nodes): Deal with that.
11609 (solve_graph): Likewise.
11611 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
11613 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
11614 canonicalize left operand from ZERO_EXTEND to AND.
11616 2011-07-20 Anatoly Sokolov <aesok@post.ru>
11618 * target.def (class_max_nregs): New hook.
11619 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
11620 * doc/tm.texi: Regenerate.
11621 * targhooks.c (default_class_max_nregs): New function.
11622 * targhooks.h (default_class_max_nregs): Declare.
11623 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
11624 x_ira_reg_class_min_nregs arrays to unsigned char.
11625 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
11626 hook instead of CLASS_MAX_NREGS macro.
11627 * reginfo.c (restore_register_info): Ditto.
11628 * ira-conflicts.c (process_regs_for_copy): Use
11629 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
11630 Change type rclass and aclass vars to reg_class_t.
11631 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
11632 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
11634 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
11635 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
11637 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
11638 * config/i386/i386.c (ix86_class_max_nregs): New function.
11639 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
11640 instead of CLASS_MAX_NREGS macro.
11641 (TARGET_CLASS_MAX_NREGS): Define.
11642 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
11643 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
11644 * config/avr/avr.c (class_max_nregs): Remove function.
11645 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
11646 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
11647 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
11648 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
11649 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
11650 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
11651 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
11652 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
11653 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
11654 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
11655 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
11656 * config/score/score.h (CLASS_MAX_NREGS): Remove.
11657 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
11658 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
11659 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
11661 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
11663 * cif-code.def (OVERWRITABLE): Fix typo and move around.
11664 (TARGET_OPTIMIZATION_MISMATCH): Delete.
11665 (EH_PERSONALITY): Fix typo.
11666 (NON_CALL_EXCEPTIONS): Fix message.
11667 (OPTIMIZATION_MISMATCH): Adjust message.
11668 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
11670 2011-07-19 Ian Lance Taylor <iant@google.com>
11672 * doc/install.texi (Configuration): Document
11673 --enable-build-poststage1-with-cxx.
11675 2011-07-19 Robert Millan <rmh@gnu.org>
11677 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
11678 (GLIBC_DYNAMIC_LINKER): Remove.
11680 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
11681 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
11682 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
11683 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
11684 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
11685 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
11687 * config/mips/linux.h: Remove everything except for ...
11688 (GLIBC_DYNAMIC_LINKER): ... this macro.
11690 * config/mips/linux64.h: Remove everything except for ...
11691 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
11692 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
11693 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
11694 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
11695 (GNU_USER_LINK_EMULATIONN32): New macros.
11697 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
11698 Use the new headers.
11700 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
11702 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
11703 Add offset_known_p and size_known_p fields.
11704 (MEM_OFFSET_KNOWN_P): Update accordingly.
11705 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
11706 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
11707 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
11708 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
11709 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
11710 (init_emit_regs): Likewise.
11712 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
11714 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
11715 (MEM_OFFSET): Change from returning an rtx to returning a
11717 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
11718 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
11719 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
11720 (clear_mem_offset): Declare.
11721 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
11722 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
11723 MEM_OFFSET to get a HOST_WIDE_INT offset.
11724 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
11725 (adjust_offset_for_component_ref): Take a bool "known_p"
11726 parameter and a HOST_WIDE_INT "offset" parameter.
11727 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
11728 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
11729 than an rtx. Use clear_mem_offset to clear the offset.
11730 * cfgcleanup.c (merge_memattrs): Likewise.
11731 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
11732 * function.c (assign_parm_find_stack_rtl): Likewise.
11733 (assign_parm_setup_stack): Likewise.
11734 * print-rtl.c (print_rtx): Likewise.
11735 * reload.c (find_reloads_subreg_address): Likewise.
11736 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
11737 * var-tracking.c (INT_MEM_OFFSET): Likewise.
11738 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
11739 (get_mem_align_offset): Likewise.
11740 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
11741 (clear_mem_offset): New function.
11742 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
11743 offset rather than an rtx. Assume both the expressio and offset
11745 (r10k_needs_protection_p_1): Update accordingly, checking the
11746 expression and offset availability here instead.
11748 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
11750 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
11751 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
11752 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
11753 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
11754 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
11755 (clear_mem_size): Declare.
11756 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
11757 (clear_mem_size): New function.
11758 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
11759 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
11760 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
11761 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
11763 (nonoverlapping_memrefs_p): Likewise.
11764 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
11765 (expand_builtin_init_trampoline): Likewise.
11766 * calls.c (compute_argument_addresses): Likewise.
11767 * cfgcleanup.c (merge_memattrs): Likewise.
11768 * dce.c (find_call_stack_args): Likewise.
11769 * dse.c (record_store, scan_insn): Likewise.
11770 * dwarf2out.c (dw_sra_loc_expr): Likewise.
11771 * expr.c (emit_block_move_hints): Likewise.
11772 * function.c (assign_parm_find_stack_rtl): Likewise.
11773 * print-rtl.c (print_rtx): Likewise.
11774 * reload.c (find_reloads_subreg_address): Likewise.
11775 * rtlanal.c (may_trap_p_1): Likewise.
11776 * var-tracking.c (track_expr_p): Likewise.
11777 * varasm.c (assemble_trampoline_template): Likewise.
11778 * config/arm/arm.c (arm_print_operand): Likewise.
11779 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
11780 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
11781 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
11782 (expand_constant_setmem_prologue): Likewise.
11783 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
11784 * config/rs6000/rs6000.c (expand_block_move): Likewise.
11785 (adjacent_mem_locations): Likewise.
11786 * config/s390/s390.c (s390_expand_setmem): Likewise.
11787 (s390_expand_insv): Likewise.
11788 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
11789 (*extendqi<mode>2_short_displ): Likewise.
11790 * config/sh/sh.c (expand_block_move): Likewise.
11791 * config/sh/sh.md (extv, extzv): Likewise.
11793 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
11795 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
11796 (mem_attrs_htab_eq): ...here.
11797 (find_mem_attrs): Replace with...
11798 (set_mem_attrs): ...this function. Take a mem_attrs structure
11799 rather than individual fields.
11800 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
11801 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
11802 (set_mem_size, change_address, adjust_address_1, offset_address)
11803 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
11804 Update accordingly.
11806 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
11808 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
11809 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
11810 Provide a dummy definition of MEM_ADDR_SPACE for generators.
11811 (target_rtl): Add x_mode_mem_attrs.
11812 (mode_mem_attrs): New macro.
11813 (get_mem_attrs): New function.
11814 * emit-rtl.c (get_mem_attrs): Rename to...
11815 (find_mem_attrs): ...this.
11816 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
11817 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
11818 (set_mem_size, change_address, adjust_address_1, offset_address)
11819 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
11820 Update accordingly.
11821 (init_emit_regs): Initialize mode_mem_attrs.
11823 2011-07-19 Richard Guenther <rguenther@suse.de>
11825 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
11826 TRUTH_*_EXPR handling.
11827 * tree-ssa-operands.c (get_expr_operands): Likewise.
11828 * tree-ssa-pre.c (fully_constant_expression): Likewise.
11829 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
11831 (is_and_or_or): Likewise.
11832 (is_norm_cond_subset_of): Likewise.
11834 2011-07-19 Richard Guenther <rguenther@suse.de>
11836 * tree.h (fold_build_pointer_plus_loc): New helper function.
11837 (fold_build_pointer_plus_hwi_loc): Likewise.
11838 (fold_build_pointer_plus): Define.
11839 (fold_build_pointer_plus_hwi): Likewise.
11840 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
11841 (fold_builtin_memory_op): Likewise.
11842 (fold_builtin_stpcpy): Likewise.
11843 (fold_builtin_memchr): Likewise.
11844 (fold_builtin_strstr): Likewise.
11845 (fold_builtin_strchr): Likewise.
11846 (fold_builtin_strrchr): Likewise.
11847 (fold_builtin_strpbrk): Likewise.
11848 (fold_builtin_strcat): Likewise.
11849 (expand_builtin_memory_chk): Likewise.
11850 (fold_builtin_memory_chk): Likewise.
11851 * c-typeck.c (build_unary_op): Likewise.
11852 * cgraphunit.c (thunk_adjust): Likewise.
11853 * fold-const.c (build_range_check): Likewise.
11854 (fold_binary_loc): Likewise.
11855 * omp-low.c (extract_omp_for_data): Likewise.
11856 (expand_omp_for_generic): Likewise.
11857 (expand_omp_for_static_nochunk): Likewise.
11858 (expand_omp_for_static_chunk): Likewise.
11859 * tree-affine.c (add_elt_to_tree): Likewise.
11860 * tree-data-ref.c (split_constant_offset_1): Likewise.
11861 * tree-loop-distribution.c (generate_memset_zero): Likewise.
11862 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
11863 * tree-predcom.c (ref_at_iteration): Likewise.
11864 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
11865 (add_to_parts): Likewise.
11866 (create_mem_ref): Likewise.
11867 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
11868 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
11869 (number_of_iterations_le): Likewise.
11870 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
11871 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
11872 (vect_create_addr_base_for_vector_ref): Likewise.
11873 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
11874 (vect_create_cond_for_alias_checks): Likewise.
11875 * tree-vrp.c (extract_range_from_assert): Likewise.
11876 * config/alpha/alpha.c (alpha_va_start): Likewise.
11877 (alpha_gimplify_va_arg_1): Likewise.
11878 * config/i386/i386.c (ix86_va_start): Likewise.
11879 (ix86_gimplify_va_arg): Likewise.
11880 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
11881 * config/mep/mep.c (mep_expand_va_start): Likewise.
11882 (mep_gimplify_va_arg_expr): Likewise.
11883 * config/mips/mips.c (mips_va_start): Likewise.
11884 (mips_gimplify_va_arg_expr): Likewise.
11885 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
11886 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
11887 (rs6000_gimplify_va_arg): Likewise.
11888 * config/s390/s390.c (s390_va_start): Likewise.
11889 (s390_gimplify_va_arg): Likewise.
11890 * config/sh/sh.c (sh_va_start): Likewise.
11891 (sh_gimplify_va_arg_expr): Likewise.
11892 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
11893 * config/spu/spu.c (spu_va_start): Likewise.
11894 (spu_gimplify_va_arg_expr): Likewise.
11895 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
11897 (xstormy16_gimplify_va_arg_expr): Likewise.
11898 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
11899 (xtensa_gimplify_va_arg_expr): Likewise.
11901 2011-07-19 Richard Guenther <rguenther@suse.de>
11903 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
11904 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
11907 PR middle-end/18908
11908 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
11909 result of BIT_*_EXPR to bitfield precision.
11911 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
11913 PR tree-optimization/49742
11914 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
11915 as a potential write.
11917 2011-07-19 Richard Guenther <rguenther@suse.de>
11919 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
11920 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
11921 (forward_propagate_comparison): Simplify, remove obsolete code.
11923 2011-07-19 Richard Guenther <rguenther@suse.de>
11925 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
11926 BIT_XOR_EXPR, same as the RTL expander does.
11927 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
11928 (verify_gimple_assign_unary): Likewise.
11929 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
11930 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
11931 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
11933 2011-07-19 Jakub Jelinek <jakub@redhat.com>
11935 PR tree-optimization/49768
11936 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
11937 if offset is smaller than bitoffset, but offset+size is bigger
11940 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
11942 PR tree-optimization/49771
11943 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
11944 zero step, set segment length to the size of the data-ref's type.
11946 2011-07-18 Martin Jambor <mjambor@suse.cz>
11948 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
11950 (ipcp_values_pool): Declare.
11951 (ipcp_sources_pool): Likewise.
11952 (ipcp_lattice): Changed to forward declaration.
11953 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
11954 cannot_devirtualize.
11955 (ipa_node_params): New fields descriptors, lattices, known_vals,
11956 clone_for_all_contexts and node dead, removed fields params and
11958 (ipa_set_param_count): Removed.
11959 (ipa_get_param_count): Made to work with descriptors vector.
11960 (ipa_get_param): Updated.
11961 (ipa_param_cannot_devirtualize_p): Removed.
11962 (ipa_param_types_vec_empty): Likewise.
11963 (ipa_set_param_used): New function.
11964 (ipa_get_param_used): Updated to use descriptors vector.
11965 (ipa_func_list): Removed.
11966 (ipa_init_func_list): Removed declaration.
11967 (ipa_push_func_to_list_1): Likewise.
11968 (ipa_pop_func_from_list): Likewise.
11969 (ipa_push_func_to_list): Removed.
11970 (ipa_lattice_from_jfunc): Remove declaration.
11971 (ipa_get_jf_pass_through_result): Declare.
11972 (ipa_get_jf_ancestor_result): Likewise.
11973 (ipa_value_from_jfunc): Likewise.
11974 (ipa_get_lattice): Update.
11975 (ipa_lat_is_single_const): New function.
11976 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
11977 (ipa_init_func_list): Likewise.
11978 (ipa_pop_func_from_list): Likewise.
11979 (ipa_get_param_decl_index): Fix coding style.
11980 (count_formal_params): Removed.
11981 (count_formal_params_1): Renamed to count_formal_params.
11982 (ipa_populate_param_decls): Update to use descriptors vector.
11983 (ipa_initialize_node_params): Likewise.
11984 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
11985 (ipa_analyze_params_uses): Likewise.
11986 (ipa_free_node_params_substructures): Likewise and free also lattices
11988 (duplicate_array): Removed.
11989 (ipa_edge_duplication_hook): Add the new edge to the list of edge
11991 (ipa_node_duplication_hook): Update to use new lattices.
11992 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
11993 (ipa_free_all_structures_after_iinln): Likewise.
11994 (ipa_write_node_info): Update to use new lattices.
11995 (ipa_read_node_info): Likewise.
11996 (ipa_get_jf_pass_through_result): New function.
11997 (ipa_get_jf_ancestor_result): Likewise.
11998 (ipa_value_from_jfunc): Likewise.
11999 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
12000 * ipa-cp.c: Reimplemented.
12001 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
12002 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
12003 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
12004 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
12005 * doc/invoke.texi (devirt-type-list-size): Removed description.
12006 (ipa-cp-value-list-size): Added description.
12008 2011-07-18 Richard Henderson <rth@redhat.com>
12010 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
12011 before calling create_basic_block.
12013 2011-07-18 Jakub Jelinek <jakub@redhat.com>
12015 PR middle-end/49675
12016 * tree.c (build_common_builtin_nodes): Register
12017 __builtin_return_address, __cyg_profile_func_enter
12018 and __cyg_profile_func_exit.
12020 2011-07-18 Richard Henderson <rth@redhat.com>
12022 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
12023 (add_labels_and_missing_jumps): ... here.
12024 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
12026 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
12029 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
12030 of DImode hard registers in PLUS address chains.
12032 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12035 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
12036 (alpha*-*-freebsd*): Likewise.
12037 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
12038 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
12039 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
12040 crtprec80.o, crtfastmath.o to extra_parts for all targets.
12041 (ia64*-*-elf*): Remove extra_parts.
12042 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
12043 (sparc64-*-linux*): Likewise.
12044 (sparc64-*-freebsd*): Likewise.
12047 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
12048 (ia64*-*-linux*): Likewise.
12049 (mips64*-*-linux*): Likewise.
12050 (mips*-*-linux*): Likewise.
12052 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
12054 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
12056 2011-07-18 Richard Guenther <rguenther@suse.de>
12058 * gimplify.c (gimplify_expr): Use input_location, not saved_location
12059 when building new trees.
12061 2011-07-18 Richard Guenther <rguenther@suse.de>
12063 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
12064 expansion result to bitfield precision if required.
12066 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12068 * config.gcc (i[3456x]86-*-netware*): Remove.
12070 * gthr-nks.h: Remove.
12071 * configure.ac (enable_threads): Remove nks.
12072 * configure: Regenerate.
12074 * config/i386/i386.c (ix86_encode_section_info): Remove netware
12076 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
12077 <netware.h> reference.
12079 * config/i386/netware-libgcc.c,
12080 gcc/config/i386/netware-libgcc.def,
12081 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
12082 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
12083 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
12084 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
12086 * doc/extend.texi (Function Attributes,
12087 callee_pop_aggregate_return): Remove i?86-netware reference.
12088 * doc/install.texi (Configuration, --enable-threads): Remove nks.
12090 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12094 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12096 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
12099 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
12101 PR middle-end/49732
12102 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
12104 2011-07-16 Matthias Klose <doko@ubuntu.com>
12106 * doc/install.texi: Document --enable-static-libjava.
12108 2011-07-15 Richard Henderson <rth@redhat.com>
12110 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
12111 Replace all three arguments by returning a VEC of edges.
12112 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
12113 pointers and counts.
12114 (fix_edges_for_rarely_executed_code): Merge ...
12115 (rest_of_handle_partition_blocks): ... into...
12116 (partition_hot_cold_basic_blocks): ... here. Return todo items if
12117 any work was performed.
12118 (pass_partition_blocks): Clear todo_flags_finish.
12120 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
12121 Jakub Jelinek <jakub@redhat.com>
12122 Jonathan Wakely <jwakely.gcc@gmail.com>
12125 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
12126 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
12128 2011-07-15 Jason Merrill <jason@redhat.com>
12131 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
12132 rather than --tool_opts.
12134 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
12136 * doc/plugins.texi (Building GCC plugins): gengtype needs its
12137 corresponding gtype.state.
12139 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12142 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
12144 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
12147 * doc/md.texi (Standard Names): Document window_save.
12148 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
12149 expand_debug_expr and expand_debug_source_expr. If the target has
12150 a window_save instruction, adjust the ENTRY_VALUE_EXP.
12151 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
12152 SSA_NAME_VAR is a parameter.
12153 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
12154 * var-tracking.c (parm_reg_t): New type and associated vector type.
12155 (windowed_parm_regs): New variable.
12156 (adjust_insn): If the target has a window_save instruction and this
12157 is the instruction, make its effect on parameter registers explicit.
12158 (next_non_note_insn_var_location): New function.
12159 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
12160 (vt_add_function_parameter): If the target has a window_save insn,
12161 adjust the incoming RTL and record that in windowed_parm_regs.
12162 (vt_finalize): Free windowed_parm_regs.
12164 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
12166 * doc/invoke.texi (C6X Options): New section.
12167 * doc/md.texi (TI C6X family): New section.
12168 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
12170 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
12171 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
12172 Provide C6X definitions.
12173 * config/c6x/c6x.md: New file.
12174 * config/c6x/constraints.md: New file.
12175 * config/c6x/predicates.md: New file.
12176 * config/c6x/c6x-sched.md.in: New file.
12177 * config/c6x/c6x-sched.md: New file.
12178 * config/c6x/gensched.sh: New file.
12179 * config/c6x/c6x-mult.md.in: New file.
12180 * config/c6x/genmult.sh: New file.
12181 * config/c6x/c6x-mult.md: New file.
12182 * config/c6x/sync.md: New file.
12183 * config/c6x/c6x-protos.h: New file.
12184 * config/c6x/sfp-machine.h: New file.
12185 * config/c6x/c6x.c: New file.
12186 * config/c6x/c6x.h: New file.
12187 * config/c6x/crti.s: New file.
12188 * config/c6x/crtn.s: New file.
12189 * config/c6x/lib1funcs.asm: New file.
12190 * config/c6x/c6x-modes.def: New file.
12191 * config/c6x/genopt.sh: New file.
12192 * config/c6x/c6x.opt: New file.
12193 * config/c6x/c6x-tables.opt: New file.
12194 * config/c6x/c6x-opts.h: New file.
12195 * config/c6x/c6x-isas.def: New file.
12196 * config/c6x/elf.h: New file.
12197 * config/c6x/elf-common.h: New file.
12198 * config/c6x/uclinux-elf.h: New file.
12199 * config/c6x/t-c6x: New file.
12200 * config/c6x/t-c6x-elf: New file.
12201 * config/c6x/t-c6x-uclinux: New file.
12202 * config/c6x/t-c6x-softfp: New file.
12203 * config/c6x/gtd.c: New file.
12204 * config/c6x/gtf.c: New file.
12205 * config/c6x/ltd.c: New file.
12206 * config/c6x/ltf.c: New file.
12207 * config/c6x/ged.c: New file.
12208 * config/c6x/gef.c: New file.
12209 * config/c6x/led.c: New file.
12210 * config/c6x/lef.c: New file.
12211 * config/c6x/eqd.c: New file.
12212 * config/c6x/eqf.c: New file.
12213 * config/c6x/libgcc-c6xeabi.ver: New file.
12216 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
12217 PR rtl-optimization/11320
12218 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
12219 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
12220 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
12221 current_sched_info->compute_jump_reg_dependencies. Record which
12222 registers are used and which registers are set by the jump.
12223 Clear deps->reg_conditional_sets after a barrier.
12224 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
12225 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
12226 (init_deps): Initialize reg_conditional_sets.
12227 (free_deps): Clear reg_conditional_sets.
12228 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
12229 Mark registers live on entry of the fallthrough block and conditionally
12230 set as set by the jump. Mark registers live on entry of non-fallthrough
12231 blocks as used by the jump.
12232 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
12233 Mark new parameters as unused.
12235 2011-07-14 Andrew Pinski <pinskia@gmail.com>
12238 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
12239 Use fold_build2_loc instead of build2.
12240 Use the correct type for the new tree.
12242 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
12244 PR rtl-optimization/11320
12245 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
12246 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
12248 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
12251 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
12253 (*rotw<mode>): Use const_int_operand for operand2.
12254 Use match_scatch for operand3.
12255 (*rotb<mode>): Ditto
12256 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
12258 2011-07-14 Richard Guenther <rguenther@suse.de>
12260 PR tree-optimization/49651
12261 * tree-ssa-structalias.c (get_constraint_for_1): Properly
12262 handle dereferences with subvariables.
12264 2011-07-14 Richard Guenther <rguenther@suse.de>
12266 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
12267 (fold_stmt_1): Do it here directly on gimple and as a first thing.
12269 2011-07-14 Richard Guenther <rguenther@suse.de>
12271 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
12272 not bool_var when folding bool_var != 1 or bool_var == 0.
12274 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
12276 * haifa-sched.c (schedule_insns): Remove outdated comment.
12277 (schedule_block): When computing a known value for TODO_SPEC,
12278 just set it rather than using logical operations.
12279 (try_ready): Likewise. Use a local variable rather than a
12280 pointer to TODO_SPEC. Reorder an if statement to move the
12281 easy case to the then block.
12282 * sched-deps.c (dep_spec_p): New static function.
12283 (update_dep): Use it to decide whether to call
12284 change_spec_dep_to_hard.
12285 (get_back_and_forw_lists): Use it.
12286 (sd_resolve_dep): Likewise.
12287 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
12288 (haifa_note_mem_dep): Likewise.
12289 (check_dep): Likewise.
12290 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
12291 (sched_free_deps): Free in two passes.
12293 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
12295 PR middle-end/49736
12296 * expr.c (all_zeros_p): Undo bogus part of last change.
12298 2011-07-14 Matthias Klose <doko@ubuntu.com>
12300 * doc/extend.texi (optimize attribute): Fix typo.
12302 2011-07-14 Richard Guenther <rguenther@suse.de>
12304 * gimplify.c (gimplify_expr): Only do required conversions.
12306 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
12309 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
12310 i.e. use default_elf_select_section.
12311 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
12312 (READONLY_DATA_SECTION_ASM_OP): Remove.
12313 (TARGET_ASM_NAMED_SECTION): Move from here...
12314 * config/avr/avr.c: ...to here.
12315 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
12316 (avr_asm_named_section): Make static.
12318 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12321 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
12322 and crtfastmath.o for Linux/x86.
12324 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
12326 * haifa-sched.c: Include "hashtab.h"
12327 (sched_no_dce): New global variable.
12328 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
12329 SHADOW_P): New macros.
12330 (last_clock_var, cycle_issued_insns): Move declarations.
12331 (must_backtrack): New static variable.
12332 (struct delay_pair): New structure.
12333 (delay_htab, delay_htab_i2): New static variables.
12334 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
12335 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
12337 (dep_cost_1): If delay pairs exist, try to look up the insns and
12338 use the correct pair delay if we find them.
12339 (rank-for_schedule): Tweak priority for insns that must be scheduled
12340 soon to avoid backtracking.
12341 (queue_insn): Detect conditions which force backtracking.
12342 (ready_add): Likewise.
12343 (struct sched_block_state): Add member shadows_only_p.
12344 (struct haifa_save_data): New structure.
12345 (backtrack_queue): New static variable.
12346 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
12347 unschedule_insns_until, restore_last_backtrack_point,
12348 free_topmost_backtrack_point, free_backtrack_queue,
12349 estimate_insn_tick, estimate_shadow_tick): New functions.
12350 (prune_ready_list): New arg shadows_only_p. All callers changed.
12351 If true, remove everything that isn't SHADOW_P. Look up delay
12352 pairs and estimate ticks to avoid scheduling the first insn too early.
12353 (verify_shadows): New function.
12354 (schedule_block): Add machinery to enable backtracking.
12355 (sched_init): Take sched_no_dce into account when setting
12357 (free_delay_pairs): New function.
12358 (init_h_i_d): Initialize INSN_EXACT_TICK.
12359 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
12360 * sched-deps.c (sd_unresolve_dep): New function.
12361 * sched-int. (struct haifa_sched_info): New fields save_state
12363 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
12364 feeds_backtrack_insn and shadow_p.
12365 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
12366 (sched_no_dce): Declare variable.
12367 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
12368 sd_unresolve_dep): Declare functions.
12369 * modulo-sched.c (sms_sched_info): Clear the two new fields.
12370 * sched-rgn.c (rgn_const_sched_info): Likewise.
12371 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
12372 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
12373 (ebb_sched_info): Add them for the two new fields.
12374 (add_deps_for_risky_insns): Call add_delay_dependencies.
12376 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
12378 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
12380 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
12381 (rs6000_call_indirect_aix): Ditto.
12382 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
12383 (call_indirect_aix<ptrsize>_internal): Ditto.
12384 (call_indirect_aix<ptrsize>_nor11): Ditto.
12385 (call_indirect_aix<ptrsize>_internal2): Ditto.
12386 (call_value_indirect_aix<ptrsize>): Ditto.
12387 (call_value_indirect_aix<ptrsize>_internal): Ditto.
12388 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
12389 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
12390 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
12392 2011-07-13 Jason Merrill <jason@redhat.com>
12394 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
12396 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12398 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
12399 * config/spu/spu.md ("clrsb<mode>2"): New expander.
12401 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
12403 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
12404 * configure: Regenerate.
12406 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12408 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
12409 (asm_file_start): Remove.
12410 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
12411 free_bb_for_insn around code that modifies insns before
12412 restarting df analysis.
12414 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12417 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
12418 (LINK_SPEC): ... here.
12420 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
12422 * haifa-sched.c (struct sched_block_state): New.
12423 (schedule_block): Move some local variables into such a structure.
12425 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12427 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
12428 * config/i386/t-crtpc: Remove.
12429 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
12430 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
12432 (x86_64-*-darwin*): Likewise.
12433 (i[34567]86-*-linux*): Likewise.
12434 (x86_64-*-linux*): Likewise.
12436 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
12437 Handle -mpc32, -mpc64, -mpc80.
12439 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12441 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
12442 * config/alpha/t-crtfm: Remove.
12443 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
12444 * config/i386/t-crtfm: Remove.
12445 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
12446 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
12447 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
12448 * config/sparc/t-crtfm: Remove.
12450 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
12451 (alpha*-*-freebsd*): Likewise.
12452 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
12453 (x86_64-*-darwin*): Likewise.
12454 (i[34567]86-*-linux*): Likewise.
12455 (x86_64-*-linux*): Likewise.
12456 (x86_64-*-mingw*): Likewise.
12457 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
12458 (ia64*-*-freebsd*): Likewise.
12459 (ia64*-*-linux*): Likewise.
12460 (mips64*-*-linux*): Likewise.
12461 (mips*-*-linux*): Likewise.
12462 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
12463 (sparc64-*-linux*): Likewise.
12464 (sparc64-*-freebsd*): Likewise.
12466 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12468 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
12469 * config/darwin-crt3.c: Move to ../libgcc/config.
12470 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
12471 ($(T)crt3$(objext)): Remove.
12472 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
12473 ($(T)crt2$(objext)): Remove.
12474 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
12475 (powerpc64-*-darwin*): Likewise.
12477 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
12479 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
12481 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
12482 (addsi_1_zext): This.
12484 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
12486 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
12487 * doc/tm.texi: Regenerate.
12488 * target.def (mergeable_rodata_prefix): New defhookpod.
12489 * varasm.c (mergeable_string_section, mergeable_constant_section):
12490 Use it. Allocate name with alloca.
12492 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
12494 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
12496 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
12498 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
12501 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
12503 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
12504 (count_type_elements): Delete.
12505 (complete_ctor_at_level_p): Declare.
12506 * expr.c (flexible_array_member_p): New function, split out from...
12507 (count_type_elements): ...here. Make static. Replace allow_flexarr
12508 parameter with for_ctor_p. When for_ctor_p is true, return the
12509 number of elements that should appear in the top-level constructor,
12510 otherwise return an estimate of the number of scalars.
12511 (categorize_ctor_elements): Replace p_must_clear with p_complete.
12512 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
12513 (complete_ctor_at_level_p): New function, borrowing union logic
12514 from old categorize_ctor_elements_1.
12515 (mostly_zeros_p): Return true if the constructor is not complete.
12516 (all_zeros_p): Update call to categorize_ctor_elements.
12517 * gimplify.c (gimplify_init_constructor): Update call to
12518 categorize_ctor_elements. Don't call count_type_elements.
12519 Unconditionally prevent clearing for variable-sized types,
12520 otherwise rely on categorize_ctor_elements to detect
12521 incomplete initializers.
12523 2011-07-13 Richard Guenther <rguenther@suse.de>
12525 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
12526 the final type is integral.
12528 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
12530 * sched-int.h (struct _dep): Add member cost.
12531 (DEP_COST, UNKNOWN_DEP_COST): New macros.
12532 * sched-deps.c (init_dep_1): Initialize DEP_COST.
12533 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
12534 (sched_change_pattern): Reset it for dependent insns.
12536 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12538 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
12539 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
12540 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
12541 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
12542 (CRT0_S, MCRT0_S): Remove.
12543 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
12546 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
12548 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
12550 * cse.c (insert_with_costs): Put semi-colon after empty loop body
12552 * emit-rtl.c (push_to_sequence): Likewise.
12553 * haifa-sched.c (max_issue): Likewise.
12554 * matrix-reorg.c (add_allocation_site): Likewise.
12555 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
12556 * reload.c (alternative_allows_const_pool_ref): Likewise.
12557 * sched-rgn.c (rgn_add_block): Likewise.
12558 (rgn_fix_recovery_cfg): Likewise.
12559 * tree.c (attribute_list_contained): Likewise.
12561 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
12563 * config/i386/i386.c: Tidy processor feature bitmasks.
12564 (m_P4_NOCONA): New.
12566 2011-07-12 Andrew Pinski <pinskia@gmail.com>
12569 * cprop.c (find_implicit_sets): Correct the condition.
12571 2011-07-12 Richard Henderson <rth@redhat.com>
12574 * dwarf2out.h (dwarf_frame_regnum): Remove.
12575 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
12576 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
12577 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
12578 (execute_dwarf2_frame): Initialize them.
12579 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
12580 users of the macros with the variables.
12581 (expand_builtin_dwarf_sp_column): Revert last change.
12582 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
12583 result of DWARF_FRAME_REGNUM into a local variable.
12585 2011-07-12 Richard Henderson <rth@redhat.com>
12588 * config/i386/i386.c (x86_output_mi_thunk): Use
12589 machopic_indirect_call_target instead of machopic_indirection_name
12592 2011-07-12 Laurent GUERBY <laurent@guerby.net>
12593 Eric Botcazou <ebotcazou@adacore.com>
12595 * prefix.h: Wrap up in extern "C" block.
12597 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
12599 AMD bdver2 Enablement
12600 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
12601 (case ${target}): Add bdver2.
12602 * config/i386/driver-i386.c (host_detect_local_cpu): Let
12603 -march=native recognize bdver2 processors.
12604 * config/i386/i386-c.c (ix86_target_macros_internal): Add
12605 bdver2 def_and_undef
12606 * config/i386/i386.c (struct processor_costs bdver2_cost): New
12608 (m_BDVER2): New definition.
12609 (m_AMD_MULTIPLE): Includes m_BDVER2.
12610 (initial_ix86_tune_features): Add bdver2 tuning.
12611 (processor_target_table): Add bdver2 entry.
12612 (static const char *const cpu_names): Add bdver2 entry.
12613 (ix86_option_override_internal): Add bdver2 instruction sets.
12614 (ix86_issue_rate): Add bdver2.
12615 (ix86_adjust_cost): Add bdver2.
12616 (has_dispatch): Add bdver2.
12617 * config/i386/i386.h (TARGET_BDVER2): New definition.
12618 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
12619 (enum processor_type): Add PROCESSOR_BDVER2.
12620 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
12621 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
12624 2011-07-12 Richard Henderson <rth@redhat.com>
12627 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
12628 destination address in memory on some paths.
12630 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
12632 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
12633 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
12634 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
12635 * function.c (locate_and_pad_parm): Take it into account.
12636 * target.def (function_arg_round_boundary): New hook.
12637 * targhooks.c (default_function_arg_round_boundary): New function.
12638 * targhooks.h (default_function_arg_round_boundary): Declare.
12639 * doc/tm.texi: Regenerate.
12641 2011-07-12 Richard Guenther <rguenther@suse.de>
12643 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
12644 Do not perform no-op changes.
12646 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
12648 * config/arm/predicates.md (neon_struct_operand): Make a normal
12650 (neon_struct_or_register_operand): New predicate.
12651 * config/arm/neon.md (movmisalign<mode>): Replace predicates
12652 with neon_struct_or_register_operand.
12653 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
12654 neon_struct_operand instead of memory_operand.
12656 2011-07-12 Martin Jambor <mjambor@suse.cz>
12658 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
12659 * cgraph.c (cgraph_get_node_or_alias): Removed.
12660 (change_decl_assembler_name): Changed all calls to
12661 cgraph_get_node_or_alias to a call to cgraph_get_node.
12662 (cgraph_make_decl_local): Likewise.
12663 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
12664 * varasm.c (default_binds_local_p_1): Likewise.
12665 (decl_binds_to_current_def_p): Likewise.
12667 2011-07-12 Jakub Jelinek <jakub@redhat.com>
12669 PR tree-optimization/49712
12670 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
12672 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
12674 * genautomata.c (add_arc): Return void. All callers changed.
12675 (make_automaton): Remove dead code.
12677 2011-07-11 Richard Henderson <rth@redhat.com>
12679 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
12680 (DW_FRAME_POINTER_REGNUM): New.
12681 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
12682 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
12684 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
12685 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
12686 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
12688 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
12689 * dwarf2out.h (dwarf_frame_regnum): New.
12690 (struct cfa_loc): Document the domain of the reg member.
12692 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
12694 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
12695 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
12697 2011-07-11 Jakub Jelinek <jakub@redhat.com>
12700 * dwarf2out.c (int_shift_loc_descriptor): New function.
12701 (int_loc_descriptor): If shorter, emit i as
12702 (i >> shift), shift, DW_OP_shl for suitable shift value.
12703 Similarly, try to optimize large negative values using
12704 DW_OP_neg of a positive value if shorter.
12705 (size_of_int_shift_loc_descriptor): New function.
12706 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
12708 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
12709 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
12710 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
12712 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
12713 addend as added DW_OP_plus if it is shorter.
12715 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12717 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
12718 (DTORS_SECTION_ASM_OP): Define.
12720 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12722 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
12723 * config/t-dfprules: Move to ../libgcc/config.
12724 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
12725 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
12726 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
12727 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
12729 (i[34567]86-*-cygwin*): Likewise.
12730 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
12731 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
12732 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
12733 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
12734 D64PBIT_FUNCS, D128PBIT_FUNCS.
12736 2011-07-11 Richard Guenther <rguenther@suse.de>
12738 * tree-vrp.c (simplify_conversion_using_ranges): Manually
12739 translate the source value-range through the conversion chain.
12741 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
12743 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
12745 2011-07-11 Arthur Loiret <aloiret@debian.org>
12747 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
12748 a bi-arch compiler defaulting to 31-bit. In this case:
12749 (tmake_file): Add s390/t-linux64.
12750 * doc/install.texi: Add s390-linux to the list of targets supporting
12751 --enable-targets=all.
12753 2011-07-11 Arthur Loiret <aloiret@debian.org>
12754 Matthias Klose <doko@debian.org>
12756 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
12757 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
12758 (tm_file): Add mips/linux64.h.
12759 (tmake_file): Add mips/t-linux64.
12760 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
12761 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
12762 instead of hardcoded mabi=n32.
12763 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
12764 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
12767 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12769 * passes.c (init_optimization_passes): Add invariant motion pass
12770 after induction variable optimization.
12772 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
12775 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
12776 offsets 1..5 set cc0 in a usable way.
12778 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
12780 * tree.h (call_expr_arg): Remove.
12781 (call_expr_argp): Likewise.
12783 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
12785 * config/sparc/sparc.md (save_register_window_1): Rename to...
12786 (window_save): ...this.
12787 * config/sparc/sparc.c (emit_save_register_window): Rename to...
12788 (emit_window_save): ...this.
12789 (sparc_expand_prologue): Adjust to above renaming.
12791 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
12793 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
12796 2011-07-10 Richard Henderson <rth@redhat.com>
12798 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
12799 run final, instead of emitting text directly.
12801 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
12803 * config/i386/i386.c (ix86_option_override_internal): Turn on
12804 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
12805 small PIC models for TARGET_X32.
12807 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
12810 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
12814 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
12815 stray notes and debug insns by using prev_nonnote_nondebug_insn
12816 instead of PREV_INSN.
12818 2011-07-09 Richard Henderson <rth@redhat.com>
12820 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
12821 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
12822 * dwarf2out.c: ... here.
12823 (output_all_cfis): Remove.
12824 (dwarf2out_switch_text_section): Use output_cfis directly.
12825 (size_of_locs): Export.
12826 (output_loc_sequence, output_loc_sequence_raw): Export.
12827 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
12828 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
12829 output_cfa_loc_raw): Move to ...
12830 * dwarfcfi.c: ... here.
12831 * dwarf2out.h: Update decls.
12833 2011-07-09 Richard Henderson <rth@redhat.com>
12835 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
12836 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
12837 * dwarf2cfi.c: ... here.
12838 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
12839 (DWARF_ROUND, DWARF_CIE_ID): Remove.
12840 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
12841 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
12842 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
12844 2011-07-09 Richard Henderson <rth@redhat.com>
12846 * dwarf2cfi.c (cie_return_save): New.
12847 (queue_reg_save): Use compare_reg_or_pc.
12848 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
12849 (dwarf2out_frame_debug_expr): Likewise.
12850 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
12851 (initial_return_save): Likewise.
12852 (execute_dwarf2_frame): Save and restore initial return save from
12853 the cie to the fde.
12854 * config/mips/mips.c (mips_frame_set): Remove special case for
12855 DWARF_FRAME_RETURN_COLUMN.
12857 2011-07-09 Richard Henderson <rth@redhat.com>
12859 * dwarf2cfi.c (lookup_cfa): Remove.
12860 (execute_dwarf2_frame): Assert queues are empty on entry.
12861 Setup initial cfa directly, not via lookup_cfa.
12862 Don't clear args_size state here.
12864 2011-07-09 Richard Henderson <rth@redhat.com>
12866 * dwarf2cfi.c (add_cfi_vec): New.
12867 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
12868 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
12869 (execute_dwarf2_frame): Set add_cfi_vec.
12871 2011-07-09 Richard Henderson <rth@redhat.com>
12873 * defaults.h (ASM_COMMENT_START): Move here...
12874 * dwarf2asm.c: ... from here.
12875 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
12876 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
12877 * varasm.c: Likewise.
12879 2011-07-09 Richard Henderson <rth@redhat.com>
12882 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
12883 (create_cfi_notes): ... do it here instead.
12885 2011-07-09 Jakub Jelinek <jakub@redhat.com>
12888 * dwarf2out.c (size_of_int_loc_descriptor): New function.
12889 (address_of_int_loc_descriptor): Use it.
12890 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
12892 2011-07-09 Richard Henderson <rth@redhat.com>
12894 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
12895 (prologue, epilogue): New.
12896 (return, *rts): New.
12897 (blockage, setd, seti): New.
12898 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
12899 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
12900 (pdp11_saved_regno): New.
12901 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
12902 generate rtl instead of text.
12903 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
12904 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
12905 * config/pdp11/pdp11-protos.h: Update.
12907 2011-07-09 Richard Henderson <rth@redhat.com>
12909 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
12910 try to insert an rtl prologue here.
12911 (rs6000_output_function_epilogue): Similarly.
12912 * config/rs6000/rs6000.md (prologue): Emit a barrier to
12913 satisfy !TARGET_SCHED_PROLOG.
12914 (epilogue, sibcall_epilogue): Likewise.
12916 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
12918 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
12919 (FP_REG_P): Delete.
12920 (IN_OR_GLOBAL_P): Likewise.
12922 2011-07-08 Jason Merrill <jason@redhat.com>
12925 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
12926 compound assignment.
12928 * cgraph.c (cgraph_add_to_same_comdat_group): New.
12929 * cgraph.h: Declare it.
12930 * ipa.c (function_and_variable_visibility): Make sure thunks
12931 have the right visibility.
12933 2011-07-08 Richard Henderson <rth@redhat.com>
12936 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
12937 any tablejump vector.
12940 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
12941 end of the prologue.
12943 2011-07-08 Jakub Jelinek <jakub@redhat.com>
12946 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
12947 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
12948 * config/rs6000/vector.md (vector_select_<mode>,
12949 vector_select_<mode>_uns): Change second operand of NE to
12950 CONST0_RTX (<MODE>mode) instead of const0_rtx.
12951 * config/rs6000/altivec.md (*altivec_vsel<mode>,
12952 *altivec_vsel<mode>_uns): Expect second operand of NE to be
12953 zero_constant of the corresponding vector mode.
12954 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
12957 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
12959 * graphite-dependences.c (build_alias_set_powerset): Remove
12960 continue from loop, add one more assert.
12962 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
12965 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
12966 In particular, allow 8-bit values in r28 and r29.
12967 (avr_hard_regno_scratch_ok): Disallow any register that might be
12968 part of the frame pointer.
12969 (avr_hard_regno_rename_ok): Same.
12970 (avr_legitimate_address_p): Don't allow SUBREGs.
12972 2011-07-08 Julian Brown <julian@codesourcery.com>
12974 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
12976 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
12977 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
12978 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
12979 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
12980 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
12981 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
12982 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
12983 registers in big-endian mode.
12985 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
12987 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
12988 in terms of another.
12989 (write_attr_value): Write a cast if necessary.
12991 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
12992 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
12993 (REG_WORDS_BIG_ENDIAN): Document.
12994 * doc/tm.texi: Regenerate.
12995 * reload.c (operands_match_p): Take it into account.
12996 (reload_adjust_reg_for_mode): Likewise.
12997 * rtlanal.c (subreg_get_info): Likewise.
12999 2011-07-08 Richard Guenther <rguenther@suse.de>
13001 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
13004 2011-07-08 Kai Tietz <ktietz@redhat.com>
13006 * fold-const.c (fold_truth_andor): Factored out truth_andor
13007 label from fold_binary as function.
13008 (fold_binary_loc): Replace truth_andor lable
13009 by function fold_truth_andor.
13011 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
13013 PR middle-end/49519
13014 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
13015 check if address is stored in register. If so - give up.
13016 (check_sibcall_argument_overlap_1): Do not perform check of
13017 overlapping when it is call to address.
13019 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
13021 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
13024 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
13026 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
13027 GET_MODE_BITSIZE where appropriate.
13028 (widen_leading, expand_parity, expand_ctz, expand_ffs,
13029 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
13030 expand_float, expand_fix): Likewise.
13031 * expr.c (convert_move, convert_modes, expand_expr_real_2,
13032 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
13033 * stor-layout.c (get_mode_bounds): Likewise.
13034 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
13036 * convert.c (convert_to_integer): Likewise.
13037 * expmed.c (expand_shift_1): Likewise.
13039 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
13042 * optabs.c (expand_binop): Tighten conditions for doubleword
13044 (widen_bswap): Assert that mode bitsize and precision are the same.
13045 * stor-layout.c (get_best_mode): Skip modes that have lower
13046 precision than bitsize.
13047 * recog.c (simplify_while_replacing): Assert that bitsize and
13048 precision are the same.
13050 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13052 * Makefile.in (LIBGCOV): Remove.
13053 (libgcc.mvars): Remove LIBGCOV.
13054 * libgov.c: Move to ../libgcc.
13056 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13058 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
13060 2011-07-08 Martin Jambor <mjambor@suse.cz>
13062 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
13063 is too big for total scalarization.
13065 2011-07-07 Richard Henderson <rth@redhat.com>
13067 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
13068 (DBX_DEBUGGING_INFO): Undef.
13070 2011-07-07 Richard Henderson <rth@redhat.com>
13072 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
13073 Handle some opcodes specially for debugging.
13074 * print-rtl.c: Include dwarf2out.h
13075 (print_rtx): Handle NOTE_INSN_CFI.
13076 * Makefile.in (print-rtl.o): Update.
13078 2011-07-07 Richard Henderson <rth@redhat.com>
13080 * tree-pass.h (pass_dwarf2_frame): Declare.
13081 * passes.c (init_optimization_passes): Add it.
13082 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
13083 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
13084 make static, do not call add_cfis_to_fde.
13085 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
13086 dwarf2out_frame_init): Merge into...
13087 (execute_dwarf2_frame): ... here. New function.
13088 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
13089 saved_do_cfi_asm to a tri-state variable.
13090 (gate_dwarf2_frame, pass_dwarf2_frame): New.
13091 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
13092 if it has yet to be done. Don't call dwarf2cfi_function_init.
13093 * dwarf2out.h, debug.h: Update decls.
13094 * final.c (final_start_function): Don't call
13095 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
13096 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
13097 * toplev.c (lang_dependent_init): Likewise.
13099 2011-07-07 Richard Henderson <rth@redhat.com>
13101 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
13102 FDE_TABLE_INCREMENT): Replace with...
13103 (fde_vec): ... this, a new vector.
13104 (current_fde): Remove. Replace all users with cfun->fde.
13105 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
13106 (size_of_aranges, dwarf2out_finish): Likewise.
13107 (dwarf2out_alloc_current_fde): Break out from ...
13108 (dwarf2out_begin_prologue): ... here.
13109 (dwarf2out_frame_init): Remove.
13110 * dwarf2cfi.c: Update all users of current_fde.
13111 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
13112 * dwarf2out.h: Update decls.
13113 (dw_fde_node): Add fde_index member.
13114 * function.h (struct function): Add fde member.
13116 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
13117 Richard Henderson <rth@redhat.com>
13119 * dwarf2cfi.c (add_cfi): Remove.
13120 (dwarf2out_cfi_label): Remove force argument. Only generate the
13122 (add_fde_cfi): Simplify the different code paths.
13123 (add_cie_cfi): New.
13124 (old_cfa, old_cfa_remember): New.
13125 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
13126 (last_reg_save_label): Remove.
13127 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
13128 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
13129 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
13130 dwarf2out_frame_debug_cfa_expression,
13131 dwarf2out_frame_debug_cfa_restore,
13132 dwarf2out_frame_debug_cfa_window_save,
13133 dwarf2out_frame_debug_expr): Remove label parameter.
13134 (cfi_label_required_p, add_cfis_to_fde): New.
13135 (dwarf2out_frame_debug_after_prologue): New.
13136 (dwarf2cfi_frame_init): Initialize old_cfa.
13137 (dwarf2out_frame_debug_restore_state): Likewise.
13138 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
13139 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
13140 * final.c (final_start_function): Call
13141 dwarf2out_frame_debug_after_prologue.
13143 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
13144 Richard Henderson <rth@redhat.com>
13146 * dwarf2cfi.c (cfi_insn): New.
13147 (dwarf2out_cfi_label): Don't emit cfi label here.
13148 (add_fde_cfi): Create a NOTE_INSN_CFI.
13149 (dwarf2out_frame_debug): Setup cfi_insn.
13150 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
13151 (dwarf2out_cfi_begin_epilogue): Make static.
13152 (dwarf2out_frame_debug_restore_state): Make static.
13153 * dwarf2out.c (output_cfi_directive): Make static.
13154 (dwarf2out_emit_cfi): New.
13155 * dwarf2out.h: Update.
13156 * final.c (final): Remove CFI notes.
13157 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
13158 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
13159 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
13160 * insn-notes.def (NOTE_INSN_CFI): New.
13161 (NOTE_INSN_CFI_LABEL): New.
13162 * rtl.h (union rtunion_def): Add rt_cfi member.
13163 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
13165 2011-07-07 Richard Henderson <rth@redhat.com>
13167 * dwarf2cfi.c: New file.
13168 * Makefile.in (OBJS): Add it.
13169 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
13170 * gengtype.c (open_base_files): Include dwarf2out.h.
13171 * coretypes.h (enum var_init_status): Move from ...
13173 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
13174 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
13175 expand_builtin_dwarf_sp_column, init_return_column_size,
13176 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
13177 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
13178 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
13179 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
13180 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
13181 compute_barrier_args_size, dwarf2out_args_size,
13182 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
13183 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
13184 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
13185 queue_reg_save, dwarf2out_flush_queued_reg_saves,
13186 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
13187 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
13188 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
13189 dwarf2out_frame_debug_cfa_expression,
13190 dwarf2out_frame_debug_cfa_restore,
13191 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
13192 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
13193 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
13194 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
13195 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
13196 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
13197 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
13198 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
13199 dw_loc_descr_node): Move to dwarf2out.h.
13200 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
13201 mem_loc_descriptor): Export.
13202 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
13203 (dwarf2out_frame_init): Extract CIE generation code to
13204 dwarf2cfi_frame_init.
13206 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
13209 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
13210 MASK_V8PLUS, remove commented out flag and reorder.
13212 2011-07-07 Jakub Jelinek <jakub@redhat.com>
13215 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
13216 one non-complex and one complex argument, call c_save_expr on both
13219 2011-07-07 Martin Jambor <mjambor@suse.cz>
13221 PR middle-end/49495
13222 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
13223 (verify_cgraph_node): Some functinality moved to
13224 verify_edge_corresponds_to_fndecl, call it.
13226 2011-07-07 Joseph Myers <joseph@codesourcery.com>
13228 * config.gcc (*local*): Remove.
13229 * doc/install-old.texi: Don't mention local configurations.
13231 2011-07-07 Jakub Jelinek <jakub@redhat.com>
13234 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
13235 referencing debug insns that have been reset.
13236 (dead_debug_insert_before): Don't assert reg is non-NULL,
13237 instead return immediately if it is NULL.
13239 2011-07-07 Joseph Myers <joseph@codesourcery.com>
13241 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
13243 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
13245 * hw-doloop.c: New file.
13246 * hw-doloop.h: New file.
13247 * Makefile.in (OBJS): Add hw-doloop.o.
13248 (hw-doloop.o): New rule.
13249 ($(obj_out_file)): Add hw-doloop.h dependency.
13250 * config/bfin/bfin.c: Include "hw-doloop.h".
13251 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
13252 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
13253 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
13254 type changed to hwloop_info. Return bool, true if the loop was
13255 successfully optimized. Remove code that was moved to
13256 hw-doloop.c, and adjust other parts.
13257 (hwloop_fail): New static function, containing parts that used
13258 to be in bfin_optimize_loop.
13259 (bfin_discover_loop, bfin_discover_loops, free_loops,
13260 bfin_reorder_loops): Remove.
13261 (hwloop_pattern_reg): New static function.
13262 (bfin_doloop_hooks): New variable.
13263 (bfin_reorg_loops): Remove most code, call reorg_loops.
13264 * config/bfin/bfin.md (doloop_end splitter): Also enable if
13265 loop counter is a memory_operand.
13267 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
13269 * config.gcc: Support --with-multilib-list for x86 Linux targets.
13271 * configure.ac: Mention x86-64 for --with-multilib-list.
13272 * configure: Regenerated.
13274 * config/i386/gnu-user64.h (SPEC_64): Support x32.
13275 (SPEC_32): Likewise.
13276 (ASM_SPEC): Likewise.
13277 (LINK_SPEC): Likewise.
13278 (TARGET_THREAD_SSP_OFFSET): Likewise.
13279 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
13282 * config/i386/i386.h (TARGET_X32): New.
13283 (TARGET_LP64): New.
13284 (LONG_TYPE_SIZE): Likewise.
13285 (POINTER_SIZE): Likewise.
13286 (POINTERS_EXTEND_UNSIGNED): Likewise.
13287 (OPT_ARCH64): Support x32.
13288 (OPT_ARCH32): Likewise.
13290 * config/i386/i386.opt (mx32): New.
13292 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
13293 (GLIBC_DYNAMIC_LINKERX32): Likewise.
13294 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
13295 (GLIBC_DYNAMIC_LINKERX32): Likewise.
13297 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
13298 (BIONIC_DYNAMIC_LINKERX32): Likewise.
13299 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
13301 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
13303 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
13305 * doc/invoke.texi: Document -mx32.
13307 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
13309 * doc/invoke.texi (mwords-little-endian): Deprecate.
13310 * config/arm/arm.opt (mwords-little-endian): Likewise.
13311 * config/arm/arm.c (arm_option_override): Warn about the deprecation
13312 of -mwords-little-endian.
13314 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
13316 * reload1.c (choose_reload_regs): Use mode sizes to check whether
13317 an old reload register completely defines the required value.
13319 2011-07-07 Richard Guenther <rguenther@suse.de>
13321 * fold-const.c (fold_unary_loc): Do not strip sign-changes
13324 2011-07-07 Richard Guenther <rguenther@suse.de>
13326 * tree-vrp.c (simplify_conversion_using_ranges): New function.
13327 (simplify_stmt_using_ranges): Call it.
13329 2011-07-07 Kai Tietz <ktietz@redhat.com>
13331 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
13332 (lookup_logical_inverted_value): Likewise.
13333 (simplify_bitwise_binary_1): Likewise.
13334 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
13336 2011-07-07 Joseph Myers <joseph@codesourcery.com>
13338 * gcc.c (%[Spec]): Don't document.
13339 (struct spec_list): Update comment.
13340 (do_spec_1): Don't handle %[Spec].
13341 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
13343 2011-07-07 Joseph Myers <joseph@codesourcery.com>
13345 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
13346 default based on TARGET_ASM_NAMED_SECTION.
13347 * common/common-target.def (have_named_sections): Default to true.
13348 * common/config/default-common.c: Don't include tm.h.
13349 * common/config/picochip/picochip-common.c
13350 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
13351 * common/config/m32c/m32c-common.c: Remove.
13352 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
13353 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
13354 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
13355 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
13356 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
13357 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
13358 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
13360 2011-07-07 Jakub Jelinek <jakub@redhat.com>
13362 PR middle-end/49640
13363 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
13364 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
13366 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13368 PR libmudflap/49550
13369 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
13371 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13374 * configure.ac (gcc_cv_as_hidden): Also accept
13375 x86_64-*-solaris2.1[0-9]*.
13376 (gcc_cv_as_cfi_directive): Likewise.
13377 (gcc_cv_as_comdat_group_group): Likewise.
13378 (set_have_as_tls): Likewise.
13379 * configure: Regenerate.
13380 * config.gcc (i[34567]86-*-solaris2*): Also handle
13381 x86_64-*-solaris2.1[0-9]*.
13382 * config.host (i[34567]86-*-solaris2*): Likewise.
13383 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
13384 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
13385 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
13386 (TARGET_LD_EMULATION): Use it.
13387 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
13388 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
13389 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
13390 (ASM_CPU64_DEFAULT_SPEC): Define.
13391 (ASM_CPU_SPEC): Use %(asm_cpu_default).
13392 (ASM_SPEC): Redefine.
13393 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
13394 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
13395 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
13396 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
13398 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
13400 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13402 * config/sol2.h (ASM_SPEC): Split into ...
13403 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
13404 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
13405 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
13406 (ASM_SPEC): Use ASM_SPEC_BASE.
13407 * config/sparc/sol2.h (ASM_SPEC): Redefine.
13409 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
13411 * config/avr/avr.md (*reload_insi): Change predicate #1 to
13412 const_int_operand. Ditto for peep2 producing this insn.
13413 Add argument to output_reload_insisf call.
13414 (*movsi,*movsf): Add argument to output_movsisf call.
13415 (*reload_insf): New insn and new peep2 to produce it.
13416 * config/avr/avr-protos.h (output_movsisf): Change prototype.
13417 (output_reload_insisf): Change prototype.
13418 * config/avr/avr.c (avr_asm_len): New function.
13419 (output_reload_insisf): Rewrite.
13420 (output_movsisf): Change prototype. output_reload_insisf for
13421 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
13422 (adjust_insn_length): Add argument to output_movsisf and
13423 output_reload_insisf call.
13425 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
13427 * emit-rtl.c (paradoxical_subreg_p): New function.
13428 * rtl.h (paradoxical_subreg_p): Declare.
13429 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
13430 apply_distributive_law, simplify_comparison, simplify_set): Use it.
13431 * cse.c (record_jump_cond, cse_insn): Likewise.
13432 * expr.c (force_operand): Likewise.
13433 * rtlanal.c (num_sign_bit_copies1): Likewise.
13434 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
13435 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
13436 (push_reload): Use precision to check for paradoxical subregs.
13437 * expmed.c (extract_bit_field_1): Likewise.
13439 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
13440 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
13441 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
13442 simplify_set, simplify_logical, expand_compound_operation,
13443 make_extraction, force_to_mode, if_then_else_cond, extended_count,
13444 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
13445 record_value_for_reg): Likewise.
13446 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
13447 * simplify-rtx. c (simplify_unary_operation_1,
13448 simplify_binary_operation_1, simplify_const_relational_operation):
13451 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
13452 instead of GET_MODE_BITSIZE where appropriate.
13453 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
13454 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
13455 init_num_sign_bit_copies_in_rep): Likewise.
13456 * cse.c (fold_rtx, cse_insn): Likewise.
13457 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
13458 * simplify-rtx.c (simplify_unary_operation_1,
13459 simplify_const_unary_operation, simplify_binary_operation_1,
13460 simplify_const_binary_operation, simplify_ternary_operation,
13461 simplify_const_relational_operation, simplify_subreg): Likewise.
13462 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
13463 simplify_if_then_else, simplify_set, expand_compound_operation,
13464 expand_field_assignment, make_extraction, if_then_else_cond,
13465 make_compound_operation, force_to_mode, make_field_assignment,
13466 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
13467 extended_count, try_widen_shift_mode, simplify_shift_const_1,
13468 simplify_comparison, record_promoted_value, simplify_compare_const,
13469 record_dead_and_set_regs_1): Likewise.
13472 * simplify-rtx.c (simplify_const_binary_operation): Use the
13473 shift_truncation_mask hook instead of performing modulo by width.
13474 Compare against mode precision, not bitsize.
13475 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
13476 Use shift_truncation_mask instead of constructing the value manually.
13478 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
13480 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
13482 (rs6000_save_toc_in_prologue_p): Ditto.
13484 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
13485 up the static chain (r11) during indirect function calls.
13486 (-msave-toc-indirect): New undocumented debug switch.
13488 * config/rs6000/rs6000.c (struct machine_function): Add
13489 save_toc_in_prologue field to note whether the prologue needs to
13490 save the TOC value in the reserved stack location.
13491 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
13492 to save the TOC in the prologue, do so.
13493 (rs6000_trampoline_init): Don't allow creating AIX style
13494 trampolines if -mno-r11 is in effect.
13495 (rs6000_call_indirect_aix): New function to create AIX style
13496 indirect calls, adding support for -mno-r11 to suppress loading
13497 the static chain, and saving the TOC in the prologue instead of
13499 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
13500 TOC in the prologue.
13502 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
13504 (TOC_REGNUM): Ditto.
13505 (STATIC_CHAIN_REGNUM): Ditto.
13506 (ARG_POINTER_REGNUM): Ditto.
13507 (SFP_REGNO): Delete, unused.
13508 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
13509 function descriptor offsets.
13510 (TOC_SAVE_OFFSET_64BIT): Ditto.
13511 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
13512 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
13513 (AIX_FUNC_DESC_SC_32BIT): Ditto.
13514 (AIX_FUNC_DESC_SC_64BIT): Ditto.
13515 (ptrload): New mode attribute for the appropriate load of a pointer.
13516 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
13517 (call_indirect_aix64): Ditto.
13518 (call_value_indirect_aix32): Ditto.
13519 (call_value_indirect_aix64): Ditto.
13520 (call_indirect_nonlocal_aix32_internal): Ditto.
13521 (call_indirect_nonlocal_aix32): Ditto.
13522 (call_indirect_nonlocal_aix64_internal): Ditto.
13523 (call_indirect_nonlocal_aix64): Ditto.
13524 (call): Rewrite AIX indirect function calls. Add support for
13525 eliminating the static chain, and for moving the save of the TOC
13526 to the function prologue.
13527 (call_value): Ditto.
13528 (call_indirect_aix<ptrsize>): Ditto.
13529 (call_indirect_aix<ptrsize>_internal): Ditto.
13530 (call_indirect_aix<ptrsize>_internal2): Ditto.
13531 (call_indirect_aix<ptrsize>_nor11): Ditto.
13532 (call_value_indirect_aix<ptrsize>): Ditto.
13533 (call_value_indirect_aix<ptrsize>_internal): Ditto.
13534 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
13535 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
13536 (call_nonlocal_aix32): Relocate in the rs6000.md file.
13537 (call_nonlocal_aix64): Ditto.
13539 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
13540 -mno-r11 documentation.
13542 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
13545 * doc/extend.texi (Compound Literals): Fix typo.
13547 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
13549 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
13551 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
13553 * configure.ac (plugin-version.h): Generate
13554 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
13555 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
13558 * configure: Regenerate.
13560 * doc/plugins.texi (Building GCC plugins): Mention
13561 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
13563 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
13565 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
13566 * combine.c (make_extraction, gen_lowpart_or_truncate,
13567 apply_distributive_law, simplify_comparison,
13568 reg_truncated_to_mode, record_truncated_value): Use it.
13569 * cse.c (notreg_cost): Likewise.
13570 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
13571 * expr.c (convert_move, convert_modes): Likewise.
13572 * optabs.c (expand_binop, expand_unop): Likewise.
13573 * postreload.c (move2add_last_label): Likewise.
13574 * regmove.c (optimize_reg_copy_3): Likewise.
13575 * rtlhooks.c (gen_lowpart_general): Likewise.
13576 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
13578 2011-07-06 Joseph Myers <joseph@codesourcery.com>
13580 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
13582 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
13584 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
13585 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
13586 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
13587 (simplify_const_unary_operation, simplify_binary_operation_1,
13588 simplify_const_binary_operation, simplify_const_relational_operation):
13589 Use them. Use GET_MODE_MASK for masking and sign-extensions.
13590 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
13591 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
13592 simplify_shift_const_1, simplify_comparison): Likewise.
13593 * expr.c (convert_modes): Likewise.
13594 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
13595 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
13596 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
13598 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
13600 2011-07-06 Richard Guenther <rguenther@suse.de>
13602 PR tree-optimization/49645
13603 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
13604 register variables.
13605 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
13606 in type qualification here ...
13607 (copy_reference_ops_from_ref): ... not here.
13608 (vn_reference_lookup_3): ... or here.
13609 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
13610 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
13612 2011-07-06 Ian Lance Taylor <iant@google.com>
13614 * doc/install.texi (Configuration): It's
13615 --enable-gnu-indirect-function, not --enable-indirect-function.
13617 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
13619 * simplify-rtx.c (simplify_const_binary_operation): Use the
13620 shift_truncation_mask hook instead of performing modulo by width.
13621 Compare against mode precision, not bitsize.
13622 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
13623 Use shift_truncation_mask instead of constructing the value manually.
13625 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
13627 PR middle-end/47383
13628 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
13629 address computation and convert to address_mode if needed.
13631 2011-07-06 Richard Guenther <rguenther@suse.de>
13633 * tree.c (build_common_tree_nodes_2): Merge with
13634 build_common_tree_nodes.
13635 * tree.h (build_common_tree_nodes): Adjust prototype.
13636 (build_common_tree_nodes_2): Remove.
13637 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
13638 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
13640 2011-07-05 Jakub Jelinek <jakub@redhat.com>
13642 PR tree-optimization/49618
13643 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
13644 t recurse on the decl.
13645 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
13646 return true if expr isn't known to be defined in current
13647 TU or some other LTO partition.
13649 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
13651 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
13652 override CASE_VALUES_THRESHOLD.
13654 * stmt.c (toplevel): Include params.h.
13655 (case_values_threshold): Use the --param case-values-threshold
13656 value if non-zero, otherwise use machine dependent value.
13657 (expand_case): Use case_values_threshold.
13659 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
13661 * doc/invoke.texi (--param case-values-threshold): Document.
13663 2011-07-05 Richard Henderson <rth@redhat.com>
13665 * dwarf2out.c (dwarf2out_cfi_label): Make static.
13666 (dwarf2out_flush_queued_reg_saves): Make static.
13667 (dwarf2out_reg_save): Remove.
13668 (dwarf2out_return_save): Remove.
13669 (dwarf2out_return_reg): Remove.
13670 (dwarf2out_reg_save_reg): Remove.
13671 (dwarf2out_def_cfa): Merge into ...
13672 (dwarf2out_frame_init): ... here.
13673 * dwarf2out.h, tree.h: Remove declarations as necessary.
13675 2011-07-05 Richard Henderson <rth@redhat.com>
13677 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
13678 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
13679 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
13682 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
13683 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
13684 (process_epilogue): Don't call dwarf2out_def_cfa.
13686 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
13687 indicate the return address save.
13688 (process_cfa_register): Likewise.
13690 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
13691 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
13693 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
13694 for ar.pfs save at alloc insn.
13696 2011-07-05 Richard Henderson <rth@redhat.com>
13698 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
13699 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
13700 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
13701 stack pointer save.
13702 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
13703 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
13704 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
13705 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
13707 2011-07-05 Richard Henderson <rth@redhat.com>
13709 * config/vax/vax.md (define_c_enum unspecv): New. Define the
13710 VUNSPEC_* constants here instead of via define_constants.
13711 (VUNSPEC_PEM): New constant.
13712 (procedure_entry_mask): New insn.
13713 (prologue): New expander.
13714 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
13715 (vax_expand_prologue): Rename from vax_output_function_prologue;
13716 emit rtl instead of text.
13717 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
13718 (print_operand): Add 'x' prefix.
13720 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
13722 PR middle-end/47715
13723 * calls.c (precompute_register_parameters): Promote the function
13724 argument before checking non-legitimate constant.
13726 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
13728 PR tree-optimization/47654
13729 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
13730 (lst_do_strip_mine_loop): Return an int.
13731 (lst_do_strip_mine): Same.
13732 (scop_do_strip_mine): Same.
13733 (scop_do_block): Loop blocking should strip-mine at least two loops.
13734 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
13735 (scop_do_interchange): Same.
13736 * graphite-poly.h (scop_do_interchange): Update declaration.
13737 (scop_do_strip_mine): Same.
13739 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
13741 * graphite-clast-to-gimple.c (precision_for_value): Removed.
13742 (precision_for_interval): Removed.
13743 (gcc_type_for_interval): Use mpz_sizeinbase.
13745 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
13747 * graphite-ppl.h (value_max): Correct computation of max.
13749 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
13751 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
13753 2011-07-05 Richard Guenther <rguenther@suse.de>
13755 * c-decl.c (c_init_decl_processing): Defer building common
13756 tree nodes to c_common_nodes_and_builtins.
13758 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
13760 PR tree-optimization/49580
13761 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
13762 the loop's number of iterations.
13763 * tree-parloops.c (transform_to_exit_first_loop): Add the
13764 handling of the loop's number of iterations before the call
13765 to gimple_duplicate_sese_tail.
13766 Insert the stmt caclculating the new rhs of the loop's
13767 condition stmt to the preheader instead of iters_bb.
13769 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
13771 PR rtl-optimization/47449
13772 * fwprop.c (forward_propagate_subreg): Don't propagate hard
13773 register nor zero/sign extended hard register.
13775 2011-07-05 Richard Guenther <rguenther@suse.de>
13777 PR tree-optimization/49518
13778 PR tree-optimization/49628
13779 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
13780 irrelevant and invariant data-references.
13781 (vect_analyze_data_ref_access): For invariant loads clear the
13784 2011-07-04 Jakub Jelinek <jakub@redhat.com>
13786 PR rtl-optimization/49619
13787 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
13788 pass VOIDmode as op0_mode to recursive call, and return temp even
13789 when different from tor, just if it is not IOR of the original
13792 PR rtl-optimization/49472
13793 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
13794 negating MULT, negate the second operand instead of first.
13795 (simplify_binary_operation_1) <case MULT>: If one operand is
13796 a NEG and the other is MULT, don't attempt to optimize by negation
13797 of the MULT operand if it only moves the NEG operation around.
13800 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
13801 get_current_def return value if it can't be trusted to be
13802 the current value of the variable in the current bb.
13804 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
13807 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
13808 general register to memory for !TARGET_INTER_UNIT_MOVES.
13810 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
13813 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
13814 instead of TREE_READONLY.
13816 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
13818 * doc/extend.texi (AVR Built-in Functions): Update documentation
13819 of __builtin_avr_fmul*.
13820 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
13821 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
13822 * config/avr/avr.md (fmul): Rename to fmul_insn.
13823 (fmuls): Rename to fmuls_insn.
13824 (fmulsu): Rename to fmulsu_insn.
13825 (fmul,fmuls,fmulsu): New expander.
13826 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
13827 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
13828 * config/avr/libgcc.S (__fmul): New function.
13829 (__fmuls): New function.
13830 (__fmulsu,__fmulsu_exit): New function.
13832 2011-07-04 Richard Guenther <rguenther@suse.de>
13834 PR tree-optimization/49615
13835 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
13836 basic-block index check.
13838 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
13840 * longlong.h (count_leading_zeros, count_trailing_zeros,
13841 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
13844 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
13846 PR tree-optimization/49610
13847 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
13850 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
13851 Olivier Hainque <hainque@adacore.com>
13852 Nicolas Setton <setton@adacore.com>
13854 * tree.h (TYPE_ARTIFICIAL): New flag.
13855 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
13856 the DIE of the type if it is artificial.
13857 (gen_array_type_die): Likewise.
13858 (gen_enumeration_type_die): Likewise.
13859 (gen_struct_or_union_type_die): Likewise.
13860 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
13861 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
13863 2011-07-01 Jakub Jelinek <jakub@redhat.com>
13865 * tree-object-size.c (pass_through_call): Handle
13866 BUILT_IN_ASSUME_ALIGNED.
13868 2011-07-01 Martin Jambor <mjambor@suse.cz>
13870 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
13872 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
13874 PR middle-end/48016
13875 * explow.c (update_nonlocal_goto_save_area): Use proper mode
13876 for stack save area.
13877 * function.c (expand_function_start): Likewise.
13879 2011-07-01 Richard Guenther <rguenther@suse.de>
13881 PR middle-end/49596
13882 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
13883 may have unknown refs.
13885 2011-07-01 Kai Tietz <ktietz@redhat.com>
13887 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
13889 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13891 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
13892 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
13893 (Specific, mips-sgi-irix6): Likewise.
13895 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13897 PR libmudflap/49549
13898 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
13900 2011-07-01 Jakub Jelinek <jakub@redhat.com>
13902 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
13903 [idx]= and [idx1 ... idx2]= before initializers if needed for
13904 array initializers.
13906 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
13908 * config.gcc (score-*-elf): Remove score7.o.
13909 * config/score/t-score-elf: Likewise.
13910 * config/score/score.c: Merge score7 to score.c and
13911 remove forwarding functions.
13912 * config/score/score7.c: Deleted.
13913 * config/score/score7.h: Deleted.
13915 2011-07-01 Richard Guenther <rguenther@suse.de>
13917 PR tree-optimization/49603
13918 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
13920 2011-06-30 Martin Jambor <mjambor@suse.cz>
13922 * tree-sra.c (struct access): Rename total_scalarization to
13923 grp_total_scalarization
13924 (completely_scalarize_var): New function.
13925 (sort_and_splice_var_accesses): Set total_scalarization in the
13926 representative access.
13927 (analyze_access_subtree): Propagate total scalarization accross the
13928 tree, no holes in totally scalarized trees, simplify coverage
13930 (analyze_all_variable_accesses): Call completely_scalarize_var instead
13931 of completely_scalarize_record.
13933 2011-06-30 Richard Henderson <rth@redhat.com>
13935 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
13936 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
13937 * config/i386/i386.c: Don't include dwarf2out.h.
13938 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
13939 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
13940 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
13941 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
13942 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
13944 2011-06-30 Richard Henderson <rth@redhat.com>
13946 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
13947 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
13948 * final.c (final_scan_insn): Look for it, and invoke
13949 dwarf2out_frame_debug before the insn if found.
13951 2011-06-30 Richard Henderson <rth@redhat.com>
13953 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
13954 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
13956 2011-06-30 Richard Henderson <rth@redhat.com>
13958 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
13959 Define a vector of this type.
13960 (regs_saved_in_regs): Use a VEC.
13961 (num_regs_saved_in_regs): Remove.
13962 (compare_reg_or_pc): New.
13963 (record_reg_saved_in_reg): Split out from...
13964 (dwarf2out_flush_queued_reg_saves): ... here.
13965 (clobbers_queued_reg_save): Update for VEC.
13966 (reg_saved_in): Likewise.
13967 (dwarf2out_frame_debug_init): Likewise.
13968 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
13969 (dwarf2out_frame_debug_cfa_register): Likewise.
13971 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
13973 PR tree-optimization/49572
13974 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
13975 type of the RHS instead of that of the LHS for the expression type.
13977 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
13979 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
13982 2011-06-30 Richard Guenther <rguenther@suse.de>
13984 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
13985 * tree-ssa-structalias.c (create_variable_info_for): Do not
13986 add initial constraints for non-var-decls. Properly handle
13987 globals in other ltrans partitions.
13988 (intra_create_variable_infos): Manually create constraints for
13989 the fake no-alias parameter.
13990 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
13991 and assert there are no clones.
13993 2011-06-30 Richard Guenther <rguenther@suse.de>
13995 PR tree-optimization/46787
13996 * tree-data-ref.c (dr_address_invariant_p): Remove.
13997 (find_data_references_in_stmt): Invariant accesses are ok now.
13998 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
13999 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
14002 2011-06-30 Martin Jambor <mjambor@suse.cz>
14004 PR tree-optimization/49094
14005 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
14006 (build_accesses_from_assign): Use it.
14008 2011-06-30 Jakub Jelinek <jakub@redhat.com>
14010 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
14011 handling of BUILT_IN_ASSUME_ALIGNED.
14014 * dwarf2out.c (output_abbrev_section): Don't return early
14015 if abbrev_die_table_in_use is 1.
14016 (dwarf2out_finish): Instead don't call output_abbrev_section
14017 nor emit abbrev_section_label in that case.
14019 2011-06-30 Nick Clifton <nickc@redhat.com>
14021 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
14024 2011-06-30 Jakub Jelinek <jakub@redhat.com>
14026 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
14027 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
14029 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
14031 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
14032 both pattern and original statements if necessary.
14033 (vect_transform_loop): Likewise.
14034 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
14035 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
14036 Mark the pattern statement only if the original statement doesn't
14038 (process_use): Call vect_mark_relevant with additional parameter.
14039 (vect_mark_stmts_to_be_vectorized): Likewise.
14040 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
14041 (vect_analyze_stmt): Handle both pattern and original statements
14043 (vect_transform_stmt): Don't store vectorized pattern statement
14044 in the original statement.
14045 (vect_is_simple_use_1): Use related pattern statement only if the
14046 original statement is irrelevant.
14047 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
14049 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
14051 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
14053 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
14055 (TARGET_AVX128_OPTIMAL): New definition.
14056 * config/i386/i386.c (initial_ix86_tune_features): Initialize
14057 X86_TUNE_AVX128_OPTIMAL entry.
14058 (ix86_option_override_internal): Enable the generation
14059 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
14060 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
14061 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
14063 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
14065 PR tree-optimization/49539
14066 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
14067 names by means of stmt_references_abnormal_ssa_name.
14068 (associate_plusminus): Call can_propagate_from before propagating
14069 from definition statements.
14070 (ssa_forward_propagate_and_combine): Remove superfluous newline.
14072 2011-06-29 Richard Guenther <rguenther@suse.de>
14074 * doc/invoke.texi: Document -scev dump modifier.
14075 * tree-pass.h (TDF_SCEV): New dump flag.
14076 * tree-dump.c (dump_option_value_in): Add scev.
14077 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
14078 * tree-scalar-evolution.c: Likewise.
14080 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
14082 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
14083 (cxa_type_match): Correct declaration.
14084 (__gnu_unwind_pr_common): Reconstruct additional indirection
14085 when __cxa_type_match returns succeeded_with_ptr_to_base.
14087 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14089 PR rtl-optimization/49114
14090 * reload.c (struct replacement): Remove SUBREG_LOC member.
14091 (push_reload): Do not set it.
14092 (push_replacement): Likewise.
14093 (subst_reload): Remove dead code.
14094 (copy_replacements): Remove assertion.
14095 (copy_replacements_1): Do not handle SUBREG_LOC.
14096 (move_replacements): Likewise.
14097 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
14098 Detect subregs via recursive descent instead of via SUBREG_LOC.
14100 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
14102 * config/avr/avr.c (avr_encode_section_info): Dispatch to
14103 default_encode_section_info.
14105 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
14107 PR tree-optimization/49545
14108 * builtins.c (get_object_alignment_1): Update function comment.
14109 Do not use DECL_ALIGN for functions, but test
14110 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
14111 * fold-const.c (get_pointer_modulus_and_residue): Don't check
14112 for functions here.
14113 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
14115 2011-06-29 Jakub Jelinek <jakub@redhat.com>
14118 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
14119 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
14121 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
14124 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
14125 about uninitialized data attributed 'progmem' from here...
14126 (avr_encode_section_info): ...to this new function.
14127 (TARGET_ENCODE_SECTION_INFO): New define.
14128 (avr_section_type_flags): For data in ".progmem.data", remove
14129 section flag SECTION_WRITE.
14131 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
14133 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
14135 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
14136 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
14137 (__umulhisi3): Ditto.
14138 * config/avr/avr.md (mulhisi3): New insn expender.
14139 (umulhisi3): New insn expender.
14140 (*mulhisi3_call): New insn.
14141 (*umulhisi3_call): New insn.
14143 2011-06-28 Joseph Myers <joseph@codesourcery.com>
14145 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
14147 2011-06-28 Richard Henderson <rth@redhat.com>
14149 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
14150 all code and arguments that handled pushes. Update all callers.
14152 2011-06-28 Richard Henderson <rth@redhat.com>
14154 * config/arm/arm.c (arm_output_function_prologue): Don't call
14155 thumb1_output_function_prologue.
14156 (arm_expand_prologue): Avoid dead store.
14157 (number_of_first_bit_set): Use ctz_hwi.
14158 (thumb1_emit_multi_reg_push): New.
14159 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
14160 to emit the entire prologue as rtl.
14161 (thumb1_output_interwork): Split out from
14162 thumb1_output_function_prologue.
14163 (thumb1_output_function_prologue): Remove.
14164 (arm_attr_length_push_multi): Handle thumb1.
14165 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
14166 (prologue_thumb1_interwork): New.
14167 (*push_multi): Allow thumb1; use push_mult_memory_operand.
14168 * config/arm/predicates.md (push_mult_memory_operand): New.
14170 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
14172 * config/sparc/sync.md (*stbar): Delete.
14173 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
14175 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
14177 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
14179 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14181 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
14182 (TARGET_64BIT_DEFAULT): Define.
14183 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
14185 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
14187 2011-06-28 Joseph Myers <joseph@codesourcery.com>
14189 * common.opt (in_lto_p): New Variable entry.
14190 * flags.h (in_lto_p): Move to common.opt.
14191 * gcc.c: Include params.h.
14192 (set_option_handlers): Also use common_handle_option and
14193 target_handle_option.
14194 (main): Call global_init_params, finish_params and init_options_struct.
14195 * opts.c (debug_type_names): Move from toplev.c.
14196 (print_filtered_help): Access quiet_flag through opts pointer.
14197 (common_handle_option): Return early in the driver for some options.
14198 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
14200 * toplev.c (in_lto_p): Move to common.opt.
14201 (debug_type_names): Move to opts.c.
14202 * Makefile.in (OBJS): Remove opts.o.
14203 (OBJS-libcommon-target): Add opts.o.
14204 (gcc.o): Update dependencies.
14206 2011-06-28 Kai Tietz <ktietz@redhat.com>
14208 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
14210 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14212 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
14213 with '=' constraint modifier.
14214 (*divdf3_vfp): Likewise.
14215 ("*mulsf3_vfp"): Likewise.
14216 ("*muldf3_vfp"): Likewise.
14217 ("*mulsf3negsf_vfp"): Likewise.
14218 ("*muldf3negdf_vfp"): Likewise.
14220 2011-06-28 Nick Clifton <nickc@redhat.com>
14222 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
14223 relaxation when performing an incremental link.
14225 2011-06-28 Kai Tietz <ktietz@redhat.com>
14227 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
14228 within BB from last to first.
14230 2011-06-28 Joseph Myers <joseph@codesourcery.com>
14232 * genattr-common.c: New. Based on genattr.c.
14233 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
14234 (MOSTLYCLEANFILES): Add insn-attr-common.h.
14235 (opts.o): Update dependencies.
14236 (.PRECIOUS): Add insn-attr-common.h.
14237 (simple_rtl_generated_h): Add insn-attr-common.h.
14238 (build/genattr-common.o): New.
14239 (genprogrtl): Add attr-common.
14240 * genattr.c (main): Include insn-attr-common.h. Don't generate
14241 definitions of DELAY_SLOTS or INSN_SCHEDULING.
14242 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
14244 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
14246 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
14247 avr-*-* and avr-*-rtems* targets.
14249 * config/avr/elf.h: New file.
14250 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
14251 (TARGET_ASM_SELECT_SECTION): Define.
14252 (INIT_SECTION_ASM_OP): Undefine.
14253 (FINI_SECTION_ASM_OP): Undefine.
14254 (READONLY_DATA_SECTION_ASM_OP): Undefine.
14255 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
14256 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
14257 * config/avr/avr.h:
14258 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
14259 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
14260 (MAX_OFILE_ALIGNMENT): Move to elf.h.
14261 (STRING_LIMIT): Move to elf.h.
14262 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
14263 (ASM_DECLARE_OBJECT_NAME): Remove.
14265 (ASM_OUTPUT_SKIP): Remove.
14266 (DWARF2_DEBUGGING_INFO): Remove.
14267 (OBJECT_FORMAT_ELF): Remove.
14268 (USER_LABEL_PREFIX): Remove.
14269 (ASM_OUTPUT_EXTERNAL): Remove.
14270 (ASM_OUTPUT_ASCII): Remove.
14271 (TYPE_ASM_OP): Remove.
14272 (SIZE_ASM_OP): Remove.
14273 (WEAK_ASM_OP): Remove.
14274 (STRING_ASM_OP): Remove.
14275 (SET_ASM_OP): Remove.
14276 (ASM_WEAKEN_LABEL): Remove.
14277 (TYPE_OPERAND_FMT): Remove.
14278 (ASM_DECLARE_FUNCTION_SIZE): Remove.
14279 (ASM_FINISH_DECLARE_OBJECT): Remove.
14280 (NO_DOLLAR_IN_LABEL): Remove.
14281 (ASM_GENERATE_INTERNAL_LABEL): Remove.
14282 (ASM_OUTPUT_CASE_LABEL): Remove.
14283 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
14284 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
14285 (gas_output_ascii): Remove.
14286 (gas_output_limited_string): Remove.
14287 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
14288 * config/avr/avr-protos.h
14289 (gas_output_ascii): Remove prototye.
14290 (gas_output_limited_string): Remove prototype.
14292 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
14295 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
14298 2011-06-27 Jan Hubicka <jh@suse.cz>
14300 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
14301 node instead of references in node.
14303 2011-06-27 Richard Henderson <rth@redhat.com>
14305 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
14306 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
14309 2011-06-27 Jakub Jelinek <jakub@redhat.com>
14311 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
14313 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
14314 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
14315 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
14316 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
14317 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
14318 (evaluate_stmt, execute_fold_all_builtins): Handle
14319 BUILT_IN_ASSUME_ALIGNED.
14320 * tree-ssa-dce.c (propagate_necessity): Likewise.
14321 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
14322 call_may_clobber_ref_p_1): Likewise.
14323 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
14324 (expand_builtin_assume_aligned): New function.
14325 * doc/extend.texi (__builtin_assume_aligned): Document.
14328 * cselib.c (promote_debug_loc): If cselib_preserve_constants
14329 and l has two DEBUG_INSN owned locs instead of just one, adjust
14330 the second location's setting_insn too.
14332 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14334 PR libmudflap/38738
14335 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
14337 2011-06-27 Nick Clifton <nickc@redhat.com>
14339 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
14340 bit position of highest bit set into a count of the high zero bits.
14342 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
14344 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
14346 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
14349 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
14352 2011-06-27 Richard Guenther <rguenther@suse.de>
14354 PR tree-optimization/49394
14355 * passes.c (execute_one_pass): Restore current_pass after
14356 applying IPA transforms.
14358 2011-06-27 Kai Tietz <ktietz@redhat.com>
14360 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
14361 out of type precision after operation.
14362 (find_bswap): Take for limit value the integer auto-promotion
14365 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
14367 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
14368 forward scan as well.
14370 2011-06-27 Tristan Gingold <gingold@adacore.com>
14373 * config/vms/vms-protos.h: New file.
14374 * config/vms/vms-crtlmap.map: New file.
14375 * config/vms/vms.c: New file.
14376 * config/vms/make-crtlmap.awk: New file.
14377 * config/vms/vms-crtl.h: File removed.
14378 * config/vms/vms-crtl-64.h: File removed.
14379 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
14380 * config/alpha/vms64.h: Do not include vms-crtl-64.h
14381 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
14382 clear some builtins on VMS. Calls vms_patch_builtins.
14383 (avms_asm_output_external): Remove.
14384 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
14385 (struct crtl_name_spec): Remove
14386 (DO_CTRL_NAMES): Remove.
14387 * config/ia64/vms.h (struct crtl_name_spec): Remove
14388 (DO_CTRL_NAMES): Remove.
14389 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
14390 clear some builtins on VMS. Calls vms_patch_builtins.
14391 (ia64_asm_output_external): Remove DO_CRTL_NAME.
14392 * config/ia64/vms64.h: Do not include vms-crtl-64.h
14393 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
14395 2011-06-27 Tristan Gingold <gingold@adacore.com>
14397 * config/alpha/alpha.c (alpha_end_function): Always generate .end
14400 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
14402 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
14403 the function receives nonlocal gotos.
14405 2011-06-27 Richard Guenther <rguenther@suse.de>
14407 PR tree-optimization/49536
14408 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
14409 For non-scalar inner types use a scalar type according to
14410 the scalar inner mode.
14412 2011-06-27 Richard Guenther <rguenther@suse.de>
14414 PR tree-optimization/49365
14415 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
14417 2011-06-27 Richard Guenther <rguenther@suse.de>
14419 PR tree-optimization/49169
14420 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
14421 the alignment of function decls.
14423 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
14426 * config/darwin.c (darwin_mergeable_string_section): Place string
14427 constants in '.cstring' rather than '.const' when CF/NSStrings are
14430 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
14432 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
14433 (emit_save_register_window): Likewise.
14434 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
14435 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
14436 Swap back %o7/%i7 in register naming.
14438 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
14441 * config/darwin.c (darwin_override_options): Improve warning when
14442 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
14443 is given with fpie/fPIE.
14444 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
14445 * config/darwin9.h (PIE_SPEC): New.
14447 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
14449 * timevar.c (timevar_print): Increase width for display of timevar
14452 2011-06-24 Jakub Jelinek <jakub@redhat.com>
14455 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
14456 instead of TYPE_CHAIN for chain_next for types.
14458 2011-06-24 Richard Henderson <rth@redhat.com>
14460 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
14461 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
14462 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
14463 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
14464 (sparc_flat_expand_prologue): Emit individual instructions
14465 instead of one of the above.
14467 2011-06-24 Easwaran Raman <eraman@google.com>
14469 PR rtl-optimization/49429
14471 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
14472 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
14473 used to copy y into x.
14474 * calls.c (initialize_argument_information): Mark
14475 an argument addressable if it is passed by invisible reference.
14476 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
14477 if it is passed by reference.
14479 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
14481 PR rtl-optimization/49504
14482 * rtlanal.c (nonzero_bits1): Properly handle addition or
14483 subtraction of a pointer in Pmode if pointers extend unsigned.
14484 (num_sign_bit_copies1): Likewise.
14486 2011-06-24 Martin Jambor <mjambor@suse.cz>
14488 PR tree-optimizations/49516
14489 * tree-sra.c (sra_modify_assign): Choose the safe path for
14490 aggregate copies if we also did scalar replacements.
14492 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14495 * config/arm/predicates.md (add_operator): New.
14496 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
14498 2011-06-24 Andi Kleen <ak@linux.intel.com>
14500 * tree-sra.c (type_internals_preclude_sra_p): Add msg
14501 parameter. Split up ifs and report reason in *msg.
14503 (find_var_candiate): Add msg variable.
14504 Split up ifs and report reason to reject.
14505 (find_param_candidates): Add msg variable.
14506 Pass msg to type_internals_preclude_sra_p.
14508 2011-06-23 Jeff Law <law@redhat.com>
14510 PR middle-end/48770
14511 * reload.h (reload): Change to return a bool.
14512 * ira.c (ira): If requested by reload, run a fast DCE pass after
14513 reload has completed. Fix comment typo.
14514 * reload1.c (need_dce): New file scoped static.
14515 (reload): Set reload_completed here. Return whether or not a DCE
14516 pass after reload is needed.
14517 (delete_dead_insn): Set need_dce as needed.
14519 PR middle-end/49465
14520 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
14521 to detect threading through joiner block. If there was already
14522 an edge to the new target, then do not change the PHI nodes.
14524 2011-06-23 Jakub Jelinek <jakub@redhat.com>
14526 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
14527 get_pointer_alignment to see if base isn't sufficiently aligned.
14529 2011-06-23 Jan Hubicka <jh@suse.cz>
14531 PR tree-optimize/49373
14532 * tree-pass.h (all_late_ipa_passes): Declare.
14533 * cgraphunit.c (init_lowered_empty_function): Fix properties.
14534 (cgraph_optimize): Execute late passes; remove unreachable funcions
14535 after materialization.
14536 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
14538 * passes.c (all_late_ipa_passes): Declare.
14539 (dump_passes, register_pass): Handle late ipa passes.
14540 (init_optimization_passes): Move ipa_pta to late passes; schedule
14541 fixup_cfg at beggining of all_passes.
14542 (apply_ipa_transforms): New function.
14543 (execute_one_pass): When doing simple ipa pass, apply all transforms.
14545 2011-06-23 Joseph Myers <joseph@codesourcery.com>
14547 * params.c: Include common/common-target.h. Don't include tm.h.
14548 (lang_independent_params): Move from toplev.c.
14549 (global_init_params): New.
14550 * params.h (global_init_params): Declare.
14551 * target.def (default_params): Move to common-target.def.
14552 * toplev.c (lang_independent_options): Remove.
14553 (lang_independent_params): Move to params.c.
14554 (general_init): Use global_init_params.
14555 * common/common-target.def (option_default_params): Move from
14557 * common/config/ia64/ia64-common.c: Include params.h.
14558 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
14560 * common/config/rs6000/rs6000-common.c: Include params.h.
14561 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
14563 * common/config/sh/sh-common.c: Include params.h.
14564 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
14566 * common/config/spu/spu-common.c: Include params.h.
14567 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
14569 * config/ia64/ia64.c (ia64_option_default_params,
14570 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
14571 * config/rs6000/rs6000.c (rs6000_option_default_params,
14572 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
14573 * config/sh/sh.c (sh_option_default_params,
14574 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
14575 * config/spu/spu.c (spu_option_default_params,
14576 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
14577 * Makefile.in (OBJS): Remove params.o.
14578 (OBJS-libcommon-target): Add params.o.
14579 (params.o, $(common_out_object_file)): Update dependencies.
14580 * doc/tm.texi: Regenerate.
14582 2011-06-23 Alan Modra <amodra@gmail.com>
14585 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
14586 invocation for 2011-06-09 changes.
14588 2011-06-22 Jakub Jelinek <jakub@redhat.com>
14591 * omp-low.c (expand_omp_for_static_nochunk): Only
14592 use n ceil/ nthreads size for the first n % nthreads threads in the
14593 team instead of all threads except for the last few ones which
14594 get less work or none at all.
14597 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
14600 2011-06-22 Richard Guenther <rguenther@suse.de>
14602 PR tree-optimization/49493
14603 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
14604 Refer to the alias target of variables.
14605 (associate_varinfo_to_alias_1): Remove.
14606 (ipa_pta_execute): Do not associate aliases with anything.
14607 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
14608 (cgraph_function_node): Likewise.
14609 (cgraph_function_or_thunk_node): Likewise.
14610 (varpool_variable_node): Likewise.
14612 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
14614 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
14615 * config.gcc (arm*-*-linux*): Default to gnu tls.
14616 (arm*-*-*): Add --with-tls option.
14617 (all_defaults): Add 'tls'.
14619 2011-06-22 Richard Henderson <rth@redhat.com>
14621 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
14622 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
14623 (dwarf2out_frame_debug_cfa_window_save): Rename from
14624 dwarf2out_window_save; make static.
14625 * tree.h (dwarf2out_window_save): Don't declare.
14627 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
14628 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
14629 (emit_save_register_window): Rename from gen_save_register_window;
14630 emit the insn and add REG_CFA_* notes.
14631 (sparc_expand_prologue): Update to match.
14632 * config/sparc/sparc.md (save_register_window_1): Simplify from
14633 save_register_window<P:mode>.
14635 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
14638 * config/i386/i386.md (*lea_general_2): Always allow SImode.
14639 (*lea_general_2_zext): Likewise.
14640 (imul to lea peepholes): Use const359_operand and check
14641 TARGET_PARTIAL_REG_STALL.
14643 * config/i386/predicates.md (const359_operand): New.
14645 2011-06-22 Michael Matz <matz@suse.de>
14647 * cgraphunit.c (assemble_thunk): Use correct return type.
14649 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
14650 Dmitry Melnik <dm@ispras.ru>
14652 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
14653 (neon_output_shift_immediate): Ditto.
14654 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
14656 (neon_output_shift_immediate): Ditto.
14657 * config/arm/neon.md (vashl<mode>3): Modified constraint.
14658 (vashr<mode>3_imm): New insn pattern.
14659 (vlshr<mode>3_imm): Ditto.
14660 (vashr<mode>3): Modified constraint.
14661 (vlshr<mode>3): Ditto.
14662 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
14664 (imm_for_neon_rshift_operand): Ditto.
14665 (imm_lshift_or_reg_neon): Ditto.
14666 (imm_rshift_or_reg_neon): Ditto.
14668 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
14670 2011-06-22 Jakub Jelinek <jakub@redhat.com>
14672 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
14673 builtin calls even if likelyvalue is not CONSTANT.
14674 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
14675 Return get_value_for_expr of first operand
14676 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
14677 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14678 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
14679 their non-checking counterparts.
14680 (call_may_clobber_ref_p_1): Likewise.
14681 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
14682 like their non-checking counterparts.
14683 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14684 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
14685 like their non-checking counterparts.
14686 (find_func_clobbers): Likewise.
14687 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
14688 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
14690 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
14691 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
14692 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
14693 of base type reference as argument.
14694 (resolve_addr_in_expr): Likewise. Fix keep computation.
14695 (convert_descriptor_to_signed): Renamed to...
14696 (convert_descriptor_to_mode): ... this. For wider types convert to
14697 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
14698 (typed_binop): New function.
14699 (scompare_loc_descriptor, ucompare_loc_descriptor,
14700 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
14701 default to unsigned type instead of signed.
14704 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
14705 (gimple_build_debug_source_bind_stat): New prototype.
14706 (gimple_build_debug_source_bind): Define.
14707 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
14708 gimple_debug_source_bind_get_value,
14709 gimple_debug_source_bind_get_value_ptr,
14710 gimple_debug_source_bind_set_var,
14711 gimple_debug_source_bind_set_value): New inlines.
14712 * gimple.c (gimple_build_debug_source_bind_stat): New function.
14713 * gimple-pretty-print.c (dump_gimple_debug): Handle
14714 GIMPLE_DEBUG_SOURCE_BIND.
14715 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
14716 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
14717 * tree-parloops.c (eliminate_local_variables,
14718 separate_decls_in_region): Likewise.
14719 (separate_decls_in_region_debug): Renamed from
14720 separate_decls_in_region_debug_bind. Handle
14721 gimple_debug_source_bind_p.
14722 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
14724 (DECL_HAS_DEBUG_ARGS_P): Define.
14725 (struct tree_function_decl): Add has_debug_args_flag field.
14726 * tree.c (debug_args_for_decl): New variable.
14727 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
14728 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
14729 (rewrite_debug_stmt_uses): New function.
14730 (rewrite_stmt): Use it to rewrite debug stmt uses.
14731 * rtl.def (DEBUG_PARAMETER_REF): New.
14732 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
14733 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
14734 DEBUG_PARAMETER_REF.
14735 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
14736 * print-rtl.c (print_rtx): Likewise.
14737 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
14738 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
14739 debug stmts in the first bb.
14740 * tree-inline.c (remap_ssa_name): If remapping default def
14741 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
14742 a source bind debug stmt.
14743 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
14744 (maybe_move_debug_stmts_to_successors): Likewise.
14745 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
14746 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
14747 debug args vector from old_decl to new_decl.
14748 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
14749 or modified parameters, add debug bind stmts before call
14750 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
14751 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
14752 on DECL_DEBUG_EXPRs from debug args vector.
14753 (expand_debug_source_expr): New function.
14754 (expand_debug_locations): Use it for source bind insns.
14755 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
14756 * var-tracking.c (prepare_call_arguments): Add debug args
14757 to call_arguments if any.
14758 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
14759 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
14760 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
14761 (get_ref_die_offset, parameter_ref_descriptor): New functions.
14762 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
14763 (gen_subprogram_die): Handle parameters identified by
14764 DEBUG_PARAMETER_REF.
14766 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
14768 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
14769 * doc/install.texi (Configuration): Document --with-tls.
14770 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
14771 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
14772 (arm_tls_descseq_addr): New.
14773 (legitimize_tls_address): Add tlsdesc support.
14774 (arm_cannot_copy_insn_p): Check for tlscall.
14775 (arm_emit_tls_decoration): Likewise.
14776 * config/arm/arm.h (TARGET_GNU2_TLS): New.
14777 (OPTION_DEFAULT_SPECS): Add with-tls support.
14778 * config/arm/arm.md (R1_REGNUM): Define.
14780 * config/arm/arm.opt (tls_type): New enumeration type and values.
14781 (mtls-dialect): New switch.
14782 * config/arm/arm-opts.h (enum tls_type): New.
14784 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
14786 * attribs.c (register_attribute): Added assert to check that all
14787 attribute specs are registered with a name that is not empty and
14788 does not start with '_'.
14789 (decl_attributes): Avoid the lookup of the "naked" attribute spec
14790 if the function has no attributes.
14791 * tree.c (is_attribute_with_length_p): Removed.
14792 (is_attribute_p): Removed.
14793 (private_is_attribute_p): New.
14794 (private_lookup_attribute): New.
14795 (lookup_attribute): Removed.
14796 (lookup_ident_attribute): New.
14797 (remove_attribute): Require the first argument to be in the form
14798 'text', not '__text__'. Updated asserts.
14799 (merge_attributes): Use lookup_ident_attributes instead of
14801 (merge_dllimport_decl_attributes): Use remove_attribute.
14802 (attribute_list_contained): Likewise.
14803 (attribute_list_equal): Immediately return 1 if the arguments are
14804 identical pointers.
14805 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
14806 'int'. Require the first argument to be in the form 'text', not
14807 '__text__'. Require the second argument to be an identifier.
14808 (lookup_attribute): Made inline. Require the first argument to be
14809 in the form 'text', not '__text__'.
14810 (private_is_attribute_p, private_lookup_attribute): New.
14813 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
14815 * builtins.c: Add sync_ or SYNC__ to builtin names.
14816 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
14817 * omp-low.c: Add sync_ or SYNC__ to builtin names.
14819 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
14822 * config/avr/avr.md (extzv): New expander.
14823 (*extzv): New insn.
14824 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
14825 * config/avr/constraints.md (C04): New constraint.
14826 * doc/md.texi (Machine Constraints): Document it.
14828 2011-06-21 Jakub Jelinek <jakub@redhat.com>
14830 PR middle-end/49489
14831 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
14832 unsignedp argument instead of 1 for clrsb_optab.
14833 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
14834 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
14835 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
14836 * optabs.c (widen_leading): Call widen_operand and expand_unop
14837 with 0 as unsignedp argument instead of 1 for clrsb_optab.
14838 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
14840 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
14842 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
14844 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
14846 * gensupport.c (add_define_attr): New static function.
14847 (is_predicable): Allow multi-alternative lists for the "predicable"
14849 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
14850 (process_one_cond_exec): Call alter_attrs_for_insn.
14851 * doc/md.texi (Defining Attributes): Mention some standard names.
14852 (Conditional Execution): Update documentation for "predicable".
14854 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
14855 __builtin_clrsbll): Document.
14856 * doc/rtl.texi (clrsb): New entry.
14857 * optabs.c (widen_leading): Renamed from widen_clz. New argument
14858 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
14859 (expand_unop): Handle clrsb_optab.
14860 (init_optabs): Initialize it.
14861 * optabs.h (enum optab_index): New entry OTI_clrsb.
14862 (clrsb_optab): Define.
14863 * genopinit.c (optabs): Add an entry for it.
14864 * builtins.c (expand_builtin): Handle clrsb builtin functions.
14865 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
14866 BUILT_IN_CLRSBLL): New.
14867 * rtl.def (CLRSB): New code.
14868 * dwarf2out.c (mem_loc_descriptor): Handle it.
14869 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
14870 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
14872 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
14873 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
14874 (__ctzDI2): Move declaration.
14875 * config/bfin/bfin.md (clrsbsi2): New expander.
14876 (signbitssi2): Use the CLRSB rtx.
14877 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
14878 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
14880 2011-06-21 Richard Guenther <rguenther@suse.de>
14882 * ipa-inline-transform.c (inline_transform): Fix previous change.
14884 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
14886 PR tree-optimization/49478
14887 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
14888 with constant operand.
14890 2011-06-21 Richard Guenther <rguenther@suse.de>
14892 * ipa-inline-transform.c (inline_transform): Fix typo.
14894 2011-06-21 Richard Guenther <rguenther@suse.de>
14896 PR tree-optimization/49483
14897 * tree-vect-stmts.c (vectorizable_assignment): Also handle
14898 VIEW_CONVERT_EXPR conversions.
14900 2011-06-21 Joseph Myers <joseph@codesourcery.com>
14902 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
14903 * config/avr/avr-tables.opt: New file (generated).
14904 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
14905 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
14907 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
14908 (avr_option_override): Don't process -mmcu= argument here. Set
14909 avr_current_device using avr_mcu_index.
14910 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
14911 * config/avr/avr.opt (mmcu=): Use Enum.
14912 * config/avr/t-avr (avr-devices.o): Update dependencies.
14913 ($(srcdir)/config/avr/avr-tables.opt): New.
14914 * target.def (help): Remove.
14915 * doc/tm.texi.in (TARGET_HELP): Remove.
14916 * doc/tm.texi: Regenerate.
14917 * opts.c: Don't include target.h.
14918 (common_handle_option): Don't call targetm.help.
14919 * system.h (TARGET_HELP): Poison.
14920 * Makefile.in (opts.o): Update dependencies.
14922 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14924 * config/usegld.h: New file.
14925 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
14926 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
14927 (LIB_SPEC): Likewise. Search /lib.
14928 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
14929 (RDYNAMIC_SPEC): Handle GNU ld.
14930 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
14932 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
14933 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
14934 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
14935 (STACK_CHECK_STATIC_BUILTIN): Define.
14936 * config/sol2.opt (compat-bsd): Remove.
14937 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
14938 * config/sol2-bi.h: New file.
14939 * config/sol2-gld.h: Remove.
14940 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
14941 (NO_DBX_BNSYM_ENSYM): Remove.
14942 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
14943 (STACK_CHECK_STATIC_BUILTIN): Remove.
14944 Test USE_GLD instead of TARGET_GNU_LD.
14945 * config/i386/sol2-10.h: Rename to ...
14946 * config/i386/sol2-bi.h .. this.
14947 (SUBTARGET_EXTRA_SPECS): Redefine.
14948 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
14949 (MULTILIB_DEFAULTS): Remove.
14950 (DEFAULT_ARCH32_P): Define.
14951 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
14952 (ARCH64_SUBDIR): Define.
14953 Test USE_GLD instead of TARGET_GNU_LD.
14954 (I386_EMULATION): Rename to ...
14955 (ARCH32_EMULATION): ... this.
14956 (X86_64_EMULATION): Rename to ...
14957 (ARCH64_EMULATION): ... this.
14958 (TARGET_LD_EMULATION): Remove.
14959 (LINK_ARCH_SPEC): Remove.
14960 * config/i386/sol2-gas.h: Remove.
14961 * config/i386/t-sol2-10: Rename to ...
14962 * config/i386/t-sol2-64: ... this.
14963 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
14964 (AS_SPARC64_FLAG): Define.
14965 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
14966 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
14967 depending on TARGET_CPU_DEFAULT.
14968 (CPP_CPU_SPEC): Redefine.
14969 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
14970 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
14971 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
14972 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
14973 ASM_ARCH_DEFAULT_SPEC): Redefine.
14974 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14975 LINK_ARCH_DEFAULT_SPEC.
14976 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
14977 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
14978 (ARCH64_SUBDIR): Define.
14979 (LINK_ARCH64_SPEC): Redefine.
14980 (CC1_SPEC): Redefine.
14981 (OPTION_DEFAULT_SPECS): Redefine.
14982 (MULTILIB_DEFAULTS): Define.
14983 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
14984 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
14985 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
14986 (NO_DBX_BNSYM_ENSYM): Remove.
14987 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
14988 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
14989 (TARGET_ASM_NAMED_SECTION): Likewise.
14990 (STACK_CHECK_STATIC_BUILTIN): Remove.
14991 * config/sparc/sol2-bi.h: Remove.
14992 * config/sparc/sol2-gas-bi.h: Remove.
14993 * config/sparc/sol2-gas.h: Remove.
14994 * config/sparc/sol2-gld-bi.h: Remove.
14995 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
14997 (*-*-solaris2*): ... here.
14999 2011-06-21 Christian Bruel <christian.bruel@st.com>
15002 * ipa-inline.c (can_inline_edge_p): Check
15003 !DECL_DISREGARD_INLINE_LIMITS.
15005 2011-06-21 Christian Bruel <christian.bruel@st.com>
15007 PR middle-end/49139
15008 * cgraphunit.c (process_function_and_variable_attributes): warn when
15009 always_inline functions that are not inline.
15010 * ipa-inline-transform.c (inline_transform): Always call
15012 * tree-inline.c (tree_inlinable_function_p): Use error instead
15014 (expand_call_inline): Likewise.
15016 2011-06-21 Jakub Jelinek <jakub@redhat.com>
15018 * Makefile.in (dg_target_exps): Set.
15019 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
15020 instead of 7, try to divide it more evenly.
15022 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
15025 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
15026 (avx256_split_unaligned_store): New definition.
15027 (ix86_option_override_internal): Enable avx256 unaligned load/store
15028 splitting only when avx256_split_unaligned_load/store is set.
15030 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
15032 * regrename.c (scan_rtx_reg): Handle the case where we write to an
15033 open chain in a smaller mode without failing the entire block.
15035 2011-06-21 Alan Modra <amodra@gmail.com>
15037 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
15038 CONST high part large-toc address.
15039 (rs6000_tls_referenced_p): Make static.
15040 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
15042 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15045 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
15046 one of the operands is a register.
15048 2011-06-20 Kai Tietz <ktietz@redhat.com>
15050 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
15051 operations in combination with binary and.
15053 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
15055 * regrename.c (do_replace): Don't update notes.
15057 2011-06-20 Alan Modra <amodra@gmail.com>
15059 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
15060 of toc-relative address in CONST.
15061 (rs6000_delegitimize_address): Recognize changed address.
15062 (rs6000_legitimize_reload_address): Likewise.
15063 (rs6000_emit_move): Don't force these constants to memory.
15064 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
15065 toc-relative address in CONST.
15066 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
15067 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
15069 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
15071 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
15072 (count_trailing_zeros): Likewise.
15074 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
15077 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
15078 .init_array can be used with .ctors on targets.
15079 * configure: Regenerated.
15081 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
15083 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
15084 if the element type is volatile.
15086 2011-06-18 Jan Hubicka <jh@suse.cz>
15088 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
15089 extra name aliases.
15090 (lto_symtab_resolve_can_prevail_p): Likewise.
15091 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
15092 * cgraphbuild.c (record_reference): Remove extra body alias code.
15093 (mark_load): Likewise.
15094 (mark_store): Likewise.
15095 * cgraph.h (varpool_node): Remove extra_name filed;
15096 add alias_of and extraname_alias.
15097 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
15098 (varpool_alias_aliased_node): New inline function.
15099 (varpool_variable_node): New function.
15100 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
15101 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
15102 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
15103 (input_varpool_node): Likewise.
15104 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
15105 (varpool_externally_visible_p): Remove extra body alias code.
15106 (function_and_variable_visibility): Likewise.
15107 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
15108 (ipa_pta_execute): Use it.
15109 * varpool.c (varpool_remove_node): Remove extra name alias code.
15110 (varpool_mark_needed_node): Likewise.
15111 (varpool_analyze_pending_decls): Analyze aliases.
15112 (assemble_aliases): New functoin.
15113 (varpool_assemble_decl): Use it.
15114 (varpool_create_variable_alias): New function.
15115 (varpool_extra_name_alias): Rewrite.
15116 (varpool_for_node_and_aliases): New function.
15118 2011-06-18 Jakub Jelinek <jakub@redhat.com>
15121 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
15122 last_arg_constant and last argument doesn't match its predicate,
15123 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
15124 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
15125 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
15126 spelling of error message.
15127 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
15128 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
15129 const_0_to_255_operand instead of const_int_operand.
15132 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
15134 * config/i386/sse.md (blendbits): Remove mode attribute.
15135 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
15136 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
15137 Check integer value of operand 3 in insn constraint.
15139 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
15141 PR rtl-optimization/48542
15142 * reload.c (find_equiv_reg): Stop looking when finding a
15144 * reload1.c (reload_as_needed): Invalidate all reload
15145 registers when crossing a setjmp-type call.
15147 2011-06-16 Jeff Law <law@redhat.com>
15149 * tree-ssa-threadupdate.c (struct redirection_data): New field
15151 (THREAD_TARGET2): Define.
15152 (redirection_data_eq): Also check that the intermediate edge is equal.
15153 (lookup_redirection_data): Drop useless argument. Extract the
15154 outgoing_edge and intermediate edge from E. Callers updated.
15155 (copy_phi_args, update_destination_phis): New functions.
15156 (fix_duplicate_block_edges): Likewise.
15157 (create_edge_and_update_destination_phis): Duplicate all the edges
15158 hung off e->aux. Use copy_phi_args.
15159 (create_duplicates): Use fix_duplicate_block_edges.
15160 (fixup_template_block): Likewise.
15161 (redirect_edges): If necessary, redirect the joiner block's incoming
15162 edge to the duplicate of the joiner block.
15163 (thread_block): Don't muck up loops when threading through a joiner
15165 (thread_through_loop_header): Handle threading through a joiner block.
15166 (mark_threaded_blocks, register_jump_thread): Likewise.
15167 * tree-flow.h (register_jump_thread): Add new argument. Callers
15169 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
15170 (thread_across_edge): Handle threading through a joiner block.
15172 2011-06-16 Martin Jambor <mjambor@suse.cz>
15174 PR tree-optimization/49343
15175 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
15176 calculate offset, provide 2nd operand for the new COMPONENT_REF.
15178 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
15180 * config/darwin-protos.h (machopic_select_rtx_section): Move to
15181 inside RTX_CODE ifdef.
15183 2011-06-16 Tom de Vries <tom@codesourcery.com>
15186 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
15187 Disallow NULL pointer for pointer arithmetic.
15189 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15193 2011-06-10 Wei Guozhi <carrot@google.com>
15196 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
15197 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
15198 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
15200 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
15202 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
15203 (arm_legitimate_ldrd_p): New prototype.
15204 (arm_output_ldrd): New prototype.
15205 * config/arm/arm.c (arm_check_ldrd_operands): New function.
15206 (arm_legitimate_ldrd_p): New function.
15207 (arm_output_ldrd): New function.
15209 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
15211 PR middle-end/46500
15212 * doc/tm.texi.in: Update Copyright date.
15213 * doc/tm.texi: Regenerate.
15214 * targhooks.c (default_setup_incoming_varargs): Replace
15215 CUMULATIVE_ARGS* argument type with cumulative_args_t.
15216 (default_pretend_outgoing_varargs_named): Likewise.
15217 (hook_pass_by_reference_must_pass_in_stack): Likewise.
15218 (hook_callee_copies_named): Likewise.
15219 (default_function_arg_advance): Likewise.
15220 (default_function_arg): Likewise.
15221 (default_function_incoming_arg): Likewise.
15222 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
15223 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
15224 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
15225 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15226 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
15227 * targhooks.h (default_setup_incoming_varargs): Likewise.
15228 (default_pretend_outgoing_varargs_named): Likewise.
15229 (hook_pass_by_reference_must_pass_in_stack): Likewise.
15230 (hook_callee_copies_named): Likewise.
15231 (default_function_arg_advance): Likewise.
15232 (default_function_arg): Likewise.
15233 (default_function_incoming_arg): Likewise.
15234 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
15235 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
15236 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
15237 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15238 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
15239 * target.def (pass_by_reference): Likewise.
15240 (setup_incoming_varargs, strict_argument_naming): Likewise.
15241 (pretend_outgoing_varargs_named, callee_copies): Likewise.
15242 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
15243 (function_incoming_arg): Likewise.
15244 * target.h: Don't include "tm.h" .
15245 (cumulative_args_t): New typedef.
15246 [GCC_TM_H] (get_cumulative_args): New static inline function.
15247 [GCC_TM_H] (pack_cumulative_args): Likewise.
15248 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
15249 argument type with cumulative_args_t.
15250 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
15251 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
15252 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15253 (frv_arg_partial_bytes, frv_function_arg): Likewise.
15254 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
15255 (frv_function_arg_1): Likewise.
15256 * config/s390/s390.c (s390_pass_by_reference): Likewise.
15257 (s390_function_arg_advance, s390_function_arg): Likewise.
15258 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15259 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
15260 (m32c_strict_argument_naming): Likewise.
15261 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
15262 (spu_function_arg_advance): Likewise.
15263 (spu_setup_incoming_varargs): Likewise. Make static.
15264 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
15266 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
15267 CUMULATIVE_ARGS* argument type with cumulative_args_t.
15268 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
15269 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
15270 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
15271 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
15272 (mep_pass_by_reference, mep_function_arg): Likewise.
15273 (mep_function_arg_advance): Likewise.
15274 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15275 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
15276 (m32r_function_arg, m32r_function_arg_advance): Likewise.
15277 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
15278 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15279 (ix86_function_arg, ix86_pass_by_reference): Likewise.
15280 (ix86_setup_incoming_varargs): Likewise.
15281 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15282 (sh_strict_argument_naming): Likewise.
15283 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
15284 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
15285 (sh_function_arg_advance, sh_function_arg): Likewise.
15286 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15287 (pdp11_function_arg_advance): Likewise.
15288 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15290 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
15291 * config/avr/avr.c (avr_function_arg): Likewise.
15292 (avr_function_arg_advance): Likewise.
15293 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15294 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
15295 (xtensa_function_arg_1): Likewise.
15296 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
15298 (xstormy16_function_arg): Likewise.
15299 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15300 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15301 (fr30_function_arg_advance): Likewise.
15302 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15303 (lm32_function_arg, lm32_function_arg_advance): Likewise.
15304 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15305 (moxie_function_arg, moxie_function_arg_advance): Likewise.
15306 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
15307 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15308 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
15309 (cris_function_arg, cris_function_incoming_arg): Likewise.
15310 (cris_function_arg_advance, cris_function_arg_1): Likewise.
15311 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15312 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
15313 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
15314 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15315 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
15316 (mn10300_arg_partial_bytes): Likewise.
15317 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15318 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
15319 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
15320 (ia64_function_arg_1): Likewise.
15321 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15322 (m68k_function_arg): Likewise.
15323 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
15324 (rs6000_function_arg, setup_incoming_varargs): Likewise.
15325 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
15326 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
15327 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
15328 (picochip_arg_advance): Likewise.
15329 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15330 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
15331 (mcore_function_arg_advance): Likewise.
15332 * config/score/score.c (score_pass_by_reference): Likewise.
15333 (score_function_arg_advance): Likewise.
15334 (score_arg_partial_bytes): Likewise. Make static.
15335 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
15336 * config/arm/arm.c (arm_arg_partial_bytes): Replace
15337 CUMULATIVE_ARGS* argument type with cumulative_args_t.
15338 (arm_function_arg, arm_function_arg_advance): Likewise.
15339 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
15340 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15341 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
15342 (pa_function_arg): Likewise.
15343 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
15344 (mips_function_arg, mips_function_arg_advance): Likewise.
15345 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
15346 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
15347 * config/vax/vax.c (vax_function_arg): Likewise.
15348 (vax_function_arg_advance): Likewise.
15349 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15350 (h8300_function_arg_advance): Likewise.
15351 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15352 (v850_strict_argument_naming, v850_function_arg): Likewise.
15353 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
15354 (v850_setup_incoming_varargs): Likewise.
15355 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15356 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
15357 (mmix_function_arg, mmix_pass_by_reference): Likewise.
15358 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
15360 * config/bfin/bfin.c (setup_incoming_varargs): Replace
15361 CUMULATIVE_ARGS* argument type with cumulative_args_t.
15362 (bfin_function_arg_advance, bfin_function_arg): Likewise.
15363 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
15364 * calls.c (emit_call_1): Change type of args_so_far to
15365 cumulative_args_t. Changed all callers.
15366 (initialize_argument_information): Likewise.
15367 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
15368 * dse.c (get_call_args): Likewise.
15369 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15370 * function.c (pass_by_reference, reference_callee_copied): Likewise.
15371 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
15372 New member args_so_far_v. Changed all users.
15373 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
15374 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
15375 * config/mips/mips.c (mips_output_args_xfer): Likewise.
15376 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15377 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
15378 * config/microblaze/microblaze.c (microblaze_expand_prologue):
15380 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
15381 m32r_pass_by_reference.
15383 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
15385 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
15386 argument to be a VEC of statements.
15387 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
15388 assert that pattern statements have to have their vector type set.
15389 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
15390 Change the first argument to be a VEC of statements. Update
15392 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
15393 (vect_handle_widen_mult_by_const): New function.
15394 (vect_recog_widen_mult_pattern): Change the first argument to be a
15395 VEC of statements. Update documentation. Check that the constant is
15396 INTEGER_CST. Support multiplication by a constant that fits an
15397 intermediate type - call vect_handle_widen_mult_by_const.
15398 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
15399 call. Handle additional pattern statements if necessary.
15401 2011-06-16 Nick Clifton <nickc@redhat.com>
15404 * config.gcc: Set cpu_type to v850 for any V850 architecture.
15405 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
15406 md_file, extra_modes, out_file and extra_options are these are all
15407 deduced from cpu_type.
15409 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
15411 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
15412 truncation mask to 63.
15414 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
15418 * longlong.h: Add AVR support:
15419 (count_leading_zeros): New macro.
15420 (count_trailing_zeros): New macro.
15421 (COUNT_LEADING_ZEROS_0): New macro.
15422 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
15423 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
15424 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
15425 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
15426 (LIB2FUNCS_EXCLUDE): Add _clz.
15427 * config/avr/libgcc.S (XCALL): Move up in file.
15428 (XJMP): New C Macro.
15429 (DEFUN): New asm macro.
15430 (ENDF): New asm macro.
15431 (__ffssi2): New function.
15432 (__ffshi2): New function.
15433 (__loop_ffsqi2): New function.
15434 (__ctzsi2): New function.
15435 (__ctzhi2): New function.
15436 (__clzdi2): New function.
15437 (__clzsi2): New function.
15438 (__clzhi2): New function.
15439 (__paritydi2): New function.
15440 (__paritysi2): New function.
15441 (__parityhi2): New function.
15442 (__parityqi2): New function.
15443 (__popcounthi2): New function.
15444 (__popcountsi2): New function.
15445 (__popcountdi2): New function.
15446 (__popcountqi2): New function.
15447 (__bswapsi2): New function.
15448 (__bswapdi2): New function.
15449 (__ashldi3): New function.
15450 (__ashrdi3): New function.
15451 (__lshrdi3): New function.
15452 Fix suspicous lines.
15454 2011-06-16 Richard Guenther <rguenther@suse.de>
15456 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
15457 the same as x != 0.
15458 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
15460 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
15461 equality compares against zero for the lower bit.
15463 2011-06-16 Jakub Jelinek <jakub@redhat.com>
15465 PR tree-optimization/49419
15466 * tree-vrp.c (execute_vrp): Call init_range_assertions
15467 before estimate_numbers_of_iterations, call
15468 free_number_of_iterations_estimates before calling
15469 remove_range_assertions.
15471 2011-06-16 Revital Eres <revital.eres@linaro.org>
15473 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
15474 (struct partial_schedule): Add rows_length field.
15475 (verify_partial_schedule): Check rows_length.
15476 (ps_insert_empty_row): Handle rows_length.
15477 (create_partial_schedule): Likewise.
15478 (free_partial_schedule): Likewise.
15479 (reset_partial_schedule): Likewise.
15480 (create_ps_insn): Remove rest_count argument.
15481 (remove_node_from_ps): Update rows_length.
15482 (add_node_to_ps): Update rows_length and call create_ps_insn
15483 without passing row_rest_count.
15484 (rotate_partial_schedule): Update rows_length.
15486 2011-06-16 Revital Eres <revital.eres@linaro.org>
15488 * ddg.c (add_intra_loop_mem_dep): New function.
15489 (build_intra_loop_deps): Call it.
15491 2011-06-13 Jeff Law <law@redhat.com>
15493 * df-problems.c (df_lr_local_compute): Manually CSE
15494 PIC_OFFSET_TABLE_REGNUM.
15495 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
15496 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
15498 2011-06-13 Jan Hubicka <jh@suse.cz>
15500 * cgraphunit.c (handle_alias_pairs): New function.
15501 (cgraph_finalize_compilation_unit): Use it.
15502 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
15503 as externally visible.
15505 2011-06-15 Richard Guenther <rguenther@suse.de>
15507 * expr.c (expand_expr_real_2): Reduce all integral types to
15508 bitfield precision.
15509 (expand_expr_real_1): Likewise.
15511 2011-06-15 Martin Jambor <mjambor@suse.cz>
15513 PR tree-optimization/48613
15514 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
15515 ipa_node_params_vector is NULL.
15517 2011-06-15 Jakub Jelinek <jakub@redhat.com>
15520 * dwarf2out.c (dw_loc_list_node): Add force field.
15521 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
15522 location in the list, even if it is modified before first real insn.
15523 (output_loc_list): Emit empty ranges with force flag set.
15524 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
15526 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
15529 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
15530 (fence_to_rewind). Use it to notice when bookkeeping will be placed
15531 above a fence. Update comments.
15532 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
15533 placed just above it. Do not allow NULL place_to_insert.
15535 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
15537 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
15538 (slpeel_tree_peel_loop_to_edge): Don't call
15539 remove_dead_stmts_from_loop.
15540 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
15541 remove irrelevant pattern statements. For irrelevant statements
15542 check if it is the last statement of a detected pattern, use
15543 corresponding pattern statement instead.
15544 (destroy_loop_vec_info): No need to remove pattern statements,
15545 only free stmt_vec_info.
15546 (vect_transform_loop): For irrelevant statements check if it is
15547 the last statement of a detected pattern, use corresponding
15548 pattern statement instead.
15549 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
15550 pattern statements. Set basic block for the new statement.
15551 (vect_pattern_recog): Update documentation.
15552 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
15553 operands of pattern statements.
15554 (vectorizable_call): Fix printing. In case of a pattern statement
15555 use the lhs of the original statement when creating a dummy
15556 statement to replace the original call.
15557 (vect_analyze_stmt): For irrelevant statements check if it is
15558 the last statement of a detected pattern, use corresponding
15559 pattern statement instead.
15560 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
15561 statements use gsi of the original statement.
15563 2011-06-14 Joseph Myers <joseph@codesourcery.com>
15565 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
15566 common/common-target-def.h.
15567 * target.def (default_target_flags, handle_option,
15568 supports_split_stack, optimization_table, init_struct,
15569 except_unwind_info, unwind_tables_default, have_named_sections):
15570 Move to common/common-target.def.
15571 * target.h (enum opt_levels, struct default_options): Move to
15572 common/common-target.h.
15573 * targhooks.c (default_except_unwind_info,
15574 dwarf2_except_unwind_info, sjlj_except_unwind_info,
15575 default_target_handle_option, empty_optimization_table): Move to
15576 common/common-targhooks.c.
15577 * targhooks.h (default_except_unwind_info,
15578 dwarf2_except_unwind_info, sjlj_except_unwind_info,
15579 default_target_handle_option, empty_optimization_table): Move to
15580 common/common-targhooks.h.
15581 * common/common-target-def.h: Include common/common-targhooks.h.
15582 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
15584 * common/common-target.def (handle_option, option_init_struct,
15585 option_optimization_table, default_target_flags,
15586 except_unwind_info, supports_split_stack, unwind_tables_default,
15587 have_named_sections): Move from target.def.
15588 (HOOK_PREFIX): Undefine at end of file.
15589 * common/common-target.h: Include input.h.
15590 (enum opt_levels, struct default_options): Move from target.h.
15591 * common/common-targhooks.c, common/common-targhooks.h: New.
15592 * config.gcc (target_has_targetm_common): Default to yes.
15593 (moxie*): Set target_has_targetm_common=no.
15594 (hppa*-*-*): Don't set target_has_targetm_common=yes.
15595 * doc/tm.texi: Regenerate.
15596 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
15597 (C_TARGET_DEF_H): Add common/common-targhooks.h.
15598 (GCC_OBJS): Remove vec.o.
15599 (OBJS): Remove hooks.o and vec.o.
15600 (OBJS-libcommon-target): Add vec.o, hooks.o and
15601 common/common-targhooks.o.
15602 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
15603 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
15604 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
15605 cfglayout.o, $(out_object_file), $(common_out_object_file)):
15606 Update dependencies.
15607 (common/common-targhooks.o): New.
15608 * common/config/default-common.c: Include tm.h. Add FIXME comment.
15609 * common/config/pa/pa-common.c: Include more headers. Take
15610 copyright dates from pa.c.
15611 (pa_option_optimization_table, pa_handle_option,
15612 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
15613 TARGET_HANDLE_OPTION): Move from pa.c.
15614 * common/config/alpha/alpha-common.c,
15615 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
15616 common/config/bfin/bfin-common.c,
15617 common/config/cris/cris-common.c,
15618 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
15619 common/config/h8300/h8300-common.c,
15620 common/config/i386/i386-common.c,
15621 common/config/ia64/ia64-common.c,
15622 common/config/iq2000/iq2000-common.c,
15623 common/config/lm32/lm32-common.c,
15624 common/config/m32c/m32c-common.c,
15625 common/config/m32r/m32r-common.c,
15626 common/config/m68k/m68k-common.c,
15627 common/config/mcore/mcore-common.c,
15628 common/config/mep/mep-common.c,
15629 common/config/microblaze/microblaze-common.c,
15630 common/config/mips/mips-common.c,
15631 common/config/mmix/mmix-common.c,
15632 common/config/mn10300/mn10300-common.c,
15633 common/config/pdp11/pdp11-common.c,
15634 common/config/picochip/picochip-common.c,
15635 common/config/rs6000/rs6000-common.c,
15636 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
15637 common/config/score/score-common.c, common/config/sh/sh-common.c,
15638 common/config/sparc/sparc-common.c,
15639 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
15640 common/config/vax/vax-common.c,
15641 common/config/xstormy16/xstormy16-common.c,
15642 common/config/xtensa/xtensa-common.c: New.
15643 * config/alpha/alpha.c: Include common/common-target.h.
15644 (alpha_option_optimization_table, alpha_handle_option,
15645 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15646 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
15647 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
15648 * config/arm/arm.c (arm_option_optimization_table,
15649 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
15650 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
15652 * config/avr/avr.c (avr_option_optimization_table,
15653 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
15655 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
15656 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
15657 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
15658 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
15659 * config/cris/cris.c (cris_option_optimization_table,
15660 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15661 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
15663 * config/fr30/fr30.c (fr30_option_optimization_table,
15664 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
15666 * config/frv/frv.c (frv_option_optimization_table,
15667 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
15668 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
15669 * config/h8300/h8300.c (h8300_option_optimization_table,
15670 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
15671 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
15672 * config/i386/i386-protos.h (ix86_handle_option): Declare.
15673 * config/i386/i386.c: Include common/common-target.h.
15674 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
15675 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
15676 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
15677 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
15678 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
15679 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
15680 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
15681 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
15682 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
15683 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
15684 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
15685 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
15686 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
15687 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
15688 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
15689 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
15690 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
15691 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
15692 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
15693 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
15694 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
15695 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
15696 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
15697 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
15698 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
15699 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
15700 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
15701 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
15702 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
15703 ix86_option_optimization_table, ix86_option_init_struct,
15704 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
15705 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
15706 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
15708 * config/i386/t-i386 (i386.o): Update dependencies.
15709 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
15710 * config/ia64/ia64.c (ia64_option_optimization_table,
15711 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
15712 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15713 ia64_handle_option): Move to ia64-common.c.
15714 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
15715 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
15716 * config/lm32/lm32.c (lm32_option_optimization_table,
15717 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
15719 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
15721 * config/m32r/m32r.c (m32r_option_optimization_table,
15722 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15723 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
15724 m32r_handle_option): Move to m32r-common.c.
15725 (m32r_memory_move_cost): Remove comment referring to
15726 TARGET_HANDLE_OPTION.
15727 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
15728 Move to m68k-common.c.
15729 * config/mcore/mcore.c (mcore_option_optimization_table,
15730 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
15731 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
15732 * config/mep/mep.c (mep_option_optimization_table,
15733 mep_handle_option, TARGET_HANDLE_OPTION,
15734 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
15735 Move to mep-common.c.
15736 * config/microblaze/microblaze.c
15737 (microblaze_option_optimization_table,
15738 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
15739 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
15740 * config/mips/mips.c (mips_handle_option,
15741 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
15742 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
15744 * config/mmix/mmix.c (mmix_option_optimization_table,
15745 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
15746 Move to mmix-common.c.
15747 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
15748 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
15749 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15750 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
15751 * config/pa/pa.c: Include common/common-target.h.
15752 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
15753 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15754 pa_handle_option): Move to pa-common.c.
15755 (pa_option_override): Use targetm_common.except_unwind_info.
15756 (pa_asm_output_mi_thunk, pa_function_section): Use
15757 targetm_common.have_named_sections.
15758 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
15759 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15760 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
15761 pdp11_handle_option, pdp11_option_init_struct): Move to
15763 * config/picochip/picochip.c (picochip_option_optimization_table,
15764 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
15765 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
15766 * config/rs6000/rs6000.c: Include common/common-target.h.
15767 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
15768 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
15769 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
15770 rs6000_handle_option): Move to rs6000-common.c.
15771 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
15772 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
15773 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
15774 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
15775 * config/s390/s390.c (processor_flags_table,
15776 s390_option_optimization_table, s390_option_init_struct,
15777 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
15778 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
15779 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
15780 * config/s390/s390.h (processor_flags_table): Declare.
15781 * config/score/score.c (score_option_optimization_table,
15782 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15783 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
15784 score_handle_option): Move to score-common.c.
15785 * config/sh/sh.c (sh_option_optimization_table,
15786 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
15787 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
15788 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
15789 * config/sparc/sparc.c: Include common/common-target.h.
15790 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
15791 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
15792 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
15793 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
15794 spu_option_init_struct): Move to spu-common.c.
15795 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
15796 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
15797 * config/v850/v850.c (small_memory_physical_max,
15798 v850_handle_memory_optionn v850_handle_option,
15799 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
15800 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
15802 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
15803 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
15804 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
15805 Move to xtensa-common.c.
15806 * cfglayout.c: Include common/common-target.h.
15807 (fixup_reorder_chain): Use targetm_common.have_named_sections.
15808 * cfgrtl.c: Include common/common-target.h.
15809 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
15810 targetm_common.have_named_sections.
15811 * dbxout.c: Include common/common-target.h.
15812 (dbxout_function_end): Use targetm_common.have_named_sections.
15813 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
15814 targetm_common.except_unwind_info.
15815 * dwarf2out.c: Include common/common-target.h.
15816 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
15817 dwarf2out_begin_prologue, dwarf2out_frame_init,
15818 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
15819 targetm_common.except_unwind_info.
15820 * except.c: Include common/common-target.h.
15821 (init_eh, finish_eh_generation,
15822 output_one_function_exception_table): Use
15823 targetm_common.except_unwind_info.
15824 (switch_to_exception_section): Use targetm_common.have_named_sections.
15825 * explow.c: Include common/common-target.h.
15826 * expr.c: Include common/common-target.h.
15827 (build_personality_function): Use targetm_common.except_unwind_info.
15828 * function.c: Include common/common-target.h.
15829 (expand_function_end): Use targetm_common.except_unwind_info.
15830 * haifa-sched.c: Include common/common-target.h.
15831 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
15832 * lto-opts.c: Include common/common-target.h instead of target.h.
15833 (lto_reissue_options): Use targetm_common.handle_option.
15834 * opts.c: Include common/common-target.h.
15835 (target_handle_option): Use targetm_common.handle_option.
15836 (init_options_struct): Update comment referring to
15837 targetm.target_option.optimization. Use
15838 targetm_common.default_target_flags,
15839 targetm_common.unwind_tables_default and
15840 targetm_common.option_init_struct.
15841 (default_options_optimization): Use
15842 targetm_common.option_optimization_table.
15843 (finish_options): Use targetm_common.except_unwind_info,
15844 targetm_common.unwind_tables_default,
15845 targetm_common.have_named_sections and
15846 targetm_common.supports_split_stack.
15847 * toplev.c: Include common/common-target.h.
15848 (process_options): Use targetm_common.have_named_sections.
15849 * tree-tailcall.c: Include common/common-target.h.
15850 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
15851 * tree.c: Include common/common-target.h.
15852 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
15853 * varasm.c: Include common/common-target.h.
15854 (resolve_unique_section, hot_function_section,
15855 default_function_section): Use targetm_common.have_named_sections.
15857 2011-06-14 Easwaran Raman <eraman@google.com>
15859 PR rtl-optimization/44194
15860 * dse.c: Include tree-flow.h
15861 (insn_info): Add new field non_frame_wild_read.
15862 (group_info): Add new fields escaped_n and escaped_p.
15863 (kill_on_calls): New variable.
15864 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
15865 (dse_step0): Initialize kill_on_calls.
15866 (can_escape): New function.
15867 (set_usage_bits): Add additional parameter; record information
15868 about escaped locations.
15869 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
15870 (dse_step2_nospill): Set kill_on_calls based on
15871 group->escaped_n and group->escaped_n.
15872 (add_wild_read): Refactor into...
15873 (reset_active_stores): ... New function, and
15874 (free_read_records): ... New function.
15875 (add_non_frame_wild_read): New function.
15876 (scan_insn): Call add_non_frame_wild_read on non-const calls.
15877 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
15878 (dse_step5_nospill): Call scan_reads_nospill for instructions
15879 marked as non_frame_wild_read.
15880 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
15882 2011-06-14 Joseph Myers <joseph@codesourcery.com>
15884 * common/common-target-def.h, common/common-target.def,
15885 common/common-target.h, common/config/default-common.c,
15886 common/config/pa/pa-common.c: New files.
15887 * Makefile.in (common_out_file, common_out_object_file,
15888 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
15889 (OBJS-libcommon-target): Include $(common_out_object_file).
15890 (prefix.o): Update dependencies.
15891 ($(common_out_object_file), common/common-target-hooks-def.h,
15892 s-common-target-hooks-def-h): New.
15893 (s-tm-texi): Also check timestamp on common-target.def.
15894 (build/genhooks.o): Update dependencies.
15895 * config.gcc (common_out_file, target_has_targetm_common): Define.
15896 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
15897 TARGET_ALWAYS_STRIP_DOTDOT.
15898 * configure.ac (common_out_object_file): Define.
15899 (common_out_file, common_out_object_file): Substitute.
15900 (common): Create directory.
15901 * configure: Regenerate.
15902 * doc/tm.texi.in (targetm_common): Document.
15903 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
15904 * doc/tm.texi: Regenerate.
15905 * genhooks.c (hook_array): Also include common/common-target.def.
15906 * prefix.c (tm.h): Don't include.
15907 (common/common-target.h): Include.
15908 (ALWAYS_STRIP_DOTDOT): Don't define.
15909 (update_path): Use targetm_common.always_strip_dotdot instead of
15910 ALWAYS_STRIP_DOTDOT.
15911 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
15913 2011-06-14 David Li <davidxl@google.com>
15915 * passes.c (execute_function_todo): Remove TODO_dump_func.
15916 (execute_one_pass): Remove TODO_dump_func.
15917 (execute_function_dump): New function.
15918 * tree-vrp.c: Remove TODO_dump_func.
15919 * regrename.c: Remove TODO_dump_func.
15920 * fwprop.c: Remove TODO_dump_func.
15921 * tree-into-ssa.c: Remove TODO_dump_func.
15922 * tree-complex.c: Remove TODO_dump_func.
15923 * tracer.c: Remove TODO_dump_func.
15924 * tree-loop-distribution.c: Remove TODO_dump_func.
15925 * postreload-gcse.c: Remove TODO_dump_func.
15926 * postreload.c: Remove TODO_dump_func.
15927 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
15928 * tree-tailcall.c: Remove TODO_dump_func.
15929 * ipa-cp.c: Remove TODO_dump_func.
15930 * final.c: Remove TODO_dump_func.
15931 * tree-emutls.c: Remove TODO_dump_func.
15932 * omp-low.c: Remove TODO_dump_func.
15933 * tree-ssa-dse.c: Remove TODO_dump_func.
15934 * tree-ssa-uncprop.c: Remove TODO_dump_func.
15935 * auto-inc-dec.c: Remove TODO_dump_func.
15936 * reorg.c: Remove TODO_dump_func.
15937 * tree-ssa-copyrename.c: Remove TODO_dump_func.
15938 * tree-ssa-ccp.c: Remove TODO_dump_func.
15939 * compare-elim.c: Remove TODO_dump_func.
15940 * mode-switching.c: Remove TODO_dump_func.
15941 * modulo-sched.c: Remove TODO_dump_func.
15942 * tree-call-cdce.c: Remove TODO_dump_func.
15943 * cse.c: Remove TODO_dump_func.
15944 * web.c: Remove TODO_dump_func.
15945 * tree-stdarg.c: Remove TODO_dump_func.
15946 * lto-streamer-out.c: Remove TODO_dump_func.
15947 * tree-ssa-math-opts.c: Remove TODO_dump_func.
15948 * tree-ssa-dom.c: Remove TODO_dump_func.
15949 * tree-nrv.c: Remove TODO_dump_func.
15950 * loop-init.c: Remove TODO_dump_func.
15951 * gimple-low.c: Remove TODO_dump_func.
15952 * ipa-inline.c: Remove TODO_dump_func.
15953 * tree-ssa-sink.c: Remove TODO_dump_func.
15954 * jump.c: Remove TODO_dump_func.
15955 * ifcvt.c: Remove TODO_dump_func.
15956 * tree-ssa-loop.c: Remove TODO_dump_func.
15957 * recog.c: Remove TODO_dump_func.
15958 * dse.c: Remove TODO_dump_func.
15959 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
15960 * matrix-reorg.c: Remove TODO_dump_func.
15961 * tree-eh.c: Remove TODO_dump_func.
15962 * regmove.c: Remove TODO_dump_func.
15963 * function.c: Remove TODO_dump_func.
15964 * tree-vectorizer.c: Remove TODO_dump_func.
15965 * ipa-split.c: Remove TODO_dump_func.
15966 * gcse.c: Remove TODO_dump_func.
15967 * tree-if-conv.c: Remove TODO_dump_func.
15968 * init-regs.c: Remove TODO_dump_func.
15969 * tree-ssa-phiopt.c: Remove TODO_dump_func.
15970 * implicit-zee.c: Remove TODO_dump_func.
15971 * lower-subreg.c: Remove TODO_dump_func.
15972 * bt-load.c: Remove TODO_dump_func.
15973 * tree-dfa.c: Remove TODO_dump_func.
15974 * except.c: Remove TODO_dump_func.
15975 * emit-rtl.c: Remove TODO_dump_func.
15976 * store-motion.c: Remove TODO_dump_func.
15977 * cfgexpand.c: Remove TODO_dump_func.
15978 * tree-cfgcleanup.c: Remove TODO_dump_func.
15979 * cfgcleanup.c: Remove TODO_dump_func.
15980 * tree-ssa-pre.c: Remove TODO_dump_func.
15981 * tree-sra.c: Remove TODO_dump_func.
15982 * tree-mudflap.c: Remove TODO_dump_func.
15983 * tree-ssa-copy.c: Remove TODO_dump_func.
15984 * cfglayout.c: Remove TODO_dump_func.
15985 * tree-ssa-forwprop.c: Remove TODO_dump_func.
15986 * tree-ssa-dce.c: Remove TODO_dump_func.
15987 * ira.c: Remove TODO_dump_func.
15988 * tree-ssa.c: Remove TODO_dump_func.
15989 * integrate.c: Remove TODO_dump_func.
15990 * tree-optimize.c: Remove TODO_dump_func.
15991 * tree-ssa-phiprop.c: Remove TODO_dump_func.
15992 * tree-object-size.c: Remove TODO_dump_func.
15993 * combine.c: Remove TODO_dump_func.
15994 * bb-reorder.c: Remove TODO_dump_func.
15995 * cprop.c: Remove TODO_dump_func.
15996 * var-tracking.c: Remove TODO_dump_func.
15997 * tree-profile.c: Remove TODO_dump_func.
15998 * tree-vect-generic.c: Remove TODO_dump_func.
15999 * reg-stack.c: Remove TODO_dump_func.
16000 * sched-rgn.c: Remove TODO_dump_func.
16001 * tree-ssa-structalias.c: Remove TODO_dump_func.
16002 * tree-switch-conversion.c: Remove TODO_dump_func.
16003 * tree-cfg.c: Remove TODO_dump_func.
16004 * tree-ssa-reassoc.c: Remove TODO_dump_func.
16005 * combine-stack-adj.c: Remove TODO_dump_func.
16006 * dce.c: Remove TODO_dump_func.
16007 * tree-ssanames.c: Remove TODO_dump_func.
16008 * regcprop.c: Remove TODO_dump_func.
16010 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
16012 PR middle-end/47364
16013 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
16014 and properly handle result not in Pmode.
16016 2011-06-14 Robert Millan <rmh@gnu.org>
16018 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
16019 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
16022 * config/i386/kfreebsd-gnu64.h: New file.
16023 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
16024 with `i386/kfreebsd-gnu64.h'.
16026 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
16027 (GNU_USER_LINK_EMULATION64): New macros.
16028 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
16029 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
16030 of hardcoding `elf_i386' and `elf_x86_64'.
16032 2011-06-14 Nick Clifton <nickc@redhat.com>
16035 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
16038 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
16040 2011-06-14 Jakub Jelinek <jakub@redhat.com>
16043 * tree.h (DECL_NONSHAREABLE): Define.
16044 (struct tree_decl_common): Change decl_common_unused to
16045 decl_nonshareable_flag.
16046 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
16047 Ignore vars with DECL_NONSHAREABLE bit set.
16048 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
16049 on stores to automatic aggregate vars.
16051 PR rtl-optimization/49390
16053 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
16055 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
16058 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
16059 Tom de Vries <tom@codesourcery.com>
16062 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
16063 Document changed semantics.
16064 (max_stmt_executions, max_stmt_executions_int): Declare.
16065 * tree-data-ref.c (estimated_loop_iterations)
16066 (estimated_loop_iterations_int): Move functions...
16067 * tree-ssa-loop-niter.c (estimated_loop_iterations)
16068 (estimated_loop_iterations_int): here.
16069 (record_estimate): Change nb_iterations_upper_bound and
16070 nb_iterations_estimate semantics.
16071 (max_stmt_executions, max_stmt_executions_int): New function.
16072 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
16073 (max_stmt_executions_tree): this.
16074 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
16075 estimated_loop_iterations_tree.
16076 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
16077 max_stmt_executions_int instead of estimated_loop_iterations_int.
16078 * predict.c (predict_loops): Idem.
16079 * tree-parloops.c (parallelize_loops): Idem.
16080 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
16081 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
16082 (init_omega_for_ddr_1): Idem.
16083 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
16084 (loop_prefetch_arrays): Idem
16085 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
16086 max_stmt_executions instead of estimated_loop_iterations.
16087 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
16088 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
16089 instead of nb_iterations_upper_bound.
16091 2011-06-13 Jan Hubicka <jh@suse.cz>
16093 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
16095 2011-06-14 Richard Henderson <rth@redhat.com>
16098 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
16099 (based_loc_descr): Assert it's true.
16100 (compute_frame_pointer_to_fb_displacement): Set it, rather than
16101 aborting immediately.
16103 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
16104 Mingfeng Wu <mingfeng@faraday-tech.com>
16106 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
16108 2011-06-13 Jan Hubicka <jh@suse.cz>
16110 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
16112 2011-06-13 Jan Hubicka <jh@suse.cz>
16114 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
16115 similarly to DECL_COMDAT.
16116 * cgraphunit.c (cgraph_analyze_function): Likewise.
16117 * ipa.c (function_and_variable_visibility): Likewise.
16119 2011-06-13 Jan Hubicka <jh@suse.cz>
16121 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
16122 BINFO_VIRTUALS when streaming for ltrans unit.
16124 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
16126 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
16127 (movdi_internal64): Same.
16129 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
16132 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
16133 a set of similar patterns, where the MATCH_OPERAND for the function
16134 argument is replaced with individual references to hardware registers.
16135 (save_fpregs_<mode>): Ditto
16136 (restore_gpregs_<mode>): Ditto
16137 (return_and_restore_gpregs_<mode>): Ditto
16138 (return_and_restore_fpregs_<mode>): Ditto
16139 (return_and_restore_fpregs_aix_<mode>): Ditto
16141 2011-06-13 Jan Hubicka <jh@suse.cz>
16143 * ipa-utils.c (postorder_stack): New structure.
16144 (ipa_reverse_postorder): Handle aliases.
16146 2011-06-13 Jan Hubicka <jh@suse.cz>
16148 * ipa-inline.c (reset_edge_caches): Walk aliases.
16149 (update_caller_keys): Do not test inlinability of aliases.
16150 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
16151 (do_estimate_growth): Fix typo.
16153 2011-06-13 Jan Hubicka <jh@suse.cz>
16155 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
16156 (can_remove_node_now_p): ... here; handle same comdat groups.
16157 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
16158 (inline_call): Update use of can_remove_node_now_p.
16160 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
16162 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
16163 condition to disallow non-identical memory locations.
16164 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
16165 preference to bit manipulation instructions.
16167 2011-06-13 Jan Hubicka <jh@suse.cz>
16169 * cgraph.c (cgraph_for_node_thunks_and_aliases,
16170 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
16171 (nonremovable_p): New function.
16172 (cgraph_can_remove_if_no_direct_calls_p): New function.
16173 (used_from_object_file_p): New functoin.
16174 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
16175 references from aliases.
16176 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
16177 * ipa-inline.c (check_caller_edge): New function.
16178 (want_inline_function_called_once_p): Use it; accept aliases called
16180 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
16182 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16185 * config/arm/neon.md (vec_pack_trunc): Set the lengths
16186 correctly for the case with Quad vectors.
16188 2011-06-13 Jakub Jelinek <jakub@redhat.com>
16189 Ira Rosen <ira.rosen@linaro.org>
16191 PR tree-optimization/49352
16192 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
16193 all, make sure loop_use_stmt after the loop is a def stmt of a used
16194 SSA_NAME that is the only one defined inside of the loop. Don't
16195 check for COND_EXPR and GIMPLE_BINARY_RHS.
16196 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
16197 check_reduction is true.
16199 2011-06-11 Jan Hubicka <jh@suse.cz>
16201 PR middle-end/49373
16202 * ipa.c (cgraph_externally_visible_p): Check resolution info.
16204 2011-06-11 Jan Hubicka <jh@suse.cz>
16206 PR middle-end/48836
16207 * ipa-inline-transform.c: Include tree-pass.h
16208 (inline_transform): Set TODO_update_ssa_only_virtuals.
16209 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
16211 2011-06-11 Jan Hubicka <jh@suse.cz>
16213 PR middle-end/49378
16214 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
16215 aliases and thunks.
16217 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
16219 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
16220 Take number of iterations to peel into account for equally frequent
16221 misalignment values.
16223 2011-06-11 Jan Hubicka <jh@suse.cz>
16225 * lto-streamer-out.c (produce_symtab): Stream out the newly
16226 represented aliases.
16228 2011-06-11 Jan Hubicka <jh@suse.cz>
16230 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
16232 (ipa_update_after_lto_read): Likewise.
16233 (ipa_write_node_info): Do not sream call_with_var_arguments.
16234 (ipa_read_node_info): Likewise.
16236 2011-06-11 Jan Hubicka <jh@suse.cz>
16238 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
16240 2011-06-11 Jan Hubicka <jh@suse.cz>
16242 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
16243 (lto_symtab_resolve_can_prevail_p): Likewise.
16244 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
16245 * cgraph.c (same_body_aliases_done): New global var.
16246 (cgraph_same_body_alias_1): Rename to ...
16247 (cgraph_create_function_alias): ... this one; reorg to new
16249 (cgraph_same_body_alias): Use cgraph_create_function_alias;
16250 record references when asked to.
16251 (cgraph_add_thunk): Fix formating.
16252 (cgraph_get_node): Kill same body alias code.
16253 (cgraph_node_for_asm): Likewise.
16254 (cgraph_remove_same_body_alias): Remove.
16255 (cgraph_remove_node): Kill same body alias code.
16256 (cgraph_mark_address_taken_node): Mark also the aliased function
16257 as having address taken.
16258 (dump_cgraph_node): Dump same body aliases.
16259 (cgraph_for_node_thunks_and_aliases): Update for new alias
16261 (cgraph_for_node_and_aliases): Likewise.
16262 * cgraph.h (same_body): Kll pointer.
16263 (same_body_alias): Update comment.
16264 (same_body_aliases_done): Declare.
16265 (cgraph_remove_same_body_alias): Remove declaration.
16266 (cgraph_create_function_alias): Declare.
16267 (cgraph_process_same_body_aliases): Declare.
16268 (cgraph_function_with_gimple_body_p): Check for alias.
16269 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
16270 (cgraph_alias_aliased_node): New function.
16271 (cgraph_function_node): Update for new aliases.
16272 (cgraph_function_or_thunk_node): Likewise.
16273 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
16274 (inline_call): Remove dead aliases.
16275 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
16276 name hack for same body aliases.
16277 (clone_of_p): Look through aliases.
16278 (verify_cgraph_node): Verify aliases.
16279 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
16280 (cgraph_process_same_body_aliases): New function.
16281 (process_function_and_variable_attributes): Disable weakref warning on
16283 (cgraph_analyze_functions): Handle aliases.
16284 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
16285 (assemble_thunks): Rename to ...
16286 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
16287 (cgraph_expand_function): Remove alias output code.
16288 (cgraph_output_in_order): Skip aliases.
16289 (cgraph_preserve_function_body_p): Aliases don't need preserving.
16290 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
16291 (ipa_record_reference): Do not assert on alias references.
16292 (ipa_ref_has_aliases_p): New function.
16293 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
16294 (ipa_ref_has_aliases_p): Declare.
16295 * lto-cgraph.c (lto_output_node): Handle aliases.
16296 (input_node): Likewise.
16297 * lto-streamer-out.c (lto_output): Skip aliases.
16298 (produce_symtab): Kill same_body_alias code.
16299 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
16300 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
16301 * ipa-inline.c (update_caller_keys): Walk aliases.
16302 (inline_small_functions): Fix thinko in previous patch.
16303 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
16304 (function_and_variable_visibility): Do not walk same body aliases.
16305 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
16306 (ipa_pta_execute): Use it.
16308 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
16310 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
16311 (*vec_dupv2df): Rename from vec_dupv2df.
16312 (vec_dupv2df): New expander.
16314 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
16316 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
16318 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
16320 * config/i386/i386.md: Use default value in "isa" attribute.
16321 * config/i386/sse.md: Ditto.
16322 * config/i386/mmx.md: Ditto.
16324 2011-06-10 Wei Guozhi <carrot@google.com>
16327 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
16328 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
16329 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
16331 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
16333 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
16334 (arm_legitimate_ldrd_p): New prototype.
16335 (arm_output_ldrd): New prototype.
16336 * config/arm/arm.c (arm_check_ldrd_operands): New function.
16337 (arm_legitimate_ldrd_p): New function.
16338 (arm_output_ldrd): New function.
16340 2011-06-10 David Li <davidxl@google.com>
16342 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
16343 * passes.c (passr_eq): New function.
16344 (create_pass_tab): New function.
16345 (pass_traverse): New function.
16346 (dump_one_pass): New function.
16347 (dump_pass_list): New function.
16348 (dump_passes): New function.
16350 2011-06-10 Jan Hubicka <jh@suse.cz>
16352 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
16353 setting the nothrow flag.
16354 * ipa-reference.c (propagate): Skip aliases.
16355 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
16356 (propagate_nothrow): Skip aliases; do not update cgraph.
16357 (local_pure_const): Do not update cgraph.
16358 * tree-profile.c (tree_profiling): Do fixup_cfg.
16360 2011-06-10 Jan Hubicka <jh@suse.cz>
16362 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
16363 (cgraph_local_node_p): ... here; handle aliases.
16364 (has_addr_references_p): Break out from ...;
16365 (cgraph_remove_unreachable_nodes) ... here.
16367 2011-06-10 Jan Hubicka <jh@suse.cz>
16369 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
16370 * common.opt (flag_inline_functions_called_once): Do not
16373 2011-06-10 Jan Hubicka <jh@suse.cz>
16375 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
16376 (ipcp_initialize_node_lattices): Do not deal with aliases;
16377 Do not try to propagate through thunks.
16378 (ipcp_change_tops_to_bottom): Do not deal with aliases.
16380 2011-06-10 Jan Hubicka <jh@suse.cz>
16382 * ipa-prop.c (ipa_write_node_info): Stream jump functions
16383 for indirect calls.
16384 (ipa_read_node_info): Likewise.
16386 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16389 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
16390 (build_and_insert_call): Likewise.
16391 (build_and_insert_ref): New.
16392 (gimple_expand_builtin_pow): Minor cleanup.
16393 (gimple_expand_builtin_cabs): New.
16394 (execute_cse_sincos): Add case for BUILT_IN_CABS.
16396 2011-06-10 Jan Hubicka <jh@suse.cz>
16398 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
16399 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
16400 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
16401 (ipcp_propagate_stage): Skip aliases when propagating.
16402 (ipcp_need_redirect_p): Skip aliases.
16403 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
16404 collect_callers_of_node.
16405 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
16407 (ipa_compute_jump_functions): Look through aliases.
16409 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16411 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
16413 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
16415 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
16417 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
16419 2011-06-10 Jan Hubicka <jh@suse.cz>
16421 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
16422 Update call of gimple_get_virt_method_for_binfo.
16423 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
16424 refuse_thunks parameter.
16425 (gimple_fold_call): Update.
16426 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
16428 2011-06-10 Jan Hubicka <jh@suse.cz>
16430 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
16431 (not_all_callers_have_enough_arguments_p): ... this one; turn into
16432 worker for cgraph_for_node_and_aliases.
16433 (convert_callers_for_node): Break out from ...
16434 (convert_callers): ... here.
16435 (modify_function): Use collect_callers_of_node.
16436 (ipa_early_sra): Use cgraph_for_node_and_aliases.
16438 2011-06-10 Richard Guenther <rguenther@suse.de>
16440 PR tree-optimization/49361
16441 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
16442 when not already in gimple form.
16444 2011-06-10 Richard Guenther <rguenther@suse.de>
16447 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
16448 FOR_EACH_PHI_OR_STMT_USE.
16450 2011-06-10 Jan Hubicka <jh@suse.cz>
16452 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
16453 (clone_inlined_nodes): ... here.
16454 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
16455 to real destination prior inlining.
16456 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
16457 can_early_inline_edge_p, want_early_inline_function_p,
16458 want_early_inline_function_p, want_inline_small_function_p,
16459 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
16460 edge_badness, update_all_callee_keys, lookup_recursive_calls,
16461 add_new_edges_to_heap, inline_small_functions, flatten_function,
16462 inline_always_inline_functions, early_inline_small_functions): Use
16463 cgraph_function_or_thunk_node.
16464 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
16465 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
16466 (do_estimate_edge_growth_1): Break out from ...
16467 (do_estimate_growth) ... here; walk aliases.
16468 (inline_generate_summary): Skip aliases.
16470 2011-06-10 Richard Guenther <rguenther@suse.de>
16472 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
16473 forward when combining, visit inserted stmts when a stmt was changed.
16475 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
16477 * tree.h (error_operand_p): Add.
16478 * dbxout.c (dbxout_type_fields): Use the latter.
16479 * c-decl.c (add_stmt): Likewise.
16480 * gimplify.c (omp_add_variable, omp_notice_variable,
16481 gimplify_scan_omp_clauses): Likewise.
16483 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
16485 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
16486 when a value is actually passed in regs.
16488 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
16489 Laurent Rougé <laurent.rouge@menta.fr>
16491 * doc/invoke.texi (SPARC options): Add -mflat.
16492 * config/sparc/sparc.opt: Likewise.
16493 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
16494 (sparc_flat_expand_prologue): Declare.
16495 (sparc_flat_expand_epilogue): Likewise.
16496 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
16497 (CPP_ENDIAN_SPEC): Replace with...
16498 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
16499 (CPP_SPEC): Adjust to above change.
16500 (EXTRA_SPECS): Likewise.
16501 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
16502 (INCOMING_REGNO): Likewise.
16503 (OUTGOING_REGNO): Likewise.
16504 (LOCAL_REGNO): Likewise.
16505 (SETUP_FRAME_ADDRESSES): Likewise.
16506 (FIXED_REGISTERS): Set 0 for %fp.
16507 (CALL_USED_REGISTERS): Likewise.
16508 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
16509 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
16510 (RETURN_ADDR_REGNUM): Define.
16511 (RETURN_ADDR_RTX): Use it.
16512 (INCOMING_RETURN_ADDR_REGNUM): Define.
16513 (INCOMING_RETURN_ADDR_RTX): Use it.
16514 (DWARF_FRAME_RETURN_COLUMN): Likewise.
16515 (EH_RETURN_REGNUM): Define.
16516 (EH_RETURN_STACKADJ_RTX): Use it.
16517 (EH_RETURN_HANDLER_RTX): Delete.
16518 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
16519 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
16521 (struct machine_function): Add frame_size, apparent_frame_size,
16522 frame_base_reg, frame_base_offset, n_global_fp_regs and
16523 save_local_in_regs_p fields.
16524 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
16525 sparc_frame_base_offset, sparc_n_global_fp_regs,
16526 sparc_save_local_in_regs_p): New macros.
16527 (sparc_option_override): Error out if -fcall-saved-REG is specified
16529 (eligible_for_restore_insn): Fix formatting.
16530 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
16531 (eligible_for_sibcall_delay): Likewise.
16532 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
16533 (sparc_legitimate_address_p): Adjust to above change.
16534 (save_global_or_fp_reg_p): New predicate.
16535 (return_addr_reg_needed_p): Likewise.
16536 (save_local_or_in_reg_p): Likewise.
16537 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
16538 (SORR_SAVE, SORR_RESTORE): Delete.
16539 (sorr_pred_t): New typedef.
16540 (sorr_act_t): New enum.
16541 (save_or_restore_regs): Rename to...
16542 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
16543 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
16544 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
16545 mechanism. Add CFI information for double-word saves in 32-bit mode.
16546 (emit_adjust_base_to_offset): New function extracted from...
16547 (emit_save_or_restore_regs): ...this. Rename the rest to...
16548 (emit_save_or_restore_regs_global_fp_regs): ...this.
16549 (emit_save_or_restore_regs_local_in_regs): New function.
16550 (gen_create_flat_frame_[123]): New functions.
16551 (sparc_expand_prologue): Use SIZE local variable. Adjust.
16552 (sparc_flat_expand_prologue): New function.
16553 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
16554 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
16555 (sparc_flat_expand_epilogue): New function.
16556 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
16557 (output_return): Likewise.
16558 (output_sibcall): Likewise.
16559 (sparc_output_mi_thunk): Likewise.
16560 (sparc_frame_pointer_required): Likewise.
16561 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
16562 function optimization.
16563 * config/sparc/sparc.md (flat): New attribute.
16564 (prologue): Add TARGET_FLAT handling.
16565 (save_register_window): Disable if TARGET_FLAT.
16566 (create_flat_frame_[123]): New patterns.
16567 (epilogue): Add TARGET_FLAT handling.
16568 (sibcall_epilogue): Likewise.
16569 (eh_return): New expander.
16570 (eh_return_internal): New insn and splitter.
16571 (return_internal): Add TARGET_FLAT handling.
16572 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
16573 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
16574 (nonlocal_goto): Add TARGET_FLAT handling.
16575 * config/sparc/t-elf: Add -mflat multilib.
16576 * config/sparc/t-leon: Likewise.
16578 2011-06-10 Jan Hubicka <jh@suse.cz>
16580 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
16581 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
16582 (self_recursive_p): Use cgraph_function_node.
16583 (propagate_pure_const): Likewise.
16584 (propagate_nothrow): Likewise.
16585 * ipa-reference.c (ipa_reference_get_not_read_global): Use
16586 cgraph_function_node.
16587 (propagate_bits): Likewise.
16588 (propagate): Likewise.
16590 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16591 Richard Earnshaw <rearnsha@arm.com>
16593 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
16594 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
16595 (*thumb2_movdi_vfp): Delete.
16596 (*arm_movdi_vfp_cortexa8): Delete.
16597 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
16598 (*movdi_vfp_cortexa8): Likewise.
16600 2011-06-10 Richard Guenther <rguenther@suse.de>
16602 * stor-layout.c (initialize_sizetypes): Give names to all
16605 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
16607 PR tree-optimization/49318
16608 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
16609 irrelevant pattern statements.
16611 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
16613 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
16616 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
16617 to last assignment.
16619 2011-06-09 Jan Hubicka <jh@suse.cz>
16621 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
16622 do not recompute reachable flag.
16623 (cgraph_finalize_function, cgraph_analyze_functions): Set
16624 redefined_extern_inline here.
16626 2011-06-09 Jan Hubicka <jh@suse.cz>
16628 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
16629 (cgraph_only_called_directly_p): ... this one; bring offline.
16630 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
16631 varpool_used_from_object_file_p): Drop names from the declaratoin.
16632 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
16633 collect_callers_of_node): New.
16634 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
16635 (cgraph_edge_recursive_p): Use cgraph_function_node.
16636 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
16637 (cgraph_node_cannot_be_local_p_1): Break out from ...
16638 (cgraph_node_can_be_local_p): ... here; walk aliases.
16639 (cgraph_for_node_thunks_and_aliases): New function.
16640 (cgraph_for_node_and_aliases): New function.
16641 (cgraph_make_node_local_1): Break out from ...
16642 (cgraph_make_node_local) ... here; use
16643 cgraph_for_node_thunks_and_aliases.
16644 (cgraph_set_nothrow_flag_1): Break out from ...
16645 (cgraph_set_nothrow_flag) ... here;
16646 use cgraph_for_node_thunks_and_aliases.
16647 (cgraph_set_const_flag_1): Break out from ...
16648 (cgraph_set_const_flag) ... here;
16649 use cgraph_for_node_thunks_and_aliases.
16650 (cgraph_set_pure_flag_1): Break out from ...
16651 (cgraph_set_pure_flag) ... here;
16652 use cgraph_for_node_thunks_and_aliases.
16653 (cgraph_propagate_frequency_1): Break out from ...
16654 (cgraph_propagate_frequency) ... here; use
16655 cgraph_for_node_thunks_and_aliases.
16656 (cgraph_used_from_object_file_p): Do not care about aliases.
16657 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
16659 (collect_callers_of_node_1, collect_callers_of_node): New functions.
16661 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
16663 PR rtl-optimization/49154
16664 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
16665 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
16666 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
16667 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
16668 * config/cris/cris.h (cris_register_move_cost): Remove
16669 !TARGET_V32 code. Tweak comments.
16671 2011-06-09 Jan Hubicka <jh@suse.cz>
16673 * cgraphbuild.c (record_eh_tables): Mark personality function as having
16676 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
16678 PR rtl-optimization/49154
16679 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
16680 is a matching slot in the hashtable, assign it to classes_ptr.
16682 PR rtl-optimization/49154
16683 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
16685 * doc/tm.texi: Regenerate.
16687 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
16690 * config/sh/sh.md (UNSPEC_CHKADD): New.
16691 (chk_guard_add): New define_insn_and_split.
16692 (symGOT_load): Use chk_guard_add instead of blockage.
16694 2011-06-09 Kai Tietz <ktietz@redhat.com>
16696 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
16698 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
16700 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
16702 2011-06-09 Wei Guozhi <carrot@google.com>
16705 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
16706 (peephole2 for conditional move): Generate 16 bit instructions.
16708 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
16710 * config/i386/i386.md (*movdi_internal_rex64): Merge
16711 alternatives 6 and 8.
16713 2011-06-09 David Li <davidxl@google.com>
16715 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
16716 * passes.c (passr_eq): New function.
16717 (create_pass_tab): New function.
16718 (pass_traverse): New function.
16719 (dump_one_pass): New function.
16720 (dump_pass_list): New function.
16721 (dump_passes): New function.
16723 2011-06-09 David Li <davidxl@google.com>
16725 * tree-complex.c (tree_lower_complex): Gate cleanup.
16726 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
16727 (execute_optimize_stdarg): Ditto.
16728 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
16729 (execute_cleanup_eh_1): Ditto.
16730 (execute_cleanup_eh): Ditto.
16731 * gcse.c (gate_rtl_pre): Ditto.
16732 (execute_rtl_pre): Ditto.
16733 * except.c (finish_eh_generation): Ditto.
16734 (convert_to_eh_region_ranges): Ditto.
16735 * cprop.c (one_cprop_pass): Ditto.
16737 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
16740 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
16741 in all basic blocks.
16743 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16745 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
16746 (HAVE_ENABLE_EXECUTE_STACK): Define.
16747 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
16748 (HAVE_ENABLE_EXECUTE_STACK): Define.
16749 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
16750 (HAVE_ENABLE_EXECUTE_STACK): Define.
16751 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
16752 (ENABLE_EXECUTE_STACK): Remove.
16753 (HAVE_ENABLE_EXECUTE_STACK): Define.
16754 [IN_LIBGCC2]: Don't include <windows.h>.
16755 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
16756 (HAVE_ENABLE_EXECUTE_STACK): Define.
16757 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
16758 (HAVE_ENABLE_EXECUTE_STACK): Define.
16759 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
16760 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
16761 (HAVE_ENABLE_EXECUTE_STACK): Define.
16762 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
16763 (HAVE_ENABLE_EXECUTE_STACK): Define.
16764 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
16765 (HAVE_ENABLE_EXECUTE_STACK): Define.
16766 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
16767 (HAVE_ENABLE_EXECUTE_STACK): Define.
16768 * config/alpha/alpha.c (alpha_trampoline_init): Test
16769 HAVE_ENABLE_EXECUTE_STACK.
16770 * config/i386/i386.c (ix86_trampoline_init): Likewise.
16771 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
16772 (sparc64_initialize_trampoline): Likewise.
16773 * libgcc2.c [L_enable_execute_stack]: Remove.
16774 * system.h (ENABLE_EXECUTE_STACK): Poison.
16775 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
16776 * doc/tm.texi: Regenerate.
16777 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
16779 2011-06-09 Jakub Jelinek <jakub@redhat.com>
16781 PR middle-end/49308
16782 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
16783 variable. After resetting and rescanning insn continue with previous
16786 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16788 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
16789 (gcc_cv_ld_hidden): Likewise.
16790 * configure: Regenerate.
16791 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
16792 (ix86_stack_protect_fail): Mark unused.
16793 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
16794 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
16795 [TARGET_MACHO]: Don't define.
16796 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
16797 (TARGET_STACK_PROTECT_FAIL): Likewise.
16798 (rs6000_stack_protect_fail): Mark unused.
16799 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
16800 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
16802 2011-06-08 Andi Kleen <ak@linux.intel.com>
16804 * varasm.c (get_section): Print location of other conflict
16805 for section conflicts.
16807 2011-06-08 Andi Kleen <ak@linux.intel.com>
16809 * config/i386/driver-i386.c (host_detect_local_cpu):
16810 Add model 0x2d Intel CPU.
16812 2011-06-08 Andi Kleen <ak@linux.intel.com>
16814 * reginfo.c (global_regs_decl): Add.
16815 (globalize_reg): Add decl parameter. Compute location. Pass location
16816 to warnings and add inform. Store decl in global_regs_decl.
16817 * rtl.h (globalize_reg): Update prototype.
16818 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
16820 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
16822 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
16824 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
16827 * config/sh/predicates.md (general_movsrc_operand): Check
16828 mode for memory with indexed address for QI and HImode.
16829 (general_movdst_operand): Likewise.
16831 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
16833 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
16835 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
16837 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
16838 (num_ssa_operands): Likewise.
16839 (op_iter_init_phiuse): Forward-declare.
16840 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
16842 2011-06-08 Nick Clifton <nickc@redhat.com>
16844 * doc/invoke.texi (ARM Options): Update description of
16847 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
16849 * config/i386/driver-i386.c (host_detect_local_cpu): Support
16850 unknown Intel family 0x6 CPUs.
16852 2011-06-08 Martin Jambor <mjambor@suse.cz>
16854 * tree-sra.c (mark_rw_status): Removed.
16855 (analyze_access_subtree): New parameter parent instead of
16856 mark_read and mark_write, propagate from that.
16858 2011-06-08 Julian Brown <julian@codesourcery.com>
16860 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
16861 for double-precision helper functions in hard-float mode if only
16862 single-precision arithmetic is supported in hardware.
16864 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
16866 PR rtl-optimization/49303
16867 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
16868 code_motion_path_driver returned 0 or 1.
16869 (sel_region_finish): Clear h_d_i_d.
16871 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
16873 * config/sh/sh.c (prepare_move_operands): Set pic register
16874 appropriately for global and local dynamic tls models even
16875 if flag_pic is unset.
16877 2011-06-07 Jason Merrill <jason@redhat.com>
16879 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
16881 2011-06-07 Xinliang David Li <davidxl@google.com>
16882 * passes.c (enable_disable_pass): Handle assembler name.
16883 (is_pass_explicitly_enabled_or_disabled): Ditto.
16885 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16887 PR tree-optimization/48497
16888 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
16890 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16892 PR tree-optimization/46728
16893 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
16894 to use gimple_val_nonnegative_real_p.
16895 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
16896 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
16898 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
16900 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
16902 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
16904 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
16907 2011-06-07 Richard Guenther <rguenther@suse.de>
16909 * stor-layout.c (initialize_sizetypes): Initialize all
16910 sizetypes based on target definitions.
16911 (set_sizetype): Remove.
16912 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
16913 * tree.h (set_sizetype): Remove.
16915 2011-06-07 Nick Clifton <nickc@redhat.com>
16917 * config.gcc: Unify V850 architecture options and add support for
16918 newer V850 architectures.
16919 * config/v850/t-v850e: Delete.
16921 2011-06-07 Richard Guenther <rguenther@suse.de>
16923 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
16924 Call set_sizetype from here.
16926 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
16928 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
16929 (*maddhisi4tb, *maddhisi4tt): New define_insns.
16931 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
16932 Andrew Stubbs <ams@codesourcery.com>
16934 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
16936 * doc/md.texi (Canonicalization of Instructions): Document widening
16937 multiply canonicalization.
16939 2011-06-07 Jakub Jelinek <jakub@redhat.com>
16941 PR gcov-profile/49299
16942 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
16944 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
16946 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
16948 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
16949 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
16950 vect_recog_pow_pattern): Likewise.
16951 (vect_pattern_recog_1): Remove declaration.
16952 (widened_name_p): Remove declaration. Add new argument to specify
16953 whether to check that both types are either signed or unsigned.
16954 (vect_recog_widen_mult_pattern): Update documentation. Handle
16955 unsigned patterns and multiplication by constants.
16956 (vect_pattern_recog_1): Update vect_recog_func references. Use
16957 statement information from the statement returned from pattern
16958 detection functions.
16959 (vect_pattern_recog): Update vect_recog_func reference.
16960 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
16961 multiplication by a constant use the type of the other operand.
16963 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
16965 PR rtl-optimization/49145
16966 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
16968 2011-06-06 Jakub Jelinek <jakub@redhat.com>
16971 * dwarf2out.c (native_encode_initializer): Decrement count in each
16975 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
16976 non-MODE_INT modes.
16979 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
16980 if stmt folded into nothing.
16981 * tree-inline.c (fold_marked_statements): If a builtin at the end of
16982 a bb folded into nothing, just update cgraph edges and move to next bb.
16983 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
16984 to be NULL. Don't compute count and frequency if new_call is NULL.
16986 2011-06-04 Diego Novillo <dnovillo@google.com>
16988 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
16989 (cgraph.o): Likewise.
16990 (cgraphunit.o): Likewise.
16991 * cgraphunit.c: Include lto-streamer.h
16992 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
16994 * lto-streamer-in.c (unpack_value_fields): Call
16995 streamer_hooks.unpack_value_fields if set.
16996 (lto_materialize_tree): For unhandled nodes, first try to
16997 call lto_streamer_hooks.alloc_tree, if it exists.
16998 (lto_input_ts_decl_common_tree_pointers): Move reading of
16999 DECL_INITIAL to lto_streamer_read_tree.
17000 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
17001 (lto_streamer_read_tree): New.
17002 (lto_reader_init): Rename from lto_init_reader.
17003 Move initialization code to lto/lto.c.
17004 * lto-streamer-out.c (pack_value_fields): Call
17005 streamer_hooks.pack_value_fields if set.
17006 (lto_output_tree_ref): For tree nodes that are not normally indexable,
17007 call streamer_hooks.indexable_with_decls_p before giving up.
17008 (lto_output_ts_decl_common_tree_pointers): Move handling
17009 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
17010 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
17011 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
17012 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
17013 (lto_streamer_write_tree): New.
17014 (lto_output): Call lto_streamer_init directly.
17015 (lto_writer_init): Remove.
17016 * lto-streamer.c (streamer_hooks): New.
17017 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
17018 instead of lto_preload_common_nodes.
17019 (lto_is_streamable): Move from lto-streamer.h
17020 (lto_streamer_hooks_init): New.
17021 (streamer_hooks): New.
17022 (streamer_hooks_init): New.
17023 * lto-streamer.h (struct output_block): Forward declare.
17024 (struct lto_input_block): Likewise.
17025 (struct data_in): Likewise.
17026 (struct bitpack_d): Likewise.
17027 (struct streamer_hooks): Declare.
17028 (streamer_hooks): Declare.
17029 (lto_streamer_hooks_init): Declare.
17030 (lto_streamer_write_tree): Declare.
17031 (lto_streamer_read_tree): Declare.
17032 (streamer_hooks_init): Declare.
17033 (lto_is_streamable): Move to lto-streamer.c
17035 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17037 * longlong.h (smul_ppmm): The resulting register pair contains the
17038 higher order word first.
17040 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17042 PR tree-optimization/46728
17043 * builtins.c (powi_table): Remove.
17044 (powi_lookup_cost): Remove.
17045 (powi_cost): Remove.
17046 (expand_powi_1): Remove.
17047 (expand_powi): Remove.
17048 (expand_builtin_pow_root): Remove.
17049 (expand_builtin_pow): Remove.
17050 (expand_builtin_powi): Eliminate handling of constant exponent.
17051 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
17053 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
17055 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
17057 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
17059 * dce.c (reset_unmarked_insns_debug_uses): New.
17060 (delete_unmarked_insns): Skip debug insns.
17061 (prescan_insns_for_dce): Likewise.
17062 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
17063 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
17064 active reg can be found.
17065 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
17066 (convert_regs_1): Use it.
17068 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
17070 * tree-pretty-print.c (dump_function_header): Add flags.
17071 Don't dump decl_uid with nouid.
17072 * tree-pretty-print.h (dump_function_header): Adjust.
17073 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
17074 * passes.c (pass_init_dump_file): Pass dump_flags on.
17075 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
17077 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
17080 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
17082 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
17084 PR tree-optimization/49243
17085 * calls.c (setjmp_call_p): Also check if fndecl has the
17086 returns_twice attribute.
17088 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17090 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
17093 2011-06-06 Richard Henderson <rth@redhat.com>
17094 Georg-Johann Lay <avr@gjlay.de>
17097 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
17099 * config/avr/avr.md ("insv"): New insn expander.
17100 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
17101 "*insv.not.io", "*insv.reg"): New insns.
17103 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
17106 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
17107 to nonimmediate_operand from memory_operand for the operand that is to
17108 be forced to memory by the expander. Lose the constraints.
17110 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
17112 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
17113 EH return when delayed branches are disabled.
17115 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
17117 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
17118 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
17120 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
17121 Simplify MODE_V1DF and MODE_V2SF handling.
17122 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
17123 Simplify MODE_SF handling.
17125 2011-06-04 Jan Hubicka <jh@suse.cz>
17127 PR tree-optimization/48893
17128 PR tree-optimization/49091
17129 PR tree-optimization/49179
17130 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
17133 2011-06-04 Jan Hubicka <jh@suse.cz>
17136 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
17139 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
17141 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
17143 2011-06-04 Jakub Jelinek <jakub@redhat.com>
17146 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
17147 to be strictly smaller than 1 << shiftcount.
17149 2011-06-04 Jan Hubicka <jh@suse.cz>
17151 PR tree-optimize/48929
17152 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
17153 of empty predicate.
17155 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
17158 * calls.c (emit_call_1): Prefer the __builtin declaration of
17161 2011-06-03 Diego Novillo <dnovillo@google.com>
17163 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
17164 (lto_input_tree_pointers): Likewise.
17165 * lto-streamer-out.c (pack_value_fields): Likewise.
17166 (lto_output_tree_pointers): Likewise.
17167 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
17168 and OPTIMIZATION_NODE.
17170 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17172 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
17173 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
17174 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
17175 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
17176 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
17177 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
17178 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
17179 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
17180 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
17181 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
17182 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
17183 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
17184 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
17185 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
17186 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
17187 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
17188 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
17189 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
17190 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
17191 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
17192 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
17193 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
17194 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
17195 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
17196 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
17197 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
17198 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
17199 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
17200 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
17201 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
17202 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
17203 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
17204 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
17205 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
17206 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
17207 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
17208 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
17209 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
17210 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
17211 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
17212 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
17213 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
17214 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
17215 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
17216 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
17217 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
17218 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
17219 * system.h (MD_UNWIND_SUPPORT): Poison.
17220 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
17221 * doc/tm.texi: Regenerate.
17222 * unwind-dw2.c: Include md-unwind-support.h instead of
17224 * config/ia64/unwind-ia64.c: Likewise.
17225 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
17227 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
17229 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
17231 2011-06-03 Richard Henderson <rth@redhat.com>
17232 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17234 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
17235 (sigill_hdlr): Correct insn, insn size.
17236 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
17238 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17240 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
17242 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
17243 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
17244 * config/mips/t-iris: Remove.
17245 * config/mips/t-irix6: New file.
17246 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
17248 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17250 * Makefile.in (LIB2ADDEHDEP): Remove.
17251 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
17252 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
17253 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
17254 * config/t-darwin (LIB2ADDEHDEP): Remove.
17255 * config/t-freebsd (LIB2ADDEHDEP): Remove.
17256 * config/t-linux (LIB2ADDEHDEP): Remove.
17258 2011-06-03 Diego Novillo <dnovillo@google.com>
17260 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
17261 (lto_register_var_decl_in_symtab): Likewise.
17262 (lto_register_function_decl_in_symtab): Likewise.
17263 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
17264 logic to uniquify_nodes.
17266 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17268 * config/alpha/t-osf5: Remove.
17269 * config/alpha/t-osf-pthread: Remove.
17270 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
17271 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
17273 2011-06-03 Julian Brown <julian@codesourcery.com>
17275 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
17276 (strongarm1110): Use strongarm tuning.
17277 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
17278 * config/arm/arm.c (arm_strongarm_tune): New.
17279 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
17280 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
17281 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
17282 setting, using previous defaults or 1 for Cortex-A5.
17283 (arm_option_override): Set max_insns_skipped from current tuning.
17285 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
17287 * doc/install.texi (Options specification): Document --with-specs.
17289 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17291 * config/arm/neon.md (orndi3_neon): Actually split it.
17293 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
17295 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
17296 * var-tracking.c (reverse_op): Limite recurse depth to 5.
17298 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
17301 * target.def (delay_sched2, delay_vartrack): New.
17302 * doc/tm.texi.in: Update.
17303 * doc/tm.texi: Rebuild.
17304 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
17305 * var-tracking.c (gate_handle_var_tracking): Likewise.
17306 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
17307 (bfin_flag_var_tracking): Drop.
17308 (output_file_start): Don't save and override flag_var_tracking.
17309 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
17310 (bfin_reorg): Test original variables.
17311 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
17312 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
17313 (ia64_flag_var_tracking): Drop.
17314 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
17315 (ia64_file_start): Don't save and override flag_var_tracking.
17316 (ia64_override_options_after_change): Ditto
17317 flag_schedule_insns_after_reload.
17318 (ia64_reorg): Test original variables.
17319 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
17320 (picochip_flag_var_tracking): Drop.
17321 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
17322 (picochip_option_override): Don't save and override
17323 flag_schedule_insns_after_reload.
17324 (picochip_asm_file_start): Ditto flag_var_tracking.
17325 (picochip_reorg): Test original variables.
17326 * config/spu/spu.c (spu_flag_var_tracking): Drop.
17327 (TARGET_DELAY_VARTRACK): Define.
17328 (spu_var_tracking): New.
17329 (spu_machine_dependent_reorg): Call it.
17330 (asm_file_start): Don't save and override flag_var_tracking.
17332 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
17335 * config/sh/predicates.md (general_movsrc_operand): Return 0
17336 for memory and memory subreg of which address is an invalid
17337 indexed address for QI and HImode.
17338 (general_movdst_operand): Likewise.
17340 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
17342 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
17343 edges only, when there is a non-local label in the function.
17344 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
17346 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
17348 * config/i386/constraints.md (Y3): New register constraint.
17349 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
17350 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
17351 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
17352 *sse2_interleave_lowv2df.
17354 2011-06-02 Julian Brown <julian@codesourcery.com>
17356 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
17357 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
17358 (arm_cortex_a5_tune): New.
17360 2011-06-02 Julian Brown <julian@codesourcery.com>
17362 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
17363 * config/arm/arm.c (arm_default_branch_cost): New.
17364 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
17365 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
17366 (arm_fa726_tune): Set branch_cost field using
17367 arm_default_branch_cost.
17368 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
17369 current_tune structure.
17370 * dojump.c (tm_p.h): Include file.
17372 2011-06-02 Julian Brown <julian@codesourcery.com>
17374 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
17376 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
17377 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
17378 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
17380 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
17381 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
17382 (arm_fa726te_tune): Add prefer_constant_pool setting.
17383 (arm_v6t2_tune, arm_cortex_tune): New.
17384 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
17385 prefer_constant_pool setting.
17387 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
17389 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
17391 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
17392 (*movdf_internal) <case 6,7,8>: Ditto.
17394 * config/i386/constraints.md (Y4): New register constraint.
17395 * config/i386/sse.md (vec_set<mode>_0): Merge with
17396 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
17397 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
17398 *vec_extractv2di_1_sse.
17399 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
17400 and *vec_concatv2di_rex64_sse.
17402 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
17405 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
17406 of cgraph_local_info for null before attempting to use it.
17408 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
17410 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
17411 (current_function_dynamic_alloc_count): Delete.
17412 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
17413 (expand_builtin_nonlocal_goto): Remove obsolete comment.
17414 (expand_builtin_update_setjmp_buf): Remove dead code.
17415 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
17416 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
17418 * function.c (instantiate_virtual_regs): Likewise.
17419 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
17420 for a block with a single abnormal incoming edge.
17421 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
17422 (SETJMP_VIA_SAVE_AREA): Delete.
17423 * config/sparc/sparc-protos.h (load_got_register): Declare.
17424 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
17425 (load_got_register): Make global.
17426 (sparc_frame_pointer_required): Add 'static'.
17427 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
17428 (sparc_builtin_setjmp_frame_value): New function.
17429 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
17430 (save_stack_nonlocal): New expander.
17431 (restore_stack_nonlocal): Likewise.
17432 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
17433 (nonlocal_goto_internal): New insn.
17434 (goto_handler_and_restore): Delete.
17435 (builtin_setjmp_setup): Likewise.
17436 (do_builtin_setjmp_setup): Likewise.
17437 (setjmp): Likewise.
17438 (builtin_setjmp_receiver): New expander.
17440 2011-06-01 David Li <davidxl@google.com>
17442 PR middle-end/49261
17443 * tree-pretty-print.c (dump_function_header): Format cleanup.
17445 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
17448 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
17449 needed when original operands are used for msw_skip comparison.
17451 2011-06-01 Jakub Jelinek <jakub@redhat.com>
17454 * var-tracking.c (add_uses, add_stores): Don't call
17455 cselib_subst_to_values on ENTRY_VALUE.
17457 2011-06-01 Diego Novillo <dnovillo@google.com>
17459 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
17460 output_record_start with LTO_null instead of output_zero.
17461 (lto_output_ts_binfo_tree_pointers): Likewise.
17462 (lto_output_tree): Likewise.
17463 (output_eh_try_list): Likewise.
17464 (output_eh_region): Likewise.
17465 (output_eh_lp): Likewise.
17466 (output_eh_regions): Likewise.
17467 (output_bb): Likewise.
17468 (output_function): Likewise.
17469 (output_unreferenced_globals): Likewise.
17470 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
17471 instead of NUM_TREE_CODES.
17472 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
17473 (lto_output_int_in_range): Change << to >> when shifting VAL.
17475 2011-06-01 Diego Novillo <dnovillo@google.com>
17477 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
17478 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
17480 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
17483 * optabs.h (valid_multiword_target_p): Declare.
17484 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
17485 doing multi-word operations.
17486 * optabs.c (expand_binop): Likewise.
17487 (expand_doubleword_bswap): Likewise.
17488 (expand_absneg_bit): Likewise.
17489 (expand_unop): Likewise.
17490 (expand_copysign_bit): Likewise.
17491 (multiword_target_p): New function.
17493 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
17495 PR rtl-optimization/48830
17496 PR rtl-optimization/48808
17497 PR rtl-optimization/48792
17498 * reload.c (push_reload): Check contains_reg_of_mode.
17499 * reload1.c (strip_paradoxical_subreg): New function.
17500 (gen_reload_chain_without_interm_reg_p): Use it to handle
17501 paradoxical subregs.
17502 (emit_output_reload_insns, gen_reload): Likewise.
17504 2011-06-01 David Li <davidxl@google.com>
17506 * predict.c : Change pass name
17509 * tree-profile.c: Ditto.
17512 2011-06-01 David Li <davidxl@google.com>
17514 * tree-pretty-print.c (dump_function_header): New function.
17515 * final.c (rest_of_clean_state): Use header dumper.
17516 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
17517 * passes.c (pass_init_dump_file): Use header dumper.
17519 2011-06-01 Jakub Jelinek <jakub@redhat.com>
17521 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
17522 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
17523 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
17525 (mem_loc_descriptor): Use them.
17527 * var-tracking.c (create_entry_value): New function.
17528 (vt_add_function_parameter): Use it.
17530 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17532 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
17533 Include <signal.h>, <ucontext.h>.
17534 (sigill_caught): Define.
17535 (sigill_hdlr): New function.
17536 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
17537 insns can be executed.
17538 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
17539 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
17541 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17543 * config/t-slibgcc-darwin: Move to ...
17544 * config/t-slibgcc-dummy: ... this. Clarify comments.
17545 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
17546 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
17547 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
17548 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
17549 Remove i386/t-crtstuff from tmake_file.
17550 (i[34567]86-*-solaris2*): Remove t-svr4,
17551 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
17553 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
17554 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
17555 sparc/t-crtfm from tmake_file.
17556 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
17557 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
17558 Remove extra_parts.
17559 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
17560 * config/i386/t-nwld (SHLIB_LINK): Remove.
17561 * config/i386/t-rtems-i386: Rename to ...
17562 * config/i386/t-rtems: ... this.
17563 ($(T)crti.o, $(T)crtn.o): Remove.
17564 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
17565 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
17566 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
17567 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
17568 EXTRA_MULTILIB_PARTS): Remove.
17569 * config/sparc/t-sol2-64: Likewise.
17570 * config/sparc/t-sol2: Remove.
17571 * config/sparc/t-crtin: Remove.
17572 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
17573 * config/i386/gmon-sol2.c: Remove.
17574 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
17575 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
17576 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
17577 * config/i386/sol2-gc1.asm: Remove.
17578 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
17579 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
17580 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
17581 * config/t-slibgcc-sld: Remove.
17583 2011-06-01 Jakub Jelinek <jakub@redhat.com>
17585 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
17586 base_type_for_mode with op_mode instead of mode.
17588 2011-06-01 Paul Brook <paul@cpodesourcery.com>
17590 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
17592 * config/arm/arm-tune.md: Regenerate.
17593 * config/arm/arm-tables.opt: Regenerate.
17594 * config/arm/arm.c (FL_DIV): Rename...
17595 (FL_THUMB_DIV): ... to this.
17596 (FL_ARM_DIV): Define.
17597 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
17598 (arm_arch_hwdiv): Remove.
17599 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
17600 (arm_issue_rate): Add cortexr5.
17601 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
17602 __ARM_ARCH_EXT_IDIV__.
17603 (TARGET_IDIV): Define.
17604 (arm_arch_hwdiv): Remove.
17605 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
17606 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
17607 (divsi3, udivsi3): New patterns.
17608 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
17609 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
17611 2011-06-01 Martin Jambor <mjambor@suse.cz>
17613 * ipa-utils.c (ipa_dfs_info): New field scc_no.
17614 * ipa-utils.c (searchc): Set scc_no.
17616 2011-06-01 Martin Jambor <mjambor@suse.cz>
17618 * ipa-utils.c (searchc_env): New field allow_overwritable.
17619 (searchc): do not ignore edges to overwritable nodes if indicated
17620 by env->allow_overwritable.
17621 (ipa_reduced_postorder): Set env.allow_overwritable.
17623 2011-06-01 Richard Guenther <rguenther@suse.de>
17625 * tree.c (free_lang_data): Do not reset boolean_type_node nor
17627 * lto-streamer.c (lto_record_common_node): Take node pointer,
17628 do not register types.
17629 (lto_preload_common_nodes): Explicitly skip preloading nodes
17630 that differ between frontends.
17632 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
17634 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
17637 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
17639 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
17640 parameter value for dump. Dump cost on outermost call only.
17641 (rs6000_memory_move_cost): Dump cost on outermost call only.
17643 2011-05-31 Jakub Jelinek <jakub@redhat.com>
17645 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
17646 DW_OP_GNU_convert ops.
17648 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
17649 cselib_preserve_constants.
17650 (cselib_lookup_1): If cselib_preserve_constants,
17651 a new VALUE is being created for REG and there is a VALUE for the
17652 same register in wider mode, add another loc with lowpart SUBREG of
17654 (cselib_subst_to_values): Handle ENTRY_VALUE.
17655 * var-tracking.c (replace_expr_with_values): Return NULL for
17657 * dwarf2out.c (convert_descriptor_to_signed): New function.
17658 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
17659 instead of two shifts.
17660 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
17661 the right mode if needed.
17662 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
17663 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
17664 convert_descriptor_to_signed.
17665 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
17666 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
17669 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
17671 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
17673 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
17674 of X87MODEI12 and SWI48x instead of SSEMODEI24.
17675 (SWI248x): New mode iterator, rename from X87MODEI.
17676 (X87MODEI): Remove mode iterator.
17677 (X87MODEI12): Ditto.
17678 (SSEMODEI24): Ditto.
17680 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
17682 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
17683 * doc/invoke.texi: Document max-vartrack-expr-depth.
17684 * var-tracking.c (EXPR_DEPTH): New.
17685 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
17687 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
17689 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
17690 * config/i386/sse.md: Add n to negated FMA pattern names.
17692 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
17694 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
17696 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
17698 * gengtype-state.c (read_state_params_structs): Initialize previous.
17700 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
17702 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
17703 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
17705 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
17707 * config/i386/i386.md (*movtf_internal): Avoid allocating general
17708 registers. Penalize F*r->o alternative to prevent partial memory
17709 stalls. Slightly penalize *roF->*r alternative. Generate SSE
17710 CONST_DOUBLE immediates when optimizing function for size. Do not move
17711 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
17712 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
17713 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
17714 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
17716 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
17718 (fp_register_operand splitters): Use fp_register_operand
17719 constraint. Do not use FP_REG_P in insn condition.
17720 (any_fp_register_operand splitters): Use any_fp_register_operand
17721 constraint. Do not use ANY_FP_REG_P in insn condition.
17723 2011-05-31 Jan Hubicka <jh@suse.cz>
17725 * cgraph.h (cgraph_inline_failed_t): Give enum a name
17726 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
17727 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
17728 (lto_output_edge): Use output_enum and var_len_unsigned.
17729 (lto_output_varpool_node): Likewise.
17730 (input_overwrite_node): Do not take resolution parameter;
17731 extract it from a bitpack.
17732 (input_node): Do not read resolution; use input_enum and
17734 (input_varpool_node): Likewise.
17735 (input_edge): Likewise.
17736 (input_cgraph_1): Likewise.
17738 2011-05-31 Richard Guenther <rguenther@suse.de>
17740 * gimple.c (gimple_register_canonical_type): Do not register
17741 any types via gimple_register_type.
17743 2011-05-31 Jan Hubicka <jh@suse.cz>
17745 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
17748 2011-05-31 Jakub Jelinek <jakub@redhat.com>
17750 PR rtl-optimization/49235
17751 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
17752 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
17754 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
17756 PR tree-optimization/49093
17757 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
17760 2011-05-31 Dodji Seketeli <dodji@redhat.com>
17763 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
17764 for concrete functions containing the code of cloned functions.
17766 2011-05-31 Richard Guenther <rguenther@suse.de>
17768 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
17770 (forward_propagate_into_comparison_1): ... this.
17771 (forward_propagate_comparison): Rename to ...
17772 (forward_propagate_into_comparison): ... this. Split out
17773 real forward propagation code to ...
17774 (forward_propagate_comparison): ... this.
17775 (forward_propagate_into_gimple_cond): Remove looping.
17776 (forward_propagate_into_cond): Likewise.
17777 (simplify_not_neg_expr): Return whether we have done something.
17778 (simplify_gimple_switch): Likewise.
17779 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
17780 (ssa_forward_propagate_and_combine): ... this. Re-structure
17781 to do a forward forward-propagation walk on BBs and a backward
17782 stmt combining walk on BBs. Consistently re-scan changed statements.
17783 (pass_forwprop): Adjust.
17785 2011-05-30 Ian Lance Taylor <iant@google.com>
17787 * godump.c (go_format_type): Correct length of name added to
17788 obstack for anonymous field.
17790 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
17793 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
17794 part of the second operand is 0.
17796 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
17798 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
17799 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
17800 to memory for !TARGET_MEMORY_MISMATCH_STALL.
17801 (*movdf_internal_rex64): Do not penalize F->r alternative.
17802 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
17803 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
17804 when optimizing function for size. Do not move CONST_DOUBLEs
17805 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
17806 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
17807 SUBREGs. Do not check for MEM_P operands in the insn condition,
17808 check for ANY_FP_REGNO_P instead.
17809 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
17810 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
17811 function for speed.
17812 * config/i386/i386.c (ix86_option_override_internal): Do not
17813 set TARGET_INTEGER_DFMODE_MOVES here.
17815 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
17818 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
17820 2011-05-30 Jakub Jelinek <jakub@redhat.com>
17822 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
17823 DW_TAG_rvalue_reference_type even for
17824 -gdwarf-4 -fno-debug-types-section.
17826 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17828 PR tree-optimization/46728
17829 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
17830 (build_and_insert_binop): New.
17831 (gimple_expand_builtin_pow): Reorder args for
17832 build_and_insert_call; use build_and_insert_binop; add more
17833 optimizations for fractional exponents.
17835 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
17840 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
17842 * tree.h (struct tree_identifier): Inherit from tree_typed, not
17844 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
17845 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
17846 TS_BASE instead of TS_COMMON.
17847 * varasm.c (assemble_name): Remove assert.
17849 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
17851 * config.gcc: Keep obselete list sorted.
17853 2011-05-30 Jakub Jelinek <jakub@redhat.com>
17854 Eric Botcazou <ebotcazou@adacore.com>
17856 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
17857 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
17858 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
17859 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
17860 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
17862 2011-05-30 Richard Guenther <rguenther@suse.de>
17864 * gimple.c (gimple_types_compatible_p_1): Compare record
17865 and union type members properly.
17867 2011-05-30 Richard Guenther <rguenther@suse.de>
17869 PR tree-optimization/49210
17870 * ipa-split.c (split_function): Care for the case where the call
17871 result is not trivially convertible to the result holding variable.
17873 2011-05-30 Richard Guenther <rguenther@suse.de>
17875 PR tree-optimization/49218
17876 * tree-vrp.c (adjust_range_with_scev): Properly check whether
17879 2011-05-30 Richard Guenther <rguenther@suse.de>
17881 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
17882 New function split out from ...
17883 (forward_propagate_into_gimple_cond): ... here. Adjust.
17884 (forward_propagate_into_cond): Likewise.
17885 (forward_propagate_comparison): Also propagate into
17886 comparisons on assignment RHS. Change return value to
17887 behave similar to forward_propagate_into_cond.
17888 (tree_ssa_forward_propagate_single_use_vars): Handle
17889 strict-overflow warnings properly for forward_propagate_comparison.
17891 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17893 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
17894 from plugin linker.
17895 * configure: Regenerate.
17897 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
17899 PR tree-optimization/49199
17900 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
17901 non-reduction operands are either defined in the loop or by induction.
17903 2011-05-29 Xinliang David Li <davidxl@google.com>
17905 * opts-global.c (handle_common_deferred_options): Handle new options.
17906 * passes.c (register_one_dump_file): Call register_pass_name.
17907 (execute_one_pass): Check explicit enable/disable flag.
17908 (passr_hash): New function.
17910 (register_pass_name): Ditto.
17911 (get_pass_by_name): Ditto.
17912 (pass_hash): Ditto.
17914 (enable_pass): Ditto.
17915 (disable_pass): Ditto.
17916 (is_pass_explicitly_enabled_or_disabled): Ditto.
17918 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
17920 * config/i386/i386.md (*movoi_internal_avx): Use
17921 standard_sse_constant_opcode for alternative 0.
17922 (*movti_internal_sse): Ditto.
17923 (*movti_internal_rex64): Use standard_sse_constant_opcode for
17925 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
17926 sselog1 type moves.
17927 (*movsi_internal): Ditto.
17928 (*movdi_internal): Ditto. Add ssecvt type moves.
17930 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
17933 * rtlanal.c (simplify_subreg_regno): Adjust comment.
17935 2011-05-29 Jakub Jelinek <jakub@redhat.com>
17937 PR rtl-optimization/49095
17938 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
17939 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
17941 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
17944 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
17945 recurse_p argument. Only follow register copies if it is set,
17946 and prevent mips_find_pic_call_symbol from recursing.
17947 (mips_find_pic_call_symbol): Add a recurse_p argument.
17948 Pass it to mips_pic_call_symbol_from_set.
17949 (mips_annotate_pic_calls): Update accordingly.
17951 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
17953 * emit-rtl.c (try_split): Use a loop to search for
17954 NOTE_INSN_CALL_ARG_LOCATIONs.
17956 2011-05-29 Richard Guenther <rguenther@suse.de>
17958 PR tree-optimization/49217
17959 * ipa-pure-const.c (propagate_pure_const): Fix typos.
17961 2011-05-28 Jan Hubicka <jh@suse.cz>
17963 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
17965 (string_slot_free): Remove
17966 (create_output_block): Initialize obstack.
17967 (destroy_output_block): Free obstack.
17968 (lto_string_index): Add PERSISTENT parameter; do not duplicate
17969 the string unless it needs to be added into the hash.
17970 (lto_output_string_with_length): Add persistent attribute;
17971 handle NULL strings.
17972 (lto_output_string): Add PERSISTENT parameter.
17973 (output_string_cst, output_identifier): Simplify.
17974 (lto_output_location_bitpack): Update.
17975 (lto_output_builtin_tree): Update.
17976 * lto-streamer.h (struct output_block): Add obstack.
17977 (lto_output_string, lto_output_string_with_length): Remove
17978 declarations; functions are static now.
17980 2011-05-28 Jan Hubicka <jh@suse.cz>
17982 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
17983 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
17984 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
17985 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
17986 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
17987 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
17988 unpack_ts_decl_with_vis_value_fields,
17989 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
17990 lto_get_builtin_tree): Use enum and variable length i/o.
17991 * basic-block.h (profile_status_d): Add PROFILE_LAST.
17992 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
17994 (bp_pack_enum, bp_unpack_enum): New macros.
17996 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
17998 * genrecog.c: Remove redundant forward declarations.
18000 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18002 * config.gcc: Deprecate mips*-*-openbsd*.
18004 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18007 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
18010 2011-05-27 Andrew Pinski <pinskia@gmail.com>
18012 PR middle-end/48981
18013 * gengtype.c (vec_prefix_type): New function.
18014 (note_def_vec): Use vec_prefix_type and change the length
18015 attribute to be based on the prefix.
18016 * vec.c: Include coretypes.h before vec.h.
18017 (struct vec_prefix): Remove.
18018 (vec_gc_p_reserve): Change the offsetof to sizeof.
18019 (vec_gc_p_reserve_exact): Likewise.
18020 (vec_heap_p_reserve): Likewise.
18021 (vec_heap_p_reserve_exact): Likewise.
18022 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
18023 (vec_stack_p_reserve): Change the offsetof to sizeof.
18024 (vec_stack_p_reserve_exact): Likewise.
18025 * vec.h (struct vec_prefix): New struct definition.
18026 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
18027 (VEC_T_GTY(T,B)): Likewise.
18028 (DEF_VEC_FUNC_P(T)): Use prefix field.
18029 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
18030 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
18032 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18034 PR tree-optimization/46728
18035 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
18036 (powi_as_mults): Add gimple_set_location.
18037 (build_and_insert_call): New.
18038 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
18039 0.5, 0.25, 0.75, 1./3., or 1./6.
18041 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
18043 * doc/contrib.texi: Update copyright years.
18044 (Contributors): Add Zdenek Sojka.
18046 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
18048 * c-decl.c (c_push_function_context): Copy the current statement
18050 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
18051 (finish_struct): Call building_stmt_list_p instead of checking
18053 * c-parser.c (c_parser_postfix_expression): Likewise.
18054 * c-typeck.c (c_end_compound_stmt): Likewise.
18055 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
18056 * tree-iterator.c (stmt_list_cache): Change to a VEC.
18057 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
18058 (free_stmt_list): Likewise.
18059 * tree.h (struct tree_statement_list): Include typed_tree instead
18061 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
18062 as TS_TYPED instead of TS_COMMON.
18064 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18065 Uros Bizjak <ubizjak@gmail.com>
18067 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
18068 (HAVE_AS_IX86_TLSGDPTL): Define.
18069 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
18070 (HAVE_AS_IX86_TLSLDMPLT): Define.
18071 * configure: Regenerate.
18072 * config.in: Regenerate.
18073 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
18074 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
18075 TARGET_SUN_TLS, use @tlsgdplt or @plt.
18076 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
18077 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
18078 @tlsldmplt or @plt.
18079 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
18081 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
18083 * sched-int.h (struct _haifa_deps_insn_data): New members cond
18085 (INSN_COND, INSN_REVERSE_COND): New macros.
18086 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
18088 (sched_get_condition_with_rev): Cache the results, and look them up
18090 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
18091 are clobbered by the current insn.
18092 * target.def (exposed_pipline): New sched data hook.
18093 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
18094 * doc/tm.texi: Regenerate.
18096 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18098 PR tree-optimization/49170
18099 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
18102 2011-05-27 Richard Guenther <rguenther@suse.de>
18104 PR middle-end/49189
18105 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
18108 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
18110 * haifa-sched.c (sched_scan_info): Remove.
18111 (schedule_block): Call sched_extend_luids rather than sched_init_luids
18113 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
18115 (sched_scan): Remove.
18116 (sched_extend_luids): Renamed from luids_extend_insn and no longer
18117 static. All callers changed.
18118 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
18119 static. All callers changed.
18120 (sched_init_luids): Remove all arguments except the first. All
18121 callers changed. Don't use sched_scan.
18122 (haifa_init_h_i_d): Likewise.
18123 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
18124 manually rather than using sched_init_luids. Likewise with
18125 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
18126 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
18127 rather than sched_init_luids with NULL args.
18128 * sel-sched-ir.c (new_insns): Remove variable.
18129 (sched_scan): New static function, previously in haifa-sched.c. Remove
18130 all arguments but the first two; all callers changed.
18131 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
18132 rather than sched_init_luids.
18133 (sel_init_bbs): Remove second argument. All callers changed.
18134 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
18135 with NULL arguments.
18136 (create_insn_rtx_from_pattern): Likewise.
18137 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
18138 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
18139 (sched_init_insn_luid, sched_extend_luids): Declare.
18140 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
18143 2011-05-27 Richard Guenther <rguenther@suse.de>
18145 PR middle-end/49177
18146 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
18147 A CMP B ? (T) true : (T) false for non-integral types T again.
18149 2011-05-27 Jan Hubicka <jh@suse.cz>
18151 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
18152 so 0 means NULL string.
18153 (lto_output_string_with_length): ... here.
18154 (lto_output_string, output_string_cst, output_identifier): Update
18155 handling of NULL strings.
18156 (lto_output_location_bitpack): New function.
18157 (lto_output_location): Use it.
18158 (lto_output_tree_ref): Use output_record_start.
18159 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
18161 * lto-streamer-in.c (string_for_index): Break out from ...; offset
18163 (input_string_internal): ... here;
18164 (input_string_cst, input_identifier, lto_input_string): Update handling
18166 (lto_input_location_bitpack): New function
18167 (lto_input_location): Use it.
18168 (unpack_ts_type_common_value_fields): Pack align & alias in var len
18170 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
18171 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
18172 (bp_pack_value): Sanity check the value range.
18173 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
18175 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
18178 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
18180 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
18181 call_arg_location instructions down the floor.
18183 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
18185 PR rtl-optimization/49154
18186 * ira.c (setup_pressure_classes): Process class without sublcasses
18187 as a candidate for pressure classes.
18189 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
18191 PR rtl-optimization/48575
18192 * genrecog.c (position_type): New enum.
18193 (position): New structure.
18194 (decision): Use position structure instead of a string.
18195 (root_pos, peep2_insn_pos_list): New variables.
18196 (next_position, compare_positions): New functions.
18197 (new_decision): Use position structures instead of strings.
18198 (maybe_both_true): Likewise.
18199 (change_state): Likewise.
18200 (write_tree): Likewise.
18201 (make_insn_sequence): Likewise.
18203 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
18205 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
18206 TS_BASE instead of TS_COMMON.
18207 (find_decls_types_r): Check for TS_TYPED structure before looking at
18209 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
18211 (BLOCK_CHAIN): Use new chain field.
18213 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
18215 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
18216 moves expensive on Power7 also.
18218 2011-05-26 Richard Guenther <rguenther@suse.de>
18220 * fold-const.c (fold_unary_loc): Remove bogus code.
18222 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
18224 * tree.h (struct tree_identifier): Inherit from tree_typed, not
18226 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
18227 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
18228 TS_BASE instead of TS_COMMON.
18229 * varasm.c (assemble_name): Remove assert.
18231 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
18233 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
18235 * libgcc-std.ver: Delete file.
18237 2011-05-26 Richard Guenther <rguenther@suse.de>
18239 PR tree-optimization/48702
18240 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
18241 only when we know the base address is within bounds.
18242 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
18243 assume the base address of TARGET_MEM_REFs is in bounds.
18245 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18248 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
18249 declaration in TARGET_SOLARIS.
18251 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
18253 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
18254 The instruction is then expanded explicitly.
18255 (supported_compare): Callable instruction.
18256 (compare): Likewise.
18258 2011-05-26 Jakub Jelinek <jakub@redhat.com>
18261 * gimplify.c (shortcut_cond_r): Don't special case
18262 COND_EXPRs if they have void type on one of their arms.
18264 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
18266 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
18267 to reduce duplication, and to achieve a slightly more logical order
18270 2011-05-26 Jakub Jelinek <jakub@redhat.com>
18272 PR tree-optimization/49161
18273 * tree-vrp.c (struct case_info): New type.
18274 (compare_case_labels): Sort case_info structs instead of
18275 trees, and not primarily by CASE_LABEL uids but by
18276 label_for_block indexes.
18277 (find_switch_asserts): Put case labels into struct case_info
18278 array instead of TREE_VEC, adjust sorting, compare label_for_block
18279 values instead of CASE_LABELs.
18281 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18283 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
18284 ("orndi3_neon"): Likewise.
18285 ("bic<mode>3_neon"): Likewise.
18287 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
18289 PR tree-optimization/49038
18290 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
18291 Ensure at least one epilogue iteration if required by data
18292 accesses with gaps.
18293 * tree-vectorizer.h (struct _loop_vec_info): Add new field
18294 to mark loops that require peeling for gaps.
18295 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
18296 (vect_get_known_peeling_cost): Take peeling for gaps into
18298 (vect_transform_loop): Generate epilogue if required by data
18300 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
18301 loop as requiring an epilogue if there are gaps in the end of
18304 2011-05-25 Ian Lance Taylor <iant@google.com>
18306 * godump.c (go_format_type): Output the first field with a usable
18309 2011-05-25 Ian Lance Taylor <iant@google.com>
18311 * godump.c (go_format_type): Check for invalid type names, pointer
18312 target types, and struct field types.
18314 2011-05-25 Jason Merrill <jason@redhat.com>
18316 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
18318 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
18320 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
18322 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
18324 * config/i386/i386.md (*movqi_extv_1)): Put back
18325 "register_operand" check in "type" calculation.
18326 (*movqi_extzv_2): Likewise.
18328 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
18330 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
18332 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
18335 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
18336 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
18337 __divxc3, __divtc3): Wrap definitions in #ifndef.
18339 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
18342 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
18343 "register_operand" check and replace q_regs_operand with
18344 QIreg_operand in "type" calculation.
18345 (*movqi_extv_1): Likewise.
18346 (*movqi_extzv_2_rex64): Likewise.
18347 (*movqi_extzv_2): Likewise.
18349 * config/i386/predicates.md (QIreg_operand): New.
18351 2011-05-25 Richard Guenther <rguenther@suse.de>
18353 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
18354 type-based offset disambiguation, streamline MEM_REF and
18355 TARGET_MEM_REF handling.
18357 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
18359 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
18360 (bdesc_special_args): Add pause intrinsic.
18362 * config/i386/i386.md (UNSPEC_PAUSE): New.
18364 (*pause): Likewise.
18365 * config/i386/ia32intrin.h (__pause): Likewise.
18367 * doc/extend.texi (X86 Built-in Functions): Add documentation for
18370 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18372 PR tree-optimization/46728
18373 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
18374 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
18376 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
18378 * tree.h (struct tree_exp): Inherit from struct tree_typed.
18379 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
18380 instead of TS_COMMON.
18382 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
18384 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
18385 LIBGCC2_GNU_PREFIX is defined.
18387 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
18388 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
18389 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
18390 __clz_tab): Define using __N.
18391 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
18392 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
18393 * target.def (libfunc_gnu_prefix): New hook.
18394 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
18395 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
18396 * doc/tm.texi: Regenerate.
18397 * system.h (LIBGCC2_GNU_PREFIX): Poison.
18398 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
18400 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
18401 (init_optabs): Likewise for the bswap libfuncs.
18402 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
18404 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
18405 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
18406 * libgcc-std.ver: Remove.
18407 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
18408 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
18410 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
18411 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
18412 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
18413 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
18414 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
18415 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
18416 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
18417 * config/fixed-bit.h (FIXED_OP): Define differently depending on
18418 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
18419 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
18421 2011-05-25 Jan Hubicka <jh@suse.cz>
18423 * lto-streamer-out.c (output_record_start): Use lto_output_enum
18424 (lto_output_tree): Use output_record_start.
18425 * lto-streamer-in.c (input_record_start): Use lto_input_enum
18426 (lto_get_pickled_tree): Use input_record_start.
18427 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
18428 (lto_value_range_error): New function.
18429 * lto-streamer.h (lto_value_range_error): Declare.
18430 (lto_output_int_in_range, lto_input_int_in_range): New functions.
18431 (lto_output_enum, lto_input_enum): New macros.
18433 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
18435 * common.opt (flag_stack_usage_info): New variable.
18436 (-Wstack-usage): New option.
18437 * doc/invoke.texi (Warning options): Document -Wstack-usage.
18438 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
18439 <OPT_fstack_usage>: Likewise.
18440 * toplev.c (output_stack_usage): Handle -Wstack-usage.
18441 * calls.c (expand_call): Test flag_stack_usage_info variable instead
18442 of flag_stack_usage.
18443 (emit_library_call_value_1): Likewise.
18444 * explow.c (allocate_dynamic_stack_space): Likewise.
18445 * function.c (instantiate_virtual_regs ): Likewise.
18446 (prepare_function_start): Likewise.
18447 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
18448 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
18449 * config/arm/arm.c (arm_expand_prologue): Likewise.
18450 (thumb1_expand_prologue): Likewise.
18451 * config/avr/avr.c (expand_prologue): Likewise.
18452 * config/i386/i386.c (ix86_expand_prologue): Likewise.
18453 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
18454 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
18455 * config/mips/mips.c (mips_expand_prologue): Likewise.
18456 * config/pa/pa.c (hppa_expand_prologue): Likewise.
18457 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
18458 * config/s390/s390.c (s390_emit_prologue): Likewise.
18459 * config/sh/sh.c (sh_expand_prologue): Likewise.
18460 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
18461 * config/spu/spu.c (spu_expand_prologue): Likewise.
18463 2011-05-25 Richard Guenther <rguenther@suse.de>
18465 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
18466 (gimple_canonical_types_compatible_p): Likewise.
18468 2011-05-25 Jan Hubicka <jh@suse.cz>
18470 PR middle-end/49062
18471 * ipa.c (function_and_variable_visibility): Only add to same
18472 comdat group list if DECL_ONE_ONLY.
18474 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
18476 PR rtl-optimization/49014
18477 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
18479 2011-05-25 Jakub Jelinek <jakub@redhat.com>
18482 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
18484 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
18486 PR rtl-optimization/48757
18487 * ira-build.c (loop_with_eh_edge_p): Rename to
18488 loop_with_complex_edge_p, check edges on complexity, make function
18490 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
18493 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
18495 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
18496 force flag_ira_share_save_slots to 0.
18498 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
18500 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
18501 (vt_initialize): Set PROLOGUE_BB unconditionally.
18502 Add block comment about CFA_BASE_RTX machinery.
18503 Reset FP_CFA_OFFSET to -1 on all invalid paths.
18504 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
18506 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
18509 * c-parser.c (c_parser_objc_class_instance_variables): More robust
18510 parsing of syntax error in ObjC instance variable lists. In
18511 particular, avoid an infinite loop if there is a stray ']'.
18512 Updated error message.
18514 2011-05-24 Ian Lance Taylor <iant@google.com>
18516 * godump.c (go_define): Don't accept a string immediately after
18519 2011-05-24 Ian Lance Taylor <iant@google.com>
18521 * godump.c (struct godump_container): Add invalid_hash field.
18522 (go_format_type): Return false if type is found in invalid_hash.
18523 (go_output_typedef): Add invalid type to invalid_hash.
18524 (go_finish): Create and delete invalid_hash.
18526 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18528 PR tree-optimization/46728
18529 * tree-ssa-math-opts.c (powi_table): New.
18530 (powi_lookup_cost): New.
18532 (powi_as_mults_1): New.
18533 (powi_as_mults): New.
18534 (gimple_expand_builtin_powi): New.
18535 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
18536 (gate_cse_sincos): Remove sincos/cexp restriction.
18538 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18541 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
18543 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
18544 * mips-tdump.c: Likewise.
18546 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
18549 * config/i386/driver-i386.c (host_detect_local_cpu): Always
18550 add -mno-XXX. Handle FMA.
18552 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
18554 PR rtl-optimization/48633
18555 * ira-build.c (loop_with_eh_edge_p): New function.
18556 (mark_loops_for_removal): Use it.
18558 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
18560 PR rtl-optimization/48971
18561 * ira.c (setup_pressure_classes): Don't check register move cost
18562 for classes with one registers. Don't add pressure class if there
18563 is a pressure class with the same available hard registers.
18564 Check contains_reg_of_mode. Fix a typo in collecting
18565 temp_hard_regset. Ignore hard registers not belonging to a class.
18567 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
18570 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
18572 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
18573 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18575 PR gcov-profile/48845
18576 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
18578 2011-05-24 Richard Guenther <rguenther@suse.de>
18580 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
18581 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
18582 (gimple_types_compatible_p_1): Adjust.
18583 (iterative_hash_canonical_type): Do not bother about complete vs.
18585 (gimple_canonical_types_compatible_p): Likewise.
18587 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18589 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
18591 2011-05-24 Richard Guenther <rguenther@suse.de>
18594 * gimple.c (gimple_register_canonical_type): Revert
18596 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
18597 does not for a tree for the case where it matters. Cache
18598 pointer-type alias-sets.
18600 2011-05-24 Joseph Myers <joseph@codesourcery.com>
18602 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
18603 (OBJS): Remove options.o, opts-common.o and prefix.o.
18604 (OBJS-libcommon-target): New.
18605 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
18606 (BACKEND): Include libcommon-target.a.
18607 (MOSTLYCLEANFILES): Include libcommon-target.a.
18608 (libcommon-target.a): New.
18609 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
18612 2011-05-23 Joseph Myers <joseph@codesourcery.com>
18614 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
18615 parts of output shared with the driver.
18616 * optc-gen.awk: Don't generate parts of output not shared with the
18618 * opth-gen.awk: Remove GCC_DRIVER conditionals.
18619 * doc/options.texi (SourcerInclude): Mention options-save.c.
18620 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
18621 (OBJS): Add options-save.o.
18622 (options-save.c, options-save.o): New.
18623 (options.o): Update dependencies.
18624 (gcc-options.o): Remove.
18625 (mostlyclean): Remove options-save.c.
18627 2011-05-23 Jakub Jelinek <jakub@redhat.com>
18630 * dbxout.c: Include cgraph.h.
18631 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
18632 and without value expr, return NULL if no varpool node exists for
18633 it or if it is not needed.
18634 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
18637 * c-decl.c (start_decl): Convert expr to void_type_node.
18639 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
18641 PR rtl-optimization/48826
18642 * emit-rtl.c (try_split): When splitting a call that is followed
18643 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
18645 2011-05-23 Jakub Jelinek <jakub@redhat.com>
18647 * cfgexpand.c (expand_debug_expr): For unused non-addressable
18648 parameters passed in memory prefer using DECL_INCOMING_RTL over
18649 the pseudos it will be copied into.
18651 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
18654 * config/i386/i386.c (ix86_option_override_internal): Save the
18655 initial options after checking vzeroupper.
18657 2011-05-23 David Li <davidxl@google.com>
18659 PR tree-optimization/48988
18660 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
18661 Initialize has_valid_pred for each pred chain.
18663 2011-05-23 Richard Guenther <rguenther@suse.de>
18665 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
18666 (iterative_hash_gimple_type): Always hash type names.
18668 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
18670 * c-typeck.c (build_function_call_vec): Tweak call to
18671 check_function_arguments.
18673 2011-05-23 Richard Guenther <rguenther@suse.de>
18675 PR tree-optimization/49115
18676 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
18677 is not necessarily carried out, do not claim it kills the ref.
18678 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
18680 2011-05-23 Richard Guenther <rguenther@suse.de>
18682 PR middle-end/15419
18683 * builtins.c (fold_builtin_memory_op): Be less restrictive about
18684 what pointer types we accept for folding.
18686 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18688 * gthr-gnat.c: Remove.
18689 * gthr-gnat.h: Remove.
18690 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
18691 * config/t-freebsd (LIB2ADDEH): Likewise.
18692 * config/t-linux (LIB2ADDEH): Likewise.
18693 * config/t-sol2 (LIB2ADDEH): Likewise.
18694 * config/ia64/t-vms (LIB2ADDEH): Likewise.
18695 * configure.ac (target_thread_file): Remove gnat handling.
18696 * configure: Regenerate.
18697 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
18699 2011-05-23 Tristan Gingold <gingold@adacore.com>
18700 Eric Botcazou <ebotcazou@adacore.com>
18702 * gcov.c (create_file_names): If no object directory is specified,
18703 keep the directory of the file.
18705 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18707 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
18708 * configure: Regenerate.
18710 2011-05-23 Jakub Jelinek <jakub@redhat.com>
18712 PR middle-end/48973
18713 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
18714 failed and the comparison has a single bit signed type, use
18715 constm1_rtx instead of const1_rtx for true value.
18716 (do_store_flag): If ops->type is single bit signed type, disable
18717 signel bit test optimization and pass -1 instead of 1 as last
18718 parameter to emit_store_flag_force.
18720 2011-05-23 Tom de Vries <tom@codesourcery.com>
18723 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
18725 (infer_loop_bounds_from_undefined): Use new function.
18727 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
18729 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
18730 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
18731 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
18733 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
18735 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
18737 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
18738 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
18741 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
18743 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
18745 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
18747 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
18748 UNSPEC_MOVE_PIC pattern.
18750 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
18752 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
18753 (sparc-*-rtems*): Likewise.
18754 (sparc64-*-elf*): Likewise.
18755 (sparc64-*-rtems*): Likewise.
18756 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
18757 * config/sparc/t-crtin: New file.
18758 * config/sparc/t-sol2 (crti.o): Delete rule.
18759 (crtn.o): Likewise.
18760 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
18761 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
18762 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
18763 (ENDFILE_SPEC): Add crtn.o.
18765 2011-05-22 Tom de Vries <tom@codesourcery.com>
18767 PR middle-end/48689
18768 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
18769 CODE_CONTAINS_STRUCT (TS_COMMON).
18771 2011-05-22 Jakub Jelinek <jakub@redhat.com>
18773 PR middle-end/49029
18774 * expmed.c (extract_fixed_bit_field): Test whether target can be used
18775 only after deciding which mode to use.
18777 2011-05-22 Tom de Vries <tom@codesourcery.com>
18780 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
18781 for call to get_shiftadd_cost.
18783 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
18786 * config/i386/cpuid.h (bit_MMXEXT): New define.
18788 2011-05-22 Nick Clifton <nickc@redhat.com>
18790 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
18791 initialisation of non-existant args[2] element. Use args[] array
18792 not arg[] array to pass arguments to build_function_type_list.
18794 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
18796 PR tree-optimization/49087
18797 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
18799 2011-05-21 Jason Merrill <jason@redhat.com>
18802 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
18803 static storage duration.
18805 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
18807 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
18810 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
18812 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
18813 false if there are call-saved registers here...
18814 (sparc_can_use_return_insn_p): ...but here instead.
18815 (save_or_restore_regs): Fix thinko.
18816 (sparc_expand_prologue): Use current_function_is_leaf.
18817 (sparc_frame_pointer_required): Likewise.
18819 2011-05-21 Nick Clifton <nickc@redhat.com>
18822 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
18824 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
18826 * gengtype.c (walk_type): Implemented "atomic" GTY option.
18827 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
18829 2011-05-21 Joseph Myers <joseph@codesourcery.com>
18831 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
18832 * optc-gen.awk: Move common code to opt-read.awk.
18833 * opth-gen.awk: Likewise.
18834 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
18836 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
18838 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
18840 2011-05-20 Tom de Vries <tom@codesourcery.com>
18843 * tree-ssa-loop-ivopts.c: Include expmed.h.
18844 (get_shiftadd_cost): New function.
18845 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
18847 2011-05-20 Jakub Jelinek <jakub@redhat.com>
18850 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
18851 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
18853 2011-05-20 Joseph Myers <joseph@codesourcery.com>
18855 * Makefile.in: Update comment referring to $(OBJS-common).
18857 2011-05-20 Ian Lance Taylor <iant@google.com>
18859 * godump.c (go_output_typedef): Put enum constants in the macro
18860 hash table to avoid duplicate Go const definitions.
18862 2011-05-20 Joseph Myers <joseph@codesourcery.com>
18864 * Makefile.in (LIBDEPS): Add libcommon.a.
18866 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
18867 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
18868 pretty-print.o and version.o.
18869 (OBJS-libcommon): New.
18870 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
18871 (BACKEND): Add libcommon.a.
18872 (MOSTLYCLEANFILES): Likewise.
18873 (libcommon.a): New.
18874 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
18875 (cpp$(exeext)): Likewise.
18876 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
18877 pretty-print.o and input.o.
18878 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
18879 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
18880 (errors.o): Remove.
18881 (mips-tfile): Don't explicitly use version.o.
18882 (mips-tdump): Likewise.
18883 (gcov.o): Depend on $(DIAGNOSTIC_H).
18884 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
18885 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
18886 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
18887 * gcov-dump.c: Include intl.h and diagnostic.h.
18888 (main): Initialize diagnostics.
18889 * gcov.c: Include diagnostic.h.
18891 (main): Initialize diagnostics.
18892 * lto-wrapper.c: Include diagnostic.h.
18893 (main): Initialize diagnostics.
18895 2011-05-20 Michael Matz <matz@suse.de>
18897 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
18899 2011-05-20 Michael Matz <matz@suse.de>
18900 Richard Guenther <rguenther@suse.de>
18902 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
18903 use lto_streamer_cache_append directly instead of returning a VEC.
18904 (preload_common_node): Remove.
18905 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
18907 (lto_streamer_cache_create): Call lto_preload_common_nodes.
18909 2011-05-20 Richard Guenther <rguenther@suse.de>
18911 PR tree-optimization/49079
18912 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
18913 MEM_REFs correctly for the trailing array access detection.
18914 Special case constants the same way as decls for overall size
18917 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
18919 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
18920 argument expansion.
18922 2011-05-20 Jakub Jelinek <jakub@redhat.com>
18924 PR tree-optimization/49073
18925 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
18926 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
18927 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
18929 2011-05-20 Richard Guenther <rguenther@suse.de>
18931 PR middle-end/48849
18932 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
18933 of pointer types the same way the middle-end does.
18935 2011-05-20 Richard Guenther <rguenther@suse.de>
18937 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
18938 or pointer-to chains. Delay all fixup to uniquify_nodes.
18940 2011-05-19 Quentin Neill <quentin.neill@amd.com>
18942 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
18943 (fma4_fmaddsub): Likewise
18945 2011-05-19 Jan Hubicka <jh@suse.cz>
18947 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
18948 (GIMPLE_TYPE_PAIR_SIZE): New macro.
18949 (type_pair_cache): New static var.
18950 (lookup_type_pair): Use fixed sized custom hash; make inline.
18951 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
18952 calls of lookup_type_pair.
18953 (print_gimple_types_stats): Remove cache stats.
18954 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
18957 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
18959 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
18960 when TARGET_RDRND is active.
18961 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
18962 Generate dummy SImode target register when target is NULL.
18964 2011-05-19 Joseph Myers <joseph@codesourcery.com>
18966 * config/arm/arm-fpus.def: New.
18967 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
18969 * config/arm/arm-tables.opt: Regenerate.
18970 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
18971 (arm_option_override): Don't decode FPU name to string here.
18972 * config/arm/arm.opt (mfpu=): Use Enum.
18973 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
18974 Update dependencies.
18976 2011-05-19 Joseph Myers <joseph@codesourcery.com>
18978 * collect2.c: Include diagnostic.h.
18979 (fatal_perror, fatal, error, fancy_abort): Remove.
18980 (main): Set progname. Call xmalloc_set_program_name and
18981 diagnostic_initialize.
18982 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
18983 scan_libraries, resolve_lib_name): Call fatal_error instead of
18984 fatal and fatal_perror.
18985 * collect2.h (error, fatal, fatal_perror): Don't declare.
18986 * tlink.c: Include diagnostic-core.h.
18987 (recompile_files): Call fatal_error instead of fatal_perror.
18988 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
18989 pretty-print.o and input.o.
18990 (collect2.o, tlink.o): Update dependencies.
18992 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18994 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
18996 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18999 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
19000 COMDAT group syntax, both SPARC and x86 variants.
19001 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
19002 * configure: Regenerate.
19003 * config/sol2.h (TARGET_SOLARIS): Define.
19004 (PUSHSECTION_FORMAT): Remove.
19005 (SECTION_NAME_FORMAT): Define.
19006 * config/sol2.c: Include hashtab.h.
19007 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
19008 expansion, using SECTION_NAME_FORMAT.
19009 (solaris_comdat_htab): New variable.
19010 (struct comdat_entry): Define.
19011 (comdat_hash): New function.
19012 (comdat_eq): New function.
19013 (solaris_elf_asm_comdat_section): New function.
19014 (solaris_define_comdat_signature): New function.
19015 (solaris_code_end): New function.
19016 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
19017 (solaris_code_end): Declare.
19018 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
19019 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
19021 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
19022 Remove ATTRIBUTE_UNUSED.
19023 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
19024 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
19025 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
19026 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
19027 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
19028 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
19029 (PUSHSECTION_FORMAT): Remove.
19030 (SECTION_NAME_FORMAT): Redefine.
19032 2011-05-19 Kai Tietz <ktietz@redhat.com>
19034 * tree-cfg.c (verify_gimple_assign_binary): Barf on
19035 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
19036 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
19038 2011-05-19 Anatoly Sokolov <aesok@post.ru>
19039 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19041 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
19043 2011-05-19 Richard Guenther <rguenther@suse.de>
19045 PR middle-end/48985
19046 * tree-object-size.c (addr_object_size): If the pointed-to
19047 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
19049 2011-05-19 Richard Guenther <rguenther@suse.de>
19051 * gimple.c (gimple_types_compatible_p_1): Compare names of
19052 the types themselves.
19053 (iterative_hash_gimple_type): And hash them that way.
19054 (gimple_register_type_1): If we register a main variant properly
19055 initialize the leader to ourselves.
19057 2011-05-19 Tom de Vries <tom@codesourcery.com>
19060 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
19061 get_loop_invariant_expr_id.
19062 (get_loop_invariant_expr_id): Use get_expr_id.
19063 (parm_decl_cost): New function.
19064 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
19065 Improve bound cost estimation. Use different inv_expr_id for elim and
19068 2011-05-19 Tom de Vries <tom@codesourcery.com>
19071 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
19072 cost_base.cost == 0.
19074 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
19077 * config/i386/sse.md
19078 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
19081 2011-05-18 Jakub Jelinek <jakub@redhat.com>
19083 PR tree-optimization/49039
19084 * tree-vrp.c (extract_range_from_binary_expr): For
19085 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
19086 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
19088 2011-05-18 Tom de Vries <tom@codesourcery.com>
19091 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
19093 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
19095 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
19096 (*tls_global_dynamic_64): Ditto.
19097 (*tls_local_dynamic_base_32_gnu): Ditto.
19098 (*tls_local_dynamic_base_64): Ditto.
19099 (tls_initial_exec_64_sun): Ditto.
19101 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
19103 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
19104 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
19106 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
19107 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
19108 * config/bfin/bfin.c (bfin_cpus): Add bf592.
19109 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
19110 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
19111 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
19112 * config/bfin/elf.h (LIB_SPEC): Add bf592.
19114 2011-05-18 Joseph Myers <joseph@codesourcery.com>
19116 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
19117 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
19118 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
19119 target_thread_pointer, arm_structure_size_boundary, struct
19120 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
19121 struct abi_name, arm_all_abis): Remove.
19122 (arm_option_override) Don't process most enumerated option values here.
19123 Don't process target_fpe_name here. Work with integer not string for
19124 structure size boundary; use separate diagnostics for each case.
19125 * config/arm/arm.h (enum float_abi_type, enum
19126 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
19128 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
19129 arm_structure_size_boundary): Remove.
19130 * config/arm/arm.opt (mabi=): Use Enum and Init.
19131 (arm_abi_type): New Enum and EnumValue entries.
19132 (mfloat-abi=): Use Enum and Init.
19133 (float_abi_type): New Enum and EnumValue entries.
19134 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
19135 (mfp16-format=): Use Enum and Init.
19136 (arm_fp16_format_type): New Enum and EnumValue entries.
19137 (mstructure-size-boundary=): Use UInteger and Init.
19138 (mtp=): Use Enum and Init.
19139 (arm_tp_type): New Enum and EnumValue entries.
19141 2011-05-18 Richard Guenther <rguenther@suse.de>
19143 PR tree-optimization/49018
19144 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
19145 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
19146 gimple_has_side_effects.
19148 2011-05-18 Richard Guenther <rguenther@suse.de>
19150 * gimple.c (gimple_register_type_1): New function, split out from ...
19151 (gimple_register_type): ... here. Avoid infinite recursion.
19153 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
19155 PR tree-optimization/41881
19156 * tree-vectorizer.h (struct _loop_vec_info): Add new field
19157 reduction_chains along with a macro for its access.
19158 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
19159 (destroy_loop_vec_info): Free reduction chains.
19160 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
19161 (vect_is_slp_reduction): New function.
19162 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
19163 (vect_create_epilog_for_reduction): Support SLP reduction chains.
19164 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
19165 definition types for reduction chains.
19166 (vect_supported_load_permutation_p): Don't allow permutations for
19168 (vect_analyze_slp_instance): Support reduction chains.
19169 (vect_analyze_slp): Try to build SLP instance from reduction chains.
19170 (vect_get_constant_vectors): Handle reduction chains.
19171 (vect_schedule_slp_instance): Mark the first statement of the
19172 reduction chain as reduction.
19174 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
19176 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
19177 names for group elements access.
19178 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
19179 reduction chains as well. Remove data reference and interleaving
19180 related words from the fields names.
19181 * tree-vect-loop.c (vect_transform_loop): Use new names for group
19183 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
19184 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
19185 vect_update_interleaving_chain, vect_same_range_drs,
19186 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
19187 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
19188 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
19189 vect_analyze_group_access, vect_analyze_data_ref_access,
19190 vect_create_data_ref_ptr, vect_transform_strided_load,
19191 vect_record_strided_load_vectors): Likewise.
19192 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
19193 vect_model_load_cost, vectorizable_store, vectorizable_load,
19194 vect_remove_stores, new_stmt_vec_info): Likewise.
19195 * tree-vect-slp.c (vect_build_slp_tree,
19196 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
19198 2011-05-18 Richard Guenther <rguenther@suse.de>
19200 PR middle-end/48989
19201 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
19202 operand verification.
19203 (verify_gimple_assign_binary): Likewise.
19204 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
19205 to non-1-precision BOOLEAN_TYPEs.
19207 2011-05-18 Tom de Vries <tom@codesourcery.com>
19210 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
19212 2011-05-18 Jakub Jelinek <jakub@redhat.com>
19214 PR tree-optimization/49000
19215 * tree-ssa.c (execute_update_addresses_taken): Call
19216 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
19217 be rewritten and decl has been marked for renaming, reset
19220 2011-05-17 Joseph Myers <joseph@codesourcery.com>
19222 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
19223 enum_opts_set when testing if attributes have set -mfpmath=.
19225 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19227 * config/mips/mips.c (mips_handle_option): Remove unused variable.
19229 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
19231 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
19233 * tree-inline.c (maybe_inline_call_in_expr): Initialize
19234 id.transform_lang_insert_block with NULL.
19236 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
19238 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
19239 (output_fp_compare): Change args 3 and 4 to bool.
19240 (ix86_expand_call): Change arg 6 to bool.
19241 (ix86_attr_length_immediate_default): Change arg 2 to bool.
19242 (ix86_attr_length_vex_default): Change arg 3 to bool.
19243 * config/i386/i386.md: Update all uses.
19244 * config/i386/i386.c: Ditto.
19245 (ix86_flags_dependent): Change return type to bool.
19247 2011-05-17 Richard Guenther <rguenther@suse.de>
19249 * gimple.c (type_hash_pair_compare): Fix comparison.
19251 2011-05-17 Richard Guenther <rguenther@suse.de>
19253 * gimple.c (iterative_hash_gimple_type): Simplify singleton
19254 case some more, fix final hash value of the non-singleton case.
19256 2011-05-17 Richard Guenther <rguenther@suse.de>
19260 2011-05-16 Richard Guenther <rguenther@suse.de>
19262 * gimple.c (gimple_types_compatible_p_1): Use names of the
19263 type itself, not its main variant.
19264 (iterative_hash_gimple_type): Likewise.
19266 2011-05-17 Richard Guenther <rguenther@suse.de>
19268 * gimple.c (gimple_register_canonical_type): Use the main-variant
19269 leader for computing the canonical type.
19271 2011-05-17 Nick Clifton <nickc@redhat.com>
19273 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
19276 * config/rx/rx.md: Add peephole to remove redundant extensions
19278 (bitset_in_memory): Use rx_restricted_mem_operand.
19279 (bitinvert_in_memory): Likewise.
19280 (bitclr_in_memory): Likewise.
19282 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
19283 Nick Clifton <nickc@redhat.com>
19285 * config/rx/rx.md: Add peepholes to match a register move followed
19286 by a comparison of the moved register. Replace these with an
19287 addition of zero that does both actions in one instruction.
19289 2011-05-17 Jakub Jelinek <jakub@redhat.com>
19292 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
19293 predicate to allow CONST_INT.
19294 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
19296 2011-05-16 Joseph Myers <joseph@codesourcery.com>
19298 * opts-common.c (opt_enum_arg_to_value): New.
19299 * opts.h (opt_enum_arg_to_value): Declare.
19300 * config/i386/i386.opt (fpmath): Remove.
19301 (mfpmath=): Use Enum, Init and Save.
19302 (fpmath_unit): New Enum and EnumValue entries.
19303 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
19304 name for function fpmath state.
19305 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
19306 * config/i386/i386.c: Include diagnostic.h.
19307 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
19308 (ix86_target_string): Take enum fpmath_unit value instead of string.
19309 (ix86_debug_options): Update call to ix86_target_string.
19310 (ix86_option_override_internal): Don't process fpmath strings here.
19311 (x86_function_specific_save, ix86_function_specific_restore):
19312 Don't handle fpmath state specially.
19313 (ix86_function_specific_print): Pass fpmath state to
19314 ix86_target_string instead of printing in this function.
19315 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
19316 Handle enum attributes.
19317 (IX86_ATTR_ENUM, ix86_opt_enum): New.
19318 (ix86_valid_target_attribute_tree): Update option_strings
19319 handling. Handle fpmath as enum option.
19320 (ix86_can_inline_p): Update field names for function fpmath state.
19321 (ix86_expand_builtin): Update call to ix86_target_string.
19322 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
19323 (ix86_fpmath): Remove.
19324 * config/i386/t-i386 (i386.o): Update dependencies.
19326 2011-05-16 Joseph Myers <joseph@codesourcery.com>
19328 PR preprocessor/48677
19329 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
19330 from decoded_options[0], not from itself.
19332 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
19334 * config/i386/constraints.md (z): New constraint.
19335 * config/i386/i386.c (c): New mode attribute.
19336 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
19337 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
19338 constraint for operand 0.
19339 (*call_vzeroupper): Ditto.
19340 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
19341 (*call_rex64_ms_sysv_vzeroupper): Ditto.
19342 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
19343 Use "lzm" constraint for operand 0.
19344 (*call_pop_vzeroupper): Ditto.
19345 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
19346 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
19347 constraint for operand 0.
19348 (*sibcall_vzeroupper): Ditto.
19349 (*sibcall_rex64_ms_sysv): Ditto.
19350 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
19351 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
19352 *sibcall_pop_1. Use "Uz" constraint for operand 0.
19353 (*sibcall_pop_vzeroupper): Ditto.
19354 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
19355 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
19356 mode iterator. Use "<c>zm" constraint for operand 1.
19357 (*call_value_vzeroupper): Ditto.
19358 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
19360 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
19361 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
19362 *call_value_pop_1. Use "lzm" constraint for operand 1.
19363 (*call_value_pop_vzeroupper): Ditto.
19364 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
19365 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
19366 mode iterator. Use "Uz" constraint for operand 1.
19367 (*sibcall_value_vzeroupper): Ditto.
19368 (*sibcall_value_rex64_ms_sysv): Ditto.
19369 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
19370 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
19371 constraint for operand 1.
19372 (*sibcall_value_pop_vzeroupper): Ditto.
19373 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
19374 and "z" constraint for operand 2.
19375 (*tls_global_dynamic_32_gnu): Ditto.
19376 (*tls_local_dynamic_base_32_gnu): Ditto.
19377 (*tls_local_dynamic_base_64): Ditto.
19378 (*tls_local_dynamic_32_once): Ditto.
19379 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
19380 Update all callers.
19381 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
19383 2011-05-16 Richard Guenther <rguenther@suse.de>
19385 * gimple.c (gimple_types_compatible_p_1): Use names of the
19386 type itself, not its main variant.
19387 (iterative_hash_gimple_type): Likewise.
19389 2011-05-16 Richard Guenther <rguenther@suse.de>
19391 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
19392 always visit pointer target and function result and argument types.
19394 2011-05-16 Jason Merrill <jason@redhat.com>
19397 * tree-inline.c (copy_statement_list): Put back recursion.
19399 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
19403 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
19404 * config/avr/avr.md ("*ior<mode>qi.byte0",
19405 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
19407 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
19410 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
19411 register is needed for a function argument.
19413 2011-05-16 Richard Guenther <rguenther@suse.de>
19415 * gimple.c (struct type_hash_pair): New type.
19416 (type_hash_pair_compare): New function.
19417 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
19419 2011-05-16 Revital Eres <revital.eres@linaro.org>
19421 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
19423 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
19425 * config/i386/i386.md (floating point move splitters): Fix
19426 usage of standard_80387_constant_p.
19427 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
19429 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
19431 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
19433 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
19435 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
19436 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
19437 (tree_ssa_lim_finalize): Likewise.
19439 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
19441 * config/i386/constraint.md (Yd, Yx): New register constraints.
19442 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
19443 Yd conditional register constraint.
19444 (*movtf_internal): Use standard_sse_constant_opcode.
19445 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
19446 Yx conditional register constraint.
19447 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
19448 Yd conditional register constraint. Use standard_sse_constant_p to
19449 check for valid SSE constants and call standard_sse_constant_opcode to
19451 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
19452 constants and call standard_sse_constant_opcode to output SSE insn.
19453 * config/i386/i386.c (ix86_option_ovverride_internal): Set
19454 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
19455 optimize_size is set.
19456 (standard_sse_constant_opcode): Output conditional AVX insn templates.
19458 2011-05-14 Tobias Burnus <burnus@net-b.de>
19460 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
19462 2011-05-13 Martin Jambor <mjambor@suse.cz>
19464 * ipa-prop.c (ipa_cst_from_jfunc): New function.
19465 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
19466 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
19467 (evaluate_conditions_for_ipcp_clone): Removed.
19468 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
19469 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
19470 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
19472 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
19474 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
19475 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
19476 lieu of MAY_HAVE_DEBUG_STMTS.
19477 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
19478 debug statements if !MAY_HAVE_DEBUG_STMTS.
19480 2011-05-13 Martin Thuresson <martint@google.com>
19482 PR gcov-profile/47793
19483 * libgcov.c (gcov_exit): Support relative profile paths.
19484 * doc/invoke.texi (-fprofile-dir): Update for above change.
19486 2011-05-13 Richard Guenther <rguenther@suse.de>
19488 * gimple.c (gimple_canonical_types_compatible_p): Do not use
19489 type-pair caching, do not compare hashes.
19491 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
19493 PR middle-end/48965
19494 * tree-cfg.c (edge_to_cases_cleanup): Return true.
19495 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
19497 2011-05-13 Kai Tietz <ktietz@redhat.com>
19499 * gimplify.c (gimplify_expr): Make sure operand is boolified.
19500 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
19501 compatible type for TRUTH_NOT_EXPR.
19503 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
19505 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
19506 (ix86_hard_regno_mode_ok): Change return value to bool. Use
19507 can_create_pseudo_p ().
19509 2011-05-13 Richard Guenther <rguenther@suse.de>
19512 * gimple.c (iterative_hash_gimple_type): Revert change in
19513 pointer target and function result and argument hashing.
19515 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
19517 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
19518 (*movxf_internal_nointeger): Ditto.
19519 (*movdf_internal_rex64): Ditto.
19520 (*movdf_internal): Ditto.
19521 (*movdf_internal_nointeger): Ditto.
19522 (*movsf_internal): Ditto.
19523 (sincos splitters): Use can_create_pseudo ().
19525 2011-05-13 Joseph Myers <joseph@codesourcery.com>
19527 * config/i386/i386-opts.h: New.
19528 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
19529 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
19530 ix86_section_threshold): Remove.
19531 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
19532 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
19534 (ix86_option_override_internal): Don't decode strings for options
19535 other than -march=, -mtune= and -mfpmath=. Don't allow for
19536 __attribute__ uses in remaining diagnostics for options with
19537 string arguments. Don't check for integer arguments being negative.
19538 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
19539 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
19540 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
19541 ix86_branch_cost, ix86_section_threshold): Remove.
19542 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
19544 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
19546 (masm=): Use Enum and Init.
19547 (asm_dialect): New Enum and EnumValue entries.
19548 (mbranch-cost=): Use UInteger.
19549 (mlarge-data-threshold=): Use UInteger and Init.
19550 (mcmodel=): Use Enum and Init.
19551 (cmodel): New Enum and EnumValue entries.
19552 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
19553 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
19554 mregparm=): Use UInteger.
19555 (mstringop-strategy=): Use Enum and Init.
19556 (stringop_alg): New Enum and EnumValue entries.
19557 (mtls-dialect=): Use Enum and Init.
19558 (tls_dialect): New Enum and EnumValue entries.
19559 (mabi=): Use Enum and Init.
19560 (calling_abi): New Enum and EnumValue entries.
19561 (mveclibabi=): Use Enum and Init.
19562 (ix86_veclibabi): New Enum and EnumValue entries.
19564 2011-05-13 Nick Clifton <nickc@redhat.com>
19566 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
19567 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
19569 2011-05-13 Kai Tietz <ktietz@redhat.com>
19571 PR middle-end/48984
19572 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
19573 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
19574 (gimple_boolify): Check for cast for boolean_type_node instead for
19577 2011-05-13 Richard Guenther <rguenther@suse.de>
19579 PR tree-optimization/48172
19580 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
19581 multiplying by number of iterations for equal step.
19582 (vect_create_cond_for_alias_checks): Likewise.
19584 2011-05-13 Andreas Schwab <schwab@redhat.com>
19586 * configure.ac: Use AS_HELP_STRING throughout.
19587 * configure: Regenerate.
19589 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
19591 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
19592 (ix86_emit_restore_regs_using_mov): Likewise.
19593 (ix86_emit_restore_sse_regs_using_mov): Likewise.
19595 2011-05-12 Anatoly Sokolov <aesok@post.ru>
19597 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
19598 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
19599 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
19600 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
19601 RTX_OK_FOR_OLO10_P): ...here.
19602 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
19605 2011-05-12 Kai Tietz <ktietz@redhat.com>
19607 * gimplify.c (gimple_boolify): Re-boolify expression
19608 arguments even if expression type is of kind BOOLEAN_TYPE.
19609 (gimplify_boolean_expr): Removed.
19610 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
19611 and XOR. Additional take care that we keep expression's type.
19612 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
19613 of TRUTH_AND|OR|XOR_EXPR.
19615 2011-05-12 Jakub Jelinek <jakub@redhat.com>
19617 PR tree-optimization/48975
19618 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
19619 on all bbs here and free and clear ifc_bbs at the end.
19621 2011-05-12 Richard Guenther <rguenther@suse.de>
19623 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
19624 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
19625 until after simple checks.
19626 (gimple_types_compatible_p): Likewise.
19627 (iterative_hash_gimple_type): Always hash pointer targets
19628 and function return and argument types.
19629 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
19630 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
19631 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
19632 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
19633 completely in the simple compare section.
19634 (gimple_register_canonical_type): Query the cache again after
19637 2011-05-12 Richard Guenther <rguenther@suse.de>
19639 PR tree-optimization/48172
19640 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
19641 the number of iterations from the segment size calculation.
19642 (vect_create_cond_for_alias_checks): Adjust.
19644 2011-05-12 Jakub Jelinek <jakub@redhat.com>
19647 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
19648 if validate_subreg fails.
19650 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
19652 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
19653 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
19656 2011-05-12 DJ Delorie <dj@redhat.com>
19658 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
19659 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
19660 created builtin into rx_builtins array.
19661 (rx_builtin_decl): New function.
19662 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
19664 2011-05-12 DJ Delorie <dj@redhat.com>
19665 Nick Clifton <nickc@redhat.com>
19667 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
19668 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
19669 (rx_is_legitimate_address): Add pre-decrement and post-increment
19670 addressing in HImode and QImode. Fix test for out of range
19671 REG+INT addressing.
19672 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
19673 (rx_align_for_label): Test label before extracting its usage count.
19674 (rx_adjust_insn_lengths): Fix selection of insn codes.
19675 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
19677 2011-05-11 Jason Merrill <jason@redhat.com>
19679 * tree.c (type_hash_canon): Use struct tree_type_non_common.
19681 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
19683 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
19684 reindent the subsequent block.
19686 2011-05-11 Satoru Takabayashi <satorux@google.com>
19687 Paul Pluzhnikov <ppluzhnikov@google.com>
19689 * doc/install.texi (Configuration): Document --with-linker-hash-style.
19690 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
19691 * config.in: Add LINKER_HASH_STYLE.
19692 * configure.ac: Add --with-linker-hash-style.
19693 * configure: Regenerate.
19695 2011-05-11 Richard Guenther <rguenther@suse.de>
19697 PR middle-end/48964
19698 * gimple.c (iterative_hash_canonical_type): Fix typo.
19700 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
19702 * config/i386/i386.c (legitimize_tls_address)
19703 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
19704 expanders directly for TARGET_GNU2_TLS. Determine pic and
19705 __tls_get_addr symbol reference here. Update call to
19706 gen_tls_global_dynamic_{32,64} for added arguments.
19707 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
19708 expanders directly for TARGET_GNU2_TLS. Determine
19709 __tls_get_addr symbol reference here. Update call to
19710 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
19711 unique UNSPEC REG_EQUIV to libcall block.
19712 (ix86_tls_get_addr): Declare static.
19713 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
19714 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
19715 Do not determine pic and __tls_get_addr symbol reference here. Do not
19716 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
19717 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
19718 (tls_global_dynamic_64): Add operand 2. Do not determine
19719 __tls_get_addr symbol reference here. Do not call
19720 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
19721 (tls_local_dynamic_base64): Ditto for operand 1.
19723 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
19725 * function.c (expand_function_start): Initialize stack_check_probe_note
19726 only if the generic stack checking mechanism is used.
19728 2011-05-11 Richard Guenther <rguenther@suse.de>
19730 PR tree-optimization/15256
19731 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
19732 (A & B) | C, combine (A op CST1) op CST2.
19733 (tree_ssa_forward_propagate_single_use_vars): Only bother to
19734 visit assigns that have uses.
19736 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
19738 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
19739 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
19740 (unpack_ts_type_common_value_fields): ...this. Update comment.
19741 (unpack_value_fields): Adjust for renaming.
19742 (lto_input_ts_type_tree_pointers): Split into...
19743 (lto_input_ts_type_common_tree_pointer): ...this and...
19744 (lto_input_ts_type_non_common_tree_pointers): ...this.
19745 (lto_input_tree_pointers): Adjust for above split.
19746 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
19747 (pack_ts_type_common_value_fields): ...this. Update comment.
19748 (lto_output_ts_type_tree_pointers): Split into...
19749 (lto_output_ts_type_common_tree_pointers): ...this and...
19750 (lto_output_ts_type_non_common_tree_pointers): ...this.
19751 (lto_output_tree_pointers): Adjust for above split.
19752 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
19753 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
19754 * stor-layout.c (vector_type_mode): Adjust location of mode field.
19755 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
19757 (struct tree_type): Split into...
19758 (struct tree_type_common: ...this and...
19759 (struct tree_type_with_lang_specific): ...this and...
19760 (struct tree_type_non_common): ...this. Adjust accessor macros
19762 (TYPE_VALUES_RAW): Define.
19763 (union tree_node): Update for above changes.
19764 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
19765 TS_TYPE_NON_COMMON.
19766 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
19767 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
19768 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
19769 * treestructu.def (TS_TYPE): Remove.
19770 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
19773 2011-05-11 Jakub Jelinek <jakub@redhat.com>
19776 * tree-ssa.c (reset_debug_uses): New function.
19777 * tree-flow.h (reset_debug_uses): New prototype.
19778 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
19779 * tree-loop-distribution.c (generate_loops_for_partition): Call
19780 reset_debug_uses on the stmts that will be removed. Keep around
19781 all debug stmts, don't count them as bits in partition bitmap.
19782 (generate_builtin): Don't count debug stmts or labels as bits in
19785 2011-05-11 Richard Guenther <rguenther@suse.de>
19787 * gimple.c (gimple_type_hash_1): Merge with ...
19788 (gimple_type_hash): ... this.
19789 (gtc_visit): Remove mode parameter and simplify accordingly.
19790 (gimple_types_compatible_p_1): Likewise.
19791 (gimple_types_compatible_p): Likewise.
19792 (iterative_hash_gimple_type): Likewise.
19794 (gimple_type_eq): Adjust.
19796 2011-05-11 Revital Eres <revital.eres@linaro.org>
19798 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
19799 enters the branch create an anti edge in the opposite direction
19800 to prevent the creation of reg-moves.
19801 * modulo-sched.c: Adjust comment to reflect the fact we are
19802 scheduling closing branch.
19803 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
19804 (stage_count): New field in struct partial_schedule.
19805 (calculate_stage_count): New function.
19806 (normalize_sched_times): Rename to reset_sched_times and handle
19807 incrementing the sched time of the nodes by a constant value
19808 passed as parameter.
19809 (duplicate_insns_of_cycles): Skip closing branch.
19810 (sms_schedule_by_order): Schedule closing branch.
19811 (ps_insn_find_column): Handle closing branch.
19812 (sms_schedule): Call reset_sched_times and adjust the code to
19813 support scheduling of the closing branch.
19814 (ps_insert_empty_row): Update calls to normalize_sched_times
19815 and rotate_partial_schedule functions.
19817 2011-05-11 Richard Guenther <rguenther@suse.de>
19819 PR middle-end/48953
19820 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
19822 2011-05-11 Joseph Myers <joseph@codesourcery.com>
19824 * opts.c (finish_options): Move warning settings from process_options.
19825 * toplev.c (process_options): Move warning settings to finish_options.
19827 2011-05-11 Richard Guenther <rguenther@suse.de>
19829 PR tree-optimization/18041
19830 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
19831 (simplify_bitwise_binary): ... this. Handle operand conversions
19832 by applying them to the result instead.
19833 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
19835 2011-05-11 Richard Guenther <rguenther@suse.de>
19837 * gimple.c (gimple_canonical_types_compatible_p): Split out
19838 from gimple_types_compatible_p and friends. Do not recurse
19839 to pointed-to types.
19840 (gimple_canonical_type_eq): Use it.
19841 (iterative_hash_canonical_type): Split out from
19842 iterative_hash_gimple_type and friends. Do not recurse
19843 to pointed-to types.
19844 (gimple_canonical_type_hash): Use it, allocate the hash here.
19846 2011-05-11 Revital Eres <revital.eres@linaro.org>
19848 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
19849 recognizing doloop.
19851 2011-05-11 Revital Eres <revital.eres@linaro.org>
19853 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
19854 instead of PREV_INSN.
19856 2011-05-11 Revital Eres <revital.eres@linaro.org>
19858 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
19859 * loop-doloop.c (doloop_condition_get): Likewise.
19860 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
19862 * config/arm/arm.md (*addsi3_compare0): Remove "*".
19864 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
19866 * tree.def (CASE_LABEL_EXPR): Add an operand.
19867 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
19869 2011-05-10 Joseph Myers <joseph@codesourcery.com>
19871 * c-decl.c (c_override_global_bindings_to_false): Remove.
19872 (global_bindings_p): Don't check
19873 c_override_global_bindings_to_false.
19874 * c-tree.h (c_override_global_bindings_to_false): Remove.
19875 * c-typeck.c (composite_type): Don't set
19876 c_override_global_bindings_to_false.
19878 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
19880 PR target/48857, 48495
19881 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
19883 (VSX_MOVE_MODE): Ditto.
19884 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
19885 VSX vector types. Add V2DImode.
19886 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
19887 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
19888 (MODES_TIEABLE_P): Ditto.
19890 * config/rs6000/rs6000.c (rs6000_emit_move): Use
19891 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
19893 (init_cumulative_args): Ditto.
19894 (rs6000_function_arg_boundary): Ditto.
19895 (rs6000_function_arg_advance_1): Ditto.
19896 (rs6000_function_arg): Ditto.
19897 (rs6000_function_ok_for_sibcall): Ditto.
19898 (emit_frame_save): Ditto.
19899 (rs6000_function_value): Ditto.
19900 (rs6000_libcall_value): Ditto.
19902 2011-05-10 Joseph Myers <joseph@codesourcery.com>
19904 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
19905 i386/darwin-lib.h to $libgcc_tm_file.
19906 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
19908 2011-05-10 Joseph Myers <joseph@codesourcery.com>
19910 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
19912 2011-05-10 Joseph Myers <joseph@codesourcery.com>
19914 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
19915 * config/rs6000/rs6000-tables.opt: New file (generated).
19916 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
19917 rs6000/rs6000-tables.opt to extra_options.
19918 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
19919 * config/rs6000/rs6000.c (rs6000_select): Remove.
19920 (processor_target_table): Move contents to rs6000-cpus.def.
19921 (darwin_rs6000_override_options): Check
19922 global_options_set.x_rs6000_cpu_index instead of
19923 rs6000_select[1].string.
19924 (rs6000_option_override_internal): Likewise.
19925 (rs6000_handle_option): Don't assert that global structures are in
19926 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
19927 (rs6000_default_cpu): New variable.
19928 (rs6000_file_start): Set it instead of local default_cpu. Check
19929 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
19930 global_options_set.x_rs6000_tune_index instead of rs6000_select.
19931 (rs6000_darwin_file_start): Check rs6000_default_cpu and
19932 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
19933 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
19934 rs6000_select): Remove.
19935 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
19937 (mcpu=, mtune=): Use Var, Init, Enum and Save.
19938 * config/rs6000/t-rs6000
19939 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
19940 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
19941 global_options_set.x_rs6000_cpu_index instead of
19942 rs6000_select[1].string.
19943 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
19944 global_options_set.x_rs6000_cpu_index instead of
19945 rs6000_select[1].string.
19947 2011-05-10 Joseph Myers <joseph@codesourcery.com>
19949 * config.gcc (libgcc_tm_file): Define instead of including files
19950 from ../../libgcc/config/ in tm_file.
19951 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
19952 * configure: Regenerate.
19953 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
19954 libgcc_tm.h, cs-libgcc_tm.h): New.
19955 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
19956 (clean): Remove libgcc_tm.h.
19957 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
19958 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
19959 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
19961 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
19964 * config/avr/avr.c (avr_ret_register): Return unsigned int
19966 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
19967 it to avr_libcall_value.
19968 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
19970 (avr_expand_binop_builtin): Ditto.
19971 (avr_expand_unop_builtin): Ditto.
19973 2011-05-10 DJ Delorie <dj@redhat.com>
19975 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
19976 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
19977 * config/rx/rx.c (rx_align_for_label): Add label and
19978 uses_threshold parameters. Do not align when the label is not
19980 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
19982 2011-05-10 Richard Guenther <rguenther@suse.de>
19984 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
19985 a series of conversions and apply foldings similar to what
19987 (tree_ssa_forward_propagate_single_use_vars): Call it.
19989 2011-05-10 Jakub Jelinek <jakub@redhat.com>
19991 PR tree-optimization/48611
19992 PR tree-optimization/48794
19993 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
19994 referenced from RESX or EH_DISPATCH arguments.
19997 * dfp.c (decimal_to_decnumber): Handle conversion from
19998 dconst{1,2,m1,half}.
20000 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
20002 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
20003 for !flag_prefer_avx128.
20004 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
20006 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
20008 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
20009 (fold_ternary_loc): Use expr_location_or.
20011 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
20014 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
20015 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
20016 Pmode and mem_mode is not VOIDmode.
20018 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
20020 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
20021 TYPE_QUAL_RESTRICT): Convert to enum.
20023 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
20025 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
20026 (const_pow2_1_to_8_operand): Ditto.
20027 (const_pow2_1_to_128_operand): Ditto.
20028 (const_pow2_1_to_32768_operand): Ditto.
20029 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
20030 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
20031 in insn constraint to check integer value of operand 3.
20032 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
20034 (PINSR_MODE): New mode iterator.
20035 (sse2p4_1): New mode attribute.
20036 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
20037 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
20038 iterator. Use const_int_operand instead of
20039 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
20040 exact_log2 in insn constraint to check integer value of operand 3.
20042 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
20044 * config/i386/sse.md (blendbits): Remove mode attribute.
20045 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
20046 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
20047 Check integer value of operand 3 in insn constraint.
20049 2011-05-09 Richard Guenther <rguenther@suse.de>
20051 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
20053 (lto_symtab_merge): Likewise. Do not register types here.
20054 (lto_symtab_merge_decls_2): Likewise.
20055 (lto_symtab_merge_decls_1): Likewise.
20056 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
20057 * gimple.c (enum gtc_mode): Declare.
20058 (gimple_types_compatible_p): Make static.
20060 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20062 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
20063 temporary register to match Pmode.
20065 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
20067 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
20068 and *vec_concatv4si_1_avx.
20070 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
20072 PR rtl-optimization/48927
20073 * ira-conflicts.c (commutative_constraint_p): Use
20074 recog_data.alternative_enabled_p to disable alternatives where
20075 "enabled" attribute is false.
20076 (get_dup_num): Ditto.
20077 * ira-lives.c (single_reg_class): Ditto.
20078 (ira_implicitly_set_insn_hard_regs): Ditto.
20080 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
20082 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
20083 (dataflow_set_preserve_mem_locs): Likewise.
20085 2011-05-09 Philipp Thomas <pth@suse.de>
20087 * config/mep/mep.c (mep_validate_vliw): Syntax description
20088 should not be translated.
20090 2011-05-09 Joseph Myers <joseph@codesourcery.com>
20092 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
20093 * config/mips/mips-tables.opt: New file (generated).
20094 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
20095 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
20096 MIPS_ARCH_OPTION_NATIVE): Define.
20097 * config/mips/mips.c (mips_cpu_info_table): Move contents to
20099 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
20100 mips_parse_cpu): Remove.
20101 (mips_cpu_info_from_opt, mips_default_arch): New.
20102 (mips_handle_option): Don't assert that global structures are in
20103 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
20104 (mips_option_override): Use new variables and functions to set
20105 state of these options. Use strcmp to check for individual CPU names.
20106 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
20108 * config/mips/mips.opt (march=): Use ToLower and Enum.
20109 (mips): Use ToLower, Enum and Var.
20110 (mtune=): Use ToLower and Enum.
20111 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
20113 2011-05-08 Jan Hubicka <jh@suse.cz>
20115 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
20116 Arrange type pairs to be UID ordered.
20117 (gimple_lookup_type_leader): Make inline.
20119 2011-05-09 Nick Clifton <nickc@redhat.com>
20122 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
20126 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
20129 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
20131 * combine.c (simplify_comparison): Abstract out parts into...
20132 (simplify_compare_const): ... new function.
20133 (try_combine): Generalize parallel arithmetic/compare combining
20134 to call simplify_compare_const() and CANONICALIZE_COMPARE().
20136 2011-05-08 Jan Hubicka <jh@suse.cz>
20138 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
20139 (cgraph_create_virtual_clone): Call hooks once virtual clone
20141 * cgraph.h (cgraph_clone_node): Update prototype.
20142 * ipa-cp.c (ipcp_estimate_growth): Use
20143 estimate_ipcp_clone_size_and_time.
20144 * ipa-inline-transform.c (clone_inlined_nodes): Update.
20145 * lto-cgraph.c (input_node): Update.
20146 * ipa-inline.c (recursive_inlining): Update.
20147 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
20148 (evaluate_conditions_for_known_args): Break out from ...
20149 (evaluate_conditions_for_edge): ... here.
20150 (evaluate_conditions_for_ipcp_clone): New function.
20151 (inline_node_duplication_hook): Update clone summary based
20153 (estimate_callee_size_and_time): Rename to ...
20154 (estimate_node_size_and_time): take NODE instead of EDGE;
20155 take POSSIBLE_TRUTHS as argument.
20156 (estimate_callee_size_and_time): Update.
20157 (estimate_ipcp_clone_size_and_time): New function.
20158 (do_estimate_edge_time): Update.
20160 2011-05-08 Richard Guenther <rguenther@suse.de>
20162 PR middle-end/48908
20163 PR middle-end/48905
20164 * expmed.c (expand_shift_1): Compute adjusted constant shift
20167 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
20169 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
20171 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
20173 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
20175 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
20177 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
20179 2011-05-07 Jan Hubicka <jh@suse.cz>
20181 * ipa-inline-transform.c (inline_call): Account when program size
20183 * ipa-inline.c (relative_time_benefit): New function.
20184 (edge_badness): Reorganize to be power 2 based; fix thinko when
20185 computing badness for negative growth; update comments to match
20186 reality; better dumps.
20188 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
20190 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
20191 type to bool and adjust comment.
20192 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
20193 (fold_mathfn_compare): Remove calls to global_bindings_p.
20194 (fold_inf_compare): Likewise.
20195 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
20196 * c-tree.h (global_bindings_p): Adjust prototype.
20197 * c-decl.c (global_bindings_p): Return bool and simplify.
20199 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
20201 PR tree-optimization/48837
20202 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
20203 when accumulator transformation is performed.
20205 2011-05-06 Jan Hubicka <jh@suse.cz>
20207 * i386.h (ix86_tune_indices): Add
20208 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
20209 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
20210 * i386.c (initial_ix86_tune_features): Add
20211 X86_SOFTARE_PREFETCHING_BENEFICIAL.
20212 (software_prefetching_beneficial_p): Remove predicate.
20213 (ix86_option_override_internal): Use new macro.
20215 2011-05-06 Jan Hubicka <jh@suse.cz>
20217 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
20219 2011-05-06 Jan Hubicka <jh@suse.cz>
20221 * cgraph.c (cgraph_add_thunk): Create real function node instead
20222 of alias node; finalize it and mark needed/reachale; arrange visibility
20223 to be right and add it into the corresponding same comdat group list.
20224 (dump_cgraph_node): Dump thunks.
20225 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
20226 cgraph_function_with_gimple_body_p,
20227 cgraph_first_function_with_gimple_body,
20228 cgraph_next_function_with_gimple_body): New functions.
20229 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
20231 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
20232 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
20233 * cgraphunit.c (cgraph_finalize_function): Only look into possible
20234 devirtualization when optimizing.
20235 (verify_cgraph_node): Verify thunks.
20236 (cgraph_analyze_function): Analyze thunks.
20237 (cgraph_mark_functions_to_output): Output thunks only in combination
20238 with function they are assigned to.
20239 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
20240 alias into normal node.
20241 (assemble_thunks): New functoin.
20242 (cgraph_expand_function): Use it.
20243 * lto-cgraph.c (lto_output_node): Stream thunks.
20244 (input_overwrite_node): Stream in thunks.
20245 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
20246 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
20247 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
20248 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
20249 (inline_analyze_function): Do not care about thunk jump functions.
20250 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
20251 * ipa-prop.c (ipa_prop_write_jump_functions): Use
20252 cgraph_function_with_gimple_body_p.
20253 * passes.c (do_per_function_toporder): Use
20254 cgraph_function_with_gimple_body_p.
20255 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
20256 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
20257 (function_called_by_processed_nodes_p): Likewise.
20259 2011-05-06 Joseph Myers <joseph@codesourcery.com>
20261 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
20262 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
20264 (mabi=): Replace with separate entries for mabi=altivec,
20265 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
20266 mabi=ieeelongdouble and mabi=ibmlongdouble.
20267 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
20268 check for -mabi=spe without SPE ABI support here.
20269 (rs6000_handle_option): Replace OPT_mabi_ handling with
20270 OPT_mabi_altivec and OPT_mabi_spe handling.
20272 2011-05-06 Cary Coutant <ccoutant@google.com>
20274 * dwarf2out.c (contains_subprogram_definition): New function.
20275 (should_move_die_to_comdat): Call it.
20277 2011-05-06 Jeff Law <law@redhat.com>
20279 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
20280 remove_ctrl_stmt_and_useless_edges.
20281 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
20282 (fixup_template_block, thread_single_edge): Likewise.
20283 (mark_threaded_blocks): Use THREAD_TARGET.
20285 2011-05-06 Alan Modra <amodra@gmail.com>
20288 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
20289 const0_rtx as the arg to the dummy __tls_get_addr libcall.
20291 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
20293 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
20294 constraint modifier to "r".
20296 2011-05-06 Joseph Myers <joseph@codesourcery.com>
20298 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
20299 fall through for OPT_mcmodel_.
20301 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20303 * config/s390/s390.c (s390_asm_trampoline_template): Comment
20305 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
20307 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20310 * config/arm/arm.opt (marm): Document it.
20311 (mthumb): Reject negative variant.
20313 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
20316 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
20317 Fix typo in "ccvt" variable name.
20319 2011-05-06 Tristan Gingold <gingold@adacore.com>
20322 * config/vms/vms-ar.c (main): Remove cwd variable.
20324 2011-05-06 Jakub Jelinek <jakub@redhat.com>
20327 * var-tracking.c (prepare_call_arguments): Move else before #endif.
20329 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
20331 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
20332 * gimplify.c (gimplify_switch_expr): Likewise.
20333 * omp-low.c (expand_omp_sections): Likewise.
20334 * tree-eh.c (lower_try_finally_switch): Likewise.
20335 (lower_eh_dispatch): Likewise.
20336 * tree.h (build_case_label): Declare.
20337 * tree.c (build_case_label): Define.
20339 2011-05-05 Jason Merrill <jason@redhat.com>
20342 * tree-inline.c (copy_tree_r): Use copy_statement_list.
20343 (copy_statement_list): Don't recurse.
20344 * stor-layout.c (copy_self_referential_tree_r): Don't allow
20347 2011-05-05 Joseph Myers <joseph@codesourcery.com>
20349 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
20350 through from -mfpu= handling.
20351 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
20353 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
20355 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
20358 2011-05-05 Steve Ellcey <sje@cup.hp.com>
20360 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
20362 (hppa[12]*-*-hpux11*): Ditto.
20363 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
20364 * config/ia64/hpux-unix2003.h: New.
20365 * config/pa/pa-hpux1131.opt: New.
20366 * config/pa/pa-hpux1131.h: New.
20367 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
20368 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
20369 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
20371 2011-05-05 Jakub Jelinek <jakub@redhat.com>
20374 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
20375 instead of mode as 3rd argument to recursive call.
20376 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
20377 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
20379 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
20380 don't give up if mode is Pmode and mem_mode is not VOIDmode.
20381 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
20382 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
20384 2011-05-05 Julian Brown <julian@codesourcery.com>
20386 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
20387 parenthesis in D-register case.
20389 2011-05-05 Joseph Myers <joseph@codesourcery.com>
20391 * opt-functions.awk (var_type_struct): Handle Enum options.
20392 * optc-gen.awk: Don't check range of variables of character type.
20393 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
20394 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
20395 rs6000_sdata_name, rs6000_explicit_options): Remove.
20396 (rs6000_option_override_internal): Check for -malign-power here.
20397 Use global_options_set instead of rs6000_explicit_options.
20398 (rs6000_parse_fpu_option): Remove.
20399 (rs6000_handle_option): Access variables via opts and opts_set
20400 pointers. Use error_at and warning_at. Add fall-through
20401 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
20402 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
20403 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
20404 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
20405 here. Don't use rs6000_parse_fpu_option.
20406 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
20407 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
20408 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
20409 (mrecip=): Use Var.
20410 (mspe): Use Var and Save.
20411 (mtraceback=): Use Enum and Var.
20412 (rs6000_traceback_type): New Enum and EnumValue entries.
20413 (mfloat-gprs=): Use Enum, Var and Save.
20414 (rs6000_float_gprs): New Enum and EnumValue entries.
20415 (mlong-double-): use Var and Save.
20416 (msched-costly-dep=, minsert-sched-nops=): Use Var.
20417 (malign-): Use Enum and Var.
20418 (rs6000_alignment_flags): New Enum and EnumValue entries.
20420 (fpu_type_t): New Enum and EnumValue entries.
20421 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
20422 global_options_set instead of rs6000_explicit_options.
20423 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
20424 global_options_set instead of rs6000_explicit_options.
20425 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
20426 global_options_set instead of rs6000_explicit_options.
20427 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
20428 global_options_set instead of rs6000_explicit_options.
20429 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
20430 global_options_set instead of rs6000_explicit_options.
20431 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
20432 global_options_set instead of rs6000_explicit_options.
20433 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
20435 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
20436 global_options_set instead of rs6000_explicit_options.
20437 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
20438 (rs6000_cmodel): New Enum and EnumValue entries.
20439 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
20440 global_options_set instead of rs6000_explicit_options.
20441 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
20442 (mtls-size=): Use Enum and Var.
20443 (rs6000_tls_size): New Enum and EnumValue entries.
20445 2011-05-05 Michael Matz <matz@suse.de>
20447 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
20448 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
20449 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
20450 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
20451 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
20452 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
20453 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
20454 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
20455 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
20456 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
20457 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
20458 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
20459 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
20460 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
20461 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
20462 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
20464 2011-05-05 Richard Guenther <rguenther@suse.de>
20466 * expmed.c (expand_variable_shift): Rename to ...
20467 (expand_shift_1): ... this. Take an expanded shift amount.
20468 For rotates recurse directly not building trees for the shift amount.
20469 (expand_variable_shift): Wrap around expand_shift_1.
20470 (expand_shift): Adjust.
20472 2011-05-05 Jakub Jelinek <jakub@redhat.com>
20474 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
20476 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
20478 * tree.h (get_pending_sizes): Remove prototype.
20479 (put_pending_size): Likewise.
20480 (put_pending_sizes): Likewise.
20481 * stor-layout.c (pending_sizes): Delete.
20482 (get_pending_sizes): Likewise.
20483 (put_pending_size): Likewise.
20484 (put_pending_sizes): Likewise.
20485 (variable_size): Do not call put_pending_size and tidy up.
20486 * function.h (struct function): Remove dont_save_pending_sizes_p.
20487 * lto-streamer-in.c (input_function): Do not stream it.
20488 * lto-streamer-out.c (output_function): Likewise.
20489 * tree-inline.c (initialize_cfun): Do not copy it.
20490 * c-decl.c (store_parm_decls): Do not set it.
20491 * omp-low.c (create_task_copyfn): Likewise.
20492 * tree-optimize.c (tree_rest_of_compilation): Likewise.
20494 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
20496 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
20498 (*movdf_internal): Ditto.
20499 (*movdf_internal_nointeger): Ditto.
20500 (*movsf_internal): Ditto.
20502 2011-05-05 Joseph Myers <joseph@codesourcery.com>
20504 * c-decl.c (finish_decl): Don't call get_pending_sizes.
20505 (grokparm): Add parameter expr. Pass it to grokdeclarator.
20506 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
20507 (c_variable_size): Remove.
20508 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
20509 call put_pending_sizes.
20510 (get_parm_info): Add parameter expr. Use it to set
20511 arg_info->pending_sizes.
20512 (store_parm_decls): Use arg_info->pending_sizes instead or calling
20514 * c-parser.c (c_parser_parms_declarator): Update call to
20515 c_parser_parms_list_declarator.
20516 (c_parser_parms_list_declarator): Take parameter expr. Update
20517 call to push_parm_decl. Update recursive call. Don't call
20518 get_pending_sizes. Update calls to get_parm_info.
20519 (c_parser_objc_method_definition): Update calls to
20520 c_parser_objc_method_decl and objc_start_method_definition.
20521 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
20522 (c_parser_objc_method_decl): Add parameter expr. Update call to
20524 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
20525 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
20526 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
20528 2011-05-05 Michael Hope <michael.hope@linaro.org>
20531 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
20532 __ARM_EABI__ hosts.
20534 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20536 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
20537 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
20538 (spu_output_mi_thunk): New function.
20540 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20542 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
20543 targetm.asm_out.print_operand.
20544 * config/sol2.c: Include target.h.
20546 2011-05-04 Jan Hubicka <jh@suse.cz>
20548 * ipa-inline.c (reset_edge_caches): New function.
20549 (update_caller_keys): Add check_inlinablity_for; do not
20550 reset edge caches; remove now unnecesary loop.
20551 (update_callee_keys): Add comments; reset node_growth_cache of callee.
20552 (update_all_callee_keys): Likewise.
20553 (inline_small_functions): Sanity check cache; update code
20556 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
20558 PR rtl-optimization/47612
20559 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
20560 as the last insn of the sequence to be moved.
20562 2011-05-04 Tobias Burnus <burnus@net-b.de>
20565 * doc/invoke.texi (Ofast): Document that it
20566 enables Fortran's -fno-protect-parens.
20568 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
20570 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
20572 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
20574 * stor-layout.c (variable_size): Do not issue errors.
20576 2011-05-04 Richard Guenther <rguenther@suse.de>
20578 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
20579 for array-ref indices.
20580 (tree_coverage_counter_addr): Likewise.
20581 (build_fn_info_type): Use size_int for index types.
20582 (build_gcov_info): Likewise.
20584 2011-05-04 Richard Guenther <rguenther@suse.de>
20586 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
20588 * c-typeck.c (really_start_incremental_init): Use bitsize_int
20589 for constructor indices.
20590 (push_init_level): Likewise.
20592 2011-05-04 Richard Guenther <rguenther@suse.de>
20594 * explow.c (promote_mode): Move variable declarations before code.
20596 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
20598 * tree.h (build_function_type_array): Declare.
20599 (build_varargs_function_type_array): Declare.
20600 (build_function_type_vec, build_varargs_function_type_vec): Define.
20601 * tree.c (build_function_type_array_1): New function.
20602 (build_function_type_array): New function.
20603 (build_varargs_function_type_array): New function.
20605 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
20607 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
20608 before setting STMT_VINFO_TYPE.
20610 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20612 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
20613 instead of spu_pass_by_reference.
20615 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20617 * calls.c (emit_library_call_value_1): Invoke
20618 promote_function_mode hook on libcall arguments.
20619 * explow.c (promote_function_mode, promote_mode): Handle TYPE
20620 argument being NULL.
20621 * targhooks.c (default_promote_function_mode): Lisewise.
20622 * config/s390/s390.c (s390_promote_function_mode): Likewise.
20623 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
20625 * doc/tm.texi: Document that TYPE argument might be NULL.
20627 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
20629 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
20631 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
20634 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
20636 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20638 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
20639 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
20641 * mips-tfile.c: ... here.
20642 Don't include coretypes.h, tm.h, filenames.h.
20643 (saber_stop): Remove definition and all calls.
20644 [__SABER__]: Remove.
20645 (__LINE__): Remove default.
20646 (Size_t, Ptrdiff_t): Remove definitions.
20647 Replace by size_t, ptrdiff_t.
20648 [!MIPS_DEBUGGING_INFO]: Remove.
20649 (SHASH_SIZE, THASH_SIZE): Remove defaults.
20650 (progname): Add const.
20652 Replace all uses by static.
20653 (ALIGN_SYMTABLE_OFFSET): Remove default.
20654 * mips-tdump.c: Don't include coretypes.h, tm.h.
20655 Remove !MIPS_IS_STAB guard.
20656 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
20657 $(TM_H), filenames.h dependencies.
20658 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
20660 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
20663 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
20664 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
20666 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
20669 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
20670 account and save/restore RETS.
20671 (PROFILE_BEFORE_PROLOGUE): Define.
20672 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
20673 the push insn to use predecrement.
20675 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
20678 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
20680 2011-05-04 Nick Clifton <nickc@redhat.com>
20682 * config/mn10300/mn10300.c: Include cfgloop.h.
20684 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
20685 Lcc or a FLcc insn into the instruction stream.
20686 (mn10300_block_contains_call): New function. Returns true if the
20687 given basic block contains a CALL insn.
20688 (mn10300_loop_contains_call_insn): New function. Returns true if
20689 the given loop contains a CALL insn.
20690 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
20691 to use the SETLB and Lcc or FLcc insns.
20692 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
20693 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
20694 * config/mn10300/mn10300.opt (msetlb): New option. Used to
20695 disable the SETLB optimization.
20696 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
20697 __SETLB__ or __NO_SETLB__.
20698 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
20699 (movsf_internal): Handle MDR register.
20700 (cmpsi): Make visible.
20701 (setlb): New pattern.
20702 (Lcc): New pattern.
20703 (FLcc): New pattern.
20705 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
20708 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
20709 for reg<->xmm moves.
20710 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
20711 (vec_concatv2di_rex64_sse): Ditto.
20712 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
20713 (*vec_extractv2di_1_rex64): Ditto.
20716 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
20718 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
20720 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
20722 2011-05-04 Richard Guenther <rguenther@suse.de>
20724 * tree.h (int_const_binop): Remove notrunc argument.
20725 * fold-const.c (int_const_binop): Remove notrunc argument. Always
20726 create integer constants that are properly truncated.
20727 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
20728 (const_binop): Remove zero notrunc argument to int_const_binop.
20729 (size_binop_loc): Likewise.
20730 (fold_div_compare): Likewise.
20731 (maybe_canonicalize_comparison_1): Likewise.
20732 (fold_comparison): Likewise.
20733 (fold_binary_loc): Likewise.
20734 (multiple_of_p): Likewise.
20735 * expr.c (store_constructor): Likewise.
20736 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
20737 (maybe_fold_stmt_addition): Likewise.
20738 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
20739 * stor-layout.c (layout_type): Likewise.
20740 * tree-data-ref.c (tree_fold_divides_p): Likewise.
20741 * tree-sra.c (build_ref_for_offset): Likewise.
20742 (build_user_friendly_ref_for_offset): Likewise.
20743 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
20744 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
20745 * tree-ssa-loop-niter.c (inverse): Likewise.
20746 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
20747 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
20748 * tree-switch-conversion.c (check_range): Likewise.
20749 (build_constructors): Likewise.
20750 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
20751 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
20752 (extract_range_from_assert): Likewise.
20753 (vrp_int_const_binop): Likewise.
20754 (extract_range_from_binary_expr): Likewise.
20755 (extract_range_from_unary_expr): Likewise.
20756 (check_array_ref): Likewise.
20757 (find_case_label_range): Likewise.
20758 (simplify_div_or_mod_using_ranges): Likewise.
20759 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
20760 comparing case labels for merging.
20762 2011-05-03 Mark Wielaard <mjw@redhat.com>
20764 * dwarf2out.c (debug_str_hash_forced): Removed.
20765 (gen_label_for_indirect_string): Removed.
20766 (get_debug_string_label): Removed.
20767 (AT_string_form): Generate label directly.
20768 (output_indirect_string): Test indirect_string_node for
20769 DW_FORM_strp instead of checking label and refcount.
20770 (prune_indirect_string): Removed.
20771 (prune_unused_types): Don't check debug_str_hash_forced or
20772 call prune_indirect_string.
20774 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
20777 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
20779 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
20783 * combine.c (try_combine): Skip debug insns at m_split tests.
20785 2011-04-26 Mark Wielaard <mjw@redhat.com>
20788 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
20789 when info_section_emitted.
20791 2011-05-03 Joseph Myers <joseph@codesourcery.com>
20793 * config/mips/mips-opts.h: New.
20794 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
20796 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
20797 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
20798 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
20800 * config/mips/mips.h (enum mips_code_readable_setting): Move to
20802 (mips_abi, mips_code_readable): Don't declare.
20803 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
20804 (mabi=): Use Enum and Var.
20805 (mips_abi): New Enum and EnumValue entries.
20806 (mcode-readable=): Use Enum and Var.
20807 (mips_code_readable_setting): New Enum and EnumValue entries.
20808 (mr10k-cache-barrier=): Use Enum and Var.
20809 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
20811 2011-05-03 Jan Hubicka <jh@suse.cz>
20813 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
20814 replace hash by pointer map.
20815 (cgraph_node_set_element_def, cgraph_node_set_element,
20816 const_cgraph_node_set_element, varpool_node_set_element_def,
20817 varpool_node_set_element, const_varpool_node_set_element): Remove.
20818 (free_cgraph_node_set, free_varpool_node_set): New function.
20819 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
20820 * tree-emutls.c: Free varpool node set.
20821 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
20822 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
20823 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
20824 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
20825 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
20826 Move here from ipa.c; implement using pointer_map
20827 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
20828 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
20829 debug_cgraph_node_set, varpool_node_set_new,
20830 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
20831 dump_varpool_node_set, debug_varpool_node_set):
20832 Move to ipa-uitls.c.
20833 * passes.c (ipa_write_summaries): Update.
20835 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20837 From Mike Frysinger:
20838 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
20839 bf542/bf544/bf547/bf548/bf549.
20841 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
20843 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
20845 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20847 From Bernd Schmidt:
20848 * config/bfin/bfin.md (MOVCC): New mode_macro.
20849 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
20850 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
20851 comments from generated assembly.
20853 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20856 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
20857 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
20858 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
20859 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
20860 * config/bfin/lib1funcs.asm (___muldi3): New function.
20862 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20864 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
20865 build_function_type_list instead of build_function_type.
20866 Rearrange initialization of `args' to do so.
20868 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20870 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
20871 instead of build_function_type.
20873 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20875 * config/rs6000/rs6000.c (spe_init_builtins): Call
20876 build_function_type_list instead of build_function_type.
20877 (paired_init_builtins, altivec_init_builtins): Likewise.
20878 (builtin_function_type): Likewise.
20880 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20882 * config/sh/sh.c (sh_media_init_builtins): Call
20883 build_function_type_list instead of build_function_type.
20885 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20887 * config/sparc/sparc.c (sparc_file_end): Call
20888 build_function_type_list instead of build_function_type.
20890 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20892 * config/alpha/alpha.c (alpha_init_builtins): Call
20893 build_function_type_list instead of build_function_type.
20895 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20897 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
20898 build_function_type_list instead of build_function_type.
20900 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20902 * config/iq2000/i2000.c (iq2000_init_builtins): Call
20903 build_function_type_list instead of build_function_type.
20904 Delete `endlink' variable.
20906 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20908 * config/avr/avr.c (avr_init_builtins): Call
20909 build_function_type_list instead of build_function_type.
20911 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20913 * config/picochip/picochip.c (picochip_init_builtins): Call
20914 build_function_type_list instead of build_function_type.
20915 Delete `endlink' variable.
20917 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
20919 * config/bfin/bfin.c (bfin_init_builtins): Call
20920 build_function_type_list instead of build_function_type.
20922 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20925 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
20926 that's not CONST_INT. Seemingly redundant check is due to PR39768.
20928 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20931 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
20932 libbffastfp overrides libgcc when -mfast-fp.
20934 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20936 Originally from Bernd Schmidt
20937 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
20938 * config/bfin/bfin.c (override_options): Test it and error if
20941 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
20943 Originally From Bernd Schmidt
20944 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
20947 2011-05-03 Jeff Law <law@redhat.com>
20949 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
20950 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
20951 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
20952 than accessing AUX field directly. Free the AUX field before
20954 (thread_block, thread_through_loop_header): Likewise.
20955 (thread_single_edge, mark_threaded_blocks): Likewise.
20956 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
20957 (register_jump_thread): Do not attempt to thread to a NULL edge.
20959 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
20961 * function.c (init_function_start): Call decide_function_section.
20962 * varasm.c (decide_function_section): New function.
20963 (assemble_start_function): When not using
20964 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
20965 or first_function_block_is_cold.
20966 * rtl.h (decide_function_section): Declare.
20968 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
20969 Jakub Jelinek <jakub@redhat.com>
20972 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
20973 only succeed if req_mode is the same as set_mode.
20975 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
20977 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
20978 * genemit.c (gen_exp): Handle RETURN.
20979 * emit-rtl.c (verify_rtx_sharing): Likewise.
20980 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
20981 * rtl.c (copy_rtx): RETURN is shared.
20982 * rtl.h (enum global_rtl_index): Add GR_RETURN.
20984 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
20985 * config/s390/s390.c (s390_emit_epilogue): Likewise.
20986 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
20987 * config/cris/cris.c (cris_expand_return): Likewise.
20988 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
20989 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
20990 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
20991 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
20992 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
20994 * config/v850/v850.c (expand_epilogue): Likewise.
20995 * config/bfin/bfin.c (bfin_expand_call): Likewise.
20996 * config/arm/arm.md (epilogue): Likewise.
20997 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
20998 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
20999 variable to ret_reg.
21001 2011-05-03 Richard Guenther <rguenther@suse.de>
21004 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
21005 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
21006 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
21008 2011-05-03 Richard Guenther <rguenther@suse.de>
21010 * c-decl.c (grokdeclarator): Instead of looking at
21011 TREE_OVERFLOW check if the constant fits in the index type.
21013 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
21015 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
21016 (vec_store_lanes<mode><mode>): Likewise.
21018 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
21020 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
21021 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
21022 convert_optab_index values.
21023 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
21024 * genopinit.c (optabs): Initialize the new optabs.
21025 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
21026 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
21027 (expand_STORE_LANES): New functions.
21028 * tree.h (build_array_type_nelts): Declare.
21029 * tree.c (build_array_type_nelts): New function.
21030 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
21031 (vect_model_load_cost): Likewise.
21032 (vect_store_lanes_supported, vect_load_lanes_supported)
21033 (vect_record_strided_load_vectors): Declare.
21034 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
21035 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
21036 (vect_transform_strided_load): Split out statement recording into...
21037 (vect_record_strided_load_vectors): ...this new function.
21038 * tree-vect-stmts.c (create_vector_array, read_vector_array)
21039 (write_vector_array, create_array_ref): New functions.
21040 (vect_model_store_cost): Add store_lanes_p argument.
21041 (vect_model_load_cost): Add load_lanes_p argument.
21042 (vectorizable_store): Try to use store-lanes functions for
21043 interleaved stores.
21044 (vectorizable_load): Likewise load-lanes and loads.
21045 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
21046 to vect_model_store_cost.
21047 (vect_build_slp_tree): Likewise vect_model_load_cost.
21049 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
21051 * hooks.h (hook_bool_mode_uhwi_false): Declare.
21052 * hooks.c (hook_bool_mode_uhwi_false): New function.
21053 * target.def (array_mode_supported_p): New hook.
21054 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
21055 * doc/tm.texi: Regenerate.
21056 * stor-layout.c (mode_for_array): New function.
21057 (layout_type): Use it.
21058 * config/arm/arm.c (arm_array_mode_supported_p): New function.
21059 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
21061 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
21064 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
21065 for -fstack-check if the size to allocate is negative.
21067 2011-05-02 Lawrence Crowl <crowl@google.com>
21069 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
21070 (timevar_cond_start): New for starting a timer only when it is not
21072 (timevar_cond_stop): New for stopping a timer when it was not already
21075 * timevar.c (timevar_stop): Enable start/stop timers to start again.
21076 (timevar_cond_start): New as above.
21077 (timevar_cond_stop): New as above.
21079 * timevar.def: Add start/stop timers for compiler phases,
21080 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
21081 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
21082 and TV_PHASE_FINALIZE.
21083 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
21084 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
21085 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
21086 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
21087 Make unused TV_OVERLOAD into a start/stop timer.
21089 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
21090 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
21091 to indicate that they are start/stop timers.
21093 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
21094 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
21095 Move initialization to do_compile.
21096 (do_compile): Add initialization from above.
21097 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
21099 * c-decl.c (c_write_global_declarations): Add start/stop of
21100 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
21102 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
21103 or TV_PARSE_INLINE, as appropriate.
21104 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
21105 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
21107 2011-05-02 Jason Merrill <jason@redhat.com>
21110 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
21112 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
21115 * c-decl.c (finish_decl): Only create a composite if the types are
21118 2011-05-02 Joseph Myers <joseph@codesourcery.com>
21120 * config/fr30/fr30-protos.h (Mmode): Don't define.
21121 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
21122 definition where used.
21123 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
21124 define. Expand definitions where used.
21125 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
21126 Expand definitions where used.
21127 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
21128 rx_function_arg, rx_function_arg_advance,
21129 rx_function_arg_boundary): Expand definitions of those macros.
21130 * config/v850/v850-protos.h (Mmode): Don't define. Expand
21131 definition where used.
21133 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
21135 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
21137 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
21138 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
21139 with *movv2sf_internal_rex64_avx.
21140 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
21141 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
21142 Use %v prefix in insn mnemonic to handle TARGET_AVX.
21143 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
21144 "vex" in "prefix" attribute calculation.
21145 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
21147 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
21150 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
21151 inputs match the output.
21153 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
21156 * config/m68k/m68k.c (m68k_expand_prologue): Set
21157 current_function_static_stack_size.
21159 2011-05-02 Jan Hubicka <jh@suse.cz>
21161 * lto-streamer.c (lto_streamer_cache_insert_1,
21162 lto_streamer_cache_lookup, lto_streamer_cache_create,
21163 lto_streamer_cache_delete): Use pointer map instead of hashtable.
21164 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
21166 2011-05-02 Joseph Myers <joseph@codesourcery.com>
21168 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
21169 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
21170 config/m68k/t-opts: New files.
21171 * config/m68k/m68k-tables.opt: New file (generated).
21172 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
21173 extra_options and m68k/t-opts to tmake_file.
21174 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
21175 (all_isas): Initialize using m68k-isas.def.
21176 (all_microarchs): Initialize using m68k-microarchs.def.
21177 (m68k_find_selection): Remove.
21178 (m68k_handle_option): Don't assert that global structures are in
21179 use. Use error_at. Access variables via opts pointer. Don't
21180 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
21181 directly for -m68020-40 and -m68020-60.
21182 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
21183 m68k_tune_entry here.
21184 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
21186 (m68k_library_id_string): Remove declaration.
21187 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
21188 (m68k_library_id_string): New Variable.
21189 (march=, mcpu=, mtune=): Use Enum and Var.
21191 2011-05-02 Richard Guenther <rguenther@suse.de>
21193 * varasm.c (output_constructor_regular_field): Compute zero-based
21194 index with double-ints. Make sure to ICE instead of producing
21196 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
21197 in asserts. Properly use a signed type.
21199 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
21201 * config/i386/sse.md (V): New mode iterator.
21202 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
21204 (V_256): Rename from AVX256MODE.
21205 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
21206 condition to all users.
21208 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
21209 condition to all users.
21210 (VF_128): Make V4SF mode unconditional.
21211 (VF_256): Rename from AVX256MODEF2P.
21212 (VI4F_128): Rename from SSEMODE4S.
21213 (VI8F_128): Rename from SSEMODE2D.
21214 (VI4F_256): Rename from AVX256MODE8P.
21215 (VI8F_256): Rename from AVX256MODE4P.
21216 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
21217 (ssescalarmodesuffix): Remove SF and DF modes.
21218 (SSEMODE124): Remove.
21219 (SSEMODE1248): Ditto.
21220 (SSEMODEF2P): Ditto.
21221 (AVXMODEF2P): Ditto.
21222 (AVXMODEFDP): Ditto.
21223 (AVXMODEFSP): Ditto.
21224 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
21226 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
21228 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
21229 xop_pcmov_<mode>256. Use V mode iterator.
21231 Adjust RTX patterns globally for renamed mode attributes.
21233 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21235 * haifa-sched.c (sched_emit_insn): Emit insn before first
21236 non-scheduled insn. Inform back-end about new insn. Add
21237 new insn to scheduled_insns list.
21239 2011-05-02 Richard Guenther <rguenther@suse.de>
21241 PR tree-optimization/48822
21242 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
21243 (process_scc): Indicate which iteration we start.
21245 2011-05-02 Jan Hubicka <jh@suse.cz>
21247 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
21248 (lto_section_overrun): New.
21249 * lto-section-out.c (append_block): Rename to ...
21250 (lto_append_block): ... this one; export.
21251 (lto_output_1_stream): Move lto lto-streamer.h
21252 (lto_output_data_stream): Update.
21253 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
21254 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
21257 2011-05-02 Richard Guenther <rguenther@suse.de>
21259 * tree.c (tree_code_counts): New global array.
21260 (record_node_allocation_statistics): Count individual tree codes.
21261 (dump_tree_statistics): Dump individual code stats.
21263 2011-05-01 Jan Hubicka <jh@suse.cz>
21265 * ipa-inline.c (caller_growth_limits): Fix thinko when
21266 looking for largest stack frame.
21267 * ipa-inline.h (dump_inline_summary): Declare.
21268 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
21270 (dump_inline_summary): Export.
21271 (debug_inline_summary): Declare as DEBUG_FUNCTION.
21273 2011-05-01 Anatoly Sokolov <aesok@post.ru>
21275 * reginfo.c (memory_move_cost): Change rclass argument type form
21276 'enum reg_class' to reg_class_t.
21277 * reload.h (memory_move_cost): Update prototype.
21278 * postreload.c reload_cse_simplify_set): Change type dclass var to
21280 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
21282 (ira_allocate_and_set_costs): Change aclass argument type form
21283 'enum reg_class' to reg_class_t.
21284 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
21285 Change aclass argument type to reg_class_t.
21286 (update_conflict_hard_reg_costs): Change type aclass and pref vars
21288 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
21289 memory_move_cost call.
21291 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
21292 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
21293 Change type tmp var to reg_class_t.
21295 2011-04-30 Jan Hubicka <jh@suse.cz>
21297 * ipa-inline.c (can_inline_edge_p): Disregard limits when
21298 inlining into function with flatten attribute.
21299 (want_inline_small_function_p): Be more realistic about inlining
21300 cold calls where callee size grows.
21302 2011-04-30 Jan Hubicka <jh@suse.cz>
21304 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
21307 2011-04-30 Anatoly Sokolov <aesok@post.ru>
21309 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
21310 PRINT_OPERAND_PUNCT_VALID_P): Remove.
21311 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
21312 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
21313 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
21314 (print_operand): Rename to...
21315 (sparc_print_operand): ...this. Make static. Adjust
21316 sparc_print_operand function call.
21317 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
21320 2011-04-30 Jan Hubicka <jh@suse.cz>
21322 PR middle-end/48752
21323 * ipa-inline.c (early_inliner): Disable when doing late
21324 addition of function.
21326 2011-04-30 Jakub Jelinek <jakub@redhat.com>
21328 * dwarf2out.c (get_address_mode): New inline.
21329 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
21330 if not dwarf_strict emit
21331 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
21332 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
21333 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
21334 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
21335 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
21336 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
21337 mem_loc_descriptor callers.
21338 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
21339 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
21340 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
21341 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
21342 (base_types): New variable.
21343 (get_base_type_offset, calc_base_type_die_sizes,
21344 base_type_for_mode, mark_base_types, base_type_cmp,
21345 move_marked_base_types): New functions.
21346 (calc_die_sizes): Assert that die_offset is 0 or equal to
21348 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
21349 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
21350 callers. If not dwarf_strict, call mem_loc_descriptor even for
21351 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
21352 (gen_subprogram_die): Don't give up on call site parameters
21353 with non-integral or large integral modes. Adjust
21354 mem_loc_descriptor callers.
21355 (prune_unused_types): Call prune_unused_types_mark on base_types
21357 (resolve_addr): Call mark_base_types.
21358 (dwarf2out_finish): Call move_marked_base_types.
21360 PR tree-optimization/48809
21361 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
21363 (gen_inbound_check): Don't compute index_expr - range_min in utype
21364 again, instead reuse SSA_NAME initialized in build_arrays.
21365 Remove two useless gsi_for_stmt calls.
21367 2011-04-29 Jeff Law <law@redhat.com>
21369 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
21371 2011-04-29 Martin Jambor <mjambor@suse.cz>
21373 * cgraph.h (cgraph_postorder): Remove declaration.
21374 * ipa-utils.h (ipa_free_postorder_info): Declare.
21375 (ipa_reverse_postorder): Likewise.
21376 * cgraphunit.c: Include ipa-utils.h.
21377 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
21378 * ipa-inline.c: Include ipa-utils.h.
21379 (ipa_inline): Update call to ipa_reverse_postorder.
21380 * ipa-pure-const.c (propagate_pure_const): Update call to
21381 ipa_reduced_postorder and ipa_print_order. Call
21382 ipa_free_postorder_info to clean up.
21383 (propagate_nothrow): Likewise.
21384 * ipa-reference.c (propagate): Removed a useless call to
21385 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
21386 and ipa_print_order. Call ipa_free_postorder_info to clean up.
21387 * ipa.c: Include ipa-utils.h.
21388 (ipa_profile): Update call to ipa_reverse_postorder.
21389 (cgraph_postorder): Moved to...
21390 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
21391 (ipa_utils_print_order): Renamed to ipa_print_order.
21392 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
21394 (ipa_free_postorder_info): New function.
21395 * passes.c: Include ipa-utils.h.
21396 (do_per_function_toporder): Update call to ipa_reverse_postorder.
21397 (ipa_write_summaries): Likewise.
21398 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
21399 (cgraphunit.o): Likewise.
21401 (ipa-inline.o): Likewise.
21403 2011-04-29 Jan Hubicka <jh@suse.cz>
21405 * ipa-inline.h (clause_t): Turn into unsigned int.
21406 * ipa-inline-analysis.c (add_clause): Do more simplification.
21407 (and_predicates): Shortcut more cases.
21408 (predicates_equal_p): Move forward; check that clauses are properly
21410 (or_predicates): Shortcut more cases.
21411 (edge_execution_predicate): Rewrite as...
21412 (set_cond_stmt_execution_predicate): ... this function; handle
21413 __builtin_constant_p.
21414 (set_switch_stmt_execution_predicate): New .
21415 (compute_bb_predicates): New.
21416 (will_be_nonconstant_predicate): Update TODO.
21417 (estimate_function_body_sizes): Use compute_bb_predicates
21418 and free them later, always try to estimate if stmt is constant.
21419 (estimate_time_after_inlining, estimate_size_after_inlining):
21420 Gracefully handle optimized out edges.
21421 (read_predicate): Fix off by one error.
21423 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
21425 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
21427 2011-04-27 Xinliang David Li <davidxl@google.com>
21429 * tree-profile.c (init_ic_make_global_vars): Set
21430 tls attribute on ic vars.
21431 * coverage.c (coverage_end_function): Initialize
21432 function_list with zero.
21434 2011-04-29 Richard Guenther <rguenther@suse.de>
21436 * builtins.c (fold_builtin_classify_type): Use integer_type_node
21437 for the type of the result.
21438 (fold_builtin_isascii): Likewise.
21439 (fold_builtin_toascii): Use integer_type_node where appropriate.
21440 (fold_builtin_logb): Likewise.
21441 (fold_builtin_frexp): Likewise.
21442 (fold_builtin_strstr): Likewise.
21443 (fold_builtin_strpbrk): Likewise.
21444 (fold_builtin_fputs): Likewise.
21445 (fold_builtin_sprintf): Likewise.
21446 (fold_builtin_snprintf): Likewise.
21447 (fold_builtin_printf): Likewise.
21448 (do_mpfr_remquo): Use a proper type for the assigned constant.
21449 (do_mpfr_lgamma_r): Likewise.
21450 * dwarf2out.c (resolve_one_addr): Use size_int.
21451 * except.c (init_eh): Likewise.
21452 (assign_filter_values): Use integer_type_node for filter values.
21453 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
21455 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
21456 for EH region numbers.
21457 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
21458 for the shift amount.
21460 2011-04-29 Richard Guenther <rguenther@suse.de>
21462 * expr.h (expand_shift): Rename to ...
21463 (expand_variable_shift): ... this.
21464 (expand_shift): Take a constant shift amount.
21465 * expmed.c (expand_shift): Rename to ...
21466 (expand_variable_shift): ... this.
21467 (expand_shift): New wrapper around expand_variable_shift.
21468 * expr.c (convert_move, emit_group_load_1, emit_group_store,
21469 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
21470 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
21471 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
21472 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
21473 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
21474 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
21475 emit_store_flag_1, emit_store_flag): Likewise.
21476 * builtins.c (expand_builtin_signbit): Likewise.
21477 * calls.c (load_register_parameters): Likewise.
21478 * function.c (assign_parm_setup_block): Likewise.
21479 * lower-subreg.c (resolve_shift_zext): Likewise.
21480 * optabs.c (widen_bswap, expand_abs_nojump,
21481 expand_one_cmpl_abs_nojump, expand_float): Likewise.
21482 * spu/spu.c (spu_expand_extv): Likewise.
21483 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
21485 2011-04-29 Richard Guenther <rguenther@suse.de>
21487 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
21488 for the remapped region number.
21489 * predict.c (build_predict_expr): Use integer_type_node for the
21491 * fold-const.c (fold_binary_loc): Use integer_type_node for
21492 the shift amount. Use a proper type for the PLUS_EXPR operand.
21494 2011-04-29 Michael Matz <matz@suse.de>
21496 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
21497 other trees that just builtins.
21498 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
21500 2011-04-29 Richard Guenther <rguenther@suse.de>
21502 * tree-nested.c (get_trampoline_type): Use size_int.
21503 (get_nl_goto_field): Likewise.
21504 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
21506 (lower_eh_constructs_2): Likewise.
21507 (lower_resx): Likewise.
21508 (lower_eh_dispatch): Likewise.
21509 * tree-mudflap.c (mf_build_string): Use size_int.
21510 (mudflap_register_call): Use integer_type_node for the flag.
21511 (mudflap_enqueue_constant): Use size_int.
21512 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
21513 instead of rebuilding it.
21515 2011-04-29 Richard Guenther <rguenther@suse.de>
21517 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
21518 Handle OBJ_TYPE_REF.
21519 (find_func_aliases_for_call): Use it more consistently.
21521 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
21523 * haifa-sched.c (last_nondebug_scheduled_insn): New.
21524 (rank_for_schedule): Use it.
21525 (schedule_block): Set it.
21527 2011-04-28 David Li <davidxl@google.com>
21529 * tree.c (crc32_string): Use crc32_byte.
21530 (crc32_byte): New function.
21531 * tree.h (crc32_byte): New function.
21532 * gcov.c (read_graph_file): Handle new cfg_cksum.
21533 (read_count_file): Ditto.
21534 * profile.c (instrument_values): Ditto.
21535 (get_exec_counts): Ditto.
21536 (read_profile_edge_counts): Ditto.
21537 (compute_branch_probabilities): Ditto.
21538 (compute_value_histograms): Ditto.
21539 (branch_prob): Ditto.
21540 (end_branch_prob): Ditto.
21541 * coverage.c (read_counts_file): Ditto.
21542 (get_coverage_counts): Ditto.
21543 (tree_coverage_counter_addr): Ditto.
21544 (coverage_checksum_string): Ditto.
21545 (coverage_begin_output): Ditto.
21546 (coverage_end_function): Ditto.
21547 (build_fn_info_type): Ditto.
21548 (build_fn_info_value): Ditto.
21549 * libgcov.c (gcov_exit): Ditto.
21550 * gcov-dump.c (tag_function): Ditto.
21551 (compute_checksum): Remove.
21553 2011-04-29 Alan Modra <amodra@gmail.com>
21555 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
21556 unspec plus offset. Tidy macho code.
21558 2011-04-29 Martin Jambor <mjambor@suse.cz>
21560 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
21561 node instead of a decl. Update all callers.
21562 * cgraph.h: Update declaration.
21564 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
21566 PR tree-optimization/48765
21567 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
21568 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
21569 to indicate if loop aware SLP is being used. Scan the statements
21570 and update the vectorization factor according to the type of
21571 vectorization before statement analysis.
21572 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
21573 pass it to vect_analyze_loop_operations.
21574 (vectorizable_reduction): Set number of copies to 1 in case of pure
21576 * tree-vect-stmts.c (vectorizable_conversion,
21577 vectorizable_assignment, vectorizable_shift,
21578 vectorizable_operation, vectorizable_type_demotion,
21579 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
21581 (vectorizable_condition): Move the check that it is not SLP
21582 vectorization before the number of copies check.
21583 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
21584 to vectorize the loop using SLP.
21586 2011-04-28 Jakub Jelinek <jakub@redhat.com>
21588 PR middle-end/48597
21589 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
21592 2011-04-28 Joseph Myers <joseph@codesourcery.com>
21594 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
21595 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
21596 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
21597 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
21598 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
21600 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
21601 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
21602 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
21603 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
21604 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
21605 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
21607 * config/i386/linux.h (REG_NAME): Don't define.
21608 * config/i386/linux64.h (REG_NAME): Don't define.
21609 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
21610 Undefine before defining.
21612 2011-04-28 Jan Hubicka <jh@suse.cz>
21614 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
21615 nonconstant_names array.
21616 (estimate_function_body_sizes): Build nonconstant_names array; handle
21617 BUILT_IN_CONSTANT_P.
21619 2011-04-28 Richard Guenther <rguenther@suse.de>
21623 2011-04-28 Richard Guenther <rguenther@suse.de>
21625 * tree-ssa-structalias.c (solve_constraints): Build succ graph
21626 as late as possible.
21628 2011-04-28 Richard Guenther <rguenther@suse.de>
21630 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
21631 (debug_constraint): Do it here.
21632 (dump_constraints): And here.
21633 (rewrite_constraints): And here.
21634 (dump_constraint_edge): Remove.
21635 (dump_constraint_graph): Rewrite to produce DOT output.
21636 (solve_constraints): Build succ graph as late as possible.
21637 Dump constraint graphs before and after solving.
21639 2011-04-28 Richard Guenther <rguenther@suse.de>
21641 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
21642 New function split out from ...
21643 (find_func_aliases): ... here. Call it.
21644 (find_func_aliases_for_call): Likewise.
21646 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
21648 * internal-fn.h (internal_fn_name_array): Declare.
21649 (internal_fn_flags_array): Likewise.
21651 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
21653 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
21654 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
21656 (ssemodefsuffix): Remove.
21657 (ssevecmodesuffix): New mode attribute.
21658 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
21659 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
21660 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
21661 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
21662 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
21663 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
21664 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
21665 ssemodesuffix mode attribute.
21666 (float splitters): Use ssevecmodesuffix mode attribute.
21667 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
21668 (sseinsmode): Rename from avxvecmode.
21669 (avxsizesuffix): Rename from avxmodesuffix.
21670 (sseintvecmode): Rename from avxpermvecmode.
21671 (ssedoublevecmode): Rename from ssedoublesizemode.
21672 (ssehalfvecmode): Rename from avxhalfvecmode.
21673 (ssescalarmode): Rename from avxscalarmode.
21674 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
21675 templates for ssemodesuffix mode attribute.
21676 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
21679 Adjust RTX patterns globally for renamed mode attributes.
21681 2011-04-27 Jan Hubcika <jh@suse.cz>
21683 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
21684 * ipa-inline-analysis.c: Include alloc-pool.h.
21685 (edge_predicate_pool): New.
21686 (trye_predicate_p): New function
21687 (false_predicate_p): New function.
21688 (add_clause): Sanity check that false clauses are "optimized";
21689 never add clauses to predicate that is already known to be false.
21690 (and_predicate): Use flase_predicate_p.
21691 (evaulate_predicate): Rename to ...
21692 (evaluate_predicate): ... this one; update all callers; assert
21693 that false is not listed among possible truths.
21694 (dump_predicate): Use true_predicate_p.
21695 (account_size_time): Use false_predicate_p.
21696 (evaulate_conditions_for_edge): Rename to ...
21697 (evaluate_conditions_for_edge) ... this one.
21698 (edge_set_predicate): New function.
21699 (inline_edge_duplication_hook): Duplicate edge predicates.
21700 (inline_edge_removal_hook): Free edge predicates.
21701 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
21702 (dump_inline_summary): Update.
21703 (estimate_function_body_sizes): Set edge predicates.
21704 (estimate_calls_size_and_time): Handle predicates.
21705 (estimate_callee_size_and_time): Update.
21706 (remap_predicate): Add toplev_predicate; update comment.
21707 (remap_edge_predicates): New function.
21708 (inline_merge_summary): Compute toplev predicate; update.
21709 (read_predicate): New function.
21710 (read_inline_edge_summary): Use it.
21711 (inline_read_section): Likewise.
21712 (write_predicate): New function.
21713 (write_inline_edge_summary): Use it.
21714 (inline_write_summary): Likewise.
21715 (inline_free_summary): Free alloc pool and edge summary vec.
21717 2011-04-27 Richard Guenther <rguenther@suse.de>
21719 * tree-ssa-structalias.c (changed_count): Remove.
21720 (changed): Use a bitmap.
21721 (unify_nodes): Adjust.
21722 (do_sd_constraint): Likewise.
21723 (do_ds_constraint): Likewise.
21724 (do_complex_constraint): Likewise.
21725 (solve_graph): Likewise.
21727 2011-04-27 Jan Hubicka <jh@suse.cz>
21729 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
21731 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
21733 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
21734 (avx_vperm2f128_*_operand): Ditto.
21735 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
21736 Use avx_vpermilp_parallel in insn condition.
21737 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
21738 Use avx_vperm2f128_parallel in insn condition.
21740 2011-04-27 Richard Guenther <rguenther@suse.de>
21742 * Makefile.in (tree-ssa-structalias.o): Remove
21743 gt-tree-ssa-structalias.h dependency.
21744 (GTFILES): Remove tree-ssa-structalias.c.
21745 * tree.c (allocate_decl_uid): New function.
21746 (make_node_stat): Use it.
21747 (copy_node_stat): Likewise.
21748 * tree.h (allocate_decl_uid): Declare.
21749 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
21750 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
21751 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
21752 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
21753 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
21754 (struct heapvar_map): Likewise.
21755 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
21756 heapvar_insert): Likewise.
21757 (make_heapvar_for): Rename to ...
21758 (make_heapvar): ... this. Simplify.
21759 (fake_var_decl_obstack): New global var.
21760 (build_fake_var_decl): New function.
21761 (make_constraint_from_heapvar): Adjust.
21762 (handle_lhs_call): Likewise.
21763 (create_function_info_for): Likewise.
21764 (intra_create_variable_infos): Likewise.
21765 (init_alias_vars): Allocate fake_var_decl_obstack.
21766 (init_alias_heapvars, delete_alias_heapvars): Remove.
21767 (compute_points_to_sets): Do not call init_alias_heapvars.
21768 (ipa_pta_execute): Likewise.
21769 (delete_points_to_sets): Free fake_var_decl_obstack.
21771 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21773 * config/spu/divmovti4.c (union qword_UTItype): New data type.
21774 (si_from_UTItype, si_to_UTItype): New functions.
21775 (__udivmodti4): Use them to implement type-punning.
21776 * config/spu/multi3.c (union qword_TItype): New data type.
21777 (si_from_TItype, si_to_TItype): New functions.
21778 (__multi3): Use them to implement type-punning.
21780 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21782 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
21784 2011-04-27 Jan Hubicka <jh@suse.cz>
21786 * ipa-prop.c (function_insertion_hook_holder): New holder.
21787 (ipa_add_new_function): New function.
21788 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
21789 Register/deregister holder.
21791 2011-04-27 Richard Guenther <rguenther@suse.de>
21793 PR tree-optimization/48772
21794 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
21796 2011-04-27 Richard Guenther <rguenther@suse.de>
21798 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
21799 TARGET_MEM_REF handling.
21801 2011-04-27 Nick Clifton <nickc@redhat.com>
21803 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
21804 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
21805 (REG_CLASS_NAMES): Likewise.
21806 (REG_CLASS_CONTENTS): Likewise.
21807 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
21808 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
21809 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
21810 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
21811 (EVEN_REGS): New macro. Alias for QUAD_REGS.
21812 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
21813 duplicate register classes.
21814 (frv_class_likely_spilled_p): Likewise.
21815 (frv_register_move_cost): Likewise.
21817 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
21818 end of the regno_reg_class array.
21820 2011-04-27 Jakub Jelinek <jakub@redhat.com>
21823 * c-typeck.c (build_binary_op): Don't wrap arguments if
21824 int_operands is true.
21826 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
21829 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
21830 targetm.calls.must_pass_in_stack for void type.
21832 2011-04-26 Jan Hubicka <jh@suse.cz>
21834 * cgraphbuild.c (build_cgraph_edges): Update call
21835 of cgraph_create_edge and cgraph_create_indirect_edge.
21836 * cgraph.c (cgraph_create_edge_including_clones,
21837 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
21838 cgraph_update_edges_for_call_stmt_node): Do not take nest
21839 argument; do not initialize call_stmt_size/time.
21840 (dump_cgraph_node): Do not dump nest.
21841 (cgraph_clone_edge): Do not take loop_nest argument;
21842 do not propagate it; do not clone call_stmt_size/time.
21843 (cgraph_clone_node): Likewise.
21844 (cgraph_create_virtual_clone): Update.
21845 * cgraph.h (struct cgraph_edge): Remove
21846 call_stmt_size/call_stmt_time/loop_nest.
21847 (cgraph_create_edge, cgraph_create_indirect_edge,
21848 cgraph_create_edge_including_clones, cgraph_clone_node): Update
21850 * tree-emutls.c (gen_emutls_addr): Update.
21851 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
21852 loop_nest; handle indirect calls, too.
21853 (clone_inlined_nodes): Do not care about updating inline summaries.
21854 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
21855 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
21856 stream call_stmt_size/call_stmt_time/loop_nest.
21857 * ipa-inline.c (edge_badness): Update.
21858 (ipa_inline): dump summaries after inlining.
21859 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
21861 (inline_edge_summary): New function.
21862 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
21863 (inline_edge_removal_hook): Handle edge summaries.
21864 (inline_edge_duplication_hook): New hook.
21865 (inline_summary_alloc): Alloc hooks.
21866 (initialize_growth_caches): Do not register removal hooks.
21867 (free_growth_caches); Do not free removal hook.
21868 (dump_inline_edge_summary): New function.
21869 (dump_inline_summary): Use it.
21870 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
21871 (inline_update_callee_summaries): New function.
21872 (inline_merge_summary): Use it.
21873 (do_estimate_edge_time, do_estimate_edge_growth): Update.
21874 (read_inline_edge_summary): New function.
21875 (inline_read_section): Use it.
21876 (write_inline_edge_summary): New function.
21877 (inline_write_summary): Use it.
21878 (inline_free_summary): Free edge new holders.
21879 * tree-inline.c (copy_bb): Update.
21881 2011-04-26 Jason Merrill <jason@redhat.com>
21883 * tree-eh.c (lower_try_finally_switch): Create the label along with
21884 the CASE_LABEL_EXPR.
21886 2011-04-26 David S. Miller <davem@davemloft.net>
21887 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21889 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
21890 * configure: Regenerate.
21892 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
21895 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
21897 (VEC_reduc): New code iterator and splitters for vector reduction.
21898 (VEC_reduc_name): Ditto.
21899 (VEC_reduc_rtx): Ditto.
21900 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
21901 (reduc_<VEC_reduc_name>_v4sf): Ditto.
21903 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
21904 support for extracting SF on VSX.
21906 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
21907 generating xscvspdp.
21908 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
21909 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
21910 double add, minimum, maximum vector reduction.
21911 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
21912 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
21913 optimize double vector reduction.
21914 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
21916 2011-04-26 Joseph Myers <joseph@codesourcery.com>
21918 * config/fr30/fr30.h (inhibit_libc): Don't define.
21919 * config/m32r/m32r-protos.h: Correct comment.
21920 * config/v850/v850.h (GHS_default_section_names,
21921 GHS_current_section_names): Use tree, not union tree_node *.
21923 2011-04-26 Xinliang David Li <davidxl@google.com>
21925 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
21926 * c-family/c-opts.c (c_common_handle_option): Set
21927 warn_maybe_uninitialized.
21928 * opts.c (common_handle_option): Ditto.
21929 * common.opt: New option.
21930 * tree-ssa.c (warn_uninit): Add one more parameter.
21931 (warn_uninitialized_var): Pass warning code.
21932 * tree-flow.h: Interface change.
21934 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21936 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
21937 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
21938 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
21940 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21942 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
21943 * config/mips/mips.opt (mmips-tfile): Remove.
21945 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
21946 mips-tdump reference to ...
21947 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
21948 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
21949 reference by Tru64 UNIX.
21951 2011-04-26 Jakub Jelinek <jakub@redhat.com>
21954 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
21955 is error_mark_node, set value to NULL.
21957 PR tree-optimization/48734
21958 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
21959 if return value from maybe_fold_*_comparsions isn't something
21960 the code is prepared to handle.
21962 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
21964 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
21966 (ext_QIreg_nomode_operands): Remove.
21967 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
21971 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
21973 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
21975 2011-04-26 Richard Guenther <rguenther@suse.de>
21977 * c-typeck.c (build_unary_op): Do not expand array-refs via
21978 pointer arithmetic. Only adjust qualifiers for function types.
21980 2011-04-26 Richard Guenther <rguenther@suse.de>
21982 PR middle-end/48694
21983 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
21984 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
21985 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
21986 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
21988 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
21990 * doc/extend.texi: Document __underlying_type.
21992 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
21994 * config/rs6000/titan.md (automata_option "progress"): Remove.
21996 2011-04-25 Jeff Law <law@redhat.com>
21998 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
22000 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
22002 * system.h (ENUM_BITFIELD): Remove.
22004 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
22005 Eric Botcazou <ebotcazou@adacore.com>
22007 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
22008 for STORE_FLAG_VALUE==-1 case.
22010 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
22013 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
22014 LEGITIMATE_PIC_OPERAND_P.
22016 2011-04-24 Jan Hubicka <jh@suse.cz>
22018 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
22020 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
22021 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
22022 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
22023 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
22024 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
22025 Sanity check predicate length.
22026 (remap_predicate): Likewise; sanity check jump functions.
22027 (inline_read_section, inline_write_summary): Sanity check
22030 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
22033 * doc/extend.texi (Type Traits): Document __is_standard_layout,
22034 __is_literal_type, and __is_trivial; update throughout about
22035 possibly cv-qualified void types.
22037 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
22039 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
22040 testsuite and make it version agnostic.
22042 2011-04-22 Jan Hubicka <jh@suse.cz>
22044 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
22046 2011-04-23 Jakub Jelinek <jakub@redhat.com>
22049 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
22050 to VOID_TYPE even around MODIFY_EXPR.
22052 2011-04-22 Mike Stump <mikestump@comcast.net>
22054 * gensupport.c (read_md_rtx): Fix typo in comment.
22055 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
22058 2011-04-22 Jan Hubicka <jh@suse.cz>
22060 * gengtype.c (open_base_files): Add ipa-inline.h include.
22061 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
22062 ipa-prop.c; update all uses.
22063 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
22064 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
22065 merge summary of inlined function into former caller.
22066 * ipa-inline.c (max_benefit): Remove.
22067 (edge_badness): Compensate for removal of benefits.
22068 (update_caller_keys): Use
22069 reset_node_growth_cache/reset_edge_growth_cache.
22070 (update_callee_keys): Likewise.
22071 (update_all_callee_keys): Likewise.
22072 (inline_small_functions): Do not collect max_benefit; do not reset
22073 estimated_growth; call free_growth_caches and initialize_growth_caches.
22074 * ipa-inline.h (struct condition, type clause_t, struct predicate,
22075 struct size_time_entry): New structures.
22076 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
22077 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
22078 and estimated_growth.
22079 (edge_growth_cache_entry): New structure.
22080 (node_growth_cache, edge_growth_cache): New global vars.
22081 (estimate_growth): Turn into inline.
22082 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
22083 initialize_growth_caches, free_growth_caches): Declare.
22084 (estimate_edge_growth): Rewrite.
22085 (estimate_edge_time): Implement as inline cache lookup.
22086 (reset_node_growth_cache, reset_edge_growth_cache): New inline
22088 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
22089 (NUM_CONDITIONS): New constant.
22090 (predicate_conditions): New enum.
22091 (IS_NOT_CONSTANT): New constant.
22092 (edge_removal_hook_holder): New var.
22093 (node_growth_cache, edge_growth_cache): New global vars.
22094 (true_predicate, single_cond_predicate, false_predicate,
22095 not_inlined_predicate, add_condition, add_clause, and_predicates,
22096 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
22097 dump_clause, dump_predicate, account_size_time,
22098 evaulate_conditions_for_edge): New functions.
22099 (inline_summary_alloc): Move to heap.
22100 (inline_node_removal_hook): Clear condition and entry vectors.
22101 (inline_edge_removal_hook): New function.
22102 (initialize_growth_caches, free_growth_caches): New function.
22103 (dump_inline_summary): Update.
22104 (edge_execution_predicate): New function.
22105 (will_be_nonconstant_predicate): New function.
22106 (estimate_function_body_sizes): Compute BB and constantness predicates.
22107 (compute_inline_parameters): Do not clear estimated_growth.
22108 (estimate_edge_size_and_time): New function.
22109 (estimate_calls_size_and_time): New function.
22110 (estimate_callee_size_and_time): New function.
22111 (remap_predicate): New function.
22112 (inline_merge_summary): New function.
22113 (do_estimate_edge_time): New function based on...
22114 (estimate_edge_time): ... this one.
22115 (do_estimate_edge_growth): New function.
22116 (do_estimate_growth): New function based on....
22117 (estimate_growth): ... this one.
22118 (inline_analyze_function): Analyze after deciding on jump functions.
22119 (inline_read_section): New function.
22120 (inline_read_summary): Use it.
22121 (inline_write_summary): Write all the new data.
22122 * ipa-prop.c (ipa_get_param_decl_index): Export.
22123 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
22124 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
22126 (ipa_get_lattice): Move here from ipa-cp.c
22127 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
22128 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
22129 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
22130 cgraph_edge_inlinable_p): Remove.
22131 * cgraphunit.c: Include ipainline.h
22132 (cgraph_process_new_functions): Update call of
22133 compute_inline_parameters.
22135 2011-04-22 Richard Guenther <rguenther@suse.de>
22137 * tree.c (build_int_cst): Properly create canonicalized integer
22139 (build_int_cst_type): Remove scary comments.
22141 2011-04-22 Xinliang David Li <davidxl@google.com>
22143 * toplev.c (process_options): Enable -Werror=coverage-mismatch
22144 by default when -Wno-error is not specified.
22145 * opts-global.c (decode_options): Remove call to
22146 control_warning_options.
22148 2011-04-22 Jakub Jelinek <jakub@redhat.com>
22150 PR tree-optimization/48717
22151 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
22152 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
22154 2011-04-22 Joseph Myers <joseph@codesourcery.com>
22156 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
22157 definition where used.
22159 2011-04-22 Jakub Jelinek <jakub@redhat.com>
22162 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
22163 TREE_STATIC variables declared inside of some OpenMP construct.
22165 2011-04-22 Martin Jambor <mjambor@suse.cz>
22167 PR middle-end/48585
22168 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
22170 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
22173 * c-typeck.c (pop_init_level): Do not warn about initializing
22176 2011-04-22 Alan Modra <amodra@gmail.com>
22178 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
22179 when returning call_cookie.
22180 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
22181 pointers, to functions with no more vector args than the current
22182 function, and some non-local calls for ABI_V4.
22183 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
22184 sibcall_nonlocal_aix64): Combine to ..
22185 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
22186 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
22187 (sibcall_value_nonlocal_aix<mode>): ..likewise.
22188 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
22189 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
22191 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
22192 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
22193 sibcall_value_symbolic_64): Delete.
22195 2011-04-21 Xinliang David Li <davidxl@google.com>
22197 * cgraph.h: Remove pid.
22198 * cgraph.c: Remove pid.
22199 * value-prof.c (init_node_map): New function.
22200 (del_node_map): New function.
22201 (find_func_by_funcdef_no): New function.
22202 (gimple_ic_transform): Call new function.
22203 * cgraphunit.c (cgraph_finalize_function): Remove pid.
22204 * function.c (get_last_funcdef_no): New function.
22205 * function.h (get_last_funcdef_no): New function.
22206 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
22207 to libgcov function.
22208 (tree-profiling): Call node map init and delete function.
22210 2011-04-21 Ian Lance Taylor <iant@google.com>
22212 * godump.c (go_format_type): Use exported Go name for anonymous
22215 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
22217 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
22218 Call builtin_function_type_list instead of builtin_function_type.
22219 (UNARY, BINARY, TRINARY, QUAD): Likewise.
22221 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
22223 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
22224 build_function_type_list instead of build_function_type.
22225 Delete variable `endlink'.
22227 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
22229 * config/s390/s390.c (s390_init_builtins): Call
22230 build_function_type_list instead of build_function_type.
22232 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
22234 * config/ia64/ia64.c (ia64_init_builtins): Call
22235 build_function_type_list instead of builtin_function_type.
22237 2011-04-21 Easwaran Raman <eraman@google.com>
22239 * cfgexpand.c (stack_var): Remove OFFSET...
22240 (add_stack_var): ...and its reference here...
22241 (expand_stack_vars): ...and here.
22242 (stack_var_cmp): Sort by descending order of size.
22243 (partition_stack_vars): Change heuristic.
22244 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
22245 (dump_stack_var_partition): Add newline after each partition.
22247 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
22248 Jeff Law <law@redhat.com>
22250 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
22251 * gengtype.c (matching_file_name_substitute): Likewise.
22253 2011-04-21 Richard Guenther <rguenther@suse.de>
22256 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
22258 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
22260 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
22262 2011-04-21 Richard Guenther <rguenther@suse.de>
22264 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
22267 2011-04-21 Richard Guenther <rguenther@suse.de>
22269 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
22270 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
22271 Use DECL_P, not SSA_VAR_P.
22272 (ptr_derefs_may_alias_p): Likewise.
22273 (ptr_deref_may_alias_ref_p_1): Likewise.
22274 (decl_refs_may_alias_p): Likewise.
22275 (refs_may_alias_p_1): Likewise.
22276 (ref_maybe_used_by_call_p_1): Likewise.
22277 (call_may_clobber_ref_p_1): Likewise.
22278 (indirect_ref_may_alias_decl_p): Assume indirect refrences
22279 are either MEM_REF or TARGET_MEM_REF.
22280 (indirect_refs_may_alias_p): Likewise.
22281 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
22282 for MEM_EXPR of indirect calls.
22284 2011-04-21 Tristan Gingold <gingold@adacore.com>
22286 * vmsdbgout.c (write_srccorr): Compute file length from the string.
22287 (dst_file_info_struct): Remove flen field.
22288 (lookup_filename): Remove code that set flen field.
22290 2011-04-21 Tristan Gingold <gingold@adacore.com>
22292 * config/ia64/ia64.c (ia64_start_function): Add a guard.
22294 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
22297 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
22298 vec_extract and vec_concat for non-SSE4_1 targets.
22300 2011-04-21 Richard Guenther <rguenther@suse.de>
22302 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
22305 2011-04-21 Joseph Myers <joseph@codesourcery.com>
22307 * config/i386/cygming.h (union tree_node, TREE): Don't define or
22309 (FILE): Don't undefine.
22311 2011-04-21 Joseph Myers <joseph@codesourcery.com>
22313 * config/alpha/alpha.c (struct machine_function): Use rtx, not
22315 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
22317 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
22318 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
22319 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
22321 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
22322 definitions where used.
22323 * config/microblaze/microblaze.h (struct microblaze_args): Use
22324 rtx, not struct rtx_def *.
22325 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
22327 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
22328 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
22329 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
22330 not struct rtx_def *.
22331 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
22333 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
22335 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
22337 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
22339 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
22340 operand_equal_p to compare DR_BASE_ADDRESSes.
22341 (vect_check_interleaving): Likewise.
22343 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
22346 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
22347 for all Neon struct constants.
22349 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
22351 * target.def (legitimate_constant_p): New hook.
22352 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
22353 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
22354 * doc/tm.texi: Regenerate.
22355 * hooks.h (hook_bool_mode_rtx_true): Declare.
22356 * hooks.c (hook_bool_mode_rtx_true): Define.
22357 * system.h (LEGITIMATE_CONSTANT_P): Poison.
22358 * calls.c (precompute_register_parameters): Replace uses of
22359 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
22360 (emit_library_call_value_1): Likewise.
22361 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
22362 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
22363 * ira-costs.c (scan_one_insn): Likewise.
22364 * recog.c (general_operand, immediate_operand): Likewise.
22365 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
22366 * reload1.c (init_eliminable_invariants): Likewise.
22368 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
22370 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
22371 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
22373 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22374 * config/alpha/predicates.md (input_operand): Update call to
22375 alpha_legitimate_constant_p.
22377 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
22378 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
22379 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
22380 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22381 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
22382 (arm_legitimate_constant_p): New functions.
22383 (arm_cannot_force_const_mem): Make static.
22385 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
22387 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
22388 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
22389 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
22390 instead of bfin_legitimate_constant_p.
22391 (bfin_legitimate_constant_p): Make static. Add a mode argument.
22392 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22394 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
22396 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
22398 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
22399 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
22400 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22401 (frv_legitimate_constant_p): Make static. Add a mode argument.
22403 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
22404 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
22405 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
22407 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
22408 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
22409 * config/i386/i386.c (legitimate_constant_p): Rename to...
22410 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
22412 (ix86_cannot_force_const_mem): Update accordingly.
22413 (ix86_legitimate_address_p): Likewise.
22414 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22415 * config/i386/i386.md: Update commentary.
22417 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
22418 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
22419 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22420 (ia64_legitimate_constant_p): Make static. Add a mode argument.
22422 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
22424 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
22425 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
22426 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22427 (lm32_legitimate_constant_p): Make static. Add a mode argument.
22429 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
22430 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
22431 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
22433 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
22434 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22435 (m32r_legitimate_constant_p): New function.
22437 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
22438 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
22439 LEGITIMATE_CONSTANT_P.
22440 (LEGITIMATE_CONSTANT_P): Delete.
22441 * config/m68k/m68k.c (m68k_expand_prologue): Call
22442 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
22443 (m68k_legitimate_constant_p): New function.
22444 * config/m68k/m68k.md: Update comments.
22446 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
22447 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22448 (mcore_legitimate_constant_p): New function.
22450 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
22451 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
22452 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
22453 Add a mode argument.
22454 (mep_legitimate_address): Update accordingly.
22455 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22457 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
22459 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
22460 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
22461 static. Check OP's mode for VOIDmode.
22462 (microblaze_legitimate_constant_p): New function.
22463 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22465 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
22466 * config/mips/mips.c (mips_legitimate_constant_p): New function.
22467 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
22468 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22469 * config/mips/predicates.md: Update comments.
22471 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
22472 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
22473 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22474 (mmix_legitimate_constant_p): Make static, return a bool, and take
22476 (mmix_print_operand_address): Update accordingly.
22478 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
22480 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
22481 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
22482 static. Add a mode argument.
22483 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22485 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
22487 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
22488 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22489 (pa_legitimate_constant_p): New function.
22491 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
22493 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
22494 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22495 (pdp11_legitimate_constant_p): New function.
22497 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
22498 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22499 (rs6000_legitimate_constant_p): New function.
22501 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
22502 (rx_legitimate_constant_p): ...this.
22503 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
22504 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
22505 (rx_legitimate_constant_p): ...this.
22506 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22507 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
22509 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
22510 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
22511 * config/s390/s390.c (legitimate_constant_p): Rename to...
22512 (s390_legitimate_constant_p): ...this. Make static, return a bool,
22513 and add a mode argument.
22514 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22516 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
22518 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
22519 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22520 (sh_legitimate_constant_p): New function.
22522 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
22523 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
22524 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22525 (legitimate_constant_p): Rename to...
22526 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
22528 (constant_address_p): Update accordingly.
22530 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
22531 argument and return a bool.
22532 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
22533 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22534 (spu_legitimate_constant_p): Add a mode argument and return a bool.
22535 (spu_rtx_costs): Update accordingly.
22536 * config/spu/predicates.md (vec_imm_operand): Likewise.
22538 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
22540 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
22541 * config/v850/v850.c (v850_legitimate_constant_p): New function.
22542 (TARGET_LEGITIMATE_CONSTANT_P): Define.
22544 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
22545 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
22546 * config/vax/vax.c (legitimate_constant_p): Likewise.
22548 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
22549 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
22550 (xtensa_legitimate_constant_p): New function.
22552 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
22554 * target.def (cannot_force_const_mem): Add a mode argument.
22555 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
22556 * doc/tm.texi: Regenerate.
22557 * hooks.h (hook_bool_mode_rtx_false): Declare.
22558 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
22559 (hook_bool_mode_const_rtx_true): Likewise.
22560 (hook_bool_mode_rtx_false): New function.
22561 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
22562 to be non-VOID. Update call to cannot_force_const_mem.
22563 (find_reloads): Update accordingly.
22564 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
22565 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
22567 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
22568 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
22569 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
22570 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
22571 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
22572 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
22573 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
22574 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
22575 (m68k_cannot_force_const_mem): ...this new function.
22576 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
22578 (mips_const_insns, mips_legitimize_const_move): Update calls.
22579 (mips_secondary_reload_class): Likewise.
22580 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
22581 (pa_cannot_force_const_mem): ...this new function.
22582 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
22583 (rs6000_cannot_force_const_mem): ...this new function.
22584 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
22586 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
22587 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
22589 (xtensa_cannot_force_const_mem): ...this new function.
22591 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
22593 * config/mips/mips.c (mips16_build_function_stub): Call
22594 build_function_type_list instead of build_function_type.
22595 (mips16_build_call_stub): Likewise.
22597 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
22599 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
22600 instead of build_function_type.
22602 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
22604 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
22605 instead of build_function_type.
22607 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
22610 * config/i386/i386.md (insv): Change operand 0 constraint to
22611 "register_operand". Change operand 1 and 2 constraint to
22612 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
22613 * config/i386/sse.md (sse4_1_pinsrb): Export.
22614 (sse2_pinsrw): Ditto.
22615 (sse4_1_pinsrd): Ditto.
22616 (sse4_1_pinsrq): Ditto.
22617 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
22618 * config/i386/i386.c (ix86_expand_pinsr): New.
22620 2011-04-20 Easwaran Raman <eraman@google.com>
22622 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
22623 containing union type only with -fstrict-aliasing.
22625 2011-04-20 Jim Meyering <meyering@redhat.com>
22627 Remove useless if-before-free tests.
22628 * calls.c (expand_call, save_area): Likewise.
22629 * cfgcleanup.c (try_forward_edges): Likewise.
22630 * collect2.c (collect_execute): Likewise.
22631 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
22632 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
22633 * coverage.c (coverage_checksum_string): Likewise.
22634 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
22635 * cselib.c (cselib_init): Likewise.
22636 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
22637 (df_set_clean_cfg): Likewise.
22638 * function.c (free_after_compilation): Likewise.
22639 * gcc.c (do_spec_1, main): Likewise.
22640 * gcov.c (create_file_names): Likewise.
22641 * gensupport.c (identify_predicable_attribute): Likewise.
22642 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
22643 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
22644 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
22645 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
22646 * ipa-pure-const.c (local_pure_const): Likewise.
22647 * ipa-reference.c (propagate): Likewise.
22648 * ira-costs.c (free_ira_costs): Likewise.
22649 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
22650 * matrix-reorg.c (mat_free): Likewise.
22651 * prefix.c (get_key_value): Likewise.
22652 * profile.c (compute_value_histograms): Likewise.
22653 * reload1.c (free_reg_equiv): Likewise.
22654 * sched-deps.c (free_deps): Likewise.
22655 * sel-sched-ir.c (fence_clear): Likewise.
22656 * sese.c (set_rename, if_region_set_false_region): Likewise.
22657 * tree-data-ref.c (free_rdg): Likewise.
22658 * tree-eh.c (lower_try_finally): Likewise.
22659 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
22660 * tree-ssa-live.c (delete_var_map): Likewise.
22661 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
22662 * tree-ssa-pre.c (phi_trans_add): Likewise.
22664 2011-04-20 Jakub Jelinek <jakub@redhat.com>
22666 PR tree-optimization/48611
22667 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
22668 beyond ERT_MUST_NOT_THROW region.
22670 2011-04-20 Catherine Moore <clm@codesourcery.com>
22672 * config/mips/mips.opt (mfix-24k): New.
22673 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
22674 * config/mips/mips.md (length): Increase by 4 for stores if
22676 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
22677 all noreorder if fixing 24K errata.
22678 * doc/invoke.texi: Document mfix-24k.
22680 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
22682 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
22683 quad-word modes, reduce to 9-bit index range when above 1016 limit.
22685 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
22687 * config/arm/arm.c (arm_gen_constant): Move movw support ....
22688 (const_ok_for_op): ... to here.
22690 2011-04-20 Kai Tietz <ktietz@redhat.com>
22692 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
22693 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
22695 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
22697 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
22699 2011-04-20 Richard Guenther <rguenther@suse.de>
22701 PR tree-optimization/47892
22702 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
22703 are if-convertible.
22705 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
22707 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
22709 2011-04-20 Tristan Gingold <gingold@adacore.com>
22711 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
22713 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
22717 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
22718 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
22719 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
22720 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
22721 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
22723 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
22726 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
22727 (avr_asm_named_section, avr_asm_output_aligned_common,
22728 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
22729 New functions to update...
22730 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
22731 (avr_asm_init_sections): Overwrite section callbacks for
22732 data_section, bss_section.
22733 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
22735 (avr_file_end): ...here.
22737 2011-04-20 Richard Guenther <rguenther@suse.de>
22739 PR middle-end/48695
22740 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
22741 objects and types here. Adjust for their offset before comparing.
22743 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
22745 * tree-vect-stmts.c (vectorizable_store): Only chain one related
22746 statement per copy.
22748 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
22750 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
22751 (GIMPLE_H): Include $(INTERNAL_FN_H).
22752 (OBJS-common): Add internal-fn.o.
22753 (internal-fn.o): New rule.
22754 * internal-fn.def: New file.
22755 * internal-fn.h: Likewise.
22756 * internal-fn.c: Likewise.
22757 * gimple.h: Include internal-fn.h.
22758 (GF_CALL_INTERNAL): New gf_mask.
22759 (gimple_statement_call): Put fntype into a union with a new
22761 (gimple_build_call_internal): Declare.
22762 (gimple_build_call_internal_vec): Likewise.
22763 (gimple_call_same_target_p): Likewise.
22764 (gimple_call_internal_p): New function.
22765 (gimple_call_internal_fn): Likewise.
22766 (gimple_call_fntype): Return null for internal calls.
22767 (gimple_call_set_fntype): Assert that the function is not internal.
22768 (gimple_call_set_fn): Likewise.
22769 (gimple_call_set_fndecl): Likewise.
22770 (gimple_call_set_internal_fn): New function.
22771 (gimple_call_addr_fndecl): Handle null functions.
22772 (gimple_call_return_type): Likewise null types.
22773 * gimple.c (gimple_build_call_internal_1): New function.
22774 (gimple_build_call_internal): Likewise.
22775 (gimple_build_call_internal_vec): Likewise.
22776 (gimple_call_same_target_p): Likewise.
22777 (gimple_call_flags): Handle calls to internal functions.
22778 (gimple_call_fnspec): New function.
22779 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
22780 (gimple_has_side_effects): Handle null functions.
22781 (gimple_rhs_has_side_effects): Likewise.
22782 (gimple_call_copy_skip_args): Handle calls to internal functions.
22783 * cfgexpand.c (expand_call_stmt): Likewise.
22784 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
22785 * gimple-fold.c (gimple_fold_call): Handle null functions.
22786 (gimple_fold_stmt_to_constant_1): Don't fold
22787 calls to internal functions.
22788 * gimple-low.c (gimple_check_call_args): Handle calls to internal
22790 * gimple-pretty-print.c (dump_gimple_call): Likewise.
22791 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
22792 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
22793 (do_warn_unused_result): Likewise.
22794 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
22795 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
22796 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
22797 the target of a call.
22798 (initialize_hash_element): Update accordingly.
22799 (hashable_expr_equal_p): Use gimple_call_same_target_p.
22800 (iterative_hash_hashable_expr): Handle calls to internal functions.
22801 (print_expr_hash_elt): Likewise.
22802 * tree-ssa-pre.c (can_value_number_call): Likewise.
22803 (eliminate): Handle null functions.
22804 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
22805 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
22806 (find_func_aliases): Likewise.
22807 * value-prof.c (gimple_ic_transform): Likewise.
22808 (gimple_indirect_call_to_profile): Likewise.
22809 * lto-streamer-in.c (input_gimple_stmt): Likewise.
22810 * lto-streamer-out.c (output_gimple_stmt): Likewise.
22812 2011-04-19 Jan Hubicka <jh@suse.cz>
22814 * ipa-inline-transform.c (save_inline_function_body): Add comments.
22815 * ipa-inline.c (inline_small_functions): Compute summaries first,
22816 populate heap later.
22818 2011-04-19 Jan Hubicka <jh@suse.cz>
22820 * cgraph.h (save_inline_function_body): Remove.
22821 * ipa-inline-transform.c: New file, broke out of...
22822 * ipa-inline.c: ... this one; Update toplevel comment.
22823 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
22825 (update_noncloned_frequencies): Move to ipa-inline-transform.c
22826 (cgraph_mark_inline_edge): Rename to inline_call; move to
22827 ipa-inline-transform.c.
22828 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
22829 move to ipa-inline-transform.c
22830 (recursive_inlining, inline_small_functions, flatten_function,
22831 ipa_inline, inline_always_inline_functions,
22832 early_inline_small_functions): Update.
22833 (inline_transform): Move to ipa-inline-transform.c.
22834 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
22836 * Makefile.in (ipa-inline-transform.o): New file.
22837 * cgraphunit.c (save_inline_function_body): Move to
22838 ipa-inline-transform.c
22840 2011-04-19 DJ Delorie <dj@redhat.com>
22842 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
22843 registers if we already know there aren't any.
22844 (m32c_emit_epilogue): Don't emit a barrier here.
22845 (m32c_emit_eh_epilogue): Likewise.
22846 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
22847 operands at expand time.
22848 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
22850 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
22851 duplicates. Provide aliases instead.
22852 * config/m32c/prologue.md (eh_return): Emit a barrier here.
22853 (eh_epilogue): Add a "(return)" here as a hint to other parts of
22856 2011-04-19 Anatoly Sokolov <aesok@post.ru>
22858 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
22859 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
22860 (general_or_i64_p, sparc_register_move_cost): New function.
22862 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22864 * doc/install.texi (Configuration, --enable-threads): Remove mach.
22865 Add lynx, mipssde. Sort table.
22867 2011-04-19 Xinliang David Li <davidxl@google.com>
22869 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
22872 2011-04-19 Jakub Jelinek <jakub@redhat.com>
22875 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
22876 is a SUBREG with non-MODE_INT mode inside of it.
22878 2011-04-19 Martin Jambor <mjambor@suse.cz>
22880 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
22881 also according to actual contants.
22882 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
22883 (gimple_fold_call): Use it.
22884 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
22886 2011-04-19 Martin Jambor <mjambor@suse.cz>
22888 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
22889 non-pointer assignments.
22891 2011-04-19 Martin Jambor <mjambor@suse.cz>
22893 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
22894 account anc_offset and otr_type from the indirect edge info.
22895 * ipa-prop.c (get_ancestor_addr_info): New function.
22896 (compute_complex_ancestor_jump_func): Assignment analysis moved to
22897 get_ancestor_addr_info, call it.
22898 (ipa_note_param_call): Do not initialize information about polymorphic
22899 calls, return the indirect call graph edge. Remove the last
22900 parameter, adjust all callers.
22901 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
22902 parameters. Initialize polymorphic information in the indirect edge.
22904 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
22907 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
22908 the types if they have different enumeration identifiers.
22910 2011-04-19 Jan Hubicka <jh@suse.cz>
22912 * cgraph.h (cgraph_optimize_for_size_p): Declare.
22913 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
22914 * predict.c (cgraph_optimize_for_size_p): Break out from ...
22915 (optimize_function_for_size_p) ... here.
22917 2011-04-19 Richard Guenther <rguenther@suse.de>
22920 * tree.c (free_lang_data): Do not reset the decl-assembler-name
22923 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
22925 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
22926 if DECL_NO_INLINE_WARNING_P is set on the function.
22928 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
22931 * reload1.c (inc_for_reload): Return void. All callers changed.
22932 (emit_input_reload_insns): Don't try to delete previous output
22933 reloads to a register, or record spill_reg_store for autoincs.
22935 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
22937 * gengtype.h: Updated copyright year.
22938 (struct input_file_st): Add inpisplugin field.
22939 (type_fileloc): New function.
22941 (write_typed_struct_alloc_def): Add gcc_assert.
22942 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
22943 (write_typed_alloc_defns): Don't output for plugin files.
22944 (input_file_by_name): Clear inpisplugin field.
22945 (main): Set inpisplugin field for plugin files.
22947 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
22949 * gengtype-state.c (string_eq): New.
22950 (read_state): Use string_eq instead of strcmp when creating the
22953 2011-04-19 Wei Guozhi <carrot@google.com>
22956 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
22957 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
22959 * config/arm/constraints.md (Uu): New constraint.
22960 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
22962 2011-04-19 Tristan Gingold <gingold@adacore.com>
22964 * config.gcc (-*-*-*vms): Added.
22965 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
22967 * config/vms/vms-ld.c: New file.
22968 * config/vms/vms-ar.c: New file.
22969 * config/vms/t-vmsnative: New file.
22971 2011-04-18 Xinliang David Li <davidxl@google.com>
22973 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
22975 2011-04-18 Jakub Jelinek <jakub@redhat.com>
22977 PR middle-end/48661
22978 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
22979 if TREE_TYPE (v) is non-NULL.
22981 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
22982 gimple_get_virt_mehtod_for_binfo.
22983 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
22984 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
22986 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
22988 2011-04-18 Michael Matz <matz@suse.de>
22989 Steve Ellcey <sje@cup.hp.com>
22991 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
22992 use its mode as source mode if it isn't VOIDmode.
22994 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
22996 * doc/passes.texi: Fill crossref nodes.
22998 2011-04-18 Jim Meyering <meyering@redhat.com>
23000 Fix doubled-word typos in comments and strings
23001 * config/alpha/vms-unwind.h: s/for for/for/
23002 * config/arm/unwind-arm.h: Likewise.
23003 * config/microblaze/microblaze.c: Likewise.
23004 * config/sh/constraints.md: s/in in/in/
23005 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
23007 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
23009 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
23010 (AVX_FLOAT_MODE_P): Ditto.
23011 (AVX128_VEC_FLOAT_MODE_P): Ditto.
23012 (AVX256_VEC_FLOAT_MODE_P): Ditto.
23013 (AVX_VEC_FLOAT_MODE_P): Ditto.
23014 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
23015 (UNSPEC_MASKSTORE): Ditto.
23016 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
23017 Merge from <sse>_movmsk<ssemodesuffix> and
23018 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
23019 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
23021 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
23022 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
23023 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
23025 2011-04-18 Jan Hubicka <jh@suse.cz>
23027 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
23029 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
23030 (want_inline_function_called_once_p): Break out the logic from
23032 (edge_badness): Ensure that profile is not misupdated.
23033 (lookup_recursive_calls): Prioritize by call frequencies.
23034 (inline_small_functions): Move program size estimates here;
23035 actually process whole queue even when unit growth has been
23036 met. (to properly compute inline_failed reasons and for the
23037 case unit size decrease.) Revisit comments on recursive inlining.
23038 (ipa_inline): Remove unit summary code; first inline hot calls
23039 of functions called once, cold calls next.
23040 (order, nnodes): Remove unused variables.
23041 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
23042 (GTFILES): Remove ipa-inline.c
23043 * sel-sched.c (fill_insns): Silence uninitialized var warning.
23045 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
23047 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
23049 2011-04-18 Jie Zhang <jie@codesourcery.com>
23050 Richard Earnshaw <rearnsha@arm.com>
23052 * arm.c (neon_builtin_type_bits): Remove.
23053 (typedef enum neon_builtin_mode): New.
23054 (T_MAX): Don't define.
23055 (typedef enum neon_builtin_datum): Remove bits, codes[],
23056 num_vars and base_fcode. Add mode, code and fcode.
23057 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
23058 VAR10): Change accordingly.
23059 (neon_builtin_data[]): Change accordingly
23060 (arm_init_neon_builtins): Change accordingly.
23061 (neon_builtin_compare): Remove.
23062 (locate_neon_builtin_icode): Remove.
23063 (arm_expand_neon_builtin): Change accordingly.
23065 * arm.h (enum arm_builtins): Move to ...
23066 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
23068 * arm.c (arm_builtin_decl): Declare.
23069 (TARGET_BUILTIN_DECL): Define.
23070 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
23071 (arm_builtin_decls[]): New.
23072 (arm_init_neon_builtins): Store builtin declarations in
23073 arm_builtin_decls[].
23074 (arm_init_tls_builtins): Likewise.
23075 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
23076 (arm_builtin_decl): New.
23078 2011-04-18 Richard Guenther <rguenther@suse.de>
23080 * tree.c (upper_bound_in_type): Build properly canonicalized
23082 (lower_bound_in_type): Likewise.
23084 2011-04-18 Richard Guenther <rguenther@suse.de>
23086 * gimple.h (gimple_call_addr_fndecl): New function.
23087 (gimple_call_fndecl): Use it.
23088 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
23090 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
23091 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
23093 2011-04-18 Richard Guenther <rguenther@suse.de>
23095 PR middle-end/48650
23096 * tree.c (build_string): STRING_CST is now derived from tree_typed.
23098 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
23101 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
23102 DECL_IN_CONSTANT_POOL without RTL.
23104 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
23105 Ira Rosen <ira.rosen@linaro.org>
23108 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
23109 to match neon_vzip/vuzp/vtrn_internal.
23110 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
23111 outputs explicitly dependent on both inputs.
23112 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
23114 2011-04-18 Jakub Jelinek <jakub@redhat.com>
23116 PR tree-optimization/48616
23117 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
23118 whether the shift is by scalar or vector based on whether all SLP
23119 scalar stmts have the same rhs.
23121 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
23123 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
23126 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
23129 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
23132 2011-04-17 Jan Hubicka <jh@suse.cz>
23134 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
23135 * cgrpahunit.c (cgraph_finalize_function): Do not set
23136 finalized_by_frontend.
23137 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
23138 finalized_by_frontend.
23140 2011-04-17 Jan Hubicka <jh@suse.cz>
23142 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
23143 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
23144 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
23145 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
23147 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
23149 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
23151 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
23154 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
23155 is non-null before accessing it.
23156 (input_cgraph): Remove trailing spaces.
23158 2011-04-17 Revital Eres <revital.eres@linaro.org>
23160 * params.def (sms-min-sc): New param flag.
23161 * modulo-sched.c (sms_schedule): Use it.
23162 * doc/invoke.texi (sms-min-sc): Document it.
23164 2011-04-17 Jan Hubicka <jh@suse.cz>
23166 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
23167 present, also set gimple_call_set_cannot_inline.
23168 * ipa-inline.c: Update toplevel comment.
23169 (MAX_TIME): Remove.
23170 (cgraph_clone_inlined_nodes): Fix linebreaks.
23171 (cgraph_check_inline_limits): Restructure to ...
23172 (caller_growth_limits): ... this one; be more tolerant
23173 on growth in nested inline chains; add explanatory comment;
23174 fix stack accounting thinko introduced by previous patch.
23175 (cgraph_default_inline_p): Remove.
23176 (report_inline_failed_reason): New function.
23177 (can_inline_edge_p): New function.
23178 (can_early_inline_edge_p): New function.
23179 (leaf_node_p): Move upwards in file.
23180 (want_early_inline_function_p): New function.
23181 (want_inline_small_function_p): New function.
23182 (want_inline_self_recursive_call_p): New function.
23183 (cgraph_edge_badness): Rename to ...
23184 (edge_badness) ... this one; fix linebreaks.
23185 (update_edge_key): Update call of edge_baddness; add
23186 detailed dump about queue updates.
23187 (update_caller_keys): Use can_inline_edge_p and
23188 want_inline_small_function_p.
23189 (cgraph_decide_recursive_inlining): Rename to...
23190 (recursive_inlining): Use can_inline_edge_p and
23191 want_inline_self_recursive_call_p; simplify and remove no longer
23193 (cgraph_set_inline_failed): Remove.
23194 (add_new_edges_to_heap): Use can_inline_edge_p and
23195 want_inline_small_function_p.
23196 (cgraph_decide_inlining_of_small_functions): Rename to ...
23197 (inline_small_functions): ... this one; cleanup; use
23198 can/want predicates; cleanup debug ouput; work edges till fibheap
23199 is exhausted and do not stop once unit growth is reached; remove
23200 later loop processing remaining edges.
23201 (cgraph_flatten): Rename to ...
23202 (flatten_function): ... this one; use can_inline_edge_p
23203 and can_early_inline_edge_p predicates.
23204 (cgraph_decide_inlining): Rename to ...
23205 (ipa_inline): ... this one; remove unreachable nodes before
23206 inlining functions called once; simplify the pass.
23207 (cgraph_perform_always_inlining): Rename to ...
23208 (inline_always_inline_functions): ... this one; use
23209 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
23210 (cgraph_decide_inlining_incrementally): Rename to ...
23211 (early_inline_small_functions): ... this one; simplify
23212 using new predicates; cleanup; make dumps prettier.
23213 (cgraph_early_inlining): Rename to ...
23214 (early_inliner): newer inline regular functions into always-inlines;
23215 fix updating of call stmt summaries.
23216 (pass_early_inline): Update for new names.
23217 (inline_transform): Fix formating.
23218 (gate_cgraph_decide_inlining): Rename to ...
23219 (pass_ipa_inline): ... this one.
23220 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
23221 * ipa-inline-analysis.c (dump_inline_summary): Update.
23222 (compute_inline_parameters): Do not compute disregard_inline_limits;
23223 look for mismatching arguments.
23224 (estimate_growth): Fix handlig of non-trivial self recursion.
23225 (inline_read_summary): Do not read info->disregard_inline_limits.
23226 (inline_write_summary): Do not write info->disregard_inline_limits.
23227 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
23228 and move all checks into can_inline_edge_p predicate; re-enable code
23229 comparing optimization levels.
23230 (expand_call_inline): Do not test inline_forbidden_into_p.
23231 * Makefile.in (ipa-inline.o): Update arguments.
23233 2011-04-17 Revital Eres <revital.eres@linaro.org>
23235 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
23237 2011-04-17 Revital Eres <revital.eres@linaro.org>
23239 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
23241 2011-04-17 Michael Matz <matz@suse.de>
23243 PR tree-optimization/48622
23245 * ipa-inline-analysis.c (inline_read_summary): Read size/time
23246 in same order as they're written.
23248 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23250 * config/pa/predicates.md: Reorganize and simplify predicates.
23251 Eliminate duplicate code checks.
23252 (arith_operand): Rename to arith14_operand
23253 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
23254 * config/pa/pa.md: Use renamed operands.
23255 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
23256 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
23257 arith11_operand, adddi3_operand, indexed_memory_operand,
23258 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
23259 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
23260 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
23261 move_dest_operand, move_src_operand, prefetch_cc_operand,
23262 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
23263 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
23264 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
23265 div_operand, int5_operand, movb_comparison_operator,
23266 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
23267 arith_double_operand, ireg_operand, lhs_lshift_operand,
23268 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
23269 integer_store_memory_operand): Likewise.
23270 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
23271 (integer_store_memory_operand, read_only_operand,
23272 function_label_operand, borx_reg_operand,
23273 non_hard_reg_operand): Likewise.
23274 (eq_neq_comparison_operator): Delete unused operator.
23275 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
23276 function_label_operand.
23277 (emit_move_sequence): Likewise.
23279 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
23281 * config/i386/sse.md (sseunpackmode): New mode attribute.
23282 (ssepackmode): Ditto.
23283 (vec_pack_trunc_<mode>): Macroize expander from
23284 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
23285 (vec_unpacks_lo_<mode>): Macroize expander from
23286 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
23287 (vec_unpacks_hi_<mode>): Macroize expander from
23288 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
23289 (vec_unpacku_lo_<mode>): Macroize expander from
23290 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
23291 (vec_unpacku_hi_<mode>): Macroize expander from
23292 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
23293 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
23294 ix86_expand_sse4_unpack.
23295 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
23297 2011-04-16 Jan Hubicka <jh@suse.cz>
23299 * cgraphbuild.c: Include ipa-inline.h.
23300 (reset_inline_failed): Use initialize_inline_failed.
23301 * cgraph.c: Include ipa-inline.h.
23302 (cgraph_create_node_1): Do not initialize estimated_growth.
23303 (initialize_inline_failed): More to ipa-inline-analysis.c
23304 (dump_cgraph_node): Do not dump inline flags.
23305 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
23306 and disregard_inline_limits flags.
23307 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
23308 time, size, estimated_growth.
23309 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
23311 * cgraphunit.c (cgraph_decide_is_function_needed): Use
23312 DECL_DISREGARD_INLINE_LIMITS.
23313 (cgraph_analyze_function): Do not initialize
23314 node->local.disregard_inline_limits.
23315 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
23316 inlinable, versionable and disregard_inline_limits.
23317 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
23318 cgraph_check_inline_limits, cgraph_default_inline_p,
23319 cgraph_edge_badness, update_caller_keys, update_callee_keys,
23320 add_new_edges_to_heap): Update.
23321 (cgraph_decide_inlining_of_small_function): Update; set
23322 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
23323 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
23324 cgraph_decide_inlining_incrementally): Update.
23325 * ipa-inline.h (inline_summary): Add inlinable, versionable,
23326 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
23327 time, size and estimated_growth parameters.
23328 (estimate_edge_growth): Update.
23329 (initialize_inline_failed): Declare.
23330 * ipa-split.c: Include ipa-inline.h
23331 (execute_split_functions): Update.
23332 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
23333 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
23334 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
23335 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
23336 estimated_growth to INT_MIN.
23337 (inline_node_duplication_hook): Likewise.
23338 (dump_inline_summary): Dump new fields.
23339 (compute_inline_parameters): Update.
23340 (estimate_edge_time, estimate_time_after_inlining,
23341 estimate_size_after_inlining, estimate_growth, inline_read_summary,
23342 inline_write_summary):
23343 (initialize_inline_failed): Move here from cgraph.c.
23344 * tree-sra.c: Include ipa-inline.h.
23345 (ipa_sra_preliminary_function_checks): Update.
23346 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
23349 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
23351 * config/i386/sse.md (V16): New mode iterator.
23353 (AVXMODEQI, AVXMODEDI): Remove.
23354 (sse2, sse3): New mode attribute.
23355 (mov<mode>): Use V16 mode iterator.
23356 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
23357 (push<mode>1): Use V16 mode iterator.
23358 (movmisalign<mode>): Ditto.
23359 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
23360 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
23361 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
23362 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
23363 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
23364 avx_movdqu<avxmodesuffix>.
23365 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
23366 *avx_movdqu<avxmodesuffix>.
23367 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
23368 avx_lddqu<avxmodesuffix>.
23369 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
23370 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
23371 avx_movnt<AVXMODEDI:mode>.
23372 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
23373 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
23375 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
23378 * haifa-sched.c (prune_ready_list, schedule_block): Use
23379 sched_pressure_p rather than flag_sched_pressure.
23381 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
23383 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
23384 cgraph_get_node instead of cgraph_get_create_node.
23386 2011-04-15 Jakub Jelinek <jakub@redhat.com>
23388 * cfgexpand.c (expand_debug_expr): Use
23389 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
23391 2011-04-15 Michael Matz <matz@suse.de>
23393 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
23394 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
23395 * function.c (gimplify_parameters): Ditto.
23396 * gimplify.c (gimplify_vla_decl): Ditto.
23398 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
23399 (gimple_call_set_alloca_for_var): New inline function.
23400 (gimple_call_alloca_for_var_p): Ditto.
23401 * gimple.c (gimple_build_call_from_tree): Remember
23402 CALL_ALLOCA_FOR_VAR_P state.
23403 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
23405 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
23406 calls if they were for VLA objects.
23408 2011-04-15 Martin Jambor <mjambor@suse.cz>
23410 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
23413 2011-04-15 Martin Jambor <mjambor@suse.cz>
23415 PR middle-end/48601
23416 * tree-emutls.c (lower_emutls_function_body): Call
23417 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
23418 result is non-NULL.
23420 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
23422 * c-decl.c (detect_field_duplicates): Call
23423 objc_detect_field_duplicates instead of objc_get_interface_ivars.
23425 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
23427 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
23428 * gimple.c (gimple_asm_clobbers_memory_p): Define.
23429 * ipa-pure-const.c (check_stmt): Call it.
23430 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
23432 2011-04-15 Richard Guenther <rguenther@suse.de>
23434 PR tree-optimization/48290
23435 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
23436 Properly decide inhibiting propagation based on the valueized
23437 operand. Do loop-closed SSA form preserving here ...
23438 (init_copy_prop): ... not here.
23440 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
23443 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
23444 (*ieee_smax<mode>3): Likewise.
23446 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23448 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
23449 Replace match_operand with match_dup for the third operand in
23452 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
23454 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
23455 to track processing of conditionals. Update all callers.
23456 (try_combine, simplify_if_then_else): Update.
23458 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
23460 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
23463 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
23465 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
23466 instead of match_operand for operand 3.
23468 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
23470 * recog.h (insn_operand_data): Add an "allows_mem" field.
23471 * genoutput.c (output_operand_data): Initialize it.
23472 * optabs.c (maybe_legitimize_operand_same_code): New function.
23473 (maybe_legitimize_operand): Use it when matching the original
23476 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
23478 * gimplify.c: Fix issues in comments throughout.
23479 (voidify_wrapper_expr): Fix long line.
23480 (build_stack_save_restore): Likewise.
23481 (gimplify_loop_expr): Likewise.
23482 (gimplify_compound_lval): Likewise.
23483 (gimplify_init_ctor_eval): Likewise.
23484 (gimplify_modify_expr_rhs): Likewise.
23485 (omp_notice_threadprivate_variable): Likewise.
23487 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
23489 * cfgexpand.c (expand_call_stmt): Convert the function type to the
23490 original one if this is not a builtin function.
23492 2011-04-14 Jakub Jelinek <jakub@redhat.com>
23495 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
23496 offset it as needed based on top 2 bits in operands[3], change
23497 MEM mode to SFmode and mask those 2 bits away from operands[3].
23499 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
23501 * c-parser.c (c_parser_objc_protocol_definition): Updated for
23502 change from objc_declare_protocols() to objc_declare_protocol().
23504 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
23506 * config/i386/sse.md (sse4_1): New mode attribute.
23507 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
23508 avx_blend<ssemodesuffix><avxmodesuffix> and
23509 sse4_1_blend<ssemodesuffix> using VF mode iterator.
23510 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
23511 avx_blendv<ssemodesuffix><avxmodesuffix> and
23512 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
23513 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
23514 avx_dp<ssemodesuffix><avxmodesuffix> and
23515 sse4_1_dp<ssemodesuffix> using VF mode iterator.
23516 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
23517 (sse4_1_packusdw): Merge with *avx_packusdw.
23518 (sse4_1_pblendvb): Merge with *avx_pblendvb.
23519 (sse4_1_pblendw): Merge with *avx_pblendw.
23520 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
23521 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
23522 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
23524 (sse4_1_round<ssescalarmodesuffix>): Merge with
23525 *avx_round<ssescalarmodesuffix>.
23526 (aesenc): Merge with *avx_aesenc.
23527 (aesenclast): Merge with *avx_aesenclast.
23528 (aesdec): Merge with *avx_aesdec.
23529 (aesdeclast): Merge with *avx_aesdeclast.
23530 (pclmulqdq): Merge with *pclmulqdq.
23531 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
23533 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
23535 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
23537 PR middle-end/48608
23538 * cfgexpand.c (get_decl_align_unit): Renamed to ...
23539 (align_local_variable): This. Update DECL_ALIGN.
23540 (add_stack_var): Updated.
23541 (expand_one_stack_var): Likewise.
23543 2011-04-14 Richard Guenther <rguenther@suse.de>
23545 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
23547 (dse_initialize_block_local_data, dse_leave_block,
23548 record_voperand_set, get_stmt_uid): Likewise.
23549 (dse_possible_dead_store_p): Allow any kind of killing stmt.
23550 (dse_optimize_stmt): Remove voperand set handling code.
23551 Simplify and improve to handle any kind of killing stmt.
23552 (dse_record_phi): Remove.
23553 (dse_enter_block): Simplify.
23554 (tree_ssa_dse): Likewise.
23555 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
23557 2011-04-14 Jan Hubicka <jh@suse.cz>
23559 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
23560 * cgraph.h (struct inline_summary): Move to ipa-inline.h
23561 (cgraph_local_info): Remove inline_summary.
23562 * ipa-cp.c: Include ipa-inline.h.
23563 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
23564 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
23566 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
23567 (input_overwrite_node): Do not set inline summary.
23568 (input_node): Do not stream inline summary.
23569 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
23570 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
23571 growth; we do not have inline parameters computed for that anyway.
23572 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
23573 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
23574 (inline_summary_t): New type and VECtor.
23575 (debug_inline_summary, dump_inline_summaries): Declare.
23576 (inline_summary): Use VOCtor.
23577 (estimate_edge_growth): Kill hack computing call stmt size directly.
23578 * lto-section-in.c (lto_section_name): Add inline section.
23579 * ipa-inline-analysis.c: Include lto-streamer.h
23580 (node_removal_hook_holder, node_duplication_hook_holder): New holders
23581 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
23582 (inline_summary_vec): Define.
23583 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
23584 dump_inline_summaries): New functions.
23585 (estimate_function_body_sizes): Properly compute size/time of outgoing
23587 (compute_inline_parameters): Alloc inline_summary; do not compute
23588 size/time of incomming calls.
23589 (estimate_edge_time): Avoid missing time summary hack.
23590 (inline_read_summary): Read inline summary info.
23591 (inline_write_summary): Write inline summary info.
23592 (inline_free_summary): Free all hooks and inline summary vector.
23593 * lto-streamer.h: Add LTO_section_inline_summary section.
23594 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
23595 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
23597 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
23599 * tree-vectorizer.h (vect_strided_store_supported): Add a
23600 HOST_WIDE_INT argument.
23601 (vect_strided_load_supported): Likewise.
23602 (vect_permute_store_chain): Return void.
23603 (vect_transform_strided_load): Likewise.
23604 (vect_permute_load_chain): Delete.
23605 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
23606 count argument. Check that the count is a power of two.
23607 (vect_strided_load_supported): Likewise.
23608 (vect_permute_store_chain): Return void. Update after above changes.
23609 Assert that the access is supported.
23610 (vect_permute_load_chain): Likewise.
23611 (vect_transform_strided_load): Return void.
23612 * tree-vect-stmts.c (vectorizable_store): Update calls after
23613 above interface changes.
23614 (vectorizable_load): Likewise.
23615 (vect_analyze_stmt): Don't check for strided powers of two here.
23617 2011-04-14 Richard Guenther <rguenther@suse.de>
23619 PR tree-optimization/48590
23620 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
23621 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
23622 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
23623 BUILT_IN_STACK_SAVE.
23624 * tree-ssa-dce.c (propagate_necessity): Handle
23625 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
23627 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
23629 * c-parser.c (c_parser_objc_class_declaration): Updated call to
23630 objc_declare_class.
23632 2011-04-14 Richard Guenther <rguenther@suse.de>
23634 * tree.h (get_object_alignment_1): Declare.
23635 * builtins.c (get_object_alignment_1): Split out worker from ...
23636 (get_object_alignment): ... here.
23637 * fold-const.c (get_pointer_modulus_and_residue): Use
23638 get_object_alignment_1.
23640 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
23642 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
23644 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
23645 parameter. Generalise code to handle arrays as well as vectors.
23646 (vect_setup_realignment): Update accordingly.
23647 * tree-vect-stmts.c (vectorizable_store): Likewise.
23648 (vectorizable_load): Likewise.
23650 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
23652 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
23653 within the per-copy loop.
23655 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
23657 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
23660 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
23662 * doc/options.texi (Negative): Explicitly mention that the
23663 Negative chain must be circular.
23665 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
23667 * function.h (block_chainon): Declare.
23668 * function.c (block_chainon): Define.
23670 2011-04-14 Anatoly Sokolov <aesok@post.ru>
23671 Eric Weddington <eric.weddington@atmel.com>
23672 Georg-Johann Lay <avr@gjlay.de>
23674 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
23676 (avr_init_builtins, avr_expand_builtin,
23677 avr_expand_delay_cycles, avr_expand_unop_builtin,
23678 avr_expand_binop_builtin ): New functions.
23679 (avr_builtin_id): New enum
23680 (struct avr_builtin_description): New struct
23681 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
23682 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
23684 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
23685 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
23686 UNSPECV_DELAY_CYCLES): new enumeration values
23687 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
23688 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
23689 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
23690 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
23691 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
23692 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
23693 "fmulsu"): New insns
23695 * config/avr/avr-c.c: fix line endings
23696 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
23697 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
23698 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
23699 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
23700 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
23702 * doc/extend.texi (AVR Built-in Functions): New node
23703 (Target Builtins): Add documentation of AVR
23704 built-in functions.
23706 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
23709 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
23710 alone. Error if non-const data has attribute progmem.
23712 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
23714 * tree.h (struct tree_constructor): Include tree_typed instead of
23716 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
23717 TS_TYPED instead of TS_COMMON.
23719 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
23721 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
23722 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
23723 (sse2_psadbw): Merge with *avx_psadbw.
23724 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
23725 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
23726 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
23727 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
23728 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
23729 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
23730 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
23731 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
23732 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
23733 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
23734 (ssse3_palignrti): Merge with *avx_palignrti.
23736 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
23738 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
23739 * tree-ssanames.c (fini_ssanames): VEC_free it.
23740 (make_ssa_name_fn): Update for VECness of free_ssanames.
23741 (release_ssa_name, release_dead_ssa_names): Likewise.
23742 * tree.h (struct tree_ssa_name): Include tree_typed instead of
23744 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
23745 TS_TYPED instead of TS_COMMON.
23747 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
23749 * postreload-gcse.c (gcse_after_reload_main): Add calls to
23750 statistics_counter_event.
23751 * tree-ssa-copyrename.c (stats): Define.
23752 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
23753 statistics_counter_event.
23754 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
23755 (bswap_stats, widen_mul_stats): Define.
23756 (insert_reciprocals): Increment rdivs_inserted.
23757 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
23758 rfuncs_inserted. Add calls to statistics_counter_event.
23759 (execute_cse_sincos_1): Increment inserted.
23760 (execute_cse_sincos): Zeroize sincos_stats. Add call to
23761 statistics_counter_event.
23762 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
23763 of bswap_stats. Add calls to statistics_counter_event.
23764 (convert_mult_to_widen): Increment widen_mults_inserted.
23765 (convert_plusminus_to_widen): Increment maccs_inserted.
23766 (convert_mult_to_fma): Increment fmas_inserted.
23767 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
23768 calls to statistics_counter_event.
23770 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
23772 PR rtl-optimization/48455
23773 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
23774 `temp_costs->mem_cost'.
23776 2011-04-13 Jan Hubicka <jh@suse.cz>
23778 * ipa-inline.h: New file.
23779 * ipa-inline-analysis.c: New file. Broken out of ...
23780 * ipa-inline.c: ... this file; update toplevel comment;
23781 include ipa-inline.h
23782 (inline_summary): Move to ipa-inline.h
23783 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
23784 ipa-inline-analysis.c.
23785 (cgraph_estimate_time_after_inlining): Rename to
23786 estiamte_time_after_inlining; move to ipa-inline-analysis.c
23787 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
23788 to estimate_edge_growth.
23789 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
23790 rename to estimate_size_after_inlining.
23791 (cgraph_mark_inline_edge): Update for new naming convention.
23792 (cgraph_check_inline_limits): Likewise.
23793 (cgraph_edge_badness): Likewise.
23794 (cgraph_decide_recursive_inlining): Likewise.
23795 (cgraph_decide_inlining_of_small_functions): Likewise.
23796 (cgraph_decide_inlining_incrementally): Likewise.
23797 (cgraph_estimate_growth): Rename to estimate_growth; move to
23798 ipa-inline-analysis.c.
23799 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
23800 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
23801 (compute_inline_parameters): Likewise.
23802 (compute_inline_parameters_for_current): Likewise.
23803 (pass_inline_parameters): Likewise.
23804 (inline_indirect_intraprocedural_analysis): Likewise.
23805 (analyze_function): Rename to inline_analyze_function; likewise.
23806 (add_new_function): Move to ipa-inline-analysis.c.
23807 (inline_generate_summary): Likewise.
23808 (inline_read_summary): Likewise.
23809 (inline_write_summary): Likewise.
23810 * Makefile.in (ipa-inline-analysis.c): New file.
23812 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23814 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
23815 * configure: Regenerate.
23817 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
23819 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
23820 instead of tree_common.
23821 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
23823 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
23824 TS_TYPED rather than TS_COMMON.
23825 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
23827 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
23830 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
23831 r20 around calls of __tablejump_elpm__
23833 2011-04-13 Jakub Jelinek <jakub@redhat.com>
23835 PR middle-end/48591
23836 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
23838 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
23840 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
23842 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
23843 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
23844 (cfi_vec): New typedef.
23845 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
23846 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
23847 (cie_cfi_vec): New static variable.
23848 (cie_cfi_head): Delete.
23849 (add_cfi): Accept a cfi_vec * as first argument. All callers and
23850 declaration changed. Use vector rather than list operations.
23851 (new_cfi): Don't initialize the dw_cfi_next field.
23852 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
23853 rather than list operations.
23854 (lookup_cfa): Use vector rather than list operations.
23855 (output_cfis): New argument upto. Accept a cfi_vec rather than
23856 a dw_cfi_ref list head as argument. All callers changed.
23857 Iterate over the vector using upto as a maximum index.
23858 (output_all_cfis): New static function.
23859 (output_fde): Use vector rather than list operations. Use the
23860 new upto argument for output_cfis rather than manipulating a
23862 (dwarf2out_begin_prologue): Change initializations to match
23863 new struct members.
23864 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
23865 from the vector length rather than searching for the end of a list.
23866 Use output_all_cfis.
23867 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
23869 2011-04-13 Nick Clifton <nickc@redhat.com>
23871 * config/rx/rx.md (movmemsi): Do not use this pattern when
23872 volatile pointers are involved.
23874 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
23876 * config/i386/sse.md (pinsrbits): Remove.
23877 (sse2_packsswb): Merge with *avx_packsswb.
23878 (sse2_packssdw): Merge with *avx_packssdw.
23879 (sse2_packuswb): Merge with *avx_packuswb.
23880 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
23881 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
23882 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
23883 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
23884 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
23885 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
23886 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
23887 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
23888 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
23889 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
23890 (sse2_loadld): Merge with *avx_loadld.
23891 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
23892 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
23893 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
23894 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
23895 (vec_concatv2di): Merge with *vec_concatv2di_avx.
23897 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
23899 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
23900 calling TREE_CHAIN.
23901 * print-tree.c (print_node): Likewise.
23902 * tree-inline.c (copy_tree_r): Likewise.
23903 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
23904 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
23905 instead of TS_COMMON.
23906 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
23907 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
23908 (copy_node_stat): Zero TREE_CHAIN only if necessary.
23909 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
23910 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
23912 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
23914 (TREE_CHAIN): Check for a TS_COMMON structure.
23915 (TREE_TYPE): Check for a TS_TYPED structure.
23917 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
23919 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
23920 cgraph_get_create_node instead of cgraph_node.
23922 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
23924 * c-parser.c (c_parser_initelt): Updated call to
23925 objc_build_message_expr.
23926 (c_parser_postfix_expression): Likewise.
23928 2011-04-12 Kai Tietz <ktietz@redhat.com>
23930 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
23931 MASK_MS_BITFIELD_LAYOUT bit.
23933 2011-04-12 Jakub Jelinek <jakub@redhat.com>
23935 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
23936 assert it is always true.
23937 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
23940 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
23942 * c-parser.c (c_lex_one_token): Rewritten conditional used when
23943 compiling Objective-C to be more efficient.
23945 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
23947 * opts-common.c (decode_cmdline_options_to_array): Remove variable
23950 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
23952 * recog.h, genoutput.c, optabs.c: Revert last patch.
23954 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23957 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
23959 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
23961 * recog.h (insn_operand_data): Add an "allows_mem" field.
23962 * genoutput.c (output_operand_data): Initialize it.
23963 * optabs.c (maybe_legitimize_operand_same_code): New function.
23964 (maybe_legitimize_operand): Use it when matching the original
23967 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
23969 * genpreds.c (process_define_predicate): Move most processing
23970 to gensupport.c. Continue to validate the expression.
23971 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
23972 (process_define_predicate): Move processing to gensupport.c.
23973 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
23974 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
23975 (compute_predicate_codes): Moved from genrecog.c. Add lineno
23977 (valid_predicate_name_p): New function, split out from old
23978 genpreds.c:process_define_predicate.
23979 (process_define_predicate): New function, combining code from
23980 old genpreds.c and genrecog.c functions.
23981 (process_rtx): Call it for DEFINE_PREDICATE and
23982 DEFINE_SPECIAL_PREDICATE.
23984 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
23986 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
23987 size of a '%A' memory reference.
23988 (T_DREG, T_QREG): New neon_builtin_type_bits.
23989 (arm_init_neon_builtins): Assert that the load and store operands
23990 are neon_struct_operands.
23991 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
23992 (NEON_ARG_MEMORY): New builtin_arg.
23993 (neon_dereference_pointer): New function.
23994 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
23995 Handle NEON_ARG_MEMORY.
23996 (arm_expand_neon_builtin): Update after above interface changes.
23997 Use NEON_ARG_MEMORY for loads and stores.
23998 * config/arm/predicates.md (neon_struct_operand): New predicate.
23999 * config/arm/iterators.md (V_two_elem): Tweak formatting.
24000 (V_three_elem): Use BLKmode for accesses that have no associated mode.
24001 (V_four_elem): Tweak formatting.
24002 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
24003 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
24004 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
24005 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
24006 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
24007 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
24008 (neon_vst4<mode>): Replace pointer operand with a memory operand.
24009 Use %A in the output template.
24010 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
24011 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
24012 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
24013 the width of the memory access. Remove post-increment.
24014 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
24016 2011-04-12 Nick Clifton <nickc@redhat.com>
24018 * config/v850/v850.c (expand_prologue): Do not use the CALLT
24019 instruction for interrupt handlers if the target is the basic V850
24021 (expand_epilogue): Likewise.
24023 2011-04-12 Jakub Jelinek <jakub@redhat.com>
24025 PR rtl-optimization/48549
24026 * combine.c (propagate_for_debug): Also stop after BB_END of
24027 this_basic_block. Process LAST and just stop processing after it.
24028 (combine_instructions): If last_combined_insn has been deleted,
24029 set last_combined_insn to its PREV_INSN.
24031 2011-04-12 Richard Guenther <rguenther@suse.de>
24033 PR tree-optimization/46076
24034 * gimple.h (struct gimple_statement_call): Add fntype field.
24035 (gimple_call_fntype): Adjust.
24036 (gimple_call_set_fntype): New function.
24037 * gimple.c (gimple_build_call_1): Set the call function type.
24038 * gimplify.c (gimplify_call_expr): Preserve the function
24039 type the frontend used for the call.
24040 (gimplify_modify_expr): Likewise.
24041 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
24043 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
24045 * tree-ssa.c (useless_type_conversion_p): Function pointer
24046 conversions are useless.
24048 2011-04-12 Martin Jambor <mjambor@suse.cz>
24050 * cgraph.h (cgraph_node): Remove function declaration.
24051 (cgraph_create_node): Declare.
24052 (cgraph_get_create_node): Likewise.
24053 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
24054 Updated all callers.
24055 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
24056 the decl does not already exist. Call cgraph_get_create_node instead
24058 (cgraph_get_create_node): New function.
24059 (cgraph_same_body_alias): Update comment.
24060 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
24061 assert it does not return NULL.
24062 (cgraph_update_edges_for_call_stmt): Likewise.
24063 (cgraph_clone_edge): Likewise.
24064 (cgraph_create_virtual_clone): Likewise.
24065 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
24066 instead of cgraph_node.
24067 (cgraph_add_new_function): Call cgraph_create_node or
24068 cgraph_get_create_node instead of cgraph_node.
24069 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
24070 instead of cgraph_node.
24071 (record_eh_tables): Likewise.
24072 (mark_address): Likewise.
24073 (mark_load): Likewise.
24074 (build_cgraph_edges): Call cgraph_get_create_node instead
24076 (rebuild_cgraph_edges): Likewise.
24077 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
24078 instead of cgraph_node.
24079 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
24081 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
24082 cgraph_create_node instead of cgraph_node.
24083 * c-decl.c (finish_function): Call cgraph_get_create_node instead
24085 * lto-cgraph.c (input_node): Likewise.
24086 * lto-streamer-in.c (input_function): Likewise.
24087 * varasm.c (mark_decl_referenced): Likewise.
24088 (assemble_alias): Likewise.
24090 2011-04-12 Martin Jambor <mjambor@suse.cz>
24092 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
24093 instead of cgraph_node and assert it does not return NULL.
24094 * lto-streamer-in.c (lto_read_body): Likewise.
24095 * omp-low.c (new_omp_context): Likewise.
24096 (create_task_copyfn): Likewise.
24097 * tree-emutls.c (lower_emutls_function_body): Likewise.
24098 * matrix-reorg.c (transform_allocation_sites): Likewise.
24100 2011-04-12 Jakub Jelinek <jakub@redhat.com>
24103 * c-typeck.c (build_asm_expr): Error out on attempts to use
24104 void type outputs or inputs for constraints that allow reg or
24105 don't allow memory.
24107 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
24108 Richard Earnshaw <rearnsha@arm.com>
24111 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
24112 to use sign-magnitude offsets. Reject unsupported unaligned
24113 cases. Add detailed description in comments.
24114 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
24115 condition from TARGET_32BIT to TARGET_ARM.
24117 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
24119 * tree.h (struct typed_tree): New.
24120 (struct tree_common): Include it instead of tree_base.
24121 (TREE_TYPE): Update for new location of type field.
24122 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
24123 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
24124 (union tree_node): Add typed field.
24125 * treestruct.def (TS_TYPED): New.
24126 * lto-streamer.c (check_handled_ts_structures): Handle it.
24127 * tree.c (MARK_TS_TYPED): New macro.
24128 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
24130 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
24132 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
24133 (force_nonfallthru): Do not alter the loop nest if no basic block
24136 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
24138 * config/i386/sse.md (VI): New mode iterator.
24139 (SSEMODEI): Remove.
24140 (AVX256MODEI): Ditto.
24141 (AVXMODEF4P): Ditto.
24142 (avxvecpsmode): Ditto.
24143 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
24144 (sse2_andnot<mode>3): New expander.
24145 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
24146 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
24147 (<any_logic:code><mode>3): Use VI mode iterator.
24148 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
24149 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
24150 (*andnottf3): Handle AVX three-operand constraints.
24151 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
24153 2011-04-11 Joseph Myers <joseph@codesourcery.com>
24154 Robert Millan <rmh@gnu.org>
24156 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
24157 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
24158 GNU_USER_DYNAMIC_LINKER64): Define.
24159 (REG_NAME): Don't undefine.
24160 (MD_UNWIND_SUPPORT): Undefine.
24161 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
24162 (REG_NAME): Don't undefine.
24163 (MD_UNWIND_SUPPORT): Undefine.
24164 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
24166 2011-04-11 Joseph Myers <joseph@codesourcery.com>
24168 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
24169 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
24171 2011-04-11 Xinliang David Li <davidxl@google.com>
24173 * value-profile.c (check_ic_target): New function.
24174 (gimple_ic_transform): Sanity check indirect call target.
24175 * gimple-low.c (gimple_check_call_args): Interface change.
24176 (gimple_check_call_matching_types): New function.
24177 * tree-inline.c (tree_can_inline_p): Call new function.
24179 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
24181 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
24182 tree-pretty-print.h & realmpfr.h.
24184 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
24186 PR middle-end/48464
24187 * ira.c (setup_pressure_classes): Fix typo in loop condition.
24188 (setup_allocno_and_important_classes): Ditto.
24190 2011-04-11 Joseph Myers <joseph@codesourcery.com>
24192 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
24193 GNU_USER_DYNAMIC_LINKER.
24194 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
24195 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24196 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
24197 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
24198 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
24199 GNU_USER_TARGET_OS_CPP_BUILTINS.
24200 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
24201 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24202 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
24203 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24204 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
24205 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
24206 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
24207 GNU_USER_TARGET_OS_CPP_BUILTINS.
24208 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
24209 GNU_USER_DYNAMIC_LINKER.
24210 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
24211 GNU_USER_TARGET_OS_CPP_BUILTINS.
24212 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
24213 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24214 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
24215 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24216 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
24217 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
24218 GNU_USER_DYNAMIC_LINKER64): Remove.
24219 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
24220 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24221 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
24222 GNU_USER_DYNAMIC_LINKER.
24223 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
24224 GNU_USER_TARGET_OS_CPP_BUILTINS.
24225 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
24226 GNU_USER_TARGET_OS_CPP_BUILTINS.
24227 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
24228 to GNU_USER_TARGET_OS_CPP_BUILTINS.
24229 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
24230 GNU_USER_TARGET_OS_CPP_BUILTINS.
24231 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
24232 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
24233 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
24234 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
24235 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24236 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
24237 GNU_USER_DYNAMIC_LINKER.
24238 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
24239 GNU_USER_TARGET_OS_CPP_BUILTINS.
24240 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
24241 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24242 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
24243 GNU_USER_DYNAMIC_LINKER.
24244 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
24245 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24246 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
24247 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24248 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
24249 GNU_USER_DYNAMIC_LINKER.
24250 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
24251 GNU_USER_DYNAMIC_LINKERN32.
24252 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
24253 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
24254 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
24255 GNU_USER_DYNAMIC_LINKER32.
24256 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
24257 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24258 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
24259 GNU_USER_DYNAMIC_LINKER.
24260 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
24261 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24262 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
24263 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24264 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
24265 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
24266 GNU_USER_DYNAMIC_LINKER32.
24267 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
24268 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
24269 GNU_USER_DYNAMIC_LINKER.
24270 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
24271 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24272 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
24273 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
24274 GNU_USER_DYNAMIC_LINKER64.
24275 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
24276 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24277 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
24278 GNU_USER_DYNAMIC_LINKER.
24279 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
24280 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24281 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
24282 GNU_USER_DYNAMIC_LINKER.
24283 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
24284 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24285 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
24286 GNU_USER_DYNAMIC_LINKER32.
24287 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
24288 GNU_USER_DYNAMIC_LINKER64.
24289 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
24290 GNU_USER_DYNAMIC_LINKER64.
24291 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
24292 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24293 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
24294 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
24295 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
24297 2011-04-11 Joseph Myers <joseph@codesourcery.com>
24299 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
24300 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
24301 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
24302 GNU_USER_DYNAMIC_LINKER.
24303 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
24304 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
24305 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
24306 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
24307 GNU_USER_DYNAMIC_LINKER64.
24308 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
24309 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
24310 GNU_USER_LINK_EMULATION.
24311 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
24312 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
24313 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
24314 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
24315 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
24316 CPP_SPEC, CC1_SPEC): Remove.
24317 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
24318 (GNU_USER_DYNAMIC_LINKER): Define.
24319 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
24320 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
24321 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
24322 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
24323 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
24324 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
24325 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
24326 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
24327 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
24328 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
24329 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
24330 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
24331 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
24332 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
24333 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
24334 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
24335 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
24336 GNU_USER_DYNAMIC_LINKER.
24337 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
24338 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
24339 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
24340 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
24341 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
24342 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
24343 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
24344 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
24345 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
24346 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
24348 2011-04-11 Kai Tietz <ktietz@redhat.com>
24352 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
24353 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
24355 (ix86_is_msabi_thiscall): Removed.
24356 (ix86_is_type_thiscall): Likewise.
24357 (ix86_get_callcvt): New function.
24358 (ix86_comp_type_attributes): Simplify check.
24359 (ix86_function_regparm): Use ix86_get_callcvt for calling
24360 convention attribute checks.
24361 (ix86_return_pops_args): Likewise.
24362 (ix86_static_chain): Likewise.
24363 (x86_this_parameter): Likewise.
24364 (x86_output_mi_thunk): Likewise.
24365 (ix86_function_type_abi): Optimize check for types without attributes.
24366 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
24367 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
24368 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
24370 (IX86_BASE_CALLCVT): Helper macro.
24371 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
24372 Use ix86_get_callcvt for calling convention attribute checks and avoid
24373 symbol-decoration for stdcall in TARGET_RTD case.
24374 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
24376 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
24379 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
24381 * config/i386/sse.md (VI_128): New mode iterator.
24382 (VI12_128): Rename from SSEMODE12.
24383 (VI14_128): Rename from SSEMODE14.
24384 (VI124_128): New mode iterator.
24385 (VI24_128): Rename from SSEMODE248.
24386 (VI248_128): Rename from SSEMODE248.
24387 (SSEMODE124C8): Remove.
24388 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
24389 (*sse2_<plusminus_insn><mode>3): Merge with
24390 *avx_<plusminus_insn><mode>3.
24391 (*mulv8hi3): Merge with *avx_mulv8hi3.
24392 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
24393 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
24394 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
24395 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
24396 (ashr<mode>3): Merge with *avx_ashr<mode>3.
24397 (lshr<mode>3): Merge with *avx_lshr<mode>3.
24398 (ashl<mode>3): Merge with *avx_ashl<mode>3.
24399 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
24400 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
24401 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
24402 (*<smaxmin:code>v8hi3): Ditto.
24403 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
24404 (*<smaxmin:code>v16qi3): Ditto.
24405 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
24406 (*sse2_eq<mode>3): Ditto.
24407 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
24408 (*sse2_gt<mode>3): Ditto.
24409 (vcondv2di): Split out of vcond<mode>.
24410 (vconduv2di): Split out of vcondu<mode>.
24412 2011-04-11 Richard Guenther <rguenther@suse.de>
24414 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
24415 before calling tree_low_cst.
24417 2011-04-11 Richard Guenther <rguenther@suse.de>
24419 * stor-layout.c (layout_type): Compute all array index size operations
24420 in the original type.
24421 (initialize_sizetypes): Add comment.
24422 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
24424 2011-04-11 Joseph Myers <joseph@codesourcery.com>
24426 * common.opt (Tbss=, Tdata=, Ttext=): New options.
24428 2011-04-11 Martin Jambor <mjambor@suse.cz>
24430 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
24431 of cgraph_node, handle NULL return value.
24432 (cgraph_global_info): Likewise.
24433 (cgraph_rtl_info): Likewise.
24434 * tree-inline.c (estimate_num_insns): Likewise.
24435 * gimplify.c (unshare_body): Likewise.
24436 (unvisit_body): Likewise.
24437 (gimplify_body): Likewise.
24438 * predict.c (optimize_function_for_size_p): Likewise.
24439 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
24440 (call_may_clobber_ref_p_1): Likewise.
24441 * varasm.c (function_section_1): Likewise.
24442 (assemble_start_function): Likewise.
24444 2011-04-11 Martin Jambor <mjambor@suse.cz>
24446 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
24448 * final.c (rest_of_clean_state): Likewise.
24449 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
24450 * passes.c (pass_init_dump_file): Likewise.
24451 (execute_all_ipa_transforms): Likewise.
24452 (function_called_by_processed_nodes_p): Likewise.
24453 * predict.c (maybe_hot_frequency_p): Likewise.
24454 (probably_never_executed_bb_p): Likewise.
24455 (compute_function_frequency): Likewise.
24456 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
24457 (unnest_nesting_tree_1): Likewise.
24458 (lower_nested_functions): Likewise.
24459 * tree-optimize.c (execute_fixup_cfg): Likewise.
24460 (tree_rest_of_compilation): Likewise.
24461 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
24462 * tree-sra.c (ipa_early_sra): Likewise.
24463 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
24464 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
24465 * ipa.c (record_cdtor_fn): Likewise.
24466 * ipa-inline.c (cgraph_early_inlining): Likewise.
24467 (compute_inline_parameters_for_current): Likewise.
24468 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
24469 * ipa-pure-const.c (local_pure_const): Likewise.
24470 * ipa-split.c (split_function): Likewise.
24471 (execute_split_functions): Likewise.
24472 * cgraphbuild.c (build_cgraph_edges): Likewise.
24473 (rebuild_cgraph_edges): Likewise.
24474 (cgraph_rebuild_references): Likewise.
24475 (remove_cgraph_callee_edges): Likewise.
24476 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
24477 (verify_cgraph_node): Likewise.
24478 (cgraph_analyze_functions): Likewise.
24479 (cgraph_preserve_function_body_p): Likewise.
24480 (save_inline_function_body): Likewise.
24481 (save_inline_function_body): Likewise.
24482 * tree-inline.c (copy_bb): Likewise.
24483 (optimize_inline_calls): Likewise.
24485 2011-04-11 Martin Jambor <mjambor@suse.cz>
24487 PR tree-optimization/48195
24488 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
24489 ipa_check_create_edge_args.
24490 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
24491 ipa_check_create_edge_args.
24492 * ipa-inline.c (inline_generate_summary): Do not call
24493 ipa_check_create_node_params and ipa_check_create_edge_args.
24494 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
24495 ipa_check_create_edge_args.
24497 2011-04-09 Anatoly Sokolov <aesok@post.ru>
24499 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
24501 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
24502 * function.c (record_hard_reg_sets): Likewise.
24503 * ira.c (compute_regs_asm_clobbered): Likewise.
24504 * sched-deps.c (sched_analyze_1): Likewise.
24505 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
24507 2011-04-09 Xinliang David Li <davidxl@google.com>
24509 PR tree-optimization/PR48484
24510 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
24511 has_valid_pred lazily
24513 2011-04-09 Duncan Sands <baldrick@free.fr>
24515 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
24517 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
24519 * combine.c (combine_validate_cost): Adjust comments. Set registered
24520 cost of I0 to zero at the end, if any.
24522 2011-04-08 Xinliang David Li <davidxl@google.com>
24524 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
24525 to insane profile data.
24527 2011-04-08 Xinliang David Li <davidxl@google.com>
24529 * ipa-cp.c (ipcp_update_profiling): Correct
24530 negative scale factor due to insane profile data.
24532 2011-04-08 Xinliang David Li <davidxl@google.com>
24534 * final.c (dump_basic_block_info): New function.
24535 (final): Dump basic block.
24536 (final_scan_insn): Remove old dump.
24538 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
24541 * config.gcc (i386-*-freebsd): Disable unwind table generation for
24544 2011-04-08 Michael Matz <matz@suse.de>
24546 PR middle-end/48389
24547 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
24549 (rebuild_jump_labels): Call rebuild_jump_labels_1.
24550 * rtl.h (rebuild_jump_labels_chain): Declare.
24551 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
24552 insns inserted on edges.
24554 2011-04-08 Joseph Myers <joseph@codesourcery.com>
24556 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
24557 * config/arm/arm-arches.def: New.
24558 * config/arm/arm-opts.h: New.
24559 * config/arm/genopt.sh: New.
24560 * config/arm/arm-tables.opt: New (generated).
24561 * config/arm/arm.c (arm_handle_option, arm_target_help,
24562 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
24563 (all_architectures): Get most table contents from arm-arches.def.
24564 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
24565 arm_selected_tune here.
24566 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
24567 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
24568 (march=, mcpu=, mtune=): Use Enum and Var.
24569 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
24570 (arm.o): Update dependencies.
24572 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
24574 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
24576 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
24577 (write_typed_alloc_defns): Likewise.
24578 (main): Calls write_typed_alloc_defns with output_header.
24580 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
24582 PR inline-asm/48435
24583 * ira-color.c (setup_profitable_hard_regs): Add comments.
24584 Don't take prohibited hard regs into account.
24585 (setup_conflict_profitable_regs): Rename to
24586 get_conflict_profitable_regs.
24587 (check_hard_reg_p): Check prohibited hard regs.
24589 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
24591 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
24592 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
24593 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
24595 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24598 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
24599 move from floating point to shift amount register.
24600 (emit_move_sequence): Remove secondary reload support for floating
24601 point to shift amount amount register copies.
24602 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
24603 amount register copies.
24604 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
24605 register, return false if mode isn't a scalar integer mode.
24606 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
24608 2011-04-08 Richard Guenther <rguenther@suse.de>
24610 * gimple.c (gimple_call_flags): Remove kludge.
24612 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
24614 * sel-sched.c (sel_region_init): Move call to
24615 sel_setup_region_sched_flags after setup_current_loop_nest.
24617 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
24619 PR rtl-optimization/48272
24620 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
24621 init_insn_reg_pressure_info. Adjust a caller.
24622 * sched-int.h (init_insn_reg_pressure_info): Declare.
24623 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
24624 when sched-pressure is enabled.
24626 2011-04-08 Richard Guenther <rguenther@suse.de>
24628 * gimple.c (gimple_set_modified): Do not queue calls to
24629 MODIFIED_NORETURN_CALLS here ...
24630 * tree-ssa-operands.c (update_stmt_operands): ... but here.
24632 2011-04-08 Richard Guenther <rguenther@suse.de>
24635 * toplev.c (lang_dependent_init): Do not open asm_out_file
24636 in WPA mode, nor perform debug machinery initialization.
24637 (finalize): Do not unlink asm_out_file in WPA mode.
24639 2011-04-08 Richard Guenther <rguenther@suse.de>
24641 * gimple.h (gimple_call_fntype): New function.
24642 (gimple_call_return_type): Use it.
24643 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
24644 * gimple-low.c (gimple_check_call_args): Likewise.
24645 * gimple.c (gimple_call_flags): Likewise.
24646 (gimple_call_arg_flags): Likewise.
24647 (gimple_call_return_flags): Likewise.
24648 * tree-cfg.c (verify_gimple_call): Likewise.
24649 (do_warn_unused_result): Likewise.
24650 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
24651 * value-prof.c (gimple_ic_transform): Fix fndecl check.
24653 2011-04-08 Dmitry Melnik <dm@ispras.ru>
24655 PR rtl-optimization/48235
24656 * sel-sched.c (code_motion_process_successors): Recompute the last
24657 insn in basic block if control flow changed.
24658 (code_motion_path_driver): Ditto. Recompute the first insn as well.
24659 Update condition for ilist_remove.
24661 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
24663 PR rtl-optimization/48302
24664 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
24665 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
24666 it to record added preheader blocks.
24667 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
24668 on to sel_add_loop_preheaders.
24669 (sel_region_init): Move call to setup_current_loop_nest after
24672 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
24675 * cfgloop.h (loop_has_exit_edges): New helper.
24676 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
24678 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
24679 that have no exit edges.
24681 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
24683 PR rtl-optimization/48442
24684 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
24685 all callers. Adjust assert.
24687 2011-04-08 Jakub Jelinek <jakub@redhat.com>
24689 PR tree-optimization/48377
24690 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
24691 is_packed to true even for types with smaller TYPE_ALIGN than
24694 2011-04-08 Richard Guenther <rguenther@suse.de>
24697 * doc/tm.texi: Re-generate.
24699 2011-04-08 Wei Guozhi <carrot@google.com>
24702 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
24703 * config/arm/arm.c (arm_attr_length_push_multi): New function.
24704 * config/arm/arm.md (*push_multi): Change the length computation to
24707 2011-04-08 Anatoly Sokolov <aesok@post.ru>
24709 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
24710 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
24711 * doc/tm.texi: Regenerate.
24712 * system.h (ASM_OUTPUT_BSS): Poison.
24713 * varasm.c (asm_output_bss): Remove function.
24714 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
24716 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
24717 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
24718 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
24719 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
24721 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
24723 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
24725 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
24727 2011-04-07 Joseph Myers <joseph@codesourcery.com>
24729 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
24732 2011-04-07 Joseph Myers <joseph@codesourcery.com>
24734 * config/m68k/m68k.c (m68k_handle_option): Don't handle
24735 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
24736 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
24738 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
24739 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
24740 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
24741 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
24742 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
24743 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
24744 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
24745 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
24746 options. Don't map other m68k options manually. Don't handle
24747 old-style options as canonical.
24748 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
24749 * doc/install.texi (m68k-*-*): Document binutils version requirement.
24751 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
24753 * basic-block.h (force_nonfallthru): Move to...
24754 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
24755 (force_nonfallthru): ...here.
24756 * cfghooks.c (force_nonfallthru): New function.
24757 * cfgrtl.c (force_nonfallthru): Rename into...
24758 (rtl_force_nonfallthru): ...this.
24759 (commit_one_edge_insertion): Do not set AUX field.
24760 (commit_edge_insertions): Do not discover new basic blocks.
24761 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
24762 (cfg_layout_rtl_cfg_hooks): Likewise.
24763 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
24764 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
24765 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
24767 2011-04-07 Anatoly Sokolov <aesok@post.ru>
24769 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
24772 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
24774 * config/i386/sse.md: Update copyright year.
24775 (avxcvtvecmode): Remove.
24776 (sse_movhlps): Merge with *avx_movhlps.
24777 (sse_movlhps): Merge with *avx_movlhps.
24778 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
24779 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
24780 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
24781 (sse_loadhps): Merge with *avx_loadhps.
24782 (sse_storelps): Merge with *avx_storelps.
24783 (sse_loadlps): Merge with *avx_loadlps.
24784 (sse_movss): Merge with *avx_movss.
24785 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
24786 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
24787 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
24788 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
24789 (vec_set<mode>_0): Ditto.
24790 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
24791 (sse4_1_insertps): Merge with *avx_insertps.
24792 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
24793 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
24794 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
24795 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
24796 (sse2_storehpd): Merge with *avx_storehpd.
24797 (sse2_loadhpd): Merge with *avx_loadhpd.
24798 (sse2_loadlpd): Merge with *avx_loadlpd.
24799 (sse2_movsd): Merge with *avx_movsd.
24800 (*vec_concatv2df): Merge with *vec_concatv2df.
24802 2011-04-07 Jakub Jelinek <jakub@redhat.com>
24805 * combine.c (combine_instructions): Add last_combined_insn,
24806 update it if insn is after it, pass it to all try_combine calls.
24807 (try_combine): Add last_combined_insn parameter, pass it instead of
24808 i3 to propagate_for_debug.
24810 2011-04-07 Nick Clifton <nickc@redhat.com>
24812 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
24813 to handle MDR <-> data register transfers.
24814 (movhi_internal): Likewise.
24816 2011-04-07 Alan Modra <amodra@gmail.com>
24818 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
24819 previous stack info.
24821 2011-04-07 Tom de Vries <tom@codesourcery.com>
24824 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
24825 flow_find_cross_jump. Swap variables to implement backward replacement.
24826 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
24828 2011-04-07 Tom de Vries <tom@codesourcery.com>
24831 * cfgcleanup.c (walk_to_nondebug_insn): New function.
24832 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
24834 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
24835 src1 or src2. Redirect edges to the last basic block. Update
24836 frequency and count on multiple basic blocks in case of fallthru.
24838 2011-04-07 Tom de Vries <tom@codesourcery.com>
24841 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
24843 (old_insns_match_p): Change return type. Replace return false/true
24844 with return dir_none/dir_both. Use can_replace_by.
24845 (flow_find_cross_jump): Add dir_p parameter. Init replacement
24846 direction from dir_p. Register replacement direction in dir, last_dir
24847 and afterlast_dir. Handle new return type of old_insns_match_p using
24848 merge_dir. Return replacement direction in dir_p.
24849 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
24850 return type of old_insns_match_p.
24851 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
24852 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
24853 flow_find_cross_jump.
24854 * basic-block.h (enum replace_direction): New type.
24855 (flow_find_cross_jump): Add parameter to declaration.
24857 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
24859 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
24860 (AVXMODEDCVTPS2DQ): Ditto.
24861 (VEC_FLOAT_MODE): Ditto.
24862 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
24863 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
24864 (<any_logic:code><mode>3): Use VF mode iterator.
24865 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
24866 Use VF mode iterator.
24867 (copysign<mode>3): Use VF mode iterator.
24868 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
24869 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
24870 (*<any_logic:code><MODEF:mode>3): Merge with
24871 *avx_<any_logic:code><MODEF:mode>3.
24872 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
24873 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
24874 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
24875 (avx_cvtdq2ps<avxmodesuffix>): Remove.
24876 (sse2_cvtdq2ps): Use %v modifier.
24877 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
24878 (avx_cvtps2dq<avxmodesuffix>): Remove.
24879 (sse2_cvtps2dq): Use %v modifier.
24880 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
24881 (avx_cvttps2dq<avxmodesuffix>): Remove.
24882 (sse2_cvttps2dq): Use %v modifier.
24883 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
24884 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
24885 (sse2_cvtsd2siq): Fix insn template.
24886 (sse2_cvtsd2siq_2): Ditto.
24887 (sse2_cvttsd2siq): Ditto.
24888 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
24889 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
24891 2011-04-06 Joseph Myers <joseph@codesourcery.com>
24893 * gcov-io.c: Use GCC Runtime Library Exception.
24895 2011-04-06 Jakub Jelinek <jakub@redhat.com>
24898 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
24899 as base_reg whatever register reg has been eliminated to, instead
24900 of hardcoding STACK_POINTER_REGNUM.
24902 2011-04-06 Joseph Myers <joseph@codesourcery.com>
24904 * doc/tm.texi.in: Document C target hooks as separate from general
24906 * doc/tm.texi: Regenerate.
24907 * genhooks.c (struct hook_desc): Add docname field.
24908 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
24910 (hook_array): Include c-target.def.
24911 (emit_documentation): Use docname field in output.
24912 (emit_init_macros): Take docname argument. Only emit definitions
24913 for hooks matching docname.
24914 (main): Expect additional arguments in all cases. Pass argument
24915 to emit_init_macros.
24916 * target.def: Move initial macro definitions and comments to
24917 target-hooks-macros.h.
24918 (gcc_targetcm): Move to c-family/c-target.def.
24919 * target.h (targetcm): Move declaration to c-family/c-target.h.
24920 * targhooks.c (default_handle_c_option): Move to
24922 * targhooks.h (default_handle_c_option): Move declaration to
24923 c-family/c-common.h.
24924 * target-hooks-macros.h: New file.
24925 * config.gcc (target_has_targetcm): Define and use to add to
24926 c_target_objs and cxx_target_objs.
24927 * config/default-c.c: New file.
24928 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
24929 of target.h and target-def.h.
24930 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
24931 (darwin_objc_construct_string, darwin_cfstring_ref_p,
24932 darwin_check_cfstring_format_arg): Make static.
24933 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
24934 TARGET_STRING_OBJECT_REF_TYPE_P,
24935 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
24936 * config/darwin-protos.h (darwin_objc_construct_string,
24937 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
24939 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
24940 TARGET_STRING_OBJECT_REF_TYPE_P,
24941 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
24942 * config/t-darwin (darwin-c.o): Update dependencies.
24943 * system.h (TARGET_HAS_TARGETCM): Poison.
24944 * Makefile.in (TARGET_H): Update.
24945 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
24946 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
24947 (default-c.o): New target.
24948 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
24949 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
24950 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
24952 (build/genhooks.o): Update dependencies.
24954 2011-04-06 Richard Guenther <rguenther@suse.de>
24956 * ipa-inline.c (enum inlining_mode): Remove.
24957 (cgraph_flatten): Use some other token.
24958 (cgraph_edge_early_inlinable_p): New function, split out from ...
24959 (cgraph_perform_always_inlining): New function, split out from ...
24960 (cgraph_decide_inlining_incrementally): ... here.
24961 (cgraph_mark_inline_edge): Adjust.
24962 (cgraph_early_inlining): Re-structure.
24963 (pass_early_inline): Require SSA form.
24965 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
24966 Julian Brown <julian@codesourcery.com>
24967 Mark Shinwell <shinwell@codesourcery.com>
24969 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
24970 LO_REGS only for Thumb-1.
24971 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
24972 be used in short instructions when optimising for size on Thumb-2.
24974 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
24976 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
24977 associated with user returns to be preserved.
24979 2011-04-06 Tristan Gingold <gingold@adacore.com>
24981 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
24982 symbol_queue_size, DBXOUT_DECR_NESTING,
24983 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
24984 if XCOFF_DEBUGGING_INFO.
24986 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
24988 * config/i386/i386.md (attribute isa): New.
24989 (attribute enabled): New.
24990 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
24991 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
24992 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
24993 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
24994 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
24995 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
24996 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
24997 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
24999 * config/i386/sse.md (VF): New mode iterator.
25003 (SSEMODEF4): Remove.
25004 (attribute sse): Handle V8SF and V4DF modes.
25005 (<absneg:code><mode>2): Use VF mode iterator.
25006 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
25008 (<plusminus_insn><mode>3): Use VF mode iterator.
25009 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
25010 Use VF mode iterator.
25011 (<sse>_vm<plusminus_insn><mode>3): Merge with
25012 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
25013 (mul<mode>3): Use VF mode iterator.
25014 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
25015 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
25017 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
25018 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
25019 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
25020 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
25022 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
25023 Use VF1 mode iterator.
25024 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
25025 (sqrt<VF2:mode>2): New expander.
25026 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
25027 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
25028 and sqrtv2df2. Use VF mode iterator.
25029 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
25031 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
25032 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
25033 Use VF1 mode iterator.
25034 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
25035 (<smaxmin:code><mode>3): Use VF mode iterator.
25036 (*<smaxmin:code><mode>3_finite): Merge with
25037 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
25038 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
25039 (<sse>_vm<smaxmin:code><mode>2): Merge with
25040 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
25041 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
25043 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
25045 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
25046 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
25047 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
25048 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
25049 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
25051 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
25052 Use VF_128 mode iterator.
25053 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
25055 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
25056 VF_128 mode iterator.
25057 (vcond<mode>): Use VF mode iterator.
25058 * config/i386/predicates.md (sse_comparison_operator): Merge with
25059 avx_comparison_float_operator. Do not declare as special_predicate.
25060 * config/i386/i386.c (struct builtin_description): Update for renamed
25062 (ix86_expand_args_builtin): Ditto.
25063 (ix86_expand_sse_compare_mask): Ditto.
25065 2011-04-06 Richard Guenther <rguenther@suse.de>
25067 * tree-inline.c (estimate_num_insns): For calls simply account
25068 for all passed arguments and a used return value.
25070 2011-04-06 Richard Guenther <rguenther@suse.de>
25072 PR tree-optimization/47663
25073 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
25074 call_stmt_time fields.
25075 (cgraph_edge_inlinable_p): Declare.
25076 (cgraph_edge_recursive_p): New inline function.
25077 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
25078 (cgraph_clone_edge): Copy it.
25079 * ipa-inline.c (cgraph_estimate_edge_time): New function.
25080 Account for call stmt time.
25081 (cgraph_estimate_time_after_inlining): Take edge argument.
25082 (cgraph_estimate_edge_growth): Account call stmt size.
25083 (cgraph_estimate_size_after_inlining): Take edge argument.
25084 (cgraph_mark_inline_edge): Adjust.
25085 (cgraph_check_inline_limits): Likewise.
25086 (cgraph_recursive_inlining_p): Remove.
25087 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
25088 (cgraph_decide_recursive_inlining): Take edge argument and
25090 (cgraph_decide_inlining_of_small_functions): Do not avoid
25091 diags for recursive inlining here.
25092 (cgraph_flatten): Adjust.
25093 (cgraph_decide_inlining_incrementally): Likewise.
25094 (estimate_function_body_sizes): Remove call cost handling.
25095 (compute_inline_parameters): Initialize caller edge call costs.
25096 (cgraph_estimate_edge_growth): New function.
25097 (cgraph_estimate_growth): Use it.
25098 (cgraph_edge_badness): Likewise.
25099 (cgraph_check_inline_limits): Take an edge argument.
25100 (cgraph_decide_inlining_of_small_functions): Adjust.
25101 (cgraph_decide_inlining): Likewise.
25102 * tree-inline.c (estimate_num_insns): Only account for call
25103 return value if it is used.
25104 (expand_call_inline): Avoid diagnostics on recursive inline
25106 * lto-cgraph.c (lto_output_edge): Output edge call costs.
25107 (input_edge): Input edge call costs.
25109 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25111 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
25113 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
25115 * doc/invoke.texi (Spec Files): Fix typo.
25117 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
25119 * profile.c (branch_prob): Move declaration of local variable. Remove
25120 obsolete ??? comment. Expand the location explicitly instead of using
25121 the LOCATION_FILE and LOCATION_LINE macros.
25123 2011-04-06 Wei Guozhi <carrot@google.com>
25126 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
25127 (arm_cond_branch): Likewise.
25128 (arm_cond_branch_reversed): Likewise.
25129 (arm_jump): Likewise.
25130 (push_multi): Likewise.
25131 * config/arm/constraints.md (Py): New constraint.
25133 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
25136 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
25138 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
25139 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
25140 #ifdef DBX_DEBUGGING_INFO.
25142 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
25145 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
25146 if old and new states differ.
25148 2011-04-05 Joseph Myers <joseph@codesourcery.com>
25150 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
25151 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
25152 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
25153 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
25154 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
25155 mcfv4e): Use Alias.
25156 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
25157 ColdFire options to -mcpu= options.
25159 2011-04-05 Jeff Law <law@redhat.com>
25161 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
25162 check if BB is a successor of LOOP->header and return
25163 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
25165 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
25167 * cprop.c (struct reg_use): Remove.
25168 (reg_use_table): Make an array of RTX.
25169 (find_used_regs, constprop_register, local_cprop_pass,
25170 bypass_block): Simplify users of reg_use_table.
25171 (cprop_insn): Likewise. Iterate if copy propagation succeeded
25172 on one of the uses found by find_used_regs.
25174 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
25177 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
25180 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
25182 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
25184 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
25186 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
25188 PR middle-end/48441
25189 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
25191 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
25193 * combine.c: Include obstack.h.
25194 (struct insn_link): Define.
25195 (uid_log_links): Adjust type.
25196 (FOR_EACH_LOG_LINK): New macro.
25197 (insn_link_obstack): Declare.
25198 (alloc_insn_link): Define.
25199 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
25200 type of link variables.
25201 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
25202 (try_combine, record_promoted_values, distribute_notes): Likewise.
25203 (distribute_links): Likewise. Tweak prototype.
25204 (clear_log_links): Delete.
25205 (adjust_for_new_dest): Call alloc_insn_link.
25206 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
25208 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
25210 * gcse.c (modify_mem_list): Convert to an array of VECs.
25211 (canon_modify_mem_list, compute_transp): Tweak formatting.
25212 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
25213 (load_killed_in_block_p): Likewise.
25214 (record_last_mem_set_info): Likewise.
25215 (clear_modify_mem_tables): Likewise.
25217 2011-04-05 Tom de Vries <tom@codesourcery.com>
25219 PR middle-end/48461
25220 * function.c (emit_use_return_register_into_block): Only define if
25223 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
25225 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
25227 2011-04-05 Joseph Myers <joseph@codesourcery.com>
25229 * config/rx/rx-opts.h: New.
25230 * config/rx/rx.c (rx_cpu_type): Remove.
25231 (rx_handle_option): Don't assert that global structures are in
25232 use. Access variables via opts pointer. Defer most handling of
25233 OPT_mint_register_. Use error_at.
25234 (rx_option_override): Handle deferred OPT_mint_register_ here.
25235 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
25236 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
25237 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
25238 (rx_cpu_types): New Enum and EnumValue entries.
25239 (mint-register=): Use Defer and use Var accordingly.
25241 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
25243 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
25244 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
25245 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
25247 (debug_free_queue, debug_nesting, symbol_queue_index):
25249 * dbxout.c: ...to here. Make static.
25251 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
25253 * gcse.c (modify_pair): Define. Define a VEC of it.
25254 (canon_modify_mem_list): Convert to an array of VECs.
25255 (free_insn_expr_list_list): Delete.
25256 (clear_modify_mem_tables): Call VEC_free instead.
25257 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
25258 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
25259 (canon_list_insert, compute_transp): Likewise.
25261 2011-04-05 Tom de Vries <tom@codesourcery.com>
25264 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
25267 2011-04-05 Tom de Vries <tom@codesourcery.com>
25270 * function.c (emit_use_return_register_into_block): New function.
25271 (thread_prologue_and_epilogue_insns): Use
25272 emit_use_return_register_into_block.
25274 2011-04-05 Tom de Vries <tom@codesourcery.com>
25277 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
25280 2011-04-05 Tom de Vries <tom@codesourcery.com>
25282 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
25284 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
25286 * config/arm/arm.md (define_constants for unspec): Replace with
25288 (define_constants for unspecv): Replace with define_c_enum.
25289 * config/arm/neon.md (define_constants for unspec): Replace with
25292 2011-04-04 Richard Henderson <rth@redhat.com>
25295 * dwarf2out.c (output_line_info): Always emit line info from
25296 at least one section.
25297 (dwarf2out_init): Create text_section_line_info here ...
25298 (set_cur_line_info_table): ... not here.
25300 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
25303 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
25306 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
25308 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
25310 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
25311 (expr_equiv_p): Remove.
25312 (insert_set_in_table): Look at <dest, src> pair instead of expr.
25313 (hash_scan_set): Update call to insert_set_in_table.
25314 (dump_hash_table): Dump <dest, src> pair.
25315 (lookup_set): Simplify. Lookup <dest, src> pair.
25316 (compute_transp): Remove, fold heavily simplified code into...
25317 (compute_local_properties): ...here. Expect COMP and TRANSP
25319 (find_avail_set): Take set directly from struct expr.
25320 (find_bypass-set): Likewise.
25321 (bypass_block): Likewise.
25322 (cprop_insn): Likewise. Remove redundant INSN_P test.
25324 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
25325 checks on form of COND from find_implicit_sets to here.
25326 (find_implicit_sets): Cleanup control flow. Split critical edges
25327 if it exposes implicit sets. Allocate/resize implicit_sets as
25329 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
25330 changed something. Run df_analyze after find_implicit_sets if any
25331 edges were split. Do not allocate implicit_sets here.
25333 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
25334 (gcse_obstack): Renamed to cprop_obstack.
25335 (GNEW, GNEWVEC, GNEWVAR): Remove.
25337 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
25338 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
25339 (gcse_alloc): Likewise, and rename to cprop_alloc.
25340 (alloc_gcse_men, free_gcse_mem): Remove.
25341 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
25342 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
25343 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
25345 * cprop.c (oprs_not_set_p): Remove.
25346 (mark_set, mark_clobber): Remove.
25347 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
25348 (reg_not_set_p): New function.
25349 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
25350 (cprop_insn): Likewise.
25351 (cprop_jump): Use FOR_EACH_EDGE.
25353 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
25356 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
25357 (rank_for_schedule): Use scheduled_insns vector instead of
25358 last_scheduled_insn.
25359 (ok_for_early_queue_removal): Likewise.
25360 (queue_to_ready): Search forward in nonscheduled_insns_begin if
25362 (choose_ready): Likewise.
25363 (commit_schedule): Use VEC_iterate.
25364 (schedule_block): Initialize nonscheduled_insns_begin. If we have
25365 a dbg_cnt, use it and ensure the first insn is in the ready list.
25366 (haifa_sched_init): Allocate scheduled_insns.
25367 (sched_extend_ready_list): Don't allocate it; reserve space.
25368 (haifa_sched_finish): Free it.
25370 2011-04-04 Joseph Myers <joseph@codesourcery.com>
25372 * optc-gen.awk: Always remove type from Variable entry before
25373 recording in var_seen.
25375 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
25377 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
25378 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
25379 call to tidy_fallthru_edges.
25381 2011-04-04 Joseph Myers <joseph@codesourcery.com>
25383 * doc/options.texi (ToLower): Document.
25384 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
25385 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
25386 * opts.h (cl_option): Add cl_tolower field.
25387 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
25388 arguments with lowercase strings.
25389 * config/rx/rx.opt (mcpu=): Add ToLower.
25390 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
25393 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
25395 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
25397 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
25399 * config/vax/vax.c: Include reload.h.
25401 2011-04-04 Anatoly Sokolov <aesok@post.ru>
25403 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
25404 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
25405 (sparc_preferred_reload_class): New function.
25407 2011-04-04 Jakub Jelinek <jakub@redhat.com>
25410 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
25411 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
25413 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
25415 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
25416 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
25418 2011-04-03 Anatoly Sokolov <aesok@post.ru>
25420 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
25421 (ASM_OUTPUT_ALIGNED_BSS): Define.
25423 2011-04-03 Michael Matz <matz@suse.de>
25425 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
25426 and next_slot members.
25427 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
25428 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
25429 (lto_streamer_cache_append): Declare.
25430 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
25431 unsigned index, remove offset parameter, ensure that we append
25432 or update existing entries.
25433 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
25434 parameter, update next_slot for append.
25435 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
25437 (lto_streamer_cache_insert_at): Likewise.
25438 (lto_streamer_cache_append): New function.
25439 (lto_streamer_cache_lookup): Use unsigned index.
25440 (lto_streamer_cache_get): Likewise.
25441 (lto_record_common_node): Don't test tree_node_can_be_shared.
25442 (preload_common_node): Adjust call to lto_streamer_cache_insert.
25443 (lto_streamer_cache_delete): Don't free offsets member.
25444 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
25445 (lto_output_string_with_length): Use lto_output_data_stream.
25446 (lto_output_tree_header): Remove ix parameter, don't write it.
25447 (lto_output_builtin_tree): Likewise.
25448 (lto_write_tree): Adjust callers to above, don't track and write
25449 offset, write unsigned index.
25450 (output_unreferenced_globals): Don't emit all global vars.
25451 (write_global_references): Use unsigned indices.
25452 (lto_output_decl_state_refs): Likewise.
25453 (write_symbol): Likewise.
25454 * lto-streamer-in.c (lto_input_chain): Move earlier.
25455 (input_function): Use unsigned index.
25456 (input_alias_pairs): Don't read and then ignore all global vars.
25457 (lto_materialize_tree): Remove ix_p parameter, don't read index,
25458 don't pass it back, use lto_streamer_cache_append.
25459 (lto_register_var_decl_in_symtab): Use unsigned index.
25460 (lto_register_function_decl_in_symtab): Likewise.
25461 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
25463 (lto_get_builtin_tree): Don't read index, use
25464 lto_streamer_cache_append.
25465 (lto_read_tree): Adjust call to lto_materialize_tree.
25467 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
25468 don't use function calls in arguments to MIN.
25470 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
25473 * gimple.c (gimple_type_leader_entry): Mark deletable.
25475 2011-04-03 Alan Modra <amodra@gmail.com>
25477 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
25479 2011-04-03 Michael Matz <matz@suse.de>
25481 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
25483 * tree.h (tree_decl_non_common.vindex): Adjust comment.
25485 2011-04-03 Michael Matz <matz@suse.de>
25487 * cgraphbuild.c (record_reference): Canonicalize constructor values.
25488 * gimple-fold.c (canonicalize_constructor_val): Accept being called
25489 without function context.
25490 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
25491 current_function_decl and cfun.
25493 2011-04-03 Michael Matz <matz@suse.de>
25495 * tree.c (decl_init_priority_insert): Don't create entry for
25497 (decl_fini_priority_insert): Ditto.
25498 (fields_compatible_p, find_compatible_field): Remove.
25499 * tree.h (fields_compatible_p, find_compatible_field): Remove.
25500 * gimple.c (gimple_compare_field_offset): Adjust block comment.
25502 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
25504 * combine.c (try_combine): Remove useless local variable.
25506 2011-04-03 Richard Guenther <rguenther@suse.de>
25507 Ira Rosen <ira.rosen@linaro.org>
25509 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
25510 non-variable offsets and compare the remaining bases of the two
25511 accesses instead of looking for exact same data-ref.
25513 2011-04-02 Kai Tietz <ktietz@redhat.com>
25516 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
25518 * i386.c (ix86_is_msabi_thiscall): New helper function.
25519 (ix86_is_type_thiscall): New helper function.
25520 (ix86_comp_type_attributes): Handle thiscall for method-functions
25522 (init_cumulative_args): Likewise.
25523 (find_drap_reg): Likewise.
25524 (ix86_static_chain): Likewise.
25525 (x86_this_parameter): Likewise.
25526 (x86_output_mi_thunk): Likewise.
25528 2011-04-01 Olivier Hainque <hainque@adacore.com>
25529 Nicolas Setton <setton@adacore.com>
25530 Eric Botcazou <ebotcazou@adacore.com>
25532 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
25533 (add_gnat_descriptive_type_attribute): New function.
25534 (gen_array_type_die): Call it.
25535 (gen_enumeration_type_die): Likewise.
25536 (gen_struct_or_union_type_die): Likewise.
25537 (modified_type_die): Likewise.
25538 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
25539 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
25540 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
25542 2011-04-01 Jakub Jelinek <jakub@redhat.com>
25545 * dwarf2out.c (resolve_addr): Don't call force_decl_die
25546 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
25549 2011-03-17 Richard Guenther <rguenther@suse.de>
25552 * lto-cgraph.c (input_overwrite_node): Clear the abstract
25553 origin for decls in other ltrans units.
25554 (input_varpool_node): Likewise.
25556 2011-04-01 Jakub Jelinek <jakub@redhat.com>
25558 PR middle-end/48335
25559 * expr.c (expand_assignment): Handle all possibilities
25560 if TO_RTX is CONCAT.
25561 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
25562 (store_split_bit_field): If SUBREG_REG (op0) or
25563 op0 itself has smaller mode than word, return it
25564 for offset 0 and const0_rtx for out-of-bounds stores.
25565 If word is const0_rtx, skip it.
25567 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
25569 * config/h8300/h8300.c (print_operand_address): Rename to...
25570 (h8300_print_operand_address): ...this. Make static. Adjust comments.
25571 Call h8300_print_operand and h8300_print_operand_address instead of
25572 print_operand and print_operand_address. Declare.
25573 (print_operand): Renake to...
25574 (h8300_print_operand): ...this. Make static. Adjust comments.
25575 Call h8300_print_operand instead of print_operand. Declare.
25576 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
25577 (h8300_register_move_cost): Likewise.
25578 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
25579 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
25580 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
25581 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
25582 * config/h8300/h8300-protos.h (print_operand): Delete.
25583 (print_operand_address): Delete.
25585 2011-04-01 Richard Henderson <rth@redhat.com>
25588 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
25589 in strict mode before dwarf4. Re-order tests to early out
25590 before switching sections.
25592 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
25594 * config/h8300/constraints.md: New file.
25595 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
25596 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
25597 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
25598 * config/h8300/predicates.md (bit_operand): Likewise.
25599 (incdec_operand): Use satisfies_constraint_M and
25600 satisfies_constraint_O. Don't use C code block.
25601 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
25602 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
25603 (compute_mov_length): Use satisfies_constraint_G.
25604 (fix_bit_operand): Use satisfies_constraint_U.
25605 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
25606 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
25607 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
25608 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
25609 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
25610 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
25611 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25612 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
25613 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
25614 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
25615 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
25616 (EXTRA_MEMORY_CONSTRAINT): Delete.
25618 2011-04-01 Andrew Pinski <pinskia@gmail.com>
25619 Michael Meissner <meissner@linux.vnet.ibm.com>
25622 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
25623 operands, as per the specifications.
25625 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
25626 (vec_extract_evenv4sf): Ditto.
25627 (vec_extract_evenv8hi): Ditto.
25628 (vec_extract_evenv16qi): Ditto.
25629 (vec_extract_oddv4si): Ditto.
25631 2011-03-31 Mark Wielaard <mjw@redhat.com>
25633 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
25634 high_pc attribute if the CU has no associated code. Only output
25635 DW_AT_entry_pc for CU if not generating strict dwarf and
25638 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
25640 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
25641 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
25643 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
25644 * final.c (final_start_function): Call the new function rather
25645 than using a NULL argument for dwarf2out_frame_debug.
25647 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
25648 that contains the prologue.
25650 * haifa-sched.c (queue_insn): New arg REASON. All callers
25651 changed. Print it in debugging output.
25653 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
25655 * sched-ebb.c (begin_schedule_ready): Remove second argument.
25656 Split most of the code into...
25657 (begin_move_insn): ... here. New function.
25658 (ebb_sched_info): Add a pointer to it.
25659 * haifa-sched.c (scheduled_insns): New static variable.
25660 (sched_extend_ready_list): Allocate it.
25661 (schedule_block): Use it to record the order of scheduled insns.
25662 Perform RTL changes to move insns only after all scheduling
25663 decisions have been made.
25664 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
25665 begin_move_insn field.
25666 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
25667 * sched-int.h (struct haifa_sched_info): Remove second argument
25668 from begin_schedule_ready hook. Add new member begin_move_insn.
25669 * sched-rgn.c (begin_schedule_ready): Remove second argument.
25670 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
25672 * haifa-sched.c (prune_ready_list): New function, broken out of
25674 (schedule_block): Use it.
25676 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25678 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
25680 2011-04-01 Kai Tietz <ktietz@redhat.com>
25682 * config.gcc (*-*-mingw*): Allow as option the
25683 posix threading model.
25684 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
25685 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
25687 (CPP_SPEC): Add pthread/no-pthread handling.
25688 (LIB_SPEC): Likewise.
25689 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
25690 (LIB_SPEC): Likewise.
25691 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
25692 flag to pass -pthread option for shared libgcc build.
25693 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
25694 for shared libgcc build.
25695 * config/i386/t-mingw-pthread: New file.
25696 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
25697 New define to enable use of library pthread by default.
25698 * config/i386/mingw.opt (pthread): New driver option.
25699 (no-pthread): New driver option.
25700 * config/i386/cygming.opt: Make sure trailing empty line is retained.
25701 * config/i386/mingw-w64.opt: Likewise.
25703 2011-04-01 Gary Funck <gary@intrepid.com>
25705 * c-decl.c (grokdeclarator): Fix formatting.
25707 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
25709 * expr.c (emit_block_move_via_movmem): Use n_generator_args
25710 instead of n_operands.
25711 (set_storage_via_setmem): Likewise.
25712 * optabs.c (maybe_gen_insn): Likewise.
25713 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
25714 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
25715 (mips_expand_builtin_direct): Likewise.
25716 * config/spu/spu.c (expand_builtin_args): Likewise.
25718 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
25720 * recog.h (insn_data_d): Add n_generator_args.
25721 * genoutput.c (data): Likewise.
25722 (output_insn_data): Print it.
25723 (max_opno, num_dups): Delete.
25724 (scan_operands): Just fill in "d->operand[...]".
25725 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
25727 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
25729 * gensupport.h (pattern_stats): New structure.
25730 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
25731 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
25732 (max_operand_1, max_operand_vec): Delete.
25733 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
25735 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
25737 * emit-rtl.c (emit_pattern_after_setloc): New function.
25738 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
25739 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
25740 (emit_pattern_after): New function.
25741 (emit_insn_after, emit_jump_insn_after): Call it.
25742 (emit_call_insn_after, emit_debug_insn_after): Likewise.
25743 (emit_pattern_before_setloc): New function.
25744 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
25745 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
25747 (emit_pattern_before): New function.
25748 (emit_insn_before, emit_jump_insn_before): Call it.
25749 (emit_call_insn_before, emit_debug_insn_before): Likewise.
25751 2011-03-31 Richard Henderson <rth@redhat.com>
25753 * dwarf2out.c (dw_separate_line_info_ref): Remove.
25754 (dw_separate_line_info_entry): Remove.
25755 (enum dw_line_info_opcode): New.
25756 (dw_line_info_entry): Use it.
25757 (dw_line_info_table, dw_line_info_table_p): New.
25758 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
25759 (line_info_table, line_info_label_num): Remove.
25760 (line_info_table_in_use): Remove.
25761 (separate_line_info_table): Remove.
25762 (separate_line_info_table_allocated): Remove.
25763 (separate_line_info_table_in_use): Remove.
25764 (LINE_INFO_TABLE_INCREMENT): Remove.
25765 (line_info_label_num): New.
25766 (cur_line_info_table): New.
25767 (text_section_line_info, cold_text_section_line_info): New.
25768 (separate_line_info): New.
25769 (SEPARATE_LINE_CODE_LABEL): Remove.
25770 (print_dwarf_line_table): Remove.
25771 (debug_dwarf): Don't dump it.
25772 (output_one_line_info_table): New.
25773 (output_line_info): Use it.
25774 (new_line_info_table): New.
25775 (set_cur_line_info_table): New.
25776 (dwarf2out_switch_text_section): Use it.
25777 (dwarf2out_begin_function): Likewise.
25778 (push_dw_line_info_entry): New.
25779 (dwarf2out_source_line): Rewrite for new line info tables.
25780 (dwarf2out_init): Remove dead initailizations.
25782 2011-03-31 Joseph Myers <joseph@codesourcery.com>
25784 * opts.h (cl_option): Add comments to fields. Add bit-fields for
25786 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
25787 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
25788 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
25789 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
25790 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
25791 * opt-functions.awk (flag_init, switch_bit_fields): New.
25792 (switch_flags): Don't handle flags moved to bit-fields. Don't
25793 generate CL_MISSING_OK or CL_SAVE.
25794 * optc-gen.awk: Update to generate bit-field output as well as
25796 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
25797 bit-field instead of CL_REJECT_DRIVER flag.
25798 * opts-common.c (generate_canonical_option,
25799 decode_cmdline_option): Use bit-fields instead of CL_* flags.
25800 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
25801 instead of CL_REJECT_NEGATIVE flag.
25802 * toplev.c (print_switch_values): Use cl_report bit-field instead
25805 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
25807 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
25808 a zero minimum index only if it is redundant.
25810 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
25812 PR rtl-optimization/48381
25813 * ira-color.c (assign_hard_reg): Use hard reg set intersection
25814 instead of ira_class_hard_reg_index for calculating conflicting
25817 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
25819 * cprop.c: Clean up hash table building.
25820 (reg_avail_info): Remove.
25821 (oprs_available_p): Remove.
25822 (record_last_reg_set_info): Remove.
25823 (record_last_set_info): Remove.
25824 (reg_available_p): New function.
25825 (gcse_constant_p): Do not treat unfolded conditions as constants.
25826 (make_set_regs_unavailable): New function.
25827 (hash_scan_set): Simplify with new reg_available_p.
25828 (compute_hash_table_work): Traverse insns stream only once.
25829 Do not compute reg_avail_info. Traverse insns in reverse order.
25830 Record implicit sets after recording explicit sets from the block.
25832 2011-03-31 Michael Matz <matz@suse.de>
25834 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
25836 2011-03-31 Anatoly Sokolov <aesok@post.ru>
25838 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
25839 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
25840 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25841 (h8300_mode_dependent_address_p): New function.
25842 (h8300_get_index): Make static.
25844 2011-03-31 Jeff Law <law@redhat.com>
25846 * reload1.c (elimination_effects): Fix typo in recent change.
25848 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
25849 typo potentially leading to null pointer dereference.
25851 * caller-save.c (new_saved_hard_reg): Eliminate return value.
25852 (setup_save_areas): Corresponding changes to avoid useless
25855 * jump.c (reversed_comparison_code_parts): Avoid successive return
25856 statements when REVERSE_CONDITION is defined.
25858 * expr.c (expand_assignment): Avoid useless assignments.
25859 (expand_expr_real_1): Likewise.
25860 (expand_expr_real_2): Avoid useless statements.
25862 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
25864 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
25866 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
25869 * stmt.c (expand_expr_stmt): Avoid useless assignment.
25871 2011-03-31 Joseph Myers <joseph@codesourcery.com>
25874 * doc/tm.texi.in (TARGET_VERSION): Remove.
25875 * doc/tm.texi: Regenerate.
25876 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
25877 * collect2.c (main): Don't use TARGET_VERSION.
25878 * mips-tdump.c (main): Don't use TARGET_VERSION.
25879 * mips-tfile.c (main): Don't use TARGET_VERSION.
25880 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
25881 * config/rs6000/vxworksae.h: Remove.
25882 * config/alpha/alpha.h (TARGET_VERSION): Remove.
25883 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
25884 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
25885 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
25886 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
25887 * config/arm/arm.h (TARGET_VERSION): Remove.
25888 * config/arm/coff.h (TARGET_VERSION): Remove.
25889 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
25890 * config/arm/elf.h (TARGET_VERSION): Remove.
25891 * config/arm/freebsd.h (TARGET_VERSION): Remove.
25892 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
25893 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
25894 * config/arm/pe.h (TARGET_VERSION): Remove.
25895 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
25896 * config/arm/semi.h (TARGET_VERSION): Remove.
25897 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
25898 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
25899 * config/arm/vxworks.h (TARGET_VERSION): Remove.
25900 * config/avr/avr.h (TARGET_VERSION): Remove.
25901 * config/bfin/bfin.h (TARGET_VERSION): Remove.
25902 * config/fr30/fr30.h (TARGET_VERSION): Remove.
25903 * config/frv/frv.h (TARGET_VERSION): Remove.
25904 * config/h8300/h8300.h (TARGET_VERSION): Remove.
25905 * config/i386/cygwin.h (TARGET_VERSION): Remove.
25906 * config/i386/darwin.h (TARGET_VERSION): Remove.
25907 * config/i386/darwin64.h (TARGET_VERSION): Remove.
25908 * config/i386/djgpp.h (TARGET_VERSION): Remove.
25909 * config/i386/freebsd.h (TARGET_VERSION): Remove.
25910 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
25911 * config/i386/gnu.h (TARGET_VERSION): Remove.
25912 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
25913 * config/i386/i386elf.h (TARGET_VERSION): Remove.
25914 * config/i386/linux.h (TARGET_VERSION): Remove.
25915 * config/i386/linux64.h (TARGET_VERSION): Remove.
25916 * config/i386/lynx.h (TARGET_VERSION): Remove.
25917 * config/i386/mingw32.h (TARGET_VERSION): Remove.
25918 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
25919 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
25920 * config/i386/netware.h (TARGET_VERSION): Remove.
25921 * config/i386/nto.h (TARGET_VERSION): Remove.
25922 * config/i386/openbsd.h (TARGET_VERSION): Remove.
25923 * config/i386/vxworks.h (TARGET_VERSION): Remove.
25924 * config/ia64/elf.h (TARGET_VERSION): Remove.
25925 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
25926 * config/ia64/hpux.h (TARGET_VERSION): Remove.
25927 * config/ia64/linux.h (TARGET_VERSION): Remove.
25928 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
25929 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
25930 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
25931 * config/lm32/lm32.h (TARGET_VERSION): Remove.
25932 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
25933 * config/m32c/m32c.h (TARGET_VERSION): Remove.
25934 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
25935 * config/m32r/m32r.h (TARGET_VERSION): Remove.
25936 * config/m68k/linux.h (TARGET_VERSION): Remove.
25937 * config/m68k/m68k.h (TARGET_VERSION): Remove.
25938 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
25939 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
25940 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
25941 * config/mep/mep.h (TARGET_VERSION): Remove.
25942 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
25943 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
25944 * config/mips/iris6.h (MACHINE_TYPE): Remove.
25945 * config/mips/linux.h (TARGET_VERSION): Remove.
25946 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
25947 * config/mips/vxworks.h (TARGET_VERSION): Remove.
25948 * config/mmix/mmix.h (TARGET_VERSION): Remove.
25949 * config/mn10300/linux.h (TARGET_VERSION): Remove.
25950 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
25951 * config/pa/pa.h (TARGET_VERSION): Remove.
25952 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
25953 * config/picochip/picochip.h (TARGET_VERSION): Remove.
25954 * config/rs6000/aix.h (TARGET_VERSION): Remove.
25955 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
25956 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
25957 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
25958 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
25959 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
25960 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
25961 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
25962 * config/rs6000/linux.h (TARGET_VERSION): Remove.
25963 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
25964 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
25965 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
25966 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
25967 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
25968 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
25969 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
25970 * config/s390/linux.h (TARGET_VERSION): Remove.
25971 * config/s390/s390.h (TARGET_VERSION): Remove.
25972 * config/s390/tpf.h (TARGET_VERSION): Remove.
25973 * config/score/score.h (TARGET_VERSION): Remove.
25974 * config/sh/linux.h (TARGET_VERSION): Remove.
25975 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
25976 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
25977 * config/sh/sh.h (TARGET_VERSION): Remove.
25978 * config/sh/sh64.h (TARGET_VERSION): Remove.
25979 * config/sh/superh.h (TARGET_VERSION): Remove.
25980 * config/sh/vxworks.h (TARGET_VERSION): Remove.
25981 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
25982 * config/sparc/linux.h (TARGET_VERSION): Remove.
25983 * config/sparc/linux64.h (TARGET_VERSION): Remove.
25984 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
25985 TARGET_NAME32, TARGET_NAME): Remove.
25986 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
25987 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
25988 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
25989 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
25990 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
25991 * config/spu/spu.h (TARGET_VERSION): Remove.
25992 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
25993 * config/v850/v850.h (TARGET_VERSION): Remove.
25994 * config/vax/linux.h (TARGET_VERSION): Remove.
25995 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
25996 * config/xtensa/elf.h (TARGET_VERSION): Remove.
25997 * config/xtensa/linux.h (TARGET_VERSION): Remove.
25999 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
26002 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
26003 frame-related from frame-unrelated adjustments to the stack pointer.
26005 2011-03-31 Jakub Jelinek <jakub@redhat.com>
26007 * common.opt (fdebug-types-section): Move earlier.
26008 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
26010 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
26012 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
26015 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
26017 * tree.h (CASE_CHAIN): Define.
26018 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
26019 (gimple_redirect_edge_and_branch): Likewise.
26021 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
26023 PR middle-end/48367
26024 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
26027 2011-03-30 Jeff Law <law@redhat.com>
26029 * PR bootstrap/48371
26030 * reload1.c (reload): Fix botch in last change.
26032 * reload.h (struct reload): Fix typo introduced in last change.
26034 2011-03-30 Joseph Myers <joseph@codesourcery.com>
26036 * config/arm/arm.opt (mhard-float, msoft-float): Mark
26037 Undocumented. Remove help text.
26038 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
26041 2011-03-30 Joseph Myers <joseph@codesourcery.com>
26043 * doc/options.texi (NegativeAlias): Document.
26044 (Alias): Mention NegativeAlias.
26045 * opt-functions.awk: Handle NegativeAlias.
26046 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
26047 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
26048 * opts.h (CL_NEGATIVE_ALIAS): Define.
26049 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
26050 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
26052 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
26054 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
26055 mno-spe and mno-isel instead of mspe=no and -misel=no.
26057 2011-03-29 Mark Wielaard <mjw@redhat.com>
26059 * common.opt (fdebug-types-section): New flag.
26060 * doc/invoke.texi: Document new -fno-debug-types-section flag.
26061 * dwarf2out.c (use_debug_types): New define.
26062 (struct die_struct): Mark die_id with GTY desc use_debug_types.
26063 (print_die): Guard output of type unit signatures using
26065 (build_abbrev_table): Replace assert of dwarf_version >= 4
26066 with assert on use_debug_types.
26067 (size_of_die): Likewise.
26068 (unmark_dies): Likewise.
26069 (value_format): Decide AT_ref_external form on use_debug_types.
26070 (output_die): Replace dwarf_version version check guard with
26071 use_debug_types where appropriate.
26072 (modified_type_die): Likewise.
26073 (gen_reference_type_die): Likewise.
26074 (dwarf2out_start_source_file): Likewise.
26075 (dwarf2out_end_source_file): Likewise.
26076 (prune_unused_types_walk_attribs): Likewise.
26077 (dwarf2out_finish): Likewise.
26079 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
26081 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
26083 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
26085 PR rtl-optimization/48332
26086 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
26087 mode of input operand N and modeN to its actual mode.
26089 2011-03-30 Jeff Law <law@redhat.com>
26091 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
26092 define accessor macro.
26093 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
26094 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
26095 (reg_equiv_init): Likewise.
26096 (reg_equivs_size): New variable.
26097 (reg_equiv_init_size): Remove.
26098 (allocate_initial_values): Move prototype to here from....
26099 * integrate.h (allocate_initial_values): Remove prototype.
26100 * integrate.c: Include reload.h.
26101 (allocate_initial_values): Corresponding changes.
26102 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
26103 (fix_reg_equiv_init, no_equiv): Corresponding changes.
26104 (update_equiv_regs): Corresponding changes.
26105 (ira): Corresponding changes.
26106 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
26107 (push_secondary_reload): Corresponding changes.
26108 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
26109 (make_memloc, find_reloads_address): Corresponding changes.
26110 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
26111 (find_reloads_address_1): Corresponding changes.
26112 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
26113 (refers_to_regno_for_reload_p): Corresponding changes.
26114 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
26115 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
26116 * reload1.c: Include ggc.h.
26117 (grow_reg_equivs): New function.
26118 (replace_pseudos_in, reload): Corresponding changes.
26119 (calculate_needs_all_insns, alter_regs): Corresponding changes.
26120 (eliminate_regs_1, elimination_effects): Corresponding changes.
26121 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
26122 (delete_output_reload): Likewise.
26123 * caller-save.c (mark_referenced_regs): Corresponding changes.
26124 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
26125 * frv/predicates.md (frv_load_operand): Corresponding changes.
26126 * microblaze/microblaze.c (double_memory_operand): Corresponding
26128 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
26129 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
26130 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
26131 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
26132 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
26134 * pa/pa.c (emit_move_sequence): Corresponding changes.
26135 * vax/vax.c (nonindexed_address_p): Corresponding changes.
26137 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
26140 * config/arm/arm.c (coproc_secondary_reload_class): Handle
26141 structure modes. Don't check neon_vector_mem_operand for
26142 vector or structure modes.
26144 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
26145 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
26148 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
26149 operand 1 and reshuffle the operands to match.
26150 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
26152 2011-03-30 Christian Schüler <cschueler@gmx.de>
26155 * config/c.opt (F): Added 'Driver' to -F option.
26158 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
26160 * config/darwin.opt: Added '-arch' option.
26162 2011-03-30 Nick Clifton <nickc@redhat.com>
26164 * config/rx/rx.md: Add peepholes and patterns to combine
26165 extending loads and simple arithmetic instructions.
26166 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
26167 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
26168 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
26169 modes to use pre-decrement and post-increment addressing.
26170 (rx_is_restricted_memory_address): Add range checking of REG+INT
26172 (rx_print_operand): Add support for %Q. Fix handling of %Q.
26173 (rx_memory_move_cost): Adjust cost of stores.
26174 (rx_adjust_insn_length): New function.
26176 2011-03-30 Jakub Jelinek <jakub@redhat.com>
26179 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
26180 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
26181 matching arg00/arg01 types.
26183 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
26185 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
26186 last_location to UNKNOWN_LOCATION.
26188 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
26191 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
26194 2011-03-30 Joseph Myers <joseph@codesourcery.com>
26195 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26198 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
26199 Init(PROCESSOR_V7).
26200 (sparc_cpu): Likewise.
26201 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
26204 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
26207 PR middle-end/48342
26208 PR rtl-optimization/48345
26209 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
26210 hard regs for given mode from profitable regs when doing secondary
26213 2011-03-29 Jeff Law <law@redhat.com>
26216 * tree-ssa-threadupdate.c (struct redirection_data): Remove
26217 do_not_duplicate field.
26218 (lookup_redirection_data): Corresponding changes.
26219 (create_duplicates): Always create a template block.
26220 (redirect_edges): Remove code which reused the original block
26221 when it was going to become unreachable code.
26222 (thread_block): Don't set do_not_duplicate field.
26224 2011-03-29 Joseph Myers <joseph@codesourcery.com>
26226 * lto-opts.c (register_user_option_p, lto_register_user_option):
26227 Make type argument unsigned.
26228 * lto-streamer.h (lto_register_user_option): Make type argument
26230 * opth-gen.awk: Make CL_* macros unsigned.
26231 * opts-common.c (find_opt): Make lang_mask argument unsigned.
26232 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
26233 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
26234 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
26235 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
26236 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
26237 (find_opt): Make lang_mask argument unsigned.
26239 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
26241 PR rtl-optimization/48331
26242 PR rtl-optimization/48334
26243 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
26244 for any used algorithm.
26246 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
26248 * ira-conflicts.c (build_object_conflicts): Add unused attribute
26251 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
26253 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
26254 (alpha_option_override): Don't set alpha_sr_alias_set.
26255 (emit_frame_store_1): Use gen_frame_mem rather than calling
26257 (alpha_expand_epilogue): Ditto.
26259 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
26261 PR tree-optimization/48290
26262 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
26263 vectorization, check that relevant phis in the basic block after
26264 the inner loop are really inner loop's exit phis.
26266 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
26269 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
26270 (cached_dw_loc_list_def): New structure.
26271 (cached_dw_loc_list): New typedef.
26272 (cached_dw_loc_list_table): New variable.
26273 (cached_dw_loc_list_table_hash): New function.
26274 (cached_dw_loc_list_table_eq): Likewise.
26275 (add_location_or_const_value_attribute): Take a bool cache_p.
26276 Cache the list when the parameter is true.
26277 (gen_formal_parameter_die): Update caller.
26278 (gen_variable_die): Likewise.
26279 (dwarf2out_finish): Likewise.
26280 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
26281 while generating debug info for the decl.
26282 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
26283 (dwarf2out_init): Initialize cached_dw_loc_list_table.
26284 (resolve_addr): Cache the result of resolving a chain of
26287 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
26289 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
26290 conflict object hard regset nodes have intersecting hard reg sets.
26292 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
26293 after regstat_init_n_sets_and_refs.
26295 * ira.c: Add more comments at the top.
26296 (setup_stack_reg_pressure_class, setup_pressure_classes):
26297 Add comments how we compute the register pressure classes.
26298 (setup_allocno_and_important_classes): Add more comments.
26299 (setup_class_translate_array, reorder_important_classes)
26300 (setup_reg_class_relations): Add comments.
26302 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
26305 * ira-color.c: Add 2011 to the Copyright line.
26306 (assign_hard_reg): Add more comments.
26307 (improve_allocation): Ditto.
26309 * ira-costs.c: Add 2011 to the Copyright line.
26310 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
26312 (setup_regno_cost_classes_by_mode): Ditto.
26314 Initial patches from ira-improv branch:
26316 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
26318 * ira-build.c (ira_create_object): Remove initialization of
26319 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
26320 (ira_create_allocno): Remove initialization of
26321 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
26322 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
26323 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
26324 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
26325 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
26326 Initialize ALLOCNO_ADD_DATA.
26327 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
26328 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
26330 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
26331 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
26333 * ira.c (ira_reallocate): Remove.
26334 (setup_pressure_classes): Call
26335 ira_init_register_move_cost_if_necessary. Use
26336 ira_register_move_cost instead of ira_get_register_move_cost.
26337 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
26338 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
26340 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
26341 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
26342 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
26343 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
26344 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
26345 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
26347 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
26348 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
26349 (struct allocno_color_data): New.
26350 (allocno_color_data_t): New typedef.
26351 (allocno_color_data): New definition.
26352 (ALLOCNO_COLOR_DATA): New macro.
26353 (struct object_color_data): New.
26354 (object_color_data_t): New typedef.
26355 (object_color_data): New definition.
26356 (OBJECT_COLOR_DATA): New macro.
26357 (update_copy_costs, calculate_allocno_spill_cost): Call
26358 ira_init_register_move_cost_if_necessary. Use
26359 ira_register_move_cost instead of ira_get_register_move_cost.
26360 (move_spill_restore, update_curr_costs): Ditto.
26361 (allocno_spill_priority): Make it inline.
26362 (color_pass): Allocate and free allocno_color_dat and object_color_data.
26363 (struct coalesce_data, coalesce_data_t): New.
26364 (allocno_coalesce_data): New definition.
26365 (ALLOCNO_COALESCE_DATA): New macro.
26366 (merge_allocnos, coalesced_allocno_conflict_p): Use
26367 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
26368 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
26369 (coalesce_allocnos): Ditto.
26370 (setup_coalesced_allocno_costs_and_nums): Ditto.
26371 (collect_spilled_coalesced_allocnos): Ditto.
26372 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
26373 (setup_slot_coalesced_allocno_live_ranges): Ditto.
26374 (coalesce_spill_slots): Ditto.
26375 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
26376 free allocno_coalesce_data.
26378 * ira-conflicts.c: Fix formatting.
26379 (process_regs_for_copy): Call
26380 ira_init_register_move_cost_if_necessary. Use
26381 ira_register_move_cost instead of ira_get_register_move_cost.
26382 (build_object_conflicts): Optimize.
26384 * ira-costs.c (record_reg_classes): Optimize. Call
26385 ira_init_register_move_cost_if_necessary. Use
26386 ira_register_move_cost, ira_may_move_in_cost, and
26387 ira_may_move_out_cost instead of ira_get_register_move_cost and
26388 ira_get_may_move_cost.
26389 (record_address_regs): Ditto.
26390 (scan_one_insn): Optimize.
26391 (find_costs_and_classes): Optimize.
26392 (process_bb_node_for_hard_reg_moves): Call
26393 ira_init_register_move_cost_if_necessary. Use
26394 ira_register_move_cost instead of ira_get_register_move_cost.
26396 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
26397 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
26398 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
26399 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
26401 (ira_initiate_emit_data, ira_finish_emit_data)
26402 (create_new_allocno): New functions.
26403 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
26404 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
26405 Use ira_register_move_cost instead of ira_get_register_move_cost.
26407 * ira-int.h: Fix some comments.
26408 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
26409 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
26410 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
26411 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
26413 (struct ira_allocno): Make mode and aclass a bitfield. Move other
26414 bitfield after mode. Make hard_regno a short int. Make
26415 hard_regno short. Remove first_coalesced_allocno and
26416 next_coalesced_allocno. Move mem_optimized_dest_p,
26417 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
26418 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
26419 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
26420 temp, colorable_p. Add new member add_data.
26421 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
26422 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
26423 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
26424 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
26425 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
26426 (ALLOCNO_ADD_DATA): New macro.
26427 (ira_emit_data_t): New typedef.
26428 (struct ira_emit_data): New. Move mem_optimized_dest_p,
26429 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
26430 from struct ira_allocno.
26431 (ALLOCNO_EMIT_DATA): New macro.
26432 (ira_allocno_emit_data, allocno_emit_reg): New.
26433 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
26434 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
26435 (OBJECT_ADD_DATA): New macro.
26436 (ira_reallocate): Remove.
26437 (ira_initiate_emit_data, ira_finish_emit_data): New.
26438 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
26439 (ira_init_register_move_cost_if_necessary): New.
26440 (ira_object_conflict_iter_next): Merge into
26441 ira_object_conflict_iter_cond.
26442 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
26444 * ira-live.c (process_single_reg_class_operands): Call
26445 ira_init_register_move_cost_if_necessary. Use
26446 ira_register_move_cost instead of ira_get_register_move_cost.
26448 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
26450 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
26452 * ira-costs.c: Fix formatting.
26453 (cost_classes, cost_classes_num): Remove.
26454 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
26455 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
26456 (cost_classes_del, cost_classes_htab): New.
26457 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
26458 (initiate_regno_cost_classes, setup_cost_classes): New.
26459 (setup_regno_cost_classes_by_aclass): New.
26460 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
26461 (record_reg_classes): Use regno_cost_classes instead of
26462 cost_classes. Move checking opposite operand up.
26463 (record_address_regs): Use regno_cost_classes
26464 instead of cost_classes.
26465 (scan_one_insn): Ditto. Use always general register.
26466 (print_allocno_costs): Use regno_cost_classes instead of
26468 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
26469 (find_costs_and_classes): Set up cost classes for each registers.
26470 Use also their mode for this. Use regno_cost_classes instead of
26472 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
26474 (free_ira_costs, ira_init_costs): Don't use cost_classes.
26475 (ira_costs, ira_set_pseudo_classes): Call
26476 initiate_regno_cost_classes and finish_regno_cost_classes.
26478 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
26480 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
26482 * target.def (ira_cover_classes): Remove.
26484 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
26486 * doc/tm.texi.in: Ditto.
26488 * ira-conflicts.c: Remove mentioning cover classes from the file.
26489 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
26490 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
26492 * targhooks.c (default_ira_cover_classes): Remove.
26494 * targhooks.h (default_ira_cover_classes): Ditto.
26496 * haifa-sched.c: Remove mentioning cover classes from the file.
26497 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
26498 ira_pressure_classes and ira_pressure_classes_num instead of
26499 ira_reg_class_cover_size and ira_reg_class_cover. Use
26500 sched_regno_pressure_class instead of sched_regno_cover_class.
26501 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
26502 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
26504 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
26505 classes from the file.
26506 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
26507 (struct object_hard_regs, struct object_hard_regs_node): New.
26508 (struct ira_object): New members profitable_hard_regs,
26509 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
26510 (struct ira_allocno): Rename cover_class to aclass. Rename
26511 cover_class_cost and updated_cover_class_cost to class_cost and
26512 updated_class_cost. Remove splay_removed_p and
26513 left_conflict_size. Add new members colorable_p.
26514 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
26515 (ALLOCNO_COLORABLE_P): New macro.
26516 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
26517 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
26518 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
26519 (OBJECT_...): Rename parameter C to O.
26520 (OBJECT_PROFITABLE_HARD_REGS): New macro.
26521 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
26522 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
26523 (struct target_ira_int): New members x_ira_max_memory_move_cost,
26524 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
26525 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
26526 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
26527 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
26528 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
26529 x_ira_reg_class_subunion.
26530 (ira_max_memory_move_cost, ira_max_register_move_cost)
26531 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
26532 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
26533 (ira_important_class_nums, ira_reg_class_superunion): New macros.
26534 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
26535 (ira_reg_class_union): Rename to ira_reg_class_subunion.
26536 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
26537 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
26538 (ira_tune_allocno_costs_and_cover_classes): Rename to
26539 ira_tune_allocno_costs.
26540 (ira_debug_hard_regs_forest): New.
26541 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
26542 (ira_object_conflict_iter_next): Fix comments.
26543 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
26544 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
26545 cover_class to aclass.
26546 (ira_allocate_and_accumulate_costs): Ditto.
26547 (ira_allocate_and_set_or_copy_costs): Ditto.
26549 * opts.c (decode_options): Remove ira_cover_class check.
26551 * ira-color.c: Remove mentioning cover classes from the file. Use
26552 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
26553 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
26554 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
26555 (splay-tree.h): Remove include.
26556 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
26557 before copy_freq_compare_func.
26558 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
26559 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
26561 (hard_regs_roots, hard_regs_node_vec): Ditto.
26562 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
26563 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
26564 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
26565 (create_new_object_hard_regs_node): Ditto.
26566 (add_new_object_hard_regs_node_to_forest): Ditto.
26567 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
26568 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
26570 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
26571 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
26572 (remove_unused_object_hard_regs_nodes): Ditto.
26573 (enumerate_object_hard_regs_nodes): Ditto.
26574 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
26575 (object_hard_regs_subnode_t): Ditto.
26576 (struct object_hard_regs_subnode): Ditto.
26577 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
26578 (setup_object_hard_regs_subnode_index): Ditto.
26579 (get_object_hard_regs_subnodes_num): Ditto.
26580 (form_object_hard_regs_nodes_forest): Ditto.
26581 (finish_object_hard_regs_nodes_tree): Ditto.
26582 (finish_object_hard_regs_nodes_forest): Ditto.
26583 (allocnos_have_intersected_live_ranges_p): Rename to
26584 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
26585 (pseudos_have_intersected_live_ranges_p): Rename to
26586 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
26587 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
26588 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
26589 (update_copy_costs): Remove assert. Skip cost update if the hard
26590 reg does not belong the class.
26591 (assign_hard_reg): Process only profitable hard regs.
26592 (uncolorable_allocnos_num): Make it scalar.
26593 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
26594 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
26595 and ira_reg_class_max_nregs.
26596 (bucket_allocno_compare_func): Check frequency first.
26597 (sort_bucket): Add compare function as a parameter.
26598 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
26599 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
26600 (push_allocno_to_stack): Rewrite for checking new allocno
26602 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
26603 (push_only_colorable): Pass new parameter to sort_bucket.
26604 (push_allocno_to_spill): Remove.
26605 (allocno_spill_priority_compare): Make it inline and rewrite.
26606 (splay_tree_allocate, splay_tree_free): Remove.
26607 (allocno_spill_sort_compare): New function.
26608 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
26609 build and use splay tree. Choose first allocno in uncolorable
26610 allocno bucket to spill. Remove setting spill cost.
26611 (all_conflicting_hard_regs): Remove.
26612 (setup_allocno_available_regs_num): Check only profitable hard
26613 regs. Print info about hard regs nodes.
26614 (setup_allocno_left_conflicts_size): Remove.
26615 (put_allocno_into_bucket): Don't call
26616 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
26617 (improve_allocation): New.
26618 (color_allocnos): Call setup_profitable_hard_regs,
26619 form_object_hard_regs_nodes_forest, improve_allocation,
26620 finish_object_hard_regs_nodes_forest. Setup spill cost.
26621 (print_loop_title): Use pressure classes.
26622 (color_allocnso): Ditto.
26623 (do_coloring): Remove allocation and freeing splay_tree_node_pool
26624 and allocnos_for_spilling.
26625 (ira_sort_regnos_for_alter_reg): Don't setup members
26626 {first,next}_coalesced_allocno.
26627 (color): Remove allocating and freeing removed_splay_allocno_vec.
26628 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
26629 prohibited_class_mode_regs.
26631 * ira-lives.c: Remove mentioning cover classes from the file. Fix
26633 (update_allocno_pressure_excess_length): Use pressure classes.
26634 (inc_register_pressure, dec_register_pressure): Check for pressure
26636 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
26637 pressure class. Use ira_reg_class_nregs instead of
26638 ira_reg_class_max_nregs.
26639 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
26640 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
26641 (single_reg_class): Use ira_reg_class_nregs instead of
26642 ira_reg_class_max_nregs.
26643 (process_bb_node_lives): Use pressure classes.
26645 * ira-emit.c: Remove mentioning cover classes from the file. Use
26646 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
26647 (change_loop): Use pressure classes.
26648 (modify_move_list): Call ira_set_allocno_class instead of
26649 ira_set_allocno_cover_class.
26651 * ira-build.c: Remove mentioning cover classes from the file. Use
26652 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
26653 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
26654 ALLOCNO_UPDATED_CLASS_COST instead of
26655 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
26656 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
26657 (ira_create_allocno): Remove initialization of
26658 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
26659 ALLOCNO_COLORABLE_P.
26660 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
26661 Update conflict regs for the objects.
26662 (create_cap_allocno): Remove assert. Don't propagate
26663 ALLOCNO_AVAILABLE_REGS_NUM.
26664 (ira_free_allocno_costs): New function.
26665 (finish_allocno): Change a part of code into call of
26666 ira_free_allocno_costs.
26667 (low_pressure_loop_node_p): Use pressure classes.
26668 (object_range_compare_func): Don't compare classes.
26669 (setup_min_max_conflict_allocno_ids): Ditto.
26671 * loop-invariant.c: Remove mentioning cover classes from the file.
26672 Use ira_pressure_classes and ira_pressure_classes_num instead of
26673 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
26674 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
26675 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
26676 Use reg_allocno_class instead of reg_cover_class.
26677 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
26678 STACK_REG_COVER_CLASS.
26679 (get_regno_cover_class): Rename to get_regno_pressure_class.
26680 (move_loop_invariants): Initialize and finalize regstat.
26682 * ira.c: Remove mentioning cover classes from the file. Add
26683 comments about coloring without cover classes. Use ALLOCNO_CLASS
26684 instead of ALLOCNO_COVER_CLASS. Fix formatting.
26685 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
26686 setup_class_subset_and_memory_move_costs.
26687 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
26688 (setup_cover_and_important_classes): Rename to
26689 setup_allocno_and_important_classes.
26690 (setup_class_translate_array): New.
26691 (setup_class_translate): Call it for allocno and pressure classes.
26692 (cover_class_order): Rename to allocno_class_order.
26693 (comp_reg_classes_func): Use ira_allocno_class_translate instead
26694 of ira_class_translate.
26695 (reorder_important_classes): Set up ira_important_class_nums.
26696 (setup_reg_class_relations): Set up ira_reg_class_superunion.
26697 (print_class_cover): Rename to print_classes. Add parameter.
26698 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
26699 Print pressure classes too.
26700 (find_reg_class_closure): Rename to find_reg_classes. Don't call
26701 setup_reg_subclasses.
26702 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
26703 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
26704 (setup_prohibited_class_mode_regs): Use
26705 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
26706 (clarify_prohibited_class_mode_regs): New function.
26707 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
26708 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
26709 (ira_init_once): Initialize them.
26710 (free_register_move_costs): Process them.
26711 (ira_init): Move calls of find_reg_classes and
26712 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
26713 Call clarify_prohibited_class_mode_regs.
26714 (ira_no_alloc_reg): Remove.
26715 (too_high_register_pressure_p): Use pressure classes.
26717 * sched-deps.c: Remove mentioning cover classes from the file.
26718 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
26719 ira_pressure_classes and ira_pressure_classes_num instead of
26720 ira_reg_class_cover_size and ira_reg_class_cover.
26721 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
26722 sched_regno_pressure_class instead of sched_regno_cover_class.
26723 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
26724 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
26726 * ira.h: Add 2010 to Copyright.
26727 (ira_no_alloc_reg): Remove external.
26728 (struct target_ira): Rename x_ira_hard_regno_cover_class,
26729 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
26730 x_ira_class_translate to x_ira_hard_regno_allocno_class,
26731 x_ira_allocno_classes_num, x_ira_allocno_classes, and
26732 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
26733 x_ira_pressure_classes, x_ira_pressure_class_translate, and
26734 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
26735 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
26736 x_ira_no_alloc_regs.
26737 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
26738 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
26739 ira_allocno_classes_num and ira_allocno_classes.
26740 (ira_class_translate): Rename to ira_allocno_class_translate.
26741 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
26742 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
26743 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
26744 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
26745 (ira_no_alloc_regs): New.
26747 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
26748 classes from the file. Use ALLOCNO_CLASS instead of
26749 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
26750 ALLOCNO_COVER_CLASS_COST.
26751 (regno_cover_class): Rename to regno_aclass.
26752 (record_reg_classes): Use ira_reg_class_subunion instead of
26753 ira_reg_class_union.
26754 (record_address_regs): Check overflow.
26755 (scan_one_insn): Ditto.
26756 (print_allocno_costs): Print total mem cost fore regional allocation.
26757 (print_pseudo_costs): Use REG_N_REFS.
26758 (find_costs_and_classes): Use classes intersected with them on the
26759 1st pass. Check overflow. Use ira_reg_class_subunion instead of
26760 ira_reg_class_union. Use ira_allocno_class_translate and
26761 regno_aclass instead of ira_class_translate and regno_cover_class.
26762 Modify code for finding regno_aclass. Setup preferred classes for
26764 (setup_allocno_cover_class_and_costs): Rename to
26765 setup_allocno_class_and_costs. Use regno_aclass instead of
26766 regno_cover_class. Use ira_set_allocno_class instead of
26767 ira_set_allocno_cover_class.
26768 (init_costs, finish_costs): Use regno_aclass instead of
26770 (ira_costs): Use setup_allocno_class_and_costs instead of
26771 setup_allocno_cover_class_and_costs.
26772 (ira_tune_allocno_costs_and_cover_classes): Rename to
26773 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
26774 by processing objects. Use ira_reg_class_max_nregs instead of
26775 ira_reg_class_nregs.
26777 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
26779 * sched-int.h: Remove mentioning cover classes from the file.
26780 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
26782 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
26783 classes from the file.
26784 (struct reg_pref): Rename coverclass into allocnoclass.
26785 (reg_cover_class): Rename to reg_allocno_class.
26787 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
26789 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
26791 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
26793 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
26795 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
26797 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
26799 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
26801 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
26803 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
26805 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
26807 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
26808 (i386_ira_cover_classes): Ditto.
26810 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
26812 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
26814 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
26816 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
26818 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
26820 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
26822 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
26823 (mips_ira_cover_classes): Ditto.
26825 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
26827 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
26829 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
26831 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
26833 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
26835 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
26836 (IRA_COVER_CLASSES_VSX): Ditto.
26838 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
26839 (rs6000_ira_cover_classes): Ditto.
26841 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
26843 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
26845 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
26847 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
26849 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
26851 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
26853 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
26855 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
26857 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
26859 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
26861 2011-03-29 Jakub Jelinek <jakub@redhat.com>
26864 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
26865 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
26866 dw_fde_unlikely_section_end_label, cold_in_std_section,
26867 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
26868 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
26870 (output_fde): Use dw_fde_second_{begin,end} if second is
26871 true, otherwise dw_fde_{begin,end}.
26872 (output_call_frame_info): Test dw_fde_second_begin != NULL
26873 instead of dw_fde_switched_sections.
26874 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
26875 fields, initialize new fields. Initialize in_std_section
26876 unconditionally from the first partition.
26877 (dwarf2out_end_epilogue): Don't override dw_fde_end when
26878 dw_fde_second_begin is non-NULL.
26879 (dwarf2out_switch_text_section): Stop initializing removed
26880 dw_fde_struct fields, initialize new fields, initialize
26881 also dw_fde_end here. Set dw_fde_switch_cfi even when
26882 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
26883 (struct var_loc_list_def): Add last_before_switch field.
26884 (arange_table, arange_table_allocated, arange_table_in_use,
26885 ARANGE_TABLE_INCREMENT, add_arange): Removed.
26886 (size_of_aranges): Count !in_std_section and !second_in_std_section
26887 hunks in fdes, instead of looking at arange_table_in_use.
26888 (output_aranges): Add aranges_length argument, don't call
26889 size_of_aranges here. Instead of using aranges_table*
26890 emit ranges for fdes when !in_std_section resp.
26891 !second_in_std_section.
26892 (dw_loc_list): Break ranges crossing section switch.
26893 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
26894 use dw_fde_second_end instead of dw_fde_end as end of last range.
26895 (gen_subprogram_die): Don't call add_arange. Use
26896 dw_fde_{begin,end} for first partition and if switched
26897 section dw_fde_second_{begin,end} for the second.
26898 (var_location_switch_text_section_1,
26899 var_location_switch_text_section): New functions.
26900 (dwarf2out_begin_function): Initialize cold_text_section even
26901 when function_section () isn't text_section.
26902 (prune_unused_types): Don't walk arange_table.
26903 (dwarf2out_finish): Don't needlessly test
26904 flag_reorder_blocks_and_partition when testing cold_text_section_used.
26905 If info_section_emitted, call size_of_aranges and if it indicates
26906 non-empty .debug_aranges, call output_aranges with the computed
26907 size. Stop using removed dw_fde_struct fields, use
26908 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
26912 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
26913 create ENTRY_VALUE if incoming or address of incoming's MEM
26915 * dwarf2out.c (mem_loc_descriptor): Don't emit
26916 DW_OP_GNU_entry_value of DW_OP_fbreg.
26917 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
26918 on ENTRY_VALUE is able to find the canonical parameter VALUE.
26919 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
26920 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
26922 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
26923 is a REG_P or MEM_P with REG_P address, compute hash directly
26924 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
26925 (preserve_only_constants): Don't clear VALUES forwaring
26926 ENTRY_VALUE to some other VALUE.
26928 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
26930 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
26931 instead of GEN_INT.
26933 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
26935 * cfgexpand.c (expand_gimple_cond): Always set the source location and
26936 block before expanding the statement.
26937 (expand_gimple_stmt_1): Likewise. Set them here...
26938 (expand_gimple_stmt): ...and not here. Tidy.
26939 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
26942 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
26944 * Makefile.in: New rule for cprop.o.
26945 * gcse.c: Move constant/copy propagation to cprop.c.
26946 (compute_local_properties): Only handle expression tables.
26947 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
26948 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
26949 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
26950 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
26951 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
26952 compute_cprop_data, find_used_regs, try_replace_reg,
26953 find_avail_set, cprop_jump, constprop_register, cprop_insn,
26954 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
26955 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
26956 find_bypass_set, reg_killed_on_edge, bypass_block,
26957 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
26958 execute_rtl_cprop, pass_rtl_cprop): Move to...
26959 * cprop.c: ...here. New file, constant/copy propagation for RTL
26960 moved from gcse.c to here with minor cleanups in duplicated code.
26962 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
26964 * config/i386/i386.c (flag_opts): Fix a typo in
26965 -mavx256-split-unaligned-store.
26967 2011-03-28 Anatoly Sokolov <aesok@post.ru>
26969 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
26970 LIBCALL_VALUE): Remove macros.
26971 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
26972 TARGET_FUNCTION_VALUE_REGNO_P): Define.
26973 (h8300_function_value, h8300_libcall_value,
26974 h8300_function_value_regno_p): New functions.
26976 2011-03-28 Anatoly Sokolov <aesok@post.ru>
26978 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
26980 2011-03-28 Jeff Law <law@redhat.com>
26982 * tree-ssa-threadupdate.c (redirect_edges): Call
26983 create_edge_and_update_destination_phis as needed.
26984 (create_edge_and_update_destination_phis): Accept new BB argument.
26985 All callers updated.
26986 (thread_block): Do not update the profile when threading around
26987 intermediate blocks.
26988 (thread_single_edge): Likewise.
26989 (determine_bb_domination_status): If BB is not a successor of the
26990 loop header, return NONDOMINATING.
26991 (register_jump_thread): Note when we register a jump thread around
26992 an intermediate block.
26993 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
26994 (thread_across_edge): Use it.
26996 2011-03-28 Tristan Gingold <gingold@adacore.com>
26998 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
26999 when for_return is 2.
27001 2011-03-28 Jeff Law <law@redhat.com>
27003 * var-tracking.c (canonicalize_values_mark): Delete unused
27005 (canonicalize_values_star, set_variable_part): Likewise.
27006 (clobber_variable_part, delete_variable_part): Likewise.
27008 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
27010 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
27012 2011-03-28 Martin Jambor <mjambor@suse.cz>
27014 * tree-inline.c (expand_call_inline): Do not check that destination
27016 (optimize_inline_calls): Assert that destination node is analyzed.
27017 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
27018 not call tree_lowering_passes.
27019 * cgraph.h (cgraph_analyze_function): Declare.
27020 * cgraphunit.c (cgraph_analyze_function): Make public.
27022 2011-03-28 Joseph Myers <joseph@codesourcery.com>
27024 * config/sparc/sparc-opts.h: New.
27025 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
27026 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
27027 (sparc_option_override): Store processor_type enumeration rather
27028 than string in cpu_default. Remove name and enumeration from
27029 cpu_table. Directly default -mcpu then default -mtune from -mcpu
27030 without using sparc_select. Use target_flags_explicit instead of
27032 * config/sparc/sparc.h (enum processor_type): Move to
27034 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
27035 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
27036 HeaderInclude entry.
27037 (mcpu=, mtune=): Use Var and Enum.
27038 (sparc_processor_type): New Enum and EnumValue entries.
27040 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27041 Iain Sandoe <iains@gcc.gnu.org>
27044 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
27046 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
27048 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
27049 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
27050 Insert new statements at it in lieu of STMT.
27051 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
27052 * tree-vect-stmts.c (vectorizable_store): Likewise.
27053 (vectorizable_load): Likewise.
27055 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
27057 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
27062 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
27064 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
27065 unaligned 256bit load/store.
27066 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
27067 (*avx_movdqu<avxmodesuffix>): Likewise.
27069 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27072 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
27073 * config/pa/pa.md (iordi3): Use new predicate in expander.
27074 (iorsi3): Likewise.
27076 2011-03-27 Anatoly Sokolov <aesok@post.ru>
27078 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
27079 FUNCTION_VALUE_REGNO_P): Remove macros.
27080 * config/mips/mips-protos.h (mips_function_value): Remove.
27081 * config/mips/mips.c (mips_function_value): Rename to...
27082 (mips_function_value_1): ... this. Make static. Handle receiving
27083 the function type in 'fn_decl_or_type' argument.
27084 (mips_function_value, mips_libcall_value,
27085 mips_function_value_regno_p): New function.
27086 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
27087 TARGET_FUNCTION_VALUE_REGNO_P): Define.
27089 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
27091 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
27092 and -mavx256-split-unaligned-store.
27093 (ix86_option_override_internal): Split 32-byte AVX unaligned
27094 load/store by default.
27095 (ix86_avx256_split_vector_move_misalign): New.
27096 (ix86_expand_vector_move_misalign): Use it.
27098 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
27099 -mavx256-split-unaligned-store.
27101 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
27102 256bit load/store. Generate unaligned store on misaligned memory
27104 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
27106 (*avx_movdqu<avxmodesuffix>): Likewise.
27108 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
27109 -mavx256-split-unaligned-store.
27111 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
27114 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
27117 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
27119 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
27120 opno arguments with an expand_operand. Use create_input_operand.
27121 (mips_prepare_builtin_target): Delete.
27122 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
27124 (mips_expand_builtin_direct): Use create_output_operand and
27125 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
27126 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
27127 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
27129 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
27131 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
27133 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
27135 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
27137 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
27138 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
27139 basic blocks and call commit_edge_insertions directly.
27140 (fixup_abnormal_edges): Move from here to...
27141 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
27142 on the edges and return whether some have actually been inserted.
27143 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
27146 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
27148 PR rtl-optimization/48144
27149 * sel-sched-ir.c (merge_history_vect): Factor out from ...
27150 (merge_expr_data): ... here.
27151 (av_set_intersect): Rename to av_set_code_motion_filter.
27152 Update all callers. Call merge_history_vect when an expression
27153 is found in both sets.
27154 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
27156 2011-03-26 Alan Modra <amodra@gmail.com>
27158 * config/rs6000/predicates.md (word_offset_memref_op): Handle
27159 cmodel medium addresses.
27160 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
27161 64-bit gpr loads and stores.
27162 (rs6000_secondary_reload_ppc64): New function.
27163 * config/rs6000/rs6000-protos.h: Declare it.
27164 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
27166 2011-03-26 Alan Modra <amodra@gmail.com>
27169 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
27170 GNU Go in traceback table.
27172 2011-03-25 Richard Henderson <rth@redhat.com>
27174 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
27175 if there are exactly 6 operands.
27176 (set_storage_via_setmem): Similarly.
27178 2011-03-25 Kai Tietz <ktietz@redhat.com>
27180 * collect2.c (write_c_file_stat): Handle backslash
27181 as right-hand directory separator.
27182 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
27183 checking just for slash.
27184 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
27185 instead of checking for trailing slash.
27186 * gcc.c (record_temp_file): Use filename_cmp instead
27188 (do_spec_1): Likewise.
27189 (replace_outfile_spec_function): Likewise.
27190 (is_directory): Use filename_ncmp instead of strncmp.
27191 (print_multilib_info): Likewise.
27192 * gcov.c (find_source): Use filename_cmp instead
27194 (make_gcov_file_name): Fix order of slash/backslash
27196 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
27197 (add_standard_paths): Likewise.
27198 * mips-tfile.c (saber_stop): Handle backslash.
27199 * prefix.c (update_path): Use filename_ncmp instead of
27201 * profile.c (output_location): Use filename_cmp instead
27203 * read-md.c (handle_toplevel_file): Handle backslash.
27204 * tlink.c (frob_extension): Likewise.
27205 * tree-cfg.c (same_line_p): Use filename_cmp instead of
27207 * tree-dump.c (dequeue_and_dump): Handle backslash.
27208 * tree.c (get_file_function_name): Likewise.
27209 * gengtype.c (read_input_list): Likewise.
27210 (get_file_realbasename): Likewise.
27211 (get_output_file_with_visibility): Use filename_cmp
27214 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
27216 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
27219 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
27221 * fold-const.c (expr_location_or): New function.
27222 (fold_truth_not_expr): Call it.
27224 2011-03-25 Jeff Law <law@redhat.com>
27226 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
27228 * c-family/c-common.c (def_fn_type): Likewise.
27229 * emit-rtl.c (gen_rtvec): Likewise.
27230 * lto/lto-lang.c (def_fn_type): Likewise.
27232 2011-03-25 Richard Guenther <rguenther@suse.de>
27234 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
27235 also generate copies.
27236 (fini_copy_prop): Handle constant values properly.
27238 2011-03-25 Jakub Jelinek <jakub@redhat.com>
27240 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
27241 mode size instead of bitsize with DWARF2_ADDR_SIZE.
27242 (hash_loc_operands, compare_loc_operands): Handle
27243 DW_OP_GNU_entry_value.
27245 2011-03-25 Kai Tietz <ktietz@redhat.com>
27247 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
27248 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
27249 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
27250 comment and use macro TARGET_64BIT_MS_ABI instead.
27251 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
27252 and change default behavior for 32-bit MS_ABI.
27253 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
27254 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
27256 (ix86_cfun_abi): Likewise.
27257 (ix86_maybe_switch_abi): Adjust comment.
27258 (init_cumulative_args): Check for bit-ness in MS_ABI case.
27259 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
27260 instead of checking for SYSV_ABI.
27261 (ix86_nsaved_sseregs): Likewise.
27262 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
27264 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
27265 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
27266 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
27267 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
27268 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
27270 2011-03-25 Richard Guenther <rguenther@suse.de>
27272 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
27273 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
27274 (verify_gimple): Remove.
27275 * tree-cfg.c (verify_gimple_call): Merge verification
27277 (verify_gimple_phi): Merge verification from verify_stmts.
27278 (verify_gimple_label): New function.
27279 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
27280 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
27281 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
27282 (verify_stmts): Rename to verify_gimple_in_cfg.
27283 (verify_gimple_in_cfg): New function.
27284 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
27285 * tree-ssa.c (verify_ssa): Likewise.
27286 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
27288 2011-03-25 Richard Guenther <rguenther@suse.de>
27290 * passes.c (init_optimization_passes): Add FRE pass after
27293 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
27294 Andrew Stubbs <ams@codesourcery.com>
27296 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
27298 (arm_movdi_vfp_cortexa8): New pattern.
27299 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
27300 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
27301 instructions when tuning for Cortex-A8. Set attribute "arch".
27302 * config/arm/arm.md: Move include arm-tune.md up a bit.
27303 (define_attr "arch"): Add "onlya8" and "nota8" values.
27304 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
27306 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
27310 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
27312 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
27313 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
27314 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
27315 * passes.c (init_optimization_passes): Move
27316 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
27318 2011-03-25 Kai Tietz <ktietz@redhat.com>
27320 * c-typeck.c (comptypes_internal): Replace target
27321 hook call of comp_type_attributes by version in tree.c file.
27322 * gimple.c (gimple_types_compatible_p_1): Likewise.
27323 * tree-ssa.c (useless_type_conversion_p): Likewise.
27324 * tree.c (build_type_attribute_qual_variant): Likewise.
27325 (attribute_value_equal): New static helper function.
27326 (comp_type_attributes): New function.
27327 (merge_attributes): Use attribute_value_equal for comparison.
27328 (attribute_list_contained): Likewise.
27329 * tree.h (comp_type_attributes): New prototype.
27331 2011-03-25 Richard Guenther <rguenther@suse.de>
27333 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
27334 of complex types at -O0.
27335 (verify_gimple_assign_binary): Likewise.
27336 (verify_gimple_assign_ternary): Likewise.
27338 2011-03-24 Mark Wielaard <mjw@redhat.com>
27340 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
27341 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
27343 2011-03-24 Mark Wielaard <mjw@redhat.com>
27346 * dwarf2out.c (output_abbrev_section): Only write table when
27347 abbrev_die_table_in_use > 1.
27349 2011-02-24 Richard Henderson <rth@redhat.com>
27351 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
27352 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
27353 (alpha_expand_unaligned_load_words): Use extql.
27354 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
27355 (emit_insxl): Handle all modes for consistency.
27357 2011-02-24 Richard Henderson <rth@redhat.com>
27359 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
27360 (alpha_expand_unaligned_load): Likewise.
27361 (alpha_expand_unaligned_store): Likewise.
27362 (alpha_expand_unaligned_load_words): Likewise.
27363 (alpha_expand_unaligned_store_words): Likewise.
27364 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
27365 (alpha_split_lock_test_and_set_12): Likewise.
27366 (print_operand, alpha_fold_builtin_extxx): Likewise.
27367 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
27368 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
27369 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
27370 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
27371 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
27372 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
27373 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
27374 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
27375 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
27376 (extwl, extll, extql): Similarly.
27377 (inswh, inslh, insqh): Similarly.
27378 (mskbl, mskwl, mskll, mskql): Similarly.
27379 (mskwh, msklh, mskqh): Similarly.
27381 2011-02-24 Richard Henderson <rth@redhat.com>
27383 * config/alpha/alpha.md (attribute isa): Add er, ner.
27384 (attribute enabled): Handle them.
27385 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
27387 2011-02-24 Richard Henderson <rth@redhat.com>
27389 * config/alpha/alpha.md (attribute isa): Add vms.
27390 (attribute enabled): Handle it.
27391 (*movsf): Merge *movsf_{nofix,fix,nofp}.
27392 (*movdf): Merge *movdf_{nofix,fix,nofp}.
27393 (*movtf): Rename from *movtf_internal for consistency.
27394 (*movsi): Merge with *movsi_nt_vms.
27395 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
27396 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
27397 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
27398 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
27400 2011-02-24 Richard Henderson <rth@redhat.com>
27402 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
27403 (extendqisi2, extendhisi2): Likewise.
27404 (extendqidi2): Simplify BWX/non-BWX expansions.
27405 (extendhidi2): Similarly.
27407 2011-02-24 Richard Henderson <rth@redhat.com>
27409 * config/alpha/alpha.md (attribute isa): New.
27410 (attribute enabled): New.
27411 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
27412 (zero_extendqisi2, zero_extendqidi2): Similarly.
27413 (zero_extendhisi2, zero_extendhidi2): Similarly.
27414 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
27416 2011-02-24 Richard Henderson <rth@redhat.com>
27418 * config/alpha/predicates.md (input_operand): Revert last change;
27419 update comment to mention 32-bit VMS rather than Windows.
27421 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
27423 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
27424 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
27425 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
27426 * passes.c (init_optimization_passes): Move
27427 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
27429 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
27431 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
27433 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
27435 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
27438 2011-03-24 Jakub Jelinek <jakub@redhat.com>
27441 * simplify-rtx.c (simplify_const_unary_operation): Call
27442 real_convert when changing mode class with FLOAT_EXTEND.
27444 2011-03-24 Nick Clifton <nickc@redhat.com>
27446 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
27447 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
27448 * config/rx/rx.c (rx_option_override): Set align_jumps,
27449 align_loops and align_labels if not set by the user.
27450 (rx_align_for_label): New function.
27451 (rx_max_skip_for_label): New function.
27452 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
27453 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
27454 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
27455 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
27456 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
27458 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
27460 PR rtl-optimization/48263
27461 * optabs.c (expand_binop_directly): Reinstate convert_modes code
27462 and original commutative_p handling. Use maybe_gen_insn.
27464 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27466 * reload.c (find_reloads_subreg_address): Add address_reloaded
27467 parameter and return true there if the full address has been
27469 (find_reloads_toplev): Pass address_reloaded flag.
27470 (find_reloads_address_1): Don't use address_reloaded parameter.
27472 2011-03-24 Jeff Law <law@redhat.com>
27474 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
27475 unused variable "ann".
27476 (remove_unused_locals): Likewise.
27478 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
27481 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
27484 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27486 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
27487 for invalid symbolic addresses.
27488 (s390_secondary_reload): Don't use s390_check_symref_alignment for
27491 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
27493 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
27494 the argument in calls to fold_truth_not_expr.
27496 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
27498 * tree.c (record_node_allocation_statistics): New function.
27499 (make_node_stat, copy_node_stat, build_string): Call it.
27500 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
27501 (build1_stat, build_omp_clause): Likewise.
27503 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
27505 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
27508 2011-03-24 Richard Guenther <rguenther@suse.de>
27510 PR tree-optimization/48271
27511 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
27512 blocks that still exist.
27514 2011-03-24 Richard Guenther <rguenther@suse.de>
27516 PR tree-optimization/48270
27517 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
27518 not free datarefs before ddrs.
27520 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
27522 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
27523 from the address built for a reference with variable offset.
27525 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
27528 * config/i386/i386.md (*movdf_internal_rex64): Do not split
27529 alternatives that can be handled with movq or movabsq insn.
27530 (*movdf_internal): Disable for !TARGET_64BIT.
27531 (*movdf_internal_nointeger): Ditto.
27532 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
27534 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
27536 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
27537 (FUNCTION_ARG_ADVANCE): Likewise.
27538 * tm.texi.in: Change references to them to hook references.
27539 * tm.texi: Regenerate.
27540 * targhooks.c (default_function_arg): Eliminate check for target macro.
27541 (default_function_incoming_arg): Likewise.
27542 (default_function_arg_advance): Likewise.
27543 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
27544 (function_arg_advance): Likewise.
27545 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
27547 2011-03-24 Richard Guenther <rguenther@suse.de>
27549 PR middle-end/48269
27550 * tree-object-size.c (addr_object_size): Do not double-account
27551 for MEM_REF offsets.
27553 2011-03-24 Diego Novillo <dnovillo@google.com>
27555 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
27556 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
27557 (lto_input_data_block): Move from lto-opts.c. Make extern.
27559 (lto_input_string): Rename from input_string. Make extern.
27561 * lto-streamer-out.c (lto_output_string_with_length): Rename from
27562 output_string_with_length.
27563 Output 0 to indicate a non-NULL string. Update all callers to
27565 (lto_output_string): Rename from output_string. Make extern.
27567 (lto_output_decl_state_streams): Make extern.
27568 (lto_output_decl_state_refs): Make extern.
27569 * lto-streamer.h (lto_input_string): Declare.
27570 (lto_input_data_block): Declare.
27571 (lto_output_string): Declare.
27572 (lto_output_string_with_length): Declare.
27573 (lto_output_decl_state_streams): Declare.
27574 (lto_output_decl_state_refs): Declare.
27576 2011-03-24 Richard Guenther <rguenther@suse.de>
27578 PR tree-optimization/46562
27579 * tree.c (build_invariant_address): New function.
27580 * tree.h (build_invariant_address): Declare.
27581 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
27582 a renamed function moved ...
27583 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
27584 Take valueization callback parameter.
27585 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
27586 * gimple-fold.h: New file.
27587 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
27588 (ccp_fold, fold_const_aggregate_ref,
27589 fold_ctor_reference, fold_nonarray_ctor_reference,
27590 fold_array_ctor_reference, fold_string_cst_ctor_reference,
27591 get_base_constructor): Move ...
27592 * gimple-fold.c: ... here.
27593 (gimple_fold_stmt_to_constant_1): New function
27594 split out from ccp_fold. Take a valueization callback parameter.
27595 Valueize all operands.
27596 (gimple_fold_stmt_to_constant): New wrapper function.
27597 (fold_const_aggregate_ref_1): New function split out from
27598 fold_const_aggregate_ref. Take a valueization callback parameter.
27599 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
27600 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
27601 invariant POINTER_PLUS_EXPRs to invariant form.
27602 (vn_valueize): New function.
27603 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
27604 * tree-vrp.c (vrp_valueize): New function.
27605 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
27606 to fold statements to constants.
27607 * tree-ssa-pre.c (eliminate): Properly guard propagation of
27608 function declarations.
27609 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
27610 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
27612 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
27614 * config/h8300/predicates.md (jump_address_operand): Fix register
27617 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
27619 * doc/invoke.texi (max-stores-to-sink): Document.
27620 * params.h (MAX_STORES_TO_SINK): Define.
27621 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
27622 if either vectorization or if-conversion is disabled.
27623 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
27624 tree-vect-data-refs.c vect_equal_offsets.
27625 (dr_equal_offsets_p): New function.
27626 (find_data_references_in_bb): Remove static.
27627 * tree-data-ref.h (find_data_references_in_bb): Declare.
27628 (dr_equal_offsets_p): Likewise.
27629 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
27630 (vect_drs_dependent_in_basic_block): Update calls to
27631 vect_equal_offsets.
27632 (vect_check_interleaving): Likewise.
27633 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
27634 (cond_if_else_store_replacement): Rename to...
27635 (cond_if_else_store_replacement_1): ... this. Change arguments and
27637 (cond_if_else_store_replacement): New function.
27638 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
27639 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
27641 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
27644 * config/arm/arm.md (casesi): Use the gen_int_mode() function
27645 to subtract lower bound instead of GEN_INT().
27647 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
27652 * doc/extend.texi (Alignment): Move section to match order in TOC.
27653 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
27654 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
27656 2011-03-23 Jeff Law <law@redhat.com>
27658 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
27659 before removing the edge.
27661 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
27662 it may have been freed by redirect_branch_edge or
27663 redirect_edge_succ_nodup.
27665 2011-03-23 Richard Guenther <rguenther@suse.de>
27667 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
27668 (check_va_list_escapes): Likewise.
27669 (check_all_va_list_escapes): Likewise.
27671 2011-03-23 Richard Guenther <rguenther@suse.de>
27673 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
27674 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
27675 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
27676 (alias.o): Likewise.
27677 (ipa-type-escape.o): Remove.
27678 (ipa-struct-reorg.o): Likewise.
27679 (GTFILES): Remove ipa-struct-reorg.c.
27680 * alias.c: Do not include ipa-type-escape.h.
27681 * tree-ssa-alias.c: Likewise.
27682 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
27683 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
27684 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
27685 and ipa-type-escape passes.
27686 * tree-pass.h (pass_ipa_type_escape): Remove.
27687 (pass_ipa_struct_reorg): Likewise.
27688 * ipa-struct-reorg.h: Remove.
27689 * ipa-struct-reorg.c: Likewise.
27690 * ipa-type-escape.h: Likewise.
27691 * ipa-type-escape.c: Likewise.
27692 * doc/invoke.texi (-fipa-struct-reorg): Remove.
27693 (--param struct-reorg-cold-struct-ratio): Likewise.
27694 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
27695 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
27696 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
27698 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27700 * config/s390/2084.md: Enable all insn reservations also for z9_ec
27701 cpu attribute value.
27702 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
27703 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
27704 * config/s390/s390.c (processor_flags_table): New constant array.
27705 (s390_handle_arch_option): Remove.
27706 (s390_handle_option): Remove s390_handle_arch_option invocations
27707 and OPT_mwarn_framesize_ handling.
27708 (s390_option_override): Remove s390_handle_arch_option invocation.
27709 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
27711 * config/s390/s390.md (cpu attribute): Add z9_ec value.
27712 * config/s390/s390.opt (s390_tune, s390_arch)
27713 (march=): Replace s390_arch_option enum and values with
27714 processor_type. Set variable name to s390_arch. Set
27715 initialization value.
27716 (mtune=): Replace s390_arch_option with processor_type. Set
27717 variable name to s390_tune. Set initialization value.
27719 2011-03-23 Julian Brown <julian@codesourcery.com>
27721 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
27722 accesses which are not naturally aligned.
27724 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
27727 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
27729 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
27731 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
27732 parameter from "int" to "enum insn_code".
27733 (expand_operand_type): New enum.
27734 (expand_operand): New structure.
27735 (create_expand_operand): New function.
27736 (create_fixed_operand, create_output_operand): Likewise
27737 (create_input_operand, create_convert_operand_to): Likewise.
27738 (create_convert_operand_from, create_address_operand): Likewise.
27739 (create_integer_operand): Likewise.
27740 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
27741 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
27742 (expand_insn, expand_jump_insn): Likewise.
27743 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
27744 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
27745 (expand_movstr, expand_builtin___clear_cache): Likewise.
27746 (expand_builtin_lock_release): Likewise.
27747 * explow.c (allocate_dynamic_stack_space): Likewise.
27748 (probe_stack_range): Likewise. Allow check_stack to FAIL,
27749 and use the default handling in that case.
27750 * expmed.c (check_predicate_volatile_ok): Delete.
27751 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
27752 (emit_cstore): Likewise.
27753 * expr.c (emit_block_move_via_movmem): Likewise.
27754 (set_storage_via_setmem, expand_assignment): Likewise.
27755 (emit_storent_insn, try_casesi): Likewise.
27756 (emit_single_push_insn): Likewise. Allow the expansion to fail.
27757 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
27758 (expand_vec_shift_expr, expand_binop_directly): Likewise.
27759 (expand_twoval_unop, expand_twoval_binop): Likewise.
27760 (expand_unop_direct, emit_indirect_jump): Likewise.
27761 (emit_conditional_move, vector_compare_rtx): Likewise.
27762 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
27763 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
27764 (expand_sync_lock_test_and_set): Likewise.
27765 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
27766 (emit_unop_insn): Likewise.
27767 (expand_copysign_absneg): Change icode to an insn_code.
27768 (create_convert_operand_from_type): New function.
27769 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
27770 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
27771 (expand_insn, expand_jump_insn): Likewise.
27772 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
27773 than const_int_operand for operand 2.
27775 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27777 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
27780 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
27782 * emit-rtl.c (emit_pattern_before_noloc): New function.
27783 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
27784 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
27785 (emit_pattern_after_noloc): New function.
27786 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
27787 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
27789 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
27791 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
27792 (__ffsDI2): Likewise.
27794 2011-03-22 Richard Henderson <rth@redhat.com>
27796 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
27797 of !TARGET_ABI_OPEN_VMS.
27798 (alpha_trampoline_init, alpha_start_function): Likewise.
27799 (alpha_expand_epilogue, alpha_file_start): Likewise.
27800 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
27801 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
27802 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
27803 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
27804 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
27806 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27808 * config/s390/s390-opts.h: New.
27809 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
27810 s390_arch_flags, s390_warn_framesize, s390_stack_size,
27811 s390_stack_guard): Remove.
27812 (s390_handle_arch_option): Return void. Take enum
27813 s390_arch_option value instead of string and searching array.
27814 (s390_handle_option): Don't assert that global structures are in
27815 use. Access variables via opts pointer. Use error_at. Don't use
27816 sscanf for -mstack-guard= or -mstack-size=. Update call to
27817 s390_handle_arch_option.
27818 (s390_option_override): Update call to s390_handle_arch_option.
27819 (s390_emit_prologue): Use %d format for s390_stack_size in
27820 diagnostic. Use %wd for HOST_WIDE_INT.
27821 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
27822 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
27823 * config/s390/s390.opt (config/s390/s390-opts.h): New
27824 HeaderInclude entry.
27825 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
27826 s390_arch_flags, s390_warn_framesize): New Variable entries.
27827 (s390_arch_option): New Enum and EnumValue entries.
27828 (march=): Use Enum instead of Var.
27829 (mstack-guard=, mstack-size=): Use UInteger and Var.
27830 (mtune=): Use Enum.
27832 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27834 * config/score/score.c (score_handle_option): Don't assert that
27835 global structures are in use. Access target_flags via opts
27836 pointer. Use value of -march= option to determine target_flags
27838 * config/score/score.opt (march=): Use Enum.
27839 (score_arch): New Enum and EnumValue entries.
27841 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27843 * config/mep/mep.c (option_mtiny_specified): Remove.
27844 (mep_option_override): Move register handling for -mivc2 from
27845 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
27846 instead of option_mtiny_specified.
27847 (mep_handle_option): Access target_flags via opts pointer. Don't
27848 assert that global structures are in use. Defer part of -mivc2
27849 handling and move it to mep_option_override.
27850 * config/mep/mep.opt (IVC2): New Mask entry.
27851 (mivc2): Use Var and Defer instead of Mask.
27853 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27855 * config/v850/v850-opts.h: New.
27856 * config/v850/v850.c (small_memory): Replace with
27857 small_memory_physical_max array. Make that array static const.
27858 (v850_handle_memory_option): Take integer value of argument. Take
27859 gcc_options pointer, option text and location. Return void.
27860 Update for changes to small memory structures.
27861 (v850_handle_option): Access target_flags via opts pointer. Don't
27862 assert that global structures are in use. Update calls to
27863 v850_handle_memory_option.
27864 (v850_encode_data_area): Update references to small memory settings.
27865 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
27866 (enum small_memory_type): Move to v850-opts.h.
27867 * config/v850/v850.opt (config/v850/v850-opts.h): New
27868 HeaderInclude entry.
27869 (small_memory_max): New Variable entry.
27870 (msda): Replace by pair of options msda= and msda-. Use UInteger.
27871 (mtda, mzda): Likewise.
27873 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27875 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
27876 pointer. Don't assert that global structures are in use.
27878 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27880 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
27881 via opts pointer. Don't assert that global structures are in use.
27883 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27885 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
27886 (munix=93): Use Var.
27887 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
27888 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
27889 * config/pa/pa-opts.h: New.
27890 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
27891 (pa_handle_option): Don't assert that global structures are in
27892 use. Access target_flags via opts pointer. Don't handle
27893 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
27895 (pa_option_override): Handle deferred OPT_mfixed_range_.
27897 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27899 * config/mn10300/mn10300-opts.h: New.
27900 * config/mn10300/mn10300.c (mn10300_processor,
27901 mn10300_tune_string): Remove.
27902 (mn10300_handle_option): Don't assert that global structures are
27903 in use. Access mn10300_processor via opts pointer. Don't handle
27905 * config/mn10300/mn10300.h (enum processor_type): Move to
27907 (mn10300_processor): Remove.
27908 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
27909 HeaderInclude entry.
27910 (mn10300_processor): New Variable entry.
27913 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27915 * config/microblaze/microblaze.c: Don't include opts.h.
27916 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
27917 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
27918 (mno-clearbss): Use Var and Warn.
27920 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27922 * config/m32r/m32r-opts.h: New.
27923 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
27924 (m32r_handle_option): Don't assert that global structures are in
27925 use. Access target_flags and m32r_cache_flush_func via opts
27926 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
27927 OPT_mno_flush_trap here.
27928 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
27929 include of m32r-opts.h.
27930 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
27931 HeaderInclude entry.
27932 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
27933 (mmodel=): Use Enum and Var.
27934 (m32r_model): New Enum and EnumValue entries.
27935 (mno-flush-trap): Use Var.
27936 (msdata=): Use Enum and Var.
27937 (m32r_sdata): New Enum and EnumValue entries.
27939 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27941 * config/m32c/m32c.c: Don't include opts.h.
27942 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
27943 m32c_handle_option): Remove.
27944 (m32c_option_override): Check global_options_set.x_target_memregs
27945 instead of target_memregs_set.
27946 * config/m32c/m32c.h (target_memregs): Remove.
27947 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
27950 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27952 * config/iq2000/iq2000-opts.h: New.
27953 * config/iq2000/iq2000.c: Don't include opts.h.
27954 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
27955 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
27956 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
27957 HeaderInclude entry.
27958 (iq2000_tune): New Variable entry.
27959 (march=): Add comment. Use Enum.
27960 (iq2000_arch): New Enum and EnumValue entries.
27961 (mcpu=): Use Enum and Var.
27962 (iq2000_tune): New Enum and EnumValue entries.
27964 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27966 * config/ia64/ia64-opts.h: New.
27967 * config/ia64/ia64.c (ia64_tune): Remove.
27968 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
27969 here. Use error_at.
27970 (ia64_option_override): Handle deferred OPT_mfixed_range_.
27971 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
27972 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
27973 HeaderInclude entry.
27974 (ia64_tune): New Variable entry.
27975 (mfixed-range=): Use Defer and Var.
27976 (mtune=): Use Enum and Var.
27977 (ia64_tune): New Enum and EnumValue entries.
27979 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27981 * config/frv/frv-opts.h: New.
27982 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
27984 (frv_cpu_type): Remove.
27985 * config/frv/frv.c: Don't include opts.h.
27986 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
27987 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
27988 (frv_cpu_type): New Variable entry.
27989 (frv_cpu): New Enum and EnumValue entries.
27991 2011-03-22 Joseph Myers <joseph@codesourcery.com>
27993 * config/cris/cris.c (cris_handle_option): Access target_flags via
27994 opts pointer. Don't assert that global structures are in use.
27995 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
27996 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
27998 2011-03-22 Joseph Myers <joseph@codesourcery.com>
28000 * config/bfin/bfin-opts.h: New.
28001 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
28002 bfin_si_revision, bfin_workarounds): Remove.
28003 (bfin_cpus): Make static const.
28004 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
28005 not bfin_lib_id_given.
28006 (bfin_handle_option): Don't set bfin_lib_id_given. Access
28007 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
28008 pointer. Use error_at. Don't assert that global structures are in use.
28009 * config/bfin/bfin.h: Include bfin-opts.h.
28010 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
28011 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
28012 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
28013 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
28016 2011-03-22 Joseph Myers <joseph@codesourcery.com>
28018 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
28019 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
28020 or -msoft-float here.
28021 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
28022 -msoft-float and -mhard-float.
28023 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
28024 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
28026 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
28028 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
28029 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
28031 (LIBGCC_SPEC): Don't handle -msoft-float.
28032 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
28034 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
28036 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
28037 -mfloat-abi=*, not -msoft-float and -mhard-float.
28038 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
28040 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
28041 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
28042 mhard-float and msoft-float.
28043 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
28044 mfloat-abi=soft in comments, not mhard-float and msoft-float.
28045 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
28046 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
28048 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
28049 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
28051 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
28053 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
28056 2011-03-22 Richard Henderson <rth@redhat.com>
28058 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
28059 TARGET_ABI_WINDOWS_NT.
28060 (alpha_output_function_end_prologue): Likewise.
28061 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
28062 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
28063 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
28064 (trap, *movsi_nt_vms): Likewise.
28065 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
28066 (*tablejump_osf_nt_internal): Remove.
28067 * config/alpha/predicates.md (input_operand): Only test Pmode.
28069 2011-03-22 Joseph Myers <joseph@codesourcery.com>
28071 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
28072 via opts pointer. Use error_at. Don't assert that global
28073 structures are in use.
28075 2011-03-22 Joseph Myers <joseph@codesourcery.com>
28077 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
28078 (ix86_handle_option): Access ix86_isa_flags and
28079 ix86_isa_flags_explicit via opts pointer. Don't assert that
28080 global structures are in use.
28081 (ix86_function_specific_save, ix86_function_specific_restore):
28082 Update ix86_isa_flags_explicit field name.
28083 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
28084 (ix86_isa_flags_explicit): Rename TargetSave entry to
28085 x_ix86_isa_flags_explicit.
28087 2011-03-22 Richard Henderson <rth@redhat.com>
28089 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
28090 (alpha_option_override, direct_return): Likewise.
28091 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
28092 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
28093 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
28094 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
28095 (alpha_expand_epilogue, alpha_end_function): Likewise.
28096 (alpha_init_libfuncs): Likewise.
28097 (struct machine_function): Remove unicosmk members.
28098 (print_operand) ['t']: Remove.
28099 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
28100 unicosmk_output_module_name, unicosmk_output_common,
28101 current_section_align, unicosmk_output_text_section_asm_op,
28102 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
28103 unicosmk_section_type_flags, unicosmk_unique_section,
28104 unicosmk_asm_named_section, unicosmk_insert_attributes,
28105 unicosmk_output_align, unicosmk_defer_case_vector,
28106 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
28107 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
28108 unicosmk_output_ssib, unicosmk_add_call_info_word,
28109 unicosmk_extern_head, unicosmk_output_default_externs,
28110 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
28111 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
28112 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
28113 * config/alpha/alpha-protos.h: Update.
28114 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
28115 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
28116 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
28117 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
28118 (*mulsi_se, mulvsi3): Likewise.
28119 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
28120 (*divmodsi_internal, call, call_value, realign): Likewise.
28121 (moddi3, umoddi3): Likewise; remove duplicate expander.
28122 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
28123 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
28124 (*movdi_nofix): Remove r/U alternative.
28125 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
28126 * config/alpha/constraints.md ("U"): Remove.
28127 * config/alpha/predicates.md (call_operand"): Don't test
28128 TARGET_ABI_UNICOSMK.
28130 2011-03-22 Joseph Myers <joseph@codesourcery.com>
28132 * target.def (handle_option): Take gcc_options and
28133 cl_decoded_option pointers and location_t.
28134 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
28135 * doc/tm.texi: Regenerate.
28136 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
28137 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
28138 * lto-opts.c (lto_reissue_options): Generate option structure for
28139 targetm.handle_option call.
28140 * opts.c (target_handle_option): Update call to
28141 targetm.handle_option. Remove assertions about values now passed
28143 * targhooks.c (default_target_handle_option): New.
28144 * targhooks.h (default_target_handle_option): Declare.
28145 * config/alpha/alpha.c: Include opts.h.
28146 (alpha_handle_option): Update to new hook interface.
28147 * config/arm/arm.c: Include opts.h.
28148 (arm_handle_option): Update to new hook interface.
28149 * config/arm/t-arm (arm.o): Update dependencies.
28150 * config/bfin/bfin.c: Include opts.h.
28151 (bfin_handle_option): Update to new hook interface.
28152 * config/cris/cris.c: Include opts.h.
28153 (cris_handle_option): Update to new hook interface.
28154 * config/frv/frv.c: Include opts.h.
28155 (frv_handle_option): Update to new hook interface.
28156 * config/i386/i386.c: Include opts.h.
28157 (ix86_handle_option): Update to new hook interface.
28158 (ix86_valid_target_attribute_inner_p): Generate option structure
28159 for call to ix86_handle_option.
28160 * config/i386/t-i386 (i386.o): Update dependencies.
28161 * config/ia64/ia64.c: Include opts.h.
28162 (ia64_handle_option): Update to new hook interface.
28163 * config/ia64/t-ia64 (ia64.o): Update dependencies.
28164 * config/iq2000/iq2000.c: Include opts.h.
28165 (iq2000_handle_option): Update to new hook interface.
28166 * config/m32c/m32c.c: Include opts.h.
28167 (m32c_handle_option): Update to new hook interface.
28168 * config/m32r/m32r.c: Include opts.h.
28169 (m32r_handle_option): Update to new hook interface.
28170 * config/m68k/m68k.c: Include opts.h.
28171 (m68k_handle_option): Update to new hook interface.
28172 * config/mep/mep.c: Include opts.h.
28173 (mep_handle_option): Update to new hook interface.
28174 * config/microblaze/microblaze.c: Include opts.h.
28175 (microblaze_handle_option): Update to new hook interface.
28176 * config/mips/mips.c: Include opts.h.
28177 (mips_handle_option): Update to new hook interface.
28178 * config/mn10300/mn10300.c: Include opts.h.
28179 (mn10300_handle_option): Update to new hook interface.
28180 * config/pa/pa.c: Include opts.h.
28181 (pa_handle_option): Update to new hook interface.
28182 * config/pdp11/pdp11.c: Include opts.h.
28183 (pdp11_handle_option): Update to new hook interface.
28184 * config/rs6000/rs6000.c: Include opts.h.
28185 (rs6000_handle_option): Update to new hook interface.
28186 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
28187 * config/rx/rx.c: Include opts.h.
28188 (rx_handle_option): Update to new hook interface.
28189 * config/s390/s390.c: Include opts.h.
28190 (s390_handle_option): Update to new hook interface.
28191 * config/score/score.c: Include opts.h.
28192 (score_handle_option): Update to new hook interface.
28193 * config/sh/sh.c: Include opts.h.
28194 (sh_handle_option): Update to new hook interface.
28195 * config/sparc/sparc.c: Include opts.h.
28196 (sparc_handle_option): Update to new hook interface.
28197 * config/v850/v850.c: Include opts.h.
28198 (v850_handle_option): Update to new hook interface.
28200 2011-03-22 Joseph Myers <joseph@codesourcery.com>
28202 * gcc.c (driver_unknown_option_callback): Only permit and save
28203 unknown -Wno- options.
28204 (driver_wrong_lang_callback): Save options directly instead of via
28205 driver_unknown_option_callback.
28207 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
28209 * combine.c (simplify_set): Try harder to find the best CC mode when
28210 simplifying a nested COMPARE on the RHS.
28212 2011-03-22 Joseph Myers <joseph@codesourcery.com>
28214 * config/alpha/gnu.h: Remove.
28215 * config/arc: Remove directory.
28216 * config/arm/netbsd.h: Remove.
28217 * config/arm/t-pe: Remove.
28218 * config/crx: Remove directory.
28219 * config/i386/netbsd.h: Remove.
28220 * config/m68hc11: Remove directory.
28221 * config/m68k/uclinux-oldabi.h: Remove.
28222 * config/mcore/mcore-pe.h: Remove.
28223 * config/mcore/t-mcore-pe: Remove.
28224 * config/netbsd-aout.h: Remove.
28225 * config/rs6000/gnu.h: Remove.
28226 * config/sh/sh-symbian.h: Remove.
28227 * config/sh/symbian-base.c: Remove.
28228 * config/sh/symbian-c.c: Remove.
28229 * config/sh/symbian-cxx.c: Remove.
28230 * config/sh/symbian-post.h: Remove.
28231 * config/sh/symbian-pre.h: Remove.
28232 * config/sh/t-symbian: Remove.
28233 * config/svr3.h: Remove.
28234 * config/vax/netbsd.h: Remove.
28235 * config.build: Don't handle i[34567]86-*-pe.
28236 * config.gcc: Remove handling of deprecations for most deprecated
28238 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
28239 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
28240 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
28241 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
28242 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
28243 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
28245 * config.host: Don't handle i[34567]86-*-pe.
28246 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
28247 (ASM_SPEC32): Don't handle -mcall-gnu.
28248 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
28250 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
28251 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
28252 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
28253 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
28254 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
28255 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
28256 conditional on SYMBIAN.
28257 * configure.ac: Don't handle powerpc*-*-gnu*.
28258 * configure: Regenerate.
28259 * doc/extend.texi (interrupt attribute): Don't mention CRX.
28260 * doc/install-old.texi (m6811, m6812): Don't mention.
28261 * doc/install.texi (arc-*-elf*): Don't document multilib option.
28262 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
28263 (m68k-uclinuxoldabi): Don't mention.
28264 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
28266 (-mcall-gnu): Remove.
28267 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
28268 families): Remove constraint documentation.
28270 2011-03-22 Marius Strobl <marius@FreeBSD.org>
28272 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
28273 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
28274 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
28276 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
28279 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
28280 vector when peeking at the next token for vector, don't expand the
28283 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
28285 * config/avr/avr-protos.h (expand_epilogue): Change prototype
28286 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
28287 * config/avr/avr.c (init_cumulative_args)
28288 (avr_function_arg_advance): Use it.
28289 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
28291 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
28292 (avr_function_ok_for_sibcall): ...this new function.
28293 (avr_lookup_function_attribute1): New static Function.
28294 (avr_naked_function_p, interrupt_function_p)
28295 (signal_function_p, avr_OS_task_function_p)
28296 (avr_OS_main_function_p): Use it.
28297 * config/avr/avr.md ("sibcall", "sibcall_value")
28298 ("sibcall_epilogue"): New expander.
28299 ("*call_insn", "*call_value_insn"): New insn.
28300 ("call_insn", "call_value_insn"): Remove
28301 ("call", "call_value", "epilogue"): Change expander to handle
28304 2011-03-21 Nick Clifton <nickc@redhat.com>
28306 * doc/invoke.texi (Overall Options): Move closing brace to end of
28308 (Optimization Options): Add missing @gol.
28309 (Directory Options): Likewise.
28310 (i386 and x86-64 Options): Likewise.
28311 (RS6000 and PowerPC Options): Likewise.
28312 (i386 and x86-64 Windows Options): Likewise.
28313 (V850 Options): Add text missing from descriptions.
28315 2011-03-22 Richard Henderson <rth@redhat.com>
28317 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
28318 (avr_incoming_return_addr_rtx): New.
28319 (emit_push_byte): New.
28320 (expand_prologue): Use it. Remove incorrect dwarf annotation for
28321 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
28322 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
28323 (emit_pop_byte): New.
28324 (expand_epilogue): Use it. Pop frame pointer by bytes.
28325 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
28326 (INCOMING_RETURN_ADDR_RTX): New.
28327 (INCOMING_FRAME_SP_OFFSET): New.
28328 (ARG_POINTER_CFA_OFFSET): New.
28329 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
28330 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
28333 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
28335 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
28337 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
28338 (FUNCTION_ARG_ADVANCE): Likewise.
28339 * tm.texi.in: Change references to them to hook references.
28340 * tm.texi: Regenerate.
28341 * targhooks.c (default_function_arg): Eliminate check for target
28343 (default_function_incoming_arg): Likewise.
28344 (default_function_arg_advance): Likewise.
28345 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
28346 (function_arg_advance): Likewise.
28347 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
28349 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
28351 * tree.c (build_call_1): New function.
28352 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
28354 2011-03-22 Richard Guenther <rguenther@suse.de>
28356 PR tree-optimization/48228
28357 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
28358 for single-arg PHIs.
28360 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
28362 PR rtl-optimization/48143
28363 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
28364 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
28365 sse2_cvtps2pd): Likewise.
28367 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28369 * recog.c (canonicalize_change_group): Use validate_unshare_change.
28371 2011-03-22 Richard Guenther <rguenther@suse.de>
28373 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
28374 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
28375 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
28376 and REALIGN_LOAD_EXPR.
28377 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
28378 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
28379 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
28380 DOT_PROD_EXPR case ...
28381 (expand_expr_real_2): ... here.
28382 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
28383 and REALIGN_LOAD_EXPR.
28384 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
28385 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
28386 (vect_create_epilog_for_reduction): Likewise.
28387 (vectorizable_reduction): Likewise.
28388 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
28389 * tree-vect-stmts.c (vectorizable_load): Likewise.
28391 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
28393 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
28395 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28397 * config/s390/s390.c (s390_delegitimize_address): Fix offset
28398 handling for PLTOFF/GOTOFF.
28400 2011-03-22 Nick Clifton <nickc@redhat.com>
28402 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
28403 trailing backslash from the end of the macro definition.
28405 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28407 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
28410 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
28412 * expr.h (prepare_operand): Move to...
28413 * optabs.h (prepare_operand): ...here and change the insn code
28414 parameter from "int" to "enum insn_code".
28415 (insn_operand_matches): Declare.
28416 * expr.c (init_expr_target): Use insn_operand_matches.
28417 (compress_float_constant): Likewise.
28418 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
28419 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
28420 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
28421 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
28423 (gen_cond_trap): Likewise.
28424 (prepare_operand): Likewise. Change icode to an insn_code.
28425 (insn_operand_matches): New function.
28426 * reload.c (find_reloads_address_1): Use insn_operand_matches.
28427 * reload1.c (gen_reload): Likewise.
28428 * targhooks.c (default_secondary_reload): Likewise.
28430 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
28432 * config/alpha/alpha.md (unspec): New define_c_enum.
28435 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
28438 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
28439 between a call and its CALL_ARG_LOCATION note.
28441 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
28443 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
28445 2011-03-21 Jakub Jelinek <jakub@redhat.com>
28449 * c-common.c (shorten_compare): If primopN is first sign-extended
28450 to opN and then zero-extended to result type, set primopN to opN.
28452 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
28454 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
28455 for barrier handlers.
28457 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
28459 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
28460 UNSPEC constants to be in the unspec enumeration, and redefine
28461 all UNSPECV constants to be in the unspecv enumeration, so that
28462 dumps print which unspec/unspec_volatile this is.
28463 * config/rs6000/vector.md (UNSPEC_*): Ditto.
28464 * config/rs6000/paired.md (UNSPEC_*): Ditto.
28465 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
28466 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
28467 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
28469 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
28470 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
28471 UNSPECV_LWSYNC, since these are used as unspec_volatile.
28472 * config/rs6000/sync.md (isync, lwsync): Ditto.
28474 2011-03-21 Richard Guenther <rguenther@suse.de>
28476 * params.def (lto-min-partition): Fix typo.
28478 2011-03-21 Richard Guenther <rguenther@suse.de>
28481 * c-decl.c (grokdeclarator): Drop to the main variant only
28482 for array types. Drop flag_gen_aux_info check.
28484 2011-03-21 Richard Guenther <rguenther@suse.de>
28486 PR translation/47911
28487 * params.def (lto-partitions): Fix typo.
28488 (lto-min-partition): Fix wording.
28490 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
28492 * config/rs6000/t-freebsd: Remove duplication from file.
28494 2011-03-21 Richard Guenther <rguenther@suse.de>
28496 PR middle-end/47661
28497 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
28499 2011-03-21 Richard Guenther <rguenther@suse.de>
28502 * params.def (lto-partitions): Require at least 1 partition.
28504 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28506 * gthr-solaris.h: Remove.
28507 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
28508 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
28509 (LIB_SPEC): Likewise.
28510 * config/sol2.opt (threads): Remove.
28511 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
28512 (sparc*-*-solaris2*): Likewise.
28513 * configure.ac (enable_threads): Enable solaris support.
28514 * configure: Regenerate.
28515 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
28516 * doc/install.texi (Configuration, --enable-threads=lib): Remove
28519 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28521 * config.gcc: Obsolete *-*-solaris2.8*.
28522 * doc/install.texi (Specific, *-*-solaris2*): Document it.
28524 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28527 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
28528 reference. Solaris 8 perl works.
28530 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28533 * doc/install.texi (Prerequisites): Move jar etc. up.
28534 Explain support library version requirements.
28536 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28539 * doc/install.texi (Prerequisites): Move Perl to build
28540 requirements. Always necessary on Solaris 2 with Sun ld.
28542 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28544 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
28546 (Specific, i?86-*-solaris2.[89]): Likewise.
28547 (Specific, i?86-*-solaris2.10): Likewise.
28548 (Specific, mips-sgi-irix6): Likewise.
28549 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
28550 Update for binutils 2.21.
28552 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28554 * configure.ac (gcc_cv_lto_plugin): Fix typo.
28555 Allow -fuse-linker-plugin for non-default plugin linker.
28556 * configure: Regenerate.
28558 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
28561 * gengtype.c (files_rules): Added rule for cp/parser.h.
28563 2011-03-21 Jakub Jelinek <jakub@redhat.com>
28566 * config/s390/s390.c (s390_delegitimize_address): Don't call
28567 lowpart_subreg if orig_x has BLKmode.
28569 2011-03-21 Kai Tietz <ktietz@redhat.com>
28572 * doc/plugins.texi: Adjust documentation for plugin register_callback.
28573 * tree.h (attribute_spec): Add new member affects_type_identity.
28574 * attribs.c (empty_attribute_table): Adjust attribute_spec
28576 * config/alpha/alpha.c: Likewise.
28577 * config/arc/arc.c: Likewise.
28578 * config/arm/arm.c: Likewise.
28579 * config/avr/avr.c: Likewise.
28580 * config/bfin/bfin.c: Likewise.
28581 * config/crx/crx.c: Likewise.
28582 * config/darwin.h: Likewise.
28583 * config/h8300/h8300.c: Likewise.
28584 * config/i386/cygming.h: Likewise.
28585 * config/i386/i386.c: Likewise.
28586 * config/ia64/ia64.c: Likewise.
28587 * config/m32c/m32c.c: Likewise.
28588 * config/m32r/m32r.c: Likewise.
28589 * config/m68hc11/m68hc11.c: Likewise.
28590 * config/m68k/m68k.c: Likewise.
28591 * config/mcore/mcore.c: Likewise.
28592 * config/mep/mep.c: Likewise.
28593 * config/microblaze/microblaze.c: Likewise.
28594 * config/mips/mips.c: Likewise.
28595 * config/rs6000/rs6000.c: Likewise.
28596 * config/rx/rx.c: Likewise.
28597 * config/sh/sh.c: Likewise.
28598 * config/sol2.h: Likewise.
28599 * config/sparc/sparc.c: Likewise.
28600 * config/spu/spu.c: Likewise.
28601 * config/stormy16/stormy16.c: Likewise.
28602 * config/v850/v850.c: Likewise.
28604 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
28606 * simplify-rtx.c (simplify_binary_operation_1): Handle
28607 (xor (and A B) C) case when B and C are both constants.
28609 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
28611 * tree-dfa.c (add_referenced_var): Fix typo in comment.
28613 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
28616 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
28618 2011-03-20 Jakub Jelinek <jakub@redhat.com>
28620 PR rtl-optimization/48156
28621 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
28622 assume df and df_lr are not NULL.
28624 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
28627 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
28628 between a call and its CALL_ARG_LOCATION note.
28630 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
28633 * config/sh/sh.c (find_barrier): Don't emit a constant pool
28634 between a call and its corresponding CALL_ARG_LOCATION note.
28636 2011-03-19 Anatoly Sokolov <aesok@post.ru>
28638 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
28639 instead of loop. Use HARD_REGISTER_NUM_P predicate.
28640 * haifa-sched.c (setup_ref_regs): Ditto.
28641 * caller-save.c (add_used_regs_1): Ditto.
28642 * dse.c (look_for_hardregs): Ditto.
28643 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
28644 * sched-rgn.c (check_live_1): Ditto.
28646 2011-03-18 Joseph Myers <joseph@codesourcery.com>
28648 * c-decl.c (diagnose_mismatched_decls): Give an error for
28649 redefining a typedef with variably modified type.
28651 2011-03-18 Joseph Myers <joseph@codesourcery.com>
28653 * c-decl.c (grokfield): Don't allow typedefs for structures or
28654 unions with no tag by default.
28655 * doc/extend.texi (Unnamed Fields): Update.
28657 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
28659 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
28660 Rewrite using indirect functions.
28661 (lwp_slwpcb): Ditto.
28662 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
28663 (avx_vinsertf128<mode>): Ditto.
28665 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28667 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
28670 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28672 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
28673 splitting between a call and its corresponding CALL_ARG_LOCATION note.
28675 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
28677 PR rtl-optimization/48170
28678 * gcse.c (hoist_code): Remove bogus asserts.
28680 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
28682 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
28683 computation for prologue/epilogue.
28685 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28687 * Makefile.in (check-consistency): Remove.
28689 2011-03-18 Jakub Jelinek <jakub@redhat.com>
28692 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
28693 arange_table_in_use is 0, but either text_section_used or
28694 cold_text_section_used is true. Don't call it if
28695 !info_section_emitted.
28697 2011-03-18 Anatoly Sokolov <aesok@post.ru>
28699 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
28700 FUNCTION_VALUE_REGNO_P): Remove.
28701 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
28703 * config/avr/avr.c (avr_ret_register): Make static inline.
28704 (avr_function_value_regno_p): New function.
28705 (avr_libcall_value): Make static. Add 'func' argument.
28706 (avr_function_value): Make static. Rename 'func' argument to
28707 'fn_decl_or_type', forward it to avr_libcall_value. Call
28708 avr_ret_register function instead of RET_REGISTER macro.
28709 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
28711 2011-03-18 Jason Merrill <jason@redhat.com>
28714 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
28716 2011-03-18 Richard Guenther <rguenther@suse.de>
28718 * doc/install.texi (--enable-gold): Remove.
28719 (--with-plugin-ld): Document.
28720 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
28722 2011-03-18 Andrew Pinski <pinskia@gmail.com>
28724 PR middle-end/47790
28725 * expr.c (optimize_bitfield_assignment_op): Revamp to work
28726 again after expansion changes.
28728 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
28730 * combine.c (try_combine): Do simplification only call of
28731 subst() on i2 even when i1 is present. Update comments.
28733 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
28735 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
28736 and UNSPEC_PCREL_SYMOFF.
28738 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28740 * config/s390/s390.md: Use define_c_enum for the unspec constant
28743 2011-03-18 Richard Henderson <rth@redhat.com>
28744 Jakub Jelinek <jakub@redhat.com>
28747 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
28748 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
28750 2011-03-17 Anatoly Sokolov <aesok@post.ru>
28752 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
28753 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
28754 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
28755 Change return type to bool.
28756 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
28758 2011-03-17 Jakub Jelinek <jakub@redhat.com>
28761 * var-tracking.c (prepare_call_arguments): If CALL target
28762 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
28763 pc instead of looking it up using cselib_lookup and use
28764 Pmode for it if x has VOIDmode.
28765 * dwarf2out.c (gen_subprogram_die): If also both first and
28766 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
28769 * function.c (assign_parms): For data.passed_pointer parms
28770 use MEM of data.entry_parm instead of data.entry_parm itself
28771 as DECL_INCOMING_RTL.
28772 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
28773 also when passed and declared mode is the same, DECL_RTL
28774 is a MEM with pseudo as address and DECL_INCOMING_RTL is
28777 2011-03-16 Jeff Law <law@redhat.com>
28779 PR rtl-optimization/37273
28780 * ira-costs.c (scan_one_insn): Detect constants living in memory and
28781 handle them like argument loads from stack slots. Do not double
28782 count memory for memory constants and argument loads from stack slots.
28784 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
28787 * var-tracking.c (prepare_call_arguments): Check SUBREG.
28789 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
28792 * config/i386/i386.opt: Add Save to -mavx and -mfma.
28794 2011-03-17 Jakub Jelinek <jakub@redhat.com>
28797 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
28799 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
28800 Clear call_arg_locations and call_arg_loc_last always.
28802 PR middle-end/48152
28803 * var-tracking.c (prepare_call_arguments): If argument needs to be
28804 passed by reference, adjust argtype and mode.
28806 2011-03-17 Richard Guenther <rguenther@suse.de>
28808 PR middle-end/48134
28809 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
28810 a value make sure to fold the statement.
28812 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
28815 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
28816 return condition with !cfun->calls_alloca.
28818 2011-03-17 Richard Guenther <rguenther@suse.de>
28821 * lto-cgraph.c (input_overwrite_node): Clear the abstract
28822 origin for decls in other ltrans units.
28823 (input_varpool_node): Likewise.
28825 2011-03-17 Richard Guenther <rguenther@suse.de>
28827 PR middle-end/48165
28828 * tree-object-size.c (compute_object_offset): Properly return
28829 the offset operand of MEM_REFs as sizetype.
28831 2011-03-17 Jakub Jelinek <jakub@redhat.com>
28833 PR rtl-optimization/48141
28834 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
28835 * dse.c: Include params.h.
28836 (active_local_stores_len): New variable.
28837 (add_wild_read, dse_step1): Clear it when setting active_local_stores
28839 (record_store, check_mem_read_rtx): Decrease it when removing
28841 (scan_insn): Likewise. Increase it when adding to chain, if it
28842 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
28843 set active_local_stores to NULL before the addition.
28844 * Makefile.in (dse.o): Depend on $(PARAMS_H).
28846 PR rtl-optimization/48141
28847 * dse.c (record_store): If no positions are needed in an insn
28848 that cannot be deleted, at least unchain it from active_local_stores.
28850 2011-03-16 Dodji Seketeli <dodji@redhat.com>
28853 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
28854 (lookup_type_die_strip_naming_typedef): ... here.
28855 (get_context_die): Use it.
28856 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
28857 the anonymous struct named by the naming typedef.
28859 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
28862 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
28863 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
28865 2011-03-16 Jeff Law <law@redhat.com>
28867 * tree-vrp.c (identify_jump_threads): Slightly simplify type
28868 check for operands of conditional. Allow type to be a pointer.
28870 2011-03-16 Richard Guenther <rguenther@suse.de>
28872 PR tree-optimization/48149
28873 * fold-const.c (fold_binary_loc): Fold
28874 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
28876 2011-03-16 Richard Guenther <rguenther@suse.de>
28878 PR tree-optimization/26134
28879 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
28880 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
28881 (non_rewritable_mem_ref_base): Handle complex type component
28882 accesses, constrain offsets for vector and complex extracts
28885 2011-03-16 Richard Guenther <rguenther@suse.de>
28887 PR tree-optimization/48146
28888 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
28889 operands avoiding the need for renaming.
28891 2011-03-16 Richard Guenther <rguenther@suse.de>
28893 * gimple-fold.c (maybe_fold_reference): Open-code relevant
28894 constant folding. Move MEM_REF canonicalization first.
28895 Rely on fold_const_aggregate_ref for initializer folding.
28896 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
28898 2011-03-16 Jakub Jelinek <jakub@redhat.com>
28900 PR middle-end/48136
28901 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
28902 arg0/arg1 or their arguments are always fold converted to matching
28905 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
28908 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28911 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
28912 Handle in-tree gold.
28913 (ld_vers): Extract binutils version for gold.
28914 (gcc_cv_ld_hidden): Handle gold here.
28915 (gcc_cv_lto_plugin): Determine level of linker plugin support.
28916 * configure: Regenerate.
28917 * config.in: Regenerate.
28918 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
28919 -fuse-linker-plugin otherwise.
28920 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
28921 (LINK_COMMAND_SPEC): Use it.
28922 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
28924 2011-03-16 Jakub Jelinek <jakub@redhat.com>
28926 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
28927 * calls.c: Remove debug.h include.
28928 (emit_call_1): Don't call virtual_call_token debug hook.
28929 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
28930 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
28931 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
28932 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
28933 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
28934 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
28935 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
28936 dwarf2out_virtual_call): Remove.
28937 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
28938 copy_call_info and virtual_call hooks.
28939 (dwarf2out_init): Don't initialize vcall_insn_table,
28940 debug_dcall_section and debug_vcall_section.
28941 (prune_unused_types): Don't mark nodes from dcall_table.
28942 (dwarf2out_finish): Don't output dcall or vcall tables.
28943 * final.c (final_scan_insn): Don't call direct_call or
28944 virtual_call debug hooks.
28945 * debug.h (struct gcc_debug_hooks): Remove direct_call,
28946 virtual_call_token, copy_call_info and virtual_call hooks.
28947 (debug_nothing_uid): Remove prototype.
28948 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
28949 copy_call_info and virtual_call hooks.
28950 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
28951 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
28952 * debug.c (do_nothing_debug_hooks): Likewise.
28953 (debug_nothing_uid): Remove.
28954 * doc/invoke.texi (-fenable-icf-debug): Remove.
28955 * common.opt (-fenable-icf-debug): Likewise.
28957 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
28958 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
28959 call's MEM. Handle functions returning aggregate through a hidden
28960 first pointer. For virtual calls add clobbered pc to call arguments
28962 * dwarf2out.c (gen_subprogram_die): Emit
28963 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
28967 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
28968 * rtl.h (ENTRY_VALUE_EXP): Define.
28969 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
28970 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
28971 * print-rtl.c (print_rtx): Likewise.
28972 * gengtype.c (adjust_field_rtx_def): Likewise.
28973 * var-tracking.c (vt_add_function_parameter): Adjust
28974 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
28975 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
28976 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
28977 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
28978 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
28980 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
28981 Call var_location debug hook even on CALL_INSNs.
28982 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
28983 * rtl.def (ENTRY_VALUE): New.
28984 * dwarf2out.c: Include cfglayout.h.
28985 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
28986 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
28987 (struct call_arg_loc_node): New type.
28988 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
28989 tail_call_site_count): New variables.
28990 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
28991 DW_TAG_GNU_call_site_parameter.
28992 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
28993 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
28994 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
28995 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
28996 and DW_AT_GNU_all_source_call_sites.
28997 (mem_loc_descriptor): Handle ENTRY_VALUE.
28998 (add_src_coords_attributes): Don't add enything if
28999 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
29000 (dwarf2out_abstract_function): Save and clear call_arg_location,
29001 call_site_count and tail_call_site_count around dwarf2out_decl call.
29002 (gen_call_site_die): New function.
29003 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
29004 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
29005 (dwarf2out_function_decl): Clear call_arg_locations,
29006 call_arg_loc_last, set call_site_count and tail_call_site_count
29007 to -1 and free block_map.
29008 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
29009 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
29010 followed by any real instructions.
29011 (dwarf2out_begin_function): Set call_site_count and
29012 tail_call_site_count to 0.
29013 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
29014 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
29015 attempt to force a DIE for it and worst case remove the attribute.
29016 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
29017 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
29019 * var-tracking.c: Include tm_p.h.
29020 (vt_stack_adjustments): For calls call note_register_arguments.
29021 (argument_reg_set): New variable.
29022 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
29023 ensure the VALUE is resolved.
29024 (call_arguments): New variable.
29025 (prepare_call_arguments): New function.
29026 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
29027 (struct expand_loc_callback_data): Add ignore_cur_loc field.
29028 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
29029 always use the best expression.
29030 (vt_expand_loc): Add ignore_cur_loc argument.
29031 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
29032 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
29033 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
29034 note for all calls.
29035 (vt_add_function_parameter): Use cselib_lookup_from_insn.
29036 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
29037 argument. Don't call cselib_preserve_only_values and
29038 cselib_reset_table.
29039 (note_register_arguments): New function.
29040 (vt_initialize): Compute argument_reg_set. Call
29041 vt_add_function_parameters before processing basic blocks instead of
29042 afterwards. For calls call prepare_call_arguments before calling
29043 cselib_process_insn.
29044 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
29045 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
29046 (var-tracking.o): Depend on $(TM_P_H).
29047 * cfglayout.h (insn_scope): New prototype.
29048 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
29049 * cfglayout.c (insn_scope): No longer static.
29050 * insn-notes.def (CALL_ARG_LOCATION): New.
29051 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
29052 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
29053 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
29054 nothing for DECL_EXTERNAL BLOCK_VARS.
29056 2011-03-16 Alan Modra <amodra@gmail.com>
29059 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
29060 create invalid offset address for vsx splat insn.
29061 * config/rs6000/predicates.md (splat_input_operand): New.
29062 * config/rs6000/vsx.md (vsx_splat_*): Use it.
29064 2011-03-15 Xinliang David Li <davidxl@google.com>
29067 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
29068 (normalize_preds): New function.
29069 (is_use_properly_guarded): Normalize def predicates.
29071 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
29074 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
29075 in the output template.
29077 2011-03-15 Richard Guenther <rguenther@suse.de>
29079 PR middle-end/47650
29080 * tree-pretty-print.c (dump_function_declaration): Properly
29081 dump unprototyped and varargs function types.
29083 2011-03-15 Richard Guenther <rguenther@suse.de>
29085 PR tree-optimization/13954
29086 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
29089 2011-03-15 Richard Guenther <rguenther@suse.de>
29091 PR tree-optimization/48037
29092 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
29093 selects into BIT_FIELD_REFs.
29094 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
29097 2011-03-15 Jakub Jelinek <jakub@redhat.com>
29099 PR tree-optimization/48129
29100 * builtins.c (fold_builtin_snprintf): Convert to type of
29101 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
29102 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
29104 2011-03-15 Richard Guenther <rguenther@suse.de>
29106 PR tree-optimization/41490
29107 * tree-ssa-dce.c (propagate_necessity): Handle returns without
29108 value but with VUSE.
29109 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
29111 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
29112 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
29113 * tree-tailcall.c (find_tail_calls): Ignore returns.
29115 2011-03-15 Richard Guenther <rguenther@suse.de>
29117 PR middle-end/48031
29118 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
29119 or variable-indexed array accesses when in gimple form.
29121 2011-03-15 Richard Guenther <rguenther@suse.de>
29123 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
29125 2011-03-15 Alan Modra <amodra@gmail.com>
29128 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
29129 presume symbol_refs without a symbol_ref_decl are suitably
29130 aligned, nor other trees we may see here. Handle anchor symbols.
29131 (legitimate_constant_pool_address_p): Comment. Add mode param.
29132 Check cmodel=medium addresses. Adjust all calls.
29133 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
29134 creating cmodel=medium optimized access to locals.
29135 * config/rs6000/constraints.md (R): Pass QImode to
29136 legitimate_constant_pool_address_p.
29137 * config/rs6000/predicates.md (input_operand): Pass mode to
29138 legitimate_constant_pool_address_p.
29139 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
29142 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
29145 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
29146 64-bit constants being loaded into registers other than GPRs such
29147 as loading 0 into a VSX register.
29149 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29151 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
29153 2011-03-14 Jakub Jelinek <jakub@redhat.com>
29155 PR middle-end/47917
29156 * builtins.c (fold_builtin_snprintf): New function.
29157 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
29158 (fold_builtin_4): Likewise.
29160 PR middle-end/38878
29161 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
29162 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
29163 and C - X == X also strip nops from +/-/p+ operand.
29164 When optimizing -X == C, fold C to arg0's type.
29167 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
29168 emit it as add_AT_int instead of add_AT_unsigned.
29170 2011-03-14 Tom Tromey <tromey@redhat.com>
29172 * unwind-dw2.c: Include sys/sdt.h if it exists.
29173 (_Unwind_DebugHook): Use STAP_PROBE2.
29174 * config.in, configure: Rebuild.
29175 * configure.ac: Check for sys/sdt.h.
29177 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
29179 * config/i386/i386.md (ROUND_FLOOR): New constant.
29180 (ROUND_CEIL): Ditto.
29181 (ROUND_TRUNC): Ditto.
29182 (ROUND_MXCSR): Ditto.
29183 (ROUND_NO_EXC): Ditto.
29184 (rint<mode>2): Use new defines instead of numerical constants.
29185 (floor<mode>2): Ditto.
29186 (ceil<mode>2): Ditto.
29187 (btrunc<mode>2): Ditto.
29188 * config/i386/i386-builtin-types.def: Define ROUND function type
29190 * config/i386/i386.c (enum ix86_builtins): Add
29191 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
29192 (struct builtin_description): Add
29193 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
29194 (ix86_expand_sse_round): New static function.
29195 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
29197 (ix86_builtin_vectorized_function): Handle
29198 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
29200 2011-03-14 Tom Tromey <tromey@redhat.com>
29202 * c-parser.c (c_parser_asm_string_literal): Clear
29203 warn_overlength_strings.
29205 2011-03-14 Tom Tromey <tromey@redhat.com>
29207 * c-parser.c (disable_extension_diagnostics): Save
29208 warn_overlength_strings.
29209 (restore_extension_diagnostics): Restore warn_overlength_strings.
29211 2011-03-14 Jakub Jelinek <jakub@redhat.com>
29213 * BASE-VER: Change to 4.7.0.
29215 2011-03-14 Richard Guenther <rguenther@suse.de>
29217 PR middle-end/48098
29218 * tree.c (build_vector_from_val): Adjust assert to requirements
29221 2011-03-14 Jakub Jelinek <jakub@redhat.com>
29224 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
29226 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
29228 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
29229 terms of target_flags_explicit. Adjust copyright year.
29231 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
29232 * config/rs6000/t-freebsd: New file. Add override for
29235 2011-03-13 Chris Demetriou <cgd@google.com>
29237 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
29238 (-fno-diagnostics-show-option): this, to reflect current default.
29239 (-Werror=): Update text about -fno-diagnostics-show-option.
29241 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
29244 * config/rs6000/predicates.md (easy_vector_constant_add_self,
29245 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
29246 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
29247 mode is not V2DImode or V2DFmode.
29248 (vspltis_constant): Do not handle V2DImode and V2DFmode.
29249 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
29250 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
29252 (movdi_internal64): Likewise.
29254 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
29256 PR tree-optimization/47127
29257 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
29259 (set_cloog_options): Same.
29260 (scop_to_clast): Same.
29261 (print_clast_stmt): Do not call cloog_state_malloc and
29263 (print_generated_program): Same.
29265 * graphite-clast-to-gimple.h (cloog_state): Declared.
29266 (scop_to_clast): Adjust declaration.
29267 * graphite.c (cloog_state): Defined here.
29268 (graphite_initialize): Call cloog_state_malloc.
29269 (graphite_finalize): Call cloog_state_free.
29271 2011-03-11 Jason Merrill <jason@redhat.com>
29273 * attribs.c (lookup_attribute_spec): Take const_tree.
29276 2011-03-11 Joseph Myers <joseph@codesourcery.com>
29278 * config/sparc/sparc.c (sparc_option_override): Use
29279 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
29281 2011-03-11 Richard Guenther <rguenther@suse.de>
29283 PR tree-optimization/48067
29284 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
29285 multiplication result will be only used once on the target
29288 2011-03-11 Richard Guenther <rguenther@suse.de>
29290 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
29292 2011-03-11 Richard Guenther <rguenther@suse.de>
29295 * tree.c (find_decls_types_r): Do not walk types only reachable
29296 from IDENTIFIER_NODEs.
29298 2011-03-11 Jakub Jelinek <jakub@redhat.com>
29300 PR middle-end/48044
29301 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
29302 all vnode->force_output nodes as needed.
29304 2011-03-11 Jason Merrill <jason@redhat.com>
29307 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
29308 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
29310 2011-03-11 Martin Jambor <mjambor@suse.cz>
29312 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
29315 2011-03-11 Jakub Jelinek <jakub@redhat.com>
29317 PR tree-optimization/48063
29318 * ipa-inline.c (cgraph_decide_inlining): Don't try to
29319 inline functions called once if !tree_can_inline_p (node->callers).
29321 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
29323 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
29325 * config/score/score3.c: Delete.
29326 * config/score/score3.h: Delete.
29327 * config/score/mul-div.S: Delete.
29328 * config/score/sfp-machine.h: Add new file.
29329 * config/score/constraints.md: Add new file.
29330 * config/score/t-score-softfp: Add new file.
29331 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
29332 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
29333 (score7_extra_constraint): Delete.
29334 (score7_option_override): Remove unused code.
29335 * config/score/score.c: Remove score3 and score5 define and code.
29336 * config/score/score.h: Remove score3 and score5 define and code.
29337 * config/score/score.md: Remove score3 template and unusual insn.
29338 * config/score/score.opt: Remove score3 and score5 options.
29340 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29342 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
29343 when _HPUX_SOURCE is defined.
29344 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
29346 2011-03-10 Jason Merrill <jason@redhat.com>
29349 * stor-layout.c (layout_type): Don't set structural equality
29350 on arrays of incomplete type.
29351 * tree.c (type_hash_eq): Handle comparing them properly.
29353 2011-03-10 Jakub Jelinek <jakub@redhat.com>
29356 * config/s390/s390.c (s390_delegitimize_address): Make sure the
29357 result mode matches original rtl mode.
29359 2011-03-10 Nick Clifton <nickc@redhat.com>
29361 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
29362 (andsi3, andsi3_flags): Fix timings for three operand alternative.
29364 2011-03-09 Jakub Jelinek <jakub@redhat.com>
29366 PR rtl-optimization/47866
29367 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
29368 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
29369 if target wasn't scalar.
29370 * function.c (assign_stack_temp_for_type): Assert that neither
29371 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
29372 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
29374 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
29376 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29378 * config/s390/s390-protos.h (s390_label_align): New prototype.
29379 * config/s390/s390.c (s390_label_align): New function.
29380 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
29382 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
29385 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
29386 V2DI/V2DF constants. Only all 0's or all 1's are easy.
29387 (output_vec_const_move): Ditto.
29389 2011-03-08 Anatoly Sokolov <aesok@post.ru>
29391 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
29392 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
29393 * config/mips/mips.c (mips_preferred_reload_class): Make static.
29394 Change 'rclass' argument and result type to reg_class_t.
29395 (TARGET_PREFERRED_RELOAD_CLASS): Define.
29397 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
29399 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
29400 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
29401 (TARGET_MEMORY_MOVE_COST): Define.
29402 (avr_register_move_cost, avr_memory_move_cost): New Functions.
29404 2011-03-08 Jakub Jelinek <jakub@redhat.com>
29407 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
29410 PR tree-optimization/48022
29411 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
29414 2011-03-07 Jakub Jelinek <jakub@redhat.com>
29417 * var-tracking.c (find_use_val): Return NULL for
29418 cui->sets && cui->store_p BLKmode MEMs.
29420 2011-03-07 Anatoly Sokolov <aesok@post.ru>
29422 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
29424 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
29425 xstormy16_print_operand_address): Remove.
29426 * config/stormy16/stormy16.c (xstormy16_print_operand,
29427 xstormy16_print_operand_address): Make static.
29428 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
29430 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
29433 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
29434 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
29437 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
29440 * cfgloopmanip.c (fix_bb_placements): Return immediately
29441 if FROM is BASE_LOOP's header.
29443 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
29445 * gimplify.c (gimplify_function_tree): Fix building calls
29446 to __builtin_return_address.
29448 2011-03-07 Alan Modra <amodra@gmail.com>
29450 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
29451 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
29452 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
29453 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
29455 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
29456 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
29457 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
29458 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
29459 * config/rs6000/rs6000.c
29460 (rs6000_elf_end_indicate_exec_stack): Rename to..
29461 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
29462 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
29463 (rs6000_file_start): ..here.
29464 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
29465 file scope variables.
29466 (call_ABI_of_interest): New function.
29467 (init_cumulative_args): Set above vars when function return value
29468 is a float, vector, or small struct.
29469 (rs6000_function_arg_advance_1): Likewise for function args.
29470 (rs6000_va_start): Set rs6000_passes_float if variable arg function
29471 references float args.
29473 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
29475 * doc/cfg.texi: Remove "See" before @ref.
29476 * doc/invoke.texi: Likewise.
29478 2011-03-05 Jason Merrill <jason@redhat.com>
29480 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
29482 2011-03-05 Anthony Green <green@moxielogic.com>
29484 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
29486 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
29488 PR rtl-optimization/47899
29489 * cfgloopmanip.c (fix_bb_placements): Fix first argument
29490 to flow_loop_nested_p when moving the loop upward.
29492 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
29495 * arm.md (movhi_insn_arch4): Accept any immediate constant.
29497 2011-03-05 Jakub Jelinek <jakub@redhat.com>
29499 PR tree-optimization/47967
29500 * ipa-cp.c (build_const_val): Return NULL instead of creating
29501 VIEW_CONVERT_EXPR for mismatching sizes.
29502 (ipcp_create_replace_map): Return NULL if build_const_val failed.
29503 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
29504 give up on versioning.
29506 2011-03-05 Alan Modra <amodra@gmail.com>
29509 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
29510 full cmodel medium/large lo_sum + high addresses.
29512 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29514 * config/s390/s390.c (s390_decompose_address): Reject non-literal
29515 pool references in UNSPEC_LTREL_OFFSET.
29517 2011-03-04 Jan Hubicka <jh@suse.cz>
29520 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
29521 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
29522 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
29524 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
29525 cgraph_add_thunk): Add node pointers.
29526 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
29527 associated to right node.
29528 (input_node): Update use of cgraph_same_body_alias
29529 and cgraph_add_thunk.
29531 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
29533 * config/i386/i386.opt (mprefer-avx128): New flag.
29534 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
29535 modes when the flag -mprefer-avx128 is on.
29537 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
29539 * dwarf2out.c (compare_loc_operands): Fix address handling.
29541 2011-03-04 Alan Modra <amodra@gmail.com>
29543 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
29545 2011-03-04 Richard Guenther <rguenther@suse.de>
29547 PR middle-end/47968
29548 * expmed.c (extract_bit_field_1): Prefer vector modes that
29549 vec_extract patterns can handle.
29551 2011-03-04 Richard Guenther <rguenther@suse.de>
29553 PR middle-end/47975
29554 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
29556 2011-03-04 Richard Henderson <rth@redhat.com>
29558 * explow.c (emit_stack_save): Remove 'after' parameter.
29559 (emit_stack_restore): Likewise.
29560 * expr.h: Update to match.
29561 * builtins.c, calls.c, stmt.c: Likewise.
29562 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
29563 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
29564 * function.c (expand_function_end): Insert the emit_stack_save
29565 sequence before parm_birth_insn instead of after.
29567 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
29569 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
29570 (ssse3_pmaddubsw128): Ditto.
29571 (ssse3_pmaddubsw): Ditto.
29573 2011-03-03 Steve Ellcey <sje@cup.hp.com>
29575 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
29577 2011-03-03 Jakub Jelinek <jakub@redhat.com>
29580 * gimplify.c (omp_add_variable): Only call omp_notice_variable
29581 on TYPE_SIZE_UNIT if it is a DECL.
29584 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
29585 first operand is not is_gimple_mem_ref_addr, try to fold it.
29586 If the operand still isn't is_gimple_mem_ref_addr, clear
29589 2011-03-03 Richard Guenther <rguenther@suse.de>
29591 PR middle-end/47283
29592 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
29594 (refs_may_alias_p_1): For release branches return true if
29595 we are confused by our input.
29597 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29599 * config/s390/s390.c (s390_function_value): Rename to ...
29600 (s390_function_and_libcall_value): ... this.
29601 (s390_function_value): New function.
29602 (s390_libcall_value): New function.
29603 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
29604 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
29605 target macro definitions.
29606 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
29608 2011-03-02 Joseph Myers <joseph@codesourcery.com>
29610 * config/i386/freebsd64.h (CC1_SPEC): Define.
29611 * config/i386/linux64.h (CC1_SPEC): Define.
29612 * config/i386/x86-64.h (CC1_SPEC): Don't define.
29614 2011-03-02 Anatoly Sokolov <aesok@post.ru>
29616 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
29618 * config/stormy16/stormy16.c: Include reload.h.
29619 (xstormy16_memory_move_cost): New function.
29620 (TARGET_MEMORY_MOVE_COST): Define.
29622 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
29624 PR rtl-optimization/47925
29625 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
29626 with side effects. Remove the more-specific check for volatile asms.
29628 2011-03-02 Alan Modra <amodra@gmail.com>
29631 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
29632 toc relative addresses for valid offsets.
29634 2011-03-01 Richard Guenther <rguenther@suse.de>
29636 PR tree-optimization/47890
29637 * tree-vect-loop.c (get_initial_def_for_induction): Set
29638 related stmt properly.
29640 2011-03-01 Richard Guenther <rguenther@suse.de>
29643 * lto-streamer.c (lto_record_common_node): Also register
29644 the canonical type.
29646 2011-03-01 Richard Guenther <rguenther@suse.de>
29649 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
29650 Do not stream DECL_ABSTRACT_ORIGIN.
29651 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
29652 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
29653 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
29654 Do not stream DECL_ABSTRACT_ORIGIN.
29655 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
29656 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
29658 2011-02-28 Anatoly Sokolov <aesok@post.ru>
29660 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
29661 FUNCTION_VALUE_REGNO_P): Remove.
29662 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
29663 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
29664 Add 'outgoing' argument.
29665 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
29667 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
29668 TARGET_FUNCTION_VALUE_REGNO_P): Define.
29670 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
29673 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
29674 (lookup_filename): Likewise.
29675 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
29677 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
29678 Jakub Jelinek <jakub@redhat.com>
29680 PR middle-end/47893
29681 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
29682 (assign_stack_local_1): Change last argument type to int.
29683 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
29684 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
29685 don't record padding space into frame_space_list nor use those areas.
29686 (assign_stack_local): Adjust caller.
29687 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
29688 of assign_stack_local, pass 0 as last argument.
29689 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
29692 2011-02-28 Jakub Jelinek <jakub@redhat.com>
29695 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
29696 Use target address_mode and pointer_mode hooks instead of hardcoded
29697 Pmode and ptr_mode. Handle some simple cases of extending if
29698 POINTERS_EXTEND_UNSIGNED < 0.
29699 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
29700 Call convert_debug_memory_address.
29701 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
29702 convert_debug_memory_address.
29704 PR middle-end/46790
29705 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
29706 * configure: Regenerated.
29707 * config.in: Regenerated.
29708 * varasm.c (default_function_section): Return NULL
29709 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
29711 2011-02-28 Martin Jambor <mjambor@suse.cz>
29713 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
29714 the description to match the printed values.
29716 2011-02-28 Richard Guenther <rguenther@suse.de>
29718 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
29719 of the copied scope tree.
29721 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29723 * doc/extend.texi (Function Attributes): Avoid deeply (and
29724 wrongly) nested tables.
29726 2011-02-27 Jakub Jelinek <jakub@redhat.com>
29728 PR middle-end/47903
29729 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
29730 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
29731 r isn't op0 nor op1.
29733 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
29735 * config/avr/avr.md: Remove magic comment for emacs.
29737 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
29740 * config/avr/avr.c (avr_option_override): Use error on bad options.
29741 (avr_help): New function.
29742 (TARGET_HELP): Define.
29744 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
29747 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
29748 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
29750 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
29752 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
29753 (ARM Options): Ditto.
29754 (i386 and x86-64 Options): Ditto.
29755 (RX Options): Ditto.
29756 (SPARC Options): Ditto.
29758 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
29760 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
29761 FreeBSD 6 and later. Generally use cpu generic.
29763 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
29765 * doc/cpp.texi: Update copyright years.
29767 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
29770 * config/lm32/lm32.md (ashrsi3): Added needed variable.
29772 2011-02-25 Jon Beniston <jon@beniston.com>
29775 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
29776 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
29777 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
29778 (lm32_block_move_inline): Add type cast to remove warning.
29779 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
29780 (gen_int_relational): Move declarations to start of function.
29782 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
29784 PR tree-optimization/45470
29785 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
29786 can throw internally only.
29787 * tree-vect-stmts.c (vectorizable_call): Likewise.
29789 2011-02-24 Anatoly Sokolov <aesok@post.ru>
29791 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
29792 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
29793 * config/stormy16/stormy16-protos.h
29794 (xstormy16_preferred_reload_class): Remove.
29795 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
29796 static. Change 'rclass' argument and return type to reg_class_t.
29797 (TARGET_PREFERRED_RELOAD_CLASS,
29798 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
29800 2011-02-24 Richard Guenther <rguenther@suse.de>
29802 * lto-streamer-in.c (input_bb): Do not find referenced vars
29803 in debug statements.
29805 2011-02-23 Jason Merrill <jason@redhat.com>
29807 * common.opt (fabi-version): Document v5 and v6.
29809 2011-02-23 Richard Guenther <rguenther@suse.de>
29811 PR tree-optimization/47849
29812 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
29814 2011-02-23 Jie Zhang <jie@codesourcery.com>
29816 * opts-common.c (decode_cmdline_option): Print empty string
29817 argument as "" in decoded->orig_option_with_args_text.
29818 * gcc.c (execute): Print empty string argument as ""
29819 in the verbose output.
29820 (do_spec_1): Keep empty string argument.
29822 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
29824 * config.gcc: Declare score-* and crx-* obsolete.
29826 2011-02-23 Jie Zhang <jie@codesourcery.com>
29828 PR rtl-optimization/47763
29829 * web.c (web_main): Ignore naked clobber when replacing register.
29831 2011-02-22 Anatoly Sokolov <aesok@post.ru>
29833 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
29836 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
29839 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
29841 2011-02-22 Mike Stump <mikestump@comcast.net>
29843 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
29845 * configure: Regenerate.
29847 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
29849 PR rtl-optimization/46002
29850 * ira-color.c (update_copy_costs): Change class intersection
29851 test to reg_class_contents[] test of 'hard_regno'.
29853 2011-02-21 Joseph Myers <joseph@codesourcery.com>
29855 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
29856 than Driver option.
29857 * config/hpux11.opt (mt): Likewise.
29858 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
29859 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
29860 * config/vax/elf.opt (mno-asm-pic): Likewise.
29861 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
29863 2011-02-21 Mike Stump <mikestump@comcast.net>
29866 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
29867 tree so we can get save the type.
29868 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
29869 for CFString instead of trying to use past the end of the builtins.
29870 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
29871 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
29872 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
29873 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
29874 Rename to darwin_builtin_cfstring.
29875 (darwin_init_cfstring_builtins): Return the built type.
29877 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
29880 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
29881 (_mm256_insert_epi64): Use _mm_insert_epi64.
29883 2011-02-21 Anatoly Sokolov <aesok@post.ru>
29885 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
29886 * config/stormy16/stormy16-protos.h
29887 (xstormy16_mode_dependent_address_p): Remove.
29888 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
29889 Make static. Change return type to bool. Change argument type to
29890 const_rtx. Remove dead code.
29891 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
29893 2011-02-21 Richard Guenther <rguenther@suse.de>
29896 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
29897 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
29898 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
29900 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
29901 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
29903 2011-02-20 Richard Guenther <rguenther@suse.de>
29906 * tree.c (free_lang_data_in_decl): Clean builtins from
29907 the TU decl BLOCK_VARS.
29909 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
29913 * haifa-sched.c (fix_tick_ready): Skip tick computation
29916 2011-02-19 Richard Guenther <rguenther@suse.de>
29919 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
29920 Remove lazy BLOCK_VARS streaming.
29921 (lto_input_ts_block_tree_pointers): Likewise.
29922 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
29924 2011-02-19 Joseph Myers <joseph@codesourcery.com>
29926 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
29928 2011-02-19 Joseph Myers <joseph@codesourcery.com>
29930 * config/i386/biarch32.h, config/i386/mach.h,
29931 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
29933 2011-02-19 Jakub Jelinek <jakub@redhat.com>
29936 * config/i386/i386.md (peephole2 for shift and plus): Use
29937 operands[1] original mode in the first insn.
29939 2011-02-18 Mike Stump <mikestump@comcast.net>
29941 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
29943 2011-02-18 Jan Hubicka <jh@suse.cz>
29945 PR middle-end/47788
29946 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
29947 to zero when the function is not inlinable at all.
29949 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29951 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
29952 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
29953 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
29954 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
29955 * config/pa/t-pa64: Likewise.
29956 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
29958 2011-02-18 Jakub Jelinek <jakub@redhat.com>
29961 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
29963 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29966 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
29968 2011-02-18 Anatoly Sokolov <aesok@post.ru>
29970 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
29971 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
29972 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
29973 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
29974 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
29975 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
29976 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
29977 m32r_load_postinc_p, m32r_store_preinc_predec_p,
29978 m32r_legitimate_address_p): New functions.
29979 * config/m32r/constraints.md (constraint "S"): Don't use
29980 STORE_PREINC_PREDEC_P.
29981 (constraint "U"): Don't use LOAD_POSTINC_P.
29983 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
29985 PR rtl-optimization/46178
29986 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
29987 compute ira_hard_regno_cover_class[].
29989 2011-02-18 Richard Guenther <rguenther@suse.de>
29992 * lto-streamer.h (lto_global_var_decls): Declare.
29993 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
29994 statics for global var processing.
29996 2011-02-18 Richard Guenther <rguenther@suse.de>
29998 PR tree-optimization/47737
29999 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
30000 edge dominance check.
30002 2011-02-18 Jakub Jelinek <jakub@redhat.com>
30005 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
30006 avoid invalid rtx sharing.
30008 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
30010 * doc/cpp.texi (Obsolete Features): Add background on the
30011 origin of assertions.
30013 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
30015 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
30017 * config/darwin.c (output_objc_section_asm_op): Added support for
30019 (is_objc_metadata): New.
30020 (darwin_objc2_section): New.
30021 (darwin_objc1_section): New.
30022 (machopic_select_section): Added support for ABI v1 and v2.
30023 (darwin_emit_objc_zeroed): New.
30024 (darwin_output_aligned_bss): Detect objc metadata and treat it
30026 (darwin_asm_output_aligned_decl_common): Same.
30027 (darwin_asm_output_aligned_decl_local): Same.
30028 * config/darwin-sections.def: Updated for ABI v1 and v2.
30029 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
30030 compiling Objective-C code for the NeXT runtime, default to using
30031 ABI version 0 for 32-bit, and version 2 for 64-bit.
30033 2011-02-17 Joseph Myers <joseph@codesourcery.com>
30035 * common.opt (optimize_fast): New Variable.
30036 * opts.c (default_options_optimization): Use opts->x_optimize_fast
30037 instead of local variable ofast.
30039 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
30041 * doc/invoke.texi (fobjc-abi-version): Documented.
30042 (fobjc-nilcheck): Documented.
30043 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
30046 2011-02-17 Joseph Myers <joseph@codesourcery.com>
30049 * common.opt (export-dynamic): New Driver option.
30050 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
30052 2011-02-17 Joseph Myers <joseph@codesourcery.com>
30054 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
30056 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
30057 Jan Hubicka <jh@suse.cz>
30061 * cfgexpand.c (account_used_vars_for_block): Remove.
30062 (estimated_stack_frame_size): Use referenced vars.
30063 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
30064 that were referenced in the original function. Test src_fn
30065 rather than cfun. Drop redundant get_var_ann.
30066 (setup_one_parameter): Drop redundant get_var_ann.
30067 (declare_return_variable): Likewise.
30068 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
30069 (copy_arguments_for_versioning): Drop redundant get_var_ann.
30070 * ipa-inline.c (compute_inline_parameters): Do not compute
30071 disregard_inline_limits here.
30072 (compute_inlinable_for_current, pass_inlinable): New.
30073 (pass_inline_parameters): Require PROP_referenced_vars.
30074 * cgraphunit.c (cgraph_process_new_functions): Don't run
30075 compute_inline_parameters explicitly unless function is in SSA form.
30076 (cgraph_analyze_function): Set .disregard_inline_limits.
30077 * tree-sra.c (convert_callers): Compute inliner parameters
30078 only for functions already in SSA form.
30080 2011-02-17 Joseph Myers <joseph@codesourcery.com>
30082 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
30083 -mlittle-endian-data.
30085 2011-02-17 Joseph Myers <joseph@codesourcery.com>
30087 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
30088 -mno-fpu, not -fpu and -no-fpu.
30089 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
30090 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
30092 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
30095 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
30096 input reload with PLUS RTX.
30098 2011-02-16 Joseph Myers <joseph@codesourcery.com>
30100 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
30101 of InverseVar(MDMX).
30103 2011-02-16 Joseph Myers <joseph@codesourcery.com>
30105 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
30108 2011-02-16 Joseph Myers <joseph@codesourcery.com>
30110 * config/mn10300/mn10300.opt (mno-crt0): New.
30112 2011-02-16 Joseph Myers <joseph@codesourcery.com>
30114 * config/m68k/uclinux.opt (static-libc): New Driver option.
30116 2011-02-16 Joseph Myers <joseph@codesourcery.com>
30118 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
30120 2011-02-16 Joseph Myers <joseph@codesourcery.com>
30122 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
30123 %{muser-extend-enabled}.
30125 2011-02-16 Richard Guenther <rguenther@suse.de>
30127 PR tree-optimization/47738
30128 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
30129 the TODO from tree_predictive_commoning.
30131 2011-02-15 Jeff Law <law@redhat.com>
30134 2011-01-25 Jeff Law <law@redhat.com>
30136 PR rtl-optimization/37273
30137 * ira-costs.c (scan_one_insn): Detect constants living in memory and
30138 handle them like argument loads from stack slots. Do not double
30139 count memory for memory constants and argument loads from stack slots.
30141 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
30144 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
30145 mode for vector constants. Remove code that checks for TImode.
30147 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
30151 * cgraph.h (compute_inline_parameters): Return void.
30152 * ipa-inline.c (compute_inline_parameters): Adjust.
30154 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
30158 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
30160 * cfgexpand.c (estimated_stack_frame_size): Likewise.
30161 * ipa-inline.c (compute_inline_parameters): Adjust.
30163 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
30167 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
30168 Adjust all users. Pass FN to...
30169 * tree-flow-inline.h (first_referenced_var): ... this. Add
30171 * ipa-struct-reorg.c: Adjust.
30172 * tree-dfa.c: Adjust.
30173 * tree-into-ssa.c: Adjust.
30174 * tree-sra.c: Adjust.
30175 * tree-ssa-alias.c: Adjust.
30176 * tree-ssa-live.c: Adjust.
30177 * tree-ssa.c: Adjust.
30178 * tree-ssanames.c: Adjust.
30179 * tree-tailcall.c: Adjust.
30181 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
30185 * tree-flow.h (referenced_var_lookup): Add fn parameter.
30186 Adjust all callers.
30187 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
30188 * tree-flow-inline.h: Adjust.
30189 * gimple-pretty-print.c: Adjust.
30190 * tree-into-ssa.c: Adjust.
30191 * tree-ssa.c: Adjust.
30192 * cfgexpand.c: Adjust.
30194 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
30196 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
30197 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
30198 (EXTRA_CONSTRAINT): Delete.
30199 * config/iq2000/constraints.md: New file.
30200 * config/iq2000/iq2000.md: Include it.
30201 (define_insn ""): Delete.
30202 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
30203 unsupported constraint letters from patterns.
30204 (call_value, call_value_internal1): Likewise.
30205 (call_value_multiple_internal1): Likewise.
30207 2011-02-15 Nick Clifton <nickc@redhat.com>
30209 * config/mn10300/mn10300.c: Include tm-constrs.h.
30210 (struct liw_data): New data structure describing an LIW candidate
30212 (extract_bundle): Use struct liw_data. Allow small integer
30213 operands for some instructions.
30214 (check_liw_constraints): Use struct liw_data. Remove swapped
30215 parameter. Add comments describing the checks. Fix bug when
30216 assigning the source of liw1 to the source of liw2.
30217 (liw_candidate): Delete. Code moved into extract_bundle.
30218 (mn10300_bundle_liw): Use struct liw_data. Check constraints
30220 * config/mn10300/predicates.md (liw_operand): New predicate.
30221 Allows registers and small integer constants.
30222 * config/mn10300/constraints.md (O): New constraint. Accetps
30223 integers in the range -8 to +7 inclusive.
30224 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
30225 for moving a small integer into a register. Give this alternative
30227 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
30228 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
30229 using the J,K,L and M constraints,
30230 (liw): Remove SI mode on second operands to allow for HI and QI
30232 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
30235 2011-02-15 Richard Guenther <rguenther@suse.de>
30237 PR tree-optimization/47743
30238 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
30239 for a non-type-compatible VN lookup bail out.
30241 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
30243 * config/fr30/constraints.md: New file.
30244 * config/fr30/fr30.md: Include it.
30245 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
30246 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
30247 (EXTRA_CONSTRAINT): Delete.
30249 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
30251 * config/frv/constraints.md: New file.
30252 * config/frv/predicates.md: Include it.
30253 * config/frv/frv.c (reg_class_from_letter): Delete.
30254 (frv_option_override): Don't initialize it.
30255 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
30256 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
30257 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
30258 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
30259 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
30260 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
30261 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
30262 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
30263 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
30264 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
30265 (REG_CLASS_FROM_CONSTRAINT): Delete.
30267 2011-02-15 Jakub Jelinek <jakub@redhat.com>
30269 PR middle-end/47581
30270 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
30271 if frame size is 0 in a leaf function.
30273 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30276 * config/alpha/host-osf.c: New file.
30277 * config/alpha/x-osf: New file.
30278 * config.host (alpha*-dec-osf*): Use it.
30280 2011-02-14 Anatoly Sokolov <aesok@post.ru>
30282 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
30283 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
30284 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
30285 (rx_mode_dependent_address_p): ...this. Make static. Change argument
30287 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
30289 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
30291 * config/stormy16/constraints.md: New file.
30292 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
30293 Use satisfies_constraint_Q and satisfies_constraint_R.
30294 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
30296 (xstormy16_legitiamte_address_p): Declare.
30297 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
30298 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
30299 (EXTRA_CONSTRAINT): Delete.
30300 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
30302 (xstormy16_extra_constraint_p): Delete.
30304 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
30306 PR tree-optimization/46494
30307 * loop-unroll.c (split_edge_and_insert): Adjust comment.
30308 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
30309 (pass_rtl_loop_done): Add TODO_verify_flow.
30310 * fwprop.c (pass_rtl_fwprop): Likewise.
30311 * modulo-sched.c (pass_sms): Likewise.
30312 * tree-ssa-dom.c (pass_dominator): Likewise.
30313 * tree-ssa-loop-ch.c (pass_ch): Likewise.
30314 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
30315 (pass_tree_loop_done): Likewise.
30316 * tree-ssa-pre.c (execute_pre): Likewise.
30317 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
30318 * tree-ssa-sink.c (pass_sink_code): Likewise.
30319 * tree-vrp.c (pass_vrp): Likewise.
30321 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
30323 * config/v850/constraints.md: New file.
30324 * config/v850/v850.md: Include it.
30325 * config/v850/predicates.md (reg_or_0_operand): Use
30326 satisfies_constraint_G.
30327 (special_symbolref_operand): Use satisfies_constraint_K.
30328 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
30329 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
30330 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
30331 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
30332 (EXTRA_CONSTRAINT): Delete.
30333 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
30334 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
30335 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
30337 2011-02-14 Anatoly Sokolov <aesok@post.ru>
30340 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
30343 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
30345 * config/mcore/constraints.md: New file.
30346 * config/mcore/mcore.md: Include it.
30347 * config/mcore/mcore.c (reg_class_from_letter): Delete.
30348 * config/mcore/mcore.h (reg_class_from_letter): Delete.
30349 (REG_CLASS_FROM_LETTER): Delete.
30350 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
30351 insn_const_int_ok_for_constraint.
30352 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
30353 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
30354 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
30355 (EXTRA_CONSTRAINT): Delete.
30357 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30360 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
30361 (IS_SIGHANDLER): Define.
30362 (sparc64_is_sighandler): New function, split off from
30363 sparc64_fallback_frame_state.
30364 (sparc_is_sighandler): New function, split off from
30365 sparc_fallback_frame_state.
30366 (sparc64_fallback_frame_state): Merge with ...
30367 (sparc_fallback_frame_state): ... this into ...
30368 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
30369 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
30370 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
30371 stack instead of hardcoded offsets.
30373 2011-02-14 Andriy Gapon <avg@freebsd.org>
30376 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
30378 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30380 * configure: Regenerate.
30382 2011-02-12 Joseph Myers <joseph@codesourcery.com>
30385 * gcc.c (asm_options): Correct spec matching --target-help.
30387 2011-02-12 Martin Jambor <mjambor@suse.cz>
30389 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
30390 to gimple call error.
30392 2011-02-12 Mike Stump <mikestump@comcast.net>
30394 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
30395 comments in backslash regions.
30397 2011-02-12 Mike Stump <mikestump@comcast.net>
30398 Jakub Jelinek <jakub@redhat.com>
30399 Iain Sandoe <iains@gcc.gnu.org>
30402 * dwarf2out.c (output_cfa_loc): When required, apply the
30403 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
30404 (output_loc_sequence): Likewise.
30405 (output_loc_operands_raw): Likewise.
30406 (output_loc_sequence_raw): Likewise.
30407 (output_cfa_loc): Likewise.
30408 (output_loc_list): Suppress register number adjustment when
30409 calling output_loc_sequence()
30410 (output_die): Likewise.
30412 2011-02-12 Anatoly Sokolov <aesok@post.ru>
30414 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
30416 * config/xtensa/xtensa.c (xtensa_register_move_cost,
30417 xtensa_memory_move_cost): New functions.
30418 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
30420 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
30423 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
30424 in the current directory.
30425 * configure: Rebuilt.
30427 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
30429 * config/darwin.c (darwin_override_options): Add a hunk missed
30430 from the commit of r168571. Trim comment line lengths and
30431 correct indents of the preceding block.
30433 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
30435 * gcc.c (driver_handle_option): Concatenate the argument to -F with
30438 2011-02-11 Joseph Myers <joseph@codesourcery.com>
30440 * common.opt (nostartfiles): New Driver option.
30442 2011-02-11 Xinliang David Li <davidxl@google.com>
30444 PR tree-optimization/47707
30445 * tree-chrec.c (convert_affine_scev): Keep type precision.
30447 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
30449 PR tree-optimization/47420
30450 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
30452 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
30454 PR rtl-optimization/47614
30455 * rtl.h (check_for_inc_dec): Declare.
30456 * dse.c (check_for_inc_dec): Externalize...
30457 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
30458 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
30460 2011-02-11 Joseph Myers <joseph@codesourcery.com>
30463 * gcc.c (main): Do not compile inputs if there were errors in
30465 * opts-common.c (read_cmdline_option): Check for wrong language
30466 after other error checks.
30468 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
30470 * cgraph.c: Fix comment typos.
30471 * cgraph.h: Likewise.
30472 * cgraphunit.c: Likewise.
30473 * ipa-cp.c: Likewise.
30474 * ipa-inline.c: Likewise.
30475 * ipa-prop.c: Likewise.
30476 * ipa-pure-const.c: Likewise.
30477 * ipa-ref.c: Likewise.
30478 * ipa-reference.c: Likewise.
30480 2011-02-11 Jakub Jelinek <jakub@redhat.com>
30483 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
30485 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30488 * doc/sourcebuild.texi (Require Support): Document
30489 dg-require-ascii-locale.
30491 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
30493 * doc/lto.texi (Write summary): Fix missing parentheses.
30495 2011-02-10 DJ Delorie <dj@redhat.com>
30497 * config/m32c/m32c.c (m32c_option_override): Disable
30498 -fcombine-stack-adjustments until flag value tracking and compare
30499 optimization can be rewritten.
30501 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
30503 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
30505 (PROCESSOR_DEFAULT64): Likewise.
30507 2011-02-10 Richard Henderson <rth@redhat.com>
30509 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
30510 change from 2011-02-03.
30511 * config/rx/rx.c (flags_from_code): Likewise.
30512 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
30513 is valid, n/pz otherwise.
30514 (rx_select_cc_mode): Return CCmode if Y is not zero.
30516 2011-02-10 Richard Guenther <rguenther@suse.de>
30518 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
30520 2011-02-10 Richard Guenther <rguenther@suse.de>
30522 PR tree-optimization/47677
30523 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
30525 2011-02-10 Jakub Jelinek <jakub@redhat.com>
30528 * combine.c (make_compound_operation): Only change shifts into
30529 multiplication for SCALAR_INT_MODE_P.
30531 2011-02-10 Jie Zhang <jie@codesourcery.com>
30535 2011-02-05 Jie Zhang <jie@codesourcery.com>
30537 * web.c (entry_register): Don't clobber the number of the
30538 first uninitialized reference in used[].
30540 2011-02-09 Richard Guenther <rguenther@suse.de>
30542 PR tree-optimization/47664
30543 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
30546 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
30550 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
30552 (PROCESSOR_DEFAULT64): Same.
30553 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
30555 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30557 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
30559 2011-02-09 Martin Jambor <mjambor@suse.cz>
30561 PR middle-end/45505
30562 * tree-sra.c (struct access): New flags grp_scalar_read and
30563 grp_scalar_write. Changed description of assignment read and write
30565 (dump_access): Dump new flags, reorder all of them.
30566 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
30567 to detect multiple scalar reads.
30568 (analyze_access_subtree): Use the new scalar read write flags instead
30569 of the old flags. Adjusted comments.
30571 2011-02-08 DJ Delorie <dj@redhat.com>
30574 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
30577 2011-02-08 Joseph Myers <joseph@codesourcery.com>
30579 * config/m68k/uclinux.opt: New.
30580 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
30582 2011-02-08 Joseph Myers <joseph@codesourcery.com>
30584 * config/cris/elf.opt (sim): New Driver option.
30586 2011-02-08 Joseph Myers <joseph@codesourcery.com>
30588 * config/xtensa/elf.opt: New.
30589 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
30591 2011-02-08 Joseph Myers <joseph@codesourcery.com>
30593 * config/vax/elf.opt: New.
30594 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
30596 2011-02-08 Joseph Myers <joseph@codesourcery.com>
30598 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
30600 2011-02-08 Joseph Myers <joseph@codesourcery.com>
30602 * config/gnu-user.opt: New.
30603 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
30604 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
30605 *-*-uclinux*): Use gnu-user.opt.
30607 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
30609 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
30610 * config/i386/gnu.h (CPP_SPEC): Likewise.
30612 2011-02-08 Ian Lance Taylor <iant@google.com>
30614 * common.opt (fcx-limited-range): Add SetByCombined flag.
30615 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
30616 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
30617 (fassociative-math, freciprocal-math): Likewise.
30618 (funsafe-math-optimizations): Likewise.
30619 * opth-gen.awk: Handle SetByCombined.
30620 * optc-gen.awk: Likewise.
30621 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
30622 (set_unsafe_math_optimizations_flags): Likewise.
30623 * doc/options.texi (Option properties): Document SetByCombined.
30625 2011-02-08 Joseph Myers <joseph@codesourcery.com>
30627 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
30628 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
30629 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
30630 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
30631 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
30633 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
30635 PR tree-optimization/46834
30636 PR tree-optimization/46994
30637 PR tree-optimization/46995
30638 * graphite-sese-to-poly.c (used_outside_reduction): New.
30639 (detect_commutative_reduction): Call used_outside_reduction.
30640 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
30641 translate_scalar_reduction_to_array only when at least one
30642 loop-phi/close-phi tuple has been detected.
30644 2011-02-08 Richard Guenther <rguenther@suse.de>
30646 PR middle-end/47639
30647 * tree-vect-generic.c (expand_vector_operations_1): Update
30649 (expand_vector_operations): ... not here. Cleanup EH info
30650 and the CFG if required.
30652 2011-02-08 Richard Guenther <rguenther@suse.de>
30654 PR tree-optimization/47641
30655 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
30656 require type compatibility.
30658 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30660 * gimple-low.c (lower_function_body): Don't remove the location of
30661 the return statement here.
30662 (lower_gimple_return): Do it here instead but only if the return
30663 statement is actually used twice.
30665 2011-02-08 Richard Guenther <rguenther@suse.de>
30667 PR tree-optimization/47632
30668 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
30669 unused up_to_stmt parameter, return whether cfg-cleanup is
30670 necessary, remove EH info properly.
30671 (forward_propagate_into_gimple_cond): Adjust caller.
30672 (forward_propagate_into_cond): Likewise.
30673 (forward_propagate_comparison): Likewise.
30674 (tree_ssa_forward_propagate_single_use_vars): Make
30675 forward_propagate_comparison case similar to the two others.
30677 2011-02-08 Nick Clifton <nickc@redhat.com>
30679 * config/mn10300/mn10300.opt (mliw): New command line option.
30680 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
30681 (liw_bundling): New automaton.
30682 (liw): New attribute.
30683 (liw_op): New attribute.
30684 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
30685 (movsi_internal): Add LIW attributes.
30686 (andsi3): Likewise.
30687 (iorsi3): Likewise.
30688 (xorsi3): Likewise.
30689 (addsi3): Separate register and immediate alternatives.
30690 Add LIW attributes.
30691 (subsi3): Likewise.
30693 (aslsi3): Likewise.
30694 (lshrsi3): Likewise.
30695 (ashrsi3): Likewise.
30696 (liw): New pattern.
30697 * config/mn10300/mn10300.c (liw_op_names): New
30698 (mn10300_print_operand): Handle 'W' operand descriptor.
30699 (extract_bundle): New function.
30700 (check_liw_constraints): New function.
30701 (liw_candidate): New function.
30702 (mn10300_bundle_liw): New function.
30703 (mn10300_reorg): New function.
30704 (TARGET_MACHINE_DEPENDENT_REORG): Define.
30705 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
30706 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
30707 __LIW__ or __NO_LIW__.
30708 * doc/invoke.texi: Describe the -mliw command line option.
30710 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30712 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
30713 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
30714 pthread_mutex_unlock): Remove.
30715 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
30716 * config/pa/t-pa64: Likewise.
30717 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
30718 shared libc if not linking against libpthread.
30719 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
30721 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
30724 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
30725 on 10.6 and later to ensure that we always use the unwinder from
30726 the system. Only add -no_compact_unwind when tarteting darwin
30729 2011-02-07 Steve Ellcey <sje@cup.hp.com>
30732 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
30733 (vec_interleave_lowv2sf): Ditto.
30734 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
30735 (vec_extract_oddv2sf): Ditto.
30737 2011-02-07 Mike Stump <mikestump@comcast.net>
30740 Add __ieee_divdc3 entry point.
30741 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
30743 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
30744 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
30745 * config/darwin.c (darwin_rename_builtins): Add.
30746 * config/darwin-protos.h (darwin_rename_builtins): Add.
30748 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
30751 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
30754 2011-02-07 Mike Stump <mikestump@comcast.net>
30756 * config/darwin.opt (mmacosx-version-min): Update default OS version.
30758 2011-02-07 Denis Chertykov <chertykov@gmail.com>
30761 * config/avr/libgcc.S (exit): Move .endfunc
30763 2011-02-07 Richard Guenther <rguenther@suse.de>
30765 PR tree-optimization/47615
30766 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
30767 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
30768 (run_scc_vn): Initialize it.
30769 (visit_reference_op_load): Use it.
30770 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
30772 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30774 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
30775 DImode trapping arithmetic libfuncs.
30777 2011-02-07 Richard Guenther <rguenther@suse.de>
30779 PR tree-optimization/47621
30780 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
30782 (execute_update_addresses_taken): ... here. Make it more
30783 conservative in what we accept.
30785 2011-02-06 Joseph Myers <joseph@codesourcery.com>
30787 * config/sparc/freebsd.h (ASM_SPEC): Define.
30788 * config/sparc/vxworks.h (ASM_SPEC): Define.
30790 2011-02-06 Joseph Myers <joseph@codesourcery.com>
30792 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
30794 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
30796 * doc/invoke.texi: Remove reference to compiler internals from
30797 user documentation.
30799 * reg-notes.def: Remove REG_VALUE_PROFILE.
30800 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
30802 2011-02-05 Jakub Jelinek <jakub@redhat.com>
30804 PR middle-end/47610
30805 * varasm.c (default_section_type_flags): If decl is NULL,
30806 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
30808 2011-02-05 Jie Zhang <jie@codesourcery.com>
30811 * web.c (entry_register): Don't clobber the number of the
30812 first uninitialized reference in used[].
30814 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
30816 PR tree-optimization/46194
30817 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
30818 (build_classic_dist_vector_1): Do not represent classic distance
30819 vectors when the access functions are variating in different loops.
30821 2011-02-04 Joseph Myers <joseph@codesourcery.com>
30823 * config/mips/iris6.opt: New.
30824 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
30826 2011-02-04 Richard Henderson <rth@redhat.com>
30827 Steve Ellcey <sje@cup.hp.com>
30830 * config/ia64/predicates.md (mux1_brcst_element): New.
30831 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
30832 * config/ia64/ia64.c (ia64_unpack_assemble): New.
30833 (ia64_unpack_sign): New.
30834 (ia64_expand_unpack): Rewrite using new routines.
30835 (ia64_expand_widen_sum): Ditto.
30836 (ia64_expand_dot_prod_v8qi): Ditto.
30837 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
30838 routines, add endian check.
30839 (pmpy2_even): Rename from pmpy2_r, add endian check.
30840 (pmpy2_odd): Rename from pmpy2_l, add endian check.
30841 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
30842 (vec_widen_smult_hi_v4hi): Ditto.
30843 (vec_widen_umult_lo_v4hi): Ditto.
30844 (vec_widen_umult_hi_v4hi): Ditto.
30845 (mulv2si3): Change endian checks.
30846 (sdot_prodv4hi): Rewrite with new calls.
30847 (udot_prodv4hi): New.
30848 (vec_pack_ssat_v4hi): Add endian check.
30849 (vec_pack_usat_v4hi): Ditto.
30850 (vec_pack_ssat_v2si): Ditto.
30851 (max1_even): Rename from max1_r, add endian check.
30852 (max1_odd): Rename from max1_l, add endian check.
30853 (*mux1_rev): Format change.
30854 (*mux1_mix): Ditto.
30855 (*mux1_shuf): Ditto.
30856 (*mux1_alt): Ditto.
30857 (*mux1_brcst_v8qi): Use new predicate.
30858 (vec_extract_evenv8qi): Remove endian check.
30859 (vec_extract_oddv8qi): Ditto.
30860 (vec_interleave_lowv4hi): Format change.
30861 (vec_interleave_highv4hi): Ditto.
30862 (mix2_even): Rename from mix2_r, add endian check.
30863 (mix2_odd): Rename from mux2_l, add endian check.
30864 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
30865 (vec_extract_evenodd_helper): Format change.
30866 (vec_extract_evenv4hi): Remove endian check.
30867 (vec_extract_oddv4hi): Remove endian check.
30868 (vec_interleave_lowv2si): Format change.
30869 (vec_interleave_highv2si): Format change.
30870 (vec_initv2si): Remove endian check.
30871 (vecinit_v2si): Add endian check.
30872 (reduc_splus_v2sf): Add endian check.
30873 (reduc_smax_v2sf): Ditto.
30874 (reduc_smin_v2sf): Ditto.
30875 (vec_initv2sf): Remove endian check.
30876 (fpack): Add endian check.
30877 (fswap): Add endian check.
30878 (vec_interleave_highv2sf): Add endian check.
30879 (vec_interleave_lowv2sf): Add endian check.
30880 (fmix_lr): Add endian check.
30881 (vec_setv2sf): Format change.
30882 (*vec_extractv2sf_0_be): Use shift to extract operand.
30883 (*vec_extractv2sf_1_be): New.
30884 (vec_pack_trunc_v4hi): Add endian check.
30885 (vec_pack_trunc_v2si): Format change.
30887 2011-02-04 Jakub Jelinek <jakub@redhat.com>
30889 PR inline-asm/23200
30890 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
30891 do bb, locus and block comparison and disallow loads if it is not set.
30892 (stmt_is_replaceable_p): New function.
30893 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
30895 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
30896 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
30898 * tree-flow.h (stmt_is_replaceable_p): New prototype.
30900 2011-02-04 Joseph Myers <joseph@codesourcery.com>
30902 * config/rs6000/xilinx.opt: New.
30903 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
30905 2011-02-04 Joseph Myers <joseph@codesourcery.com>
30907 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
30909 2011-02-03 Anatoly Sokolov <aesok@post.ru>
30911 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
30912 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
30913 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
30914 secondary_reload_info, xtensa_secondary_reload): Remove.
30915 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
30916 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
30917 (xtensa_preferred_reload_class): Make static. Change return and
30918 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
30919 Use CONST_DOUBLE_P predicate.
30920 (xtensa_preferred_output_reload_class): New function.
30921 (xtensa_secondary_reload): Make static.
30923 2011-02-03 Joseph Myers <joseph@codesourcery.com>
30925 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
30926 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
30927 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
30929 2011-02-03 Jakub Jelinek <jakub@redhat.com>
30931 PR middle-end/31490
30932 * output.h (SECTION_RELRO): Define.
30933 (SECTION_MACH_DEP): Adjust.
30934 (get_variable_section): New prototype.
30935 * varpool.c (varpool_finalize_named_section_flags): New function.
30936 (varpool_assemble_pending_decls): Call it.
30937 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
30938 * cgraphunit.c (cgraph_output_in_order): Call
30939 varpool_finalize_named_section_flags.
30940 * varasm.c (get_section): Allow section flags conflicts between
30941 relro and read-only sections if the section hasn't been declared yet.
30942 Set SECTION_OVERRIDE after diagnosing section type conflict.
30943 (get_variable_section): No longer static.
30944 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
30945 readonly sections that need relocations.
30946 (decl_readonly_section_1): New function.
30947 (decl_readonly_section): Use it.
30950 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
30951 Steve Ellcey <sje@cup.hp.com>
30953 PR middle-end/31490
30954 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
30955 if section attribute used.
30957 2011-02-03 Jakub Jelinek <jakub@redhat.com>
30959 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
30960 * config/darwin.c (SECTION_NO_ANCHOR): Define.
30961 (darwin_init_sections): Remove assertion.
30963 2011-02-03 Nick Clifton <nickc@redhat.com>
30965 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
30967 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
30968 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
30969 instead of "n" and "pz".
30970 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
30973 2011-02-03 Jakub Jelinek <jakub@redhat.com>
30976 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
30977 fma, expand FMA_EXPR as fma{,f,l} call.
30980 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
30981 copy them into a unsigned char variable and pass address of it to
30982 lto_output_data_stream.
30985 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
30986 around backend_init_target and lang_dependent_init_target calls.
30987 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
30988 (verify_cgraph_node): Don't call set_cfun here. Use
30989 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
30990 Set error_found for incorrectly represented calls to thunks.
30992 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
30995 PR rtl-optimization/43494
30996 * rtl.h (for_each_inc_dec_fn): New type.
30997 (for_each_inc_dec): Declare.
30998 * rtlanal.c (struct for_each_inc_dec_ops): New type.
30999 (for_each_inc_dec_find_inc_dec): New fn.
31000 (for_each_inc_dec_find_mem): New fn.
31001 (for_each_inc_dec): New fn.
31002 * dse.c (struct insn_size): Remove.
31003 (replace_inc_dec, replace_inc_dec_mem): Remove.
31004 (emit_inc_dec_insn_before): New fn.
31005 (check_for_inc_dec): Use it, along with for_each_inc_dec.
31006 (canon_address): Pass mem modes to cselib_lookup.
31007 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
31008 (cselib_lookup_from_insn): Likewise.
31009 (cselib_subst_to_values): Likewise.
31010 * cselib.c (find_slot_memmode): New var.
31011 (cselib_find_slot): New fn. Use it instead of
31012 htab_find_slot_with_hash everywhere.
31013 (entry_and_rtx_equal_p): Use find_slot_memmode.
31014 (autoinc_split): New fn.
31015 (rtx_equal_for_cselib_p): Rename and implement in terms of...
31016 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
31017 Deal with autoinc. Special-case recursion into MEMs.
31018 (cselib_hash_rtx): Likewise.
31019 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
31020 address and MEM modes.
31021 (cselib_subst_to_values): Add memmode, pass it on.
31023 (cselib_lookup): Add memmode argument, pass it on.
31024 (cselib_lookup_from_insn): Add memmode.
31025 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
31026 (struct cselib_record_autoinc_data): New.
31027 (cselib_record_autoinc_cb): New fn.
31028 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
31029 mode to cselib_lookup. Reset autoinced REGs here instead of...
31030 (cselib_process_insn): ... here.
31031 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
31033 (add_uses): Likewise, also to cselib_subst_to_values.
31034 (add_stores): Likewise.
31035 * sched-deps.c (add_insn_mem_dependence): Pass mode to
31036 cselib_subst_to_values.
31037 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
31038 * gcse.c (do_local_cprop): Adjusted.
31039 * postreload.c (reload_cse_simplify_set): Adjusted.
31040 (reload_cse_simplify_operands): Adjusted.
31041 * sel-sched-dump (debug_mem_addr_value): Pass mode.
31043 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
31045 PR tree-optimization/45122
31046 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
31047 unsafe assumptions when there's more than one loop exit.
31049 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
31052 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
31053 Document using vector double with the load/store builtins, and
31054 that the load/store builtins always use Altivec instructions.
31056 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
31057 to use altivec memory instructions, even on VSX.
31058 (vector_altivec_store_<mode>): Ditto.
31060 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
31063 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
31064 V2DF, V2DI support to load/store overloaded builtins.
31066 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
31067 altivec load/store builtins for V2DF/V2DI types.
31069 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
31070 set avoid indexed addresses on power6 if -maltivec.
31071 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
31072 vector_altivec_load/vector_altivec_store builtins.
31073 (altivec_expand_st_builtin): Ditto.
31074 (altivec_expand_builtin): Add VSX memory builtins.
31075 (rs6000_init_builtins): Add V2DI types to internal types.
31076 (altivec_init_builtins): Add support for V2DF/V2DI altivec
31077 load/store builtins.
31078 (rs6000_address_for_altivec): Insure memory address is appropriate
31081 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
31082 vec_vsx_ld and vec_vsx_st.
31083 (vsx_store_<mode>): Ditto.
31085 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
31086 variables to hold long long types for VSX vector memory builtins.
31087 (RS6000_BTI_unsigned_long_long): Ditto.
31088 (long_long_integer_type_internal_node): Ditti.
31089 (long_long_unsigned_type_internal_node): Ditti.
31091 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
31092 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
31093 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
31095 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
31097 (vec_vsx_st): Ditto.
31099 2011-02-02 Joseph Myers <joseph@codesourcery.com>
31101 * config/pa/pa-hpux10.opt: New.
31102 * config/hpux11.opt (pthread): New Driver option.
31103 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
31104 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
31106 2011-02-02 Joseph Myers <joseph@codesourcery.com>
31108 * config/ia64/vms.opt: New.
31109 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
31111 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
31114 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
31115 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
31116 generator functions.
31117 (vsx_floatuns<VSi><mode>2): Ditto.
31118 (vsx_fix_trunc<mode><VSi>2): Ditto.
31119 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
31121 2011-02-02 Joseph Myers <joseph@codesourcery.com>
31123 * config/i386/djgpp.opt (posix): New Driver option.
31125 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
31127 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
31128 Move to the unsupported targets list.
31130 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
31132 PR rtl-optimization/47525
31133 * df-scan.c: Update copyright years.
31134 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
31135 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
31137 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31139 * config/i386/sysv4.h (TARGET_VERSION): Remove.
31140 (SUBTARGET_RETURN_IN_MEMORY): Remove.
31141 (ASM_OUTPUT_ASCII): Remove.
31142 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
31144 2011-02-02 Jeff Law <law@redhat.com>
31146 PR middle-end/47543
31147 * reload.c (find_reloads_address): Handle reg+d address where both
31148 components are invalid by reloading the entire address.
31150 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
31151 Richard Guenther <rguenther@suse.de>
31153 PR tree-optimization/40979
31155 * passes.c (init_optimization_passes): After LIM call copy_prop
31156 and DCE to clean up.
31157 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
31159 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
31161 PR tree-optimization/47576
31162 PR tree-optimization/47555
31163 * doc/invoke.texi (scev-max-expr-complexity): Documented.
31164 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
31165 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
31166 * tree-scalar-evolution.c (follow_ssa_edge): Use
31167 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
31169 2011-02-02 Richard Guenther <rguenther@suse.de>
31171 PR tree-optimization/47566
31172 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
31174 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
31178 * tree-inline.c (declare_return_variable): Remove unused caller
31183 * tree-flow-inline.h (clear_is_used, is_used_p): New.
31184 * cfgexpand.c (account_used_vars_for_block): Use them.
31185 * tree-nrv.c (tree_nrv): Likewise.
31186 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
31187 (dump_scope_block): Likewise.
31188 (remove_unused_locals): Likewise.
31192 * tree-inline.c (declare_return_variable): Add result decl to
31193 local decls only once.
31194 * gimple-low.c (record_vars_into): Mark newly-created variables
31197 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
31203 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
31205 (no_real_insns_p, schedule_block, set_priorities): Drop special
31206 treatment of boundary debug insns.
31207 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
31208 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
31209 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
31210 (BOUNDARY_DEBUG_INSN_P): Likewise.
31211 (SCHEDULE_DEBUG_INSN_P): Likewise.
31212 * sched-rgn.c (init_ready_list): Drop special treatment of
31213 boundary debug insns.
31214 * final.c (rest_of_clean_state): Clear notes' BB.
31216 2011-02-01 Joseph Myers <joseph@codesourcery.com>
31218 * config/openbsd.opt (assert=): New Driver option.
31220 2011-02-01 Joseph Myers <joseph@codesourcery.com>
31222 * config/i386/nto.opt: New.
31223 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
31225 2011-02-01 Joseph Myers <joseph@codesourcery.com>
31227 * config/i386/netware.opt: New.
31228 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
31230 2011-02-01 Joseph Myers <joseph@codesourcery.com>
31232 * config/interix.opt (posix): New Driver option.
31234 2011-02-01 DJ Delorie <dj@redhat.com>
31236 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
31238 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
31241 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
31243 PR tree-optimization/47561
31244 * toplev.c (process_options): Print the Graphite flags. Add
31245 flag_loop_flatten to the list of options requiring Graphite.
31247 2011-02-01 Joseph Myers <joseph@codesourcery.com>
31249 * config/i386/cygming.opt (posix): New Driver option.
31251 2011-02-01 Joseph Myers <joseph@codesourcery.com>
31253 * config/arm/vxworks.opt: New.
31254 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
31256 2011-02-01 Joseph Myers <joseph@codesourcery.com>
31258 * config/alpha/elf.opt: New.
31259 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
31260 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
31262 2011-02-01 Richard Guenther <rguenther@suse.de>
31264 PR tree-optimization/47559
31265 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
31266 store-motion on references that can throw.
31268 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
31270 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
31271 * tree-pass.h (TDF_CSELIB): New macro.
31272 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
31273 cselib_lookup): Check for it rather than for TDF_DETAILS.
31275 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
31278 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
31279 is HOST_BIT_BUCKET.
31281 * opts.c (finish_options): Don't add x_aux_base_name if it is
31284 2011-02-01 Richard Guenther <rguenther@suse.de>
31286 PR tree-optimization/47555
31288 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
31290 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
31292 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
31295 * config/lm32/t-lm32: Add multilib for all CPU options.
31297 2011-02-01 Richard Guenther <rguenther@suse.de>
31299 PR tree-optimization/47541
31300 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
31301 sure to have a field at offset zero.
31303 2011-01-31 Joseph Myers <joseph@codesourcery.com>
31305 * config/arc/arc.opt (EB, EL): New Driver options.
31307 2011-01-31 Joseph Myers <joseph@codesourcery.com>
31309 * config/alpha/osf5.opt: New.
31310 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
31312 2011-01-31 Joseph Myers <joseph@codesourcery.com>
31314 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
31316 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
31318 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
31319 -floop-interchange.
31320 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
31321 is an alias of -floop-interchange and that it requires the
31322 Graphite infrastructure.
31323 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
31324 flag_loop_interchange based on the value of flag_tree_loop_linear.
31326 2011-01-31 Jakub Jelinek <jakub@redhat.com>
31327 Richard Guenther <rguenther@suse.de>
31329 PR tree-optimization/47538
31330 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
31331 type instead of r1type, except for comparisons. For right
31332 shifts and comparisons punt if there are mismatches in
31333 sizetype vs. non-sizetype types.
31335 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31337 * doc/sourcebuild.texi (Effective-Target Keywords): Document
31340 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31342 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
31344 * configure: Regenerate.
31346 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31348 * configure.ac (gcc_cv_ld_static_option): Define.
31349 (gcc_cv_ld_dynamic_option): Define.
31350 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
31352 (HAVE_LD_STATIC_DYNAMIC): Update message.
31353 (LD_STATIC_OPTION): Define.
31354 (LD_DYNAMIC_OPTION): Define.
31355 * configure: Regenerate.
31356 * config.in: Regenerate.
31357 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
31358 HAVE_LD_STATIC_DYNAMIC]: Use them.
31360 2011-01-31 Nick Clifton <nickc@redhat.com>
31362 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
31363 registers inside interrupt handlers if the handler is not a leaf
31366 2011-01-31 Nick Clifton <nickc@redhat.com>
31368 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
31369 reg_renumber returning an INVALID_REGNUM.
31371 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
31374 * doc/install.texi: Document host options discarded when cross
31375 configuring target libraries.
31377 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
31380 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
31383 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
31385 (no_real_insns_p, schedule_block, set_priorities): Drop special
31386 treatment of boundary debug insns.
31387 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
31388 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
31389 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
31390 (BOUNDARY_DEBUG_INSN_P): Likewise.
31391 (SCHEDULE_DEBUG_INSN_P): Likewise.
31392 * sched-rgn.c (init_ready_list): Drop special treatment of
31393 boundary debug insns.
31394 * final.c (rest_of_clean-state): Clear notes' BB.
31396 2011-01-31 Alan Modra <amodra@gmail.com>
31398 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
31399 toc relative expressions as we do in print_operand_address.
31401 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
31403 * doc/extend.texi: Follow spelling conventions.
31404 * doc/invoke.texi: Fix a typo.
31406 2011-01-30 Joseph Myers <joseph@codesourcery.com>
31408 * config/hpux11.opt: New.
31409 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
31410 ia64*-*-hpux*): Use hpux11.opt.
31412 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
31414 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
31417 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
31419 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
31422 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
31424 * doc/install.texi (Binaries): Remove outdated reference for
31425 Motorola 68HC11/68HC12 downloads.
31427 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
31429 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
31432 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
31435 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
31438 2011-01-28 Ahmad Sharif <asharif@google.com>
31440 * value-prof.c (check_counter): Corrected error message.
31442 2011-01-29 Jie Zhang <jie@codesourcery.com>
31444 * config/arm/arm.c (arm_legitimize_reload_address): New.
31445 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
31446 arm_legitimize_reload_address.
31447 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
31449 2011-01-28 Ian Lance Taylor <iant@google.com>
31451 * godump.c (go_define): Ignore macros whose definitions include
31452 two adjacent operands.
31454 2011-01-28 Jakub Jelinek <jakub@redhat.com>
31457 * varasm.c (force_const_mem): Store copy of x in desc->constant
31458 instead of x itself.
31459 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
31460 itself into REG_EQUAL note.
31462 2011-01-28 Joseph Myers <joseph@codesourcery.com>
31464 * config/freebsd.opt (posix, rdynamic): New Driver options.
31466 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31468 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
31469 -Bstatic/-Bdynamic.
31470 * configure: Regenerate.
31472 2011-01-27 Joseph Myers <joseph@codesourcery.com>
31474 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
31475 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
31477 2011-01-27 Anatoly Sokolov <aesok@post.ru>
31479 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
31480 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
31481 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
31482 (s390_preferred_reload_class): Make static. Change return and
31483 'rclass' argument type to reg_class_t.
31485 2011-01-27 Jan Hubicka <jh@suse.cz>
31487 PR middle-end/46949
31488 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
31489 (process_function_and_variable_attributes): Check defined weakrefs.
31491 2011-01-27 Martin Jambor <mjambor@suse.cz>
31493 PR tree-optimization/47228
31494 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
31495 build_ref_for_offset.
31497 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31499 * config/spu/spu-elf.h (ASM_SPEC): Remove.
31501 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
31503 PR rtl-optimization/46856
31504 * postreload.c (reload_combine_recognize_const_pattern): Do not
31505 separate cc0 setter and user on cc0 targets.
31507 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
31510 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
31511 passed a VOID_TYPE expression, immediately emit an error and
31512 return error_mark_node.
31514 2011-01-26 Jeff Law <law@redhat.com>
31516 PR rtl-optimization/47464
31517 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
31518 rather than may_trap_p as needed.
31520 2011-01-26 DJ Delorie <dj@redhat.com>
31522 PR rtl-optimization/46878
31523 * combine.c (insn_a_feeds_b): Check for the implicit cc0
31524 setter/user dependency as well.
31526 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
31528 PR rtl-optimization/44469
31529 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
31530 after removing trivially dead basic blocks.
31532 2011-01-26 Joseph Myers <joseph@codesourcery.com>
31534 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
31535 * config/frv/frv.h (LINK_SPEC): Likewise.
31536 * config/i386/netware.h (LINK_SPEC): Likewise.
31537 * config/m68k/linux.h (ASM_SPEC): Likewise.
31538 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
31539 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
31540 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
31541 * config/sparc/linux.h (ASM_SPEC): Likewise.
31542 * config/sparc/linux64.h (ASM_SPEC): Likewise.
31543 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
31545 2011-01-26 Joseph Myers <joseph@codesourcery.com>
31547 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
31548 * config/frv/frv.h (ASM_SPEC): Likewise.
31549 * config/m68k/linux.h (ASM_SPEC): Likewise.
31550 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
31551 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
31552 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
31553 * config/sparc/linux.h (ASM_SPEC): Likewise.
31554 * config/sparc/linux64.h (ASM_SPEC): Likewise.
31555 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
31557 2011-01-26 Joseph Myers <joseph@codesourcery.com>
31559 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
31560 * config/frv/frv.h (LINK_SPEC): Likewise.
31561 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
31563 2011-01-26 Joseph Myers <joseph@codesourcery.com>
31565 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
31566 * config/frv/frv.h (ASM_SPEC): Likewise.
31567 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
31568 * config/m68k/linux.h (ASM_SPEC): Likewise.
31569 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
31570 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
31571 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
31572 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
31573 * config/sparc/linux.h (ASM_SPEC): Likewise.
31574 * config/sparc/linux64.h (ASM_SPEC): Likewise.
31575 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
31576 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
31578 2011-01-26 Steve Ellcey <sje@cup.hp.com>
31581 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
31583 (vec_extract_evenodd_help): Ditto.
31584 (vec_extract_evenv4hi): Ditto.
31585 (vec_extract_oddv4hi): Ditto.
31586 (vec_interleave_lowv2si): Ditto.
31587 (vec_interleave_highv2si): Ditto.
31588 (vec_extract_evenv2si): Ditto.
31589 (vec_extract_oddv2si: Ditto.
31590 (vec_pack_trunc_v2si): Ditto.
31592 2011-01-22 Jan Hubicka <jh@suse.cz>
31595 * cgraph.h (cgraph_local_info): New field can_change_signature.
31596 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
31597 signature can change.
31598 (ipcp_estimate_growth): Call sequence simplify only if calle signature
31600 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
31601 (cgraph_function_versioning): We can not change signature of functions
31602 that don't allow that.
31603 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
31604 (lto_input_node): Likewise.
31605 * ipa-inline.c (compute_inline_parameters): Compute
31606 local.can_change_signature.
31607 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
31608 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
31609 functions that can not change signature.
31610 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
31611 init_cumulative_args): Do not use local calling conventions
31612 for functions that can not change signature.
31614 2011-01-22 Jan Hubicka <jh@suse.cz>
31616 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
31618 2011-01-26 Richard Guenther <rguenther@suse.de>
31620 PR tree-optimization/47190
31621 * cgraphunit.c (process_common_attributes): New function.
31622 (process_function_and_variable_attributes): Use it.
31624 2011-01-26 Richard Guenther <rguenther@suse.de>
31627 * cgraphbuild.c (record_eh_tables): Record reference to personality
31630 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
31633 * sel-sched.c (moveup_expr): Don't let debug insns prevent
31634 non-debug insns from moving up.
31636 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
31639 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
31640 t-dlldir{,-x} fragment for build and add it to tmake_file.
31641 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
31642 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
31643 * config/i386/t-dlldir: New file.
31644 (SHLIB_DLLDIR): Define.
31645 * config/i386/t-dlldir-x: New file.
31646 (SHLIB_DLLDIR): Define.
31647 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
31648 (SHLIB_INSTALL): Use it.
31650 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
31653 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
31654 lower bound of the allowed Thumb-2 coprocessor load/store
31655 index range to -256. Add explaining comment.
31657 2011-01-25 Ian Lance Taylor <iant@google.com>
31659 * godump.c (go_define): Improve lexing of macro expansion to only
31660 accept expressions which match Go spec.
31662 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
31665 * tree.c (handle_dll_attribute): Handle it.
31666 * doc/extend.texi (@item dllexport): Mention it.
31667 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
31669 2011-01-25 Ian Lance Taylor <iant@google.com>
31671 PR tree-optimization/26854
31672 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
31673 (decl_jump_unsafe): Move higher in file, with no other change.
31674 (bind): Set has_jump_unsafe_decl if appropriate.
31675 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
31676 (check_earlier_gotos): Likewise.
31677 (c_check_switch_jump_warnings): Likewise.
31679 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
31681 * doc/invoke.texi (Warning Options): Add missing hyphen.
31682 (-fprofile-dir): Minor grammatical fixes.
31683 (-fbranch-probabilities): Likewise.
31685 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
31689 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
31691 (no_real_insns_p, schedule_block, set_priorities): Drop special
31692 treatment of boundary debug insns.
31693 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
31694 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
31695 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
31696 (BOUNDARY_DEBUG_INSN_P): Likewise.
31697 (SCHEDULE_DEBUG_INSN_P): Likewise.
31698 * sched-rgn.c (init_ready_list): Drop special treatment of
31699 boundary debug insns.
31700 * final.c (rest_of_clean-state): Clear notes' BB.
31702 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31704 * Makefile.in (LAMBDA_H): Removed.
31705 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
31706 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
31707 lambda-trans.o, and tree-loop-linear.o.
31708 (lto-symtab.o): Remove dependence on LAMBDA_H.
31709 (tree-loop-linear.o): Remove rule.
31710 (lambda-mat.o): Same.
31711 (lambda-trans.o): Same.
31712 (lambda-code.o): Same.
31713 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
31714 (tree-vect-slp.o): Same.
31715 * hwint.h (gcd): Moved here.
31716 (least_common_multiple): Same.
31717 * lambda-code.c: Removed.
31718 * lambda-mat.c: Removed.
31719 * lambda-trans.c: Removed.
31720 * lambda.h: Removed.
31721 * tree-loop-linear.c: Removed.
31722 * lto-symtab.c: Do not include lambda.h.
31723 * omega.c (gcd): Removed.
31724 * passes.c (init_optimization_passes): Remove pass_linear_transform.
31725 * tree-data-ref.c (print_lambda_vector): Moved here.
31726 (lambda_vector_copy): Same.
31727 (lambda_matrix_copy): Same.
31728 (lambda_matrix_id): Same.
31729 (lambda_vector_first_nz): Same.
31730 (lambda_matrix_row_add): Same.
31731 (lambda_matrix_row_exchange): Same.
31732 (lambda_vector_mult_const): Same.
31733 (lambda_vector_negate): Same.
31734 (lambda_matrix_row_negate): Same.
31735 (lambda_vector_equal): Same.
31736 (lambda_matrix_right_hermite): Same.
31737 * tree-data-ref.h: Do not include lambda.h.
31738 (lambda_vector): Moved here.
31739 (lambda_matrix): Same.
31740 (dependence_level): Same.
31741 (lambda_transform_legal_p): Removed declaration.
31742 (lambda_collect_parameters): Same.
31743 (lambda_compute_access_matrices): Same.
31744 (lambda_vector_gcd): Same.
31745 (lambda_vector_new): Same.
31746 (lambda_vector_clear): Same.
31747 (lambda_vector_lexico_pos): Same.
31748 (lambda_vector_zerop): Same.
31749 (lambda_matrix_new): Same.
31750 * tree-flow.h (least_common_multiple): Removed declaration.
31751 * tree-parloops.c (lambda_trans_matrix): Moved here.
31752 (LTM_MATRIX): Same.
31753 (LTM_ROWSIZE): Same.
31754 (LTM_COLSIZE): Same.
31755 (LTM_DENOMINATOR): Same.
31756 (lambda_trans_matrix_new): Same.
31757 (lambda_matrix_vector_mult): Same.
31758 (lambda_transform_legal_p): Same.
31759 * tree-pass.h (pass_linear_transform): Removed declaration.
31760 * tree-ssa-loop.c (tree_linear_transform): Removed.
31761 (gate_tree_linear_transform): Removed.
31762 (pass_linear_transform): Removed.
31763 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
31764 flag_loop_interchange.
31766 2011-01-25 Jakub Jelinek <jakub@redhat.com>
31768 PR tree-optimization/47265
31769 PR tree-optimization/47443
31770 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
31771 if name still has some uses.
31773 2011-01-25 Martin Jambor <mjambor@suse.cz>
31775 PR tree-optimization/47382
31776 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
31777 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
31779 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
31781 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
31782 sjlj_except_unwind_info.
31784 2011-01-25 Richard Guenther <rguenther@suse.de>
31786 PR tree-optimization/47426
31787 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
31788 visible functions results escape.
31790 2011-01-25 Jakub Jelinek <jakub@redhat.com>
31793 * config/arm/arm.c (any_sibcall_uses_r3): New function.
31794 (arm_get_frame_offsets): Use it.
31796 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31797 Jakub Jelinek <jakub@redhat.com>
31799 PR tree-optimization/47271
31800 * tree-if-conv.c (bb_postdominates_preds): New.
31801 (if_convertible_bb_p): Call bb_postdominates_preds.
31802 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
31803 (predicate_scalar_phi): Call bb_postdominates_preds.
31805 2011-01-25 Nick Clifton <nickc@redhat.com>
31807 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
31808 * config/rx/rx.c (rx_function_value): Likewise.
31809 (rx_promote_function_mode): Likewise.
31810 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
31811 in order to make it legitimate.
31812 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
31813 make sure that the first operand is the same as the result register.
31814 (addsi3_unspec): Delete.
31815 (subdi3): Do not accept immediate operands.
31816 (subdi3_internal): Likewise.
31818 2011-01-25 Jeff Law <law@redhat.com>
31820 PR rtl-optimization/37273
31821 * ira-costs.c (scan_one_insn): Detect constants living in memory and
31822 handle them like argument loads from stack slots. Do not double
31823 count memory for memory constants and argument loads from stack slots.
31825 2011-01-25 Jakub Jelinek <jakub@redhat.com>
31827 PR tree-optimization/47427
31828 PR tree-optimization/47428
31829 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
31830 coalesce if the new root var would be TREE_READONLY.
31832 2011-01-25 Richard Guenther <rguenther@suse.de>
31834 PR middle-end/47414
31835 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
31836 correct type for TBAA.
31838 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31840 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
31841 (close_phi_written_to_memory): Call for_each_index with
31842 dr_indices_valid_in_loop.
31844 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31846 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
31847 when it is initialized.
31849 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31851 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
31852 call to graphite_find_data_references_in_stmt.
31853 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
31854 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
31855 call to graphite_find_data_references_in_stmt.
31856 (analyze_drs_in_stmts): Same.
31857 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
31858 in which the scalar analysis of indices is performed.
31859 (create_data_ref): Same. Update call to dr_analyze_indices.
31860 (find_data_references_in_stmt): Update call to create_data_ref.
31861 (graphite_find_data_references_in_stmt): Same.
31862 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
31864 (create_data_ref): Same.
31865 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
31866 call to create_data_ref.
31868 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31870 * graphite-sese-to-poly.c (build_poly_scop): Move
31871 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
31873 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31875 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
31876 VAR_DECL, PARM_DECL, and RESULT_DECL.
31878 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31880 * graphite-dependences.c (reduction_dr_1): Allow several reductions
31881 in a reduction PBB.
31882 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
31883 that have already been marked as PBB_IS_REDUCTION.
31885 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31887 * graphite-scop-detection.c (same_close_phi_node): New.
31888 (remove_duplicate_close_phi): New.
31889 (make_close_phi_nodes_unique): New.
31890 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
31892 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31894 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
31895 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
31896 of both data references to be the same.
31898 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31900 * graphite-dependences.c (build_lexicographical_constraint): Remove
31901 the gdim parameter.
31902 (build_lexicographical_constraint): Adjust call to
31903 ppl_powerset_is_empty.
31904 (dependence_polyhedron): Same.
31905 (graphite_legal_transform_dr): Same.
31906 (graphite_carried_dependence_level_k): Same.
31907 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
31909 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
31911 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31913 * graphite-sese-to-poly.c
31914 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
31915 (close_phi_written_to_memory): New.
31916 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
31919 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31921 * doc/install.texi: Update the expected version number of PPL to 0.11.
31922 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
31923 #if PPL_VERSION_MINOR < 11.
31925 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31927 * graphite-dependences.c: Include graphite-cloog-util.h.
31928 (new_poly_ddr): Inlined into dependence_polyhedron.
31929 (free_poly_ddr): Moved close by new_poly_ddr.
31930 (dependence_polyhedron_1): Renamed dependence_polyhedron.
31931 Early return NULL when ppl_powerset_is_empty returns true.
31932 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
31933 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
31934 (graphite_legal_transform_dr): Call new_poly_ddr.
31935 (graphite_carried_dependence_level_k): Same.
31936 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
31937 (dot_transformed_deps_stmt_1): Removed.
31938 (dot_deps_stmt_1): Call dot_deps_stmt_2.
31939 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
31940 (dot_deps_1): Call dot_deps_2.
31941 * Makefile.in (graphite-dependences.o): Add missing dependence on
31942 graphite-cloog-util.h.
31944 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31946 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
31947 (build_lexicographical_constraint): Same.
31948 (dependence_polyhedron_1): Same.
31949 (graphite_legal_transform_dr): Same.
31950 (graphite_carried_dependence_level_k): Same.
31951 * graphite-ppl.c (ppl_powerset_is_empty): New.
31952 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
31953 * tree-data-ref.c (dump_data_reference): Print the basic block index.
31955 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31957 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
31958 the "a followed by b" relation and document it.
31960 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31962 * graphite-dependences.c (build_lexicographical_constraint): Stop the
31963 iteration when the bag of constraints is empty.
31965 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31967 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
31969 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31971 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
31972 nest and two loop depths as parameters.
31973 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
31974 lst_perfect_nestify.
31976 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31978 * graphite-dependences.c (print_pddr): Call
31979 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
31981 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
31983 * graphite-ppl.c (debug_gmp_value): New.
31984 * graphite-ppl.h (debug_gmp_value): Declared.
31986 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
31988 * doc/install.texi: Document availability of cloog-0.16.
31990 2011-01-25 Vladimir Kargov <kargov@gmail.com>
31992 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
31993 invalid postdominance info.
31995 2011-01-24 Jan Hubicka <jh@suse.cz>
31998 * doc/extend.texi (weak pragma): Drop claim that it must
31999 appear before definition.
32000 * varasm.c (merge_weak, declare_weak): Only sanity check
32001 that DECL is not output at a time it is declared weak.
32003 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
32005 * machmode.def: Fixed comments.
32007 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
32009 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
32011 2011-01-24 Paul Koning <ni1d@arrl.net>
32013 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
32016 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
32019 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
32020 (block_info): Add scanned and prev.
32021 (move_or_delete_vzeroupper_2): Return if the basic block
32022 has been scanned and the upper 128bit state is unchanged
32023 from the last scan.
32024 (move_or_delete_vzeroupper_1): Return true if the exit
32026 (move_or_delete_vzeroupper): Visit basic blocks using the
32027 work-list based algorithm based on vt_find_locations in
32030 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
32032 2011-01-24 Nick Clifton <nickc@redhat.com>
32034 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
32035 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
32036 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
32037 then define __v850e1__.
32038 * doc/invoke.texi: Document -mv850es.
32040 2011-01-24 Richard Henderson <rth@redhat.com>
32042 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
32043 compound unordered comparisons.
32044 * config/rx/rx.c (rx_split_fp_compare): Remove.
32045 * config/rx/rx-protos.h: Update.
32046 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
32047 (cbranchsf4): Don't call rx_split_fp_compare.
32048 (*cbranchsf4): Use rx_split_cbranch.
32049 (*cmpsf): Don't accept "i" constraint.
32050 (*conditional_branch): Only valid after reload.
32051 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
32053 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
32056 * config/rs6000/altivec.md (vector constant splitters): Add
32057 support for creating vector single precision constants if -mvsx is
32058 used and we would create the constant using Altivec primitives.
32060 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
32061 Richard Sandiford <rdsandiford@googlemail.com>
32063 PR rtl-optimization/47166
32064 * reload1.c (emit_reload_insns): Disable the spill_reg_store
32065 mechanism for PRE_MODIFY and POST_MODIFY.
32066 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
32069 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
32071 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
32073 2011-01-22 Jan Hubicka <jh@suse.cz>
32076 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
32078 2011-01-22 Jan Hubicka <jh@suse.cz>
32080 PR tree-optimization/43884
32082 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
32083 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
32085 2011-01-22 Anatoly Sokolov <aesok@post.ru>
32087 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
32088 * config/s390/s390.c (s390_register_move_cost,
32089 s390_memory_move_cost): New.
32090 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
32092 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32094 PR middle-end/47401
32095 * except.c (sjlj_assign_call_site_values): Move setting the
32096 crtl->uses_eh_lsda flag to ...
32097 (sjlj_mark_call_sites): ... here.
32098 (sjlj_emit_function_enter): Support NULL dispatch label.
32099 (sjlj_build_landing_pads): In a function with no landing pads
32100 that still has must-not-throw regions, generate code to register
32101 a personality function with empty LSDA.
32103 2011-01-21 Richard Henderson <rth@redhat.com>
32105 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
32107 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
32109 * compare-elim.c: New file.
32110 * Makefile.in (OBJS-common): Add it.
32111 (compare-elim.o): New.
32112 * common.opt (fcompare-elim): New.
32113 * opts.c (default_options_table): Add OPT_fcompare_elim.
32114 * tree-pass.h (pass_compare_elim_after_reload): New.
32115 * passes.c (init_optimization_passes): Add it.
32116 * recog.h: Protect against re-inclusion.
32117 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
32118 * doc/invoke.texi (-fcompare-elim): Document it.
32119 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
32120 * doc/tm.texi: Rebuild.
32122 2011-01-22 Nick Clifton <nickc@redhat.com>
32124 * config/rx/rx.md (cstoresf4): Pass comparison operator to
32125 rx_split_fp_compare.
32127 2011-01-22 Nick Clifton <nickc@redhat.com>
32129 * config/rx/rx.md (UNSPEC_CONST): New.
32130 (deallocate_and_return): Wrap the amount popped off the stack in
32131 an UNSPEC_CONST in order to stop it being rejected by
32132 -mmax-constant-size.
32133 (pop_and_return): Add a "(return)" rtx.
32134 (call): Drop the immediate operand.
32135 (call_internal): Likewise.
32136 (call_value): Likewise.
32137 (call_value_internal): Likewise.
32138 (sibcall_internal): Likewise.
32139 (sibcall_value_internal): Likewise.
32140 (sibcall): Likewise. Generate an explicit call using
32142 (sibcall_value): Likewise.
32143 (mov<>): FAIL if a constant operand is not legitimate.
32144 (addsi3_unpsec): New pattern.
32146 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
32147 (ok_for_max_constant): New function.
32148 (gen_safe_add): New function.
32149 (rx_expand_prologue): Use gen_safe_add.
32150 (rx_expand_epilogue): Likewise.
32151 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
32154 2011-01-21 Jeff Law <law@redhat.com>
32156 PR tree-optimization/47053
32157 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
32158 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
32159 statements are deleted.
32160 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
32161 is nonempty, then purge dead edges and cleanup the CFG.
32163 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
32166 Temporarily revert:
32167 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
32169 * tree-dfa.c (create_var_ann): Mark variable as used.
32171 2011-01-21 Jakub Jelinek <jakub@redhat.com>
32173 PR middle-end/45566
32174 * except.c (convert_to_eh_region_ranges): Emit queued no-region
32175 notes from other section in hot/cold partitioning even if
32176 last_action is -3. Increment call_site_base.
32178 PR rtl-optimization/47366
32179 * fwprop.c (forward_propagate_into): Return bool. If
32180 any changes are made, -fnon-call-exceptions is used and
32181 REG_EH_REGION note is present, call purge_dead_edges
32182 and return true if it purged anything.
32183 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
32184 any EH edges were purged.
32186 2011-01-21 Jeff Law <law@redhat.com>
32188 PR rtl-optimization/41619
32189 * caller-save.c (setup_save_areas): Break out code to determine
32190 which hard regs are live across calls by examining the reload chains
32191 so that it is always used.
32192 Eliminate code which checked REG_N_CALLS_CROSSED.
32194 2011-01-21 Jakub Jelinek <jakub@redhat.com>
32196 PR tree-optimization/47355
32197 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
32198 NOP has non-debug uses beyond PHIs in new_bb.
32200 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
32203 * cfgexpand.c (account_used_vars_for_block): Only account vars
32204 that are annotated as used.
32205 (estimated_stack_frame_size): Don't set TREE_USED.
32206 * tree-dfa.c (create_var_ann): Mark variable as used.
32208 2011-01-21 Richard Guenther <rguenther@suse.de>
32210 PR middle-end/47395
32211 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
32213 2011-01-21 Richard Guenther <rguenther@suse.de>
32215 PR tree-optimization/47365
32216 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
32217 (vn_reference_lookup_pieces): Adjust.
32218 (vn_reference_lookup): Likewise.
32219 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
32220 (vn_reference_lookup_3): Only look through kills if in
32221 VN_WALKREWRITE mode.
32222 (vn_reference_lookup_pieces): Adjust.
32223 (vn_reference_lookup): Likewise.
32224 (visit_reference_op_load): Likewise.
32225 (visit_reference_op_store): Likewise.
32226 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
32227 (compute_avail): Likewise.
32228 (eliminate): Likewise.
32230 2011-01-21 Jakub Jelinek <jakub@redhat.com>
32232 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
32233 DECL_IGNORED_P non-reg vars if they are used.
32235 PR tree-optimization/47391
32236 * varpool.c (const_value_known_p): Return false if
32239 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
32242 * config/i386/i386.c (ix86_local_alignment): Handle
32243 case for va_list_type_node is nil.
32244 (ix86_canonical_va_list_type): Likewise.
32246 2011-01-21 Alan Modra <amodra@gmail.com>
32248 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
32249 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
32251 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32253 * config/arm/arm.md (define_attr type): Rename f_load
32254 and f_store to f_fpa_load and f_fpa_store. Update.
32255 (write_conflict): Deal with rename fallout.
32256 (*push_fp_multi): Likewise.
32257 * config/arm/fpa.md (f_load): Use f_fpa_load.
32258 (f_store): Use f_fpa_store.
32259 (*movsf_fpa): Likewise.
32260 (*movdf_fpa): Likewise.
32261 (*movxf_fpa): Likewise.
32262 (*thumb2_movsf_fpa): Likewise.
32263 (*thumb2_movdf_fpa): Likewise.
32264 (*thumb2_movxf_fpa): Likewise.
32265 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
32266 f_loadd and f_stored.
32267 (*thumb2_movdi_vfp): Likewise.
32268 (*thumb2_movsf_vfp): Fix attribute to f_loads.
32269 (*thumb2_movsi_vfp): Likewise.
32270 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
32271 Use f_loads instead of f_load.
32272 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
32274 2011-01-20 Anatoly Sokolov <aesok@post.ru>
32276 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
32277 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
32278 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
32279 (xtensa_mode_dependent_address_p): New function.
32280 (constantpool_address_p): Make static. Change return type to bool.
32281 Change argument type to const_rtx. Use CONST_INT_P predicate.
32283 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
32286 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
32288 2011-01-20 Jakub Jelinek <jakub@redhat.com>
32291 * cfgexpand.c (expand_debug_expr): Instead of generating
32292 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
32295 2011-01-20 Richard Guenther <rguenther@suse.de>
32297 PR middle-end/47370
32298 * tree-inline.c (remap_gimple_op_r): Recurse manually for
32299 the pointer operand of MEM_REFs.
32301 2011-01-20 Jakub Jelinek <jakub@redhat.com>
32303 PR tree-optimization/46130
32304 * ipa-split.c (consider_split): If return_bb contains non-virtual
32305 PHIs other than for retval or if split_function would not adjust it,
32308 2011-01-20 Richard Guenther <rguenther@suse.de>
32310 PR tree-optimization/47167
32311 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
32312 Revert previous change, only avoid enumeral type changes.
32314 2011-01-19 Mike Stump <mikestump@comcast.net>
32316 * doc/tm.texi.in (BRANCH_COST): Englishify.
32317 * doc/tm.texi (BRANCH_COST): Likewise.
32319 2011-01-19 Dodji Seketeli <dodji@redhat.com>
32322 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
32323 (gen_scheduled_generic_parms_dies): New functions.
32324 (gen_struct_or_union_type_die): Schedule template parameters DIEs
32325 generation for the end of CU compilation.
32326 (dwarf2out_finish): Generate template parameters DIEs here.
32328 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
32331 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
32332 debug bind stmt on merge edges.
32334 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
32338 * function.c (instantiate_expr): Instantiate incoming rtl of
32339 implicit arguments, and recurse on VALUE_EXPRs.
32340 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
32341 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
32343 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
32345 * c-parser.c (c_parser_for_statement): Initialize
32346 collection_expression.
32348 2011-01-19 Joseph Myers <joseph@codesourcery.com>
32350 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
32352 2011-01-19 Joseph Myers <joseph@codesourcery.com>
32354 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
32355 (LINK_SHLIB_SPEC): Don't use %(link_path).
32356 (SUBTARGET_EXTRA_SPECS): Remove link_path.
32358 2011-01-19 Joseph Myers <joseph@codesourcery.com>
32360 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
32361 (NO_SHARED_LIB_SUPPORT): Remove.
32362 (LINK_SHLIB_SPEC): Remove one conditional definition.
32364 2011-01-19 Joseph Myers <joseph@codesourcery.com>
32366 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
32368 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
32369 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
32370 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
32371 %{call_shared} and conditionals on these options not being passed.
32372 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
32375 2011-01-19 Jakub Jelinek <jakub@redhat.com>
32377 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
32380 * ipa-split.c: Spelling fixes.
32382 2011-01-19 Richard Henderson <rth@redhat.com>
32384 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
32385 (*mulsi3): Likewise.
32387 * longlong.h [__mn10300__] (count_leading_zeros): New.
32388 [__mn10300__] (umul_ppmm, smul_ppmm): New.
32389 [__mn10300__] (add_ssaaaa, subddmmss): New.
32390 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
32391 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
32393 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32395 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
32397 2011-01-19 Richard Henderson <rth@redhat.com>
32399 * config/mn10300/mn10300.md (addsi3_flags): New.
32400 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
32401 (subsi3_flags, subc_internal, subdi3): New.
32402 (subdi3_internal, *subdi3_degenerate): New.
32403 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
32405 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
32406 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
32407 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
32408 * config/mn10300/mn10300-protos.h: Update.
32409 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
32410 (return_ret): Likewise. Rename from return_internal_regs.
32411 (return_internal): Remove.
32413 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
32414 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
32415 (mn10300_legitimate_constant_p): Likewise.
32416 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
32417 (mn10300_frame_size): New.
32418 (mn10300_expand_prologue): Use it.
32419 (mn10300_expand_epilogue): Likewise.
32420 (mn10300_initial_offset): Likewise.
32421 * config/mn10300/mn10300-protos.h: Update.
32422 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
32423 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
32424 (prologue, epilogue, return_internal): Tidy output code.
32425 (mn10300_store_multiple_operation, return): Likewise.
32426 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
32427 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
32428 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
32429 (load_pic, am33_load_pic): New.
32430 (mn10300_load_pic0, mn10300_load_pic1): New.
32432 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
32433 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
32434 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
32435 (cc_flags_for_mode, cc_flags_for_code): New.
32436 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
32437 overflow flag is not valid. Validate that the flags we need
32438 for the comparison are valid.
32439 (mn10300_output_cmp): Remove.
32440 (mn10300_output_add): New.
32441 (mn10300_select_cc_mode): Use cc_flags_for_code.
32442 (mn10300_split_cbranch): New.
32443 (mn10300_match_ccmode): New.
32444 (mn10300_split_and_operand_count): New.
32445 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
32447 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
32448 (addsi3): ... here. Use mn10300_output_add.
32449 (*addsi3_flags): New.
32450 (*am33_subsi3, *mn10300_subsi3): Merge...
32451 (subsi3): ... here. Use attribute isa.
32452 (*subsi3_flags): New.
32453 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
32455 (*am33_andsi3, *mn10300_andsi3): Merge...
32456 (andsi3): ... here.
32457 (*andsi3_flags): New.
32458 (andsi3 splitters): New.
32459 (*am33_iorsi3, *mn10300_iorsi3): Merge...
32460 (iorsi3): ... here.
32461 (*iorsi3_flags): New.
32462 (*am33_xorsi3, *mn10300_xorsi3): Merge...
32463 (xorsi3): ... here.
32464 (*xorsi3_flags): New.
32465 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
32466 (one_cmplsi2): ... here.
32467 (*one_cmplsi2_flags): New.
32468 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
32469 instead of "dax" in constraints. Use mn10300_split_cbranch.
32470 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
32471 use matching constraints to eliminate a self-comparison.
32472 (*integer_conditional_branch): Rename from integer_conditional_branch.
32473 Use int_mode_flags to match CC_REG.
32474 (*cbranchsi4_btst, *btstsi): New.
32475 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
32476 mn10300_split_cbranch.
32477 (*am33_cmpsf): Rename from am33_cmpsf.
32478 (*float_conditional_branch): Rename from float_conditional_branch.
32479 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
32480 (zero_extendqisi2): ... here.
32481 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
32482 (zero_extendhisi2): ... here.
32483 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
32484 (extendqisi2): ... here.
32485 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
32486 (extendhisi2): ... here.
32487 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
32488 (ashlsi3): ... here.
32489 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
32490 (lshrsi3): ... here.
32491 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
32492 (ashrsi3): ... here.
32493 (consecutive add peephole): Remove.
32494 * config/mn10300/predicates.md (label_ref_operand): New.
32495 (int_mode_flags): New.
32496 (CCZN_comparison_operator): New.
32498 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
32499 (throughput_42_latency_43): New reservation.
32500 (mulsidi3, umulsidi3): New expanders.
32501 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
32502 the MDR register to allocation; separately allocate the low and
32503 high parts of the DImode result.
32504 (umulsidi3_internal): Similarly.
32505 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
32506 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
32507 (udivsi3, umodsi3): Remove.
32508 (udivmodsi4, divmodsi4): New expanders.
32509 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
32510 (*divmodsi4): Simiarly.
32511 (ext_internal): New.
32513 * config/mn10300/constraints.md ("z"): New constraint.
32514 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
32515 (FIXED_REGISTERS): Don't fix MDR.
32516 (CALL_USED_REGSITERS): Reformat nicely.
32517 (REG_ALLOC_ORDER): Add MDR.
32518 (enum regclass): Add MDR_REGS.
32519 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
32520 (IRA_COVER_CLASSES): Add MDR_REGS.
32521 (REGNO_REG_CLASS): Handle MDR_REG.
32522 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
32523 (mn10300_register_move_cost): Likewise.
32524 * config/mn10300/mn10300.md (MDR_REG): New.
32525 (*movsi_internal): Handle moves to/from MDR_REGS.
32527 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
32529 (mn10300_secondary_reload): Tidy combination reload classes.
32530 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
32531 addresses for AM33. Allow symbolic offsets for reg+imm.
32532 (mn10300_regno_in_class_p): New.
32533 (mn10300_legitimize_reload_address): New.
32534 * config/mn10300/mn10300.h (enum reg_class): Remove
32535 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
32536 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
32537 SP_OR_GENERAL_REGS.
32538 (REG_CLASS_NAMES): Update to match.
32539 (REG_CLASS_CONTENTS): Likewise.
32540 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
32541 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
32542 (REGNO_IN_RANGE_P): Remove.
32543 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
32544 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
32545 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
32546 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
32547 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
32548 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
32549 (REGNO_GENERAL_P): New.
32550 (HAVE_POST_MODIFY_DISP): New.
32551 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
32552 (LEGITIMIZE_RELOAD_ADDRESS): New.
32553 * config/mn10300/mn10300-protos.h: Update.
32555 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
32556 DATA_REGS for AM33 stack-pointer destination.
32557 (mn10300_preferred_output_reload_class): Likewise.
32558 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
32559 into a form appropriate for ...
32560 (TARGET_SECONDARY_RELOAD): New.
32561 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
32562 * config/mn10300/mn10300-protos.h: Update.
32563 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
32564 reload_insi; use the "A" constraint for the scratch; handle AM33
32565 moves of sp to non-address registers.
32567 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
32568 (*movqi_internal): ... here.
32569 (*am33_movhi, *mn10300_movhi): Merge into...
32570 (*movhi_internal): ... here.
32571 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
32572 as the source/destination of moves from/to SP.
32573 (movsf): Only allow for AM33-2.
32574 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
32575 any integer constant constraint. Only allow for AM33-2. Tidy
32576 all of the alternative outputs.
32577 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
32578 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
32580 (udivsi3, umodsi3): New patterns for MN103 only.
32582 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
32584 * doc/tm.texi.in: Spell out that a lack of register class unions
32586 * doc/tm.texi: Regenerate.
32588 2011-01-19 Jakub Jelinek <jakub@redhat.com>
32590 PR rtl-optimization/47337
32591 * dce.c (check_argument_store): New function.
32592 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
32594 PR tree-optimization/47290
32595 * tree-eh.c (infinite_empty_loop_p): New function.
32596 (cleanup_empty_eh): Use it.
32598 2011-01-18 Steve Ellcey <sje@cup.hp.com>
32601 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
32602 (a64_expand_widen_sum): Ditto.
32603 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
32604 (vec_extract_evenodd_help): Ditto.
32605 (vec_extract_evenv4hi): Ditto.
32606 (vec_extract_oddv4hi): Ditto.
32607 (vec_extract_evenv2si): Ditto.
32608 (vec_extract_oddv2si): Ditto.
32609 (vec_extract_evenv2sf): Ditto.
32610 (vec_extract_oddv2sf): Ditto.
32611 (vec_pack_trunc_v4hi: Ditto.
32612 (vec_pack_trunc_v2si): Ditto.
32613 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
32614 (vec_interleave_highv8qi): Ditto.
32616 (vec_extract_oddv8qi): Ditto.
32617 (vec_interleave_lowv4hi): Ditto.
32618 (vec_interleave_highv4hi): Ditto.
32619 (vec_interleave_lowv2si): Ditto.
32620 (vec_interleave_highv2si): Ditto.
32622 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32624 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
32625 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
32626 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
32627 (pa_c_mode_for_suffix): New.
32628 (TARGET_EXPAND_BUILTIN): Define.
32629 (TARGET_C_MODE_FOR_SUFFIX): Define.
32630 (pa_builtins): Define.
32631 (pa_init_builtins): Register __float128 type and init new support
32633 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
32634 * config/pa/quadlib.c (_U_Qfcopysign): New.
32636 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
32638 PR middle-end/46894
32639 * explow.c (allocate_dynamic_stack_space): Do not assume more than
32640 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
32643 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32645 PR tree-optimization/47179
32646 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
32647 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
32649 2011-01-18 Richard Guenther <rguenther@suse.de>
32651 PR rtl-optimization/47216
32652 * emit-rtl.c: Include tree-flow.h.
32653 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
32654 of replicating it with different semantics.
32655 * Makefile.in (emit-rtl.o): Adjust.
32657 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32659 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
32660 (cortex_a9_dp): Handle neon types correctly.
32662 2011-01-18 Jakub Jelinek <jakub@redhat.com>
32664 PR rtl-optimization/47299
32665 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
32666 subtarget. Use normal multiplication if both operands are constants.
32667 * expmed.c (expand_widening_mult): Don't try to optimize constant
32668 multiplication if op0 has VOIDmode. Convert op1 constant to mode
32671 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32673 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
32674 spacing after 'e.g.', typos, comma, hyphenation.
32676 2011-01-17 Richard Henderson <rth@redhat.com>
32678 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
32679 (rx_restricted_mem_operand): New.
32680 (rx_shift_operand): Use register_operand.
32681 (rx_source_operand, rx_compare_operand): Likewise.
32682 * config/rx/rx.md (addsi3_flags): New expander.
32683 (adddi3): Rewrite as expander.
32684 (adc_internal, *adc_flags, adddi3_internal): New patterns.
32685 (subsi3_flags): New expander.
32686 (subdi3): Rewrite as expander.
32687 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
32689 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
32690 (rx_init_builtins): Remove sat builtin.
32691 (rx_expand_builtin): Likewise.
32692 * config/rx/rx.md (ssaddsi3): New.
32693 (*sat): Rename from sat. Represent the CC_REG input.
32695 * config/rx/predicates.md (rshift_operator): New.
32696 * config/rx/rx.c (rx_expand_insv): Remove.
32697 * config/rx/rx-protos.h: Update.
32698 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
32699 operand to the canonical position.
32700 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
32701 (*bitclr, *bitclr_in_memory): Similarly.
32702 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
32703 (insv): Retain the zero_extract in the expansion.
32705 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
32706 (bswaphi2, bitinvert, revw): Likewise.
32708 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
32709 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
32710 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
32711 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
32712 (bitset, bitset_in_memory): Likewise.
32713 (bitinvert, bitinvert_in_memory): Likewise.
32714 (bitclr, bitclr_in_memory): Likewise.
32715 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
32716 (rx_strend, rx_cmpstrn): Likewise.
32717 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
32718 (bitop peep2 patterns): Remove.
32720 * config/rx/rx.c (rx_match_ccmode): New.
32721 * config/rx/rx-protos.h: Update.
32722 * config/rx/rx.md (abssi2): Clobber, don't set flags.
32723 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
32724 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
32725 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
32726 (fix_truncsfsi2, floatsisf2): Likewise.
32727 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
32728 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
32729 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
32730 (*subsi3_flags, *xorsi3_flags): New.
32732 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
32734 * config/rx/rx.c (rx_print_operand): Remove workaround for
32735 unsplit comparison operations.
32737 * config/rx/rx.md (movsicc): Split after reload.
32738 (*movsicc): Merge *movsieq and *movsine via match_operator.
32739 (*stcc): New pattern.
32741 * config/rx/rx.c (rx_float_compare_mode): Remove.
32742 * config/rx/rx.h (rx_float_compare_mode): Remove.
32743 * config/rx/rx.md (cstoresi4): Split after reload.
32744 (*sccc): New pattern.
32746 * config/rx/predicates.md (label_ref_operand): New.
32747 (rx_z_comparison_operator): New.
32748 (rx_zs_comparison_operator): New.
32749 (rx_fp_comparison_operator): New.
32750 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
32751 Validate that the flags are set properly for the comparison.
32752 (rx_gen_cond_branch_template): Remove.
32753 (rx_cc_modes_compatible): Remove.
32754 (mode_from_flags): New.
32755 (flags_from_code): Rename from flags_needed_for_conditional.
32756 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
32757 (rx_select_cc_mode): Likewise.
32758 (rx_split_fp_compare): New.
32759 (rx_split_cbranch): New.
32760 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
32761 (*cbranchsi4): Use match_operator and rx_split_cbranch.
32762 (*cbranchsf4): Similarly.
32763 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
32764 match_operator and rx_split_cbranch.
32765 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
32766 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
32767 (*cmpsi): Rename from cmpsi.
32768 (*tstsi): Rename from tstsi.
32769 (*cmpsf): Rename from cmpsf; use CC_Fmode.
32770 (*conditional_branch): Rename from conditional_branch.
32771 (*reveresed_conditional_branch): Remove.
32772 (b<code>): Remove expander.
32773 * config/rx/rx-protos.h: Update.
32775 * config/rx/rx.c (rx_compare_redundant): Remove.
32776 * config/rx/rx.md (cmpsi): Don't use it.
32777 * config/rx/rx-protos.h: Update.
32779 * config/rx/rx-modes.def (CC_F): New mode.
32780 * config/rx/rx.c (rx_select_cc_mode): New.
32781 * config/rx/rx.h (SELECT_CC_MODE): Use it.
32782 * config/rx/rx-protos.h: Update.
32784 2011-01-17 Richard Henderson <rth@redhat.com>
32786 * except.c (dump_eh_tree): Fix stray ; after for statement.
32788 2011-01-17 Richard Guenther <rguenther@suse.de>
32790 PR tree-optimization/47313
32791 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
32792 handling before copying the body. Properly deal with
32793 by-reference result in SSA form.
32795 2011-01-17 Ian Lance Taylor <iant@google.com>
32798 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
32799 (struct_value_alias_set): Don't define.
32800 (sparc_option_override): Don't set sparc_sr_alias_set and
32801 struct_value_alias_set.
32802 (save_or_restore_regs): Use gen_frame_mem rather than calling
32804 (sparc_struct_value_rtx): Likewise.
32806 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
32809 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
32810 (_mm_maskstore_pd): Likewise.
32811 (_mm_maskload_ps): Likewise.
32812 (_mm_maskstore_ps): Likewise.
32813 (_mm256_maskload_pd): Change mask to __m256i.
32814 (_mm256_maskstore_pd): Likewise.
32815 (_mm256_maskload_ps): Likewise.
32816 (_mm256_maskstore_ps): Likewise.
32818 * config/i386/i386-builtin-types.def: Updated.
32819 (ix86_expand_special_args_builtin): Likewise.
32821 * config/i386/i386.c (bdesc_special_args): Update
32822 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
32823 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
32824 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
32825 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
32827 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
32828 Use <avxpermvecmode> on mask register.
32829 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
32831 2011-01-17 Olivier Hainque <hainque@adacore.com>
32832 Michael Haubenwallner <michael.haubenwallner@salomon.at>
32833 Eric Botcazou <ebotcazou@adacore.com>
32836 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
32837 if <= USHRT_MAX in 32-bit mode.
32839 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32841 * doc/install.texi (Configuration, Specific): Wrap long
32842 lines in examples. Allow line wrapping in long options
32843 and URLs where beneficial for PDF output.
32845 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
32847 * config/mips/mips.c (mips_classify_symbol): Don't return
32848 SYMBOL_PC_RELATIVE for nonlocal labels.
32850 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
32852 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
32854 2011-01-15 Jan Hubicka <jh@suse.cz>
32856 PR tree-optimization/47276
32857 * ipa.c (function_and_variable_visibility): Do not try to mark alias
32858 declarations as needed.
32860 2011-01-15 Martin Jambor <mjambor@suse.cz>
32862 * common.opt (fdevirtualize): New flag.
32863 * doc/invoke.texi (Option Summary): Document it.
32864 * opts.c (default_options_table): Add devirtualize flag.
32865 * ipa-prop.c (detect_type_change): Return immediately if
32866 devirtualize flag is not set.
32867 (detect_type_change_ssa): Likewise.
32868 (compute_known_type_jump_func): Likewise.
32869 (ipa_analyze_virtual_call_uses): Likewise.
32871 2011-01-14 Martin Jambor <mjambor@suse.cz>
32873 PR tree-optimization/45934
32874 PR tree-optimization/46302
32875 * ipa-prop.c (type_change_info): New type.
32876 (stmt_may_be_vtbl_ptr_store): New function.
32877 (check_stmt_for_type_change): Likewise.
32878 (detect_type_change): Likewise.
32879 (detect_type_change_ssa): Likewise.
32880 (compute_complex_assign_jump_func): Check for dynamic type change.
32881 (compute_complex_ancestor_jump_func): Likewise.
32882 (compute_known_type_jump_func): Likewise.
32883 (compute_scalar_jump_functions): Likewise.
32884 (ipa_analyze_virtual_call_uses): Likewise.
32885 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
32887 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32889 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
32890 * config/i386/i386.opt (msse5): New Alias.
32892 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32894 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
32895 * config/sparc/linux64.h (CC1_SPEC): Likewise.
32896 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
32897 * config/sparc/sparc.h (CC1_SPEC): Likewise.
32899 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32901 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
32903 * config/sparc/linux64.h (CC1_SPEC): Likewise.
32904 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
32905 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
32906 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
32908 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
32910 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32912 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
32914 2011-01-14 Mike Stump <mikestump@comcast.net>
32916 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
32917 * config/fr30/fr30.md: Likweise
32918 (movsi_push): Likewise.
32919 (movsi_pop): Likewise.
32920 (enter_func): Likewise.
32921 * config/moxie/moxie.md (movsi_push): Likewise.
32922 (movsi_pop): Likewise.
32924 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32926 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
32927 %{no_archive} %{exact_version}.
32928 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
32929 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
32930 %{no_archive} %{exact_version}.
32931 * config/mips/openbsd.h (LINK_SPEC): Likewise.
32932 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
32933 * config/mips/vxworks.h: Likewise.
32935 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32937 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
32939 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32941 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
32942 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
32944 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32946 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
32949 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32951 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
32953 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
32954 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
32956 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
32957 Don't handle -shlib.
32959 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32961 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
32962 (CC1_SPEC): Don't handle -profile.
32964 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32966 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
32967 * config/mips/mips.h (CC1_SPEC): Likewise.
32969 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32971 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
32972 * config/mips/mips.h (CC1_SPEC): Likewise.
32974 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32976 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
32977 * config/m32r/linux.h (LINK_SPEC): Likewise.
32978 * config/mips/linux.h (LINK_SPEC): Likewise.
32979 * config/mips/linux64.h (LINK_SPEC): Likewise.
32980 * config/sparc/linux.h (LINK_SPEC): Likewise.
32981 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
32982 LINK_SPEC): Likewise.
32983 * config/xtensa/linux.h (LINK_SPEC): Likewise.
32985 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32987 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
32989 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
32991 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32993 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
32994 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
32996 2011-01-14 Joseph Myers <joseph@codesourcery.com>
32998 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
33000 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33002 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
33003 supports -Bstatic/-Bdynamic.
33004 * configure: Regenerate.
33006 2011-01-14 Jan Hubicka <jh@suse.cz>
33007 Jack Howarth <howarth@bromo.med.uc.edu>
33010 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
33011 when checking debug_info_level. Test write_symbols instead of
33012 debug_hooks->var_location when setting flag_var_tracking_uninit.
33014 2011-01-14 Richard Guenther <rguenther@suse.de>
33016 PR tree-optimization/47179
33017 * target.def (ref_may_alias_errno): New target hook.
33018 * targhooks.h (default_ref_may_alias_errno): Declare.
33019 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
33020 (default_ref_may_alias_errno): New function.
33021 * target.h (struct ao_ref_s): Declare.
33022 * tree-ssa-alias.c: Include target.h.
33023 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
33024 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
33025 (targhooks.o): Likewise.
33026 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
33027 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
33029 2011-01-14 Richard Guenther <rguenther@suse.de>
33031 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
33033 2011-01-14 Richard Guenther <rguenther@suse.de>
33035 PR tree-optimization/47280
33036 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
33037 return CFG changes.
33038 (tree_ssa_forward_propagate_single_use_vars): Deal with
33039 CFG changes from associate_plusminus.
33041 2011-01-14 Richard Guenther <rguenther@suse.de>
33043 PR middle-end/47281
33045 2011-01-11 Richard Guenther <rguenther@suse.de>
33047 PR tree-optimization/46076
33048 * tree-ssa.c (useless_type_conversion_p): Conversions from
33049 unprototyped to empty argument list function types are useless.
33051 2011-01-14 Richard Guenther <rguenther@suse.de>
33053 PR tree-optimization/47286
33054 * tree-ssa-structalias.c (new_var_info): Register variables are global.
33056 2011-01-14 Martin Jambor <mjambor@suse.cz>
33058 PR middle-end/46823
33059 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
33061 2011-01-13 Anatoly Sokolov <aesok@post.ru>
33063 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
33064 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
33065 * config/xtensa/xtensa.c (xtensa_libcall_value,
33066 xtensa_function_value_regno_p): New functions.
33067 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
33069 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
33072 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
33074 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
33075 New function prototype.
33076 * config/i386/winnt.c (i386_pe_assemble_visibility):
33077 Warn only if attribute was specified by user.
33079 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
33082 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
33084 (floatunsdidf2_fcfidu): Ditto.
33086 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33088 * config/s390/s390.c (print_operand_address): Replace 'error' with
33089 'output_operand_lossage'.
33090 (print_operand): Likewise.
33092 2011-01-13 Jeff Law <law@redhat.com>
33094 PR rtl-optimization/39077
33095 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
33096 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
33097 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
33098 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
33099 * gcse.c (prune_insertions_deletions): New function.
33100 (compute_pre_data): Use it.
33102 2011-01-13 Dodji Seketeli <dodji@redhat.com>
33105 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
33107 (prune_unused_types_mark): Use it.
33109 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
33111 PR rtl-optimization/45352
33112 * sel-sched.c: Update copyright years.
33113 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
33114 in the advancing loop when we have issued issue_rate insns.
33116 2011-01-12 Richard Henderson <rth@redhat.com>
33118 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
33119 (TARGET_MD_ASM_CLOBBERS): New.
33121 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
33122 (TARGET_DELEGITIMIZE_ADDRESS): New.
33124 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
33125 (clzsi2, *bsch): New patterns.
33127 * config/mn10300/mn10300.md (INT): New mode iterator.
33128 (*mov<INT>_clr): New pattern, and peep2 to generate it.
33130 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
33131 flag_split_wide_types.
33133 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
33134 (mn10300_trampoline_init): Rewrite without a template, an immediate
33135 load and a direct branch.
33136 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
33138 2011-01-12 Anatoly Sokolov <aesok@post.ru>
33140 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
33141 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
33142 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
33143 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
33145 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
33148 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
33151 2011-01-12 Jan Hubicka <jh@suse.cz>
33154 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
33155 (PLUGIN_COND_CLOSE): New macro.
33156 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
33158 2011-01-12 Richard Guenther <rguenther@suse.de>
33161 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
33162 register variables in a MEM_REF.
33164 2011-01-12 Joseph Myers <joseph@codesourcery.com>
33166 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
33167 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
33168 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
33169 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
33170 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
33171 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
33172 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
33173 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
33174 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
33175 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
33176 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
33177 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
33178 * config/gnu-user.h: New. Copied from linux.h.
33179 (LINUX_TARGET_STARTFILE_SPEC): Rename to
33180 GNU_USER_TARGET_STARTFILE_SPEC.
33181 (LINUX_TARGET_ENDFILE_SPEC): Rename to
33182 GNU_USER_TARGET_ENDFILE_SPEC.
33183 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
33184 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
33185 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
33186 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
33187 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
33188 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
33189 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
33190 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
33191 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
33192 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
33193 * config/arm/linux-eabi.h (CC1_SPEC): Use
33194 GNU_USER_TARGET_CC1_SPEC.
33195 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
33196 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
33197 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
33198 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
33199 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
33200 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
33201 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
33202 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
33204 2011-01-12 Richard Guenther <rguenther@suse.de>
33207 * doc/invoke.texi (ffast-math): Document it is turned on
33210 2011-01-12 Jan Hubicka <jh@suse.cz>
33212 PR tree-optimization/47233
33213 * opts.c (common_handle_option): Disable ipa-reference with profile
33216 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
33218 * c-parser.c (c_parser_objc_at_property_declaration): Improved
33221 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
33223 * c-parser.c (c_lex_one_token): Updated and reindented some
33224 comments. No changes in code.
33226 2011-01-11 Ian Lance Taylor <iant@google.com>
33228 * godump.c (go_output_var): Don't output the variable if there is
33229 already a type with the same name.
33231 2011-01-11 Ian Lance Taylor <iant@google.com>
33233 * godump.c (go_format_type): Don't generate float80.
33235 2011-01-11 Richard Henderson <rth@redhat.com>
33237 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
33238 declaration. Rewrite for both speed and size.
33239 (mn10300_address_cost_1): Remove.
33240 (mn10300_register_move_cost): New.
33241 (mn10300_memory_move_cost): New.
33242 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
33243 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
33244 extensions, shifts, BSWAP, CLZ.
33245 (mn10300_wide_const_load_uses_clr): Remove.
33246 (TARGET_REGISTER_MOVE_COST): New.
33247 (TARGET_MEMORY_MOVE_COST): New.
33248 * config/mn10300/mn10300-protos.h: Update.
33249 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
33251 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
33252 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
33253 * config/mn10300/mn10300-protos.h: Update.
33254 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
33255 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
33256 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
33257 (*test_int_bitfield, *test_byte_bitfield): Remove.
33258 (*bit_test, *subreg_bit_test): Remove.
33259 * config/mn10300/predicates.md (const_8bit_operand): Remove.
33261 * config/mn10300/constraints.md ("c"): Rename from "A".
33262 ("A", "D"): New constraint letters.
33263 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
33264 (fmssf4, fnmasf4, fnmssf4): Likewise.
33266 * config/mn10300/mn10300.md (isa): New attribute.
33267 (enabled): New attribute.
33269 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
33270 (abssf2, negsf2): Define only for hardware fp.
33271 (sqrtsf2): Reformat.
33272 (addsf3, subsf3, mulsf3): Merge expander and insn.
33274 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
33275 (DEBUGGER_AUTO_OFFSET): Remove.
33276 (DEBUGGER_ARG_OFFSET): Remove.
33278 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
33279 Emit register stores with the same offsets as the hardware.
33280 (mn10300_store_multiple_operation): Don't check that the register
33281 save offsets are monotonic.
33282 * config/mn10300/mn10300-protos.h: Update.
33284 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
33286 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
33287 in terms of the value on the stack, not the MDR register.
33289 2011-01-11 Jan Hubicka <jh@suse.cz>
33293 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
33294 (symbol_alias_set_destroy, symbol_alias_set_contains,
33295 propagate_aliases_backward): Declare.
33296 * lto-streamer-out.c (struct sets): New sturcture.
33297 (trivally_defined_alias): New function.
33298 (output_alias_pair_p): Rewrite.
33299 (output_unreferenced_globals): Fix output of alias pairs.
33300 (produce_symtab): Likewise.
33301 * ipa.c (function_and_variable_visibility): Set weak alias destination
33303 * varasm.c (symbol_alias_set_t): Remove.
33304 (symbol_alias_set_destroy): Export.
33305 (propagate_aliases_forward, propagate_aliases_backward): New functions
33307 (compute_visible_aliases): ... this one; remove.
33308 (trivially_visible_alias): New
33309 (trivially_defined_alias): New.
33310 (remove_unreachable_alias_pairs): Rewrite.
33311 (finish_aliases_1): Reorganize code checking if alias is defined.
33312 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
33315 2011-01-11 Richard Guenther <rguenther@suse.de>
33317 PR tree-optimization/46076
33318 * tree-ssa.c (useless_type_conversion_p): Conversions from
33319 unprototyped to empty argument list function types are useless.
33321 2011-01-11 Richard Guenther <rguenther@suse.de>
33323 PR middle-end/45235
33324 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
33325 volatile MEMs as MEM_READONLY_P.
33327 2011-01-11 Richard Guenther <rguenther@suse.de>
33329 PR tree-optimization/47239
33330 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
33332 2011-01-11 Jeff Law <law@redhat.com>
33334 PR tree-optimization/47086
33335 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
33336 IVs from statements that might throw.
33338 2011-01-10 Jan Hubicka <jh@suse.cz>
33341 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
33343 2011-01-10 Jan Hubicka <jh@suse.cz>
33346 * profile.c (read_profile_edge_counts): Ignore profile inconistency
33347 when correcting profile.
33349 2011-01-10 Jan Hubicka <jh@suse.cz>
33352 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
33353 DECL_FINI_PRIORITY.
33354 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
33355 Restore DECL_FINI_PRIORITY.
33357 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33359 * doc/gimple.texi: Fix quoting of multi-word return values in
33360 @deftypefn statements. Ensure presence of return value. Wrap
33361 overlong @deftypefn lines.
33362 (is_gimple_operand, is_gimple_min_invariant_address): Remove
33363 descriptions of removed functions.
33364 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
33365 of multi-word return value in @deftypefn statement.
33367 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33369 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
33370 (Conditional Expressions, Logical Operators)
33371 (Statement and operand traversals): Do not indent smallexample
33372 code. Fix duplicate function argument in example.
33374 2011-01-10 Jeff Law <law@redhat.com>
33376 PR tree-optimization/47141
33377 * ipa-split.c (split_function): Handle case where we are
33378 returning a value and the return block has a virtual operand phi.
33380 2011-01-10 Jan Hubicka <jh@suse.cz>
33382 PR tree-optimization/47234
33383 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
33384 (pass_feedback_split_functions): Declare.
33385 * passes.c (init_optimization_passes): Add ipa-split as subpass of
33387 * ipa-split.c (gate_split_functions): Update comments; disable
33388 split-functions for profile_arc_flag and branch_probabilities.
33389 (gate_feedback_split_functions): New function.
33390 (execute_feedback_split_functions): New function.
33391 (pass_feedback_split_functions): New global var.
33393 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
33396 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
33397 calling gimple_call_set_cannot_inline.
33399 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
33401 * config/darwin-sections.def: Remove unused section.
33403 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
33406 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
33408 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
33411 * c-parser.c (c_parser_declaration_or_fndef): Improved
33414 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
33416 * config/i386/winnt.c (i386_pe_start_function): Make sure
33417 to switch back to function's section.
33419 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
33423 * plugin.c: Move include of dlfcn.h from here...
33424 * system.h: ... to here.
33426 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33428 * doc/cpp.texi (C++ Named Operators): Fix markup for header
33430 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
33431 two extra empty pages in PDF output.
33433 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
33436 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
33437 for error recovery purposes behave as if it was not specified so
33438 that the default type is usd.
33440 2011-01-07 Jan Hubicka <jh@suse.cz>
33442 PR tree-optmization/46469
33443 * ipa.c (function_and_variable_visibility): Clear needed flags on
33444 nodes with external decls; handle weakrefs merging correctly.
33446 2011-01-07 Joseph Myers <joseph@codesourcery.com>
33448 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
33451 2011-01-07 Jan Hubicka <jh@suse.cz>
33453 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
33454 and no longer claim that gold is required for linker plugin.
33455 * configure: Regenerate.
33456 * gcc.c (PLUGIN_COND): New macro.
33457 (LINK_COMMAND_SPEC): Use it.
33458 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
33459 * config.in (HAVE_LTO_PLUGIN): New.
33460 * configure.ac (--with-lto-plugin): New parameter; autodetect
33463 2011-01-07 Jan Hubicka <jh@suse.cz>
33465 PR tree-optimization/46367
33466 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
33467 when we can update original.
33468 (cgraph_mark_inline_edge): Sanity check.
33469 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
33471 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33473 * config/spu/spu.h (ASM_COMMENT_START): Define.
33475 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
33478 * gcc.c (%>S): New.
33479 (SWITCH_KEEP_FOR_GCC): Likewise.
33480 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
33481 (do_spec_1): Handle "%>".
33483 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
33485 2011-01-07 Jakub Jelinek <jakub@redhat.com>
33488 * config/i386/i386.c (ix86_delegitimize_address): If
33489 simplify_gen_subreg fails, return orig_x.
33492 * value-prof.c (gimple_stringop_fixed_value): Handle
33493 lhs of the call properly.
33495 2011-01-07 Jan Hubicka <jh@suse.cz>
33498 * lto-opt.c (lto_reissue_options): Set flag_shlib.
33500 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
33502 * target.def (function_switched_text_sections): New hook.
33503 * doc/tm.texi: Regenerated.
33504 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
33505 * final.c (default_function_switched_text_sections): New.
33506 (final_scan_insn): Call function_switched_text_sections when a
33507 mid-function section change occurs.
33508 * output.h (default_function_switched_text_sections): Declare.
33509 * config/darwin-protos.h (darwin_function_switched_text_sections):
33511 * config/darwin.c (darwin_function_switched_text_sections): New.
33512 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
33514 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
33516 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
33517 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
33518 the secondary code fragment when outputting for DWARF == 2.
33520 2011-01-07 Anatoly Sokolov <aesok@post.ru>
33522 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
33523 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
33525 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
33526 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
33528 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
33531 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
33532 when it is not empty.
33534 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
33537 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
33538 (case ${target}): Add btver1.
33539 * config/i386/driver-i386.c (host_detect_local_cpu): Let
33540 -march=native recognize btver1 processors.
33541 * config/i386/i386-c.c (ix86_target_macros_internal): Add
33542 btver1 def_and_undef
33543 * config/i386/i386.c (struct processor_costs btver1_cost): New
33545 (m_BTVER1): New definition.
33546 (m_AMD_MULTIPLE): Includes m_BTVER1.
33547 (initial_ix86_tune_features): Add btver1 tune.
33548 (processor_target_table): Add btver1 entry.
33549 (static const char *const cpu_names): Add btver1 entry.
33550 (software_prefetching_beneficial_p): Add btver1.
33551 (ix86_option_override_internal): Add btver1 instruction sets.
33552 (ix86_issue_rate): Add btver1.
33553 (ix86_adjust_cost): Add btver1.
33554 * config/i386/i386.h (TARGET_BTVER1): New definition.
33555 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
33556 (enum processor_type): Add PROCESSOR_BTVER1.
33557 * config/i386/i386.md (define_attr "cpu"): Add btver1.
33559 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33562 * config/i386/i386.c (legitimize_tls_address)
33563 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
33564 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
33565 (tls_initial_exec_64_sun): New pattern.
33567 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
33569 * doc/invoke.texi (Overall Options): Improve wording and markup
33570 of the description of -wrapper.
33572 2011-01-06 Joseph Myers <joseph@codesourcery.com>
33574 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
33575 rdynamic, threads): New Driver options.
33577 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33580 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
33581 if coming from .tdata.
33582 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
33584 2011-01-06 Jan Hubicka <jh@suse.cz>
33587 * collect2.c (main): Do not enable LTOmode when plugin is active.
33589 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33592 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
33593 --version output if supported.
33594 * configure: Regenerate.
33596 2011-01-06 Joseph Myers <joseph@codesourcery.com>
33598 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
33601 2011-01-06 Jakub Jelinek <jakub@redhat.com>
33604 * c-convert.c (convert): When converting a complex expression
33605 other than COMPLEX_EXPR to a different complex type, ensure
33606 c_save_expr is called instead of save_expr, unless in_late_binary_op.
33607 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
33608 when converting COMPLEX_TYPE.
33610 2011-01-06 Ira Rosen <irar@il.ibm.com>
33612 PR tree-optimization/47139
33613 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
33614 only the last reduction value is used outside the loop. Update
33617 2011-01-05 Joseph Myers <joseph@codesourcery.com>
33619 * config/rtems.opt: New.
33620 * config.gcc (*-*-rtems*): Use rtems.opt.
33622 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
33624 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
33625 processors do not support 3DNow instructions.
33627 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33629 * config/spu/spu.c (spu_option_override): Set parameter
33630 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
33632 2011-01-05 Jan Hubicka <jh@suse.cz>
33634 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
33635 at the command line.
33637 2011-01-05 Martin Jambor <mjambor@suse.cz>
33640 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
33641 deltas on streamed outgoing edges.
33642 (output_node_opt_summary): Output info for outgoing edges only when
33643 the node is in new parameter set.
33644 (output_cgraph_opt_summary): New parameter set, passed to the two
33645 aforementioned functions. Update its forward declaration and its
33648 2011-01-05 Tom Tromey <tromey@redhat.com>
33650 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
33651 operator to c_finish_omp_atomic.
33652 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
33653 (build_unary_op): Update.
33654 (build_modify_expr): Update.
33655 (build_asm_expr): Update.
33657 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33659 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
33660 newly inserted insns.
33661 (pad_bb): Likewise.
33662 (spu_emit_branch_hint): Likewise.
33663 (insert_hbrp_for_ilb_runout): Likewise.
33664 (spu_machine_dependent_reorg): Call df_finish_pass after
33665 schedule_insns returns.
33667 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33669 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
33671 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
33673 PR tree-optimization/47005
33674 * tree-sra.c (struct access): Add 'non_addressable' bit.
33675 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
33676 (decide_one_param_reduction): Return 0 if the parameter is passed by
33677 reference and one of the accesses in the group is non_addressable.
33679 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
33681 PR tree-optimization/47056
33682 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
33683 (mark_load): Likewise. Handle FUNCTION_DECL specially.
33684 (mark_store): Likewise. Pass STMT to ipa_record_reference.
33686 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
33688 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
33689 initializer. Skip view conversions from aggregate types.
33691 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
33694 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
33696 2011-01-04 Philipp Thomas <pth@suse.de>
33698 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
33701 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33703 * function.c (thread_prologue_and_epilogue_insns): Do not crash
33704 on empty epilogue sequences.
33706 2011-01-04 Joseph Myers <joseph@codesourcery.com>
33708 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
33709 non-static): New Driver options.
33711 2011-01-04 Jie Zhang <jie@codesourcery.com>
33714 * gcc.c (default_compilers[]): Set combinable field to 0
33715 for all assembly languages.
33717 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
33719 * config/mips/loongson3a.md: New file.
33720 * config/mips/mips.md: Include loongson3a.md.
33721 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
33724 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
33726 PR middle-end/47017
33727 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
33728 instead of convert_memory_address_addr_space on the base expression.
33730 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33732 * config/spu/spu.c (spu_option_override): Update error text
33733 for bad -march= / -mtune= values.
33735 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33737 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
33738 if branch-hint optimization will be performed.
33740 2011-01-03 Jakub Jelinek <jakub@redhat.com>
33742 PR tree-optimization/47148
33743 * ipa-split.c (split_function): Convert arguments to
33744 DECL_ARG_TYPE if possible.
33746 PR tree-optimization/47155
33747 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
33748 when computing uns.
33750 PR rtl-optimization/47157
33751 * combine.c (try_combine): If undobuf.other_insn becomes
33752 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
33753 and set *new_direct_jump_p too.
33755 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
33757 PR tree-optimization/47021
33758 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
33760 2011-01-03 Jakub Jelinek <jakub@redhat.com>
33762 * gcc.c (process_command): Update copyright notice dates.
33763 * gcov.c (print_version): Likewise.
33764 * gcov-dump.c (print_version): Likewise.
33765 * mips-tfile.c (main): Likewise.
33766 * mips-tdump.c (main): Likewise.
33768 2011-01-03 Martin Jambor <mjambor@suse.cz>
33770 PR tree-optimization/46801
33771 * tree-sra.c (type_internals_preclude_sra_p): Check whether
33772 aggregate fields start at byte boundary instead of the bit-field flag.
33774 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
33777 * gcc.c (main): Revert revision 168407.
33779 2011-01-03 Martin Jambor <mjambor@suse.cz>
33781 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
33783 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33785 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
33786 vector optab to expand vector/scalar shift, update gimple to vector.
33788 2011-01-03 Martin Jambor <mjambor@suse.cz>
33790 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
33793 2011-01-03 Martin Jambor <mjambor@suse.cz>
33795 PR tree-optimization/46984
33796 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
33798 (cgraph_create_indirect_edge): Fixed line length.
33799 (cgraph_indirect_call_info): Declare.
33800 (cgraph_make_edge_direct) Update declaration.
33801 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
33802 (cgraph_create_indirect_edge): Use it.
33803 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
33805 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
33806 the new thunk_delta representation.
33807 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
33809 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
33810 (ipa_read_indirect_edge_info): Likewise.
33811 * lto-cgraph.c (output_edge_opt_summary): New function.
33812 (output_node_opt_summary): Call it on all outgoing edges.
33813 (input_edge_opt_summary): New function.
33814 (input_node_opt_summary): Call it on all outgoing edges.
33816 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
33819 * gcc.c (main): Don't check have_o when settting combine_inputs.
33821 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
33823 * regrename.c: Add general comment describing the pass.
33824 (struct du_head): Remove 'length' field.
33825 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
33826 (regrename_optimize): Do not sort chains. Rework comments, add others.
33827 Force renaming to the preferred class (if any) in the first pass and do
33828 not consider registers that belong to it in the second pass.
33829 (create_new_chain): Do not set 'length' field.
33830 (scan_rtx_reg): Likewise.
33832 2011-01-02 Jakub Jelinek <jakub@redhat.com>
33834 PR tree-optimization/47140
33835 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
33836 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
33837 to bit_value_binop.
33839 PR rtl-optimization/47028
33840 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
33841 parm_birth_insn instead of at the beginning of first bb.
33843 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
33845 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
33846 Remove the word "see" before "@pxref".
33847 * doc/rtl.texi: Remove the word "see" before "@pxref".
33849 2011-01-01 Jan Hubicka <jh@suse.cz>
33851 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
33854 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
33857 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
33860 Copyright (C) 2011 Free Software Foundation, Inc.
33862 Copying and distribution of this file, with or without modification,
33863 are permitted in any medium without royalty provided the copyright
33864 notice and this notice are preserved.