1 2010-11-05 Kai Tietz <kai.tietz@onevision.com>
3 * config/i386/i386.c (legitimate_pic_address_disp_p):
5 (ix86_legitimate_address_p): Likewise.
6 (legitimize_pic_address): Likewise.
7 (output_pic_addr_const): Likewise.
8 (ix86_delegitimize_address): Likewise.
9 (ix86_find_base_term): Likewise.
10 (memory_address_length): Likewise.
11 (x86_output_mi_thunk): Handle special case x64
12 for non local binding.
13 * config/i386/i386.md (UNSPEC_PCREL): New.
14 * config/i386/winnt.c (i386_pe_binds_local_p):
15 Allow weak symbol for x64 windows with non-local binding.
17 2010-11-05 Jakub Jelinek <jakub@redhat.com>
20 * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
21 instead of EXPAND_NORMAL for base expansion.
23 2010-11-05 Uros Bizjak <ubizjak@gmail.com>
25 * config.gcc: Support --with-fpmath=avx for x86.
26 * config/i386/avxmath.h: New.
27 * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
29 2010-11-05 Ian Lance Taylor <iant@google.com>
31 * tree.h (struct tree_type): Don't use descbits in GTY annotation.
32 * gengtype.c (walk_type): Don't recognize descbits option.
34 2010-11-05 Joseph Myers <joseph@codesourcery.com>
36 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
37 WORD_SWITCH_TAKES_ARG): Remove.
38 * doc/options.texi (Args): Document.
39 * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
40 * doc/tm.texi: Regenerate.
41 * opt-functions.awk (switch_flags): Handle Args.
42 * opts-common.c: Update comment on tm.h include.
43 (decode_cmdline_option): Handle options with multiple arguments.
44 Don't check WORD_SWITCH_TAKES_ARG for unknown options.
45 * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
46 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
47 CL_COMMON): Update values.
48 * system.h (WORD_SWITCH_TAKES_ARG): Poison.
49 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
50 * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
51 sectobjectsymbols, sectorder, segcreate, segprot): New.
53 2010-11-05 H.J. Lu <hongjiu.lu@intel.com>
54 Uros Bizjak <ubizjak@gmail.com>
56 * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
57 256bit AVX register is used.
58 (ix86_expand_vector_move_misalign): Likewise.
59 (ix86_expand_vector_move): Replace use_avx256_p with
60 VALID_AVX256_REG_MODE.
62 2010-11-05 Joern Rennecke <amylaar@spamcop.net>
65 * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
66 change. Set $@-warn.o to -Wno-error.
69 * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
70 comparing it to a signed value.
73 * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
74 * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
78 * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
79 (m32c_function_arg). Add comma between arguments two and three.
80 (m32c_promote_prototypes): Remove declaration.
81 (current_function_special_page_vector): Likewise.
82 (m32c_regno_reg_class): Change return type to enum reg_class.
83 (m32c_pushm_popm): Use add_reg_note.
84 (m32c_push_rounding): Change return type to unsigned int.
85 (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
87 (m32c_insert_attributes): Constify variable name.
88 (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
89 (m32c_prepare_shift): Remove variable lref.
90 (m32c_expand_movcc): Remove variable cmp.
91 (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
92 (m32c_compare_redundant): Remove variable op2.
93 * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
94 (m32c_pragma_memregs): Assign the number to target_memregs.
95 (m32c_pragma_address): Remove variable var_str.
96 * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
98 (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
99 * config/m32c/bitops.md (andsi3): Add default case to switch.
100 (iorsi3, xorsi3): Likewise.
101 * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
102 * config/m32c/jump.md (call, call_value): Likewise.
103 * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
104 (m32c_regno_reg_class): Likewise.
105 (current_function_special_page_vector): Declare.
107 2010-11-05 Jakub Jelinek <jakub@redhat.com>
109 * cfgexpand.c (expand_debug_expr): Handle MEM_REF
110 with non-zero offset.
112 PR tree-optimization/46099
113 * tree-parloops.c (take_address_of): Add GSI argument. Return NULL
114 if it is NULL and uid wasn't found in the hash table. Just fold the
115 result if it is NULL otherwise. Insert other potentially needed
116 stmts right before current stmt instead of on the entry edge.
117 (struct elv_data): Add gsi and reset fields.
118 (eliminate_local_variables_1): Adjust caller. If take_address_of
119 failed for debug stmt, set dta->reset and return.
120 (eliminate_local_variables_stmt): Change STMT argument for GSI,
121 pass GSI through to the callback, handle resetting of debug stmts.
122 (eliminate_local_variables): Adjust caller. Process debug stmts
126 * gimplify.c (gimplify_asm_expr): If a "m" input is a
127 {pre,post}{in,de}crement, fail.
130 * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
131 * tree-pretty-print.c (dump_generic_node): Likewise.
132 (op_code_prio): Likewise.
133 * cfgexpand.c (expand_debug_expr): Likewise.
135 2010-11-04 Paul Koning <ni1d@arrl.net>
137 * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
140 2010-11-04 Chao-ying Fu <fu@mips.com>
142 * configure.ac: Test assembler support for DSP Rev1 mult.
143 * configure: Regenerate.
144 * config.in: Regenerate.
145 * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
146 * config/mips/mips.c (CODE_FOR_mips_mult): New define.
147 (CODE_FOR_mips_multu): New define.
148 (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
150 (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
151 Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
152 * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
153 New define_expand patterns.
154 * config/mips/constraints.md (ka): Update the constraint to test
155 ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
156 * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
158 * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
159 Change target constraint to "ka".
160 Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
161 (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
162 Emit the accumulator destination when ISA_HAS_DSP_MULT.
163 (<u>msubsidi4): Add comments. Test ISA_HAS_DSP.
164 Emit the accumulator destination when ISA_HAS_DSP_MULT.
165 (<u>maddsidi4): Likewise.
166 * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
167 msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
169 2010-11-04 Paul Koning <ni1d@arrl.net>
171 * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
173 2010-11-04 Paul Koning <ni1d@arrl.net>
175 * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
177 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
179 Fixed using the Objective-C 2.0 dot-syntax with class names.
180 * c-parser.c (c_parser_next_token_starts_declspecs): In
181 Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
182 (c_parser_next_token_starts_declaration): Same.
183 (c_parser_postfix_expression): Parse the Objective-C 2.0
184 dot-syntax with a class name.
186 2010-11-04 Pat Haugen <pthaugen@us.ibm.com>
188 * final.c (compute_alignments): Compute/free loop info all the time.
189 * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
190 * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
191 * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
192 * config/rs6000/rs6000.c (cfgloop.h): Include.
193 (can_override_loop_align): New.
194 (rs6000_option_override_internal): Set it.
195 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
196 (rs6000_loop_align): New function.
197 (rs6000_loop_align_max_skip): Likewise.
199 2010-11-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
202 * collect2.c (main): Print --help output to stdout. Do not
203 exit right away, so ld --help is appended. Add empty lines
204 to separate output suitably.
206 2010-11-04 Jakub Jelinek <jakub@redhat.com>
208 PR tree-optimization/46233
209 * ipa-pure-const.c (local_pure_const): Do noreturn discovery
210 after calling analyze_function, not before.
213 * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
214 instead of build_va_arg_indirect_ref.
215 * config/spu/spu.c (spu_va_start): Likewise.
216 * config/s390/s390.c (s390_va_start): Likewise.
218 2010-11-03 Uros Bizjak <ubizjak@gmail.com>
221 * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
222 if the innermode is not vector mode, determine the mode of a subreg
223 by using mode_for_size of inner_size.
225 2010-11-04 Richard Guenther <rguenther@suse.de>
227 PR rtl-optimization/46183
228 * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
229 (execute_rtl_pre): Likewise.
230 (execute_rtl_hoist): Likewise.
232 2010-11-04 Richard Guenther <rguenther@suse.de>
234 PR tree-optimization/46068
235 * ipa-split.c (consider_split): Remove gcc_unreachable.
237 2010-11-04 Richard Guenther <rguenther@suse.de>
239 * tree-nested.c (build_addr): Use build_fold_addr_expr.
241 2010-11-04 Richard Guenther <rguenther@suse.de>
243 PR tree-optimization/45991
244 * gimplify.c (force_gimple_operand_1): Use the provded test
245 function in the initial test.
247 2010-11-04 Jeff Law <law@redhat.com>
249 * ira.c (validate_equiv_mem): Remove code to avoid invalidation
250 of readonly memory equivalances for const/pure calls.
252 2010-11-04 Richard Guenther <rguenther@suse.de>
254 PR tree-optimization/45733
255 * tree-vect-stmts.c (reverse_vec_elements): Honor the
256 permute builtins function return type.
258 2010-11-04 Joern Rennecke <amylaar@spamcop.net>
261 * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
262 as an index, check it is not INVALID_REGNUM.
265 * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
267 * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
270 * function.c (thread_prologue_and_epilogue_insns): Add
271 ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
274 * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
277 * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
278 (pdp11_preferred_reload_class): Rename class to rclass.
279 (pdp11_preferred_output_reload_class): Likewise.
280 * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
282 (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
285 * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
286 iteration variables to enum machine_mode.
289 * config/h8300/h8300.c: Include df.h.
290 (push, pop): Use add_reg_note.
291 (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
292 (compute_a_shift_cc): Likewise.
293 (expand_a_shift): Argument code has type enum rtx_code.
294 (struct shift_insn): Member cc_valid has type enum attr_cc.
295 (struct shift_info) <cc_inline, cc_special>: Likewise.
297 * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
298 (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
300 2010-11-04 Ira Rosen <irar@il.ibm.com>
302 PR tree-optimization/46213
303 * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
304 MINUS_EXPR only if the first operand is reduction operand.
306 2010-11-04 Richard Guenther <rguenther@suse.de>
307 Richard Henderson <rth@redhat.com>
309 * tree.def (FMA_EXPR): New tree code.
310 * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
311 * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
312 * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
313 * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
314 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
315 * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
316 (execute_optimize_widening_mul): Call it. Reorganize to allow
317 dead stmt removal. Move TODO flags ...
318 (pass_optimize_widening_mul): ... here.
319 * flag-types.h (enum fp_contract_mode): New enum.
320 * common.opt (flag_fp_contract_mode): New variable.
321 (-ffp-contract): New option.
322 * opts.c (common_handle_option): Handle it.
323 * doc/invoke.texi (-ffp-contract): Document.
324 * tree.h (fold_fma): Declare.
325 * builtins.c (fold_fma): New function.
326 (fold_builtin_fma): Likewise.
327 (fold_builtin_3): Call it for fma.
328 * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
329 * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
330 * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
332 * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
334 * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
335 * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
336 (fms_optab, fnma_optab, fnms_optab): New defines.
337 * gimplify.c (gimplify_expr): Handle binary truth expressions
338 explicitly. Handle FMA_EXPR.
339 * tree-vect-stmts.c (vectorizable_operation): Handle ternary
342 2010-11-04 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
343 Richard Guenther <rguenther@suse.de>
345 * passes.c (init_optimization_passes): Move veclower after SSA.
346 * tree-vect-generic.c (uniform_vector_p): New function.
347 (expand_vector_operations_1): Handle conversion.
348 (pass_lower_vector): Update SSA form.
350 2010-11-04 Iain Sandoe <iains@gcc.gnu.org>
352 * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
354 * configure: Regenerate.
356 2010-11-03 Xinliang David Li <davidxl@google.com>
359 * tree-ssa-loop-ivopts.c (get_computation_cost_at):
360 Adjust cbase if the use stmt is after iv update.
362 2010-11-03 Kaz Kojima <kkojima@gcc.gnu.org>
364 * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
366 2010-11-03 Kaz Kojima <kkojima@gcc.gnu.org>
368 * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
369 comment. Pass true to the last argument of output_stack_adjust.
371 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
374 * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
375 if 256bit AVX register is used.
377 2010-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
379 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
380 xsmindp/xsmaxdp on VSX for single precision min/max.
381 * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
382 (vsx_sminsf3): Ditto.
384 2010-11-03 Eric Botcazou <ebotcazou@adacore.com>
386 * combine.c (try_combine): Fix formatting issues, improve comments and
389 2010-11-03 Eric Botcazou <ebotcazou@adacore.com>
391 * tree-tailcall.c (find_tail_calls): Convert the operands to the type
392 of the result before building binary expressions.
394 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
396 PR rtl-optimization/45865
397 * Makefile.in (df-problems.o): Revert revision 164552.
398 * basic-block.h (enum bb_flags): Likewise.
399 * cfgcleanup.c (block_was_dirty): Likewise.
400 (try_forward_edges): Likewise.
401 (try_crossjump_bb): Likewise.
402 (try_head_merge_bb): Likewise.
403 (try_optimize_cfg): Likewise.
404 (cleanup_cfg): Likewise.
405 * df-core.c (df_set_bb_dirty): Likewise.
406 * df-problems.c: Likewise.
407 (df_simulate_find_uses): Likewise.
408 (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
409 (find_memory, find_memory_store): Likewise.
410 (can_move_insns_across): Likewise.
411 * df.h (can_move_insns_across): Likewise.
412 * ifcvt.c (find_memory): Likewise.
413 (dead_or_predicable): Likewise.
415 2010-11-03 Richard Guenther <rguenther@suse.de>
418 * predict.c (strip_predict_hints): Simply DCE builtin expect if
419 the result is unused.
421 2010-11-03 Jakub Jelinek <jakub@redhat.com>
423 PR tree-optimization/46009
424 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
425 cond_if_else_store_replacement if bb1 and bb2 have the same
427 (cond_store_replacement): Use gimple_assign_single_p, don't
428 check if rhs is SSA_NAME or invariant. Call release_defs for
430 (cond_if_else_store_replacement): New function.
432 2010-11-03 Richard Guenther <rguenther@suse.de>
434 * opts.c (finish_options): Properly check for all WHOPR
435 flags before complaining about -flto-partition.
437 2010-11-04 Alan Modra <amodra@gmail.com>
439 * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
440 (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
442 * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
443 * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
444 on input, "r" on output.
446 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
448 Implemented -fobjc-std=objc1 flag.
449 * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
451 * doc/standards.texi (Standards): Updated the section on
452 Objective-C; mention support for Objective-C 2.0 features and the
453 new -fstd-objc=objc1 flag to disable them.
455 2010-11-03 Richard Guenther <rguenther@suse.de>
458 * dwarf2out.c (scope_die_for): Properly detect global scope.
460 2010-11-03 Richard Guenther <rguenther@suse.de>
462 PR tree-optimization/46190
463 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
464 Properly compute peel iterations.
466 2010-11-03 Richard Guenther <rguenther@suse.de>
468 PR tree-optimization/46286
469 * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
470 re-allocated vector data.
472 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
475 * config/i386/i386.c (ix86_expand_call): Conditionally decorate
476 calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
479 2010-11-03 Richard Guenther <rguenther@suse.de>
481 PR tree-optimization/46217
482 * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
484 (execute_update_addresses_taken): Likewise.
486 2010-11-03 Joern Rennecke <joern.rennecke@embecosm.com>
489 * targhooks.c (targhook_words_big_endian): New function.
490 (targhook_float_words_big_endian): Likewise.
491 * targhooks.h (targhook_words_big_endian): Declare.
492 (targhook_float_words_big_endian): Likewise.
493 * target.def (words_big_endian, float_words_big_endian): New hooks.
495 2010-11-03 Jakub Jelinek <jakub@redhat.com>
497 PR tree-optimization/46165
498 * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
499 a normal call into noreturn call.
501 2010-11-03 Richard Guenther <rguenther@suse.de>
504 * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
507 2010-11-03 Jakub Jelinek <jakub@redhat.com>
509 PR tree-optimization/46107
510 * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
511 if cfg_hook_duplicate_loop_to_header_edge failed.
513 2010-11-03 Ian Lance Taylor <iant@google.com>
516 * config.gcc: Don't set lto_binary_reader.
517 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
518 (Configuration): Mention --disable-lto. Remove --with-libelf
521 2010-11-03 Jakub Jelinek <jakub@redhat.com>
524 * reload1.c (delete_dead_insn): Use prev_active_insn instead of
526 * gcse.c (insert_insn_end_basic_block): Likewise.
528 PR rtl-optimization/46034
529 PR rtl-optimization/46212
530 PR rtl-optimization/46248
531 * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
532 and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
533 before i0dest -> i0src substitution and pass 1 instead of 0 as last
534 argument to subst on i2pat.
536 2010-11-02 Ian Lance Taylor <iant@google.com>
538 * configure.ac: Use AC_SYS_LARGEFILE.
539 * configure: Rebuild.
540 * config.in: Rebuild.
542 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
544 * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
546 * c-typeck.c (build_function_call_vec): Likewise.
547 * cfgexpand.c (expand_debug_expr): Likewise.
548 * cgraphunit.c (assemble_thunk): Likewise.
549 * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
550 * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
551 (fold_binary_loc, fold_ternary_loc): Likewise.
552 * gimple-fold.c (get_symbol_constant_value): Likewise.
553 * gimple-low.c (lower_builtin_setjmp): Likewise.
554 * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
555 * gimplify.c (gimplify_init_constructor): Likewise.
556 * lambda.h (build_linear_expr): Likewise.
557 * omp-low.c (omp_reduction_init): Likewise.
558 * tree-inline.c (remap_ssa_name): Likewise.
559 * tree-object-size.c (compute_object_sizes): Likewise.
560 * tree-sra.c (init_subtree_with_zero): Likewise.
561 (sra_ipa_modify_assign): Likewise.
562 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
563 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
564 (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
565 (undistribute_ops_list): Likewise.
566 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
567 * tree-vect-stmts.c (vectorizable_call): Likewise.
568 * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
569 (build_zero_cst): Handle more cases directly. Update comment.
571 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
573 * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
574 * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
576 * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
577 and call ix86_split_call_vzeroupper instead of
578 ix86_split_call_pop_vzeroupper.
579 (*call_pop_1_vzeroupper): Likewise.
580 (*sibcall_pop_1_vzeroupper): Likewise.
581 (*call_value_pop_0_vzeroupper): Likewise.
582 (*call_value_pop_1_vzeroupper): Likewise.
583 (*sibcall_value_pop_1_vzeroupper): Likewise.
585 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
587 * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
589 2010-11-02 Eric Botcazou <ebotcazou@adacore.com>
591 * basic-block.h (insert_insn_end_bb_new): Delete.
592 * cfgrtl.c (insert_insn_end_bb_new): Likewise.
594 2010-11-02 Uros Bizjak <ubizjak@gmail.com>
595 H.J. Lu <hongjiu.lu@intel.com>
597 * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
598 (ix86_split_call_pop_vzeroupper): Likewise.
600 * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
601 (ix86_expand_call): Conditionally decorate calls with
602 UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
603 (ix86_split_call_vzeroupper): New.
604 (ix86_split_call_pop_vzeroupper): Likewise.
606 * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
607 (*call_pop_0_vzeroupper): New insn_and_split pattern.
608 (*call_pop_1_vzeroupper): Likewise.
609 (*sibcall_pop_1_vzeroupper): Likewise.
610 (*call_0_vzeroupper): Likewise.
611 (*call_1_vzeroupper): Likewise.
612 (*sibcall_1_vzeroupper): Likewise.
613 (*call_1_rex64_vzeroupper): Likewise.
614 (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
615 (*call_1_rex64_large_vzeroupper): Likewise.
616 (*sibcall_1_rex64_vzeroupper): Likewise.
617 (*call_value_pop_0_vzeroupper): Likewise.
618 (*call_value_pop_1_vzeroupper): Likewise.
619 (*sibcall_value_pop_1_vzeroupper): Likewise.
620 (*call_value_0_vzeroupper): Likewise.
621 (*call_value_0_rex64_vzeroupper): Likewise.
622 (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
623 (*call_value_1_vzeroupper): Likewise.
624 (*sibcall_value_1_vzeroupper): Likewise.
625 (*call_value_1_rex64_vzeroupper): Likewise.
626 (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
627 (*call_value_1_rex64_large_vzeroupper): Likewise.
628 (*sibcall_value_1_rex64_vzeroupper): Likewise.
630 2010-11-02 Ian Lance Taylor <iant@google.com>
633 * config.gcc: Revert last patch: set lto_binary_reader.
635 2010-11-02 Richard Guenther <rguenther@suse.de>
637 PR tree-optimization/46149
638 * tree-ssa-structalias.c (get_constraint_for_1): Properly handle
639 non-indirect MEM_REF variants.
641 2010-11-02 Richard Guenther <rguenther@suse.de>
643 PR tree-optimization/46216
644 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
645 Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
647 2010-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
649 * configure.ac (*-*-irix6*): Disable set_have_as_tls.
650 (*-*-osf*): Likewise.
651 * configure: Regenerate.
653 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
655 * config/i386/driver-i386.c (host_detect_local_cpu): Updated
656 for Intel Core 2 and Core i7.
658 2010-11-02 Maxim Kuvyrkov <maxim@codesourcery.com>
660 Model decoder of Core 2/i7 for multipass scheduling.
662 * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
663 New type to hold target-specific data for multipass scheduling.
664 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
665 * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
667 (core2i7_secondary_decoder_max_insn_size,)
668 (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
669 New static variables.
670 ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
671 ([_]ix86_first_cycle_multipass_data): New static variable.
672 (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
673 Implement targetm.sched hooks.
674 (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
676 (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
677 Implement new targetm.sched hooks.
678 (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
679 targetm.sched hook to install multipass scheduling hooks on demand.
681 * doc/tm.texi.in: Document new targetm.sched hooks.
682 * doc/tm.texi: Regenerate.
684 * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
685 (first_cycle_multipass_data_t): New typedef.
686 (struct choice_entry: target_data): New field.
687 (max_issue): Add first_cycle_insn_p parameter. Call new target hooks
688 to allow target model restrictions not represented in DFA.
689 (choose_ready, schedule_block): Update.
690 (sched_extend_ready_list, sched_finish_ready_list): Call new target
691 hooks to initialize target-specific data for multipass scheduling.
692 * sched-int.h (max_issue): Update declaration.
693 * sel-sched.c (choose_best_insn): Update.
694 * target.def (first_cycle_multipass_{begin, issue, backtrack},)
695 (first_cycle_multipass_{init, fini}): Define and document new
698 2010-11-02 Richard Guenther <rguenther@suse.de>
700 PR tree-optimization/46184
701 * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
702 input vector type from the reduction operand as well.
704 2010-11-02 Richard Guenther <rguenther@suse.de>
706 PR tree-optimization/46177
707 * tree-loop-distribution.c (prop_phis): Use
708 mark_virtual_phi_result_for_renaming.
710 2010-11-02 Martin Jambor <mjambor@suse.cz>
713 * tree.c (get_binfo_at_offset): Bail out on artificial
714 fields. Identify primary bases according to their offsets.
716 2010-11-02 Martin Jambor <mjambor@suse.cz>
718 PR tree-optimization/45875
719 * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
720 (gimple_get_relevant_ref_binfo): Detect primary bases according to
723 2010-11-02 Ian Lance Taylor <iant@google.com>
725 * doc/install.texi (Configuration): Note in two places that Java
726 is not enabled by default.
728 2010-11-02 Ian Lance Taylor <iant@google.com>
730 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
731 (Configuration): Mention --disable-lto. Remove --with-libelf
734 2010-11-02 Ian Lance Taylor <iant@google.com>
736 * configure.ac: Remove elf_getshdrstrndx test. Don't substitute
737 LTO_BINARY_READER or LTO_USE_LIBELF. Remove LIBELFLIBS and
738 LIBELFINC. Remove HAVE_libelf.
739 * config.gcc: Don't set lto_binary_reader.
740 * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
741 (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
742 (LIBS): Remove $(LIBELFLIBS).
743 (INCLUDES): Remove $(LIBELFINC).
744 * configure: Rebuild.
745 * config.in: Rebuild.
747 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
749 * config/microblaze/microblaze-protos.h (function_arg): Delete.
750 (function_arg_advance): Delete.
751 * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
752 (FUNCTION_ARG): Delete.
753 * config/microblaze/microblaze.c (function_arg_advance): Rename to...
754 (microblaze_function_arg_advance): ...this. Make static. Take a
755 const_tree and a bool.
756 (function-arg): Rename to...
757 (microblaze_function_arg): ...this. Make static. Take a const_tree
759 (microblaze_expand_prologue): Call targetm.calls.function_arg and
760 targetm.calls.function_arg_advance.
761 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
763 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
765 Merge from FSF "apple/trunk" branch.
767 * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
768 * config/darwin.opt: .. to here.
769 (matt-stubs): New option.
770 * config/i386/darwin.opt: Delete.
771 * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
772 (MACHO_DYNAMIC_NO_PIC_P): New.
773 (MACHOPIC_INDIRECT): New.
774 (MACHOPIC_PURE): New.
775 * config/i386/darwin.h (DARWIN_X86) Define to 1.
776 (MACHOPIC_ATT_STUB): New.
777 (CC1_SPEC): Do not remove mdynamic-no-pic.
778 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
779 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
780 (FUNCTION_PROFILER): Correct over-length line.
781 (SUBTARGET_OVERRIDE_OPTIONS): New.
782 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
783 * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
784 (legitimate_constant_p): Handle mdynamic-no-pic.
785 (ix86_legitimate_address_p): Likewise.
786 (ix86_legitimize_address): Likewise.
787 (ix86_expand_move): Likewise.
788 (machopic_output_stub): Update for ATT-style stubs and
790 * config/darwin-protos.h (machopic_symbol_defined_p): New.
791 * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
792 TARGET_DYNAMIC_NO_PIC: Remove.
793 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
794 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
795 * config/rs6000/rs6000.c (darwin_rs6000_override_options):
796 Remove handling of mdynamic-no-pic.
797 * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
799 (machopic_symbol_defined_p): Do not try to use current_function_decl
800 when generating _get_pc thunks within stubs.
801 (machopic_indirect_data_reference): Rework for direct conditionals
802 rather than #ifdefs, add x86 mdynamic-no-pic
803 (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
805 (darwin_override_options): Handle mdynamic-no-pic here.
806 * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
807 (machopic_lazy_symbol_ptr3_section): New.
808 (machopic_picsymbol_stub2_section): New.
809 (machopic_picsymbol_stub3_section): New.
810 * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
811 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
812 (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
813 Moved common definition from x86 and rs6000.
814 (MACHO_DYNAMIC_NO_PIC_P): Override value.
815 (MACHOPIC_INDIRECT): Likewise.
816 (MACHOPIC_PURE): Likewise.
817 * config.gcc (x86-darwin-*): Remove darwin.opt.
819 2010-11-02 Jakub Jelinek <jakub@redhat.com>
822 * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
823 instead of gsi_last_bb.
825 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
826 Maxim Kuvyrkov <maxim@codesourcery.com>
828 * config/i386/i386.c (cpu_names): Add "corei7".
829 * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
831 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
832 Maxim Kuvyrkov <maxim@codesourcery.com>
834 Tune alignment for Intel Core i7
836 * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
837 (enum processor_type): Update comment. Add entries for Core i7.
838 * config/i386-c.c (ix86_target_macros_internal): Update.
839 * config/i386.c (m_COREI7{_32,_64}): New macros.
840 (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
841 (processor_target_table): Tune alignment for Core i7.
842 (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
844 * doc/invoke.texi: Document "corei7" option value.
846 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
847 Maxim Kuvyrkov <maxim@codesourcery.com>
848 H.J. Lu <hjl.tools@gmail.com>
850 Basic support for Intel Core i7
852 * i386.c (ix86_option_override_internal): Add entry for corei7, use
853 generic tuning. Use generic32 when compiling for 32-bit ABI.
855 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
857 * config/darwin.c (darwin_asm_named_section): Check for __DWARF
858 sections and call darwin_asm_dwarf_section() to handle them.
859 (darwin_asm_dwarf_section): New.
860 (darwin_file_start): Remove code emitting dwarf section symbols.
862 2010-11-02 Chung-Lin Tang <cltang@codesourcery.com>
864 * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
865 explicitly disable stack protection when building libgcc.
866 (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
868 2010-11-01 Jason Merrill <jason@redhat.com>
870 * fold-const.c (fold_indirect_ref_1): Handle folding
871 POINTER_PLUS_EXPR to ARRAY_REF.
873 2010-11-01 Kaz Kojima <kkojima@gcc.gnu.org>
875 * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
876 (sh_delegitimize_address): New function.
878 2010-11-01 Joseph Myers <joseph@codesourcery.com>
880 * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
881 * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
882 (CC1_SPEC): Don't handle -target.
883 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
885 * config/darwin.opt (Zallowable_client, Zbundle_loader,
886 Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
887 Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
888 Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
889 Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
890 Zweak_reference_mismatches, client_name, compatibility_version,
891 current_version, dylinker_install_name, pagezero_size,
892 read_only_relocs, seg1addr, segs_read_only_addr,
893 segs_read_write_addr, sub_library, sub_umbrella): New.
894 * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
895 * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
896 * config/freebsd.opt: New.
897 * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
898 * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
899 * config/rpath.opt: New.
900 * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
901 (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
904 2010-11-01 Joseph Myers <joseph@codesourcery.com>
906 * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
907 * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
908 (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
909 * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
910 (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
911 Document that options in .opt files do not need to be included.
912 * doc/tm.texi: Regenerate.
913 * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
914 * opts-common.c: Update comment on tm.h include.
915 (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
916 * system.h (SWITCH_TAKES_ARG): Poison.
917 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
918 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
920 (LINK_COMMAND_SPEC_A): Don't include %{x}.
921 * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
922 * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
923 * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
924 * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
925 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
926 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
927 * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
928 * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
929 * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
930 * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
931 * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
932 * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
933 * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
934 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
935 * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
936 * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
937 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
938 * config/score/score.h (SWITCH_TAKES_ARG): Remove.
939 * config/sol2.h (SWITCH_TAKES_ARG): Remove.
940 * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
941 * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
942 * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
943 * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
945 2010-11-01 Paul Koning <ni1d@arrl.net>
947 * config/pdp11/pdp11.md: Use iterators.
948 (addqi3, subqi3, iorsi3, xorsi3): Delete.
950 2010-11-01 Steve Ellcey <sje@cup.hp.com>
952 * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
954 * libgcov.c (__gcov_indirect_call_profiler): Set
955 VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
956 defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
958 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
960 PR tree-optimization/46259
963 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
965 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
966 build_vector_from_val.
968 2010-11-01 DJ Delorie <dj@redhat.com>
970 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
971 as well as an assertion.
973 2010-11-01 Paul Koning <ni1d@arrl.net>
975 * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
976 complex modes in memory.
978 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
980 * tree.c (build_vector_from_val): Use useless_type_conversion_p.
982 2010-11-01 Jakub Jelinek <jakub@redhat.com>
985 * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
986 (cfa_base_offset): New variable.
987 (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
988 (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
990 (vt_init_cfa_base): Initialize cfa_base_offset.
992 2010-11-01 Alan Modra <amodra@gmail.com>
995 * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
997 (stack_info): New file scope var.
998 (rs6000_init_machine_status): Init stack_info.
999 (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
1000 SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
1001 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
1002 (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
1003 SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
1004 REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this. Update all refs.
1005 (rs6000_savres_strategy): Rewrite.
1006 (rs6000_stack_info): Use "stack_info" in place of local "info".
1007 Return cached stack info when reload_completed unless ENABLE_CHECKING
1008 in which case confirm newly calculated stack info matches old info.
1009 Delay calculation of lr_save_p, set it for out of line gp save/restore
1010 as well as fp. Call rs6000_savres_strategy from here..
1011 (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
1012 (rs6000_output_function_prologue): Use info->savres_strategy to
1013 determine whether fp save/restore externs need to be emitted.
1015 2010-10-31 Jason Merrill <jason@redhat.com>
1017 * tree.h (EXPR_LOC_OR_HERE): New macro.
1018 * builtins.c (c_strlen): Use it.
1019 * c-decl.c (build_enumerator): Likewise.
1020 * gimplify.c (internal_get_tmp_var): Likewise.
1021 (shortcut_cond_expr): Likewise.
1022 (gimplify_one_sizepos): Likewise.
1024 2010-10-31 Richard Henderson <rth@redhat.com>
1026 * config/i386/cygming.h (TARGET_SEH): New.
1027 (MAX_STACK_ALIGNMENT): New. Disable alignment for SEH.
1028 (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
1029 TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
1030 (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
1031 (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
1032 (ASM_DECLARE_FUNCTION_SIZE): New.
1033 * config/i386/i386-protos.h: Update.
1034 * config/i386/i386.c (ix86_option_override_internal): Enable
1035 flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
1036 restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
1037 (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
1038 (ix86_compute_frame_layout): For SEH, disable
1039 use_fast_prologue_epilogue, move frame pointer to the end of
1040 the frame. Initialize hfp_save_offset.
1041 (ix86_expand_prologue): Honor hfp_save_offset. Emit blockage
1042 at end of prologue for SEH.
1043 (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
1044 emit blockage at beginning of epilogue.
1045 (ix86_expand_binary_operator): After reload, emit LEA if needed.
1046 (ix86_output_call_insn): New.
1047 * config/i386/i386.h (TARGET_SEH): New.
1048 (struct machine_function): Add member seh.
1049 * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
1050 * config/i386/winnt.c (struct seh_frame_state): New.
1051 (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
1052 seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
1053 seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
1054 i386_pe_start_function, i386_pe_end_function): New.
1056 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
1057 as CFA_STORE in rules 12 and 13.
1059 2010-10-31 Uros Bizjak <ubizjak@gmail.com>
1061 PR tree-optimization/46142
1062 * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
1063 accommodate third function argument.
1065 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
1067 * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
1069 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
1071 * fold-const.c (build_zero_vector): Use build_vector_from_val.
1072 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
1073 (get_initial_def_for_reduction): Likewise.
1074 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1075 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
1076 * tree.c (build_one_cst): Likewise.
1077 (build_vector_from_val): Use types_compatible_p for assert.
1079 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
1081 * emit-rtl.c (mark_used_flags): New function.
1082 (set_used_flags, reset_used_flags): Call it.
1084 2010-10-30 Uros Bizjak <ubizjak@gmail.com>
1087 * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
1088 determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
1090 2010-10-30 H.J. Lu <hongjiu.lu@intel.com>
1093 * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
1094 (ix86_compat_aligned_value_p): This.
1095 (ix86_old_function_arg_boundary): Renamed to ...
1096 (ix86_compat_function_arg_boundary): This. Updated.
1097 (ix86_contains_aligned_value_p): New.
1098 (ix86_function_arg_boundary): Align long double parameters on
1099 stack to 4byte in 32bit.
1101 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1103 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1104 * c-parser.c (c_parser_objc_at_property_declaration): Removed
1105 parsing of RID_COPIES and RID_IVAR. Updated call to
1106 objc_add_property_declaration.
1107 * c-typecheck.c (build_component_ref): Call
1108 objc_maybe_build_component_ref instead of objc_build_setter_call.
1109 Use objc_is_property_ref to improve Objective-C checks.
1110 (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
1111 of objc_build_getter_call.
1113 2010-10-29 Paul Koning <ni1d@arrl.net>
1115 * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
1116 REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
1117 REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
1118 (REG_OK_STRICT): Move description.
1120 2010-10-29 Paul Koning <ni1d@arrl.net>
1122 * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
1124 2010-10-29 Paul Koning <ni1d@arrl.net>
1126 * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
1128 2010-10-29 Paul Koning <ni1d@arrl.net>
1131 * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
1133 2010-10-29 Richard Henderson <rth@redhat.com>
1136 * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
1139 2010-10-29 Paul Koning <ni1d@arrl.net>
1141 * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
1142 register to register move.
1144 2010-10-29 Paul Koning <ni1d@arrl.net>
1146 * config/pdp11/pdp11.c (print_operand_address): Correct handling
1147 of integer constant addresses, delete vax-only logic.
1149 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
1151 * config/picochip/picochip.c (picochip_is_short_branch): Simplify
1152 a conditional expression.
1154 2010-10-29 Paul Koning <ni1d@arrl.net>
1156 * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
1157 instruction encoding.
1159 2010-10-29 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1160 Andrew Pinski <pinskia@gmail.com>
1162 * tree.h (build_vector_from_val): Declare.
1163 * tree.c (build_vector_from_val): New function.
1164 * c-typeck.c (build_binary_op): Handle vector shifting.
1165 * doc/extend.texi: Description of the vector shifting operation.
1167 2010-10-29 Paul Koning <pkoning@equallogic.com>
1169 * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
1170 pdp11_secondary_memory_needed): Declare.
1171 * config/pdp11/predicates.md (float_operand): New predicate.
1172 * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
1173 (cbranchdf4, movdf): Change predicate.
1174 (movsf): Handle FPU register case.
1175 (truncdfsf2, extendsfdf2): Add FPU register case.
1176 * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
1177 TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
1178 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1179 (pdp11_register_move_cost): Update cost matrix.
1180 (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
1181 pdp11_preferred_output_reload_class, pdp11_secondary_reload,
1182 pdp11_secondary_memory_needed): New function.
1183 (pdp11_return_in_memory): Add other float types.
1184 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
1185 (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
1186 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
1187 REGISTER_MOVE_COST): Delete.
1188 (BASE_RETURN_VALUE_REG): Add other float types.
1190 2010-10-29 Nick Clifton<nickc@redhat.com>
1192 * doc/invoke.texi: Document -mam34 and -mtune options.
1193 * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
1194 (mn10300_tune_cpu): New variable.
1195 (mn10300_handle_option): Handle -mam34 and -mtune options.
1196 (mn10300_option_override): Convert tune string into tune cpu variable.
1197 (mn10300_legitimate_constant_p): Delete unused local variable.
1198 (is_load_insn): New function.
1199 (is_store_insn): New function.
1200 (mn10300_adjust_schedule_cost): New function.
1201 (TARGET_SCHED_ADJUST_COST): Define.
1202 * config/mn10300/mn10300.opt (mam34): New option.
1203 (mtune): New option.
1204 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
1205 (enum processor_type): Add AM34.
1206 (TARGET_AM34): Define.
1207 * config/mn10300/mn10300.md (attr cpu): Add am34.
1208 Add pipeline description.
1209 (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
1210 Remove unneeded alternatives. Add timing attribute.
1211 (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
1212 mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
1213 mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
1214 mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
1215 mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
1216 bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
1217 bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
1218 float_conditional_branch, jump, indirect_jump, tablejump,
1219 call_internal, call_value_internal, zero_extendqisi2_am33,
1220 zero_extendqisi2_mn10300, zero_extendhisi2_am33,
1221 zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
1222 extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
1223 mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
1224 mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
1225 addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
1226 fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
1227 return_internal_regs, store_movm, return, call_next_insn):
1228 Add timing attribute.
1229 (am33_subsi3): Add missing clobber of CC_REG.
1230 (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
1231 (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
1232 subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
1233 extendqisi2): Fix predicates.
1234 (call_internal, call_internal_value): Separate alternatives.
1235 * config/mn10300/t-mn10300: Add AM34 multilib.
1237 2010-10-29 Paolo Bonzini <bonzini@gnu.org>
1239 * config/sh/sh.c (sh_promote_function_mode): Use
1240 default_promote_function_mode if !sh_promote_prototypes.
1242 2010-10-28 Paolo Bonzini <bonzini@gnu.org>
1244 * recog.c (split_all_insns): Remove dead code.
1246 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1248 * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1250 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1252 * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
1253 (FUNCTION_ARG_ADVANCE): Delete.
1254 * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
1256 (cris_function_incoming_arg, cris_function_arg_advance): New functions.
1257 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1258 (TARGET_FUNCTION_ARG_ADVANCE): Define.
1260 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1262 * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
1263 * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1264 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
1265 Take a const_tree and a bool.
1266 (mcore_function_arg_advance): New function.
1267 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1269 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1271 * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
1272 * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1273 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
1274 Take a const_tree and a bool.
1275 (mcore_function_arg_advance): New function.
1276 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1278 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1280 * config/h8300/h8300-protos.h (function_arg): Delete.
1281 * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1282 * config/h8300/h8300.c (function_arg): Rename to...
1283 (h8300_function_arg): ...this. Make static. Take a const_tree and
1285 (h8300_function_arg_advance): New function.
1286 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1288 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1290 * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
1292 * config/arc/arc.c (arc_function_arg): ...here and...
1293 (arc_function_arg_advance): ...here. New functions.
1294 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1296 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1298 * config/crx/crx-protos.h (crx_function_arg): Delete.
1299 (crx_function_arg_advance): Delete.
1300 * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1301 * config/crx/crx.c (crx_function_arg): Make static. Take a
1302 const_tree and a bool.
1303 (crx_function_arg_advance): Make static. Take a const_tree and a bool.
1304 (enough_regs_for_param): Take a const_tree.
1305 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1307 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1309 * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
1310 (m68hc11_function_arg_advance): Delete.
1311 * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
1312 (FUNCTION_ARG_ADVANCE): Delete.
1313 * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
1314 Take a const_tree and a bool.
1315 (m68hc11_function_arg_advance): Likewise.
1316 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1318 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1320 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
1321 (xstormy16_function_arg_advance): Delete.
1322 * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
1323 (FUNCTION_ARG_ADVANCE): Delete.
1324 * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
1325 Take a const_tree and a bool.
1326 (xstormy16_function_arg_advance): Likewise. Return void, updating
1327 the CUM parameter instead.
1328 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1330 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1332 * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
1333 * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1334 (MOXIE_FUNCTION_ARG_SIZE): Move to...
1335 * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
1336 (moxie_function_arg): Make static. Take a const_tree and a bool.
1337 (moxie_function_arg_advance): New function.
1338 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1340 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1342 * config/mn10300/mn10300-protos.h (function_arg): Delete.
1343 * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
1344 (FUNCTION_ARG_ADVANCE): Delete.
1345 * config/mn10300/mn10300.c (function_arg): Rename to...
1346 (mn10300_function_arg): ...this. Make static. Take a const_tree
1348 (mn10300_function_arg_advance): New function.
1349 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1351 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1353 * config/iq2000/iq2000-protos.h (function_arg): Delete.
1354 (function_arg_advance): Delete.
1355 * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1356 * config/iq2000/iq2000.c (function_arg): Rename to...
1357 (iq2000_function_arg): ...this. Make static. Take a const_tree and
1359 (function_arg_advance): Rename to...
1360 (iq2000_function_arg_advance): ...this. Make static. Take a
1361 const_tree and a bool.
1362 (iq2000_expand_prologue): Call iq2000_function_arg_advance and
1363 iq2000_function_arg.
1364 (iq2000_pass_by_reference): Call iq2000_function_arg).
1365 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1367 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1369 * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
1370 * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1371 * config/fr30/fr30.c (fr30_num_arg_regs): Make static. Take a
1373 (fr30_function_arg): New function.
1374 (fr30_function_arg_advance): New function.
1375 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1377 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1379 * config/frv/frv-protos.h (frv_function_arg): Delete.
1380 (frv_function_arg_advance): Delete.
1381 * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1382 * config/frv/frv.c (frv_function_arg): Rename to...
1383 (frv_function_arg_1): Make static. Take const_tree and bool arguments.
1384 (frv_function_arg, frv_function_incoming_arg): New functions.
1385 (frv_function_arg_advance): Make static. Take a const_tree and a bool.
1386 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1387 (TARGET_FUNCTION_ARG_ADVANCE): Define.
1389 2010-10-28 Uros Bizjak <ubizjak@gmail.com>
1392 * config/i386/sse.md (sse_movhlps_exp): Use destination
1393 returned from ix86_fixup_binary_operands to expand insn.
1394 (sse_movlhps_exp): Ditto.
1395 (sse_loadhps_exp): Ditto.
1396 (sse_loadlps_exp): Ditto.
1397 (sse2_loadhpd_exp): Ditto.
1398 (sse2_loadlpd_exp): Ditto.
1400 2010-10-28 Andrew Stubbs <ams@codesourcery.com>
1402 * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
1403 constants in thumb2.
1405 2010-10-28 Eric Botcazou <ebotcazou@adacore.com>
1407 * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
1408 arithmetics in masking operations.
1409 (contains_muldiv): Likewise.
1410 (try_combine): Likewise.
1411 (find_split_point): Likewise.
1412 (combine_simplify_rtx): Likewise.
1413 (simplify_if_then_else): Likewise.
1414 (simplify_set): Likewise.
1415 (expand_compound_operation): Likewise.
1416 (expand_field_assignment): Likewise.
1417 (make_extraction): Likewise.
1418 (extract_left_shift): Likewise.
1419 (make_compound_operation): Likewise.
1420 (force_to_mode): Likewise.
1421 (make_field_assignment): Likewise.
1422 (reg_nonzero_bits_for_combine): Likewise.
1423 (simplify_shift_const_1): Likewise.
1424 (simplify_comparison): Likewise.
1426 2010-10-27 Nathan Froyd <froydnj@codesourcery.com>
1428 * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
1429 (ia64_function_arg_advance): Delete.
1430 * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
1431 (FUNCTION_ARG_ADVANCE): Delete.
1432 * config/ia64/ia64.c (ia64_function_arg): Rename to...
1433 (ia64_function_arg_1): ...this. Make static. Take const_tree and
1435 (ia64_function_arg, ia64_function_incoming_arg): New functions.
1436 (ia64_function_arg_advance): Make static. Take a const_tree and
1438 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1439 (TARGET_FUNCTION_ARG_ADVANCE): Define.
1441 2010-10-27 Steve Ellcey <sje@cup.hp.com>
1443 * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
1444 (TARGET_GET_RAW_ARG_MODE): New.
1445 * doc/tm.texi: Regenerate.
1446 * target.def (get_raw_result_mode): New.
1447 (get_raw_arg_mode): New.
1448 * targhooks.c (default_get_reg_raw_mode): New.
1449 * targhooks.h (default_get_reg_raw_mode): New.
1450 * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
1451 (apply_result_size): Ditto.
1452 * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
1453 (TARGET_GET_RAW_RESULT_MODE): Define.
1454 (TARGET_GET_RAW_ARG_MODE): Ditto.
1456 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
1458 * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
1459 for newer Solaris 10 release.
1460 (sparc_fallback_frame_state): Likewise.
1462 2010-10-27 Jason Merrill <jason@redhat.com>
1464 * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
1467 2010-10-27 Jie Zhang <jie@codesourcery.com>
1468 Maxim Kuvyrkov <maxim@codesourcery.com>
1470 * haifa-sched.c (ISSUE_POINTS): Remove.
1471 (max_issue): Don't issue more than issue_rate instructions.
1473 2010-10-27 Ian Lance Taylor <iant@google.com>
1476 * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
1477 (split_stack_return): Replace UNSPEC_STACK_CHECK with
1478 UNSPECV_SPLIT_STACK_RETURN.
1480 2010-10-27 H.J. Lu <hongjiu.lu@intel.com>
1482 * config/i386/i386-protos.h (init_cumulative_args): Add an int.
1484 * config/i386/i386.c (block_info): New.
1485 (BLOCK_INFO): Likewise.
1486 (call_avx256_state): Likewise.
1487 (check_avx256_stores): Likewise.
1488 (move_or_delete_vzeroupper_2): Likewise.
1489 (move_or_delete_vzeroupper_1): Likewise.
1490 (move_or_delete_vzeroupper): Likewise.
1491 (use_avx256_p): Likewise.
1492 (function_pass_avx256_p): Likewise.
1493 (flag_opts): Add -mvzeroupper.
1494 (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
1495 default for TARGET_AVX. Turn off MASK_VZEROUPPER if TARGET_AVX
1497 (ix86_function_ok_for_sibcall): Disable sibcall if we need to
1498 generate vzeroupper.
1499 (init_cumulative_args): Add an int to indicate caller. Set
1500 use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
1501 based on return type.
1502 (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
1503 caller_pass_avx256_p based on argument type.
1504 (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
1505 is used, but not returned by caller.
1506 (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
1507 (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
1509 (ix86_minimum_alignment): Likewise.
1510 (ix86_expand_special_args_builtin): Set target to
1511 GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
1512 (ix86_reorg): Run the vzeroupper optimization if needed.
1514 * config/i386/i386.h (ix86_args): Add caller.
1515 (INIT_CUMULATIVE_ARGS): Updated.
1516 (machine_function): Add use_vzeroupper_p, use_avx256_p,
1517 caller_pass_avx256_p, caller_return_avx256_p,
1518 callee_pass_avx256_p and callee_return_avx256_p.
1520 * config/i386/i386.opt (-mvzeroupper): New.
1522 * config/i386/predicates.md (vzeroupper_operation): Removed.
1524 * config/i386/sse.md (avx_vzeroupper): Removed.
1525 (*avx_vzeroupper): Removed.
1526 (avx_vzeroupper): New.
1528 * doc/invoke.texi: Document -mvzeroupper.
1530 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
1532 * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
1533 * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
1534 * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
1536 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
1537 Olivier Hainque <hainque@adacore.com>
1539 * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
1540 of EBP. Do not restore reg #9. Remove +1 adjustment to EIP and set
1541 fs->signal_frame instead.
1543 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1545 * c-parser.c (cp_parser_objc_at_property_declaration): Removed
1546 parsing of RID_COPIES and RID_IVAR.
1548 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1550 * c-parser.c (c_parser_objc_at_property_declaration): Recognize
1551 RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
1552 Do not use objc_set_property_attr, but use local variables
1553 instead. Detect repeated usage of setter, getter and ivar
1554 attributes. Improved error processing when a setter name does not
1555 end in ':'. Do not check for CPP_CLOSE_PAREN after we determined
1556 that the token is a keyword. Updated call to
1557 objc_add_property_declaration.
1559 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1561 * c-parser.c (c_parser_objc_at_property): Renamed to
1562 c_parser_objc_at_property_declaration. Updated calls to
1563 objc_add_property_variable, now objc_add_property_declaration.
1564 Code rewritten to be much more robust in recovering from syntax
1565 errors. Added comments.
1566 (c_parser_objc_property_attrlist): Removed.
1567 (c_parser_external_declaration): Updated calls to
1568 c_parser_objc_at_property, now
1569 c_parser_objc_at_property_declaration.
1570 (c_parser_objc_methodprotolist): Same change.
1572 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
1574 * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
1576 2010-10-26 Jan Hubicka <jh@suse.cz>
1578 * ipa.c (process_references): Enqueue all referenced nodes;
1579 mark as reachable only non-external nodes.
1580 (cgraph_remove_unreachable_nodes): All referenced nodes should
1581 be enqueued; remove bogues node->needed check.
1583 2010-10-26 Jan Hubicka <jh@suse.cz>
1585 * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
1588 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
1590 * config/i386/i386.md (split_stack_return): Replace
1591 unspec_volatile with unspec.
1593 2010-10-26 Jonathan Wakely <jwakely.gcc@gmail.com>
1595 * doc/install.texi: Fix typo in --with-sysroot description.
1597 2010-10-26 Jan Hubicka <jh@suse.cz>
1599 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1600 Use info provided by linker plugin.
1602 2010-10-26 Jason Merrill <jason@redhat.com>
1604 * varasm.c (constructor_static_from_elts_p): Don't require a
1605 CONSTRUCTOR to have elements to be suitable for static
1606 initialization. Allow ARRAY_TYPE as well.
1608 2010-10-26 Jan Hubicka <jh@suse.cz>
1611 * cgraph.c (cgraph_set_readonly_flag): Rename to...
1612 (cgraph_set_const_flags) ... this one; get also looping argument;
1613 clear constructor/destructor flags.
1614 (cgraph_set_pure_flag): Likewise.
1615 (cgraph_set_looping_const_or_pure_flag): Remove.
1616 (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
1617 to optimize away static ctors/dtors; it does not work on inline clones;
1618 external functions can always be rmeoved.
1619 (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
1620 inline clones; in LTO external functions always can go.
1621 (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
1622 (cgraph_mark_address_taken_node): Assert that we are not taking
1623 address of inline clone.
1624 (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
1626 * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
1628 (ipcp_initialize_node_lattices): Only local functions can be
1629 handled without cloning.
1630 * cgraph.h (cgraph_set_readonly_flag,
1631 cgraph_set_looping_const_or_pure_flag): Remove.
1632 (cgraph_set_const_flag): Declare.
1633 (cgraph_set_pure_flag): Update.
1634 * ipa-pure-const (propagate_pure_const, local_pure_const): Update
1636 * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
1637 look at inline clones; fix handling of external definitions.
1638 (cgraph_postorder): Do not look at inline clones in the first pass.
1639 (function_and_variable_visibility): Drop constructors/destructor
1640 flags at pure and const functions.
1641 * tree-profile.c (tree_profiling): Update.
1642 * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
1643 address taken; external functions do not account to whole program size.
1644 (cgraph_decide_inlining): Likewise; do not try to inline
1645 functions already inlined.
1647 2010-10-26 Jie Zhang <jie@codesourcery.com>
1649 * doc/invoke.texi: Improve documentation of
1650 -fstrict-volatile-bitfields.
1652 2010-10-26 Ira Rosen <irar@il.ibm.com>
1654 PR tree-optimization/46167
1655 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
1656 is basic block for the statement.
1658 2010-10-26 Paul Koning <ni1d@arrl.net>
1660 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
1661 current definition of struct_real_format.
1663 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
1666 * config/i386/i386.c (ix86_old_function_arg_boundary): New.
1667 (ix86_function_arg_boundary): Always align parameters on stack
1668 in 64bit and align parameters with alignment >= 16byte on stack
1669 in 32bit. Warn alignment change.
1671 2010-10-26 Ian Lance Taylor <iant@google.com>
1674 * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
1677 2010-10-25 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
1679 Implement opaque-enum-specifiesr for C++0x
1680 * tree.h (ENUM_IS_OPAQUE): New.
1681 * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
1683 2010-10-26 Jie Zhang <jie@codesourcery.com>
1685 * stor-layout.c (layout_decl): Use the field's type to
1686 determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
1687 * config/arm/arm.c (arm_override_options): Default to
1688 -fstrict-volatile-bitfields.
1690 2010-10-25 Paul Koning <ni1d@arrl.net>
1692 * config/pdp11/pdp11.md: Add define_constants for register
1693 numbers, branch offset limits.
1694 * config/pdp11/pdp11.c: Use named constants instead of numbers.
1695 * config/pdp11.pdp11.h: Ditto.
1697 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
1699 * configure.ac: Use $cpu_type instead of $target to define the nop.
1700 * configure: Regenerate.
1702 2010-10-25 Jie Zhang <jie@codesourcery.com>
1704 * combine.c (try_combine): If insns need to be kept around, check that
1705 they can be copied in the merged instruction.
1707 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
1709 * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
1711 (convert_regs_2): Likewise. Adjust calls to convert_regs_1.
1712 (convert_regs): Adjust calls to convert_regs_2. Clean up the CFG if
1713 it has been modified.
1715 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
1717 * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
1719 2010-10-24 Paul Koning <ni1d@arrl.net>
1721 * config/pdp11/pdp11.md: Change length attribute to be in bytes.
1722 * config/pdp11/pdp11.c (output_jump): Ditto.
1724 2010-10-24 Ian Lance Taylor <iant@google.com>
1726 * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
1728 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
1730 * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
1731 least one insn with a locus corresponding to an edge's goto_locus,
1732 disregard non-fallthru edges to the exit block and merge the blocks
1733 created for the same goto_locus.
1735 2010-10-23 Joseph Myers <joseph@codesourcery.com>
1737 * gcc.c (n_switches_alloc_debug_check): New.
1738 (set_option_handlers): New.
1739 (process_command): Use set_option_handlers.
1740 (do_self_spec): Pass spec-generated options through option handlers.
1741 (main): Also save and restore n_switches_alloc when swapping
1744 2010-10-23 Richard Henderson <rth@redhat.com>
1747 * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
1748 (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
1749 Honor matching operands when splitting to XOR.
1751 2010-10-23 Ian Lance Taylor <iant@google.com>
1753 * tree-vrp.c (extract_range_from_binary_expr): If
1754 flag_non_call_exceptions don't eliminate division by zero.
1755 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1757 2010-10-23 Nathan Froyd <froydnj@codesourcery.com>
1759 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
1760 __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
1761 __ORDER_PDP_ENDIAN__.
1762 * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1763 (struct DWstruct): Define based on __BYTE_ORDER__.
1764 * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1765 (struct INTstruct): Define based on __BYTE_ORDER__.
1766 * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1767 (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
1768 * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
1769 * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1770 * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1771 * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1772 * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1773 * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1774 * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1775 * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1776 * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1777 * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1778 * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1779 * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1780 * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1781 * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1782 * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1783 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1784 * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1785 * doc/tm.texi: Regenerate.
1786 * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
1787 (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
1789 2010-10-23 Jie Zhang <jie@codesourcery.com>
1791 PR rtl-optimization/37360
1792 * config/mips/mips.c (cached_can_issue_more): New local variable.
1793 (mips_sched_reorder_1): New.
1794 (mips_sched_reorder): Use mips_sched_reorder_1.
1795 (mips_sched_reorder2): New.
1796 (mips_variable_issue): Set cached_can_issue_more.
1797 (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
1798 instead of mips_sched_reorder.
1801 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
1802 PR rtl-optimization/37360
1803 * haifa-sched.c (max_issue): Do not assert that we never issue more
1804 insns than issue_rate. Add comment.
1806 2010-10-22 Eric Botcazou <ebotcazou@adacore.com>
1808 * gimplify.c (gimplify_variable_sized_compare): Preserve the source
1809 location info of the expression.
1811 2010-10-22 DJ Delorie <dj@redhat.com>
1813 * doc/extend.texi (Named Address Spaces): Document the M32C named
1816 * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
1817 __far address space.
1818 * config/m32c/m32c.h (ADDR_SPACE_FAR): New. Add support for
1819 "__far" address space for R8C and M16C processor variants.
1820 * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
1821 (far_addr_space_p): New.
1822 (encode_pattern_1): Add sign and zero extend support.
1823 (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
1824 (m32c_extra_constraint_p2): Add SF constraint.
1825 (m32c_legitimate_address_p): Support __far addresses.
1826 (m32c_addr_space_pointer_mode): New.
1827 (m32c_addr_space_address_mode): New.
1828 (m32c_addr_space_legitimate_address_p): New.
1829 (m32c_addr_space_legitimize_address): New.
1830 (m32c_addr_space_subset_p): New.
1831 (m32c_addr_space_convert): New.
1832 (conversions): Add __far operand patterns.
1833 (m32c_prepare_move): Force constants into registers for __far moves.
1834 (m32c_split_move): __far moves are always split.
1835 * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
1836 * config/m32c/mov.md (mov<mode>_far_op1): New.
1837 (mov<mode>_far_op2): New.
1838 (movqi_op): Add __far (SF) support.
1839 (movhi_op): Likewise.
1840 (movsi_splittable): Split A1A0 also.
1842 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1843 Andrew Pinski <pinskia@gmail.com>
1845 * c-typeck.c (build_array_ref): Handle subscripting of vectors.
1846 * doc/extend.texi: New paragraph
1848 2010-10-22 Paul Koning <ni1d@arrl.net>
1850 * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
1852 2010-10-22 DJ Delorie <dj@redhat.com>
1854 * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
1856 2010-10-22 Paul Koning <ni1d@arrl.net>
1858 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
1860 2010-10-22 Richard Henderson <rth@redhat.com>
1862 * config/i386/i386.c (ix86_builtin_vectorized_function): Add
1863 cases for __builtin_fma and __builtin_fmaf.
1865 2010-10-22 Richard Henderson <rth@redhat.com>
1867 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
1868 NEG+USE for vectors as well.
1869 * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
1872 2010-10-22 Joseph Myers <joseph@codesourcery.com>
1874 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
1875 SWITCH_CURTAILS_COMPILATION): Remove.
1876 * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
1877 * doc/tm.texi: Regenerate.
1878 * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
1880 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
1882 * config/i386/bdver1.md: New file.
1883 * config/i386/i386.md (include "bdver1.md"): Invoke the
1884 pipeline description for bdver1.
1885 (x86_sahf_1): Add "bdver1_decode" attribute.
1886 (*cmpfp_i_mixed): Likewise.
1887 (*cmpfp_i_sse): Likewise.
1888 (*cmpfp_i_i387): Likewise.
1889 (*cmpfp_iu_mixed): Likewise.
1890 (*cmpfp_iu_sse): Likewise.
1891 (*cmpfp_iu_387): Likewise.
1892 (*swap<mode>,*swap<mode>_1): Likewise.
1893 (fixuns_trunc<mode>hi2): Likewise.
1894 (fix_trunc<mode>si_sse): Likewise.
1895 (x86_fnstcw_1): Likewise.
1896 (x86_fldcw_1): Likewise.
1897 (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
1898 (*floatsi<mode>2_vector_mixed): Likewise.
1899 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
1900 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
1901 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
1902 (*floatsi<mode>2_vector_sse_with_temp): Likewise.
1903 (*floatsi<mode>2_vector_sse): Likewise.
1904 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
1905 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
1906 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
1907 (*mul<mode>3_1): Likewise.
1908 (*mulsi3_1_zext): Likewise.
1909 (*mulhi3_1): Likewise.
1910 (*mulqi3_1): Likewise.
1911 (*<u>mul<mode><dwi>3_1): Likewise.
1912 (*<u>mulqihi3_1): Likewise.
1913 (*<s>muldi3_highpart_1): Likewise.
1914 (*<s>mulsi3_highpart_1): Likewise.
1915 (*<s>mulsi3_highpart_zext): Likewise.
1916 (x86_64_shld): Likewise.
1917 (x86_shld): Likewise.
1918 (x86_64_shrd): Likewise.
1919 (x86_shrd): Likewise.
1920 (sqrtxf2): Likewise.
1921 (sqrt_extend<mode>xf2_i387): Likewise.
1922 (*sqrt<mode>2_sse): Likewise.
1923 * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
1924 (sse_cvtsi2ssq): Likewise.
1925 (sse_cvtss2si): Likewise.
1926 (sse_cvtss2si_2): Likewise.
1927 (sse_cvtss2siq): Likewise.
1928 (sse_cvtss2siq_2): Likewise.
1929 (sse_cvttss2si): Likewise.
1930 (sse_cvttss2siq): Likewise.
1931 (sse2_cvtpi2pd): Likewise.
1932 (sse2_cvttpd2pi): Likewise.
1933 (sse2_cvtsi2sd): Likewise.
1934 (sse2_cvtsi2sdq): Likewise.
1935 (sse2_cvtsd2si): Likewise.
1936 (sse2_cvtsd2si_2): Likewise.
1937 (sse2_cvtsd2siq): Likewise.
1938 (sse2_cvtsd2siq_2): Likewise.
1939 (sse2_cvttsd2si): Likewise.
1940 (sse2_cvttsd2siq): Likewise.
1941 (*sse2_cvtpd2dq): Likewise.
1942 (*sse2_cvttpd2dq): Likewise.
1943 (sse2_cvtsd2ss): Likewise.
1944 (sse2_cvtss2sd): Likewise.
1945 (*sse2_cvtpd2ps): Likewise.
1946 (sse2_cvtps2pd): Likewise.
1948 2010-10-22 Richard Guenther <rguenther@suse.de>
1951 * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
1952 remove the virtual operands if they are not needed.
1954 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
1956 * config/i386/i386.c (processor_costs bdver1_cost): Update
1957 insn costs and architectural parameters for bdver1.
1959 2010-10-22 Richard Guenther <rguenther@suse.de>
1961 * gimple.h (gimple_register_canonical_type): Declare.
1962 * gimple.c (gimple_canonical_types): New global hashtable.
1963 (struct gimple_type_leader_entry_s): New type.
1964 (gimple_type_leader): New global cache.
1965 (gimple_lookup_type_leader): New function.
1966 (gtc_visit): Query the proper cache.
1967 (gimple_types_compatible_p): Likewise.
1968 (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
1969 (gimple_canonical_type_eq): New function.
1970 (gimple_register_canonical_type): Likewise.
1971 (print_gimple_types_stats): Adjust for gimple_canonical_types.
1972 (free_gimple_type_tables): Likewise. Free gimple_type_leader.
1973 * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
1974 gimple_types_compatible_p for LTO.
1976 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
1979 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
1980 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
1981 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
1982 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
1983 (<sse>_movu<ssemodesuffix>): New expander.
1984 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
1985 (avx_movdqu<avxmodesuffix>): New expander.
1986 (*sse2_movdqu): Rename from sse2_movdqu.
1987 (sse2_movdqu): New expander.
1989 2010-10-22 Richard Guenther <rguenther@suse.de>
1991 PR tree-optimization/45720
1992 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
1993 Handle negative step.
1994 (vect_enhance_data_refs_alignment): Likewise.
1995 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
1996 (vect_create_cond_for_align_checks): Likewise.
1997 (vect_create_cond_for_alias_checks): Likewise.
1999 2010-10-22 Ira Rosen <irar@il.ibm.com>
2001 PR tree-optimization/46126
2002 * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
2003 vectorizable_shift in case of basic block vectorization.
2005 2010-10-22 Joseph Myers <joseph@codesourcery.com>
2007 * target.h (enum opt_levels, struct default_options): New.
2008 * target.def (handle_ofast): Remove hook.
2009 (target_option.optimization): Change to
2010 target_option.optimization_table.
2011 * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
2012 TARGET_OPTION_OPTIMIZATION_TABLE.
2013 (CAN_DEBUG_WITHOUT_FP): Remove.
2014 * doc/tm.texi: Regenerate.
2015 * opts.c (maybe_default_option, maybe_default_options,
2016 default_options_table): New.
2017 (default_options_optimization): Take extra parameters. Don't
2018 assert that global_options and global_options_set are in use. Use
2019 maybe_default_options.
2020 (decode_options): Pass extra parameters to
2021 default_options_optimization.
2022 * common.opt (falign-loops): Use value 0 with Var.
2023 (frerun-cse-after-loop, ftree-ter): Remove Init.
2024 * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
2025 TARGET_OPTION_OPTIMIZATION): Remove.
2026 * targhooks.c (empty_optimization_table): New.
2027 * targhooks.h (empty_optimization_table): Declare.
2028 * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
2029 * config/alpha/alpha.c (alpha_option_optimization_table,
2030 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2031 * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
2032 * config/arm/arm.c (arm_option_optimization: Change to
2033 arm_option_optimization_table.
2034 (TARGET_OPTION_OPTIMIZATION): Change to
2035 TARGET_OPTION_OPTIMIZATION_TABLE.
2036 * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
2037 * config/avr/avr.c (avr_option_optimization_table,
2038 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2039 * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
2040 * config/cris/cris.c (cris_option_optimization): Change to
2041 cris_option_optimization_table.
2042 (TARGET_OPTION_OPTIMIZATION): Change to
2043 TARGET_OPTION_OPTIMIZATION_TABLE.
2044 * config/crx/crx.c (crx_option_optimization): Change to
2045 crx_option_optimization_table.
2046 (TARGET_OPTION_OPTIMIZATION): Change to
2047 TARGET_OPTION_OPTIMIZATION_TABLE.
2048 * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
2049 * config/fr30/fr30.c (fr30_option_optimization_table,
2050 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2051 * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
2052 * config/frv/frv.c (frv_option_optimization_table,
2053 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2054 * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
2055 * config/h8300/h8300.c (h8300_option_optimization): Change to
2056 h8300_option_optimization_table.
2057 (TARGET_OPTION_OPTIMIZATION): Change to
2058 TARGET_OPTION_OPTIMIZATION_TABLE.
2059 * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
2060 * config/i386/i386.c (ix86_option_optimization): Change to
2061 ix86_option_optimization_table.
2062 (TARGET_OPTION_OPTIMIZATION): Change to
2063 TARGET_OPTION_OPTIMIZATION_TABLE.
2064 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
2066 * config/ia64/ia64.c (ia64_option_optimization): Change to
2067 ia64_option_optimization_table.
2068 (TARGET_OPTION_OPTIMIZATION): Change to
2069 TARGET_OPTION_OPTIMIZATION_TABLE.
2070 * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
2071 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
2073 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
2074 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2075 * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
2076 * config/lm32/lm32.c (lm32_option_optimization_table,
2077 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2078 * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
2079 * config/m32r/m32r.c (m32r_option_optimization): Change to
2080 m32r_option_optimization_table.
2081 (TARGET_OPTION_OPTIMIZATION): Change to
2082 TARGET_OPTION_OPTIMIZATION_TABLE.
2083 * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
2084 CAN_DEBUG_WITHOUT_FP): Remove.
2085 * config/mcore/mcore.c (mcore_option_optimization): Change to
2086 mcore_option_optimization_table.
2087 (TARGET_OPTION_OPTIMIZATION): Change to
2088 TARGET_OPTION_OPTIMIZATION_TABLE.
2089 * config/mep/mep.c (mep_option_optimization): Change to
2090 mep_option_optimization_table.
2091 (TARGET_OPTION_OPTIMIZATION): Change to
2092 TARGET_OPTION_OPTIMIZATION_TABLE.
2093 * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
2094 * config/microblaze/microblaze.c
2095 (microblaze_option_optimization_table,
2096 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2097 * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
2098 * config/mips/mips.c (mips_option_optimization_table,
2099 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2100 * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
2101 * config/mmix/mmix.c (mmix_option_optimization): Change to
2102 mmix_option_optimization_table.
2103 (TARGET_OPTION_OPTIMIZATION): Change to
2104 TARGET_OPTION_OPTIMIZATION_TABLE.
2105 * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
2106 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
2107 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2108 * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
2109 * config/pa/pa.c (pa_option_optimization_table,
2110 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2111 * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
2112 * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
2113 pdp11_option_optimization_table.
2114 (TARGET_OPTION_OPTIMIZATION): Change to
2115 TARGET_OPTION_OPTIMIZATION_TABLE.
2116 * config/picochip/picochip.c (picochip_option_optimization_table,
2117 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2118 * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
2119 * config/rs6000/rs6000.c (rs6000_option_optimization_table,
2120 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2121 * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
2122 * config/rx/rx.c (rx_option_optimization_table,
2123 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2124 * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
2125 * config/s390/s390.c (s390_option_optimization): Change to
2126 s390_option_optimization_table.
2127 (s390_option_override): Update comment.
2128 (TARGET_OPTION_OPTIMIZATION): Change to
2129 TARGET_OPTION_OPTIMIZATION_TABLE.
2130 * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
2131 * config/score/score.c (score_option_optimization_table,
2132 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2133 * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
2134 * config/sh/sh.c (sh_option_optimization): Change to
2135 sh_option_optimization_table.
2136 (TARGET_OPTION_OPTIMIZATION): Change to
2137 TARGET_OPTION_OPTIMIZATION_TABLE.
2138 (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
2139 (sh_option_override, expand_block_move, multcosts, find_barrier,
2140 barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
2141 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
2142 (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
2143 STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
2144 instead of TARGET_SMALLCODE.
2145 * config/sh/sh.opt (mspace): Make into an alias for -Os.
2146 * config/sparc/sparc.c (sparc_option_optimization_table,
2147 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2148 * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
2149 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
2150 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2151 * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
2152 * config/v850/v850.c (v850_option_optimization): Change to
2153 v850_option_optimization_table.
2154 (TARGET_OPTION_OPTIMIZATION): Change to
2155 TARGET_OPTION_OPTIMIZATION_TABLE.
2156 * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
2157 * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
2158 xtensa_option_optimization_table.
2159 (TARGET_OPTION_OPTIMIZATION): Change to
2160 TARGET_OPTION_OPTIMIZATION_TABLE.
2161 * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
2163 2010-10-21 Iain Sandoe <iains@gcc.gnu.org>
2165 Based on the CFString implementation in FSF apple/trunk branch.
2167 * target.def (objc_construct_string): New Hook.
2168 * doc/tm.texi (objc_construct_string): Document.
2169 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
2170 * config/t-darwin: Amend build rules for darwin.o.
2171 * config/darwin.opt: Add cfstrings flags.
2172 * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
2173 (darwin_objc_construct_string): New.
2174 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
2175 * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
2176 * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
2177 (darwin_fold_builtin): Likewise.
2178 (darwin_build_constant_cfstring): Likewise.
2179 (darwin_objc_construct_string): Likewise.
2180 (darwin_cfstring_p): Likewise.
2181 (darwin_enter_string_into_cfstring_table): Likewise.
2182 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
2183 * config/darwin.c (darwin_running_cxx): New var.
2184 (machopic_select_section): Return cfstring_constant_object_section.
2185 (darwin_override_options): Set darwin_running_cxx.
2186 (add_builtin_field_decl): New.
2187 (darwin_init_cfstring_builtins): New.
2188 (darwin_build_constant_cfstring): New.
2189 (darwin_fold_builtin): New.
2190 (cfstring_hash): New.
2192 (darwin_enter_string_into_cfstring_table): New.
2193 * config/darwin-sections.def (cfstring_constant_object_section): New.
2194 * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
2195 (TARGET_OBJC_CONSTRUCT_STRING): Define.
2197 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
2199 * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
2200 TYPE_STUB_DECL instead of TREE_CHAIN.
2201 * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
2202 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
2203 * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
2204 * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
2205 * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
2206 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
2208 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
2210 2010-10-22 Jie Zhang <jie@codesourcery.com>
2212 * expr.c (emit_group_load_1): Update calls to extract_bit_field.
2213 (copy_blkmode_from_reg): Likewise.
2214 (read_complex_part): Likewise.
2215 (expand_expr_real_1): Calculate packedp and pass it to
2217 * expr.h (extract_bit_field): Update declaration.
2218 * calls.c (store_unaligned_arguments_into_pseudos): Update call
2219 to extract_bit_field.
2220 * expmed.c (extract_fixed_bit_field): Update calls to
2221 extract_fixed_bit_field.
2222 (store_split_bit_field): Likewise.
2223 (extract_bit_field_1): Add new argument packedp.
2224 (extract_bit_field): Add new argument packedp.
2225 (extract_fixed_bit_field): Add new argument packedp and let
2226 packed attribute override volatile.
2227 * stmt.c (expand_return): Update call to extract_bit_field.
2229 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
2231 * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
2233 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
2235 * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
2236 of gcc_checking_assert.
2237 * sel-sched.c (code_motion_process_successors): Likewise.
2239 2010-10-21 Eric Botcazou <ebotcazou@adacore.com>
2241 * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
2242 when stopping because of a different locus on edge or insn.
2243 (try_optimize_cfg): Add comment.
2244 * cfgrtl.c (rtl_merge_blocks): Tweak log message. If the destination
2245 block is a forwarder block, propagate locus on the edge.
2246 (cfg_layout_merge_blocks): Likewise.
2248 2010-10-21 Uros Bizjak <ubizjak@gmail.com>
2251 * config/i386/i386.md (*pushti2): New insn pattern.
2252 (pushti2 splitter): New insn splitter.
2253 (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
2256 2010-10-21 Paul Koning <ni1d@arrl.net>
2258 * config/pdp11/pdp11-protos.md (arith_operand,
2259 const_immediate_operand, expand_shift_operand,
2260 immediate15_operand): Delete
2261 * config/pdp11/pdp11.c: Ditto.
2262 * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
2263 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
2264 EXTRA_CONSTRAINT): Delete.
2265 * config/pdp11/pdp11.md (various): Use standard constraints
2266 instead of removed ones.
2267 * config/pdp11/constraints.md: New file.
2268 * config/pdp11/predicates.md: New file.
2270 2010-10-21 Bingfeng Mei <bmei@broadcom.com>
2273 * alias.c (true_dependence_1): Remove obsolete check for QImode.
2274 (may_alias_p): Ditto.
2276 2010-10-21 Martin Jambor <mjambor@suse.cz>
2278 PR tree-optimization/45875
2279 * tree.c (get_binfo_at_offset): Remove initial zero offset test.
2281 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
2283 * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
2285 (create_new_def_for): Likewise.
2287 2010-10-21 Nick Clifton <nickc@redhat.com>
2289 * config/mn10300/mn10300.c: Fold code to 80-character width.
2290 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
2291 MEM, CONST_INT and CONST_DOUBLE.
2292 (targetm): Move initialization to end of file.
2293 (print_operand): Rename to mn10300_print_operand.
2294 (print_operand_address): Rename to mn10300_print_operand_address.
2295 (can_use_return_insn): Rename to mn10300_can_use_return_insn.
2296 (expand_prologue): Rename to mn10300_expand_prologue.
2297 (expand_epilogue): Rename to mn10300_expand_epilogue.
2298 (initial_offset): Rename to mn10300_initial_offset.
2299 (function_arg): Rename to mn10300_function_arg.
2300 (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
2301 (symbolic_operand): Rename to mn10300_symbolic_operand.
2302 (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
2303 (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
2304 * config/mn10300/mn10300-protos.h: Update prototypes.
2305 * config/mn10300/mn10300.h: Fold code to 80-character width.
2306 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
2307 MEM, CONST_INT and CONST_DOUBLE.
2308 (CPP_SPEC): Move to...
2309 (TARGET_CPU_CPP_BUILTINS): ... here.
2310 * config/mn10300/mn10300.md: Fold code to 80-character width.
2311 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
2312 MEM, CONST_INT and CONST_DOUBLE.
2314 2010-10-21 Ira Rosen <irar@il.ibm.com>
2316 PR tree-optimization/46049
2317 PR tree-optimization/46052
2318 * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
2319 (vect_get_slp_defs): Add arguments.
2320 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
2321 operands to vect_get_slp_defs.
2322 (vectorizable_reduction): Fix comment, pass scalar operands to
2324 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
2325 type to determine number of units in the created vector.
2326 (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
2327 (vectorizable_conversion): Fix comment.
2328 (vectorizable_shift): New function.
2329 (vectorizable_operation): Move code that handles shifts to
2331 (vectorizable_type_demotion): Fix comment, pass scalar operands to
2333 (vectorizable_type_promotion, vectorizable_store): Likewise.
2334 (vectorizable_condition): Fix comment.
2335 (vect_analyze_stmt): Call vectorizable_shift.
2336 (vect_transform_stmt): Likewise.
2337 * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
2338 Use it as the operand to create vectors for, except reduction
2339 initial definition and store. Use operands type.
2340 (vect_get_slp_defs): Add new arguments. Pass them to
2341 vect_get_constant_vectors.
2343 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
2345 * basic-block.h (single_succ_edge): Use gcc_checking_assert.
2346 (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
2347 * cfghooks.c (fixup_reorder_chain): Likewise.
2348 * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
2349 * cgraph.c (cgraph_add_thunk): Likewise.
2350 (cgraph_create_edge_1): Likewise.
2351 (cgraph_create_virtual_clone): Likewise.
2352 * ddg.c (add_cross_iteration_register_deps): Likewise.
2353 * dwarf2out.c (modified_type_die): Likewise.
2354 * emit-rtl.c (set_mem_alias_set): Likewise.
2355 * ggc-zone.c (zone_allocate_marks): Likewise.
2356 * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
2357 * gimple.c (iterative_hash_gimple_type): Likewise.
2358 * graphite-scop-detection.c (create_single_entry_edge): Likewise.
2359 (create_single_exit_edge): Likewise.
2360 * haifa-sched.c (choose_ready): Likewise.
2361 * lto-streamer-in.c (input_gimple_stmt): Likewise.
2362 * passes.c (execute_todo): Likewise.
2363 * sched-ebb.c (begin_schedule_ready): Likewise.
2364 * sel-sched.c (code_motion_process_successors): Likewise.
2365 * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
2366 * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
2367 * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
2368 (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
2369 * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
2370 * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
2371 (ssa_conflicts_add): Likewise.
2372 * tree-ssa-copy.c (replace_exp): Likewise.
2373 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
2374 * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
2375 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
2376 * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
2377 (compute_antic): Likewise.
2378 * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
2379 (add_dependence): Likewise.
2380 (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
2381 * tree-vrp.c (supports_overflow_infinity): Likewise.
2382 (make_overflow_infinity, negative_overflow_infinity): Likewise.
2383 (avoid_overflow_infinity, register_new_assert_for): Likewise.
2384 (process_assert_insertions_for): Likewise.
2385 * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
2386 (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
2387 (intersect_loc_chains, variable_merge_over_cur): Likewise.
2389 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
2391 * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
2392 * reload1.c (has_nonexceptional_receiver): Likewise.
2393 * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
2394 (create_new_def_for): Likewise.
2395 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
2396 (merge_phi_nodes): Likewise.
2397 (has_abnormal_incoming_edge_p): Delete.
2399 2010-10-21 H.J. Lu <hongjiu.lu@intel.com>
2401 * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
2403 2010-10-21 Richard Guenther <rguenther@suse.de>
2404 Michael Matz <matz@suse.de>
2406 PR tree-optimization/45764
2407 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2408 Adjust initial misalignment for negative DR_STEP.
2409 (vect_find_same_alignment_drs): Two DRs with different DR_STEP
2410 do not have the same alignment over the whole iteration domain.
2412 2010-10-21 Richard Guenther <rguenther@suse.de>
2414 PR tree-optimization/46111
2415 * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
2417 2010-10-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2419 * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
2421 2010-10-21 Tristan Gingold <gingold@adacore.com>
2423 * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
2424 * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
2426 2010-10-21 Tristan Gingold <gingold@adacore.com>
2428 * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
2430 * config/alpha/alpha.c (alpha_function_arg): Adjust call.
2432 2010-10-21 Tristan Gingold <gingold@adacore.com>
2434 * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
2435 * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
2437 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
2439 * basic-block.h (find_fallthru_edge): Define.
2440 * cfgcleanup.c (merge_blocks_move): Use it.
2441 (try_crossjump_bb): Likewise.
2442 * cfglayout.c (fixup_reorder_chains): Likewise.
2443 (fixup_fallthru_exit_predecessor): Likewise.
2444 * cfgrtl.c (rtl_split_edge): Likewise.
2445 (rtl_verify_flow_info): Likewise.
2446 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2447 * gimple-pretty-print.c (dump_implicit_edges): Likewise.
2448 * ifcvt.c (block_fallthru): Likewise.
2449 * reload1.c (fixup_abnormal_edges): Likewise.
2450 * sched-ebb.c (being_schedule_ready): Likewise.
2451 (schedule_ebb): Likwise.
2452 * sched-rgn.c (find_single_block_region): Likewise.
2453 * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
2454 * tree-complex.c (expand_complex_move): Likewise.
2455 * sched-int.h (find_fallthru_edge): Rename to...
2456 (find_fallthru_edge_from): ...this.
2457 * haifa-sched.c (find_fallthru_edge): Rename to...
2458 (find_fallthru_edge_from): ...this. Use new find_fallthru_edge.
2459 (init_before_recovery): Call find_fallthru_edge_from.
2460 * sel-sched-ir.c (merge_fences): Likewise.
2461 * sel-sched.c (in_fallthru_bb_p): Likewise.
2462 (move_cond_jump): Likewise.
2464 2010-10-20 Paul Koning <ni1d@arrl.net>
2466 * config/pdp11/pdp11.md (various): Fix conditions on a number of
2467 insn to check for target 11/40 or higher.
2469 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2471 * parser.c (c_parser_objc_method_type): Mark inline. Return a
2472 bool instead of a tree.
2473 (c_parser_objc_method_decl): Added bool argument. Updated call to
2474 objc_build_method_signature.
2475 (c_parser_objc_method_definition): Do not call
2476 objc_set_method_type. Updated calls to c_parser_objc_method_type,
2477 c_parser_objc_method_decl and objc_start_method_definition.
2478 (c_parser_objc_methodproto): Do not call objc_set_method_type.
2479 Updated calls to c_parser_objc_method_type,
2480 c_parser_objc_method_decl and objc_add_method_declaration.
2482 2010-10-20 Jakub Jelinek <jakub@redhat.com>
2484 PR tree-optimization/45919
2485 * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
2488 PR tree-optimization/46066
2489 * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
2490 instead of gsi_last_bb.
2492 2010-10-20 DJ Delorie <dj@redhat.com>
2494 * config/m32c/m32c.c (m32c_option_override): Always disable
2495 function-cse in 16-bit mode. Indirect calls are always worse than
2496 direct calls as there is no 16-bit indirect call opcode.
2497 (m32c_override_options_after_change): New, likewise.
2499 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
2501 * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
2502 emitting the conditional move in the inner mode of the SUBREG.
2504 2010-10-20 Anatoly Sokolov <aesok@post.ru>
2506 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
2507 * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
2508 * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2509 (ia64_preferred_reload_class): Make static. Change rclass argument
2510 and result types from enum reg_class to reg_class_t.
2512 2010-10-20 Pat Haugen <pthaugen@us.ibm.com>
2514 * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
2515 call for single operand expression.
2517 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
2519 * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
2520 if there is a call statement to pure or const function in the block.
2522 2010-10-20 Paul Koning <pkoning@equallogic.com>
2524 Fix several build errors for pdp11 target.
2525 * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
2526 (cbranchdf4): Conditional on TARGET_FPU.
2527 (movdf): Ditto; correct alternatives check.
2528 (movmemhi): Fix predicate and constraint.
2529 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
2531 2010-10-20 Richard Guenther <rguenther@suse.de>
2534 * lto-streamer-out.c (output_gimple_stmt): Fix typo.
2535 * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
2536 (verify_gimple_assign_single): Disable ADDR_EXPR type check
2539 2010-10-20 Vladimir Makarov <vmakarov@redhat.com>
2542 * ira-emit.c (store_can_be_removed_p): Return false instead of
2545 2010-10-20 Dmitry Melnik <dm@ispras.ru>
2547 * fold-const.c (fold_binary_loc): New transformation.
2549 2010-10-20 H.J. Lu <hongjiu.lu@intel.com>
2552 * config/i386/sse.md (reduc_splus_v8sf): Updated.
2553 (reduc_splus_v4df): Likewise.
2555 2010-10-20 Richard Guenther <rguenther@suse.de>
2557 PR tree-optimization/45860
2558 * tree-ssa-phiopt.c (cond_store_replacement): Do not do
2559 conditional store replacement for non-register type stores.
2561 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
2563 * stor-layout.c (skip_simple_constant_arithmetic): New function.
2564 (self_referential_size): Use it instead of skip_simple_arithmetic.
2566 2010-10-20 Olivier Hainque <hainque@adacore.com>
2568 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
2569 If the current function calls eh_return, claim live all registers
2570 that we need to check for liveness otherwise.
2572 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2574 * c-decl.c (c_write_global_declarations): Call
2575 objc_write_global_declarations when compiling Objective-C.
2576 * c-lang.c (finish_file): Removed.
2578 2010-10-19 DJ Delorie <dj@redhat.com>
2580 * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
2581 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
2582 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
2583 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
2584 * doc/tm.texi: Regenerate.
2585 * targhooks.h (default_label_align_after_barrier_max_skip,
2586 default_loop_align_max_skip, default_label_align_max_skip,
2587 default_jump_align_max_skip): Declare.
2588 * target.def (label_align_after_barrier_max_skip): New.
2589 (loop_align_max_skip): New.
2590 (label_align_max_skip): New.
2591 (jump_align_max_skip): New.
2592 * system.h (poison): Add those macros to the list.
2593 * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
2594 (LOOP_ALIGN_MAX_SKIP): Remove.
2595 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
2596 (JUMP_ALIGN_MAX_SKIP): Remove.
2597 (default_label_align_after_barrier_max_skip): New.
2598 (default_loop_align_max_skip): New.
2599 (default_label_align_max_skip): New.
2600 (default_jump_align_max_skip): New.
2601 (compute_alignments): Use the new hooks.
2602 (shorten_branches): Likewise.
2604 2010-10-19 Richard Henderson <rth@redhat.com>
2606 * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
2607 * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
2608 (fma4i_fmadd_<mode>): New.
2609 (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
2610 fma4_fm*_<mode> and adjust to be pre-reload splitters to the
2611 standard fma patterns.
2612 (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
2614 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
2615 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
2616 (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
2618 2010-10-19 Paul Koning <pkoning@equallogic.com>
2620 * lower-subreg.c (resolve_shift_zext): Delete conditional code for
2621 WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
2623 2010-10-19 Richard Henderson <rth@redhat.com>
2625 * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
2626 (fmadf4, *fmsdf4, *nfmadf4): New.
2627 (fmaxf4, *fmsxf4, *nfmaxf4): New.
2629 2010-10-19 Michael Eager <eager@eagercon.com>
2631 * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
2632 Use sjlj unwind info for exceptions.
2634 2010-10-19 Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
2637 * dwarf2out.c (add_calling_convention_attribute): Flag main
2638 Fortran subroutine with DW_AT_main_subprogram.
2640 2010-10-19 Nick Clifton <nickc@redhat.com>
2642 * config/rx/rx.c (rx_function_value): Small integer types are
2644 (rx_promote_function_mode): New function.
2645 (TARGET_PROMOTE_FUNCTION_MODE): Define.
2647 2010-10-19 Nick Clifton <nickc@redhat.com>
2649 * config/mep/mep.c (mep_print_operand): Use
2650 targetm.strip_name_encoding.
2651 (mep_output_aligned_common): Likewise.
2653 2010-10-19 Basile Starynkevitch <basile@starynkevitch.net>
2655 * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
2657 2010-10-18 Richard Henderson <rth@redhat.com>
2659 * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
2660 (fma (neg a) (neg b) c) and (fma a (neg b) c).
2662 2010-10-18 Richard Henderson <rth@redhat.com>
2664 * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
2665 IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
2666 IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
2667 IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
2668 IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
2669 IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
2670 IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
2671 IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
2672 IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
2673 IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
2674 (bdesc_multi_arg): Remove the corresponding builtins.
2675 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
2676 (UNSPEC_FMA4_FMSUBADD): Remove.
2677 (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
2678 * config/i386/sse.md (FMA4MODEF4): Remove.
2680 (fma<mode>4): New expander.
2681 (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
2682 and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
2683 (*fma4i_fmsub_<mode>): Similarly.
2684 (*fma4i_fnmadd_<mode>): Similarly.
2685 (*fma4i_fnmsub_<mode>): Similarly.
2686 (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
2687 with the first operand.
2688 (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
2689 of explicit arithmetic. Macroize with AVXMODEF2P.
2690 (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
2691 (xop_frcz<mode>2): Macroize with FMAMODE.
2692 (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
2694 * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
2696 (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
2697 (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
2698 (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
2699 (_mm256_msub_ps, _mm256_msub_pd): Likewise.
2700 (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
2701 (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
2702 (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
2703 (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
2705 2010-10-18 Bernd Schmidt <bernds@codesourcery.com>
2707 PR rtl-optimization/45966
2708 * combine.c (try_combine): If added_sets_2, deal with the case
2709 where i0 feeds i1 and i1 feeds i2.
2711 2010-10-18 Jan Hubicka <jh@suse.cz>
2713 * ipa.c (cgraph_externally_visible_p): Handle externally visible and
2714 preserve flags before trying to guess on visibility.
2715 (varpool_externally_visible_p): New function.
2716 (function_and_variable_visibility): Use it.
2718 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2720 Implemented parsing @synthesize and @dynamic for Objective-C.
2721 * c-parser.c (c_parser_external_declaration): Recognize
2722 RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2723 (c_parser_objc_at_synthesize_declaration): New.
2724 (c_parser_objc_at_dynamic_declaration): New.
2726 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2728 * c-parser.c (c_parser_objc_class_declaration): After finding an
2729 error, parse the whole declaration then reset parser->error.
2731 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2734 * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
2735 * builtins.c (mode_has_fma): Ditto.
2737 2010-10-18 Steve Ellcey <sje@cup.hp.com>
2741 * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
2743 2010-10-18 Joseph Myers <joseph@codesourcery.com>
2745 * config/i386/i386.c (ix86_option_override_internal): Define and
2746 use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
2748 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
2749 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
2751 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2753 Merge from 'apple/trunk' branch on FSF servers.
2754 * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
2755 following Objective-C change:
2757 2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
2760 * c-parse.in (objc_quals): Build objc qualifier list same way
2763 2010-10-18 Jan Hubicka <jh@suse.cz>
2765 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
2766 function_and_variable_visibility): Revert accidental commit.
2768 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2770 Merge from 'apple/trunk' branch on FSF servers.
2771 * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
2772 the following Objective-C change:
2774 2005-10-07 Fariborz Jahanian <fjahanian@apple.com>
2777 * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
2778 'volatilized' type used in a typeof operator.
2780 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
2782 * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
2783 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
2784 rewrite modelled on gimple_purge_dead_eh_edges.
2785 (gimple_purge_all_dead_abnormal_call_edges): New function.
2786 * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
2787 directly instead of through gimple_purge_dead_abnormal_call_edges.
2788 * tree-ssa-pre.c (need_ab_cleanup): New static variable.
2789 (eliminate): Set bit in need_ab_cleanup for the basic block if we have
2790 removed AB side-effects from one of its statements.
2791 (init_pre): Initialize need_ab_cleanup.
2792 (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
2793 are set in need_ab_cleanup. Free need_ab_cleanup afterward.
2795 2010-10-18 Jakub Jelinek <jakub@redhat.com>
2798 * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
2799 on computed goto argument.
2801 2010-10-18 Richard Guenther <rguenther@suse.de>
2803 PR tree-optimization/45967
2804 * tree-ssa-structalias.c (type_could_have_pointers): Remove.
2805 (could_have_pointers): Likewise.
2806 (handle_rhs_call, handle_const_call, handle_pure_call,
2807 find_func_aliases, intra_create_variable_infos): Remove calls to them.
2808 (struct fieldoff): Add must_have_pointers field.
2809 (type_must_have_pointers): New function.
2810 (field_must_have_pointers): Likewise.
2811 (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
2812 Adjust field merging.
2813 (create_function_info_for): May-have-pointers of varinfo is
2815 (create_variable_info_for_1): Likewise.
2817 2010-10-18 Tejas Belagod <tejas.belagod@arm.com>
2819 * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
2820 of operands to vec_concat.
2822 2010-10-18 Richard Guenther <rguenther@suse.de>
2825 * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
2826 also clear references to entries of it.
2828 2010-10-18 Andi Kleen <ak@linux.intel.com>
2831 * gccbug.in: Remove.
2832 * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
2833 (doc, distclean, install-common): Remove reference to gccbug.
2834 * configure: Regenerate.
2835 * configure.ac (all_outputs): Remove gccbug.
2836 * doc/configfiles.texi: Remove references to gccbug.
2837 * doc/sourcebuild.texi: Dito.
2839 2010-10-18 Jakub Jelinek <jakub@redhat.com>
2842 * fold-const.c (fold_binary_loc): If integer_pow2p has
2843 TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
2845 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
2846 Jeremie Salvucci <jeremie.salvucci@free.fr>
2848 * gengtype.c (verbosity_level): Add variable.
2849 (set_gc_used): Count variables for verbosity.
2850 (close_output_files): Backing up files, counting written ones
2852 (write_types): Count emitted functions for verbosity. Added
2854 (write_enum_defn): Count structures for verbosity. Added debug
2856 (gengtype_long_options): Add "verbose" & "backupdir".
2857 (print_usage): Ditto.
2858 (main): Verbose display of parsed files.
2860 * gengtype.h (verbosity_level): Add declaration.
2862 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
2864 * gengtype.c (parse_program_options): Add allocation of
2865 plugin_files, and correct test on nb_plugin_files.
2867 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2869 Merge from 'apple/trunk' branch on FSF servers.
2871 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2874 * c-decl.c (undeclared_variable): Issue diagnostic on
2875 private 'ivar' access.
2877 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
2880 * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
2881 generated sequence to match *avx_vperm2f128<mode>_nozero.
2882 (vec_interleave_lowv4df): Ditto.
2883 (vec_interleave_highv8sf): Ditto.
2884 (vec_interleave_lowv8sf): Ditto.
2886 2010-10-17 Kai Tietz <kai.tietz@onevision.com>
2888 * libgcov.c (create_file_directory): Enable it for win32 case.
2889 (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
2890 * doc/gcov.texi (GCOV_PREFIX): Adjusted.
2891 (GCOV_PREFIX_SKIP): Likewise.
2893 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2895 * doc/objc.texi (GNU Objective-C runtime API): New section.
2896 (Modern GNU Objective-C runtime API): New section.
2897 (Traditional GNU Objective-C runtime API): New section.
2898 (Executing code before main): Mention that this section is
2899 specific to the GNU Objective-C runtime.
2900 (Garbage Collection): Same.
2902 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
2904 * c-parser.c (c_parser_for_statement): Move initialization of
2905 cond and incr before if.
2907 2010-10-17 Anatoly Sokolov <aesok@post.ru>
2909 * target.def (preferred_output_reload_class): New hook.
2910 * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
2911 * doc/tm.texi: Regenerate.
2912 * targhooks.c (default_preferred_output_reload_class): New function.
2913 * targhooks.h (default_preferred_output_reload_class): Declare.
2914 * reload.c (find_dummy_reload): Change rclass argument type from
2915 enum reg_class to reg_class_t. Change this_alternative array type
2916 from enum reg_class to reg_class_t.
2917 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
2918 (push_reload): Change preferred_class variable type to reg_class_t.
2919 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
2920 * recog.c (reg_fits_class_p): Change result type to bool. Change cl
2921 argument type from enum reg_class to reg_class_t. Use
2922 HARD_REGISTER_NUM_P predicate.
2923 * recog.h (reg_fits_class_p): Update prototype.
2925 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2926 * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
2928 * config/i386/i386.c (ix86_preferred_output_reload_class): Make
2929 static. Change regclass argument and result types from enum reg_class
2931 (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2933 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2935 * c-parser.c (c_parser_objc_class_instance_variables): Update to use
2936 visibility enum, and handle @package.
2938 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2940 * doc/objc.texi (What you can and what you cannot do in +load):
2941 Document that sending messages to constant string objects in +load
2942 is not guaranteed to work.
2944 2010-10-16 Jan Hubicka <jh@suse.cz>
2947 * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
2948 existence of refrences before removing the function.
2950 2010-10-16 Jan Hubicka <jh@suse.cz>
2952 * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
2953 only_called_at_startup and only_called_at_exit.
2954 (cgraph_propagate_frequency): Compute only_called_at_startup and
2955 only_called_at_exit.
2956 * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
2957 only_called_at_exit.
2958 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
2960 * predict.c (compute_function_frequency): Initialize the new flags.
2962 2010-10-16 Eric Botcazou <ebotcazou@adacore.com>
2964 * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
2965 ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
2966 on the bounds of its domain.
2967 * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
2969 2010-10-16 Anatoly Sokolov <aesok@post.ru>
2971 * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
2972 * config/avr/avr-protos.h (preferred_reload_class): Remove.
2973 * config/avr/avr.c (preferred_reload_class): Remove.
2974 * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
2975 * config/pa/pa.c (emit_move_sequence): Update comment
2976 * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
2977 * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
2978 * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
2979 * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
2980 * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
2981 * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
2982 * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
2983 * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
2984 * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
2985 * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
2986 * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
2987 * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
2988 * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
2990 2010-10-16 Joseph Myers <joseph@codesourcery.com>
2992 * opts.c (set_fast_math_flags,
2993 set_unsafe_math_optimizations_flags): Make static.
2994 * toplev.h (set_fast_math_flags,
2995 set_unsafe_math_optimizations_flags): Remove prototypes.
2997 2010-10-16 Joseph Myers <joseph@codesourcery.com>
2999 * config/arm/arm.c (arm_option_optimization): Set
3000 flag_section_anchors to 1 not 2.
3001 * config/i386/i386.c (ix86_option_override_internal): Check
3002 global_options_set.x_flag_zee and
3003 global_options_set.x_flag_omit_frame_pointer.
3004 (ix86_option_optimization): Don't set flag_omit_frame_pointer and
3006 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
3007 global_options_set.x_flag_omit_frame_pointer.
3008 * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
3009 opts->x_flag_section_anchors to 1 not 2.
3010 * config/sh/sh.c (sh_option_optimization): Don't set
3011 flag_schedule_insns to 2.
3012 (sh_option_override): Check
3013 global_options_set.x_flag_schedule_insns.
3014 * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
3016 2010-10-16 Kai Tietz <kai.tietz@onevision.com>
3018 * configure.ac: Make sure inhibit_libc remains false for mingw targets
3020 * configure: Regenerated.
3022 2010-10-15 Xinliang David Li <davidxl@google.com>
3024 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
3026 (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
3027 into a recursive function.
3029 2010-10-15 Uros Bizjak <ubizjak@gmail.com>
3031 * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
3032 (*movdfcc_1): ditto.
3034 2010-10-15 Joseph Myers <joseph@codesourcery.com>
3036 * target.def (target_option.init_struct): New hook.
3037 * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
3038 * doc/tm.texi: Regenerate.
3039 * hooks.c (hook_void_gcc_optionsp): New.
3040 * hooks.h (hook_void_gcc_optionsp): Declare.
3041 * langhooks-def.h (lhd_init_options_struct): Remove.
3042 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
3043 * langhooks.c (lhd_init_options_struct): Remove.
3044 * opts.c (init_options_struct): Also call
3045 targetm.target_option.init_struct.
3046 * config/i386/i386.c (ix86_option_init_struct,
3047 TARGET_OPTION_INIT_STRUCT): New.
3048 (ix86_option_optimization): Move some settings to
3049 ix86_option_init_struct.
3050 * config/pdp11/pdp11.c (pdp11_option_init_struct,
3051 TARGET_OPTION_INIT_STRUCT): New.
3052 (pdp11_option_optimization): Move some settings to
3053 pdp11_option_init_struct.
3054 * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
3055 rs6000_option_init_struct. Use options structure pointer.
3056 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
3057 * config/s390/s390.c (s390_option_init_struct,
3058 TARGET_OPTION_INIT_STRUCT): New.
3059 (s390_option_optimization): Don't set
3060 flag_asynchronous_unwind_tables here.
3061 * config/sh/sh.c (sh_option_init_struct,
3062 TARGET_OPTION_INIT_STRUCT): New.
3063 (sh_option_optimization): Don't set flag_finite_math_only here.
3064 * config/spu/spu.c (spu_option_optimization): Replace by
3065 spu_option_optimization. Use options structure pointer.
3066 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
3068 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3070 * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
3072 * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary. Add
3073 SIGN_EXTRACT and ZERO_EXTRACT which were missing.
3074 (Standard names): Document fma.
3076 * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
3077 __FP_FAST_FMAF, __FP_FAST_FMAL.
3079 * builitns.c (expand_builtin_mathfn_ternary): New function for
3080 expanding ternary math functions, like fma.
3081 (expand_builtin): Call it for the fma builtins.
3083 * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
3086 * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
3087 vectorizable functions to support vectorizing fma.
3089 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
3090 Handle fma builtins.
3092 * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
3093 (UNSPEC_VSX_MSUB): Ditto.
3094 (UNSPEC_VSX_NMADD): Ditto.
3095 (UNSPEC_VSX_NMSUB): Ditto.
3096 (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
3097 of UNSPEC. Renumber combiner patterns.
3098 (vsx_fmsub<mode>4*): Ditto.
3099 (vsx_fnmadd<mode>4*): Ditto.
3100 (vsx_fnmsub<mode>4*): Ditto.
3102 * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
3103 (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
3104 multiply/add. Rename combiner pattern, and add TARGET_FUSED_MADD test.
3105 (altivec_vmaddfp_1): Ditto.
3106 (altivec_vmaddfp_2): Ditto.
3107 (atlivec_mulv4sf3): Ditto.
3108 (altivec_vnmsubfp): Ditto.
3109 (altivec_vnmsubfp_1): Ditto.
3110 (altivec_vnmsubfp_2): Ditto.
3111 (altivec_vnmsubfp_3): Delete.
3113 * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
3114 (fmasf4_fpr): Ditto.
3115 (fmssf4_fpr): Ditto.
3116 (fnmasf4_fpr): Ditto.
3117 (fnmssf4_fpr): Ditto.
3119 (fmadf4_fpr): Ditto.
3120 (fmsdf4_fpr): Ditto.
3121 (fnmadf4_fpr): Ditto.
3122 (fnmsdf4_fpr): Ditto.
3124 * optabs.h (OTI_fma): Add fma optab.
3127 * genopinit.c (optabs): Set fma optab.
3129 * rtl.def (FMA): Add FMA rtl.
3131 * tree.h (mode_has_fma): New function to return if MODE supports a
3132 fast multiply and add instruction.
3133 * builtins.c (mode_has_fma): Ditto.
3135 2010-10-15 Jan Hubicka <jh@suse.cz>
3137 * lto-streamer-out.c (write_symbol): Use pointer set of seen
3138 objects instead of bitmap.
3139 (produce_symtab): Likewise; output defined symbols first.
3141 2010-10-15 Jie Zhang <jie@codesourcery.com>
3143 * doc/invoke.texi: Add -fstrict-volatile-bitfields to
3144 Option Summary and Index.
3146 2010-10-15 Richard Guenther <rguenther@suse.de>
3148 * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
3149 for automatic variables again.
3151 2010-10-15 Joseph Myers <joseph@codesourcery.com>
3153 * doc/extend.texi (Variable Length): Don't refer to VLAs not
3156 2010-10-15 Joseph Myers <joseph@codesourcery.com>
3158 * config/rx/rx.c (rx_option_optimization): Change to
3159 rx_override_options_after_change. Don't change
3160 flag_lto_compression_level. Don't check for changes to whether
3161 FPU instructions can be used. Check and set only
3162 flag_finite_math_only, not other fast-math flags.
3163 (rx_option_override): Call rx_override_options_after_change.
3164 (TARGET_OPTION_OPTIMIZATION): Remove.
3165 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
3167 2010-10-15 Joseph Myers <joseph@codesourcery.com>
3169 * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
3170 disable section anchors for lang_hooks.name[4] != 'O'.
3172 2010-10-15 Joseph Myers <joseph@codesourcery.com>
3174 * config/frv/frv.c (frv_option_optimization,
3175 TARGET_OPTION_OPTIMIZATION): Remove.
3176 * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
3178 2010-10-15 Michael Matz <matz@suse.de>
3180 * cgraphunit.c (clone_of_p): Define unconditionally.
3182 2010-10-15 Richard Guenther <rguenther@suse.de>
3185 * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
3187 2010-10-15 Chung-Lin Tang <cltang@codesourcery.com>
3189 * ifcvt.c (find_active_insn_before): New function.
3190 (find_active_insn_after): New function.
3191 (cond_exec_process_if_block): Use new functions to replace
3192 prev_active_insn() and next_active_insn().
3194 2010-10-14 Yao Qi <yao@codesourcery.com>
3197 * config/arm/arm.c (arm_build_builtin_va_list): Assign
3198 va_list_name to TYPE_STUB_DECL (va_list_type).
3200 2010-10-14 Jan Hubicka <jh@suse.cz>
3203 * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
3204 redirected to clone, be happy.
3205 * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
3206 * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
3207 former_clone_of unconditionally.
3209 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3211 Merge from FSF apple 'trunk' branch.
3212 2006 Fariborz Jahanian <fjahanian@apple.com>
3214 Radars 4436866, 4505126, 4506903, 4517826
3215 * c-parser.c (c_parser, objc_property_attr_context) New flag.
3216 (c_lex_one_token): Handle property attributes.
3217 (c_parser_external_declaration): Handle @property.
3218 (c_parser_declaration_or_fndef): Warn on invalid attributes before
3219 @alias, @class, @end and @property objc keywords.
3220 (c_parser_objc_methodprotolist): Handle @property.
3221 (c_parser_objc_property_attrlist): New.
3222 (c_parser_objc_at_property): New.
3223 * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
3224 (build_modify_expr): Likewise.
3226 2010-10-14 Jakub Jelinek <jakub@redhat.com>
3228 PR tree-optimization/46008
3229 * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
3231 2010-10-14 Richard Guenther <rguenther@suse.de>
3233 PR tree-optimization/44913
3234 * tree-data-ref.c (disjoint_objects_p): Remove.
3235 (dr_may_alias_p): Simplify. Only hand the base object to
3237 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3238 some more trees, bail out instead of asserting.
3239 (ptr_derefs_may_alias_p): Likewise. Export.
3240 (refs_may_alias_p_1): Handle STRING_CSTs.
3241 * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
3243 2010-10-14 Joseph Myers <joseph@codesourcery.com>
3246 * c-typeck.c (build_binary_op): Don't try to compute a semantic
3247 type with excess precision for boolean operations.
3249 2010-10-14 Jeremie Salvucci <jeremie.salvucci@free.fr>
3250 Basile Starynkevitch <basile@starynkevitch.net>
3252 * gengtype.c: Include getopt.h and version.h.
3254 (lang_bitmap, struct outf, outf_p)
3255 (get_output_file_with_visibility, oprintf): Definitions moved to
3257 (output_files, header_file, srcdir, srcdir_len, this_file)
3258 (do_dump): No more static variables.
3260 (dbgprint_count_type_at): Added new function.
3261 (gengtype_long_options): New.
3262 (print_usage, print_version, parse_program_options): New.
3263 (main): Call parse_program_options, and removed old option
3264 handling code. Added some debug output.
3266 * gengtype.h: Updated copyright year.
3267 (lang_bitmap, struct outf, outf_p, header_file, oprintf)
3268 (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
3269 Moved from gengtype.c to here.
3270 (do_debug, read_state_filename, write_state_filename): New variables.
3271 (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
3274 (REVISION): Always defined.
3275 (version.o): Removed ifdef REVISION_c.
3276 (s-gtype): Pass arguments to build/gengtype program.
3277 (build/version.o): Added building rule.
3278 (build/gengtype$(build_exeext)): Added build/version.o.
3280 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3282 Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
3283 * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
3286 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
3288 * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
3289 may_trap_or_fault_p instead of may_trap_p predicate.
3290 * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
3291 (substitute_placeholder_in_expr): Likewise.
3292 * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
3293 flag on MEM_REF nodes.
3294 (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
3295 flags on INDIRECT_REF nodes.
3297 2010-10-14 Nathan Froyd <froydnj@codesourcery.com>
3299 * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
3300 (arm*-*-uclinux*eabi) <tm_file>: Likewise.
3301 (arm*-*-eabi*) <tm_file>: Likewise.
3302 (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
3303 (frv-*-*linux*) <tm_file>: Likewise.
3304 * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
3305 and associated helper macros.
3306 * config/frv/frv-abi.h: Delete.
3308 2010-10-14 Richard Guenther <rguenther@suse.de>
3311 * tree.def (NULLPTR_TYPE): New tree code.
3312 * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
3313 * dwarf2out.c (is_base_type): Likewise.
3314 (gen_type_die_with_usage): Likewise.
3315 * sdbout.c (plain_type_1): Likewise.
3316 * tree.c (build_int_cst_wide): Likewise.
3317 * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
3319 2010-10-14 Joseph Myers <joseph@codesourcery.com>
3321 * params.c (params_finished): New.
3322 (add_params): Assert !params_finished.
3323 (finish_params): New.
3324 (set_param_value_internal): Take params and params_set
3325 parameters. Assert params_finished.
3326 (set_param_value, maybe_set_param_value): Take params and
3327 params_set parameters. Update calls to set_param_value_internal.
3328 (set_default_param_value): Assert !params_finished. Don't use
3329 set_param_value_internal.
3330 (default_param_value, init_param_values): New.
3331 * params.h (struct param_info): Change value to default_value.
3333 (set_param_value, maybe_set_param_value): Add params and
3334 params_set parameters.
3335 (PARAM_VALUE): Get parameters from global_options.
3336 (PARAM_SET_P): Remove.
3337 (finish_params, default_param_value, init_param_values): New.
3338 * common.opt (param_values): New Variable.
3339 * config/arm/arm.c (arm_option_override): Pass extra arguments to
3340 maybe_set_param_value.
3341 * config/i386/i386.c (ix86_option_override_internal): Pass extra
3342 arguments to maybe_set_param_value.
3343 * config/picochip/picochip.c (picochip_option_override): Pass
3344 extra arguments to maybe_set_param_value.
3345 * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
3346 extra arguments to maybe_set_param_value.
3347 * config/s390/s390.c (s390_option_override): Use
3348 maybe_set_param_value instead of set_param_value. Pass extra
3349 arguments to maybe_set_param_value.
3350 * config/sparc/sparc.c (sparc_option_override): Pass extra
3351 arguments to maybe_set_param_value.
3352 * config/spu/spu.c (spu_option_override): Pass extra arguments to
3353 maybe_set_param_value.
3354 * opts.c (handle_param): Take opts and opts_set parameters.
3355 Update call to set_param_value.
3356 (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
3357 initial_loop_invariant_max_bbs_in_loop): Remove.
3358 (init_options_once): Don't set them.
3359 (init_options_struct): Initialize parameters structures.
3360 (default_options_optimization): Use default_param_value when
3361 restoring defaults. Update calls to maybe_set_param_value.
3362 (finish_options): Update calls to maybe_set_param_value.
3363 (common_handle_option): Update calls to handle_param and
3365 * toplev.c (DEFPARAM): Update definition for changes to param_info.
3366 (general_init): Call finish_params.
3368 2010-10-14 Nick Clifton <nickc@redhat.com>
3370 * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
3371 (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
3372 (FIRST_PSEUDO_REGISTER): Increase by one.
3373 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
3374 (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
3375 (MODES_TIEABLE): Call mn10300_modes_tieable.
3376 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
3377 (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
3378 (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
3379 (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
3380 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
3381 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
3382 (mn10300_cc_status_mdep): Delete.
3383 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
3384 * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
3385 the combine-stack-adjust pass.
3386 (print_operand): Use the mode of the comparison operation to
3387 select the comparison suffix.
3388 (notice_update_cc): Delete.
3389 (mn10300_secondary_reload_class): Remove test for stack pointer
3391 (output_tst): Rename to mn10300_output_cmp.
3392 (impossible_plus_operand): Move into predicates.md.
3393 (mn10300_legitimize_address): Make static.
3394 (mn10300_legitimate_address_p): Make static. Only allow SI sized
3395 constant pic operands.
3396 (mn10300_legitimate_constant_p): New function.
3397 (mn10300_case_values_threshold): Make static.
3398 (mn10300_hard_regno_mode_ok): New function.
3399 (mn10300_modes_tieable): New function.
3400 (mn10300_select_cc_mode): New function.
3401 * config/mn10300/predicates.md (impossible_plus_operand): Define.
3402 * config/mn10300/mn10300-protos.h: Tidy.
3403 (mn10300_legitimate_constant_p, mn10300_modes_tieable)
3404 (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
3405 * config/mn10300/mn10300.md (cc attribute): Delete. Replace
3406 with clobbers or sets of CC_REG.
3408 (mov*): Remove use of CLR instruction.
3409 (cbranch_si4_<code>): New pattern/split.
3410 (integer_conditional_branch): New pattern.
3411 (cbranch_sf4_<code>): New pattern/split.
3412 (float_conditional_branch): New pattern.
3413 (casesi): Use addsi3 pattern instead of movsi pattern to add and
3414 move a value at the same time.
3415 (cc0 peepholes): Remove.
3417 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
3419 * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
3420 on RTX_FRAME_RELATED_P insns and the insn to which
3421 NOTE_INSN_EPILOGUE_BEG is attached.
3422 * sched-vis.c (print_value): Allow NULL value.
3424 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
3426 PR rtl-optimization/45570
3427 * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
3428 assert that we are pipelining outer loops. Allow returning
3431 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
3433 * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
3434 (tidy_control_flow): Tidy vertical space.
3435 (sel_remove_bb): New variable idx. Use it to remember the basic
3436 block index before deleting the block.
3437 (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
3438 (sel_merge_blocks): ... here.
3439 * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
3441 2010-10-14 Jakub Jelinek <jakub@redhat.com>
3443 * cse.c (is_dead_reg): Change into inline function that is not
3444 called through for_each_rtx.
3445 (set_live_p): Adjust caller.
3446 (insn_live_p): Don't reset DEBUG_INSNs here.
3447 (struct dead_debug_insn_data): New data.
3448 (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
3449 (delete_trivially_dead_insns): If there is just one setter for the
3450 dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
3451 and add DEBUG_INSN for it right before the removed setter and
3452 use the DEBUG_EXPR instead of the dead pseudo.
3454 2010-10-14 Zdenek Dvorak <rakdver@kam.uniff.cz>
3456 * et-forest.c (et_nca): Return NULL immediately when
3457 the dominance forest has disjoint components.
3459 2010-10-13 Vladimir Makarov <vmakarov@redhat.com>
3461 * ira.c (setup_class_hard_regs): Fix typo in indexing
3462 ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
3464 2010-10-14 Tijs Wiebe Lefering <twlevo@gmail.com>
3466 * graph.c (inbb): New variable.
3467 (start_bb): Set inbb to 1 if output is inside of a building block.
3468 (end_bb): Check if output is inside of a building block.
3470 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
3472 PR rtl-optimization/45912
3473 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
3474 regno of registers instead of their index to compute the alignment.
3476 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
3478 * config/i386/i386.c (ix86_build_const_vector): Check vector
3479 mode instead of scalar mode.
3480 (ix86_build_signbit_mask): Likewise.
3481 (ix86_expand_fp_absneg_operator): Updated.
3482 (ix86_expand_copysign): Likewise.
3483 (ix86_expand_int_vcond): Likewise.
3484 (ix86_emit_swdivsf): Likewise.
3485 (ix86_sse_copysign_to_positive): Likewise.
3486 (ix86_expand_sse_fabs): Likewise.
3487 * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
3488 * config/i386/sse.md (copysign<mode>3): Likewise.
3489 (sse2_cvtudq2ps): Likewise.
3490 (vec_unpacku_float_hi_v4si): Likewise.
3491 (vec_unpacku_float_lo_v4si): Likewise.
3493 * config/i386/i386.c (ix86_builtins): Add
3494 IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
3495 (bdesc_args): Likewise.
3496 (ix86_builtin_vectorized_function): Support
3497 IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
3498 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
3499 and IX86_BUILTIN_CVTPS2DQ256.
3500 (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
3502 * config/i386/sse.md (STORENT_MODE): New.
3503 (VEC_FLOAT_MODE): Likewise.
3504 (VEC_EXTRACT_MODE): Likewise.
3505 (*avx_cvtdq2pd256_2): Likewise.
3506 (vec_pack_trunc_v4df): Likewise.
3507 (vec_interleave_highv8sf): Likewise.
3508 (vec_interleave_lowv8sf): Likewise.
3509 (storent<mode>): Macroized.
3510 (<code><mode>2: absneg): Likewise.
3511 (copysign<mode>3): Likewise.
3512 (vec_extract<mode>): Likewise.
3515 * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
3518 2010-10-13 Richard Guenther <rguenther@suse.de>
3519 H.J. Lu <hongjiu.lu@intel.com>
3521 * config/i386/sse.md (reduc_splus_v8sf): Add.
3522 (reduc_splus_v4df): Likewise.
3523 (vec_unpacks_hi_v8sf): Likewise.
3524 (vec_unpacks_lo_v8sf): Likewise.
3525 (*avx_cvtps2pd256_2): Likewise.
3526 (vec_unpacks_float_hi_v8si): Likewise.
3527 (vec_unpacks_float_lo_v8si): Likewise.
3528 (vec_interleave_highv4df): Likewise.
3529 (vec_interleave_lowv4df): Likewise.
3531 2010-10-13 Richard Guenther <rguenther@suse.de>
3534 * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
3535 alone if there are no virtual methods.
3537 2010-10-13 Richard Henderson <rth@redhat.com>
3539 * expr.c (build_personality_function): Take parameter LANG instead
3540 of parameter NAME. Build the name based on the lang prefix and the
3541 unwind method in use.
3542 * tree.c (lhd_gcc_personality): Update call to
3543 build_personality_function.
3545 2010-10-13 Richard Guenther <rguenther@suse.de>
3548 * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
3550 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
3552 * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
3553 Canonicalize input operands of ASM_OPERANDS insns.
3555 2010-10-13 Richard Guenther <rguenther@suse.de>
3557 PR tree-optimization/45788
3558 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
3559 EH update until fixup-cfg.
3561 2010-10-13 Julian Brown <julian@codesourcery.com>
3563 * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
3564 from CORE_REGS and GENERAL_REGS classes.
3565 * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
3566 final constraint for register preferencing.
3568 2010-10-13 Richard Guenther <rguenther@suse.de>
3570 PR tree-optimization/45970
3571 * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
3572 * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
3573 (stmt_kills_ref_p): Likewise.
3574 * tree-ssa-dse.c (dse_optimize_stmt): Use it.
3576 2010-10-13 Richard Guenther <rguenther@suse.de>
3578 PR tree-optimization/45982
3579 * tree-ssa-structalias.c (make_constraints_to): New function.
3580 (make_constraint_to): Implement in terms of make_constraints_to.
3581 (find_func_aliases): Properly make return values of pure/const
3582 functions escape if they assign to sth that is not a pointer.
3584 2010-10-13 Richard Guenther <rguenther@suse.de>
3587 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
3588 Fixup the CFG when EH was fixed up.
3590 2010-10-13 Ira Rosen <irar@il.ibm.com>
3592 * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
3593 Use operand's type for POINTER_PLUS_EXPR.
3595 2010-10-13 Alexandre Oliva <aoliva@redhat.com>
3597 * c-parser.c (c_parser_for_statement): Initialize incr.
3599 2010-10-12 Xinliang David Li <davidxl@google.com>
3601 PR tree-optimization/45972
3602 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
3603 with too many arguments.
3605 2010-10-12 Jakub Jelinek <jakub@redhat.com>
3608 * tree-ssa-forwprop.c: Include expr.h.
3609 (constant_pointer_difference, simplify_builtin_call): New functions.
3610 (tree_ssa_forward_propagate_single_use_vars): Call
3611 simplify_builtin_call on builtin calls.
3613 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
3615 * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
3616 (*adddi3_extend_sp32): Likewise.
3617 (*subdi3_insn_sp32): Likewise.
3618 (*subdi3_extend_sp32): Likewise.
3619 (*negdi2_sp32): Use negative test for consistency.
3621 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
3623 * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
3624 (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
3625 * config/fixed-bit.h: Likewise.
3626 * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
3627 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
3628 * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
3629 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
3630 (DF_SIZE): Likewise.
3631 * doc/tm.texi: Regenerate.
3633 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
3635 * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
3636 * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
3637 (*isel_reversed_unsigned_<mode>): New.
3638 * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
3639 as valid comparisons and adjust operands and output appropriately.
3640 (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
3642 2010-10-12 Chung-Lin Tang <cltang@codesourcery.com>
3644 * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
3645 DATA_ALIGNMENT and add COND parameter. Update comments above.
3646 (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
3647 (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
3649 2010-10-12 H.J. Lu <hongjiu.lu@intel.com>
3652 * exec-tool.in: Support '-plugin' as the second option to the linker.
3654 2010-10-12 Richard Henderson <rth@redhat.com>
3657 * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
3658 (expand_stack_vars): Assert large base allocated when used.
3660 2010-10-12 Richard Guenther <rguenther@suse.de>
3662 * tree-ssa-structalias.c (get_constraint_for_1): Constants
3663 only point to nonlocal, not anything.
3665 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
3667 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
3668 unwind info for exceptions.
3670 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3673 * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
3674 Document optional target selector.
3676 2010-10-12 Joseph Myers <joseph@codesourcery.com>
3678 * flag-types.h: New.
3679 * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
3680 (FLAGS_H): Include flag-types.h. Include $(OPTIONS_H) instead of
3682 (OPTIONS_H): Define.
3683 (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
3685 * configure.ac (tm_include_list): Include options.h not flags.h.
3686 * configure: Regenerate.
3687 * flags.h: Include flag-types.h. Include options.h at top of file
3689 (enum debug_info_type, enum debug_info_level, enum
3690 debug_info_usage, enum symbol_visibility, struct visibility_flags,
3691 enum ira_algorithm, enum ira_region, enum excess_precision, enum
3692 graph_dump_types, enum stack_check_type,
3693 enum warn_strict_overflow_code): Move to flag-types.h
3694 * opth-gen.awk: Include flag-types.h in options.h.
3696 2010-10-12 Jakub Jelinek <jakub@redhat.com>
3698 * expr.c (store_expr): Share code for STRING_CST and
3699 MEM_REF of &STRING_CST cases. Don't require BLKmode, instead
3700 check if target is a MEM.
3702 * rtl.h: Include hashtab.h.
3703 (iterative_hash_rtx): New prototype.
3704 * rtl.c (iterative_hash_rtx): New function.
3705 * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
3706 (output_loc_list): Return immediately if emitted is set, set it.
3707 (hash_loc_operands, hash_locs, hash_loc_list,
3708 compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
3709 optimize_location_lists_1, optimize_location_lists): New function.
3710 (dwarf2out_finish): Call optimize_location_lists.
3711 * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
3713 2010-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3717 * Makefile.in ($(lang_checks_parallel))
3718 ($(lang_checks_parallelized)): Use single quotes for
3719 $(RUNTESTFLAGS), to allow passing quoted content.
3721 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3723 * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
3724 actual_oldval. Use __builtin_expect.
3725 (SUBWORD_VAL_CAS): Likewise.
3727 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
3729 * recog.c (nonmemory_operand): Call immediate_operand for
3730 CONSTANT_P operands.
3732 2010-10-11 Uros Bizjak <ubizjak@gmail.com>
3734 * config/i386/i386.md (movmem<mode>): Macroize expander from
3735 movmem{si,di} using SWI48 mode iterator.
3736 (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
3737 *strmovsi_rex_1 using P mode iterator.
3738 (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
3739 (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
3740 (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
3741 (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
3742 (setmem<mode>): Macroize expander from setmem{si,di} using
3743 SWI48 mode iterator.
3744 (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
3745 *strsetsi_rex_1 using P mode iterator.
3746 (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
3747 (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
3748 (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
3749 (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
3750 (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
3751 (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
3752 (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
3754 (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
3755 *strlenqi_rex_1 using P mode iterator.
3757 2010-10-11 Bernd Schmidt <bernds@codesourcery.com>
3760 * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
3762 (mark_ref_live, mark_ref_dead): Use them.
3763 (make_pseudo_conflict): New arg ORIG_DREG. All callers changed.
3764 Save the original reg, and use the new functions.
3765 (check_and_make_def_use_conflict): New arg ORIG_DREG. All callers
3767 (check_and_make_def_conflict): Save the original reg.
3769 2010-10-11 Martin Jambor <mjambor@suse.cz>
3772 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
3775 2010-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3777 * Makefile.in ($(lang_checks_parallel))
3778 ($(lang_checks_parallelized)): Use single quotes for
3779 $(RUNTESTFLAGS), to allow passing quoted content.
3782 * opt-functions.awk (BEGIN): New section.
3783 (lower, upper, digit, alnum): New variables.
3784 (static_var, opt_sanitized_name): Use alnum instead of character
3785 classes, for non-C locale.
3786 * optc-gen.awk: Likewise.
3787 * opth-gen.awk: Likewise.
3789 2010-10-11 Anatoly Sokolov <aesok@post.ru>
3791 * target.def (preferred_reload_class): New hook.
3792 * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
3793 * doc/tm.texi: Regenerate.
3794 * targhooks.c (default_preferred_reload_class): New function.
3795 * targhooks.h (default_preferred_reload_class): Declare.
3796 * reload.c (find_dummy_reload): Change preferred_class variable type
3797 from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
3799 (find_reloads): Change goal_alternative array type from int to
3800 reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
3801 (push_reload, find_reloads_address_part): Use
3802 TARGET_PREFERRED_RELOAD_CLASS target hook.
3803 * reload1.c (emit_input_reload_insns): Ditto.
3804 * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
3805 hook. Change rclass argument and secondary_class variable types from
3806 'enum reg_class' to reg_class_t.
3808 * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
3809 * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
3810 * config/i386/i386.c (ix86_preferred_reload_class): Make static.
3811 Change regclass argument and result types from enum reg_class to
3813 (TARGET_PREFERRED_RELOAD_CLASS): Define.
3815 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
3817 * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
3818 in masking operations.
3819 (simplify_const_unary_operation): Likewise.
3820 (simplify_binary_operation_1): Likewise.
3821 (simplify_const_binary_operation): Likewise.
3822 (simplify_const_relational_operation): Likewise.
3823 (simplify_ternary_operation): Likewise.
3824 (simplify_immed_subreg): Likewise.
3826 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3829 * doc/tm.texi.in (SUPPORTS_WEAK): Update.
3830 (TARGET_SUPPORTS_WEAK): New.
3831 * doc/tm.texi: Regenerate.
3832 * defaults.h (SUPPORTS_WEAK): Update comment.
3833 (TARGET_SUPPORTS_WEAK): New.
3834 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
3835 * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
3837 (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
3838 make_decl_one_only): Likewise.
3839 * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
3840 TARGET_SUPPORTS_WEAK.
3841 (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
3842 instead of SUPPORTS_WEAK.
3844 2010-10-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3846 * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
3848 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
3850 * vec.h (VEC_qsort): Define.
3851 * dbxout.c (output_used_types): Use it.
3852 * df-scan.c (df_sort_and_compress_refs): Likewise.
3853 (df_sort_and_compress_mws): Likewise.
3854 * genautomata.c (uniq_sort_alt_states): Likewise.
3855 (evaluate_equiv_classes): Likewise.
3856 (output_trans_table): Likewise.
3857 (output_state): Likewise.
3858 * gimplify.c (compare_case_labels): Likewise.
3859 * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
3860 * ipa.c (build_cdtor_fns): Likewise.
3861 * lto.c (lto_wpa_write_files): Likewise.
3862 * sel-sched.c (fill_vec_av_set): Likewise.
3863 * tree-predcom.c (determine_roots_comp): Likewise.
3864 * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
3865 (splice_param_accesses): Likewise.
3866 * tree-ssa-live.c (dump_enumerated_decls): Likewise.
3867 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
3868 (reassociate_bb): Likewise.
3869 * tree-ssa-sccvn.c (sort_scc): Likewise.
3870 * tree-ssa-structalias.c (sort_fieldstack): Likewise.
3872 2010-10-11 Ian Lance Taylor <iant@google.com>
3874 * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
3875 * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
3876 TREE_THIS_NOTRAP when appropriate.
3877 (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
3878 * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
3879 newly created MEM_REF.
3881 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
3883 Nathan Froyds patch to hooks FUNCTION_ARG etc.
3884 * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
3885 (picochip_incoming_function_arg): Delete.
3886 (picochip_arg_advance): Delete.
3887 * config/picochip/picochip.h (FUNCTION_ARG): Delete.
3888 (FUNCTION_INCOMING_ARG): Delete.
3889 (FUNCTION_ARG_ADVANCE): Delete.
3890 * config/picochip/picochip.c (picochip_function_arg): Take a
3891 const_tree and a bool.
3892 (picochip_incoming_function_arg): Likewise.
3893 (picochip_arg_advance): Likewise.
3894 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
3895 (TARGET_FUNCTION_ARG_ADVANCE): Define.
3897 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3900 * ipa.c (build_cdtor): Delete endless loop.
3902 2010-10-07 Andi Kleen <ak@linux.intel.com>
3904 * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
3906 (checksum-options): Add.
3907 (cc1-dummy): Remove.
3908 (cc1-checksum): Change to run checksum over object files
3910 * dummy-checksum.c: Remove.
3911 * genchecksum.c: Update copyright.
3912 (usage): Allow multiple arguments.
3914 (dosum): Change for incremental checksum. Remove C output.
3915 (main): Iterate over all argument files. Add C output.
3917 2010-10-11 Joseph Myers <joseph@codesourcery.com>
3919 * params.c (set_param_value_internal): New.
3920 (set_param_value): Use set_param_value_internal.
3921 (maybe_set_param_value, set_default_param_value): New.
3922 * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
3923 (maybe_set_param_value, set_default_param_value): Declare.
3924 * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
3925 * config/i386/i386.c (ix86_option_override_internal): Use
3926 maybe_set_param_value.
3927 * config/ia64/ia64.c (ia64_option_default_params,
3928 TARGET_OPTION_DEFAULT_PARAMS): New.
3929 (ia64_option_optimization): Move some code to
3930 ia64_option_default_params.
3931 * config/picochip/picochip.c (picochip_option_override): Use
3932 maybe_set_param_value.
3933 * config/rs6000/rs6000.c (rs6000_option_default_params,
3934 TARGET_OPTION_DEFAULT_PARAMS): New.
3935 (rs6000_option_override_internal): Use maybe_set_param_value.
3936 (rs6000_option_optimization): Move some code to
3937 rs6000_option_default_params.
3938 * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
3939 * config/sh/sh.c (sh_option_default_params,
3940 TARGET_OPTION_DEFAULT_PARAMS): New.
3941 (sh_option_optimization): Move some code to sh_option_default_params.
3942 * config/sparc/sparc.c (sparc_option_override): Use
3943 maybe_set_param_value.
3944 * config/spu/spu.c (spu_option_default_params,
3945 TARGET_OPTION_DEFAULT_PARAMS): New.
3946 (spu_option_optimization): Move some code to spu_option_default_params.
3947 (spu_option_override): Use maybe_set_param_value.
3948 * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
3949 * doc/tm.texi: Regenerate.
3950 * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
3951 * opts.c (init_options_once): Use PARAM_VALUE not direct access to
3953 (default_options_optimization): Use maybe_set_param_value.
3954 (finish_options): Use maybe_set_param_value.
3955 * target.def (target_option.default_params): New hook.
3956 * toplev.c (general_init): Call targetm.target_option.default_params.
3958 2010-10-11 Ira Rosen <irar@il.ibm.com>
3960 PR tree-optimization/45902
3961 * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
3962 vector type for constants, unless it's a pointer.
3964 2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3966 * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
3968 2010-10-11 Jakub Jelinek <jakub@redhat.com>
3971 * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
3972 (ix86_delegitimize_address): Use it.
3974 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
3976 * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
3978 2010-10-10 Uros Bizjak <ubizjak@gmail.com>
3980 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
3981 to cum struct in the call to function_arg_advance.
3982 (alpha_function_arg_advance): Mark named as unused.
3984 2010-10-10 Richard Sandiford <rdsandiford@googlemail.com>
3986 * config/mips/mips.c (mips_handle_option): Make "value" with
3989 2010-10-09 Richard Henderson <rth@redhat.com>
3992 * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
3993 remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN. Honor
3994 required_align, tidy the code a bit. Emit split_stack code in the
3995 right place. Mark the return value with the alignment properly.
3996 * expr.h (allocate_dynamic_stack_space): Update decl.
3997 * builtins.c (expand_builtin_apply): Update call to
3998 allocate_dynamic_stack_space.
3999 (expand_builtin_alloca): Likewise. Remove TARGET parameter.
4000 * calls.c (initialize_argument_information): Update call to
4001 allocate_dynamic_stack_space.
4002 (expand_call): Likewise.
4004 * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
4005 Don't update_stack_alignment here.
4006 (alloc_stack_frame_space): Make ALIGN unsigned.
4007 (stack_var_cmp): Sort by alignment too.
4008 (partition_stack_vars): Don't merge large and small alignment vars.
4009 (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
4010 Take care when BASE is not virtual_stack_vars_rtx.
4011 (expand_stack_vars): Allocate dynamic stack space for large
4012 alignment variables.
4013 (expand_one_stack_var): Update all to expand_one_stack_var_at.
4014 (defer_stack_allocation): True for large alignment vars.
4015 (update_stack_alignment): Merge into ...
4016 (expand_one_var): ... here.
4017 (gimple_expand_cfg): Place code from expand_stack_vars.
4019 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4021 * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4022 * config/pdp11/pdp11.c (pdp11_function_arg): New function.
4023 (pdp11_function_arg_advance): New function.
4024 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4026 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4028 * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
4029 * libgcc2.c: Likewise.
4031 2010-10-09 Richard Guenther <rguenther@suse.de>
4034 * lto-streamer-in.c (lto_register_var_decl_in_symtab):
4035 Properly check if a decl is an automatic var.
4037 2010-10-09 Richard Guenther <rguenther@suse.de>
4040 * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
4042 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4044 * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
4045 * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4046 * config/mmix/mmix.c (mmix_function_arg): Rename to...
4047 (mmix_function_arg_1): ...this. Make static. Take a const_tree and
4049 (mmix_function_arg): New function.
4050 (mmix_function_incoming_arg): New function.
4051 (mmix_function_arg_advance): New function.
4052 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
4053 (TARGET_FUNCTION_ARG_ADVANCE): Define.
4055 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4057 * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4058 * config/vax/vax.c (vax_function_arg): New function.
4059 (vax_function_arg_advance): New function.
4060 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4062 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4064 * config/pa/pa-protos.h (function_arg): Delete.
4065 * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4066 * config/pa/pa.c (function_arg): Rename to...
4067 (pa_function_arg): ...this. Make static. Take a const_tree and
4069 (pa_function_arg_advance): New function.
4070 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4072 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4074 * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4075 * config/m68k/m68k.c (m68k_function_arg): New function.
4076 (m68k_function_arg_advance): New function.
4077 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4079 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4081 * config/avr/avr-protos.h (function_arg): Delete.
4082 (function_arg_advance): Delete.
4083 * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4084 * config/avr/avr.c (function_arg): Rename to...
4085 (avr_function_arg): ...this. Make static. Take a const_tree and
4087 (function_arg_advance): Rename to...
4088 (avr_function_arg_advance): ...this. Make static. Take a
4089 const_tree and a bool.
4090 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4092 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4094 * config/alpha/alpha-protos.h (function_arg): Delete.
4095 * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4096 * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
4097 * config/alpha/alpha.c (function_arg): Rename to...
4098 (alpha_function_arg): ...this. Make static. Take a const_tree and
4099 a bool. Delete TARGET_ABI_UNICOSMK code.
4100 (alpha_function_arg_advance): New function.
4101 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4103 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4105 * config/mep/mep-protos.h (mep_function_arg): Delete.
4106 (mep_function_arg_advance): Delete.
4107 * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4108 * config/mep/mep.c (mep_function_arg): Make static. Take a
4109 const_tree and a bool.
4110 (mep_function_arg_advance): Likewise.
4111 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4113 2010-10-09 Richard Guenther <rguenther@suse.de>
4115 PR tree-optimization/45945
4116 * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
4118 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
4120 PR tree-optimization/45612
4121 * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
4122 Test LABEL_DECLs as well. Fix formatting issues.
4123 (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
4124 whose label is present in NON_SSA_VARS.
4125 (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED. Handle LABEL_DECLs
4126 as well. Fix formatting issues.
4127 (visit_bb): Fix typos and formatting issue.
4129 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4131 PR tree-optimization/45950
4132 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
4133 before initializing vno->op.
4135 2010-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
4137 * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
4138 * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
4140 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
4143 * config/i386/i386.c (ix86_binary_operator_ok): Support
4144 "andhi/andsi/anddi" as a zero-extending move.
4146 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4148 * builtins.c (fold_call_stmt): Don't copy gimple call arguments
4149 into a temporary array.
4151 2010-10-08 Jakub Jelinek <jakub@redhat.com>
4153 PR tree-optimization/45903
4154 * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
4155 of {A,L}SHIFTRT of MEM.
4157 2010-10-08 Richard Guenther <rguenther@suse.de>
4159 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
4160 Re-construct BLOCK_VARS.
4161 (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
4162 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
4163 * tree.c (free_lang_data_in_block): Remove.
4164 (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
4165 Do not touch the BLOCK tree.
4166 * expr.c (expand_expr_real_1): Allow externals.
4168 2010-10-08 Richard Guenther <rguenther@suse.de>
4170 * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
4171 Do not output BLOCK_SUBBLOCKS.
4172 * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
4173 Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
4174 Re-construct BLOCK_SUBBLOCKS of parent block.
4175 (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
4176 for BINFO_BASE_ACCESSES.
4178 2010-10-08 Joseph Myers <joseph@codesourcery.com>
4180 * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
4181 (TREE_H): Include $(FLAGS_H) instead of options.h.
4182 (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
4183 * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
4184 * common.opt (flag_complex_method, flag_evaluation_order,
4185 flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
4186 Variable declarations.
4187 * configure.ac (tm_include_list): Include flags.h instead of options.h.
4188 * configure: Regenerate.
4189 * flags.h: Condition out contents for target libraries. Include
4190 options.h at end of file.
4191 (flag_complex_method, flag_ira_algorithm, flag_ira_region,
4192 flag_evaluation_order, flag_warn_unused_result): Remove.
4193 * gcc.c (main): Intialize global_options with global_options_init.
4194 * langhooks-def.h (lhd_init_options_struct): Declare.
4195 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
4196 (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
4197 * langhooks.c (lhd_init_options_struct): New.
4198 * langhooks.h (struct lang_hooks): Add init_options_struct.
4199 Update comment on init_options.
4200 * optc-gen.awk: Generate initializer for global_options_init, not
4202 * opth-gen.awk: Condition out structure declarations for target
4203 libraries. Declare global_options_init.
4204 * opts-common.c: Include flags.h instead of options.h.
4205 * opts.c (flag_warn_unused_result): Remove.
4206 (read_cmdline_options): Take gcc_options parameters. Pass them to
4207 read_cmdline_option.
4208 (initial_lang_mask, initial_min_crossjump_insns,
4209 initial_max_fields_for_field_sensitive,
4210 initial_loop_invariant_max_bbs_in_loop): Define at file scope.
4211 (init_options_once): New. Split out of decode_options.
4212 (init_options_struct): New. Split out of decode_options.
4213 (decode_cmdline_options_to_array_default_mask): New.
4214 (default_options_optimization): New. Split out of decode_options.
4215 (decode_options): Move most code to other functions. Update call
4216 to read_cmdline_options.
4217 (finish_options): New. Split out of decode_options.
4218 * opts.h (decode_options): Add gcc_options parameters.
4219 (init_options_once, init_options_struct,
4220 decode_cmdline_options_to_array_default_mask): New.
4221 * toplev.c (flag_complex_method, flag_ira_algorithm,
4222 flag_ira_region, flag_evaluation_order): Remove.
4223 (general_init): Use global_options_init for initial flag values
4225 (toplev_main): Call init_options_once, init_options_struct,
4226 lang_hooks.init_options_struct,
4227 decode_cmdline_options_to_array_default_mask and
4228 lang_hooks.init_option before decode_options. Update arguments to
4230 * tree.h: Include flags.h instead of options.h.
4232 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4234 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4236 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4238 * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
4240 * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
4241 (FUNCTION_INCOMING_ARG): Delete.
4242 * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
4243 (function_arg_slotno): Likewise. Take bool arguments.
4244 (sparc_arg_partial_bytes): Update call to it.
4245 (function_arg): Rename to...
4246 (sparc_function_arg_1): ...this. Take bool arguments.
4247 (sparc_function_arg, sparc_function_incoming_arg): New functions.
4248 (function_arg_advance): Rename to...
4249 (sparc_function_arg_advance): ...this. Take bool argument.
4250 (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
4251 (TARGET_FUNCTION_INCOMING_ARG): Define.
4253 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4255 * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
4257 * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4258 * config/bfin/bfin.c (function_arg_advance): Rename to...
4259 (bfin_function_arg_advance): ...this. Make static. Take const_tree
4261 (function_arg): Rename to...
4262 (bfin_function_arg): ...this. Make static. Take const_tree and bool
4264 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4266 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4268 * config/score/score-protos.h (score_function_arg): Delete.
4269 (score_function_arg_advance): Delete.
4270 * config/score/score3.h (score3_function_arg_advance): Take a
4271 const_tree and a bool.
4272 (score3_function_arg): Likewise.
4273 * config/score/score7.h (score7_function_arg_advance): Likewise.
4274 (score7_function_arg): Likewise.
4275 * config/score/score3.c (score3_classify_arg): Likewise.
4276 (score3_function_arg_advance, score3_function_arg): Likewise.
4277 * config/score/score7.c (score7_classify_arg): Likewise.
4278 (score7_function_arg_advance, score7_function_arg): Likewise.
4279 * config/score/score.c (score_function_arg_advance): Likewise.
4280 (score_function_arg): Likewise. De-const-ify `cum' argument.
4281 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4283 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4285 * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
4286 (s390_function_arg): Delete.
4287 * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4288 * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
4289 (s390_function_arg_integer): Likewise.
4290 (s390_function_arg_advance): Make static. Take a const_tree and
4292 (s390_function_arg): Likewise.
4293 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4295 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4297 * config/spu/spu-protos.h (spu_function_arg): Delete.
4298 * config/spu/spu.h (FUNCTION_ARG): Delete.
4299 (FUNCTION_ARG_ADVANCE): Move code to ...
4300 * config/spu/spu.c (spu_function_arg_advance): New function.
4301 (spu_function_arg): Make static. Take a const_tree and a bool.
4302 (spu_setup_incoming_varargs): Call spu_function_arg_advance.
4303 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4305 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4307 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4309 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4311 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
4312 (init_vn_nary_op_from_op): New function.
4313 (init_vn_nary_op_from_stmt): New function.
4314 (vn_nary_op_lookup_1): New function.
4315 (sizeof_vn_nary_op): New function.
4316 (alloc_vn_nary_op_noinit): New function.
4317 (alloc_vn_nary_op): New function.
4318 (vn_nary_op_insert_into): New function.
4319 (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
4320 (vn_nary_op_lookup): Likewise.
4321 (vn_nary_op_lookup_stmt): Likewise.
4322 (vn_nary_op_insert_pieces): Likewise.
4323 (vn_nary_op_insert): Likewise.
4324 (vn_nary_op_insert_stmt): Likewise.
4325 (copy_nary): Likewise.
4326 (set_value_id_for_result): New function.
4327 (set_hashtable_value_ids): Call it.
4329 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4331 * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4332 * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
4334 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4336 * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
4337 * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4339 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
4342 * cse.c (cse_extended_basic_block): Preserve cc0 info across
4343 debug isnsn. Skip them when searching for cc0 setter.
4344 (set_live_p): Skip debug insns when searching for cc0 user.
4346 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
4352 * tree-pretty-print.c (dump_generic_node): Explicitly dump the
4353 type of MEM_REFs to INTEGER_CSTs.
4355 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
4357 * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
4358 m68hc11_print_operand_address.
4360 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
4362 * builtins.c (rewrite_call_expr): Move code to...
4363 (rewrite_call_expr_valist): ...here. Call build_call_expr_loc_array.
4364 (rewrite_call_expr_array): New function.
4365 (fold_builtin_sprintf_chk_1): New function.
4366 (fold_builtin_sprintf_chk): Call it.
4367 (gimple_fold_builtin_sprintf_chk): Likewise.
4368 (fold_builtin_snprintf_chk_1): New function.
4369 (fold_builtin_snprintf_chk): Call it.
4370 (gimple_fold_builtin_snprintf_chk): Likewise.
4371 (gimple_rewrite_call_expr): Delete.
4373 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
4375 * config.host: Update copyright year.
4377 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
4379 * config.host (host_lto_plugin_soname): New shell variable.
4380 * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
4381 * config.in: Regenerate.
4382 * configure: Regenerate.
4383 * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
4384 LTO plugin shared library.
4386 2010-10-07 Richard Henderson <rth@redhat.com>
4388 * target.h (enum unwind_info_type): Move ...
4389 * coretypes.h: ... here.
4391 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
4393 * doc/objc.texi (Fast enumeration protocol): Mention that
4394 'unsigned int' can also be used instead of 'unsigned long' in
4395 countByEnumeratingWithState:objects:count:.
4397 2010-10-07 Martin Jambor <mjambor@suse.cz>
4399 * tree-sra.c (struct access): New field grp_assignment_write.
4400 (dump_access): Dump grp_assignment_write.
4401 (build_accesses_from_assign): Set grp_assignment_write.
4402 (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
4403 (mark_read_status): Renamed to mark_rw_status, individual values
4405 (analyze_access_subtree): Changed type of mark_write to
4406 mark_read_status. Fixed propagating of mark_read and
4407 mark_write. Changed benefit estimate. Updated comment.
4409 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
4412 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
4413 check for vectype_out returned by get_vectype_for_scalar_type().
4415 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
4418 * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
4419 constraint, add register specifier in instruction template.
4420 (neon_vec_pack_trunc_<mode>): Likewise.
4421 (neon_vec_<US>mult_<mode>): Add register specifier to
4422 instruction template.
4424 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
4426 * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
4428 (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
4429 (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
4430 * config/i386/t-cygwin (cygwin1.o): Delete build rule.
4431 (cygwin2.o): Likewise.
4432 * config/i386/cygwin1.c: Delete file.
4433 * config/i386/cygwin2.c: Likewise.
4434 * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
4435 make all {%!mno-cygwin} ones unconditional.
4436 (STARTFILE_SPEC): Likewise.
4437 (REAL_LIBGCC_SPEC): Likewise.
4438 (LIB_SPEC): Likewise.
4439 (CXX_WRAP_SPEC): Likewise.
4440 (LINK_SPEC): Likewise.
4441 (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
4442 (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
4443 (cygwin_gplusplus_include_dir): Delete now-unused array.
4444 (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
4445 (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
4446 (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
4447 (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
4448 (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
4449 (cygwin_local_include_dir): Delete now-unused array.
4450 (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
4451 (cygwin_cross_include_dir): Delete now-unused array.
4452 (CROSS_INCLUDE_DIR): Don't redefine to point to it.
4453 (cygwin_tool_include_dir): Delete now-unused array.
4454 (TOOL_INCLUDE_DIR): Don't redefine to point to it.
4455 (cygwin_standard_include_dir): Delete now-unused array.
4456 (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
4457 (GEN_CVT_ARRAY): Delete now-unused macro definition.
4458 (cvt_to_mingw): Delete now-unused array.
4459 (mingw_scan): Remove prototype of deleted function.
4460 (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
4461 * config/i386/cygming.opt (mcygwin): Delete target-specific option.
4462 * doc/invoke.texi (-mcygwin): Don't document removed option.
4463 (-mno-cygwin): Likewise.
4465 2010-10-07 Richard Guenther <rguenther@suse.de>
4467 * machmode.h (mode_for_vector): Declare.
4468 * stor-layout.c (mode_for_vector): New function, split out from ...
4469 (layout_type): ... here.
4470 * tree-vectorizer.h (current_vector_size): Declare.
4471 * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
4472 mask vector type is available.
4473 (get_vectype_for_scalar_type): Rename to ...
4474 (get_vectype_for_scalar_type_and_size): ... this. Get a vector
4476 (get_vectype_for_scalar_type): New wrapper around
4477 get_vectype_for_scalar_type_and_size using current_vector_size.
4478 (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
4479 * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
4480 of vect_analyze_loop here.
4481 (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
4482 * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
4484 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
4485 V8SF to V8SI conversion builtin.
4487 2010-10-07 Richard Guenther <rguenther@suse.de>
4489 * target.def (autovectorize_vector_sizes): New target hook.
4490 * targhooks.c (default_autovectorize_vector_sizes): New function.
4491 * targhooks.h (default_autovectorize_vector_sizes): Declare.
4492 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
4494 * doc/tm.texi: Update.
4495 * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
4496 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4498 2010-10-07 Richard Guenther <rguenther@suse.de>
4500 * target.def (units_per_simd_word): Rename to ...
4501 (preferred_simd_mode): ... this. Return mode instead of size.
4502 * targhooks.c (default_units_per_simd_word): Rename to ...
4503 (default_preferred_simd_mode): ... this. Return word_mode.
4504 * targhooks.h (default_preferred_simd_mode): Declare.
4505 * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
4506 (arm_preferred_simd_mode): ... this. Re-implement.
4507 * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
4508 (ix86_preferred_simd_mode): ... this. Re-implement.
4509 * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
4510 (sparc_preferred_simd_mode): ... this. Re-implement.
4511 * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
4512 (mips_preferred_simd_mode): ... this. Re-implement.
4513 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
4514 (rs6000_preferred_simd_mode): ... this. Re-implement.
4515 * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
4516 * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
4517 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
4518 * doc/tm.texi: Update.
4520 2010-10-07 Richard Guenther <rguenther@suse.de>
4523 * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
4526 2010-10-07 Alan Modra <amodra@gmail.com>
4528 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
4529 rather than sign extension by hand.
4531 2010-10-07 Jan Hubicka <jh@suse.cz>
4534 * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
4536 2010-10-07 Richard Guenther <rguenther@suse.de>
4539 * configure.ac: Fix typo.
4540 * configure: Regenerated.
4542 2010-10-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4544 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
4545 define_builtin_std where it's unnecessary.
4546 * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
4548 2010-10-06 Anatoly Sokolov <aesok@post.ru>
4550 * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
4551 * doc/tm.texi.in: Regenerate.
4552 * system.h (CLASS_LIKELY_SPILLED_P): Poison.
4553 * targhooks.c (default_class_likely_spilled_p): Don't use the
4554 CLASS_LIKELY_SPILLED_P macro.
4556 * config/arm/arm.md: Update comment.
4558 2010-10-06 Jan Hubicka <jh@suse.cz>
4560 * ipa.c (cgraph_remove_unreachable_nodes): External references can
4562 (cgraph_externally_visible_p): We can not bring local comdats that
4563 are known to linker; fix handling of internal visibility.
4564 (function_and_variable_visibility): Likewise.
4566 2010-10-06 Eric Botcazou <ebotcazou@adacore.com>
4568 PR rtl-optimization/45394
4569 * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
4570 (struct rtx_subst_pair): Remove AFTER field.
4571 (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
4572 (propagate_for_debug): Remove MOVE parameter and adjust.
4573 (try_combine): In the special case where I2 is a PARALLEL, combine only
4574 destinations of SETs and set I2SRC to the I2 source.
4575 Adjust calls to propagate_for_debug throughout.
4576 * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
4579 2010-10-06 Olivier Hainque <hainque@adacore.com>
4581 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
4582 switch on insn codes as sequence of ifs.
4584 2010-10-06 Hariharan Sandanagobalane <hariharan@picochip.com>
4586 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
4587 be UI_NONE for picochip.
4588 (picochip_option_override): Do not disable exception flags.
4589 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
4592 2010-10-06 Richard Guenther <rguenther@suse.de>
4594 * Makefile.in (regmove.o): Depend on $(TARGET_H).
4596 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4598 Implemented fast enumeration for Objective-C.
4599 * c-parser.c (objc_could_be_foreach_context): New.
4600 (c_lex_one_token): Recognize RID_IN keyword in a potential
4601 Objective-C foreach context.
4602 (c_parser_declaration_or_fndef): Added parameter. Accept
4603 Objective-C RID_IN keyword as terminating a declaration; in that
4604 case, return the declaration in the new parameter.
4605 (c_parser_extenral_declaration): Updated calls to
4606 c_parser_declaration_or_fndef.
4607 (c_parser_declaration_or_fndef): Same change.
4608 (c_parser_compound_statement_nostart): Same change.
4609 (c_parser_label): Same change.
4610 (c_parser_objc_methodprotolist): Same change.
4611 (c_parser_omp_for_loop): Same change.
4612 (c_parser_for_statement): Detect and parse Objective-C foreach
4614 (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
4615 * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
4616 fast enumeration parsing code to turn off the c99 error but still
4617 perform checks on the loop declarations.
4618 * c-tree.h (check_for_loop_decls): Updated declaration.
4619 * doc/objc.texi: Document fast enumeration.
4621 2010-10-06 Nick Clifton <nickc@redhat.com>
4623 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
4624 (MDR_REGNUM): Define.
4625 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
4626 (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
4627 (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
4628 (REGISTER_NAMES): Add MDR.
4629 (DWARF2_DEBUGGING_INFO): Define to 1.
4630 * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4631 (F): New function. Sets RTX_FRAME_RELATED_P.
4632 (mn10300_gen_multiple_store): Use F.
4633 (expand_prologue): Use F. Use gen_movsf() to push floating
4635 (expand_epilogue): Use gen_movsf() to pop floating point registers.
4636 (mn10300_option_override): Disable combine stack adjust pass.
4638 2010-10-06 Thomas Schwinge <thomas@schwinge.name>
4641 * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
4642 LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
4644 2010-10-06 Jakub Jelinek <jakub@redhat.com>
4646 * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
4647 BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
4648 BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
4649 BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
4650 BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
4651 BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
4652 BUILT_IN_TOUPPER): Mark as leaf.
4655 * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
4656 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
4657 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
4658 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
4659 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
4660 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
4661 Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
4663 2010-10-05 Anatoly Sokolov <aesok@post.ru>
4665 * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
4666 * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4667 (m68hc11_class_likely_spilled_p): New function.
4669 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
4671 * c-parser.c (c_parser_objc_method_definition): Updated comment.
4673 2010-10-05 Jan Hubicka <jh@suse.cz>
4675 * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
4677 * opts.c (decode_options): Handle lto partitions.
4678 * common.opt (flto-partition=1to1, flto-partition=balanced): New.
4679 * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
4681 2010-10-05 Jan Hubicka <jh@suse.cz>
4683 * cgraphunit.c (assemble_function): Output thunks and aliases before
4684 the function itself.
4686 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
4688 * config/picochip/picochip.c (picochip_option_override): Disable
4689 exception flags for picochip.
4691 2010-10-05 Joseph Myers <joseph@codesourcery.com>
4693 * opts-common.c (handle_option, handle_generated_option,
4694 read_cmdline_option, set_option): Add diagnostic_context
4695 parameter. Update calls among these functions.
4696 (set_option): Don't use global_dc.
4697 * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
4698 (decode_options): Pass global_dc to enable_warning_as_error.
4699 (common_handle_option): Pass global_dc to enable_warning_as_error.
4700 (enable_warning_as_error): Add diagnostic_context parameter.
4701 Document parameters. Don't use global_dc. Pass
4702 diagnostic_context parameter to handle_generated_option.
4703 * opts.h (set_option, handle_option, handle_generated_option,
4704 read_cmdline_option, enable_warning_as_error): Add
4705 diagnostic_context parameter.
4706 * Makefile.in (lto-opts.o): Update dependencies.
4707 * coretypes.h (struct diagnostic_context, diagnostic_context):
4709 * diagnostic.h (diagnostic_context): Don't declare typedef here.
4710 * gcc.c (process_command): Pass global_dc to read_cmdline_option.
4711 * langhooks-def.h (struct diagnostic_context): Don't declare here.
4712 (lhd_print_error_function, lhd_initialize_diagnostics): Declare
4713 using diagnostic_context typedef.
4714 * langhooks.c (lhd_initialize_diagnostics): Declare using
4715 diagnostic_context typedef.
4716 * langhooks.h (struct diagnostic_context): Don't declare here.
4717 (initialize_diagnostics, print_error_function): Declare using
4718 diagnostic_context typedef.
4719 * lto-opts.c: Include diagnostic.h.
4720 (lto_reissue_options): Pass global_dc to set_option. Pass
4721 DK_UNSPECIFIED not 0.
4722 * plugin.c (plugins_internal_error_function): Declare using
4723 diagnostic_context typedef.
4724 * plugin.h (struct diagnostic_context): Don't declare here.
4725 (plugins_internal_error_function): Declare using
4726 diagnostic_context typedef.
4728 2010-10-05 Olivier Hainque <hainque@adacore.com>
4729 Nicolas Roche <roche@adacore.com>
4731 * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
4732 * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
4734 2010-10-05 Ira Rosen <irar@il.ibm.com>
4736 PR tree-optimization/45752
4737 * tree-vect-slp.c (vect_get_mask_element): Remove static
4738 variables, make them function arguments.
4739 (vect_transform_slp_perm_load): Pass new arguments to
4740 vect_get_mask_element.
4742 2010-10-05 Richard Guenther <rguenther@suse.de>
4744 * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
4745 (gimple_mod_pow2): Likewise.
4746 (gimple_mod_subtract): Likewise.
4747 (gimple_ic): Likewise.
4748 (gimple_stringop_fixed_value): Likewise.
4749 * tree-profile.c (tree_init_edge_profiler): Mark profile
4750 functions nothrow and leaf.
4751 (add_abnormal_goto_call_edges): Remove.
4752 (tree_gen_edge_profiler): Work on SSA form.
4753 (tree_gen_ic_profiler): Likewise. Simplify.
4754 (do_tree_profiling): Update SSA form.
4755 (pass_tree_profile): Remove.
4756 (do_tree_profiling): Likewise.
4757 (gate_tree_profile_ipa): New function.
4758 (pass_ipa_tree_profile): New.
4759 (tree_profiling): Re-write as IPA pass. Properly drop const/pure
4760 state of instrumented functions.
4761 * passes.c (init_optimization_passes): Remove early non-SSA
4762 inlining. Move profiling after early optimizations.
4763 * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
4764 (pass_ipa_early_inline): Likewise.
4765 * tree-pass.h (pass_ipa_early_inline): Remove.
4766 (pass_tree_profile): Likewise.
4767 (pass_ipa_tree_profile): Declare.
4769 2010-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4770 Christian Borntraeger <Christian.Borntraeger@de.ibm.com>
4772 * config/s390/s390.c (z196_cost): New.
4773 (s390_handle_arch_option): Add -march=z196.
4774 (s390_option_override): Use the new cost function and use the z10
4775 defaults also for z196.
4776 (legitimate_reload_constant_p): Adjust comment.
4777 (legitimate_reload_fp_constant_p): New function.
4778 (s390_preferred_reload_class): Distingiush between FP and Int constants.
4779 (preferred_la_operand_p): Avoid la with index on z196.
4780 (s390_adjust_priority): Trigger also for z196.
4781 (s390_issue_rate): Issue rate for z196 is 3.
4782 (s390_z10_fix_long_loop_prediction): Rename to ...
4783 (s390_fix_long_loop_prediction): ... this.
4784 (s390_reorg): Apply the z10 adjustments also for z196.
4785 (s390_loop_unroll_adjust): Do this also for z196.
4786 * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
4787 (enum processor_flags): Add PF_Z196.
4788 (TARGET_AVOID_CMP_AND_BRANCH): New macro.
4789 (TARGET_CPU_Z196, TARGET_Z196): New macros.
4790 * config.gcc: Enable z196 for --with-arch.
4791 * config/s390/2817.md: New file.
4792 * config/s390/2084.md: New type for multiply and add.
4793 * config/s390/2097.md: Likewise.
4794 * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
4795 (UNSPECV_ATOMIC_OP): New constants.
4796 (fmadddf, fmaddsf): New values for type attribute.
4797 (z196prop): New insn attribute.
4798 (cpu, cpu_facility): Add z196.
4799 (ATOMIC_Z196): New code iterator.
4800 (noxa): New code attribute.
4801 (gk): New mode attribute.
4802 (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
4803 Support load zero for fp constants.
4804 (fixuns_truncdddi2, fixuns_trunctddi2)
4805 (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
4807 (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
4808 (popcounthi2, popcountqi2): New expander.
4809 (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
4810 (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
4811 (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
4813 (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
4814 (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
4815 (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
4816 (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
4817 (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
4818 (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
4819 (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
4820 (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
4821 (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
4822 (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
4823 (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
4824 (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
4825 (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
4826 Support new z196 instructions.
4828 2010-10-05 Richard Guenther <rguenther@suse.de>
4831 * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
4832 case where gimplification optimizes away the stmt.
4834 2010-10-04 Jakub Jelinek <jakub@redhat.com>
4837 * var-tracking.c (strip_pointer_flags): New function.
4838 (emit_note_insn_var_location): If rtx_equal_p check failed,
4839 retry on locations simplified with simplify_replace_fn_rtx
4840 and strip_pointer_flags as its callback.
4842 2010-10-04 Jan Hubicka <jh@suse.cz>
4844 * gimple-fold.c (static_object_in_other_unit_p): Rename to...
4845 (can_refer_decl_in_current_unit_p): ... this one; reverse return
4846 value; handle comdats too.
4847 (canonicalize_constructor_val): Use it; handle function_decls
4849 (gimple_fold_obj_type_ref_known_binfo): Likewise.
4850 * gimple.c (get_base_address): Accept all kinds of decls.
4852 2010-10-04 Joseph Myers <joseph@codesourcery.com>
4854 * flags.h (g_switch_value, g_switch_set): Remove.
4855 * opts.c (g_switch_value, g_switch_set): Remove.
4856 * config/g.opt (G): Add Var(g_switch_value).
4857 * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
4858 (alpha_option_override): Check global_options_set.x_g_switch_value
4859 instead of g_switch_set.
4860 (alpha_in_small_data_p): Remove cast in comparison with
4862 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
4863 g_switch_value to unsigned HOST_WIDE_INT.
4864 * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
4865 with g_switch_value.
4866 (frv_handle_option): Don't handle -G here.
4867 (frv_option_override): Check global_options_set.x_g_switch_value
4868 instead of g_switch_set. Don't modify g_switch_set.
4869 (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
4870 * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
4871 g_switch_value to unsigned HOST_WIDE_INT.
4872 * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
4873 (ia64_option_override): Check global_options_set.x_g_switch_value
4874 instead of g_switch_set.
4875 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
4877 (lm32_in_small_data_p): Remove cast in comparison with
4879 * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
4880 ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
4882 * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
4883 (m32r_init): Check global_options_set.x_g_switch_value instead of
4885 (m32r_in_small_data_p): Remove cast in comparison with
4887 (m32r_file_start): Format g_switch_value with %d.
4888 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
4889 ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
4890 * config/microblaze/microblaze.c (microblaze_handle_option): Don't
4892 (microblaze_option_override): Check
4893 global_options_set.x_g_switch_value instead of g_switch_set.
4894 * config/mips/mips.c (mips_handle_option): Don't handle -G here.
4895 (mips_option_override): Check global_options_set.x_g_switch_value
4896 instead of g_switch_set.
4897 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
4898 (rs6000_file_start): Format g_switch_value with %d.
4899 (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
4900 comparisons with g_switch_value.
4901 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
4902 global_options_set.x_g_switch_value instead of g_switch_set.
4903 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4904 global_options_set.x_g_switch_value instead of g_switch_set.
4905 * config/score/score.c (score_handle_option): Don't handle -G here.
4906 * config/score/score3.c (score3_option_override): Check
4907 global_options_set.x_g_switch_value instead of g_switch_set.
4908 * config/score/score7.c (score7_option_override): Check
4909 global_options_set.x_g_switch_value instead of g_switch_set.
4911 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
4913 * common.opt (fira-coalesce): Remove.
4915 * doc/invoke.texi (flag_ira_coalesce): Remove.
4917 * ira-color.c (allocno_coalesced_p): Move before
4918 copy_freq_compare_func.
4919 processed_coalesced_allocno_bitmap): Ditto.
4920 (update_conflict_hard_regno_costs): Don't use
4921 ALLOCNO_FIRST_COALESCED_ALLOCNO.
4922 (allocno_cost_compare_func, print_coalesced_allocno): Remove.
4923 (assign_hard_reg): Assume no coalesced allocnos.
4924 (get_coalesced_allocnos_attributes): Remove.
4925 (bucket_allocno_compare_func): Assume no coalesced allocnos.
4926 (push_allocno_to_stack): Ditto.
4927 (remove_allocno_from_bucket_and_push): Use
4928 ira_print_expanded_allocno instead of print_coalesced_allocno.
4929 (push_allocnos_to_stack): Assume uncoalesced allocnos.
4930 (all_conflicting_hard_regs_coalesced): Ditto. Rename to
4931 all_conflicting_hard_regs.
4932 (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
4933 (setup_allocno_left_conflicts_size): Ditto.
4934 (put_allocno_into_bucket): Ditto.
4935 (copy_freq_compare_func): Remove.
4936 (copy_freq_compare_func, merge_allocnos): Move before
4937 coalesced_pseudo_reg_freq_compare.
4938 coalesced_allocno_conflict_p): Ditto.
4939 (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto. Remove
4940 parameter. Assume it true.
4941 (color_allocnos): Assume uncoalesced allocnos. Use
4942 ira_print_expanded_allocno instead of print_coalesced_allocno.
4943 (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
4946 * ira.c: Remove comment about coalescing.
4948 2010-10-04 Joseph Myers <joseph@codesourcery.com>
4950 * config/mips/mips.h (target_flags_explicit): Declare for
4953 2010-10-04 Andi Kleen <ak@linux.intel.com>
4955 * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
4956 gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
4958 2010-10-04 Matthias Klose <doko@ubuntu.com>
4960 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
4961 multilib osdirname if it exists.
4962 * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
4964 2010-10-04 Jakub Jelinek <jakub@redhat.com>
4967 * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
4968 arg0's type or its unsigned counterpart as utype. Convert
4969 arg1 to utype unconditionally.
4971 2010-10-04 Julian Brown <julian@codesourcery.com>
4973 * expr.c (expand_assignment): Add assertion to prevent emitting
4974 null rtx for movmisalign pattern.
4975 (expand_expr_real_1): Likewise.
4976 * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
4977 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
4978 (arm_vector_alignment_reachable): New.
4979 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
4980 (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
4981 (arm_print_operand): Include alignment qualifier in %A.
4982 * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
4983 (movmisalign<mode>): New expander.
4984 (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
4987 2010-10-04 Joseph Myers <joseph@codesourcery.com>
4989 * optc-gen.awk: Define global_options_set. Don't define
4990 target_flags_explicit.
4991 * opth-gen.awk: Declare global_options_set. Define
4992 target_flags_explicit as macro.
4993 * opts-common.c (handle_option): Take opts_set and generated_p
4995 (handle_generated_option, read_cmdline_option, set_option): Take
4997 (set_option): Use opts_set instead of hardcoding target_flags and
4998 target_flags_explicit.
4999 * opts.c (sel_sched_switch_set, profile_arc_flag_set,
5000 flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
5001 flag_value_profile_transformations_set, flag_peel_loops_set,
5002 flag_branch_probabilities_set, flag_inline_functions_set,
5003 flag_ipa_cp_set, flag_ipa_cp_clone_set,
5004 flag_predictive_commoning_set, flag_unswitch_loops_set,
5005 flag_gcse_after_reload_set): Remove.
5006 (common_handle_option, lang_handle_option, target_handle_option):
5007 Take opts_set parameter. Assert that it is &global_options_set.
5008 (common_handle_option): Don't set _set variables. Check opts_set
5009 instead of such variables.
5010 (enable_warning_as_error): Pass &global_options_set to
5011 handle_generated_option.
5012 * opts.h (cl_option_handler_func.handler, set_option,
5013 handle_option, handle_generated_option, read_cmdline_option): Add
5014 opts_set parameters.
5015 (handle_option): Add generated_p parameter.
5016 * config/i386/i386.c (ix86_function_specific_save,
5017 ix86_function_specific_restore): Updat for renaming of
5018 target_flags_explicit field.
5019 * config/i386/i386.opt (target_flags_explicit): Rename to
5020 ix86_target_flags_explicit.
5021 * config/ia64/ia64.c (ia64_override_options_after_change): Check
5022 global_options_set.x_flag_selective_scheduling and
5023 global_options_set.x_flag_selective_scheduling2, not
5024 sel_sched_switch_set.
5025 * flags.h (sel_sched_switch_set,
5026 flag_speculative_prefetching_set): Remove.
5027 * gcc.c (driver_handle_option): Take opts_set parameter. Assert
5028 that it is &global_options_set.
5029 (process_command): Pass &global_options_set to read_cmdline_option.
5030 * lto-opts.c (lto_reissue_options): Pass &global_options_set to
5032 * toplev.c (target_flags_explicit): Remove.
5034 2010-10-04 Jan Hubicka <jh@suse.cz>
5037 * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
5038 use get_ref_base_and_offset to handle references.
5039 (fold_const_aggregate_ref): Update.
5041 2010-10-04 Martin Jambor <mjambor@suse.cz>
5043 PR tree-optimization/45572
5044 * ipa-prop.c (ipa_make_edge_direct_to_target): Call
5045 ipa_check_create_node_params.
5046 * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
5048 2010-10-04 Yao Qi <yao@codesourcery.com>
5050 * doc/passes.texi: Clean up.
5052 2010-10-03 Ian Lance Taylor <iant@google.com>
5054 * c-typeck.c (lookup_field): If -fplan9-extensions, permit
5055 referring to a field using a typedef name.
5056 (find_anonymous_field_with_type): New static function.
5057 (convert_to_anonymous_field): New static function.
5058 (convert_for_assignment): If -fplan9-extensions, permit converting
5059 pointer to struct to pointer to anonymous field.
5060 * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
5061 (is_duplicate_field): New static function.
5062 (detect_field_duplicates_hash): If -fplan9-extensions, check for
5063 typedef names duplicating field names.
5064 (detect_field_duplicates): Likewise.
5065 * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
5066 (C Dialect Options): Document -fplan9-extensions.
5067 * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
5069 2010-10-03 H.J. Lu <hongjiu.lu@intel.com>
5071 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
5073 (vect_create_data_ref_ptr): Likewise.
5074 * tree-vect-stmts.c (vectorizable_store): Likewise.
5075 (perm_mask_for_reverse): Likewise.
5076 (reverse_vec_elements): Likewise.
5077 (vectorizable_load): Likewise.
5079 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5081 * cppbuiltin.c: New file.
5082 * cppbuiltin.h: New file.
5083 * Makefile.in: Take into account cppbuiltin.{h,c}.
5085 2010-10-03 Andi Kleen <ak@linux.intel.com>
5087 * lto-cgraph.c (input_cgraph): Check for missing sections.
5089 2010-10-03 Uros Bizjak <ubizjak@gmail.com>
5091 * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
5092 to nonimmediate_operand. Force operand 2 to register when allowed.
5093 (*<shiftrt_insn><mode>3_mask): Ditto.
5094 (*<rotate_insn><mode>3_mask): Ditto.
5096 2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
5098 PR tree-optimization/45720
5099 PR tree-optimization/45764
5100 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
5101 Don't accept backwards consecutive accesses.
5102 (vect_create_data_ref_ptr): Disallow negative steps.
5104 * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
5105 (perm_mask_for_reverse): Removed.
5106 (reverse_vec_elements): Likewise.
5107 (vectorizable_load): Don't handle negative steps.
5109 2010-10-02 Jan Hubicka <jh@suse.cz>
5111 * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
5112 call destination is known.
5114 2010-10-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5117 * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
5120 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5122 * doc/install.texi (Configuration): Document build_configargs,
5123 host_configargs, target_configargs.
5125 2010-10-01 Uros Bizjak <ubizjak@gmail.com>
5127 * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
5128 (*<shiftrt_insn><mode>3_mask): Ditto.
5129 (*<rotate_insn><mode>3_mask): Ditto.
5131 2010-10-01 Steve Ellcey <sje@cup.hp.com>
5133 PR tree-optimization/44716
5134 * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
5135 (HOT_TEXT_SECTION_NAME): Define.
5137 2010-10-01 Nick Clifton <nickc@redhat.com>
5139 * common.opt: Add -fcombine-stack-adjustments.
5140 * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
5141 * combine-stack-adj.c (gate_handle_stack_adjustments): Check
5142 flag_combine_stack_adjustments.
5143 * doc/invoke.texi: Document the new option.
5145 2010-10-01 Richard Guenther <rguenther@suse.de>
5147 PR tree-optimization/45854
5148 * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
5150 2010-10-01 Anthony Green <green@moxielogic.com>
5152 * config.gcc: Fix moxie-*-rtems* configuration.
5154 2010-10-01 Richard Guenther <rguenther@suse.de>
5156 * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
5157 (gen_decl_die): Likewise.
5159 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5161 * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
5162 to the function code for SPU MD builtins.
5163 (spu_expand_builtin): Update.
5164 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
5166 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5168 * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
5169 sjlj_except_unwind_info.
5171 2010-10-01 Tristan Gingold <gingold@adacore.com>
5173 * configure.ac: Define the nop insn for avr*-*-*
5174 * configure: Regenerate.
5176 2010-10-01 Alan Modra <amodra@gmail.com>
5179 * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
5180 extend toc_restore_insn.
5182 2010-09-30 Richard Guenther <rguenther@suse.de>
5184 PR tree-optimization/43959
5185 * function.c (gimplify_parameters): Use create_tmp_reg instead of
5188 2010-09-30 Kaz Kojima <kkojima@gcc.gnu.org>
5190 * config/sh/sh.c (sh_expand_prologue): Set
5191 current_function_static_stack_size.
5193 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5195 * configure.ac: Check for Solaris 8 ld with .hidden support.
5196 * configure: Regenerate.
5198 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5201 * graphite.c (graphite_initialize): Call scev_reset.
5203 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5205 * sese.h (scev_analyzable_p): Return false for real or floating
5206 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
5208 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5210 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
5212 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
5214 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
5215 Do not allocate ub_expr, it is passed in initialized.
5217 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5219 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
5220 (build_cloog_prog): Dump CLooG input file when
5221 flag_graphite_dump_cloog is set. This is disabled on trunk.
5222 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
5224 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5226 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
5227 verify_dominators for CDI_POST_DOMINATORS.
5228 * sese.h: Remove comment about CDI_POST_DOMINATORS.
5229 (recompute_all_dominators): Remove call to free_dominance_info
5230 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
5231 for CDI_POST_DOMINATORS.
5233 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5235 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
5236 over pbb_dim_iter_domain.
5238 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5240 * graphite-flattening.c: Fix comments.
5242 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5244 * Makefile.in (OBJS-common): Add graphite-flattening.o.
5245 (graphite-flattening.o): New rule.
5246 * common.opt (floop-flatten): New flag.
5247 * doc/invoke.texi (-floop-flatten): Documented.
5248 * graphite-flattening.c: New.
5249 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
5250 * graphite-poly.h (flatten_all_loops): Declared.
5251 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
5252 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
5253 is set, also set flag_graphite.
5255 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5257 * graphite-poly.c (cloog_checksum): New.
5258 * graphite-poly.h (cloog_checksum): Declared.
5260 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5262 * graphite-poly.c (pbb_number_of_iterations): Removed.
5263 (pbb_number_of_iterations_at_time): Correctly compute the number
5264 of iterations in the transformed loop.
5265 * graphite-poly.h (pbb_number_of_iterations): Removed.
5267 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5269 * graphite-poly.h (lst_update_scattering_seq): Removed.
5270 (lst_update_scattering): Correctly handle outermost loop dewey
5273 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5275 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
5276 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
5277 * graphite-poly.h (lst_niter_for_loop): New.
5279 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5281 * graphite-poly.c (apply_poly_transforms): Do not abort when the
5282 transform read from disk is not legal. Call fatal_error instead.
5284 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5286 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
5287 (print_scop_header): Removed. Inlined in the only call place...
5288 (print_scop): ... here.
5290 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5292 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
5294 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5296 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
5298 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5300 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
5301 (dot_deps_stmt): Same.
5302 * graphite-poly.c (dot_lst): Same.
5304 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5306 * graphite-blocking.c (scop_do_strip_mine): Do not call
5307 graphite_legal_transform.
5308 (scop_do_block): Same.
5310 2010-09-30 Vladimir Kargov <kargov@gmail.com>
5312 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
5315 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5317 * tree-scalar-evolution.c (instantiate_array_ref): New.
5318 (instantiate_scev_r): Also handle ARRAY_REFs.
5320 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5322 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5323 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
5324 RESULT_DECL, and FIELD_DECL. Return false for an
5325 SSA_NAME_IS_DEFAULT_DEF.
5326 (compute_scalar_evolution_in_loop): Do not further analyze the
5327 scalar evolution when no_evolution_in_loop_p returns true.
5329 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5331 * tree-chrec.h (evolution_function_is_affine_p): Do not check
5332 whether CHREC_LEFT is invariant. A function is affine when
5333 CHREC_RIGHT is invariant.
5335 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5337 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
5339 (rewrite_degenerate_phi): Same.
5340 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
5342 2010-09-30 Vladimir Kargov <kargov@gmail.com>
5344 * graphite-scop-detection.c (graphite_can_represent_scev,
5345 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
5346 graphite_can_represent_loop): Remove outermost_loop.
5348 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5351 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
5352 handle GIMPLE_CALLs with no LHS.
5354 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
5356 * graphite-poly.c (init_graphite_out_file): New.
5357 (init_graphite_in_file): New.
5358 (apply_poly_transforms): Updated to enable reading and writing of
5359 multiple scop files.
5361 2010-09-30 Tobias Grosser <grosser@fim.uni-passau.de>
5363 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
5366 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5368 * graphite-clast-to-gimple.c (precision_for_value): Adjust
5369 computation of precision by 1.
5371 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
5373 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
5374 (openscop_read_polyhedron_matrix): New.
5375 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
5376 (openscop_read_N_int): Same.
5377 * graphite-poly.c (openscop_read_N_int): New.
5378 (openscop_read_one_int): New.
5379 (openscop_read_N_string): New.
5380 (openscop_read_one_string): New.
5381 (openscop_read_powerset_matrix): New.
5382 (graphite_read_transforms): Remove.
5383 (graphite_read_scatt): New.
5384 (graphite_read_scop_file): New.
5385 (apply_poly_transforms): Updated to call graphite_read_scop_file.
5387 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5389 * graphite-poly.c: Change include order.
5391 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5393 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
5394 (cloog_matrix_nrows): New.
5396 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
5398 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
5400 * graphite-poly.c (openscop_print_scattering_function_1): Same.
5401 (print_scattering_function_1): Same.
5402 (openscop_print_pbb_domain): Same.
5403 (openscop_print_scop_context): Same.
5404 (print_scop_context): Same.
5406 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
5408 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
5409 (openscop_print_pdr_polyhedron): Print pph.
5411 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5413 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
5414 priority signed types.
5416 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5418 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
5419 the call to lang_hooks.types.type_for_size. Call
5420 build_nonstandard_integer_type.
5422 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
5424 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
5425 (openscop_print_polyhedron_matrix): New.
5426 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
5427 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
5428 (openscop_print_pdr_powerset): New.
5429 (openscop_print_powerset_matrix): New.
5430 (openscop_print_scattering_function_1): New.
5431 (print_scattering_function): Add support for scattering names and
5433 (graphite_write_transforms): Remove.
5434 (print_pdr_access_layout): Updated to support OpenScop format.
5436 (openscop_print_pbb_domain): New.
5437 (print_pbb_body): Added a parameter to allow indicating that pbb_body
5439 (print_pbb): Updated to call the new print_pbb_body.
5440 (openscop_print_scop_context): New.
5441 (print_scop_header): New.
5442 (print_scop): Updated to call print_scop_header.
5443 * graphite-poly.h: Document OpenScop format.
5445 2010-09-30 Anatoly Sokolov <aesok@post.ru>
5447 * config/cris/m32c.c (cris_memory_move_cost): New.
5448 (cris_register_move_cost): Make static. Change arguments type from
5449 enum reg_class to reg_class_t.
5450 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5451 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5452 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
5454 2010-09-30 Jakub Jelinek <jakub@redhat.com>
5457 * config/i386/i386.c (ix86_gimplify_va_arg): Use
5458 INTVAL (XEXP (slot, 1)) as prev_size.
5460 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
5463 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
5464 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
5466 * config/rs6000/option-defaults.h (toplevel): Change #if
5467 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
5468 global option changes.
5470 2010-09-30 Jakub Jelinek <jakub@redhat.com>
5472 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
5474 PR tree-optimization/31261
5475 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
5476 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
5478 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5481 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
5482 special-casing for generators and turn into ...
5483 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
5484 rule, for better error messages in case of toplevel dependency errors.
5485 (genprog): Add hooks, rename to ...
5486 (genprogerr): ... this, and let genprog also contain check,
5488 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
5489 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
5490 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
5492 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
5493 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5495 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
5496 for GMP, MPFR and MPC.
5498 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5500 * config/sparc/sparc.opt (mimpure-text): Move ...
5501 * config/sol2.opt: ... here. Correct description.
5502 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
5503 * doc/invoke.texi (Option Summary, SPARC Options): Move
5504 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
5505 (Option Summary, Solaris 2 Options): ... here.
5506 (Submodel Options, Solaris 2 Options): New menu entry.
5507 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
5508 (Solaris 2 Options): ... here.
5510 2010-09-30 Michael Eager <eager@eagercon.com>
5512 * extend.texi (interrupt_handler): Add MicroBlaze to list.
5513 (save_volatiles): Describe option for MicroBlaze.
5514 * invoke.texi: Add MicroBlaze Options.
5515 * contrib.texi: Add acknowledgment.
5516 * md.texi: Add MicroBlaze d and z constraints.
5517 * install.texi: Add microblaze-*-elf.
5518 * configure.ac: Add microblaze-*-* to target list.
5519 * configure: Regenerate.
5520 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
5521 * config/microblaze/microblaze-protos.h: New.
5522 * config/microblaze/crti.s: New.
5523 * config/microblaze/predicates.md: New.
5524 * config/microblaze/linux.h: New.
5525 * config/microblaze/microblaze.md: New.
5526 * config/microblaze/constraints.md: New.
5527 * config/microblaze/crtn.s: New.
5528 * config/microblaze/microblaze.opt: New.
5529 * config/microblaze/microblaze-c.c: New.
5530 * config/microblaze/t-microblaze: New.
5531 * config/microblaze/microblaze.c: New.
5532 * config/microblaze/microblaze.h: New.
5534 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5536 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
5537 parse @optional/@required and set the flags as appropriate.
5539 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
5541 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
5543 2010-09-30 Joseph Myers <joseph@codesourcery.com>
5545 * opt-functions.awk (static_var): Update comment.
5546 (var_ref): Return offsetof expression or -1, not variable address.
5547 * optc-gen.awk: Generate structure field initializers instead of
5548 static variables. Expect -1 for missing variables instead of null
5549 pointer. Add gcc_options parameters to generated functions.
5550 * opth-gen.awk: Generate structure fields for static variables.
5551 Add gcc_options parameters to generated functions.
5552 * common.opt (optimize, optimize_size): Add variables.
5553 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
5554 &global_options to cl_target_option_restore.
5555 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
5556 &global_options to cl_optimization_restore, cl_target_option_save
5557 and cl_target_option_restore.
5558 (ix86_set_current_function): Pass &global_options to
5559 cl_target_option_restore.
5560 * config/pdp11/pdp11.h (optimize): Remove.
5561 * config/rs6000/rs6000.h (optimize): Remove.
5562 * config/sh/sh.h (optimize): Remove.
5563 * config/xtensa/xtensa.h (optimize): Remove.
5564 * coretypes.h (struct gcc_options): Declare.
5565 * diagnostic.c (diagnostic_initialize): Initialize
5566 context->option_state.
5567 (diagnostic_report_diagnostic): Pass option_state to
5568 option_enabled hook.
5569 * diagnostic.h (diagnostic_context.option_enabled): Add void *
5571 (diagnostic_context.option_state): New field.
5572 * final.c (final_start_function, final, final_scan_insn): Rename
5573 optimize parameter to optimize_p.
5574 * flags.h (optimize, optimize_size): Remove.
5575 * function.c (invoke_set_current_function_hook): Pass
5576 &global_options to cl_optimization_restore.
5577 * gcc.c (driver_handle_option): Take gcc_options parameter.
5578 Assert that it is &global_options.
5579 (process_command): Pass &global_options to read_cmdline_option.
5580 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
5582 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
5583 &global_options to set_option.
5584 * opts-common.c (handle_option, handle_generated_option,
5585 read_cmdline_option, set_option): Take explicit gcc_options
5586 parameters. Use option_flag_var.
5587 (option_flag_var): New.
5588 * opts.c (common_handle_option, lang_handle_option,
5589 target_handle_option): Take gcc_options parameter. Assert that it
5591 (read_cmdline_options): Pass &global_options to read_cmdline_option.
5592 (print_filtered_help): Use option_flag_var. Pass &global_options
5594 (common_handle_option): Use option_flag_var.
5595 (option_enabled): Take opts parameter. Use option_flag_var.
5596 (get_option_state): Take gcc_options parameter. Use
5597 option_flag_var. Pass gcc_options parameter to option_enabled.
5598 (enable_warning_as_error): Pass &global_options to
5599 handle_generated_option.
5600 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
5601 (cl_option_handler_func.handler): Take gcc_options parameter.
5602 (option_enabled, get_option_state, set_option, handle_option,
5603 handle_generated_option, read_cmdline_option): Take gcc_options
5605 * toplev.c (optimize, optimize_size): Remove.
5606 (print_switch_values): Pass &global_options to option_enabled.
5607 (option_affects_pch_p): Use option_flag_var. Pass &global_options
5608 to get_option_state.
5609 (general_init): Initialize global_dc->option_state.
5610 * tree.c (build_optimization_node): Pass &global_options to
5611 cl_optimization_save.
5612 (build_target_option_node): Pass &global_options to
5613 cl_target_option_save.
5615 2010-09-30 Martin Jambor <mjambor@suse.cz>
5617 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
5618 zero sized bit-fields.
5620 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5622 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
5623 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
5624 (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
5625 (c_parser_objc_class_declaration): Same change.
5626 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
5627 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
5628 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
5629 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
5630 and RID_AT_PUBLIC instead of RID_PUBLIC.
5631 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
5632 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
5634 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
5636 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
5637 Add links to current providers of packages for Solaris and IRIX.
5639 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5641 Merge from 'apple/trunk' branch on FSF servers.
5642 * c-parser.c: Applied change originally in c-parse.in.
5644 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5647 * c-decl.c (start_decl): Check for redeclaration of class name.
5648 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
5650 2010-09-29 Steve Ellcey <sje@cup.hp.com>
5652 * config/ia64/ia64.c (ia64_builtin_decl): New.
5653 (TARGET_BUILTIN_DECL): Define.
5654 (ia64_builtins): New.
5655 (ia64_init_builtins): Save decls in ia64_builtins.
5657 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
5660 * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
5661 (move2add_use_add3_insn): Likewise.
5662 (reload_cse_move2add): Likewise.
5663 * rtlanal.c (get_full_rtx_cost): New function.
5664 * rtl.h (struct full_rtx_costs): New.
5665 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
5666 costs_add_n_insns): New inline functions.
5667 (get_full_rtx_cost): Declare.
5670 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
5671 invariants. Check for reg_equiv_invariant.
5672 (reload): Assert that spilled_pseudos is empty when returning.
5674 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
5676 * config/i386/mingw32.h (TARGET_64BIT): replaced by
5677 TARGET_64BIT_DEFAULT in #if check.
5679 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
5681 * varasm.c (assemble_alias): Add error message for unsupported ifunc.
5683 2010-09-29 Mike Stump <mikestump@comcast.net>
5685 * config/darwin.h (flag_mkernel): Remove.
5686 (flag_apple_kext): Likewise.
5688 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5689 Jack Howarth <howarth@bromo.med.uc.edu>
5691 * config/darwin.opt (undefined): Add.
5693 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
5696 * configure.ac: Add --enable-indirect-function option.
5697 * config.gcc: Add default_gnu_indirect_function.
5698 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
5699 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
5700 * varasm.c (do_assemble_alias): Adjust for macro name change.
5701 * configure: Rebuilt.
5702 * doc/install.texi: Document --enable-indirect-function.
5704 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5706 * doc/options.texi (Variable, Var, Init): Update documentation
5707 without reference to VarExists.
5708 (VarExists): Remove.
5709 * common.opt, config/i386/i386.opt, config/linux.opt,
5710 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
5711 Don't use VarExists.
5713 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5715 * optc-gen.awk: Generate global_options initializer instead of
5716 individual variables. Add x_ prefix to names of structure members.
5717 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
5718 names of structure members.
5719 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5720 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
5721 * doc/tm.texi: Regenerate.
5722 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5723 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
5724 * c-parser.c (disable_extension_diagnostics,
5725 restore_extension_diagnostics): Update names of cpp_options members.
5726 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5727 * common.opt (fcompare-debug-second): Don't use Var.
5728 * config/alpha/alpha.h (target_flags): Remove.
5729 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5730 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
5731 * config/bfin/bfin.h (target_flags): Remove.
5732 * config/cris/cris.h (target_flags): Remove.
5733 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
5734 cl_target_option members.
5735 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
5736 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
5737 ix86_can_inline_p): Update names of cl_target_option members.
5738 * config/i386/i386.h (ix86_isa_flags): Remove.
5739 * config/lm32/lm32.h (target_flags): Remove.
5740 * config/mcore/mcore.h (mcore_stack_increment): Remove.
5741 * config/mcore/mcore.md (addsi3): Remove extern declaration of
5742 flag_omit_frame_pointer.
5743 * config/mep/mep.h (target_flags): Remove.
5744 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5745 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
5746 * config/mmix/mmix.h (target_flags): Remove.
5747 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
5748 flag_expensive_optimizations): Remove.
5749 * config/s390/s390.h (flag_pic): Remove.
5750 * config/score/score-conv.h (target_flags): Remove.
5751 * config/sh/sh.h (sh_fixed_range_str): Remove.
5752 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
5753 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
5754 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5755 * diagnostic.c (diagnostic_initialize): Update names of
5756 diagnostic_context members.
5757 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
5758 warn_system_headers.
5759 (diagnostic_report_warnings_p): Update for new names.
5760 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
5761 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
5762 HARD_FRAME_POINTER_IS_ARG_POINTER.
5763 * flags.h (flag_compare_debug): Declare.
5764 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5765 * opts.c (flag_compare_debug): Define.
5766 (common_handle_option): Update names of diagnostic_context
5767 members. Handle -fcompare-debug-second.
5768 (fast_math_flags_struct_set_p): Update names of cl_optimization
5770 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5771 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5772 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5773 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5774 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5775 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5776 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
5777 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5778 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
5780 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
5782 * config/picochip/picochip.c (picochip_output_internal_label):
5783 This function can now be called for debug CFI labels, which can come
5784 in the middle of a vliw instruction. Postpone until end of vliw.
5786 2010-09-29 Richard Guenther <rguenther@suse.de>
5788 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
5789 (DECL_FILE_SCOPE_P): Use it.
5790 (TYPE_FILE_SCOPE_P): New macro.
5792 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5794 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
5795 a CPP_NAME which is a reserved word, clearly separate cases for
5796 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
5798 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5800 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
5801 token->value with the canonical spelling. Do exactly like C and
5802 C++ and leave it as it is.
5804 2010-09-28 Richard Henderson <rth@redhat.com>
5806 * config/alpha/alpha.c (alpha_builtins): New.
5807 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
5808 (alpha_builtin_function): New.
5809 (alpha_add_builtins, alpha_init_builtins): Use it.
5811 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
5813 * doc/standards.texi (Standards): Expanded the section on
5814 Objective-C and Objective-C++.
5816 2010-09-28 DJ Delorie <dj@redhat.com>
5819 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
5822 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5824 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
5825 attributes on methods.
5826 (c_parser_objc_method_definition): Handle attributes.
5827 (c_parser_objc_methodproto): Likewise.
5828 (c_parser_objc_maybe_method_attributes): New.
5829 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
5830 missing definition, similar to that in ObjC++.
5832 2010-09-28 Richard Henderson <rth@redhat.com>
5834 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
5835 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
5836 (CONFIG_SJLJ_EXCEPTIONS): Remove.
5837 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
5838 (STACK_CHECK_PROTECT): Likewise.
5839 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
5840 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
5841 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
5842 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
5843 (dwarf2out_assembly_start): Likewise.
5844 * except.c (init_eh): Use targetm.except_unwind_info.
5845 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
5846 (output_one_function_exception_table): Likewise.
5847 * final.c: Unconditionally include dwarf2out.h.
5848 (final_start_function): Unconditionally call dwarf2out routines.
5849 (final_end_function, final_scan_insn): Likewise.
5850 * function.c (expand_function_end): Use targetm.except_unwind_info.
5851 * opts.c (decode_options): Use targetm.except_unwind_info.
5852 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
5853 * target.def (debug_unwind_info, except_unwind_info): New.
5854 * target.h (enum unwind_info_type): New.
5855 * targhooks.c (default_debug_unwind_info): New.
5856 (default_except_unwind_info): New.
5857 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
5858 * targhooks.h: Declare them.
5859 * tree-tailcall.c: Include "target.h"
5860 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
5861 * Makefile.in (tree-tailcall.o): Update.
5862 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
5863 (lhd_gcc_personality): Likewise.
5865 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
5866 (TARGET_EXCEPT_UNWIND_INFO): New.
5867 (DWARF2_UNWIND_INFO): Update.
5868 (TARGET_DEBUG_UNWIND_INFO): New.
5869 * doc/tm.texi: Rebuild.
5871 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
5872 targetm.except_unwind_info.
5874 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
5875 (arm_except_unwind_info): New.
5876 (arm_compute_func_type): Use it.
5877 (arm_expand_prologue, thumb_pushpop): Likewise.
5878 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
5879 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
5880 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
5881 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
5882 (DWARF2_UNWIND_INFO): Remove.
5883 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
5884 (ARM_EABI_UNWIND_TABLES): Remove.
5886 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
5887 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
5888 (ia64_except_unwind_info): New.
5889 (ia64_output_function_prologue): Use it.
5890 (ia64_add_bundle_selector_before): Likewise.
5891 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
5892 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
5893 (TARGET_UNWIND_INFO): Remove.
5895 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
5897 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5899 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
5900 (c_parser_objc_protocol_definition): Likewise.
5901 (c_parser_external_declaration): Provide dummy attribute arguments.
5902 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
5903 (c_parser_objc_class_definition): Handle attributes.
5904 (c_parser_objc_protocol_definition): Likewise.
5906 2010-09-28 Tobias Burnus <burnus@net-b.de>
5910 * toplev.h (save_decoded_options, save_decoded_options_count):
5911 New global variables.
5912 * toplev.c (save_decoded_options, save_decoded_options_count):
5915 2010-09-28 Ian Lance Taylor <iant@google.com>
5917 * config/i386/i386.c (ix86_supports_split_stack): Test
5918 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
5920 2010-09-28 Ian Lance Taylor <iant@google.com>
5923 * opts.c (decode_options): Don't test whether the target supports
5924 split stack if flag_split_stack == 0.
5926 2010-09-28 Jan Hubicka <jh@suse.cz>
5928 * builtin-attrs.def (ATTR_LEAF): New attribute.
5929 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
5930 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
5931 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
5932 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
5933 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
5934 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
5935 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
5936 * sync-builtins.def: Annotate all builtins by leaf.
5937 * omp-builtins.def: Annotate all builtins by leaf.
5938 * builtins.def: Annotate relevant builtins with leaf attribute.
5939 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
5940 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
5943 2010-09-28 Jan Hubicka <jh@suse.cz>
5945 * tree-ssa-ccp.c (fold_ctor_reference): New function.
5946 (fold_const_aggregate_ref): Use it.
5947 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
5948 into external static.
5950 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5953 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
5954 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
5955 (ix86_solaris_return_in_memory): Remove.
5956 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
5957 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
5958 (TARGET_SUBTARGET_DEFAULT): Redefine.
5959 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
5960 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
5961 (TARGET_SUBTARGET_DEFAULT): Redefine.
5962 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
5964 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
5966 2010-09-29 Alan Modra <amodra@gmail.com>
5969 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
5970 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
5971 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
5973 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
5974 (rs6000_emit_prologue): Don't just create frame save info for r2,
5977 2010-09-28 Richard Henderson <rth@redhat.com>
5979 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
5980 when 8 bytes are requested.
5982 2010-09-28 Tristan Gingold <gingold@adacore.com>
5984 * config/avr/avr.c (expand_prologue): Set
5985 current_function_static_stack_size.
5987 2010-09-28 Tristan Gingold <gingold@adacore.com>
5989 * config/alpha/alpha.md: Change the initial condition of the
5992 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
5994 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
5995 Split from *avx_<maxmin:code><mode>3.
5996 (*avx_<smaxmin:code><mode>3): Ditto.
5997 * config/i386/i386.md (maxmin): Remove code iterator.
5999 2010-09-27 Ian Lance Taylor <iant@google.com>
6001 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
6002 requires assembler support for CFI directives.
6004 2010-09-27 Richard Henderson <rth@redhat.com>
6006 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
6008 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
6010 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
6011 that AFTER is not in the range FROM..TO, inclusive.
6013 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
6014 Bernd Schmidt <bernds@codesourcery.com>
6016 PR rtl-optimization/45792
6017 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
6018 If not all insns are to be merged, for each edge, stash the
6019 next candidate after the to-be-merged insns before doing the
6020 merge, and use them for the retry at the new insertion point.
6021 Handle CC0 targets when retrying.
6023 2010-09-27 Ian Lance Taylor <iant@google.com>
6025 * common.opt (fsplit-stack): New option.
6026 * opts.c (decode_options): Set flag_split_stack to final value.
6027 * target.def (supports_split_stack): New hook.
6028 * gcc.c (STACK_SPLIT_SPEC): Define.
6029 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
6030 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
6031 (Code Gen Options): Document -fsplit-stack.
6032 * doc/extend.texi (Function Attributes): Mention no_split_stack.
6033 (Function Attributes): Document no_split_stack.
6034 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
6035 TARGET_SUPPORTS_SPLIT_STACK.
6036 * doc/tm.texi: Rebuild.
6037 * function.c (thread_prologue_and_epilogue_insns): If
6038 flag_split_stack, add split stack prologue.
6039 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
6040 * varasm.c (saw_no_split_stack): New static variable.
6041 (assemble_start_function): Set saw_no_split_stack if the function
6042 has the no_split_stack attribute.
6043 (file_end_indicate_split_stack): New function.
6044 * output.h (file_end_indicate_split_stack): Declare.
6045 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
6047 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
6049 * config/i386/i386.c (ix86_option_override_internal): Don't set
6050 expand_builtin_va_start to NULL if -fsplit-stack.
6051 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
6053 (ix86_va_start): If -fsplit-stack, get overflow pointer from
6054 scratch register set by prologue.
6055 (ix86_code_end): If -fsplit-stack, call
6056 file_end_indicate_split_stack.
6057 (ix86_supports_split_stack): New static function.
6058 (SPLIT_STACK_AVAILABLE): Define.
6059 (split_stack_prologue_scratch_regno): New static function.
6060 (split_stack_fn): New static variable.
6061 (ix86_expand_split_stack_prologue): New function.
6062 (ix86_live_on_entry): New static function.
6063 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
6064 (output_pic_addr_const): Likewise.
6065 (i386_asm_output_addr_const_extra): Likewise.
6066 (ix86_expand_call): Change return type to rtx. Return the new
6068 (TARGET_SUPPORTS_SPLIT_STACK): Define.
6069 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6070 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
6071 (split_stack_prologue, split_stack_return): New insns.
6072 (split_stack_space_check): New insn.
6073 * config/i386/i386.h (struct machine_function): Add
6074 split_stack_varargs_pointer field.
6075 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
6076 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
6077 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
6078 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
6079 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
6081 (ix86_expand_call): Update declaration.
6083 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
6085 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
6086 code. Added byref, which was missing in the list of codes.
6087 Explain that enumeration values are encoded as the integer type
6088 that the compiler uses to store them. Explain and make examples
6089 of how 'const' interacts with pointers, and the complication of
6090 the encoding of 'const char *'.
6091 (Legacy type encoding): New subsection, explaining that GCC emits
6092 incorrect type encodings for the NeXT runtime for compatibility
6094 (@@encode): New subsection, explaining @encode and particularly
6095 that protocol qualifiers are not recognized inside an @encode()
6097 (Method signatures): New subsection, explaining how method
6098 signatures are encoded.
6100 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
6102 Merge from 'apple/trunk' branch on FSF servers. Removed small
6103 change in build_conditional_expr that had been added when fixing
6104 PR objc/27377 and which did the same check in a less complete way.
6106 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
6109 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
6110 looking for objective-c common pointer types.
6112 2005-06-22 Ziemowit Laski <zlaski@apple.com>
6115 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
6116 use their ObjC common type.
6118 2010-09-27 Richard Guenther <rguenther@suse.de>
6120 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
6122 2010-09-27 Jie Zhang <jie@codesourcery.com>
6124 * print-tree.c (print_node): Print in-constant-pool.
6126 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
6128 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
6129 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
6130 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
6131 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
6133 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
6135 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
6136 from pro_epilogue_adjust_stack_<mode>_{1,2}.
6137 (pro_epilogue_adjust_stack_<mode>_add): Rename from
6138 pro_epilogue_adjust_stack_<mode>_3.
6139 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
6140 renamed pro_epilogue_adjust_stack_{si,di}_add.
6141 (ix86_expand_prologue): Use indirect functions. Update for renamed
6142 pro_epilogue_adjust_stack_{si,di}_sub.
6144 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
6146 * config/i386/i386.md (movmsk_df): New insn.
6147 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
6148 sequence for TARGET_SSE_MATH.
6150 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
6152 * config/mips/mips.c (mips_builtin_decls): Declare.
6153 (mips_init_builtins): Store function declarations in
6155 (mips_builtin_decl): New function.
6156 (TARGET_BUILTIN_DECL): Define.
6158 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
6159 Richard Henderson <rth@redhat.com>
6161 * config/i386/cygwin.asm: Include auto-host.h.
6162 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
6163 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
6164 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
6165 alignment code from the 64-bit path. Use gas local labels.
6166 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
6167 from _di_2. Remove the useless constant integer argument.
6168 (pro_epilogue_adjust_stack_<mode>_3): New.
6169 (allocate_stack_worker_probe_<mode>): Macroize from
6170 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
6171 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
6172 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
6173 (__chkstk_ms): New function.
6174 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
6175 * config/i386/t-interix: Likewise.
6176 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
6177 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
6178 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
6179 * configure, config.in: Rebuild.
6181 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
6183 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
6184 statements because of the return slot optimization.
6186 2010-09-25 Anatoly Sokolov <aesok@post.ru>
6188 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
6189 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
6190 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6191 (class_likely_spilled_p): Rename to...
6192 (avr_class_likely_spilled_p): ...this. Make static. Change argument
6193 type to reg_class_t.
6195 2010-09-24 Jan Hubicka <jh@suse.cz>
6197 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
6198 (lto_symtab_resolve_symbols): Set it.
6199 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
6200 store resolution field in cgraph/varpool.
6201 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
6202 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
6203 (cgraph_dump_node): Drop used_from_object_file.
6204 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
6205 (cgraph_function_body_availability): Use decl_replaceable_p.
6206 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
6207 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
6208 cgraph_used_from_object_file_p.
6209 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
6210 cgraph_used_from_object_file_p.
6211 (resolution_used_from_other_file_p): New functoin.
6212 (cgraph_used_from_object_file_p): New predicate.
6213 * cgraph.h: Include plugin-api.h
6214 (struct cgraph_local_info): Remove used_from_object_file.
6215 (struct cgraph_node): Add resolution field.
6216 (struct varpool_node): Likewise; remove used_from_object_file;
6217 reove const_value_known.
6218 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
6219 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
6220 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
6221 varpool_used_from_object_file_p): Declare.
6222 (varpool_get_node, varpool_extra_name_alias): Update prototype.
6223 * tree.h (DECL_REPLACEABLE_P): Remove.
6224 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
6225 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
6226 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
6227 input_overwrite_node, input_node, input_varpool_node): Stream
6229 * expr.c (expand_expr_real_1): Use const_value_known_p
6230 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
6232 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
6233 (function_and_variable_visibility): Set resolution for local vars
6234 and functions; use varpool_used_from_object_file_p.
6235 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
6237 (default_binds_local_p_1): Use resolutoin info.
6238 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
6239 * varpool.c (varpool_get_node): Constify.
6240 (const_value_known_p): Do not use vnode->const_value_known;
6241 use decl_replaceable_p.
6242 (varpool_finalize_decl): Do not set const_value_known.
6243 (cgraph_variable_initializer_availability): Use decl_replaceable_p
6244 (varpool_extra_name_alias): Return new node.
6245 (varpool_used_from_object_file_p): New function.
6247 2010-09-24 Richard Henderson <rth@redhat.com>
6249 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
6250 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
6251 (do_spill): Use REG_CFA_OFFSET.
6252 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
6254 (ia64_expand_epilogue): Likewise.
6255 (process_set): Split into ...
6256 (process_cfa_adjust_cfa): this,
6257 (process_cfa_register): this,
6258 (process_cfa_offset): and this new function.
6259 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
6260 instead of REG_FRAME_RELATED_EXPR.
6262 2010-09-24 Olivier Hainque <hainque@adacore.com>
6264 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
6266 2010-09-24 Jan Hubicka <jh@suse.cz>
6268 * doc/extend.texi: (attribute leaf): Document.
6269 * tree.c (local_define_builtin): Handle ECF_LEAF.
6270 (build_common_builtin_nodes): Set ECF_LEAF where needed.
6271 * tree.h (ECF_LEAF): New.
6272 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
6273 overwrittable and unavailable functions.
6274 (ipa_init): Put all_module_statics into optimization_summary_obstack.
6275 (copy_global_bitmap): Do not copy all_module_statics.
6276 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
6277 (propagate): Handle overwritable and unavailable leaf functions;
6278 initialize global info for overwritable and unavailable leaf functions;
6279 do not free all module statics.
6280 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
6282 * calls.c (flags_from_decl_or_type): Handle leaf.
6283 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
6286 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
6288 * gengtype.c: Reindented.
6289 * gengtype.h: Reindented.
6290 * gengtype-parse.c: Reindented.
6292 2010-09-24 Jan Hubicka <jh@suse.cz>
6294 PR tree-optimization/45738
6295 PR tree-optimization/45741
6296 * expr.c (string_constant): Allow CONST_DECL too;
6297 check that DECL_INITIAL is set.
6298 * varpool.c (const_value_known_p): Only look into VAR_DECL
6301 2010-09-24 Joseph Myers <joseph@codesourcery.com>
6303 * common.opt (undef): New.
6305 2010-09-24 Jakub Jelinek <jakub@redhat.com>
6308 * rtl.h (enum global_rtl_index): Add
6309 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
6310 (LAST_VIRTUAL_POINTER_REGISTER): Define.
6311 (virtual_preferred_stack_boundary_rtx,
6312 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
6313 (LAST_VIRTUAL_REGISTER): Increase by one.
6314 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
6315 instead of LAST_VIRTUAL_REGISTER.
6316 * function.c (instantiate_new_reg): Handle
6317 virtual_preferred_stack_boundary_rtx.
6318 * emit-rtl.c (init_virtual_regs): Handle
6319 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
6320 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
6321 * explow.c (round_push): If crtl->preferred_stack_boundary
6322 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
6323 virtual_preferred_stack_boundary_rtx alignment instead of
6324 crtl->preferred_stack_boundary alignment.
6325 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
6326 macros. Never decrease crtl->preferred_stack_boundary,
6327 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
6328 instead of PREFERRED_STACK_BOUNDARY. Don't modify
6329 stack_pointer_delta in dynamic allocation, even when size
6331 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
6333 * print-rtl.c (print_rtx): Handle
6334 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
6335 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
6336 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
6337 * config/frv/frv.c (frv_emit_movsi): Likewise.
6338 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
6339 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
6343 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
6346 * calls.c (expand_call): Make sure that all variable sized
6347 adjustments are multiple of preferred stack boundary after
6350 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
6351 Dominique Dhumieres <dominiq@lps.ens.fr>
6354 * config/darwin-driver.c (darwin_default_min_version):
6355 Adjust size passed to memcpy in two places.
6357 2010-09-24 Richard Guenther <rguenther@suse.de>
6359 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
6360 Make sure to not call set_type_context with error_mark_node.
6361 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
6363 2010-09-24 Richard Guenther <rguenther@suse.de>
6365 * Makefile.in (OBJS-onestep): Remove.
6366 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
6367 (libbackend.a): Remove onestep support.
6368 (libbackend.o): Remove.
6369 * configure.ac (--enable-intermodule): Remove.
6370 * configure: Regenerate.
6372 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
6374 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
6375 reaching the end of a block if it occurs at a DEBUG_INSN.
6377 2010-09-09 Tristan Gingold <gingold@adacore.com>
6380 * config/vms/vms-crt0-64.c: Removed.
6381 * config/vms/vms-crt0.c: Removed.
6382 * config/vms/vms-psxcrt0-64.c: Removed.
6383 * config/vms/vms-psxcrt0.c: Removed.
6384 * config/vms/vms-ucrt0.c: New file.
6385 * config/vms/t-vms64: Removed.
6386 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
6387 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
6388 * config.gcc (alpha-dec-vms): Use t-vms.
6390 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
6392 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
6393 underfull hbox in DVI output.
6394 (-fobjc-class-cxx-cdtors): Same change.
6395 (-fobjc-exceptions): Tidied up documentation. Explain what the
6396 option does, but moved the (lenghty) description of the exception
6397 syntax into objc.texi.
6398 (-fobjc-gc): Explain that the option is not useful with the GNU
6400 (-fzero-link): Explain that the GNU runtime always works in
6402 * doc/objc.texi: All sections: simplified @node declarations
6403 removing specification of next, previous, up node.
6404 (Objective-C): Updated introduction.
6405 (Garbage Collection): Updated. The bohem-gc library is now
6406 included in gcc itself. Mention that this section only applies to
6407 the GNU Objective-C runtime.
6408 (compatibility_alias): Small tidy up.
6409 (Exceptions): New section mostly containing text previously in the
6410 description of the -fobjc-exception command-line option.
6411 (Synchronization): Same.
6413 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
6415 * config/i386/i386.md (ix86_code_end): Move the initialization of
6416 xops array near the consumer. Use AX_REG and SP_REG instead of
6417 numerical constants.
6419 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
6421 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
6422 method [methodname]' for an Objective-C method instead of the less
6423 satisfactory 'too many arguments to function' (with no method name).
6425 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
6427 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
6428 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
6429 (execute_update_addresses_taken): Remove parameter. Execute the
6430 optimization unconditionally.
6431 * passes.c (execute_function_todo): Call execute_update_addresses_taken
6432 unconditionally if TODO_rebuild_alias is set, else only when optimizing
6433 if TODO_update_address_taken is set.
6435 2010-09-23 Anatoly Sokolov <aesok@post.ru>
6437 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6438 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
6439 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6440 (arm_output_addr_const_extra): Make static.
6442 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
6444 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
6445 define as unspec_volatile.
6446 ("nops"): Define as unspec_volatile. Use fputs to write to
6447 asm_out_file directly. Output NOPs on separate lines using while loop.
6448 * config/i386/i386.c (ix86_code_end): Use fputs to write to
6449 asm_out_file directly. Output NOPs on separate lines using while loop.
6451 2010-09-23 Richard Guenther <rguenther@suse.de>
6453 PR tree-optimization/45565
6454 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
6455 Make sure to adjust the fndecl before replacing the stmt.
6457 2010-09-23 Richard Guenther <rguenther@suse.de>
6460 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
6461 gimplifying MEM_REF.
6463 2010-09-23 Alan Modra <amodra@gmail.com>
6465 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
6466 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
6468 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
6470 PR rtl-optimization/44374
6471 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
6472 * df-core.c (df_set_bb_dirty): Set it.
6473 * ifcvt.c (find_memory): Remove function.
6474 (dead_or_predicable): Use can_move_insns_across.
6475 * df.h (can_move_insns_across): Declare function.
6476 * cfgcleanup.c (block_was_dirty): New static variable.
6477 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
6478 than df_get_bb_dirty.
6479 (try_head_merge_bb): New static function.
6480 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
6482 * df-problems.c: Include "target.h"
6483 (df_simulate_find_uses): New static function.
6484 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
6485 (find_memory, find_memory_store): New static functions.
6486 (can_move_insns_across): New function.
6487 * Makefile.in (df-problems.o): Update dependencies.
6489 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
6492 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
6493 is specified and the suffix of the file isn't ".c".
6494 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6496 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6498 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
6499 * doc/cppopts.texi: Fix markup of index entry.
6500 * doc/extend.texi (Constructing Calls): Fix markup of
6501 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
6502 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
6503 (Vague Linkage, C++ Attributes): Fix markup of index entries and
6505 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
6507 (C Dialect Options, C++ Dialect Options, Warning Options)
6508 (Debugging Options, Spec Files, Darwin Options)
6509 (i386 and x86-64 Options, MIPS Options)
6510 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
6511 index entries, avoid abbreviations, allow URLs to wrap, avoid
6512 long lines, avoid overlong pages from long @itemx lists.
6513 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
6514 * doc/standards.texi (Standards): Likewise.
6515 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
6517 2010-09-22 Joseph Myers <joseph@codesourcery.com>
6519 * opts-common.c (prune_options): Make static. Work with decoded
6521 (decode_cmdline_options_to_array): Call prune_options. Don't
6522 resize option array here.
6523 * opts.h (prune_options): Remove prototype.
6524 * gcc.c (process_command): Take decoded options; don't call
6525 decode_cmdline_options_to_array here. Use decoded options for argv[0].
6526 (main): Call decode_cmdline_options_to_array here instead of
6527 prune_options. Update call to process_command.
6528 * config/darwin-driver.c: Include opts.h.
6529 (darwin_default_min_version): Work with decoded options. Don't
6530 handle -b or -V here.
6531 * config/darwin.h (darwin_default_min_version): Update prototype.
6532 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
6533 darwin_default_min_version.
6534 * config/i386/cygwin.h (mingw_scan): Update prototype.
6535 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
6536 * config/i386/cygwin1.c: Include opts.h.
6537 (mingw_scan): Work with decoded options.
6538 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
6539 * config/t-darwin (darwin-driver.o): Update dependencies.
6541 2010-09-22 Joseph Myers <joseph@codesourcery.com>
6543 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
6544 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
6545 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
6546 -force-link, -force-link=, -language, -language=,
6547 -library-directory, -library-directory=, -no-canonical-prefixes,
6548 -no-standard-libraries, -no-warnings, -optimize, -output,
6549 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
6550 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
6551 -print-file-name=, -print-libgcc-file-name,
6552 -print-multi-directory, -print-multi-lib,
6553 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
6554 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
6555 -profile, -save-temps, -shared, -specs, -specs=, -static,
6556 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
6558 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
6559 * gcc.c (A Short Introduction to Adding a Command-Line Option):
6561 (cc1_options): Correct specs for passing down --help,
6562 --target-help and --help=*. Add spec for passing down --version.
6563 (struct option_map, option_map, target_option_translations,
6564 translate_options): Remove.
6565 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
6566 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
6567 OPT_fhelp_ and OPT_ftarget_help.
6568 (process_command): Don't call translate_options. Call
6569 decode_cmdline_options_to_array before checking for
6570 -no-canonical-prefixes using decoded options.
6571 * opts-common.c (tm.h): Update comment on #include.
6572 (find_opt): Allow abbreviations of long options.
6573 (struct option_map, option_map): New.
6574 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
6576 (target_option_translations): New.
6577 (decode_cmdline_options_to_array): Handle
6578 TARGET_OPTION_TRANSLATE_TABLE in driver.
6579 * opts.c (common_handle_option): Don't handle OPT_fhelp,
6580 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
6582 2010-09-22 Richard Guenther <rguenther@suse.de>
6584 * tree-inline.c (optimize_inline_calls): Schedule cleanups
6585 only if we inlined something. Block compaction and conditional
6586 folding are done by cfg cleanup. Schedule update-address-taken.
6587 (tree_function_versioning): Remove redundant call to number_blocks.
6588 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
6589 folding is done by cfg cleanup.
6590 * passes.c (init_optimization_passes): Remove update-address-taken
6591 pass after IPA inlining.
6593 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6595 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
6596 to update conditions. Fix reg_mode[] check.
6598 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
6600 * config/picochip/picochip.md (movhicc): Use expand to check whether
6601 movhicc is available and split it after reload.
6603 2010-09-22 Richard Guenther <rguenther@suse.de>
6605 * tree-ssanames.c (release_dead_ssa_names): Do not remove
6607 * passes.c (init_optimization_passes): Remove early CFG cleanup.
6608 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
6609 (pass_cleanup_cfg): Likewise.
6610 (execute_fixup_cfg): Cleanup.
6611 * tree-pass.h (pass_cleanup_cfg): Remove.
6613 2010-09-22 Martin Jambor <mjambor@suse.cz>
6615 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
6616 builtins if it is true.
6617 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
6620 2010-09-22 Martin Jambor <mjambor@suse.cz>
6622 * tree-sra.c (struct access): New field grp_no_warning.
6623 (create_access_replacement): Set TREE_NO_WARNING according to
6625 (create_artificial_child_access): Use build_ref_for_model and set
6626 grp_no_warning if build_user_friendly_ref_for_offset fails.
6627 (propagate_subaccesses_across_link): Likewise.
6629 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
6632 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
6635 2010-09-22 Tristan Gingold <gingold@adacore.com>
6637 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
6639 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
6641 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
6642 * config/i386/i386.c (decide_alg): Update for rename.
6644 2010-09-22 Jakub Jelinek <jakub@redhat.com>
6646 PR rtl-optimization/45739
6647 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
6648 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
6650 2010-09-21 Anatoly Sokolov <aesok@post.ru>
6652 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
6653 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
6655 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
6656 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6658 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6661 * c-parser.c (c_parser_objc_method_definition): Check the return
6662 value of objc_start_method_definition and if false is returned,
6663 parse the method definition but emit no code.
6665 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6668 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
6669 call objc_get_interface_ivars ().
6671 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
6674 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
6675 static chain-register is used for 64-bit.
6677 2010-09-21 Richard Guenther <rguenther@suse.de>
6679 * dwarf2out.c (is_cu_die): New function.
6680 (add_pubtype): Use it.
6681 (gen_subprogram_die): Likewise.
6682 (gen_struct_or_union_type_die): Likewise.
6683 (dwarf2out_finish): Likewise.
6684 (comp_unit_die): Rename to ...
6685 (single_comp_unit_die): ... this.
6686 (comp_unit_die): New function lazily constructing and
6687 returning single_comp_unit_die.
6688 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
6689 base_type_die, subrange_type_die, modified_type_die,
6690 lower_bound_default, add_bound_info, add_prototyped_attribute,
6691 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
6692 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
6693 force_decl_die, gen_namespace_die, dwarf2out_decl,
6694 dwarf2out_start_source_file, dwarf2out_end_source_file,
6695 prune_unused_types, dwarf2out_finish): Use it.
6696 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
6697 the global list of translation-unit decls.
6698 (dwarf2out_init): Do not create single_comp_unit_die here.
6699 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
6701 2010-09-21 Richard Guenther <rguenther@suse.de>
6703 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
6706 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
6708 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
6709 (qhs_extenddi_cstr): Likewise.
6710 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
6711 them for the source operand.
6713 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
6715 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
6716 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
6717 (ix86_split_ashr): Ditto.
6718 (ix86_split_lshr): Ditto.
6720 2010-09-21 Richard Guenther <rguenther@suse.de>
6722 PR tree-optimization/45580
6723 * tree-ssa-propagate.c (substitute_and_fold): Always replace
6725 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
6726 virtuals fold the call into a regular indirect one.
6728 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
6730 PR rtl-optimization/42775
6731 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
6732 scheduling is enabled.
6734 2010-09-20 Jakub Jelinek <jakub@redhat.com>
6736 PR rtl-optimization/45728
6737 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
6738 gen_lowpart_common first and if that fails, force_reg first
6739 before calling gen_lowpart.
6742 * cfgexpand.c (expand_one_stack_var_at): Use
6743 crtl->max_used_stack_slot_alignment as max_align, instead
6744 of maximum of that and PREFERRED_STACK_BOUNDARY.
6745 Don't call update_stack_alignment.
6747 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
6749 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
6750 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
6751 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
6752 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
6753 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
6754 (build_nonstandard_integer_type): Likewise.
6755 (build_range_type_1): New function, built from...
6756 (build_range_type): ...this. Call build_range_type_1.
6757 (build_nonshared_range_type): New function.
6758 (build_array_type_1): New function, built from...
6759 (build_array_type: ...this. Call build_array_type_1.
6760 (build_nonshared_array_type): New function.
6761 * tree.h (build_nonshared_range_type): Declare.
6762 (build_nonshared_array_type): Likewise.
6764 2010-09-20 Anatoly Sokolov <aesok@post.ru>
6766 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
6767 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6768 (arm_class_likely_spilled_p): New function.
6770 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
6772 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
6774 (ix86_split_ashl): Ditto.
6775 (ix86_split_ashr): Ditto.
6776 (ix86_split_lshr): Ditto.
6777 (ix86_adjust_counter): Ditto.
6779 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
6781 * c-family/c-common.h (constant_string_class): Documented with
6782 comment identical to the one already in c-common.c.
6784 2010-09-20 Jakub Jelinek <jakub@redhat.com>
6786 * dwarf2out.c (any_cfis_emitted): New static variable.
6787 (add_fde_cfi): Set it.
6788 (dwarf2out_frame_debug): Clear it before processing,
6789 if it is set afterwards, flush any queued reg saves.
6792 * dwarf2out.c (add_accessibility_attribute): Assume
6793 DW_ACCESS_private as the default for dwarf_version > 2
6794 and DW_TAG_class_type parent.
6795 (gen_inheritance_die): Assume DW_ACCESS_public as the default
6796 for dwarf_version > 2 and parent other than DW_TAG_class_type.
6798 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
6801 * arm.md (arm_movt): Only enable on machines with MOVT.
6803 2010-09-20 Jie Zhang <jie@codesourcery.com>
6805 * config/arm/arm.c (arm_address_offset_is_imm): New.
6806 (arm_early_store_addr_dep): New.
6807 (arm_early_load_addr_dep): New.
6808 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
6809 (arm_early_load_addr_dep): Declare.
6810 (arm_address_offset_is_imm): Declare.
6811 * config/arm/cortex-m4.md: New file.
6812 * config/arm/cortex-m4-fpu.md: New file.
6813 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
6814 (attr generic_sched): Exclude cortexm4.
6815 (attr generic_vfp): Exclude cortexm4.
6817 2010-09-20 Richard Guenther <rguenther@suse.de>
6820 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
6822 2010-09-20 Jan Hubicka <jh@suse.cz>
6824 PR tree-optimize/45605
6825 * cgraph.h (const_value_known_p): Declare.
6826 (varpool_decide_const_value_known): Remove.
6827 * tree-ssa-ccp.c (get_base_constructor): Use it.
6828 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
6829 * expr.c (string_constant): Likewise.
6830 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
6831 * ipa.c (ipa_discover_readonly_nonaddressable_var,
6832 function_and_variable_visibility): Likewise.
6833 * gimplify.c (gimplify_call_expr): Likewise.
6834 * gimple-fold.c (get_symbol_constant_value): Likewise.
6835 * varpool.c (varpool_decide_const_value_known): Replace by...
6836 (const_value_known_p): ... this one; handle other kinds of DECLs
6837 too and work for automatic vars.
6838 (varpool_finalize_decl): Use const_value_known_p.
6840 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
6843 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
6845 2010-09-20 Richard Guenther <rguenther@suse.de>
6847 PR tree-optimization/45705
6848 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
6850 2010-09-20 Jakub Jelinek <jakub@redhat.com>
6852 PR rtl-optimization/45695
6853 * combine.c (try_combine): When splitting a two set pattern,
6854 make sure the pattern which will be put into i2 doesn't use REGs
6855 or MEMs set by insns in between i2 and i3.
6857 2010-09-19 Jan Hubicka <jh@suse.cz>
6860 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
6861 processing same node twice.
6863 2010-09-19 Anatoly Sokolov <aesok@post.ru>
6865 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
6866 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6867 (bfin_class_likely_spilled_p): New function
6869 2010-09-19 Ira Rosen <irar@il.ibm.com>
6871 PR tree-optimization/45714
6872 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
6873 created in vectorizable_call instead of the original statement in
6876 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
6878 * config/i386/i386-protos.h (split_double_mode): New prototype.
6879 (split_di, split_ti): Remove prototypes.
6880 * config/i386/i386.c (split_double_mode): New function.
6881 (split_di, split_ti): Remove.
6882 (ix86_expand_branch): Use split_double_mode.
6883 (ix86_split_to_parts): Ditto.
6884 (ix86_split_ashl): Ditto.
6885 (ix86_split_ashr): Ditto.
6886 (ix86_split_lshr): Ditto.
6887 (ix86_force_to_memory): Ditto.
6888 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
6890 2010-09-18 Jan Hubicka <jh@suse.cz>
6892 PR tree-optimization/45453
6893 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
6894 virtual functions are reachable.
6895 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
6896 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
6897 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
6898 when modifying function.
6900 2010-09-18 Jan Hubicka <jh@suse.cz>
6902 PR tree-optimization/45605
6903 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
6904 * gimple-fold.c (static_object_in_other_unit_p): New function.
6905 (canonicalize_constructor_val): Use it.
6906 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
6908 (gimple_fold_obj_type_ref_known_binfo): Use
6909 static_object_in_other_unit_p.
6911 2010-09-18 Richard Guenther <rguenther@suse.de>
6913 PR tree-optimization/45709
6914 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
6915 insertions until after all PHI nodes of the block are processed.
6917 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
6919 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
6921 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
6923 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
6925 2010-09-18 Richard Guenther <rguenther@suse.de>
6927 PR tree-optimization/45709
6928 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
6930 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
6932 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
6933 (dot_deps_stmt): Same.
6934 * graphite-poly.c (dot_lst): Same.
6935 * graphite-scop-detection.c (dot_all_scops): Same.
6938 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
6941 2009-12-16 Ben Elliston <bje@au.ibm.com>
6943 * tree-data-ref.c (dot_rdg_1): Added back.
6944 (dot_rdg): Same. Added "#if 0" around system call.
6946 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
6947 Richard Henderson <rth@redhat.com>
6949 * config/i386/i386.c (initial_ix86_tune_features): Add
6950 X86_TUNE_PAD_SHORT_FUNCTION.
6951 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
6952 (ix86_count_insn): New.
6953 (ix86_pad_short_function): Likewise.
6954 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
6956 * config/i386/i386.h (ix86_tune_indices): Add
6957 X86_TUNE_PAD_SHORT_FUNCTION.
6958 (TARGET_PAD_SHORT_FUNCTION): New.
6960 * config/i386/i386.md (UNSPEC_NOPS): New.
6963 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
6966 * calls.c (expand_call): Make sure that all variable sized
6967 adjustments are multiple of preferred stack boundary after
6970 2010-09-17 DJ Delorie <dj@redhat.com>
6972 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
6973 passed an invalid value, print an error instead of ICEing.
6974 (valid_psw_flag): New.
6975 (rx_expand_builtin): Call it for setpsw/clrpsw.
6976 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
6978 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
6979 (bitclr_in_memory): Likewise.
6980 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
6982 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
6985 * cfgexpand.c (update_stack_alignment): New.
6986 (get_decl_align_unit): Use it.
6987 (expand_one_stack_var_at): Call update_stack_alignment.
6989 2010-09-17 Richard Guenther <rguenther@suse.de>
6991 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
6992 Properly copy the read string.
6994 2010-09-17 Joseph Myers <joseph@codesourcery.com>
6996 * doc/options.texi (Variable): Document.
6997 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
6998 generate target_flags declarations explicitly. Don't define
6999 VarExists variables for the driver.
7000 * common.opt (target_flags): New Variable record.
7001 (flag_dump_unnumbered, flag_dump_unnumbered_links,
7002 flag_var_tracking, flag_var_tracking_assignments,
7003 flag_var_tracking_assignments_toggle): Don't mark variables with
7005 * config/i386/i386.c (ix86_isa_flags): Don't define here.
7006 * config/i386/i386.opt (ix86_isa_flags): Define here.
7007 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
7008 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
7010 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
7011 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
7012 Only define for generator programs.
7013 * rtlanal.c (target_flags): Remove.
7014 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
7015 flag_var_tracking_assignments_toggle): Remove.
7017 2010-09-17 Michael Matz <matz@suse.de>
7019 PR tree-optimization/43432
7020 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
7021 Accept backwards consecutive accesses.
7022 (vect_create_data_ref_ptr): If step is negative generate
7024 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
7025 (perm_mask_for_reverse, reverse_vec_elements): New functions.
7026 (vectorizable_load): Handle loads with negative steps when easily
7029 2010-09-03 Jan Hubicka <jh@suse.cz>
7031 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
7033 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
7035 * config/v850/v850.c (v850_function_value_regno_p): Make static.
7036 Adjust comments. Declare.
7037 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
7038 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
7040 2010-09-17 Richard Guenther <rguenther@suse.de>
7042 * common.opt (combine): Remove.
7043 * gcc.c (default_compilers): Remove specs testing combine.
7044 The C compilers no longer can combine.
7045 (option_map): Remove -combine.
7046 (display_help): Remove -combine.
7047 (driver_handle_option): Remove OPT_combine handling.
7048 (compile_input_file_p): Remove.
7049 (do_spec): Remove code concerning combine.
7051 * doc/invoke.texi: Remove traces of -combine.
7052 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
7054 2010-09-17 Richard Guenther <rguenther@suse.de>
7057 * builtins.c (fold_builtin_memory_op): Always properly adjust
7058 alignment of memory accesses.
7060 2010-09-16 Jan Hubicka <jh@suse.cz>
7062 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
7065 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
7067 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
7069 * config/i386/i386.c (predict_jump): Add prototype.
7070 (flag_opts): Add -m8bit-idiv.
7071 (ix86_split_idivmod): New.
7073 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
7074 Add 2 splitters for SI/DI mode divide.
7075 (divmod<mode>4_1): New pattern.
7076 (udivmod<mode>4_1): Likewise.
7077 (testdi_ccno_1): Likewise.
7079 * config/i386/i386.opt (m8bit-idiv): New.
7081 * doc/invoke.texi: Document -m8bit-idiv.
7083 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
7086 * config/i386/i386.c (min_insn_size): Moved out of the
7087 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
7089 2010-09-16 Jan Hubicka <jh@suse.cz>
7091 * lto-cgraph.c (lto_output_node): Fix handling of clones.
7092 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
7093 unreachable clones with reachable clones.
7094 * tree-inline.c (copy_bb): Fix sanity checking when producing
7097 2010-09-16 Anatoly Sokolov <aesok@post.ru>
7099 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
7100 (TARGET_MEMORY_MOVE_COST): Define.
7101 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
7103 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
7105 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
7106 maybe_tidy_empty_bb.
7109 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
7110 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
7112 2010-09-16 Joseph Myers <joseph@codesourcery.com>
7114 * target.def (target_option.optimization): New hook.
7115 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
7116 TARGET_OPTION_OPTIMIZATION hook.
7117 * doc/tm.texi: Regenerate.
7118 * hooks.c (hook_void_int_int): New.
7119 * hooks.h (hook_void_int_int): Declare.
7120 * opts.c: Don't include tm_p.h.
7121 (decode_options): Use targetm.target_option.optimization instead
7122 of OPTIMIZATION_OPTIONS.
7123 * system.h (OPTIMIZATION_OPTIONS): Poison.
7124 * config/arm/arm-protos.h (arm_optimization_options): Remove.
7125 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
7126 (arm_optimization_options): Rename to arm_option_optimization.
7128 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
7129 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
7130 (cris_option_optimization): New.
7131 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
7132 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
7133 (crx_option_optimization): New.
7134 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
7135 * config/frv/frv-protos.h (frv_optimization_options): Remove.
7136 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
7137 (frv_optimization_options): Rename to frv_option_optimization.
7139 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
7140 * config/h8300/h8300.c (h8300_option_optimization): New.
7141 (TARGET_OPTION_OPTIMIZATION): Define.
7142 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
7143 * config/i386/i386-protos.h (optimization_options): Remove.
7144 * config/i386/i386.c (optimization_options): Rename to
7145 ix86_option_optimization. Make static.
7146 (TARGET_OPTION_OPTIMIZATION): Define.
7147 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
7148 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
7149 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
7150 (ia64_optimization_options): Rename to ia64_option_optimization.
7151 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
7152 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
7153 commented-out definition.
7154 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
7155 instead of OPTIMIZATION_OPTIONS.
7156 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
7157 (m32r_option_optimization): New.
7158 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
7159 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
7161 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
7162 (mcore_option_optimization): New.
7163 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
7164 * config/mep/mep-protos.h (mep_optimization_options): Remove.
7165 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
7166 (mep_optimization_options): Rename to mep_option_optimization.
7167 Make static. Take unused level and size parameters.
7168 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
7169 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
7170 (mmix_option_optimization): New.
7171 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
7172 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
7173 (pdp11_option_optimization): New.
7174 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
7175 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
7176 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
7177 (optimization_options): Rename to rs6000_option_optimization.
7179 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
7180 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
7181 * config/rx/rx.c (rx_set_optimization_options): Rename to
7182 rx_option_optimization. Make static. Take unused level and size
7184 (TARGET_OPTION_OPTIMIZATION): Define.
7185 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
7186 * config/s390/s390-protos.h (optimization_options): Remove.
7187 * config/s390/s390.c (optimization_options): Rename to
7188 s390_option_optimization. Make static. Don't mark size parameter
7190 (TARGET_OPTION_OPTIMIZATION): Define.
7191 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
7192 * config/sh/sh-protos.h (sh_optimization_options): Remove.
7193 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
7194 (sh_optimization_options): Rename to sh_option_optimization. Make
7195 static. Don't mark parameters unused.
7196 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
7197 * config/spu/spu-protos.h (spu_optimization_options): Remove.
7198 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
7199 (spu_optimization_options): Rename to spu_option_optimization.
7201 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
7202 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
7203 (v850_option_optimization): New.
7204 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
7205 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
7206 (xtensa_option_optimization): New.
7207 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
7209 2010-09-16 Joseph Myers <joseph@codesourcery.com>
7211 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
7212 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
7213 * doc/tm.texi: Regenerate.
7214 * system.h (OVERRIDE_OPTIONS): Poison.
7215 * target.def (override): Default to hook_void_void.
7216 * targhooks.c (default_target_option_override): Remove.
7217 * genmodes.c, machmode.def: Update comments mentioning
7219 * config/alpha/alpha-modes.def: Update comment mentioning
7220 alpha_override_options.
7221 * config/alpha/alpha-protos.h (override_options): Remove.
7222 * config/alpha/alpha.c (override_options): Rename to
7223 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
7224 (TARGET_OPTION_OVERRIDE): Define.
7225 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
7226 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
7227 of OVERRIDE_OPTIONS.
7228 * config/arc/arc-protos.h (arc_init): Remove.
7229 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
7230 (arc_init): Rename to arc_option_override. Make static.
7231 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
7232 (OVERRIDE_OPTIONS): Remove.
7233 * config/arm/arm-protos.h (arm_override_options): Remove.
7234 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
7235 (arm_override_options): Rename to arm_option_override. Make
7236 static. Call SUBTARGET_OVERRIDE_OPTIONS.
7237 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
7238 * config/arm/arm.md: Update comment referring to arm_override_options.
7239 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
7240 instead of OVERRIDE_OPTIONS.
7241 * config/avr/avr-protos.h (avr_override_options): Remove.
7242 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
7243 (avr_override_options): Rename to avr_option_override. Make static.
7244 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
7245 * config/bfin/bfin-protos.h (override_options): Remove (twice).
7246 * config/bfin/bfin.c (override_options): Rename to
7247 bfin_option_override. Make static.
7248 (TARGET_OPTION_OVERRIDE): Define.
7249 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
7250 * config/cris/cris-protos.h (cris_override_options): Remove.
7251 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
7252 (cris_override_options): Rename to cris_option_override. Make static.
7253 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
7254 * config/frv/frv-protos.h (frv_override_options): Remove.
7255 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
7256 (frv_override_options): Rename to frv_option_override. Make static.
7257 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
7258 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
7259 * config/h8300/h8300.c (h8300_init_once): Rename to
7260 h8300_option_override. Make static.
7261 (TARGET_OPTION_OVERRIDE): Define.
7262 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
7263 * config/i386/i386-protos.h (override_options): Remove.
7264 * config/i386/i386.c (override_options): Rename to
7265 ix86_option_override_internal. Make static. Comments referring
7266 to this function and callers changed.
7267 (ix86_option_override): New.
7268 (TARGET_OPTION_OVERRIDE): Define.
7269 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
7270 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
7271 * config/ia64/ia64.c (ia64_file_start): Update comment referring
7272 to ia64_override_options.
7273 * config/iq2000/iq2000-protos.h (override_options): Remove.
7274 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
7275 (override_options): Rename to iq2000_option_override. Make static.
7276 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
7277 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
7278 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
7279 (lm32_override_options): Rename to lm32_option_override. Make static.
7280 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
7281 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
7282 (m32r_option_override): New.
7283 (m32r_init): Update comment.
7284 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
7285 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
7286 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
7287 (m68hc11_override_options): Rename to m68hc11_option_override.
7288 Make static. Return void.
7289 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
7290 * config/m68k/m68k-protos.h (override_options): Remove.
7291 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
7292 (override_options): Rename to m68k_option_override. Make static.
7293 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
7294 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
7295 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
7296 (mcore_override_options): Rename to mcore_option_override. Make
7298 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
7299 * config/mep/mep-protos.h (mep_override_options): Remove.
7300 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
7301 (mep_override_options): Rename to mep_option_override. Make static.
7302 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
7303 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
7304 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
7305 (mmix_override_options): Rename to mmix_option_override. Make static.
7306 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
7307 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
7308 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
7309 (mn10300_override_options): Rename to mn10300_option_override.
7311 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
7312 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
7313 * config/moxie/moxie.c (moxie_override_options): Rename to
7314 moxie_option_override. Make static.
7315 (TARGET_OPTION_OVERRIDE): Define.
7316 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
7317 * config/picochip/picochip-protos.h (picochip_override_options):
7318 Remove. Update comment referring to picochip_override_options.
7319 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
7320 (picochip_override_options): Rename to picochip_option_override.
7321 Make static. Update comment and definition of
7322 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
7323 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
7324 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7325 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7326 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7327 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7328 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7329 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
7330 instead of OVERRIDE_OPTIONS.
7331 * config/rs6000/rs6000-modes.def: Update comment referring to
7332 rs6000_override_options.
7333 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
7334 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
7335 (rs6000_override_options): Rename to
7336 rs6000_option_override_internal. Make static. Commented
7337 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
7338 (rs6000_option_override): New.
7339 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
7340 instead of OVERRIDE_OPTIONS.
7341 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7342 * config/s390/s390-protos.h (override_options): Remove.
7343 * config/s390/s390.c (override_options): Rename to
7344 s390_option_override. Make static.
7345 (TARGET_OPTION_OVERRIDE): Define.
7346 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
7347 * config/score/score-protos.h (score_override_options): Remove.
7348 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
7349 (score_override_options): Rename to score_option_override. Make
7351 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
7352 Update comment referring to override_options.
7353 * config/score/score3.c (score3_override_options): Rename to
7354 score3_option_override.
7355 * config/score/score3.h (score3_override_options): Rename to
7356 score3_option_override.
7357 * config/score/score7.c (score7_override_options): Rename to
7358 score7_option_override.
7359 * config/score/score7.h (score7_override_options): Rename to
7360 score7_option_override.
7361 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
7362 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
7363 (sparc_override_options): Rename to sparc_option_override. Make
7364 static. Call SUBTARGET_OVERRIDE_OPTIONS.
7365 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
7366 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
7367 instead of OVERRIDE_OPTIONS.
7368 * config/spu/spu-protos.h (spu_override_options): Remove.
7369 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
7370 (spu_override_options): Rename to spu_option_override. Make
7372 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
7373 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
7375 * config/vax/vax-protos.h (override_options): Remove.
7376 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
7377 (override_options): Rename to vax_option_override. Make static.
7378 Call SUBTARGET_OVERRIDE_OPTIONS.
7379 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
7380 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
7381 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
7382 * config/xtensa/xtensa-protos.h (override_options): Remove.
7383 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
7384 (override_options): Rename to xtensa_option_override. Make static.
7385 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
7387 2010-09-16 Richard Guenther <rguenther@suse.de>
7389 PR tree-optimization/45623
7390 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
7391 (get_constraint_for_component_ref): If computing a constraint
7392 for the rhs handle type punning through unions.
7393 (get_constraint_for_address_of): Adjust.
7394 (get_constraint_for_1): Likewise.
7395 (get_constraint_for): Likewise.
7396 (get_constraint_for_rhs): New function.
7397 (do_structure_copy): Adjust.
7398 (make_constraint_to): Likewise.
7399 (handle_const_call): Likewise.
7400 (find_func_aliases): Likewise.
7401 (process_ipa_clobber): Likewise.
7402 (create_variable_info_for): Likewise.
7404 2010-09-16 Ira Rosen <irar@il.ibm.com>
7406 * tree-vectorizer.c: Fix documentation.
7407 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
7408 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
7409 is_pattern_stmt_p, is_loop_header_bb_p,
7410 stmt_vinfo_set_inside_of_loop_cost,
7411 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
7412 known_alignment_for_access_p): Likewise.
7413 * tree-vect-loop.c: Fix documentation.
7414 (vect_get_cost): Start function name from new line.
7415 * tree-vect-data-refs.c: Fix documentation.
7416 * tree-vect_stmts.c: Likewise.
7417 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
7418 (vectorizable_store): Free vec_oprnds if allocated.
7419 (vectorizable_condition): Initialize several variables to avoid
7421 * tree-vect-slp.c: Fix documentation.
7423 2010-09-16 Richard Guenther <rguenther@suse.de>
7425 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
7426 is TS_TRANSLATION_UNIT_DECL.
7427 (initialize_tree_contains_struct): Adjust.
7428 (all_translation_units): New global vector.
7429 (build_translation_unit_decl): New function.
7430 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
7431 (struct tree_translation_unit_decl): New.
7432 (all_translation_units): Declare.
7433 (union tree_node): Add translation_unit_decl member.
7434 (build_translation_unit_decl): Declare.
7435 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
7436 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
7438 (pack_value_fields): Call it.
7439 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
7440 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
7441 (lto_output_tree_pointers): Call it.
7442 * lto-streamer-in.c (lto_input_tree_ref): Handle references
7443 to TRANSLATION_UNIT_DECL.
7444 (unpack_ts_translation_unit_decl_value_fields): New function.
7445 (unpack_value_fields): Call it.
7446 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
7447 (lto_input_tree_pointers): Call it.
7448 * lto-streamer.c (check_handled_ts_structures): Adjust.
7449 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
7450 * c-decl.c (all_translation_units): Remove.
7451 (pop_scope): Use build_translation_unit_decl.
7452 (collect_all_refs): Adjust.
7453 (for_each_global_decl): Likewise.
7454 (c_write_global_declarations): Likewise.
7456 2010-09-16 Jakub Jelinek <jakub@redhat.com>
7459 * fold-const.c (fold_checksum_tree): Change slot from const void **
7460 to void **, use CONST_CAST_TREE to store into *slot.
7462 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
7464 * config/i386/i386.md: Remove unneeded empty conditions and
7465 preparation statements from expanders.
7466 * config/i386/mmx.md: Ditto.
7467 * config/i386/sse.md: Ditto.
7469 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
7471 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
7473 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
7475 PR rtl-optimization/45593
7476 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
7477 insns that were in delay slots as stand-alone insns.
7479 2010-09-15 Ian Lance Taylor <iant@google.com>
7481 * incpath.c (remove_duplicates): If name is not a directory, issue
7482 a warning rather than an error.
7484 2010-09-15 Martin Jambor <mjambor@suse.cz>
7487 * tree-sra.c (create_access): Check for bit-fields directly.
7489 2010-09-15 Jakub Jelinek <jakub@redhat.com>
7491 PR tree-optimization/45633
7492 * tree-cfg.c (verify_gimple_assign_binary): Allow
7493 MINUS_EXPR with lhs and rhs1 pointer vector and
7494 rhs2 sizetype vector.
7495 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
7496 or vector pointer use TER to optimize pointer subtraction.
7498 2010-09-15 Jie Zhang <jie@codesourcery.com>
7500 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
7503 2010-09-15 Ian Lance Taylor <iant@google.com>
7505 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
7507 2010-09-15 Ian Lance Taylor <iant@google.com>
7509 * function.c (get_arg_pointer_save_area): Set
7510 arg_pointer_save_area_init to true.
7512 2010-09-15 Martin Jambor <mjambor@suse.cz>
7514 * tree-sra.c (generate_subtree_copies): Updated comment.
7515 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
7516 obtained from the statement iterator instead.
7517 (load_assign_lhs_subreplacements): Removed parameters lhs and
7518 right_offset, which is obtained from top_racc instead. Parameter lacc
7519 is now expected to be the root of the processed tree rather than root's
7520 first child. Updated all callers.
7522 2010-09-15 Joseph Myers <joseph@codesourcery.com>
7524 * config/pdp11/pdp11.c (register_move_cost): Rename to
7525 pdp11_register_move_cost.
7526 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
7527 pdp11_register_move_cost.
7528 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
7529 pdp11_register_move_cost instead of register_move_cost.
7531 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
7533 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
7534 pattern for vmovn. Expansion in case of non
7535 -mvectorize-with-neon-quad.
7536 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
7537 non- -mvectorize-with-neon-quad case.
7538 (move_lo_quad_<mode>): New expansion to vmov into low part.
7539 (move_hi_quad_<mode>): New expansion to vmov into high part.
7540 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
7541 (move_lo_quad_v4sf): Likewise.
7542 (move_lo_quad_v8hi): Likewise.
7543 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
7545 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
7547 * config/arm/iterators.md (ANY128): New mode iterator.
7548 (V_narrow_pack): New mode attribute.
7549 (V_HALF): Add attribute.
7550 (V_DOUBLE): Add attribute.
7551 (V_mode_nunits): Add attribute.
7553 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
7555 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
7556 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
7558 2010-09-15 Olivier Hainque <hainque@adacore.com>
7559 Jose Ruiz <ruiz@adacore.com>
7561 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
7562 * config/alpha/osf5-unwind.h: New file.
7564 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7567 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
7568 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
7569 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
7571 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7573 * c-lang.h (struct lang_type): Add variable_size GTY option.
7575 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7578 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
7580 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7582 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
7583 result isn't used in memory address.
7585 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7587 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
7588 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
7589 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
7590 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
7591 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
7592 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
7594 * target.def: Add units_per_simd_word to vectorize.
7596 * targhooks.c (default_units_per_simd_word): New.
7597 * targhooks.h (default_units_per_simd_word): Likewise.
7598 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
7599 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7600 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
7601 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7602 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
7603 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7604 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
7605 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7607 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
7608 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
7610 * tree-vect-stmts.c: Don't include "tm_p.h".
7611 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
7612 with targetm.vectorize.units_per_simd_word.
7614 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
7616 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
7618 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
7619 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
7621 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
7622 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
7624 * doc/tm.texi: Regenerated.
7626 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7628 * tree-vect-stmts.c: Include "tm_p.h".
7630 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
7633 2010-09-14 Martin Jambor <mjambor@suse.cz>
7635 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
7636 location of generated statement. Changed all callers.
7637 (build_ref_for_model): New parameter loc which used to set location of
7638 all generated expressions. Changed all callers.
7639 (generate_subtree_copies): Likewise.
7640 (init_subtree_with_zero): Likewise.
7641 (sra_modify_expr): Set locations of all generated statements and
7642 expressions to the location the original statement.
7643 (handle_unscalarized_data_in_subtree): Likewise.
7644 (load_assign_lhs_subreplacements): Likewise.
7645 (sra_modify_constructor_assign): Likewise.
7646 (sra_modify_assign): Likewise.
7648 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
7653 * doc/install.texi (sparc*-*-*): New section.
7654 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
7656 2010-09-14 Jakub Jelinek <jakub@redhat.com>
7659 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
7660 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
7661 (expand_builtin): Adjust caller.
7662 (expand_builtin_unop): Only use subtarget if it has the right mode.
7664 2010-09-14 Tristan Gingold <gingold@adacore.com>
7666 * configure.ac (plugins): Fix typos.
7667 * configure: Regenerate.
7669 2010-09-14 Jakub Jelinek <jakub@redhat.com>
7672 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
7673 gen_type_die for function/method return type.
7675 2010-09-14 Ira Rosen <irar@il.ibm.com>
7677 PR tree-optimization/45470
7678 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7679 can throw an exception.
7680 * tree-vect-stmts.c (vectorizable_call): Likewise.
7682 2010-09-14 DJ Delorie <dj@redhat.com>
7685 * config/mep/mep-protos.h (mep_save_register_info,
7686 mep_reinit_regs, mep_init_regs): Declare.
7688 * config/mep/mep.c: Move all target definitions to the end of the
7689 file to avoid the need for duplicate declarations.
7690 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
7691 (mep_reorg_erepeat): Remove unused variables.
7692 (mep_expand_builtin): Likewise.
7694 * config/mep/mep-pragma.c: Don't include rtl.h.
7695 (INVALID_REGNUM): New.
7696 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
7698 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
7699 Avoid enum/integer math.
7701 2010-09-13 Joseph Myers <joseph@codesourcery.com>
7704 * config/mep/t-mep (GTM_H): Add insn-constants.h.
7705 * config/mep/mep.c (mep_conditional_register_usage): Take no
7707 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
7709 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
7710 call to mep_conditional_register_usage.
7712 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
7715 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
7718 2010-09-13 Jakub Jelinek <jakub@redhat.com>
7720 PR rtl-optimization/45617
7721 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
7722 even if low N bits of X aren't known to be zero.
7724 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
7726 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
7728 * config/i386/i386.c (initial_ix86_tune_features): Add
7729 X86_TUNE_VECTORIZE_DOUBLE.
7730 (ix86_units_per_simd_word): New.
7732 * config/i386/i386.h (ix86_tune_indices): Add
7733 X86_TUNE_VECTORIZE_DOUBLE.
7734 (TARGET_VECTORIZE_DOUBLE): New.
7735 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
7737 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
7739 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
7740 (new_temp_expr_table): Allocate call_cnt vector.
7741 (free_temp_expr_table): Free it.
7742 (process_replaceable): Add call_cnt parm and set in vector.
7743 (find_replaceable_in_bb): Skip replacement if def/use span a call.
7744 (debug_ter): Dump call_cnt value, remove stderr uses.
7746 2010-09-13 Jan Hubicka <jh@suse.cz>
7748 * tree.c (build_zero_cst): New.
7749 * tree.h (build_zero_cst): Declare.
7750 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
7751 (get_base_constructor): Break out from ...
7752 (fold_const_aggregate_ref): Here; handle empty constructors.
7754 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
7756 * config/arm/arm.md: (define_attr "conds"): Update comment.
7757 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
7758 conds attribute to clob.
7759 (arm_sync_compare_and_swapsi): Likewise.
7760 (arm_sync_compare_and_swap<mode>): Likewise.
7761 (arm_sync_lock_test_and_setsi): Likewise.
7762 (arm_sync_lock_test_and_set<mode>): Likewise.
7763 (arm_sync_new_<sync_optab>si): Likewise.
7764 (arm_sync_new_nandsi): Likewise.
7765 (arm_sync_new_<sync_optab><mode>): Likewise.
7766 (arm_sync_new_nand<mode>): Likewise.
7767 (arm_sync_old_<sync_optab>si): Likewise.
7768 (arm_sync_old_nandsi): Likewise.
7769 (arm_sync_old_<sync_optab><mode>): Likewise.
7770 (arm_sync_old_nand<mode>): Likewise.
7772 2010-09-13 Olivier Hainque <hainque@adacore.com>
7774 * fwprop.c (forward_propagate_and_simplify): Only attach a
7775 REG_EQUAL note to an insn if the destination is a register.
7776 * gcse.c (try_replace_reg): Likewise.
7778 2010-09-13 Richard Guenther <rguenther@suse.de>
7780 PR tree-optimization/45611
7781 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
7782 (copy_ref_info): Likewise.
7784 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
7789 * tree-pretty-print.c (dump_generic_node): Disregard top-level
7790 types of MEM_REF pointer types to the same type.
7792 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
7794 PR rtl-optimization/41087
7795 * ifcvt.c (noce_get_condition): Don't allow conditions with
7798 2010-09-12 Anatoly Sokolov <aesok@post.ru>
7800 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7801 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
7802 * config/frv/frv.c (frv_register_move_cost): Make static. Change
7803 arguments type to reg_class_t. Add mode argument.
7804 (frv_memory_move_cost): New.
7805 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
7807 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
7809 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
7810 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
7812 2010-09-10 Jan Hubicka <jh@suse.cz>
7814 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
7816 2010-09-10 Richard Guenther <rguenther@suse.de>
7818 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
7819 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
7820 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
7821 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
7822 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
7824 2010-09-10 Richard Guenther <rguenther@suse.de>
7826 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
7827 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
7828 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
7829 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
7831 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
7834 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
7835 of string folding is of integral type.
7837 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
7839 * doc/invoke.texi (-x): Fix typo.
7841 2010-09-10 Richard Guenther <rguenther@suse.de>
7844 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
7845 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7846 Output DECL_DEBUG_EXPR.
7847 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7848 Input DECL_DEBUG_EXPR.
7850 2010-09-10 Richard Guenther <rguenther@suse.de>
7852 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
7853 (build_index_type): Implement in terms of build_range_type.
7854 (build_range_type): Do not allow NULL_TREE type, improve
7855 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
7857 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
7858 create a distinct copy of the type.
7860 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
7862 * configure: Regenerated.
7863 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
7865 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7867 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
7868 * config/arm/cortex-a9-neon.md: New and partially generated.
7869 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
7871 2010-09-10 Richard Guenther <rguenther@suse.de>
7873 * tree.h (build_index_2_type): Remove.
7874 * tree.c (build_index_2_type): Remove.
7876 2010-09-10 Jakub Jelinek <jakub@redhat.com>
7879 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
7880 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
7881 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
7883 2010-09-10 Martin Jambor <mjambor@suse.cz>
7885 PR tree-optimization/44972
7886 * tree-sra.c: Include toplev.h.
7887 (build_ref_for_offset): Entirely reimplemented.
7888 (build_ref_for_model): New function.
7889 (build_user_friendly_ref_for_offset): New function.
7890 (analyze_access_subtree): Removed build_ref_for_offset check.
7891 (propagate_subaccesses_across_link): Likewise.
7892 (create_artificial_child_access): Use
7893 build_user_friendly_ref_for_offset.
7894 (propagate_subaccesses_across_link): Likewise.
7895 (ref_expr_for_all_replacements_p): Removed.
7896 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
7897 (sra_modify_expr): Use build_ref_for_model.
7898 (load_assign_lhs_subreplacements): Likewise.
7899 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
7900 checks for return values of build_ref_for_offset.
7901 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
7902 build_ref_for_offset.
7903 * ipa-prop.h: Include gimple.h
7904 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
7905 (ipa_analyze_indirect_call_uses): Update comment.
7906 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
7907 (IPA_PROP_H): Likewise.
7909 2010-09-10 Martin Jambor <mjambor@suse.cz>
7911 PR tree-optimization/44972
7912 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
7913 calling build_ref_for_offset.
7915 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7917 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
7918 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
7919 * config/arm/arm-tune.md: Regenerate.
7920 * doc/invoke.texi (ARM Options): Document it.
7922 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
7924 * config/i386/i386.c: Include sched-int.h.
7925 (TARGET_SCHED_DISPATCH): Defined.
7926 (TARGET_SCHED_DISPATCH_DO): Defined.
7927 (DISPATCH_WINDOW_SIZE): Defined.
7928 (MAX_DISPATCH_WINDOWS): Defined.
7929 (MAX_INSN): Defined.
7931 (MAX_IMM_SIZE): Defined.
7932 (MAX_IMM_32): Defined.
7933 (MAX_IMM_64): Defined.
7934 (MAX_LOAD): Defined.
7935 (MAX_STORE): Defined.
7937 (dispatch_group): New.
7938 (num_allowable_groups): New.
7940 (sched_insn_info_s): New.
7941 (dispatch_windows_s): New.
7943 (dispatch_window_list): New.
7944 (dispatch_window_list1): New.
7945 (get_mem_group): New.
7947 (dispatch_violation): New.
7951 (allocate_window): New.
7952 (init_dispatch_sched): New.
7953 (is_end_basic_block): New.
7954 (process_end_window): New.
7955 (allocate_next_window): New.
7956 (find_constant_1): New.
7957 (find_constant): New.
7958 (get_num_immediates): New.
7959 (has_immediate): New.
7960 (get_insn_path): New.
7961 (get_insn_group): New.
7962 (count_num_restricted): New.
7963 (fits_dispatch_window): New.
7964 (add_insn_window): New.
7965 (add_to_dispatch_window): New.
7966 (debug_dispatch_window_file): New.
7967 (debug_dispatch_window): New.
7968 (debug_insn_dispatch_info_file): New.
7969 (debug_ready_dispatch): New.
7971 (has_dispatch): New.
7972 * config/i386/i386.h (debug_ready_dispatch): Declared.
7973 (debug_dispatch_window): Declared.
7974 * config/i386/i386.opt (mdispatch-scheduler): New flag.
7975 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
7976 (TARGET_SCHED_DISPATCH_DO): New.
7977 * doc/tm.texi: Regererated.
7978 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
7979 ready_remove_first_dispatch
7980 (schedule_block): Call targetm.sched.dispatch and
7981 targetm.sched.dispatch_do.
7982 (sched_init): Call targetm.sched.dispatch and
7983 targetm.sched.dispatch_do.
7984 (ready_remove_first_dispatch): New.
7985 (number_in_ready): New.
7986 (get_ready_element): New.
7987 * hooks.c (hook_bool_rtx_int_false): New.
7988 (hook_void_rtx_int): New.
7989 * hooks.h (hook_bool_rtx_int_false): Declared.
7990 (hook_void_rtx_int): Declared.
7991 * sched-int.h (IS_DISPATCH_ON): Defined.
7993 (DISPATCH_VIOLATION): Defined.
7994 (FITS_DISPATCH_WINDOW): Defined.
7995 (DISPATCH_INIT): Defined.
7996 (ADD_TO_DISPATCH_WINDOW): Defined.
7997 (get_ready_element): Declared.
7998 (number_in_ready): Declared.
7999 * target.def (dispatch): Defined.
8000 (dispatch_do): Defined.
8002 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
8005 * reload1.c (merge_assigned_reloads): Remove.
8006 (reload_as_needed): Don't call it.
8008 2010-09-09 Anatoly Sokolov <aesok@post.ru>
8010 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
8011 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8012 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8014 2010-09-09 Matthias Klose <doko@ubuntu.com>
8017 * configure.ac (--enable-plugin): Enhance for cross builds.
8018 * configure: Regenerate.
8020 2010-09-09 Jan Hubicka <jh@suse.cz>
8022 PR tree-optimization/45598
8023 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
8024 string folding is of integral type.
8026 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
8028 * configure.ac (gnu_indirect_function): New test.
8029 * configure: Rebuilt.
8030 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
8031 * defaults.h (IFUNC_ASM_TYPE): Provide default.
8033 * doc/extend.texi (Function Attributes): Document ifunc.
8034 * varasm.c (do_assemble_alias): Deal with ifuncs too.
8036 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
8038 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
8039 epilogue instruction move.
8041 2010-09-09 Jan Hubicka <jh@suse.cz>
8043 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
8044 command line to allow more partitions than input files.
8046 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
8049 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
8051 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
8054 * ira.c (pseudo_for_reload_consideration_p): Don't use
8055 flag_ira_share_spill_slots.
8057 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8059 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
8060 point zero operands that fit into a single GPR.
8061 (s390_preferred_reload_class): Ensure we only return general-purpose
8063 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
8064 floating-point zero operands into GPRs.
8065 ("*mov<mode>_64"): Likewise.
8066 ("mov<mode>"): Likewise using lhi.
8068 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8070 * config/s390/s390.c (s390_symref_operand_p): Return false for
8071 literal pool references.
8072 (s390_check_qrst_address): Update caller.
8074 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
8076 * config/i386/predicates.md (ext_register_operand): Check that
8077 SUBREG_REG is really a register before looking for REGNO.
8078 (reg_not_xmm0_operand): Handle SUBREGs correctly.
8079 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
8081 2010-09-09 Jakub Jelinek <jakub@redhat.com>
8083 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
8084 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
8085 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
8086 * print-rtl.c (print_rtx): Likewise.
8087 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8088 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
8089 for ADDR_EXPR with non-addressable object.
8090 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
8091 (struct dw_val_struct): Add v.val_decl_ref.
8092 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
8093 Handle DW_OP_GNU_implicit_pointer.
8094 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
8095 (get_ref_die_offset_label): New function.
8096 (implicit_ptr_descriptor): New function.
8097 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
8098 (loc_descriptor): Likewise.
8099 (gen_variable_die): Put even definitions into decl_die_table.
8100 (resolve_addr_in_expr): Resolve still unresolved
8101 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
8103 (dwarf2out_finish): Call output_location_lists after outputting
8104 .debug_info and .debug_abbrev instead of before.
8106 2010-09-09 Roland McGrath <roland@redhat.com>
8108 * dwarf2out.c (DWARF_REF_SIZE): Define.
8109 (size_of_loc_descr): Use it for DW_OP_call_ref.
8111 2010-09-09 Alan Modra <amodra@gmail.com>
8113 * doc/invoke.text: Reinstate mcmodel=medium.
8114 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
8115 CMODEL_MEDIUM as default.
8116 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
8117 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
8118 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
8119 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
8121 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8124 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
8125 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
8126 (builtin_longjmp): Likewise.
8127 (allocate_stack): Use hard_frame_pointer_rtx instead of
8129 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
8130 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
8131 (pa_can_eliminate): Likewise.
8132 (TARGET_INTERNAL_ARG_POINTER): Define.
8133 (TARGET_CAN_ELIMINATE): Define.
8134 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
8136 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
8137 (pa_internal_arg_pointer, pa_can_eliminate,
8138 pa_initial_elimination_offset): New.
8139 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
8140 (HARD_FRAME_POINTER_REGNUM): Set to register three.
8141 (INITIAL_FRAME_POINTER_OFFSET): Delete.
8142 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
8144 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
8145 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
8146 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
8147 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
8148 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
8149 new soft frame pointer.
8150 * config/pa/pa64-regs.h: Likewise.
8152 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
8154 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
8156 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
8158 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
8161 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
8163 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
8167 * tree-pretty-print.c (dump_generic_node): Disregard top-level
8168 qualifiers in otherwise equal MEM_REF pointer types.
8169 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
8170 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
8172 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8175 * config/arm/arm.md (bswapsi2): Handle condition correctly
8176 for armv6 and optimize_size.
8178 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8181 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
8183 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
8185 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
8186 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
8187 ix86_expand_strlen, legitimate_pic_address_disp_p,
8188 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
8189 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
8190 ix86_check_movabs, ix86_secondary_memory_needed): Change function
8192 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
8193 return_in_memory_ms_64, ix86_check_movabs,
8194 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
8195 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
8196 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
8197 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
8198 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
8199 ix86_secondary_memory_needed): Change to bool. Return
8200 "true" and "false" values.
8201 * config/i386/i386.md: Return "true" and "false" values.
8203 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8205 * doc/sourcebuild.texi (Effective-Target Keywords): Document
8206 run_expensive_tests.
8208 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8210 * toplev.c (output_stack_usage): Use lbasename instead of basename.
8212 2010-09-08 Martin Jambor <mjambor@suse.cz>
8215 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
8218 2010-09-08 Richard Guenther <rguenther@suse.de>
8220 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
8222 (iterative_hash_gimple_type): Likewise.
8223 (gimple_type_hash): Likewise.
8224 (gimple_register_type): Likewise.
8225 (print_gimple_types_stats): Likewise.
8226 (free_gimple_type_tables): Likewise.
8228 2010-09-08 Michael Matz <matz@suse.de>
8230 PR tree-optimization/43430
8231 * tree-vect-stmts.c (vectorizable_condition): Support multiple
8232 copies for conditional statements if it's not part of a reduction.
8234 2010-09-08 Michael Matz <matz@suse.de>
8236 PR tree-optimization/33244
8237 * tree-ssa-sink.c (statement_sink_location): Don't sink into
8240 2010-09-08 Richard Guenther <rguenther@suse.de>
8242 PR tree-optimization/45578
8243 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
8244 Be more careful when transfering alignment information to
8245 the new induction variable.
8246 (copy_ref_info): Likewise.
8248 2010-09-08 Richard Guenther <rguenther@suse.de>
8250 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
8251 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
8253 2010-09-08 Arnaud Charlet <charlet@adacore.com>
8255 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
8256 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
8258 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
8261 * doc/md.texi: Fixed modes on several standard pattern names.
8263 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
8265 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
8266 (ashl<mode>3): ...this.
8267 (loongson_psra<V_suffix>): Rename to...
8268 (ashr<mode>3): ...this.
8269 (loongson_psrl<V_suffix>): Rename to...
8270 (lshr<mode>3): ...this.
8271 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
8272 (CODE_FOR_loongson_psllw): Define.
8273 (CODE_FOR_loongson_psrlh): Define.
8274 (CODE_FOR_loongson_psrlw): Define.
8275 (CODE_FOR_loongson_psrah): Define.
8276 (CODE_FOR_loongson_psraw): Define.
8278 2010-09-07 Richard Henderson <rth@redhat.com>
8280 * tree-vect-data-refs.c: Include tm_p.h.
8281 * Makefile.in (tree-vect-data-refs.o): Update deps.
8282 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
8283 Move delarations outside #ifdef RTX_CODE.
8285 2010-09-07 Richard Henderson <rth@redhat.com>
8287 * final.c (rest_of_handle_final): Unconditionally do
8288 output_function_exception_table before assemble_end_function.
8290 2010-09-07 Jan Hubicka <jh@suse.cz>
8292 * tree-inline.c (tree_inlinable_function_p): Do not test
8294 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
8295 update_callee_keys, cgraph_decide_inlining): Test function availability.
8296 * cif-code.def (OVERWRITABLE): New code.
8298 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
8299 Jack Howarth <howarth@bromo.med.uc.edu>
8304 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
8305 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
8306 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
8309 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
8311 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
8312 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
8314 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
8316 * config.gcc: Don't append t-android for Android targets.
8318 * config/t-android: Removed.
8320 2010-09-07 Richard Henderson <rth@redhat.com>
8322 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
8323 * doc/tm.texi.in: Add doc marker.
8324 * doc/tm.texi: Rebuild.
8325 * except.c (switch_to_exception_section): Always build.
8326 (output_one_function_exception_table): Move section switch,
8327 personality output, and label output ...
8328 (output_function_exception_table): ... here. Use the new
8331 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
8332 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
8333 TARGET_ASM_INIT_SECTIONS): New.
8334 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
8336 (TARGET_ASM_UNWIND_EMIT): Update to match.
8337 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
8339 * config/arm/arm.c (arm_asm_emit_except_personality): New.
8340 (arm_asm_init_sections): New.
8341 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
8343 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8345 * config/arm/arm.md: Remove unused variable.
8347 2010-09-07 Anatoly Sokolov <aesok@post.ru>
8349 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8350 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
8351 (m32r_memory_move_cost): New function.
8353 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
8355 * config.gcc: Append t-android for Android targets.
8357 * config/t-android: New.
8359 2010-09-07 Richard Henderson <rth@redhat.com>
8361 * target.def (unwind_emit_before_insn): New hook.
8362 * doc/tm.texi.in: Add @hook marker for it.
8363 * doc/tm.texi: Rebuild.
8364 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
8366 2010-09-07 Martin Jambor <mjambor@suse.cz>
8369 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
8370 are any type attributes.
8372 2010-09-07 Jan Hubicka <jh@suse.cz>
8374 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
8375 array_ref_low_bound in string access folding.
8377 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
8380 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
8381 eh_return fixup sequence.
8383 2010-09-07 Jan Hubicka <jh@suse.cz>
8385 * gimple-fold.c (maybe_fold_reference): Verify that operand is
8386 gimple_min_invariant.
8388 2010-09-07 Richard Guenther <rguenther@suse.de>
8391 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
8392 nor CONSTRUCTOR can trap.
8393 * tree-complex.c (update_complex_assignment): Update EH info.
8395 2010-09-07 Richard Guenther <rguenther@suse.de>
8398 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
8399 * passes.c (execute_function_todo): Do not verify anything if
8402 2010-09-07 Richard Guenther <rguenther@suse.de>
8404 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
8406 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
8409 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
8410 New define_mode_attrs.
8411 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
8412 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
8413 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
8414 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
8415 Remove pool_range attribute.
8416 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
8417 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
8418 pool_range and neg_pool_range attributes.
8419 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
8420 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
8421 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
8423 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
8425 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
8428 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
8431 * config/i386/mmx.md (*mov<mode>_internal_rex64,
8432 *mov<mode>_internal_avx, *mov<mode>_internal,
8433 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
8434 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
8436 2010-09-06 Mark Mitchell <mark@codesourcery.com>
8438 * c-typeck.c (do_warn_double_promotion): Remove.
8439 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
8442 2010-09-06 Anatoly Sokolov <aesok@post.ru>
8444 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
8445 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
8446 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
8447 argument type to reg_class_t. Change result type to bool.
8448 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8450 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
8453 * gthr-posix.h (__gthread_objc_thread_detach): Use
8454 _objc_thread_attribs when detaching a thread.
8455 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
8457 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
8460 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
8461 * configure: Regenerated.
8463 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8465 * combine.c (try_combine): Set subst_low_luid to i0.
8467 2010-09-06 Richard Guenther <rguenther@suse.de>
8469 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
8470 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
8471 (build_aligned_type): Declare.
8472 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
8473 (check_aligned_type): New function.
8474 (build_aligned_type): Likewise.
8475 * expr.c (expand_assignment): Handle misaligned stores via
8476 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
8477 (expand_expr_real_1): Likewise.
8478 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
8479 * tree-vect-stmts.c (vectorizable_store): Do not build
8480 MISALIGNED_INDIRECT_REF but initialize alignment information.
8481 (vectorizable_load): Likewise.
8482 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
8484 * cfgexpand.c (expand_debug_expr): Likewise.
8485 * dwarf2out.c (loc_list_from_tree): Likewise.
8486 * fold-const.c (maybe_lvalue_p): Likewise.
8487 (operand_equal_p): Likewise.
8488 (build_fold_addr_expr_with_type_loc): Likewise.
8489 * gimplify.c (gimplify_addr_expr): Likewise.
8490 (gimplify_expr): Likewise.
8491 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
8492 (verify_gimple_assign_single): Likewise.
8493 * tree-dump.c (dequeue_and_dump): Likewise.
8494 (tree_could_trap_p): Likewise.
8495 * tree-predcom.c (ref_at_iteration): Likewise.
8496 * tree-pretty-print.c (dump_generic_node): Likewise.
8497 (op_code_prio): Likewise.
8498 (op_symbol_code): Likewise.
8499 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
8500 * tree-ssa-loop-im.c (for_each_index): Likewise.
8501 (gen_lsm_tmp_name): Likewise.
8502 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
8503 (find_interesting_uses_address): Likewise.
8504 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
8505 * tree-ssa-operands.c (get_expr_operands): Likewise.
8506 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
8507 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8508 (ao_ref_init_from_vn_reference): Likewise.
8509 * tree.c (staticp): Likewise.
8510 (build1_stat): Likewise.
8511 (reference_alias_ptr_type): Likewise.
8512 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
8513 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
8514 MISALIGNED_INDIRECT_REF handling.
8516 2010-09-06 Richard Guenther <rguenther@suse.de>
8518 PR tree-optimization/45534
8519 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
8520 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
8522 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
8523 valid on the target.
8525 2010-09-06 Andreas Schwab <schwab@redhat.com>
8527 * configure.ac: Quote argument of AC_MSG_WARN.
8528 * configure: Regenerate.
8530 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
8532 * sel-sched.c (move_cond_jump): Correct arguments to
8533 maybe_tidy_empty_bb.
8534 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
8536 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
8538 PR rtl-optimization/44919
8539 * sel-sched.c (move_cond_jump): Remove assert, check that
8540 the several blocks case can only happen with mutually exclusive
8541 insns instead. Rewrite the movement code to support moving through
8542 several basic blocks.
8544 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
8546 * config/i386/i386.md (iptrsize): New mode attribute.
8548 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
8550 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
8551 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
8552 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
8553 (stack_tls_protect_set_<mode>): Ditto from
8554 stack_tls_protect_set_{si,di}. Use %@ to output segment register
8555 of thread base pointer load.
8556 (stack_tls_protect_test_<mode>): Ditto from
8557 stack_tls_protect_test_{si,di}. Use %@ to output segment register
8558 of thread base pointer load.
8559 (stack_protect_set): Rewrite using indirect functions.
8560 (stack_protect_test): Ditto.
8561 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
8562 (ix86_print_operand): Handle '@'.
8564 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
8566 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
8569 2010-09-05 Mark Mitchell <mark@codesourcery.com>
8571 * doc/invoke.texi: Document -Wdouble-promotion.
8572 * c-typeck.c (convert_arguments): Check for implicit conversions
8573 from float to double.
8574 (do_warn_double_promotion): New function.
8575 (build_conditional_expr): Use it.
8576 (build_binary_op): Likewise.
8578 2010-09-05 Richard Guenther <rguenther@suse.de>
8580 PR tree-optimization/45535
8581 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
8582 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
8584 (indirect_refs_may_alias_p): Likewise.
8586 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
8588 * config/sh/sh.c (sh_option_override): Make static.
8589 Adjust comments. Declare.
8590 (sh_function_value_regno_p): Likewise.
8591 (sh_register_move_cost): Modify the arguments, make static.
8592 Adjust comments. Declare.
8593 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
8594 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8595 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
8596 REGISTER_MOVE_COST): Delete.
8597 * config/sh/sh-protos.h (sh_override_options): Delete.
8598 (sh_register_move_cost): Delete.
8599 (sh_function_value_regno_p): Delete.
8601 2010-09-04 Anatoly Sokolov <aesok@post.ru>
8603 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
8604 m32r_function_value_regno_p): New functions.
8605 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8606 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
8607 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
8608 FUNCTION_VALUE_REGNO_P): Remove.
8610 2010-09-04 Jan Hubicka <jh@suse.cz>
8612 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
8613 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
8614 fold_read_from_constant_string.
8616 * gimple.h (canonicalize_constructor_val): Declare.
8617 * gimple-fold.c (canonicalize_constructor_val): New function.
8618 (get_symbol_constant_value):Use it.
8619 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
8621 2010-09-04 Jan Hubicka <jh@suse.cz>
8623 * tree-switch-conversion.c (build_one_array): Set constructor to be
8625 * varpool.c (varpool_finalize_decl): Compute const_value_known.
8627 2010-09-04 Richard Guenther <rguenther@suse.de>
8630 * tree-flow.h (force_gimple_operand_1): Declare.
8631 (force_gimple_operand_gsi_1): Likewise.
8632 * gimplify.c (force_gimple_operand_1): New worker taking a
8633 gimple predicate for ...
8634 (force_gimple_operand): ... which now wraps it.
8635 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
8636 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
8638 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
8639 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
8640 (create_mem_ref): Likewise.
8642 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
8644 * config/i386/predicates.md (sse_reg_operand): New predicate.
8645 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
8646 predicate for operand 1.
8647 (XFmode push splitter): Use fp_register_operand predicate
8649 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
8650 (SF-DF float_extend push splitter): Add reload_completed insn
8652 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
8653 MODEF mode macro. Add reload_completed insn predicate.
8655 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
8657 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
8658 (struct df_extract_ref): Remove.
8659 (union df_ref_d): Remove extract_ref member.
8660 (df_ref_create): Remove last three arguments.
8661 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
8662 * df-scan.c (df_ref_record): Remove last three arguments, do not
8663 pass them to df_ref_create_structure.
8664 (df_uses_record): Remove first and last three arguments. Replace
8665 first argument with DF_REF_REGULAR, adjust calls to remove the
8666 width, offset and mode. Always call recursively on the second
8667 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
8668 (df_ref_create_structure): Remove first argument.
8669 (struct df_scan_problem_data): Remove ref_extract_pool.
8670 (df_scan_free_internal): Do not free it.
8671 (df_scan_alloc): Do not allocate it.
8672 (df_ref_create): Remove last three arguments, do not pass them to
8673 df_ref_create_structure.
8674 (df_free_ref): Remove DF_REF_EXTRACT case.
8675 (df_notes_rescan): Adjust call to df_uses_record.
8676 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
8677 Remove DF_REF_EXTRACT case.
8678 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
8679 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
8680 and SUBREG definitions.
8681 (df_get_conditional_uses): Remove references to width/offset/mode,
8682 adjust call to df_ref_create_structure.
8683 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
8684 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
8685 calls to df_uses_record and df_ref_record.
8686 * fwprop.c (update_df): Remove references to width/offset/mode,
8687 adjust call to df_ref_create.
8689 2010-09-03 Jan Hubicka <jh@suse.cz>
8691 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
8692 (build_cdtor_fns): Update use of build_cdtor.
8694 2010-09-03 Joseph Myers <joseph@codesourcery.com>
8696 * doc/options.texi (SeparateAlias): Document.
8697 * opt-functions.awk (switch_flags): Handle SeparateAlias.
8698 * opth-gen.awk: Generate enumeration names for options marked
8699 SeparateAlias, but not for those marked Ignore.
8700 * opts-common.c (generate_canonical_option): Don't output separate
8701 argument for options marked CL_SEPARATE_ALIAS.
8702 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
8703 * opts.h (CL_SEPARATE_ALIAS): New.
8704 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
8705 CL_COMMON): Adjust definitions.
8706 * config/i386/darwin.opt, config/mips/sde.opt: New.
8707 * common.opt (fdump-final-insns): New.
8708 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
8710 (mips*-sde-elf*): Add mips/sde.opt.
8711 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
8712 -mno-data-in-code and -mcode-xonly here.
8713 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
8714 * gcc.c (option_map): Add "j" to --dump entry.
8715 (translate_options): Don't translate -d to -foutput-class-dir= here.
8717 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
8719 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
8721 (compute_all_dependences): Same.
8722 (create_rdg_edge_for_ddr): Same.
8723 * tree-data-ref.h (DR_IS_WRITE): New.
8724 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
8725 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
8726 (write_memrefs_written_at_least_once): Same.
8727 * tree-predcom.c (suitable_component_p): Same.
8728 (determine_roots_comp): Same.
8729 (execute_load_motion): Same.
8730 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
8731 (vect_enhance_data_refs_alignment): Same.
8732 (vect_analyze_group_access): Same.
8734 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
8737 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
8738 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
8740 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
8742 * dwarf2out.c (file scope): Remove #if0'd code.
8743 (gen_subprogram_die): Same.
8745 2010-09-03 Jakub Jelinek <jakub@redhat.com>
8748 * dwarf2out.c (flush_queued_reg_saves): Rename to...
8749 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
8750 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
8751 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
8752 * config/i386/i386.c (output_set_got): Call it.
8754 2010-09-03 Michael Matz <matz@suse.de>
8757 * tree-sra.c (sra_modify_assign): If we modify the statement,
8760 * tree-ssa.c (verify_ssa): Check number of operands and links
8761 per statement to agree.
8763 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
8764 Iain Sandoe <iains@gcc.gnu.org>
8767 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
8768 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
8769 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
8771 2010-09-03 Richard Guenther <rguenther@suse.de>
8773 * lto-streamer-out.c (output_function): Output function
8775 * lto-streamer-in.c (input_function): Input function start
8778 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8780 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
8781 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
8782 * configure: Regenerate.
8783 * aclocal.m4: Regenerate.
8785 2010-09-03 Jan Hubicka <jh@suse.cz>
8788 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
8789 on functions/variables in other partition.
8791 2010-09-03 Jan Hubicka <jh@suse.cz>
8793 * cgraph.h (struct varpool_node): Add const_value_known.
8794 (varpool_decide_const_value_known): Declare.
8795 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
8796 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
8797 (input_varpool_node): Restore const_value_known.
8798 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
8799 initializer folding.
8800 * ipa.c (ipa_discover_readonly_nonaddressable_var,
8801 function_and_variable_visibility): Compute const_value_known.
8802 * gimple-fold.c (get_symbol_constant_value): Use varpool for
8803 initializer folding.
8804 * varpool.c (varpool_decide_const_value_known): New function.
8806 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
8808 * config/i386/i386.md: Remove empty preparation statements
8811 2010-09-03 Jan Hubicka <jh@suse.cz>
8813 * passes.c (rest_of_decl_compilation): Do not add local vars into
8815 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
8816 static or extern vars are in varpool.
8817 (varpool_finalize_decl): Sanity check that only static vars are
8820 2010-09-03 Jakub Jelinek <jakub@redhat.com>
8823 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
8824 not just generic vectors with BLKmode.
8826 2010-09-03 Richard Guenther <rguenther@suse.de>
8828 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
8829 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
8830 * tree.h (TMR_SYMBOL): Remove.
8831 (TMR_BASE, TMR_OFFSET): Adjust.
8833 * alias.c (ao_ref_from_mem): Use TMR_BASE.
8834 * builtins.c (get_object_alignment): Merge TMR_BASE and
8835 TMR_SYMBOL handling.
8836 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
8837 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
8838 handling. Also allow TARGET_MEM_REF as base address.
8839 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
8840 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
8841 base. Gimplify TMR_INDEX2.
8842 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
8843 * tree-dfa.c (get_ref_base_and_extent): Likewise.
8844 (get_addr_base_and_unit_offset): Likewise.
8845 * tree-eh.c (tree_could_trap_p): Likewise.
8846 * tree-pretty-print.c (dump_generic_node): Likewise.
8847 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
8848 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
8850 (get_address_description): Reconstruct addres description
8851 from merged TMR_BASE and TMR_INDEX2.
8852 (maybe_fold_tmr): Fold propagated addresses.
8853 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
8854 MEM_REF and TARGET_MEM_REF paths.
8855 (indirect_refs_may_alias_p): Likewise.
8856 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
8857 instead of TMR_SYMBOL.
8858 * tree-ssa-operands.c (get_tmr_operands): Simplify.
8859 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
8860 according to changes ...
8861 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
8862 Split TARGET_MEM_REF into two fields plus the base.
8863 * tree.c (mem_ref_offset): Simplify.
8864 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
8865 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
8866 Strip NOPs when folding MEM_REF addresses.
8867 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
8868 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
8869 (fold_gimple_assign): ... not here.
8871 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
8873 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
8874 * config/mips/mips.c (mips_shift_truncation_mask): New function.
8875 (TARGET_SHIFT_TRUNCATION_MASK): Define.
8877 2010-09-02 Richard Henderson <rth@redhat.com>
8879 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
8880 instead of readelf in the test.
8881 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
8882 in the .debug_frame section for coff targets.
8883 * configure: Rebuild.
8885 2010-09-02 Anatoly Sokolov <aesok@post.ru>
8887 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
8888 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
8889 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8890 (m32c_class_likely_spilled_p): Make static. Change argument type to
8891 reg_class_t. Change result type to bool.
8893 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8895 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
8896 to convert (double)(long) into a single FRIZ instruction or not
8897 when -ffast-math is used.
8899 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
8900 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
8901 or FRIZ instruction if -ffast-math.
8902 * config/rs6000/rs6000.md (friz): Ditto.
8904 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
8906 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8908 * opth-gen.awk (quote, comma): Remove unused variables.
8910 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
8912 * arm.c (arm_override_options): Correct fall-back code to use
8913 SUBTARGET_CPU_DEFAULT.
8915 2010-09-02 Julian Brown <julian@codesourcery.com>
8917 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
8919 (vcond<mode>, vcondu<mode>): New expanders.
8920 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
8921 comparisons with zero.
8922 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
8923 * config/arm/constraints.md (Dz): New constraint.
8925 2010-09-02 Anatoly Sokolov <aesok@post.ru>
8927 * target.def (class_likely_spilled_p): New hook.
8928 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
8929 * doc/tm.texi: Regenerate.
8930 * targhooks.c (default_class_likely_spilled_p): New function.
8931 * targhooks.h (default_class_likely_spilled_p): Declare.
8932 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
8933 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
8934 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
8935 Use fixed_reg_set instead of fixed_regs.
8936 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
8937 * calls.c (avoid_likely_spilled_reg): Ditto.
8938 * ira-conflicts.c (ira_build_conflicts): Ditto.
8939 * ira.c (update_equiv_regs): Ditto.
8940 * mode-switching.c (create_pre_exit): Ditto.
8941 * regmove.c (find_matches): Ditto.
8942 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
8943 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
8944 (small_register_class_p): New inline function.
8945 (push_secondary_reload, find_reusable_reload, find_reloads): Use
8946 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
8948 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
8949 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
8950 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8952 2010-09-02 Richard Guenther <rguenther@suse.de>
8954 PR tree-optimization/44937
8955 PR tree-optimization/45412
8956 * ipa-split.c (split_function): Properly remove PHI nodes.
8958 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8960 * opts.h (struct cl_option): Add warn_message field.
8961 (struct cl_decoded_option): Add warn_message field.
8962 * doc/options.texi (Ignore, Warn): Document.
8963 * opt-functions.awk (needs_state_p): Don't consider aliases or
8964 ignored options to need state saved.
8965 * optc-gen.awk: Handle Warn and Ignore.
8966 * opth-gen.awk: Output OPT_SPECIAL_ignore.
8967 * opts-common.c (decode_cmdline_option): Set warn_message field.
8968 Handle ignored options.
8969 (decode_cmdline_options_to_array, generate_option,
8970 generate_option_input_file): Set warn_message field.
8971 (read_cmdline_option): Generate warnings from warn_message field.
8972 Handle ignored options.
8973 * common.opt (Wunreachable-code, fargument-alias,
8974 fargument-noalias, fargument-noalias-global,
8975 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
8976 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
8977 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
8978 ftree-salias): Mark Ignore.
8979 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
8980 -mintel-syntax and -mno-intel-syntax here.
8981 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
8983 * opts.c (common_handle_option): Don't handle options marked as
8985 (enable_warning_as_error): Handle ignored options.
8987 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8990 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
8991 alias_target fields.
8992 * opt-functions.awk (opt_sanitized_name): Don't handle
8993 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
8994 * optc-gen.awk: Generate alias fields.
8995 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
8996 Don't generate such constants for aliases.
8997 * opts-common.c (generate_canonical_option): New.
8998 (decode_cmdline_option): Handle aliases. Use
8999 generate_canonical_option for known options instead of copying the
9001 * doc/options.texi (Alias): Document.
9002 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
9003 fstack-check, specs): Mark as aliases.
9004 * gcc.c (driver_handle_option): Canonicalize -L options to joined
9006 (driver_handle_option): Don't handle OPT_specs.
9007 * opts.c (common_handle_option): Don't handle options marked as
9009 (enable_warning_as_error): Handle aliases.
9010 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
9011 OPT_Wlarger_than_eq.
9012 * tree-optimize.c (tree_rest_of_compilation): Use
9013 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
9015 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
9017 * config/i386/i386.md (nonmemory_operand): New mode attribute.
9018 (push memory peephole2): Macroize peepholes using SWI mode iterator.
9019 (move immediate to memory peephole2): Macroize peepholes using
9020 SWI124 mode iterator.
9021 (non-pairable NOT peephole2): Macroize peepholes using SWI124
9023 (simple lea add peephole2): Macroize peepholes using SWI48
9025 (simple lea mult peephole2): Ditto.
9026 (imul by 3,5,9 to lea peephole2): Ditto.
9027 (mov $-1, reg peephole2): Macroize peepholes using SWI248
9029 (imul $32bit_imm,mem,reg peephole2): Ditto.
9030 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
9032 2010-09-02 Ian Bolton <ian.bolton@arm.com>
9034 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
9036 2010-09-02 Olivier Hainque <hainque@adacore.com>
9039 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
9040 (allocno_priority_compare_func): Use it instead of a straight
9041 difference computation over priorities.
9043 2010-09-02 Andi Kleen <ak@linux.intel.com>
9045 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
9047 2010-09-02 Ira Rosen <irar@il.ibm.com>
9049 * tree-vectorizer.h (get_later_stmt): New function.
9050 (vect_analyze_data_ref_dependences): Add argument.
9051 * tree-vect-loop.c (vect_analyze_loop): Update call to
9052 vect_analyze_data_ref_dependences.
9053 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
9055 (vect_analyze_data_ref_dependence): Add argument for basic block
9056 dependencies. Check dependencies in basic block vectorization.
9057 (vect_analyze_data_ref_dependences): Add argument and update call to
9058 vect_analyze_data_ref_dependences.
9059 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
9060 (vect_bb_vectorizable_with_dependencies): New.
9061 (vect_slp_analyze_bb): Check dependencies in basic block.
9062 (vect_schedule_slp_instance): Insert stores before the last store in
9065 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
9068 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
9069 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
9071 2010-09-01 Jakub Jelinek <jakub@redhat.com>
9074 * bb-reorder.c (add_labels_and_missing_jumps): Treat
9075 bbs ending with throwing insns like blocks ending with a call.
9076 (fix_up_fall_thru_edges): Likewise.
9078 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
9080 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
9081 (m32c_function_arg_advance): Delete.
9082 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9083 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
9084 comments. Take a const_tree and a bool. Declare.
9085 (m32c_function_arg_advance): Likewise.
9086 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9088 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
9091 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
9092 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
9093 * config/i386/mingw32.h: ... here.
9095 2010-09-01 Andi Kleen <ak@linux.intel.com>
9098 * lto-streamer-in.c (lto_input_ts_target_option): Add.
9099 (lto_input_tree_pointers): Call lto_input_ts_target_option.
9100 * lto-streamer-out (lto_output_ts_target_option): Add.
9101 (lto_output_tree_pointers): Call lto_output_ts_target_option.
9103 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
9106 * config/i386/cygwin.h: Change order of specified import libraries.
9107 * config/i386/mingw32.h: Likewise.
9108 * config/i386/t-cygwin: Likewise.
9109 * config/i386/t-mingw32: Likewise.
9110 * config/i386/t-mingw-w32: Likewise.
9111 * config/i386/t-mingw-w64: Likewise.
9113 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9115 * config/arm/neon-schedgen.ml (core): New type.
9116 (allCores): List of supported cores.
9117 (availability_table): Add supported cores.
9118 (collate_bypasses): Accept core as a parameter.
9119 (worst_case_latencies_and_bypasses): Accept core as a parameter.
9120 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
9121 and coreStr to get tune attribute and prefix for functional units.
9122 (emit_bypasses): Accept core name and use it.
9123 (calculate_per_core_availability_table): New.
9125 (calculate_core_availability_table): New.
9126 (main): Use calculate_core_availablity_table.
9127 * config/arm/cortex-a8-neon.md: Update copyright year.
9128 Regenerated from ml file and merged in.
9129 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
9132 2010-09-01 Ian Bolton <ian.bolton@arm.com>
9134 * Makefile.in (tree-switch-conversion.o): Update dependencies.
9136 2010-09-01 Richard Guenther <rguenther@suse.de>
9138 * alias.c (ao_ref_from_mem): Adjust.
9139 * builtins.c (get_object_alignment): Likewise.
9140 * cfgexpand.c (expand_debug_expr): Likewise.
9141 * gimple.c (get_base_address): Likewise.
9142 * tree-dfa.c (get_ref_base_and_extent): Likewise.
9143 (get_addr_base_and_unit_offset): Likewise. Fix for
9144 both TMR_SYMBOL and TMR_BASE being set.
9145 * tree-eh.c (tree_could_trap_p): Likewise.
9146 * gimplify.c (gimplify_expr): Do not attempt to gimplify
9147 TMR_SYMBOL. Always gimplify TMR_BASE.
9148 * tree-cfg.c (verify_types_in_gimple_reference): Verify
9149 TMR_BASE if there is a TMR_SYMBOL.
9150 * tree-pretty-print.c (dump_generic_node): Adjust.
9151 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
9152 (tree_mem_ref_addr): Likewise.
9153 (create_mem_ref_raw): Likewise.
9154 (move_fixed_address_to_symbol): Likewise.
9155 (create_mem_ref): Likewise.
9156 (dump_mem_address): Likewise.
9157 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
9158 Fix for both TMR_SYMBOL and TMR_BASE being set.
9159 (indirect_refs_may_alias_p): Likewise.
9160 * tree-ssa-operands.c (get_tmr_operands): Adjust.
9161 * tree.def (TARGET_MEM_REF): Adjust documentation.
9163 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
9165 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
9166 Rename from X86_TUNE_ADD_ESP_4.
9167 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
9168 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
9169 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
9170 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
9171 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
9172 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
9173 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
9174 * config/i386/i386.c (initial_ix86_tune_features)
9175 <X86_TUNE_SINGLE_POP>: Invert members.
9176 <X86_TUNE_DOUBLE_POP>: Ditto.
9177 <X86_TUNE_SINGLE_PUSH>: Ditto.
9178 <X86_TUNE_DOUBLE_PUSH>: Ditto.
9179 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
9181 (push peephole2 patterns): Macroize peepholes using P mode iterator.
9182 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
9183 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
9184 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
9186 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
9188 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
9189 a volatile LHS if the constructor has only one element.
9191 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
9194 * tree.c (stdarg_p): Make fntype parameter const.
9195 * tree.h (stdarg_p): Likewise.
9196 (function_args_iterator): Remove unused fntype field.
9197 (function_args_iter_init): Do not initialize fntype
9198 field. Make fntype parameter const.
9200 2010-09-01 Richard Guenther <rguenther@suse.de>
9202 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
9204 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
9205 (execute_vrp): Compute number of iteration estimates.
9206 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
9207 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
9208 * tree-data-ref.c (estimated_loop_iterations): Adjust.
9209 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
9210 Infer loop bounds from undefined behavior based on a new parameter.
9211 (estimate_numbers_of_iterations): Likewise.
9212 (scev_probably_wraps_p): Adjust.
9213 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
9215 2010-09-01 Nick Clifton <nickc@redhat.com>
9217 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
9219 (xstormy16_legitimate_address_p): Use true and false instead of 1
9221 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
9222 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
9224 (xstormy16_expand_call): Fix comment at start of function.
9226 2010-09-01 Nick Clifton <nickc@redhat.com>
9228 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
9229 when pushing accumulator register.
9230 (rx_get_stack_layout): Always save call clobbered registers inside
9232 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
9234 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
9236 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
9237 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
9239 * libgcc-std.ver (GCC_4.6.0): Define version.
9241 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
9243 * tree-nested.c (convert_all_function_calls): Iterate until after the
9244 sum of static chains in the nest doesn't change.
9246 2010-08-31 Anatoly Sokolov <aesok@post.ru>
9248 * config/m32c/m32c.c (classes_intersect): Remove.
9249 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
9250 reg_classes_intersect_p instead of classes_intersect.
9251 (class_can_hold_mode): Change arguments type from enum reg_class to
9252 reg_class_t. Use reg_class_contents instead of class_contents.
9253 (m32c_register_move_cost): Make static. Change arguments type from
9254 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
9255 classes_intersect. Use reg_class_contents instead of class_contents.
9256 (m32c_memory_move_cost): Make static. Change arguments type from
9257 enum reg_class to reg_class_t.
9258 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9259 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9260 * config/m32c/m32c-protos.h (m32c_register_move_cost,
9261 m32c_memory_move_cost): Remove.
9263 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
9265 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
9266 (arm_function_arg): Delete.
9267 (arm_needs_doubleword_align): Take a const_tree.
9268 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9269 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
9270 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
9271 (arm_function_arg): Make static. Take a const_tree and a bool.
9272 (arm_function_arg_advance): Likewise.
9273 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9275 2010-08-31 Andi Kleen <ak@linux.intel.com>
9277 * common.opt (fwhopr=): Update for -fwhopr=jobserver
9278 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
9279 * lto-wrapper.c (run_gcc): Add jobserver mode.
9280 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
9283 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
9285 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
9287 (*popdi1_epilogue): Ditto.
9288 (*popsi1_epilogue): Ditto.
9289 (popsi, popdi peephole2 patterns): Update peepholes for changed
9290 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
9292 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
9293 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
9295 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
9296 (override_options): Do not initialize removed ix86_gen_pop1.
9297 (gen_pop): New static function.
9298 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
9299 (release_scratch_register_on_entry): Ditto.
9300 (ix86_restore_reg_using_pop): Ditto.
9301 (ix86_expand_epilogue): Ditto.
9303 2010-08-31 Jakub Jelinek <jakub@redhat.com>
9306 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
9308 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
9310 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
9313 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9315 * doc/extend.texi: Fix documentation of the return value of
9316 __builtin_choose_expr.
9318 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
9320 * config/v850/v850-protos.h (function_arg): Delete.
9321 * config/v850/v850.h (FUNCTION_ARG): Delete.
9322 (FUNCTION_ARG_ADVANCE): Move code to...
9323 * config/v850/v850.c (v850_function_arg_advance): ...here.
9324 (v850_function_arg): Make static. Take a const_tree and a bool.
9325 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9327 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
9329 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
9331 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
9333 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
9335 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
9337 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9339 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
9341 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
9343 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9344 * config/rx/rx.c (rx_function_arg_size): Make static.
9345 (rx_function_arg): Likewise.
9346 (rx_function_arg_advance): New function.
9347 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9349 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
9351 * config/arm/arm.c (arm_override_options): Remove superfluous test.
9354 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
9356 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
9357 (dwarf2out_decl) <CONST_DECL>: Likewise.
9359 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
9362 * common.opt (-fstack-usage): New option.
9363 * doc/invoke.texi (Debugging options): Document it.
9364 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
9365 allocate_dynamic_stack_space.
9366 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
9367 and propagate it to allocate_dynamic_stack_space.
9368 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
9369 * calls.c (initialize_argument_information): Pass TRUE as 4th
9370 argument to allocate_dynamic_stack_space.
9371 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
9372 to 1 when pushing a variable-sized argument onto the stack. Pass
9373 TRUE as 4th argument to allocate_dynamic_stack_space.
9374 Update current_function_pushed_stack_size.
9375 (emit_library_call_value_1): Likewise.
9376 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
9377 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
9378 attempt to find an upper bound. Remove redundant code for the
9379 SETJMP_VIA_SAVE_AREA case.
9380 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
9381 * function.h (struct stack_usage): New structure.
9382 (current_function_static_stack_size): New macro.
9383 (current_function_dynamic_stack_size): Likewise.
9384 (current_function_pushed_stack_size): Likewise.
9385 (current_function_dynamic_alloc_count): Likewise.
9386 (current_function_has_unbounded_dynamic_stack_size): Likewise.
9387 (current_function_allocates_dynamic_stack_space): Likewise.
9388 (struct function): Add new field 'su'.
9389 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
9390 add the value of the dynamic offset to the dynamic stack usage.
9391 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
9392 for variable-sized objects.
9393 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
9394 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
9395 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
9396 BUILT_IN_ALLOCA for variable-sized objects.
9397 * output.h (output_stack_usage): Declare.
9398 * toplev.c (stack_usage_file): New file pointer.
9399 (output_stack_usage): New function.
9400 (open_auxiliary_file): Likewise.
9401 (lang_dependent_init): Open file if flag_stack_usage is set.
9402 (finalize): Close file if stack_usage_file is not null.
9403 * tree.h (ALLOCA_FOR_VAR_P): New macro.
9404 * config/alpha/alpha.c (compute_frame_size): New function.
9405 (alpha_expand_prologue): Use it.
9406 (alpha_start_function): Likewise.
9407 (alpha_expand_epilogue): Likewise. Set stack usage info.
9408 * config/i386/i386.c (ix86_expand_prologue): Likewise.
9409 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
9410 * config/mips/mips.c (mips_expand_prologue): Likewise.
9411 * config/pa/pa.c (hppa_expand_prologue): Likewise.
9412 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9413 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
9415 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
9417 PR tree-optimization/45427
9418 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
9419 Handle the case that the exit is never taken correctly.
9420 (number_of_iterations_ne): Pass exit_must_be_taken to
9421 number_of_iterations_ne_max.
9423 2010-08-30 Catherine Moore <clm@codesourcery.com>
9425 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
9426 Infer -mdspr2 for the the 74K.
9428 2010-08-30 Jakub Jelinek <jakub@redhat.com>
9431 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
9434 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
9435 and TRUTH_{AND,OR,XOR}_EXPR.
9436 * c-parser.c (c_parser_omp_atomic): Handle boolean
9437 {PRE,POST}_{INC,DEC}REMENT.
9439 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
9441 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
9442 (function_arg): Delete.
9443 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9444 (FUNCTION_INCOMING_ARG): Delete.
9445 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
9446 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
9448 (function_arg): Rename to...
9449 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
9451 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
9452 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9453 (TARGET_FUNCTION_INCOMING_ARG): Define.
9455 2010-08-30 Richard Guenther <rguenther@suse.de>
9457 PR tree-optimization/21602
9458 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
9459 using points-to information.
9461 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
9463 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
9465 2010-08-30 Richard Guenther <rguenther@suse.de>
9467 PR tree-optimization/45449
9468 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
9471 2010-08-30 Joseph Myers <joseph@codesourcery.com>
9473 * opts.h (CL_ERR_NEGATIVE): Define.
9474 * opts.c (unknown_option_callback): Don't postpone warnings for
9475 options marked with CL_ERR_NEGATIVE.
9476 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
9477 for negative versions of CL_REJECT_NEGATIVE options.
9479 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
9481 * config/i386/i386.md (zero_extendsidi2_1): Rename from
9482 zero_extendsidi2_32.
9483 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
9484 using SWI12 mode iterator.
9485 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
9486 to define_insn_and_split pattern.
9487 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
9488 using SWI24 mode iterator.
9489 (*zero_extendqi<mode>2_and): Macroize insn from
9490 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
9491 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
9492 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
9493 SWI24 mode iterator.
9494 (*zero_extendqi<mode>2_movzbl): Ditto from
9495 *zero_extendqi{hi,si}2_movzbl.
9496 (extendsidi2_1): Rename from extendsidi2_32.
9497 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
9498 SWI12 mode iterator.
9500 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
9502 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
9503 general purpose registers.
9504 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
9505 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
9506 with general purpose registers and memory operands. Add associated
9507 CCImode post-reload splitter.
9508 * config/ia64/div.md: Change BImode to CCImode throughout.
9510 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
9512 * config/ia64/ia64.md (cstorebi4): Fix thinko.
9514 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
9516 * config/picochip/picochip.c (reorder_var_tracking_notes): This
9517 function was dropping debug insns which caused PR45299.
9519 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
9521 * config/i386/sse.md (extsuffix): New code attribute.
9522 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
9523 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
9524 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
9525 and sse4_1_zero_extendv4qiv4si2.
9526 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
9527 and sse4_1_zero_extendv2qiv2di2.
9528 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
9529 and sse4_1_zero_extendv4hiv4si2.
9530 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
9531 and sse4_1_zero_extendv2hiv2di2.
9532 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
9533 and sse4_1_zero_extendv2siv2di2
9535 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
9536 using any_extend code iterator.
9537 (*avx_<s>mulv8hi3_highpart): Macroize insn from
9538 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
9539 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
9541 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
9542 gen_sse4_1_sign_extend* functions.
9543 (struct builtin_description bdesc_args): Ditto.
9545 2010-08-27 Xinliang David Li <davidxl@google.com>
9548 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
9549 (iv_ca_set_no_cp): Update used inv expr count.
9550 (iv_ca_set_cp): Ditto.
9551 (iv_ca_new): Initialize new member.
9552 (iv_ca_free): Free memory.
9554 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
9556 * config/sh/sh-protos.h (sh_function_arg): Delete.
9557 (sh_function_arg_advance): Delete.
9558 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9559 (PASS_IN_REG_P): Eliminate cast.
9560 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
9561 const_tree and a bool.
9562 (sh_function_arg): Likewise.
9563 (sh_output_mi_thunk): Call sh_function_arg_advance) and
9565 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9567 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
9568 Kaz Kojima <kkojima@gcc.gnu.org>
9570 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
9572 (sh_expand_epilogue): Likewise.
9573 * config/sh/sh.md (movml_push_banked): New insn.
9574 (movml_pop_banked): Likewise.
9576 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
9578 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
9579 gen_regexp_oneof, gen_regexp_sequence): Use the string found
9580 in vector element 0 rather than the original string when there's
9582 (gen_regexp): Remove extra semicolon.
9584 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
9585 thumb2_movsf_vfp): Set attribute "insn".
9586 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
9587 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
9588 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
9589 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
9590 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
9591 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
9592 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
9593 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
9594 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
9595 if_not_arith, if_arith_not, cond_move_not): Likewise.
9597 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
9599 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
9601 (rs6000_allocate_stack_temp): Ditto.
9602 (rs6000_expand_convert_si_to_sfdf): Ditto.
9604 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
9605 line. Update the options set if power6 or power7 server/embedded
9606 type options are used. If we give a warning for no vsx under
9607 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
9608 (rs6000_allocate_stack_temp): New function to allocate a stack
9609 tempoary and adjust the address so it meets either REG+OFFSET or
9610 REG+REG addressing requirements.
9611 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
9612 that they can be used with the LFIWAX/LFIWZX instrucitons.
9613 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
9614 converting signed/unsigned SImode to either SFmode/DFmode.
9616 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
9617 whether certain instructions can be generated.
9618 (TARGET_FCTIDZ): Ditto.
9619 (TARGET_STFIWX): Ditto.
9620 (TARGET_LFIWAX): Ditto.
9621 (TARGET_LFIWZX): Ditto.
9622 (TARGET_FCFIDS): Ditto.
9623 (TARGET_FCFIDU): Ditto.
9624 (TARGET_FCFIDUS): Ditto.
9625 (TARGET_FCTIDUZ): Ditto.
9626 (TARGET_FCTIWUZ): Ditto.
9628 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
9629 (UNSPEC_FCTID): Ditto.
9630 (UNSPEC_LFIWAX): Ditto.
9631 (UNSPEC_LFIWZX): Ditto.
9632 (UNSPEC_FCTIWUZ): Ditto.
9633 (rreg): Use correct constraints.
9634 (SI_CONVERT_FP): New mode attribute for floating point conversion
9636 (E500_CONVERT): Ditto.
9637 (lfiwax): New insns for converting from integer to floating point
9638 utilizing newer instructions. Attempt to optimize conversions
9639 that come from memory so that we don't load the value into a GPR,
9640 spill it to the stack and reload it into a FPR.
9641 (floatsi<mode>2_lfiwax): Ditto.
9642 (floatsi<mode>2_lfiwax_mem): Ditto.
9643 (floatsi<mode>2_lfiwax_mem2): Ditto.
9645 (floatunssi<mode>2_lfiwzx): Ditto.
9646 (floatunssi<mode>2_lfiwzx_mem): Ditto.
9647 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
9648 (floatdidf2_mem): Ditto.
9649 (floatunsdidf2_fcfidu): Ditto.
9650 (floatunsdidf2_mem): Ditto.
9651 (floatunsdisf2): Ditto.
9652 (floatunsdisf2_fcfidus): Ditto.
9653 (floatunsdisf2_mem): Ditto.
9654 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
9655 Use FCFID on 32-bit hosts that support it.
9656 (floatsidf2_internal): Ditto.
9657 (floatunssisf2): Ditto.
9658 (floatunssidf2): Ditto.
9659 (floatunssidf2_internal): Ditto.
9660 (floatsisf2): Ditto.
9661 (floatdidf2): Ditto.
9662 (floatdidf2_fpr): Ditto.
9663 (floatunsdidf2): Ditto.
9664 (floatdisf2): Ditto.
9665 (floatdisf2_fcfids): Ditto.
9666 (floatdisf2_internal1): Ditto.
9667 (fixuns_truncsfsi2): Delete, merge into common pattern for both
9668 SF/DF. Add power7 support.
9669 (fix_truncsfsi2): Ditto.
9670 (fixuns_truncdfsi2): Ditto.
9671 (fixuns_truncdfdi2): Ditto.
9672 (fix_truncdfsi2): Ditto.
9673 (fix_truncdfsi2_internal): Ditto.
9674 (fix_truncdfsi2_internal_gfxopt): Ditto.
9675 (fix_truncdfsi2_mfpgpr): Ditto.
9678 (btruncdf2_fpr): Ditto.
9681 (ceildf2_fpr): Ditto.
9684 (floordf2_fpr): Ditto.
9687 (rounddf2_fpr): Ditto.
9689 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
9690 (fix_trunc<mode>di2): Ditto.
9691 (fixuns_trunc<mode>si2): Ditto.
9692 (fixuns_trunc<mode>di2): Ditto.
9693 (fctiwz_<mode>): Ditto.
9694 (btrunc<mode>2): Ditto.
9695 (btrunc<mode>2_fpr): Ditto.
9696 (ceil<mode>2): Ditto.
9697 (ceil<mode>2_fpr): Ditto.
9698 (floor<mode>2): Ditto.
9699 (float<mode>2_fpr): Ditto.
9700 (round<mode>2): Ditto.
9701 (round<mode>2_fpr): Ditto.
9702 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
9703 (fixuns_trunc<mode>si2_stfiwx): Ditto.
9704 (fix_truncdfsi2_internal): Ditto.
9705 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
9706 converted value on stack, loaded into GPR, and then stored into
9707 the final destination.
9708 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
9710 (lrint<mode>di2): New insn, provide the lrint builtin functions.
9711 (ftruncdf2): Delete, unused.
9712 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
9714 * config/rs6000/vsx.md (toplevel): Update copyright year.
9715 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
9718 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
9719 Jeremie Salvucci <jeremie.salvucci@free.fr>
9721 * gengtype.c (output_type_enum): Test the right union member.
9723 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
9726 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
9727 operands for operand 1.
9728 (sse4_1_extendv4qiv4si2): Ditto.
9729 (sse4_1_extendv2qiv2di2): Ditto.
9730 (sse4_1_extendv4hiv4si2): Ditto.
9731 (sse4_1_extendv2hiv2di2): Ditto.
9732 (sse4_1_extendv2siv2di2): Ditto.
9733 (sse4_1_zero_extendv8qiv8hi2): Ditto.
9734 (sse4_1_zero_extendv4qiv4si2): Ditto.
9735 (sse4_1_zero_extendv2qiv2di2): Ditto.
9736 (sse4_1_zero_extendv4hiv4si2): Ditto.
9737 (sse4_1_zero_extendv2hiv2di2): Ditto.
9738 (sse4_1_zero_extendv2siv2di2): Ditto.
9739 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
9740 (*sse4_1_extendv4qiv4si2): Ditto.
9741 (*sse4_1_extendv2qiv2di2): Ditto.
9742 (*sse4_1_extendv4hiv4si2): Ditto.
9743 (*sse4_1_extendv2hiv2di2): Ditto.
9744 (*sse4_1_extendv2siv2di2): Ditto.
9745 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
9746 (*sse4_1_zero_extendv4qiv4si2): Ditto.
9747 (*sse4_1_zero_extendv2qiv2di2): Ditto.
9748 (*sse4_1_zero_extendv4hiv4si2): Ditto.
9749 (*sse4_1_zero_extendv2hiv2di2): Ditto.
9750 (*sse4_1_zero_extendv2siv2di2): Ditto.
9752 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
9754 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
9755 (mips_function_arg): Delete.
9756 (mips_function_arg_boundary): Take a const_tree.
9757 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
9758 (mips_arg_info): Likewise.
9759 (mips_setup_incoming_varargs): Call mips_function_arg_advance
9760 instead of FUNCTION_ARG_ADVANCE.
9761 (mips_function_arg_advance): Adjust prototype. Make static.
9762 (mips_function_arg): Likewise.
9763 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9764 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
9766 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
9768 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9769 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
9770 (function_arg): Delete.
9771 (function_arg_boundary): Take a const_tree.
9772 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
9773 (rs6000_spe_function_arg): Likewise.
9774 (rs6000_parm_start): Likewise.
9775 (rs6000_arg_size): Likewise.
9776 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
9777 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
9778 (rs6000_mixed_function_arg): Likewise.
9779 (function_arg): Rename to...
9780 (rs6000_function_arg): ...this.
9781 (function_arg_advance): Rename to...
9782 (rs6000_function_arg_advance_1): ...this
9783 (rs6000_function_arg_advance): New function. Call it.
9784 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
9785 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
9786 (rs6000_function_value): Likewise.
9787 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9789 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9791 * config/arm/arm.md (enabled): Test the value of arch_enabled
9792 rather than just using it.
9794 2010-08-27 Olivier Hainque <hainque@adacore.com>
9795 Eric Botcazou <ebotcazou@adacore.com>
9797 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
9798 cover all the possible offsets from this base.
9799 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
9801 2010-08-26 Jakub Jelinek <jakub@redhat.com>
9803 PR tree-optimization/44485
9804 * calls.c (flags_from_decl_or_type): For const or pure
9805 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
9806 together with ECF_CONST resp. ECF_PURE.
9807 * builtins.c (expand_builtin): Use flags_from_decl_or_type
9808 instead of querying flags directly.
9809 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
9810 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
9812 2010-08-26 Richard Guenther <rguenther@suse.de>
9814 PR tree-optimization/45255
9815 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
9816 and externals are also invariant.
9818 2010-08-25 Jakub Jelinek <jakub@redhat.com>
9820 PR rtl-optimization/44858
9821 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
9822 newi2pat, make sure they don't affect newpat.
9824 PR rtl-optimization/45400
9825 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
9826 SUBREG_REG if both modes are of MODE_INT class.
9828 2010-08-25 Julian Brown <julian@codesourcery.com>
9830 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
9831 * config/arm/arm.md (generic_sched): No for Cortex-A5.
9832 (generic_vfp): Likewise.
9833 (cortex-a5.md): Include.
9834 * config/arm/cortex-a5.md: New.
9836 2010-08-25 Richard Guenther <rguenther@suse.de>
9838 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
9839 * gimple.c (gimple_get_alias_set): Remove special handling
9842 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
9845 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
9846 dead_or_set_p when computing i0_feeds_i2_n.
9848 * combine.c (find_split_point): Undo canonicalization of multiply-add
9849 to (minus x (mult)) when it seems likely that this will increase the
9852 2010-08-25 Richard Guenther <rguenther@suse.de>
9855 * lto-streamer.c (lto_record_common_node): Do not mess with
9856 TYPE_CANONICAL when not in lto.
9857 * gimple.c (gimple_register_type): Likewise.
9859 2010-08-25 Richard Guenther <rguenther@suse.de>
9861 PR tree-optimization/45316
9862 * tree-ssa-pre.c (eliminate): Properly clean EH info.
9864 2010-08-25 Richard Guenther <rguenther@suse.de>
9866 PR tree-optimization/45393
9867 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
9868 and clean EH info. Avoid SSA update.
9869 (execute_cse_sincos): Cleanup the CFG if it has changed.
9871 2010-08-25 Richard Guenther <rguenther@suse.de>
9874 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
9875 TARGET_MEM_REF in alignment computation.
9877 2010-08-25 Jakub Jelinek <jakub@redhat.com>
9879 PR tree-optimization/45059
9880 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
9881 type conversions from newop{1,2}. Assert t is a comparison and
9882 newop{1,2} after the stripping are gimple vals.
9884 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
9886 * config/arm/iterators.md (VU, SE, V_widen_l): New.
9887 (V_unpack, US): New.
9888 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
9889 (vec_unpack<US>_lo_<mode>): Likewise.
9890 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
9891 (neon_vec_unpack<US>_lo_<mode>): Likewise.
9892 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
9893 (vec_widen_<US>mult_hi_<mode>): Likewise.
9894 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
9895 (neon_vec_<US>mult_hi_<mode>"): Likewise.
9896 (neon_unpack<US>_<mode>): Widening move intermediate step for
9897 vectorizing without -mvectorize-with-neon-quad.
9898 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
9899 for vectorizing without -mvectorize-with-neon-quad.
9900 * config/arm/predicates.md (vect_par_constant_high): Check for
9901 high-half lanes of a vector.
9902 (vect_par_constant_low): Check for low-half lanes of a vector.
9904 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
9906 * tree-if-conv.c (struct ifc_dr): New.
9908 (DR_WRITTEN_AT_LEAST_ONCE): New.
9909 (DR_RW_UNCONDITIONALLY): New.
9910 (memref_read_or_written_unconditionally): Use the cached values
9912 (write_memref_written_at_least_once): Same.
9913 (if_convertible_loop_p): Initialize and free DR->aux fields.
9915 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
9917 * gimple.c (gimple_could_trap_p_1): Not static anymore.
9918 Pass an extra bool parameter include_mem.
9919 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
9920 (gimple_assign_rhs_could_trap_p): Same.
9921 * gimple.h (gimple_could_trap_p_1): Declared.
9922 * tree-data-ref.h (same_data_refs_base_objects): New.
9923 (same_data_refs): New.
9924 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
9925 (write_memrefs_written_at_least_once): New.
9926 (ifcvt_memrefs_wont_trap): New.
9927 (operations_could_trap): New.
9928 (ifcvt_could_trap_p): New.
9929 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
9930 Gets a vector of data refs.
9931 (if_convertible_stmt_p): Same.
9932 (if_convertible_loop_p_1): New.
9933 (if_convertible_loop_p): Call if_convertible_loop_p_1.
9935 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
9937 * common.opt (ftree-loop-if-convert-stores): New flag.
9938 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
9939 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
9940 the created statement before GSI.
9941 (if_convertible_phi_p): Allow virtual phi nodes when
9942 flag_loop_if_convert_stores is set.
9943 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
9944 Do not handle types that do not match is_gimple_reg_type.
9945 Remove loop and bb parameters. Call gimple_could_trap_p instead of
9946 when flag_loop_if_convert_stores is set, as LHS can contain
9948 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
9949 to if_convertible_gimple_assign_stmt_p.
9950 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
9951 (replace_phi_with_cond_gimple_assign_stmt): Renamed
9952 predicate_scalar_phi. Do not handle virtual phi nodes.
9953 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
9954 Call predicate_scalar_phi.
9955 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
9956 just after the labels for flag_loop_if_convert_stores, otherwise
9957 insert the predicate in the end of the BB.
9958 (predicate_mem_writes): New.
9959 (combine_blocks): Call predicate_all_scalar_phis. When
9960 flag_loop_if_convert_stores is set, call predicate_mem_writes.
9961 (tree_if_conversion): Call mark_sym_for_renaming when
9962 flag_loop_if_convert_stores is set.
9963 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
9964 flag_loop_if_convert_stores is set.
9966 2010-08-24 Anatoly Sokolov <aesok@post.ru>
9968 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
9969 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
9970 (pa_function_value): Make static.
9971 (override_options): Rename to...
9972 (pa_option_override): ...this. Make static.
9973 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
9974 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
9975 TARGET_OPTION_OVERRIDE): Define.
9976 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
9977 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
9979 * config/pa/pa-protos.h (override_options): Remove.
9981 2010-08-24 Richard Guenther <rguenther@suse.de>
9984 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
9985 if addr->index is NULL or zero.
9986 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
9987 TARGET_MEM_REF more properly.
9988 (indirect_ref_may_alias_decl_p): Likewise.
9989 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
9990 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
9992 2010-08-23 Anatoly Sokolov <aesok@post.ru>
9994 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
9995 (m32c_override_options): Rename to...
9996 (m32c_option_override): ...this. Make static.
9997 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
9998 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
10000 * config/m32c/m32c-protos.h (m32c_override_options,
10001 m32c_function_value_regno_p): Remove.
10003 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
10005 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
10006 Fix a typo in a previous commit.
10008 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
10010 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
10011 Pre-initialize innerloop_iters to one.
10013 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
10015 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
10016 existing static function global.
10018 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
10019 is changed to global.
10021 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
10022 may_be_nonaddressable_p on base, and don't collect this reference
10023 if the address of the base could not be taken.
10025 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
10027 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
10028 enable the compiler to autovectorize mathmetical functions for
10029 power7 using the Mathematical Acceleration Subsystem library.
10031 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
10032 handle which vector math library we have.
10033 (rs6000_override_options): Add -mveclibabi=mass support.
10034 (rs6000_builtin_vectorized_libmass): New function to handle auto
10035 vectorizing math functions that are in the MASS library.
10036 (rs6000_builtin_vectorized_function): Call it.
10038 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
10041 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10044 * gthr-posix.h (__gthread_active_init): Delete.
10045 (__gthread_active_p): Do activity check here.
10046 Don't include errno.h on hppa-hpux. Update comment.
10047 * gthr-posix95.h (__gthread_active_init): Delete.
10048 (__gthread_active_p): Do activity check here.
10049 Don't include errno.h on hppa-hpux. Update comment.
10050 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
10051 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
10052 add -lpthread when -mt or -pthread is specified.
10053 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
10054 (LINK_GCC_C_SEQUENCE_SPEC): Define.
10055 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
10056 (stublib.c, pthread_default_stacksize_np-stub.o,
10057 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
10058 $(T)libgcc_stub.a): Add methods.
10059 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
10060 (stublib.c, pthread_default_stacksize_np-stub.o,
10061 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
10062 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10063 pthread_mutex_unlock): New stubs.
10065 2010-08-22 Joseph Myers <joseph@codesourcery.com>
10067 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
10068 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
10070 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
10071 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
10072 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
10073 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
10074 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
10076 * cppspec.c: Include opts.h.
10077 (lang_specific_driver): Use cl_decoded_option structures.
10078 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
10079 * doc/tm.texi: Regenerate.
10080 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
10081 (driver_handle_option): Allow driver options needing no special
10083 (process_command): Decode options before call to
10084 lang_specific_driver. Pass decoded options to
10085 lang_specific_driver.
10086 * gcc.h (lang_specific_driver): Update prototype.
10087 * gccspec.c: Include opts.h.
10088 (lang_specific_driver): Use cl_decoded_option structures.
10089 * opts-common.c (option_ok_for_language, generate_option,
10090 generate_option_input_file): New.
10091 (decode_cmdline_option): Use option_ok_for_language.
10092 (decode_cmdline_options_to_array): Use generate_option_input_file.
10093 (handle_generated_option): Use generate_option.
10094 * opts.h (generate_option, generate_option_input_file): Declare.
10096 2010-08-22 Anatoly Sokolov <aesok@post.ru>
10098 * config/mips/mips.c (mips_override_options): Rename to...
10099 (mips_option_override): ...this. Make static.
10100 (TARGET_OPTION_OVERRIDE): Define.
10101 (mips_in_small_data_p): Update comment.
10102 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
10103 (FIXED_REGISTERS): Update comment.
10104 * config/mips/mips-protos.h (mips_override_options): Remove.
10106 2010-08-21 Olivier Hainque <hainque@adacore.com>
10108 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
10110 2010-08-21 Olivier Hainque <hainque@adacore.com>
10112 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
10113 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
10115 2010-08-20 Jan Hubicka <jh@suse.cz>
10117 * tree-pass.h (pass_ipa_cdtor_merge): New function.
10118 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
10120 (record_cdtor_fn): Move to ipa.c; do not test for
10122 (build_cdtor): Move to ipa.c; add code avoiding construction
10123 when target have ctors/dtors and there is only one ctor/dtor at given
10125 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
10126 sort; reverse order of constructors.
10127 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
10128 (cgraph_finalize_function): Do not call record_cdtor_fn.
10129 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
10130 (cgraph_build_static_cdtor): Move to ipa.c.
10131 * ipa.c: Include target.h and tree-iterator.h.
10132 (cgraph_build_static_cdtor, static_ctors, static_dtors,
10133 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
10134 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
10135 pass_ipa_cdtor_merge): New.
10136 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
10137 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
10140 2010-08-20 Jan Hubicka <jh@suse.cz>
10144 * cgraph.h (cgraph_only_called_directly_p,
10145 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
10147 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
10149 (cgraph_finalize_function): Static cdtors are reachable.
10150 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
10152 2010-08-20 Jan Hubicka <jh@suse.cz>
10154 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
10156 * lto-streamer-out.c (lto_output): Likewise.
10157 * passes.c (ipa_write_optimization_summaries): Initialize statement
10160 2010-08-20 Olivier Hainque <hainque@adacore.com>
10162 * tree.h (alias_diag_flags): New enum.
10163 (alias_pair): Add an 'emitted_diags' field.
10164 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
10165 (assemble_alias): Initialize emitted_diags of new pairs.
10167 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
10169 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
10170 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10171 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10172 (STACK_CHECK_PROTECT): Define.
10173 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
10174 (output_probe_stack_range): Likewise.
10175 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
10176 builtin stack checking is enabled.
10177 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
10178 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
10179 (probe_stack_range): New insn.
10181 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
10184 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
10187 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
10190 2010-08-20 Jakub Jelinek <jakub@redhat.com>
10193 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
10194 to cover zero extension into 64-bit register.
10195 (*sse2_pextrw): Likewise.
10196 (*sse4_1_pextrd_zext): New insn.
10198 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
10200 revert r163410, partially revert r163267.
10201 * config/rs6000/darwin.h (LIB_SPEC): Remove.
10202 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
10205 2010-08-20 Jakub Jelinek <jakub@redhat.com>
10207 PR middle-end/44974
10208 * builtins.c (expand_builtin): Don't optimize away
10209 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
10211 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
10213 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
10214 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
10215 alternative 1 of operand 2.
10217 2010-08-20 Jakub Jelinek <jakub@redhat.com>
10218 Paolo Bonzini <bonzini@gnu.org>
10220 * simplify-rtx.c (simplify_unary_operation_1): Optimize
10221 (sign_extend (zero_extend (...)) and
10222 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
10224 2010-08-20 Jakub Jelinek <jakub@redhat.com>
10226 PR rtl-optimization/45353
10227 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
10228 after bb_note is a BARRIER.
10230 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
10232 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
10235 2010-08-20 Jakub Jelinek <jakub@redhat.com>
10236 Michael Matz <matz@suse.de>
10238 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
10240 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
10242 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
10243 (ggc_mark_roots): ...here.
10245 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
10247 * vec.h (FOR_EACH_VEC_ELT): Define.
10248 * c-decl.c: Use it.
10249 * cfgloop.c: Likewise.
10250 * cfgloopmanip.c: Likewise.
10251 * cgraph.c: Likewise.
10252 * cgraphunit.c: Likewise.
10253 * combine.c: Likewise.
10254 * config/bfin/bfin.c: Likewise.
10255 * config/mips/mips.c: Likewise.
10256 * config/rs6000/rs6000.c: Likewise.
10257 * dbxout.c: Likewise.
10258 * df-scan.c: Likewise.
10259 * dominance.c: Likewise.
10261 * dwarf2out.c: Likewise.
10262 * except.c: Likewise.
10263 * expr.c: Likewise.
10264 * function.c: Likewise.
10265 * gcse.c: Likewise.
10266 * genattr.c: Likewise.
10267 * ggc-common.c: Likewise.
10268 * gimplify.c: Likewise.
10269 * graphite-blocking.c: Likewise.
10270 * graphite-clast-to-gimple.c: Likewise.
10271 * graphite-dependences.c: Likewise.
10272 * graphite-interchange.c: Likewise.
10273 * graphite-poly.c: Likewise.
10274 * graphite-scop-detection.c: Likewise.
10275 * graphite-sese-to-poly.c: Likewise.
10276 * graphite.c: Likewise.
10277 * haifa-sched.c: Likewise.
10278 * ifcvt.c: Likewise.
10279 * implicit-zee.c: Likewise.
10280 * ipa-prop.c: Likewise.
10281 * ipa-struct-reorg.c: Likewise.
10283 * ira-build.c: Likewise.
10284 * ira-color.c: Likewise.
10285 * ira-emit.c: Likewise.
10286 * lambda-code.c: Likewise.
10287 * loop-invariant.c: Likewise.
10288 * loop-unroll.c: Likewise.
10289 * lower-subreg.c: Likewise.
10290 * lto-cgraph.c: Likewise.
10291 * lto-opts.c: Likewise.
10292 * lto-streamer-in.c: Likewise.
10293 * lto-streamer-out.c: Likewise.
10294 * lto-streamer.c: Likewise.
10295 * lto-symtab.c: Likewise.
10296 * matrix-reorg.c: Likewise.
10297 * opts.c: Likewise.
10298 * predict.c: Likewise.
10299 * print-tree.c: Likewise.
10300 * sdbout.c: Likewise.
10301 * sel-sched-dump.c: Likewise.
10302 * sel-sched-ir.c: Likewise.
10303 * sel-sched.c: Likewise.
10304 * sese.c: Likewise.
10305 * stor-layout.c: Likewise.
10306 * tree-cfg.c: Likewise.
10307 * tree-cfgcleanup.c: Likewise.
10308 * tree-chrec.c: Likewise.
10309 * tree-data-ref.c: Likewise.
10310 * tree-emutls.c: Likewise.
10311 * tree-inline.c: Likewise.
10312 * tree-into-ssa.c: Likewise.
10313 * tree-loop-distribution.c: Likewise.
10314 * tree-loop-linear.c: Likewise.
10315 * tree-mudflap.c: Likewise.
10316 * tree-outof-ssa.c: Likewise.
10317 * tree-parloops.c: Likewise.
10318 * tree-predcom.c: Likewise.
10319 * tree-pretty-print.c: Likewise.
10320 * tree-scalar-evolution.c: Likewise.
10321 * tree-ssa-live.c: Likewise.
10322 * tree-ssa-loop-im.c: Likewise.
10323 * tree-ssa-loop-ivcanon.c: Likewise.
10324 * tree-ssa-loop-ivopts.c: Likewise.
10325 * tree-ssa-loop-manip.c: Likewise.
10326 * tree-ssa-loop-niter.c: Likewise.
10327 * tree-ssa-loop-prefetch.c: Likewise.
10328 * tree-ssa-phiprop.c: Likewise.
10329 * tree-ssa-pre.c: Likewise.
10330 * tree-ssa-reassoc.c: Likewise.
10331 * tree-ssa-sccvn.c: Likewise.
10332 * tree-ssa-structalias.c: Likewise.
10333 * tree-ssa.c: Likewise.
10334 * tree-vect-data-refs.c: Likewise.
10335 * tree-vect-loop-manip.c: Likewise.
10336 * tree-vect-loop.c: Likewise.
10337 * tree-vect-patterns.c: Likewise.
10338 * tree-vect-slp.c: Likewise.
10339 * tree-vect-stmts.c: Likewise.
10340 * tree-vrp.c: Likewise.
10341 * tree.c: Likewise.
10342 * value-prof.c: Likewise.
10343 * var-tracking.c: Likewise.
10344 * varasm.c: Likewise.
10345 * vmsdbgout.c: Likewise.
10347 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
10348 Richard Guenther <richard.guenther@gmail.com>
10350 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
10351 copy the src value and return a copy.
10352 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
10353 (C++ Volatiles): Adjust to describe C++ semantics only.
10355 2010-08-20 Joseph Myers <joseph@codesourcery.com>
10357 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
10358 be zero or nonzero.
10359 * doc/tm.texi: Regenerate.
10360 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
10361 * df-scan.c (df_get_exit_block_use_set), reginfo.c
10362 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
10363 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
10364 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
10367 2010-08-20 Olivier Hainque <hainque@adacore.com>
10369 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
10370 an extra nop past a sibling call at the very end.
10372 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
10375 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
10378 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
10380 * target.def (function_arg, function_incoming_arg): Remove const
10381 qualifier on CUMULATIVE_ARGS parameter.
10382 * targhooks.h (default_function_arg, default_function_incoming_arg):
10384 * targhooks.c (default_function_arg, default_function_incoming_arg):
10386 * config/i386/i386.c (ix86_function_arg): Likewise.
10388 2010-08-19 Jakub Jelinek <jakub@redhat.com>
10391 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
10392 SIGN_EXTENDs or ZERO_EXTENDs.
10394 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
10397 * combine.c (combine_validate_cost): New arg I0. All callers changed.
10398 Take its cost into account if nonnull.
10399 (insn_a_feeds_b): New static function.
10400 (combine_instructions): Look for four-insn combinations.
10401 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
10402 them into account when computing all_adjacent and looking for other
10404 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
10405 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
10406 (try_combine): New arg I0. Handle four-insn combinations.
10407 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
10410 2010-08-19 Jason Merrill <jason@redhat.com>
10413 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
10415 (gimplify_modify_expr_rhs): Adjust.
10417 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
10419 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
10421 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
10422 * dominance.c (iterate_fix_dominators): Likewise.
10423 * dse.c (set_usage_bits): Likewise.
10424 (set_position_unneeded, record_store): Likewise.
10425 * gimple-fold.c (get_maxval_strlen): Likewise.
10426 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
10427 * ipa-inline.c (update_caller_keys): Likewise.
10428 * ipa-split.c (verify_non_ssa_vars): Likewise.
10429 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
10430 (close_type_exposed_parameter, close_type_full_escape): Likewise.
10431 (close_addressof_down): Likewise.
10432 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
10433 (setup_allocno_left_conflicts_size): Likewise.
10434 (ira_reassign_conflict_allocnos): Likewise.
10435 (ira_reassign_pseudos): Likewise.
10436 * ira-emit.c (change_loop): Likewise.
10437 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
10438 * lto-streamer-out.c (write_symbol): Likewise.
10439 * predict.c (expr_expected_value_1): Likewise.
10440 * regstat.c (regstat_bb_compute_ri): Likewise.
10441 * sel-sched.c (create_block_for_bookkeeping): Likewise.
10442 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
10443 * stmt.c (expand_case): Likewise.
10444 * tree-eh.c (emit_eh_dispatch): Likewise.
10445 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
10446 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
10448 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
10449 (rdg_build_components): Likewise.
10450 * tree-object-size.c (collect_object_sizes_for): Likewise.
10451 * tree-sra.c (convert_callers): Likewise.
10452 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
10453 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
10454 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
10456 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
10458 * config/i386/i386.md (*lea_1): Use P mode iterator.
10459 (lea add splitter): Also handle DImode operands.
10460 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
10461 predicate. Do not use ix86_lea_for_add_ok.
10462 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
10463 (lea ashift splitter): Also handle DImode operands.
10464 (DImode lea ashift splitter): Remove splitter.
10466 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
10468 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
10469 ix86_binary_operator_ok.
10471 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
10473 PR rtl-optimization/44691
10474 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
10477 2010-08-19 Ian Bolton <ian.bolton@arm.com>
10480 * config/arm/arm.c (arm_output_epilogue): Ensure that return
10481 value of size 1-3 is handled correctly.
10483 2010-08-19 Ian Bolton <ian.bolton@arm.com>
10485 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
10486 type for the conditional has wide enough range.
10488 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
10491 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
10492 ix86_binary_operator_ok.
10494 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
10496 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
10497 <default>: Swap operands 1 and 2 for alternative 2 to use existing
10498 code to output insn mnemonic. Fix comment.
10499 (*addsi_1_zext): Add r-r-0 alternative 1.
10500 <TYPE_LEA>: Split insn to lea.
10501 <default>: Handle alternative 1.
10502 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
10503 multi-level if_then_else RTX to set "type" attribute.
10504 <default>: Handle alternative 2.
10505 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
10506 Use cond RTX instead of multi-level if_then_else RTX to set
10508 <default>: Handle alternatives 2 and 4.
10509 (lea splitters): Update calls to ix86_lea_for_add_ok.
10511 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
10513 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
10515 2010-08-18 Richard Guenther <rguenther@suse.de>
10517 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
10518 use operand helpers.
10520 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
10522 PR middle-end/45292
10523 * optabs.c (expand_bool_compare_and_swap): Expand pending
10524 pops before trying the optab.
10526 2010-08-18 Yao Qi <yao@codesourcery.com>
10529 * config/arm/arm.c (output_move_double): Fix typo generating
10530 instructions ('ldr'->'str').
10532 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
10534 PR rtl-optimization/42575
10535 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
10538 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
10540 * config/arm/arm-protos.h (arm_expand_sync): New.
10541 (arm_output_memory_barrier, arm_output_sync_insn): New.
10542 (arm_sync_loop_insns): New.
10543 * config/arm/arm.c (FL_ARCH7): New.
10544 (FL_FOR_ARCH7): Include FL_ARCH7.
10546 (arm_print_operand): Support %C markup.
10547 (arm_legitimize_sync_memory): New.
10548 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
10549 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
10550 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
10551 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
10552 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
10553 (arm_process_output_sync_insn, arm_output_sync_insn): New.
10554 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
10555 * config/arm/arm.h (struct arm_sync_generator): New.
10556 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
10557 (TARGET_HAVE_MEMORY_BARRIER): New.
10558 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
10559 * config/arm/arm.md: Include sync.md.
10560 (UNSPEC_MEMORY_BARRIER): New.
10561 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
10562 (VUNSPEC_SYNC_OP):New.
10563 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
10564 (sync_result, sync_memory, sync_required_value): New attributes.
10565 (sync_new_value, sync_t1, sync_t2): Likewise.
10566 (sync_release_barrier, sync_op): Likewise.
10567 (length): Add logic to length attribute defintion to call
10568 arm_sync_loop_insns when appropriate.
10569 * config/arm/sync.md: New file.
10571 2010-08-17 Jakub Jelinek <jakub@redhat.com>
10573 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
10574 ENABLE_TREE_CHECKING.
10575 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
10578 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
10580 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
10581 or optimizing for size, always avoid lea if possible.
10583 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
10585 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
10587 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
10588 Dunmmy function with NULL return unless the target is
10589 OSX >= 10.6 (Darwin10).
10591 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
10593 * gcc.c (spec_function): Add remove-outfile.
10594 (remove_outfile_spec_function): New function.
10595 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
10596 * invoke.texi (replace-outfile): Document.
10598 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
10601 * reginfo.c (globalize_reg): Reject stack registers.
10603 2010-08-17 Richard Guenther <rguenther@suse.de>
10605 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
10606 list of conditional equivalences.
10607 (free_all_edge_infos): Adjust.
10608 (record_equivalences_from_incoming_edge): Likewise.
10609 (record_cond): Likewise.
10610 (build_and_record_new_cond): Likewise.
10611 (record_conditions): Likewise.
10612 (dom_opt_leave_block): Likewise.
10614 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
10616 * doc/invoke.texi (ms-extension): Add documentation.
10618 2010-08-17 Richard Guenther <rguenther@suse.de>
10620 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
10622 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
10625 * c-decl.c (diagnose_uninitialized_cst_member): New function.
10626 (finish_decl): Use it to issue a -Wc++-compat warning about
10627 uninitialized const field in struct or union.
10629 (finish_struct): Use strip_array_types.
10631 2010-08-17 Jakub Jelinek <jakub@redhat.com>
10633 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
10635 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
10636 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
10637 call block_nreverse here.
10638 (blocks_nreverse): Rename decl temporary to block.
10640 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
10642 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
10643 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
10644 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
10645 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
10646 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
10647 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
10648 thumb2_iorsi3): Delete.
10649 (orsi_notsi_si): No longer a named pattern.
10650 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
10651 * config/arm/predicates.md (shift_amount_operand): New.
10652 (mult_operator): New.
10653 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
10654 attr enabled): New.
10655 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
10657 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
10658 (not_shiftsi_compare0): Likewise, renamed from
10659 arm_notsi_shiftsi_compare0.
10660 (not_shiftsi_compare0_scratch): Likweise, renamed from
10661 arm_notsi_shiftsi_compare0_scratch.
10662 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
10663 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
10664 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
10665 so that the register alternative is disabled when the shift_operator
10666 is MULT. Use "M" as the constraint for constants.
10667 (arith_shiftsi splitter): Enable for TARGET_32BIT.
10668 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
10669 constraint for constants.
10670 (arith_shiftsi_compare0_scratch): Likewise.
10671 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
10672 Handle Thumb2 alternative.
10674 2010-08-16 Joseph Myers <joseph@codesourcery.com>
10676 * doc/options.texi (NoDriverArg): Document.
10677 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
10679 * opt-functions.awk (switch_flags): Handle NoDriverArg.
10680 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
10681 marking for CL_NO_DRIVER_ARG options when in the driver.
10682 * opts.h (CL_NO_DRIVER_ARG): Define.
10683 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
10684 CL_COMMON): Update values.
10686 2010-08-16 Joseph Myers <joseph@codesourcery.com>
10688 * common.opt: Add driver options.
10689 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
10690 * doc/options.texi (Driver, RejectDriver): Document.
10691 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
10692 print_prog_name, print_multi_directory, print_sysroot,
10693 print_multi_os_directory, print_multi_lib,
10694 print_sysroot_headers_suffix, report_times, combine_flag,
10695 use_pipes, wrapper_string): Remove.
10696 (save_switch, driver_unknown_option_callback,
10697 driver_wrong_lang_callback, driver_post_handling_callback,
10698 driver_handle_option): New.
10699 (spec_lang, last_language_n_infiles): Make file-scope static
10700 instead of local to process_command.
10701 (process_command): Use decode_cmdline_options_to_array and
10702 read_cmdline_option for option processing. Compute have_c in
10703 prescan of decoded options.
10704 * opt-functions.awk (switch_flags): Handle Driver and
10706 (var_type, var_type_struct): Handle Separate options as generating
10707 const char * variables.
10708 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
10709 CL_TARGET to be passed by caller if required.
10710 (decode_cmdline_options_to_array): Update comment.
10711 * opts.c (complain_wrong_lang): Handle options only valid for the
10713 (decode_options): Update call to decode_cmdline_options_to_array.
10714 (print_filtered_help): Ignore driver-only options.
10715 (print_specific_help): Ignore CL_DRIVER.
10716 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
10717 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
10718 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
10721 2010-08-16 Richard Guenther <rguenther@suse.de>
10723 * tree-cfg.c (verify_types_in_gimple_reference): Verify
10724 TARGET_MEM_REF a bit.
10725 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
10726 (create_mem_ref_raw): Always create TMR_OFFSET, store the
10727 alias pointer type via it.
10728 (copy_mem_ref_info): Adjust.
10729 (maybe_fold_tmr): Likewise.
10730 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
10731 (reference_alias_ptr_type): Likewise.
10732 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
10733 adjust documentation of TMR_OFFSET operand.
10734 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
10735 use the alias pointer type.
10736 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
10737 initialize mem attrs but the TMR itself.
10738 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
10739 similar to MEM_REF.
10740 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
10741 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
10742 (unshare_and_remove_ssa_names): Likewise.
10743 (copy_ref_info): Adjust.
10744 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
10745 TARGET_MEM_REF case.
10746 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
10748 * tree.h (TMR_ORIGINAL): Remove.
10749 * gimple.c (get_base_address): For TARGET_MEM_REF with a
10750 symbol return that.
10751 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
10753 (get_addr_base_and_unit_offset): Likewise.
10754 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
10756 (indirect_ref_may_alias_decl_p): Likewise.
10757 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
10759 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
10761 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
10762 with GCC version 4.6, the default setting (when not optimizing
10763 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
10764 been changed to -fomit-frame-pointer.
10766 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
10768 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
10769 Darwin10. Do not link libgcc.a for Darwin >= 9.
10771 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
10773 * doc/invoke.texi (Warning Options): Fix terminology and markup
10774 in the description of how unknown warning options are handled.
10776 2010-08-15 Ira Rosen <irar@il.ibm.com>
10778 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
10780 (vect_supportable_dr_alignment): Check alignment for basic blocks.
10781 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
10783 (vect_bb_vectorization_profitable_p): New function.
10784 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
10785 check if it's worthwhile to vectorize the basic block.
10787 2010-08-14 Anatoly Sokolov <aesok@post.ru>
10789 * reload.h (register_move_cost, memory_move_secondary_cost,
10790 secondary_reload_class): Adjust prototype.
10791 * rtl.h (reg_class_subset_p): Adjust prototype.
10792 * reload.c (secondary_reload_class): Change arguments type from
10793 enum reg_class to reg_class_t. Change result type to reg_class_t.
10794 * reginfo.c (register_move_cost, reg_class_subset_p): Change
10795 arguments type from enum reg_class to reg_class_t.
10796 (memory_move_secondary_cost): Change arguments type from
10797 enum reg_class to reg_class_t. Change type of saved_flags to
10800 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10802 (mips_cost): Remove.
10803 (struct mips_rtx_cost_data): Moved to mips.c.
10804 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
10805 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
10806 (mips_cost): Make static.
10807 (mips_canonicalize_move_class): Change argument type to reg_class_t.
10808 Change result type to reg_class_t.
10809 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
10810 type from enum reg_class to reg_class_t.
10811 (mips_register_move_cost): Make static. Change arguments
10812 type from enum reg_class to reg_class_t.
10813 (mips_memory_move_cost): New function.
10814 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10816 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
10818 PR rtl-optimization/43358
10819 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
10820 of a single hard register, using simplify_subreg_regno to decide
10821 what that register should be.
10823 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
10825 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
10826 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
10827 (loongson_pmull<V_suffix>): Rename to...
10828 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
10830 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
10832 * configure.ac: Enable -fomit-frame-pointer on darwin
10833 which support dwarf2.
10834 * config/i386/i386.c (override_options): Same.
10836 2010-08-13 Jie Zhang <jie@codesourcery.com>
10838 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
10840 2010-08-12 Joseph Myers <joseph@codesourcery.com>
10842 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
10845 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
10847 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
10848 up dot_prod pattern searching if a stmt is outside the loop.
10850 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
10851 Uros Bizjak <ubizjak@gmail.com>
10853 * config.gcc: Handle --enable-frame-pointer.
10855 * configure.ac: Add --enable-frame-pointer.
10856 * configure: Regenerated.
10858 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
10859 (override_options): If not configured with --enable-frame-pointer,
10860 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
10861 optimizing for size), -fasynchronous-unwind-tables and
10862 -maccumulate-outgoing-args by default.
10864 2010-08-12 Jakub Jelinek <jakub@redhat.com>
10866 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
10868 PR middle-end/45262
10869 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
10870 -a overflows. Normalize the range.
10872 2010-08-12 Richard Guenther <rguenther@suse.de>
10874 PR tree-optimization/45232
10875 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
10876 for types with undefined overflow.
10877 (reassociate_bb): Allow re-associating of bit and min/max
10878 operations for types with undefined overflow.
10879 * tree-ssa-forwprop.c (associate_plusminus): New function.
10880 (tree_ssa_forward_propagate_single_use_vars): Call it.
10882 2010-08-12 Richard Guenther <rguenther@suse.de>
10884 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
10885 * tree-ssa-alias.c (get_ptr_info): Move ...
10886 * tree-ssanames.c (get_ptr_info): ... here. Initialize
10887 align and misalign fields conservatively.
10888 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
10889 derive alignment information.
10890 (evaluate_stmt): Derive alignment information from memory
10891 allocation functions.
10892 * tree.h (get_pointer_alignment): Make unsigned.
10893 * builtins.c (get_object_alignment): Use alignment information we
10894 have computed for pointers.
10895 (get_pointer_alignment): Likewise. Make conservative, return
10896 and unsigned value.
10897 (expand_builtin_strlen): Adjust.
10898 (expand_builtin_memcmp): Likewise.
10899 (expand_builtin_strcmp): Likewise.
10900 (expand_builtin_strncmp): Likewise.
10901 (get_builtin_sync_mem): Use at least mode alignment.
10902 (fold_builtin_memset): Adjust.
10903 (fold_builtin_memory_op): Likewise.
10904 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
10905 information also dump pointer alignment knowledge.
10906 (dump_gimple_stmt): Likewise.
10908 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
10910 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
10911 (EMPTY_FIELD_BOUNDARY): Remove.
10912 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
10914 2010-08-12 Jakub Jelinek <jakub@redhat.com>
10917 * caller-save.c (save_call_clobbered_regs): Only swap notes with
10918 DEBUG_INSNs if n_regs_saved.
10920 2010-08-12 Wei Guozhi <carrot@google.com>
10923 * config/arm/arm.md (andsi3): Change to zero extension if possible.
10924 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
10926 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
10928 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
10930 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
10932 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10934 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
10935 the case removed in the previous patch, when the only phi argument
10936 is defined in the same loop as the phi node itself. Handle it
10937 separately from the invariant case by both propagating it outside
10938 the region and replacing the phi node with an assign.
10940 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10942 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
10943 constant phi nodes with one argument are is_gimple_min_invariant
10944 and SSA_NAME_IS_DEFAULT_DEF.
10946 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10948 * graphite-cloog-util.c (oppose_constraint):
10949 Extend loop counter's value range (CLOOG_ORG).
10950 (cloog_matrix_to_ppl_constraint): Same.
10951 (new_Constraint_System_from_Cloog_matrix): Same.
10952 * graphite-cloog-compat.h (matrix_num_type): New.
10954 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10956 * graphite.c (graphite_initialize): Do not initialize
10957 CLooG and initialize the Parma Polyhedra Library
10958 manually when using CLOOG_ORG.
10959 (graphite_finalize): Do not finalize CLooG and finalize
10960 the Parma Polyhedra Library manually when using CLOOG_ORG.
10961 * graphite-cloog-compat.h (cloog_initialize): Hide function
10962 when using CLOOG_ORG.
10963 (cloog_finalize): Same.
10965 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10967 * graphite-clast-to-gimple.c (free_scattering): Change
10968 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
10970 (build_cloog_prog): Same.
10971 * graphite-cloog-compat.h (cloog_domain): Removed.
10972 (cloog_scattering): New.
10973 (cloog_set_domain): Removed.
10974 (cloog_set_scattering): New.
10975 (cloog_next_domain): Removed.
10976 (cloog_next_scattering): New.
10977 (cloog_set_next_domain): Removed.
10978 (cloog_set_next_scattering): New.
10979 (CloogScatteringList): New.
10980 (CloogScattering): New.
10981 (cloog_scattering_free): New.
10982 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
10983 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
10986 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10988 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
10990 (set_cloog_options): Same.
10991 (print_clast_stmt): Same.
10992 (scop_to_clast): Same.
10993 (print_generated_program): Same.
10995 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
10996 (scop_to_clast): Extend with CloogState.
10997 * graphite-cloog-util.c: Include graphite-cloog-compat.h
10998 (new_Cloog_Domain_from_ppl_Polyhedron):
10999 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
11000 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
11001 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11002 * graphite-cloog-util.h (build_cloog_prog): Same.
11003 * graphite-cloog-copat.h (build_cloog_prog): New.
11005 (cloog_state_malloc): New.
11006 (cloog_state_free): New.
11007 (cloog_loop_malloc): New.
11008 (cloog_options_malloc): New.
11009 (cloog_statement_alloc): New.
11010 (cloog_domain_from_cloog_matrix): New.
11011 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
11012 (new_Cloog_Domain_from_ppl_Polyhedron): New.
11014 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11016 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
11017 type of NAME now depends on used CLooG version.
11018 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
11019 (gcc_type_for_clast_expr): Same.
11020 (print_clast_stmt): Replace pprint with clast_pprint.
11021 * graphite-cloog-compat.h: Provide compatibility macros for
11023 (clast_name_p): New.
11024 (clast_expr_term): New.
11025 (clast_expr_red): New.
11026 (clast_expr_bin): New.
11027 (clast_pprint): New.
11029 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11031 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
11032 compatible to newer CLooG releases (CLOOG_ORG).
11033 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
11034 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
11035 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
11036 (build_cloog_prog) : New.
11037 (cloog_program_extract_scalars): New.
11038 (cloog_program_scatter): New.
11040 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11042 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
11043 conditionally (CLOOG_ORG).
11044 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
11045 (cloog_statement_usr): New.
11046 (cloog_domain): Same.
11047 (cloog_set_domain): Same.
11048 (cloog_next_domain): Same.
11049 (cloog_set_next_domain): Same.
11050 (cloog_program_nb_scattdims): Same.
11051 (cloog_program_set_nb_scattdims): Same.
11052 (cloog_program_names): Same.
11053 (cloog_program_set_names): Same.
11054 (cloog_program_set_context): Same.
11055 (cloog_program_set_loop): Same.
11056 (cloog_program_blocklist): Same.
11057 (cloog_program_set_blocklist): Same.
11058 (cloog_program_scaldims): Same.
11059 (cloog_program_set_scaldims): Same.
11060 (cloog_names_nb_parameters): Same.
11061 (cloog_names_set_nb_parameters): Same.
11062 (cloog_names_parameters): Same.
11063 (cloog_names_set_parameters): Same.
11064 (cloog_names_set_nb_iterators): Same.
11065 (cloog_names_set_iterators): Same.
11066 (cloog_names_set_nb_scattering): Same.
11067 (cloog_names_set_scattering): Same.
11068 (cloog_statement_set_usr): Same.
11069 (cloog_loop_set_next): Same.
11070 (cloog_loop_set_domain): Same.
11071 (cloog_loop_set_block): Same.
11072 (cloog_block_list_next): Same.
11073 (cloog_block_list_set_next):
11074 (cloog_block_list_set_block): Same.
11076 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11078 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
11080 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
11081 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
11082 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
11083 when something has been changed.
11084 (rewrite_commutative_reductions_out_of_ssa): Same.
11086 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11088 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
11089 handle the case when def is in the sese region.
11090 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
11091 for invariant expressions.
11092 (rewrite_cross_bb_phi_deps): Removed.
11093 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
11094 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
11095 rewrite_cross_bb_phi_deps.
11097 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11099 * graphite-sese-to-poly.c
11100 (rewrite_commutative_reductions_out_of_ssa_loop): Call
11101 scev_analyzable_p only on is_gimple_reg
11103 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11105 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
11106 (rewrite_close_phi_out_of_ssa): Propagate constant values or
11107 parametric expressions outside the scop region.
11108 (rewrite_cross_bb_scalar_deps): Same.
11109 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
11111 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11113 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
11114 SSA_NAME_DEF_STMT only on SSA_NAMEs.
11116 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11118 * tree-scalar-evolution.c (instantiate_scev_name): Do not
11119 instantiate default definitions.
11121 2010-08-11 Vladimir Kargov <kargov@gmail.com>
11122 Sebastian Pop <sebastian.pop@amd.com>
11124 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
11125 (loop_exits_from_bb_p): New.
11126 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
11127 (loop_exits_from_bb_p): Declared.
11128 * graphite-scop-detection.c (scopdet_basic_block_info): Call
11129 loop_exits_to_bb_p.
11131 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11133 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
11134 extra parameter for the region. Call scev_analyzable_p.
11135 (rewrite_reductions_out_of_ssa): Update call to
11136 rewrite_close_phi_out_of_ssa.
11137 (rewrite_cross_bb_phi_deps): Same.
11138 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
11139 parameter for the region. Call scev_analyzable_p.
11140 (rewrite_commutative_reductions_out_of_ssa): Update call to
11141 rewrite_commutative_reductions_out_of_ssa_loop.
11143 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11145 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
11147 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11149 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
11150 SSA scalar phi nodes that can be scev_analyzable_p.
11152 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11154 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
11155 handle SSA_NAME_IS_DEFAULT_DEF.
11157 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11159 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
11161 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11163 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
11164 case non close-phi nodes with one argument.
11166 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11168 * sese.h (scev_analyzable_p): Scevs could be expressions without
11169 chrecs and still be scev_analyzable_p.
11171 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11173 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11175 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11177 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
11178 * cfgloop.h (struct loop): Remove single_iv field.
11179 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
11180 (scop_canonicalize_loops): Removed.
11181 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
11182 over all the loop phi nodes in loop->header.
11183 (build_poly_scop): Remove use of scop_canonicalize_loops.
11185 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11187 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
11188 handle GIMPLE_CALL.
11190 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11192 * tree-chrec.c (chrec_apply): Should only apply to the specified
11193 variable. Also handle multivariate chains of recurrences that
11194 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
11196 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11198 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
11199 (debug_clast_name_indexes_1): Removed.
11200 (debug_clast_name_indexes): Removed.
11201 (pbb_to_depth_to_oldiv): Removed.
11202 (build_iv_mapping): Replace the use of rename_map with iv_map.
11203 (translate_clast_user): Remove uses of rename_map. Allocate and
11205 (translate_clast_for_loop): Remove uses of rename_map.
11206 (translate_clast_for): Same.
11207 (translate_clast_guard): Same.
11208 (translate_clast): Same.
11210 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
11211 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
11212 * sese.c (set_rename): Now static.
11213 (rename_variables_in_stmt): Removed.
11214 (rename_uses): New.
11215 (is_parameter): Removed.
11217 (expand_scalar_variables_call): Removed.
11218 (expand_scalar_variables_ssa_name): Removed.
11219 (expand_scalar_variables_expr): Removed.
11220 (expand_scalar_variables_stmt): Removed.
11221 (expand_scalar_variables): Removed.
11222 (rename_variables): Removed.
11223 (remove_condition): Removed.
11224 (get_true_edge_from_guard_bb): Removed.
11225 (get_false_edge_from_guard_bb): Removed.
11226 (struct igp): Removed.
11227 (default_before_guard): Removed.
11228 (convert_for_phi_arg): Removed.
11229 (add_guard_exit_phis): Removed.
11230 (insert_guard_phis): Removed.
11231 (graphite_copy_stmts_from_block): Now also uses iv_map and a
11232 region. Do not copy conditions. Do not copy induction variables.
11234 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
11235 the translated statement. Use the iv_map for the induction
11237 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
11238 (set_rename): Removed declaration.
11239 (scev_analyzable_p): ...here.
11240 * tree-chrec.c (chrec_apply_map): New.
11241 * tree-chrec.h (chrec_apply_map): Declared.
11243 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11245 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
11246 insert_loop_close_phis.
11247 * sese.c (name_defined_in_loop_p): Removed.
11248 (expr_defined_in_loop_p): Removed.
11249 (alive_after_loop): Removed.
11250 (close_phi_not_yet_inserted_p): Removed.
11251 (struct alep): Removed.
11252 (add_loop_exit_phis): Removed.
11253 (insert_loop_close_phis): Removed.
11255 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11257 * graphite-cloog-util.c
11258 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
11260 (psct_scattering_dim_for_loop_depth): Same.
11262 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11264 * graphite-cloog-util.h: Added cloog.h.
11265 * graphite-blocking.c: Removed cloog.h.
11266 * graphite-dependences.c: Same.
11267 * graphite-interchange.c: Same.
11268 * graphite-poly.c: Same.
11269 * graphite-ppl.c: Same.
11270 * graphite-scop-detection.c: Same.
11271 * graphite-sese-to-poly.c:
11273 Removed graphite-clast-to-gimple.h.
11274 (check_poly_representation): Removed (unused).
11275 * graphite-sese-to-poly.h
11276 (check_poly_representation): Removed (unused).
11278 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11280 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
11281 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
11282 (graphite-cloog-util.o): New.
11283 (graphite-ppl.o): Added graphite-cloog-util.h.
11284 * graphite-clast-to-gimple.c:
11285 Added graphite-cloog-util.h to include statements.
11286 * graphite-cloog-util.c: New.
11287 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
11288 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11289 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11290 (new_C_Polyhedron_from_Cloog_Matrix): Same.
11291 (insert_constraint_into_matrix): Same.
11292 (ppl_Constrain_System_number_of_constraints): Same.
11293 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
11294 (oppose_constraint): Same.
11295 (cloog_matrix_to_ppl_constraint): Same.
11296 (new_Constraint_System_from_Cloog_Matrix): Same.
11297 * graphite-cloog-util.h: New.
11298 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
11299 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11300 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11301 (new_C_Polyhedron_from_Cloog_Matrix): Same.
11302 (insert_constraint_into_matrix): Same.
11304 Added graphite-cloog-util.h to include statements.
11305 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
11306 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11307 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11308 (new_C_Polyhedron_from_Cloog_Matrix): Same.
11309 (insert_constraint_into_matrix): Same.
11310 (ppl_Constrain_System_number_of_constraints): Same.
11311 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
11312 (oppose_constraint): Same.
11313 (cloog_matrix_to_ppl_constraint): Same.
11314 (new_Constraint_System_from_Cloog_Matrix): Same.
11316 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
11317 graphite-cloog-util.h.
11318 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11319 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11320 (new_C_Polyhedron_from_Cloog_Matrix): Same.
11321 (insert_constraint_into_matrix): Same.
11323 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11325 * graphite-clast-to-gimple.c
11326 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
11327 (precision_for_interval): Same.
11328 (gcc_type_for_interval): Same.
11329 (compute_type_for_level): Same.
11330 * graphite-interchange.c
11331 (lst_interchange_profitable_p): Same.
11333 (psct_scattering_dim_for_loop_depth): Same.
11335 (ppl_max_for_le_pointset): Same.
11336 (ppl_min_for_le_pointset): Same.
11338 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11340 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
11341 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
11343 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11345 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
11346 rewrite_close_phi_out_of_ssa.
11348 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11350 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
11352 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11354 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
11356 * sese.c (debug_rename_map): Same.
11357 (get_rename): Same.
11358 (set_rename): Same.
11359 (rename_variables_in_stmt): Same.
11360 (expand_scalar_variables_call): Same.
11361 (expand_scalar_variables_ssa_name): Same.
11362 (expand_scalar_variables_expr): Same.
11363 (expand_scalar_variables_stmt): Same.
11364 (expand_scalar_variables): Same.
11365 (rename_variables): Same.
11366 (graphite_copy_stmts_from_block): Same.
11367 (copy_bb_and_scalar_dependences): Same.
11369 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11371 * graphite-clast-to-gimple.c (copy_renames): Removed.
11372 (translate_clast_for): Do not call copy_renames.
11373 (translate_clast_guard): Same.
11375 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11377 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
11378 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
11379 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
11380 before rewrite_cross_bb_scalar_deps.
11382 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11384 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
11385 Early return in when flag_associative_math is not set.
11387 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11389 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
11390 of SSA copies on edges except for loop->latch.
11392 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11394 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
11395 Split out of rewrite_reductions_out_of_ssa.
11396 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
11398 * graphite.c (graphite_transform_loops): Call it.
11400 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11402 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
11404 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
11406 * dbgcnt.def (graphite_scop): New counter.
11407 * graphite.c: Include dbgcnt.h.
11408 (graphite_transform_loops): Use new counter to limit transformations.
11409 * Makefile.in (graphite.o): Depend on DBGCNT_H.
11411 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11413 * passes.c (init_optimization_passes): Add pass_graphite.
11414 Schedule a pass_copy_prop before pass_graphite_transforms.
11415 * timevar.def (TV_GRAPHITE): Declared.
11416 * tree-pass.h (pass_graphite): Declared.
11417 * tree-ssa-loop.c (pass_graphite): New.
11419 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11421 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
11422 Remove calls to rename_nb_iterations and rename_sese_parameters.
11423 * graphite-clast-to-gimple.h (gloog): Update declaration.
11424 * graphite.c (graphite_transform_loops): Update call to gloog.
11425 * sese.c (rename_variables_in_expr): Removed.
11426 (rename_nb_iterations): Removed.
11427 (rename_sese_parameters): Removed.
11428 * sese.h (rename_nb_iterations): Removed.
11429 (rename_sese_parameters): Removed.
11431 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11433 * graphite-clast-to-gimple.c (gloog): Remove call to
11434 sese_adjust_liveout_phis.
11435 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
11436 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
11437 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
11438 rewrite_phi_out_of_ssa.
11439 * sese.c (get_vdef_before_sese): Removed.
11440 (sese_adjust_vphi): Removed.
11441 (sese_adjust_liveout_phis): Removed.
11442 * sese.h (sese_adjust_liveout_phis): Removed.
11444 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11446 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
11447 argument for the place after which to insert the out of SSA copy.
11448 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
11449 (rewrite_phi_out_of_ssa): Same.
11450 (rewrite_cross_bb_scalar_deps): Same.
11451 (insert_copyout): Removed.
11452 (insert_copyin): Removed.
11453 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
11454 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
11457 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11459 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
11460 (rewrite_reductions_out_of_ssa): Same.
11461 (rewrite_commutative_reductions_out_of_ssa): Same.
11462 (build_poly_scop): Do not call these functions.
11463 * graphite-sese-to-poly.h (build_poly_scop): Declared.
11464 (rewrite_reductions_out_of_ssa): Declared.
11465 (rewrite_commutative_reductions_out_of_ssa): Declared.
11466 * graphite.c (graphite_transform_loops): Call on every scop
11467 rewrite_commutative_reductions_out_of_ssa before calling
11468 rewrite_reductions_out_of_ssa and build_scop_bbs.
11470 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11472 * graphite-dependences.c (dot_deps): Make system call to dotty run
11474 (dot_deps_stmt): Same.
11475 * graphite-poly.c (dot_lst): Same.
11477 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11479 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
11480 phi_arg_in_outermost_loop.
11481 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
11482 (remove_invariant_phi): Same.
11484 2010-08-11 Anatoly Sokolov <aesok@post.ru>
11486 * target.def (output_addr_const_extra): New hook.
11487 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
11488 * doc/tm.texi: Regenerate.
11489 * targhooks.c (default_asm_output_addr_const_extra): New function.
11490 * targhooks.h (default_asm_output_addr_const_extra): Declare.
11491 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
11494 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11495 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
11496 * config/i386/i386.h (output_addr_const_extra): Rename to...
11497 (i386_asm_output_addr_const_extra): ...this. Make static.
11498 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11500 2010-08-11 Richard Henderson <rth@redhat.com>
11502 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
11504 2010-08-11 Nick Clifton <nickc@redhat.com>
11506 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
11507 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
11508 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
11509 stormy16-lib2-cmpsi.c.
11511 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
11514 2010-08-11 Joseph Myers <joseph@codesourcery.com>
11516 * opts.h (struct cl_option_handler_func): Make handler take
11517 cl_decoded_option structure as parameter, not individual elements.
11518 (struct cl_option_handlers): Make callbacks take cl_decoded_option
11519 structure as parameter, not individual elements.
11520 (handle_option): Take cl_decoded_option structure as parameter,
11521 not individual elements.
11522 (handle_generated_option): Declare.
11523 * opts-common.c (handle_option): Take cl_decoded_option structure
11524 as parameter, not individual elements. Update calls to callback
11525 and handler functions.
11526 (handle_generated_option): New.
11527 (read_cmdline_option): Update calls to callback functions and
11529 * opts.c (common_handle_option, complain_wrong_lang,
11530 unknown_option_callback, post_handling_callback,
11531 lang_handle_option, target_handle_option): Take cl_decoded_option
11532 structure as parameter, not individual elements.
11533 (lang_handle_option, target_handle_option, common_handle_option):
11534 Assert option has at most one argument.
11535 (enable_warning_as_error): Call handle_generated_option instead of
11536 handle_option. Do not pass -Werror argument as argument of
11539 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11541 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
11542 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
11543 (SUBWORD_BOOL_CAS): Likewise.
11544 (SUBWORD_SYNC_OP): Likewise.
11545 (SUBWORD_TEST_AND_SET): Likewise.
11546 (FETCH_AND_OP_WORD): Parenthesise INF_OP
11547 (SUBWORD_SYNC_OP): Likewise.
11548 (OP_AND_FETCH_WORD): Likewise.
11550 2010-08-10 Xinliang David Li <davidxl@google.com>
11552 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
11553 compute max/min offset in address.
11555 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
11557 * ira-live.c: Include sbitmap.h.
11558 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
11559 Compress live ranges even more.
11561 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
11563 * coverage.c (ctr_labels): Delete.
11565 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
11568 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
11569 test here from arm_gen_load_multiple_1.
11570 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
11571 multiple_operation_profitable_p.
11573 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
11575 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
11576 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
11578 2010-08-10 Richard Henderson <rth@redhat.com>
11580 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
11581 after saving registers. Assert that SSE registers are only saved
11582 with a sufficiently aligned frame.
11583 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
11584 remove stack_realign_fp handling.
11585 (ix86_expand_prologue): Save int registers before stack_realign_fp,
11586 and do not mark the stack alignment as frame related.
11587 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
11589 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
11590 saves when re-aligning the stack.
11592 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
11594 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
11595 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
11596 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
11598 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
11600 * dwarf2out.c (struct die_struct): Move die_tag to the end.
11602 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
11604 * config/arm/iterators.md: New file.
11605 * config/arm/arm.md: Include iterators.md.
11606 (QHSI): Move to new file.
11607 (LTUGEU, cnb, optab, ior_xor): Likewise.
11608 * config/arm/iwmmxt.md (VMMX): Move to new file.
11609 (VSHFT, MMX_char): Likewise.
11610 * config/arm/neon.md (VD): Move to new file.
11611 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
11612 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
11613 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
11614 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
11615 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
11616 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
11617 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
11618 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
11619 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
11620 (Is_d_reg, V_mode_nunits): Likewise.
11621 * config/arm/vec-common.md (VALL): Move to new file.
11622 (VALLW, VINT, VINTW): Likewise.
11624 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
11626 PR middle-end/45182
11627 * combine.c (make_compound_operation): Don't try to convert
11628 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
11630 2010-08-10 Richard Guenther <rguenther@suse.de>
11632 * tree.h (get_object_alignment): Adjust prototype.
11633 * builtins.c (get_object_alignment): Return unsigned int,
11634 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
11635 and TARGET_MEM_REF properly.
11636 (get_pointer_alignment): Adjust.
11637 * emit-rtl.c (get_mem_align_offset): Adjust comment.
11638 (set_mem_attributes_minus_bitpos): Adjust.
11639 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
11641 2010-08-10 Richard Guenther <rguenther@suse.de>
11643 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
11644 (copy_prop_visit_assignment): Simplify.
11645 (copy_prop_visit_stmt): Also visit assignments from
11647 (copy_prop_visit_phi_node): Use operand_equal_p.
11649 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
11651 * ipa-split.c (find_split_points): Free stack.
11653 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
11655 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
11656 * tree.c (tree_node_kind): Delete corresponding entries.
11658 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
11660 * alias.c (may_alias_p): Remove unused ret.
11662 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
11664 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
11665 alias_sets_conflict_p.
11666 (walk_mems_1): Moved from alias.c.
11667 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
11669 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
11670 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
11671 * alias.c (walk_mems_2): Moved to ddg.c.
11672 (walk_mems_1): Ditto.
11673 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
11675 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
11677 *(may_alias_p): New function to check whether two memory expression
11678 may alias or not. Currently used in buidling inter-iteration memory
11680 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
11681 (insn_alias_sets_conflict_p): Removed
11682 *rtl.h (may_alias_p): New function prototype.
11684 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
11686 * tree.c (nreverse): Assert that we don't have a BLOCK.
11688 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
11690 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
11691 * config/arm/arm.c (arm_get_pcs_model): Likewise.
11692 * config/avr/avr.c (init_cumulative_args): Likewise.
11693 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11694 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
11695 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
11696 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
11697 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
11698 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11699 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
11700 * dwarf2out.c (gen_subprogram_die): Likewise.
11701 * function.c (allocate_struct_function): Likewise.
11702 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
11703 (deserves_ellipsis): Delete.
11705 2010-08-09 Richard Guenther <rguenther@suse.de>
11707 * tree-ssa-copy.c (cached_last_copy_of): Remove.
11708 (valueize_val): New function.
11709 (get_last_copy_of): Remove.
11710 (set_copy_of_val): Simplify.
11711 (dump_copy_of): Likewise.
11712 (copy_prop_visit_cond_stmt): Use valueize_val.
11713 (copy_prop_visit_phi_node): Properly handle unvisited names.
11714 Drop code managing copy-of chains.
11715 (init_copy_prop): Adjust.
11716 (fini_copy_prop): Likewise.
11717 (execute_copy_prop): Remove obsolete comment.
11719 2010-08-09 Richard Guenther <rguenther@suse.de>
11721 PR middle-end/44632
11722 * function.c (gimplify_parameters): Do not clear addressable
11723 bit of the original parameter.
11725 2010-08-09 Richard Guenther <rguenther@suse.de>
11727 PR middle-end/45212
11728 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
11729 alignment from MEM_REF offset only if we took it from the
11732 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
11734 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
11736 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
11738 * c-tree.h (build_arg_info): Declare.
11739 * c-decl.c (build_arg_info): Define.
11740 (get_parm_info): Call it. Delete initialization code.
11741 * c-parser.c (c_parser_parms_declarator): Likewise.
11742 (c_parser_parms_list_declaractor): Likewise.
11744 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
11746 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
11747 (struct c_arg_info): Change type of tags field.
11748 * c-decl.c (grokdeclarator): Update for changed type of tags field.
11749 (get_parm_info): Likewise.
11750 (store_parm_decls_newstyle): Likewise.
11752 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
11754 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
11755 (branch_island_list): Delete.
11756 (branch_islands): Declare.
11757 (add_compiler_branch_island): Adjust for branch_islands instead of
11758 branch_island_list.
11759 (macho_branch_islands): Likewise.
11760 (no_previous_def): Likewise.
11761 (get_prev_label): Likewise.
11763 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11766 * gthr-posix.h (__gthread_start): Delete.
11767 (__gthread_active_init): Use pthread_default_stacksize_np instead of
11768 pthread_create to determine if hpux pthreads are active.
11769 * gthr-posix95.h (__gthread_start): Delete.
11770 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
11772 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
11774 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
11775 _WIN64 not expanded.
11777 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
11778 H.J. Lu <hongjiu.lu@intel.com>
11781 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
11782 to output 32bit SFmode immediate as 8 byte sign extended value.
11784 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11786 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
11787 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
11788 (SUBWORD_BOOL_CAS): Likewise.
11789 (SUBWORD_SYNC_OP): Likewise.
11790 (SUBWORD_TEST_AND_SET): Likewise.
11791 (FETCH_AND_OP_WORD): Parenthesise INF_OP
11792 (SUBWORD_SYNC_OP): Likewise.
11793 (OP_AND_FETCH_WORD): Likewise.
11795 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11797 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
11798 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
11799 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
11800 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
11802 (cortex_a9_sched_adjust_cost): New function.
11803 (xscale_sched_adjust_cost): New function.
11804 * config/arm/arm-protos.h (struct tune_params): New field
11806 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
11808 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
11811 * config/sparc/sparc.c (function_arg_advance): Always take into account
11812 the padding, if any.
11814 2010-08-06 Richard Guenther <rguenther@suse.de>
11816 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
11817 (dump_lattice_value): Dump it.
11818 (get_default_value): Adjust.
11819 (get_constant_value): Likewise.
11820 (set_value_varying): Likewise.
11821 (set_lattice_value): Make sure to not go up the lattice
11822 with bitwise constant values.
11823 (get_value_for_expr): Handle ADDR_EXPRs.
11824 (value_to_double_int): New function.
11825 (get_value_from_alignment): Likewise.
11826 (do_dbg_cnt): Adjust.
11827 (ccp_lattice_meet): Handle partially constant values.
11828 (bit_value_unop_1): New function.
11829 (bit_value_binop_1): Likewise.
11830 (bit_value_unop): Likewise.
11831 (bit_value_binop): Likewise.
11832 (evaluate_stmt): Track partially constant values if
11833 flag_tree_bit_ccp is set.
11834 (ccp_fold_stmt): Dump if we folded a predicate.
11835 (ccp_visit_stmt): Adjust.
11836 * common.opt (ftree-bit-ccp): New flag.
11837 * doc/invoke.texi (ftree-bit-ccp): Document.
11838 * opts.c (decode_options): Enable bit-CCP at -O1.
11840 2010-08-06 Alan Modra <amodra@gmail.com>
11842 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
11843 and -mrelocatable-lib description.
11845 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
11847 From Martin Thuresson <martint@google.com>
11848 * postreload.c (reload_cse_simplify_operands): Use
11849 SET_REGNO_RAW instead of SET_REGNO.
11850 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
11852 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
11853 instead of SET_REGNO.
11854 * rtl.h (SET_REGNO_RAW): New macro.
11856 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
11858 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
11859 computations. Fix formatting issues.
11860 (num_sign_bit_copies1): Likewise.
11861 (canonicalize_condition): Likewise.
11863 2010-08-05 Richard Henderson <rth@redhat.com>
11865 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
11866 (floor_log2): Use clz_hwi.
11867 (exact_log2): Use ctz_hwi.
11868 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
11869 * builtins.c (fold_builtin_bitop): Use them.
11870 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11871 * combine.c (get_pos_from_mask): Use ctz_hwi.
11872 * double-int.c (double_int_ctz): Likewise.
11873 * explow.c (force_reg): Likewise.
11874 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
11876 2010-08-05 Richard Henderson <rth@redhat.com>
11879 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
11880 the alignment constant is properly sign-extended.
11882 2010-08-05 Richard Guenther <rguenther@suse.de>
11884 * expr.c (store_expr): Use emit_block_move only if both
11885 source and target are MEMs. Use store_bit_field if only
11886 the target is a MEM.
11888 2010-08-05 Richard Henderson <rth@redhat.com>
11891 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
11892 (INCOMING_RETURN_ADDR_RTX): Likewise.
11893 (dwarf2out_do_frame): Remove conditional compilation.
11894 (dwarf2out_frame_init): Likewise.
11896 2010-08-05 Nicolas Setton <setton@adacore.com>
11898 * gcov.c (flag_display_progress): New static variable.
11899 (main): Display progress info on standard output if requested.
11900 (options): Add -d/--display-progress.
11901 (print_usage): Print them.
11902 (process_args): Handle them.
11903 * doc/gcov.texi: Document them.
11905 2010-08-05 Martin Jambor <mjambor@suse.cz>
11907 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
11908 (ipcp_insert_stage): Redirect only edges not flagged with
11909 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
11910 discovered constants.
11912 2010-08-05 Martin Jambor <mjambor@suse.cz>
11914 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
11915 (struct ipa_param_descriptor): New fields types and
11916 cannot_devirtualize.
11917 (ipa_param_cannot_devirtualize_p): New function.
11918 (ipa_param_types_vec_empty): Likewise.
11919 (ipa_make_edge_direct_to_target): Declare.
11920 * ipa-cp.c: Fixed first stage driver name in initial comment,
11921 described devirtualization there too.
11922 (ipcp_analyze_node): Call ipa_analyze_params_uses.
11923 (ipcp_print_all_lattices): Print devirtualization info.
11924 (ipa_set_param_cannot_devirtualize): New function.
11925 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
11927 (ipcp_init_stage): Merged into...
11928 (ipcp_generate_summary): ...its caller.
11929 (ipcp_change_tops_to_bottom): Also process type lists.
11930 (ipcp_add_param_type): New function.
11931 (ipcp_copy_types): Likewise.
11932 (ipcp_propagate_types): Likewise.
11933 (ipcp_propagate_stage): Also propagate types.
11934 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
11935 Also return true if propagated types require it.
11936 (ipcp_update_callgraph): Dump redirection info.
11937 (ipcp_process_devirtualization_opportunities): New function.
11938 (ipcp_const_param_count): Include known type information.
11939 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
11940 on new node. Fixed formatting.
11941 * ipa-prop.c (make_edge_direct_to_target): Renamed to
11942 ipa_make_edge_direct_to_target and changed all callers. Made
11943 externally visible.
11944 (ipa_node_duplication_hook): Duplicate types vector.
11945 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
11946 redirect outgoing calls for which we can't get a decl from the
11947 statement. Check that we can get a decl from the call statement.
11948 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
11949 ipa_analyze_params_uses only when ipa-cp is disabled.
11950 * tree-inline.c (get_indirect_callee_fndecl): Removed.
11951 (expand_call_inline): Do not call get_indirect_callee_fndecl.
11952 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
11953 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
11955 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
11957 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
11958 temporary. Emit move from temporary to accum, so REG_EQUAL note will
11959 be attached to this insn in correct mode.
11961 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
11963 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
11964 using REGNO of base_reg directly.
11966 2010-08-05 Jie Zhang <jie@codesourcery.com>
11968 PR tree-optimization/45144
11969 * tree-sra.c (type_consists_of_records_p): Return false
11970 if the record contains bit-field.
11972 2010-08-04 Richard Henderson <rth@redhat.com>
11974 * config/i386/i386.c (struct ix86_frame): Remove padding and
11975 to_allocate members.
11976 (ix86_compute_frame_layout): Don't store them.
11977 (ix86_can_use_return_insn_p): Use a more direct and more obviously
11978 correct condition for the position of the stack pointer.
11979 (ix86_expand_prologue): Compute remaining stack allocation based
11980 on the ultimate stack pointer offset.
11981 (ix86_expand_epilogue): Use more obvious expressions testing for
11982 the stack pointer already pointing to the saved registers.
11984 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
11985 duplication deconstructing the frame pointer. Simplify
11986 deallocation of the local stack frame.
11988 * reg-notes.def (CFA_EXPRESSION): New.
11989 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
11990 (dwarf2out_frame_debug_cfa_expression): New.
11991 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
11993 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
11994 * config/i386/i386.c (ix86_expand_prologue): Set it.
11995 (ix86_expand_epilogue): Clear it.
11996 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
11997 context, add REG_CFA_EXPRESSION notes.
11999 * config/i386/i386.h (struct machine_frame_state): Rename from
12000 machine_cfa_state. Add members tracking SP and FP regardless
12001 of the current CFA register.
12002 (ix86_cfa_state): Remove.
12003 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
12004 and sse_reg_save_offset members.
12005 (ix86_compute_frame_layout): Set them.
12006 (gen_push): Increment sp_offset too.
12007 (choose_baseaddr_len, choose_baseaddr): New.
12008 (ix86_emit_save_reg_using_mov): New.
12009 (ix86_emit_save_regs_using_mov): Use it.
12010 (ix86_emit_save_sse_regs_using_mov): Likewise.
12011 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
12012 compare vs the saved red_zone_offset.
12013 (pro_epilogue_adjust_stack): Adjust sp_offset.
12014 (ix86_adjust_stack_and_probe): Likewise.
12015 (ix86_expand_prologue): Set up, use, and validate the new
12016 frame_state_info members. Use gen_frame_mem.
12017 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
12018 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
12019 new frame_state_info members.
12020 (ix86_emit_leave): Likewise.
12021 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
12022 out-of-range stack pointer offsets here.
12023 (ix86_emit_restore_sse_regs_using_mov): Likewise.
12024 (ix86_expand_epilogue): Use and validate the new frame_state_info
12025 members. Break up and simplify the logic selecting the
12026 restore_regs_via_mov code path. Ensure that there will be no
12027 out-of-range stack pointer offsets.
12029 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
12031 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
12032 argument name to reflect the expected tree; fix indentation.
12033 (ix86_asm_output_function_label): Output the entire 32-bit
12034 ms_hook here as bytes ...
12035 (ix86_expand_prologue): ... not here as insns. Attach the
12036 unwind info for the ms_hook to a blockage insn.
12037 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
12038 (ix86_ms_bitfield_layout_p): Fix indentation.
12039 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
12041 * config/i386/i386.c (ix86_using_red_zone): New.
12042 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
12043 ix86_expand_prologue, ix86_force_to_memory): Use it.
12045 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
12046 saving the int registers.
12048 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
12049 and DWARF2_UNWIND_INFO conditional compilation.
12051 2010-08-04 Richard Henderson <rth@redhat.com>
12054 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
12055 an is_naming_typedef_decl.
12057 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
12059 PR rtl-optimization/45162
12060 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
12061 * dce.c (word_dce_process_block): Likewise.
12063 2010-08-04 Steve Ellcey <sje@cup.hp.com>
12066 * config/ia64/constraints.md (Z): New.
12067 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
12068 (xfreg_or_signed_fp01_operand): New.
12069 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
12070 with fr_reg_or_signed_fp01_operand and constraint G with Z.
12075 (adddf3_trunc): Ditto.
12077 (*subdf3_trunc): Ditto.
12079 (*madddf4_trunc): Ditto.
12081 (*msubdf4_trunc): Ditto.
12082 (addxf3): Replace xfreg_or_fp01_operand with
12083 xfreg_or_signed_fp01_operand and constraint G with Z.
12084 (*addxf3_truncsf): Ditto.
12085 (*addxf3_truncdf): Ditto.
12087 (*subxf3_truncsf): Ditto.
12088 (*subxf3_truncdf): Ditto.
12090 (*maddxf4_truncsf): Ditto.
12091 (*maddxf4_truncdf): Ditto.
12093 (*msubxf4_truncsf): Ditto.
12094 (*msubxf4_truncdf): Ditto.
12096 2010-08-04 Richard Guenther <rguenther@suse.de>
12098 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
12099 if either alias-set is zero.
12101 2010-08-04 Richard Guenther <rguenther@suse.de>
12103 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
12104 * tree-ssa-ccp.c: ... here.
12105 * tree-ssa-copy.c: ... and here.
12106 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
12107 value_range_t): Move ...
12108 * tree-vrp.c: ... here.
12109 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
12110 (substitute_and_fold): Adjust prototype.
12111 * tree-ssa-propagate.c (replace_uses_in): Adjust.
12112 (replace_phi_args_in): Likewise.
12113 (substitute_and_fold): Take callback to query lattice instead
12114 of pointer to lattice. Replace SSA name defs with lattice
12116 * tree-ssa-ccp.c (ccp_finalize): Adjust.
12117 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
12118 (get_value): New function.
12119 (fini_copy_prop): Adjust.
12120 * tree-vrp.c (vrp_finalize): Adjust.
12122 2010-08-04 Richard Guenther <rguenther@suse.de>
12124 PR middle-end/45176
12125 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
12126 points-to set for original MEM_REF.
12128 2010-08-04 Richard Guenther <rguenther@suse.de>
12130 * tree-ssa-ccp.c (get_constant_value): New function.
12131 (get_rhs_assign_op_for_ccp): Remove.
12132 (valueize_op): New function.
12133 (ccp_fold): Use get_constant_value and valueize_op.
12134 (fold_const_aggregate_ref): Likewise.
12135 (ccp_fold_stmt): Likewise.
12136 (visit_assignment): Simplify.
12138 2010-08-04 Richard Guenther <rguenther@suse.de>
12140 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
12141 * double-int.h (double_int_ctz): Declare.
12142 * double-int.c (double_int_ctz): New function.
12144 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
12146 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
12148 picochip_expand_movmemhi : Expand movmem pattern.
12149 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
12151 * config/picochip/picochip.md (movmemhi) : New pattern.
12153 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
12155 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
12157 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
12159 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
12160 NEG as operand of a MULT by merging it with the other operand.
12161 * combine.c (make_compound_operation): Use trunc_int_for_mode when
12162 generating a MULT with constant. Canonicalize PLUS and MINUS involving
12164 * config/arm/constraints.md (M): Examine only 32 bits of a
12166 * config/arm/predicates.md (power_of_two_operand): Likewise.
12168 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12170 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
12173 2010-08-03 Jan Hubicka <jh@suse.cz>
12175 * ipa-split.c (struct split_point): Add split_part_set_retval.
12176 (find_retval): Forward declare.
12177 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
12178 (consider_split): Compute current->split_part_set_retval.
12179 (visit_bb): Do not look into return value.
12180 (split_function): Handle !split_part_set_retval
12182 2010-08-03 Martin Jambor <mjambor@suse.cz>
12184 * tree-sra.c (completely_scalarize_record): New parameter REF, create
12185 its own access->expr intead of using build_ref_for_offset.
12187 2010-08-03 Joseph Myers <joseph@codesourcery.com>
12189 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
12190 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
12191 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
12192 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
12193 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
12194 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
12195 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
12196 DEFAULT_SWITCH_TAKES_ARG.
12197 * config/rx/rx.opt (-patch=): Remove option.
12198 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
12199 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
12200 * doc/invoke.texi (RX Options): Remove -patch=.
12201 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
12202 (option_map): Remove --profile-blocks, --quiet and --silent.
12204 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
12206 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
12207 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
12208 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
12209 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
12210 Update calls to ix86_expand_compare and ix86_expand_branch.
12211 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
12212 ix86_expand_compare.
12213 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
12214 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
12216 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
12217 and ix86_compare_op1. Update calls to ix86_expand_compare.
12218 (ix86_expand_int_movcc): Ditto.
12219 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
12220 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
12221 (ix86_expand_setcc): Ditto.
12222 (ix86_expand_compare): Remove prototype.
12223 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
12224 ix86_compare_op0 and ix86_compare_op1. Update calls
12225 to ix86_expand_branch to directly pass operands[1] and operands[2].
12226 (cbranchxf4): Ditto.
12227 (cbranch<MODEF:mode>4): Ditto.
12228 (cbranchcc4): Ditto.
12229 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
12230 Update calls to ix86_expand_setcc to directly pass operands[2] and
12232 (cstorexf4): Ditto.
12233 (cstore<MODEF:mode>4): Ditto.
12234 (cstorecc4): Ditto.
12236 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
12239 * caller-save.c (save_call_clobbered_regs): Remove regs from
12240 hard_regs_saved when they are set.
12242 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
12245 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
12248 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
12250 * common.opt (ftree-loop-distribute-patterns): New.
12251 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
12252 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
12254 * tree-data-ref.c (stores_zero_from_loop): New.
12255 * tree-data-ref.h (stores_zero_from_loop): Declared.
12256 * tree-loop-distribution.c (tree_loop_distribution): Call
12257 stores_zero_from_loop.
12258 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
12260 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
12262 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
12265 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
12266 * config/arm/arm.c (thumb1_code): New variable.
12267 (arm_override_options): Set it.
12268 (thumb1_final_prescan_insn): Keep track of condition code status.
12269 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
12270 jumps that depend on them.
12271 * config/arm/arm.h (thumb1_code): Declare variable.
12272 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
12273 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
12275 (CC_STATUS_INIT): New macro.
12276 * config/arm/constraints.md (Pd): New constraint.
12277 * config/arm/predicates.md (noov_comparison_operator): New predicate.
12278 * config/arm/arm.md (is_thumb1): New define_attr.
12279 (conds): Set default to "clob" when generating Thumb1 code.
12280 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
12281 code are set. Use two-operand assembly syntax.
12282 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
12284 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
12285 codes are set. Use two-operand assembly syntax.
12286 (zero_extendhisi splitter): Remove constraints.
12287 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
12288 thumb1_movsf_insn): Set conds attribute as appropriate.
12289 (cbranchsi4_insn): Use condition code status from struct
12290 machine_function to determine whether the comparison can be eliminated.
12291 Discourage the alternative using high registers.
12292 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
12293 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
12294 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
12295 subsi3_cbranch): Delete.
12296 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
12297 one subtract and one cbranch insn.
12299 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
12300 thumb2_movdf_soft_insn): Delete patterns.
12301 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
12302 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
12303 (pool_range, neg_pool_range): Use them to define defaults.
12304 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
12305 and allow for TARGET_32BIT.
12308 * config/arm/arm.h (arm_regs_in_sequence): Declare.
12309 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
12310 load_multiple_sequence, store_multiple_sequence): Delete
12312 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
12314 * config/arm/ldmstm.md: New file.
12315 * config/arm/arm.c (arm_regs_in_sequence): New array.
12316 (load_multiple_sequence): Now static. New args SAVED_ORDER,
12317 CHECK_REGS. All callers changed.
12318 If SAVED_ORDER is nonnull, copy the computed order into it.
12319 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
12320 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
12321 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
12322 If SAVED_ORDER is nonnull, copy the computed order into it.
12323 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
12324 like REGS. Handle Thumb mode.
12325 (arm_gen_load_multiple_1): New function, broken out of
12326 arm_gen_load_multiple.
12327 (arm_gen_store_multiple_1): New function, broken out of
12328 arm_gen_store_multiple.
12329 (arm_gen_multiple_op): New function, with code from
12330 arm_gen_load_multiple and arm_gen_store_multiple moved here.
12331 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
12332 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
12334 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
12335 * config/arm/predicates.md (commutative_binary_operator): New.
12336 (load_multiple_operation, store_multiple_operation): Handle more
12337 variants of these patterns with different starting offsets. Handle
12339 * config/arm/arm.md: Include "ldmstm.md".
12340 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
12341 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
12342 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
12343 peepholes): Delete.
12344 * config/arm/ldmstm.md: New file.
12345 * config/arm/arm-ldmstm.ml: New file.
12347 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
12348 if statement which adds extra costs to frame-related expressions.
12350 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12352 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
12354 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
12357 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
12359 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
12360 split V4SI operands.
12362 2010-08-01 Anatoly Sokolov <aesok@post.ru>
12364 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
12365 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
12366 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
12367 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
12369 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
12371 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
12374 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
12376 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
12377 used in the call to optab_for_tree_code. Fix the second
12378 is_widening_mult_p call. Check that both unwidened operands
12379 have the same sign.
12381 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
12383 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
12385 2010-07-31 Anatoly Sokolov <aesok@post.ru>
12387 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
12389 2010-07-30 DJ Delorie <dj@redhat.com>
12391 * config/rx/predicates.md (rx_constshift_operand): New.
12392 * config/rx/rx.md (zs_cond): New.
12393 (cbranchsi4): Remove mode.
12394 (*cbranchsi4_<code>): Likewise.
12395 (*tstbranchsi4_<code>): New.
12396 (*tstbranchsi4r_<code>): New.
12397 (*tstbranchsi4m_eq): New.
12398 (*tstbranchsi4m_ne): New.
12399 (cbranchsf4): Remove mode.
12400 (*cbranchsf4_<code>): Likewise.
12402 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
12404 * rtlanal.c (simplify_subreg_regno): Don't treat
12405 HARD_FRAME_POINTER_REGNUM specially.
12407 2010-07-30 Joseph Myers <joseph@codesourcery.com>
12409 * common.opt (-G): Don't define option here.
12410 * config/g.opt: New.
12411 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
12412 rs6000/powerpc and score targets.
12413 * opts.c (common_handle_option): Don't handle -G here.
12414 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
12415 * config/frv/frv.c (frv_handle_option): Handle -G.
12416 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
12417 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
12418 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
12419 * config/mips/mips.c (mips_handle_option): Handle -G.
12420 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
12421 * config/score/score.c (score_handle_option): Handle -G.
12423 2010-07-30 Anatoly Sokolov <aesok@post.ru>
12425 * config/mmix/mmix.c: Include basic-block.h.
12427 2010-07-30 Jakub Jelinek <jakub@redhat.com>
12430 PR rtl-optimization/45137
12431 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
12433 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
12435 * combine.c (next_nonnote_nondebug_insn): Removed.
12436 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
12437 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
12438 * sched-deps.c (sched_analyze_insn): Likewise.
12439 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
12440 * rtlanal.c (canonicalize_condition): Likewise.
12441 * postreload.c (reload_combine_recognize_pattern): Likewise.
12442 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
12444 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
12446 * config/i386/i386.md (int_cond): Remove code iterator.
12448 (cbranch<mode>4): Use ordered_comparison_operator predicate
12450 (cstore<mode>4): Ditto for operator1.
12451 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
12452 (add<mode>cc): ditto.
12454 2010-07-30 Richard Guenther <rguenther@suse.de>
12456 PR middle-end/45141
12457 * expr.c (expand_expr_real_1): Check for not handled base address.
12459 2010-07-30 Richard Guenther <rguenther@suse.de>
12461 * ipa-prop.c (ipa_modify_formal_parameters): Use
12462 build_distinct_type_copy.
12464 2010-07-30 Anthony Green <green@moxielogic.com>
12466 * config/moxie/rtems.h: New file.
12467 * config.gcc: Add moxie-rtems support.
12469 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
12471 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
12472 df flags as in run_fast_df_dce.
12474 2010-07-29 Jakub Jelinek <jakub@redhat.com>
12477 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
12479 * rtl.def (NOTE): Swap operands 4 and 5.
12480 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
12481 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
12482 Adjust accordingly.
12483 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
12485 2010-07-29 Jakub Jelinek <jakub@redhat.com>
12488 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
12489 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
12490 (gen_subprogram_die): Likewise. Remove it when removing declaration's
12492 (gen_decl_die): Change return type to dw_die_ref, return what
12493 gen_formal_parameter_die returned.
12495 2010-07-29 Martin Jambor <mjambor@suse.cz>
12497 * dbgcnt.def (eipa_sra): New counter.
12498 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
12500 2010-07-29 Xinliang David Li <davidxl@google.com>
12503 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
12504 in revision 162652.
12506 2010-07-29 Richard Guenther <rguenther@suse.de>
12508 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
12509 (TV_TREE_STORE_CCP): Likewise.
12510 (TV_TREE_REDPHI): Likewise.
12512 2010-07-29 Richard Guenther <rguenther@suse.de>
12514 * double-int.h (double_int_and_not): New function.
12515 * combine.c (try_combine): Use it.
12516 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
12518 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
12520 PR rtl-optimization/42575
12521 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
12522 Argument AU removed. All callers changed. Ignore artificial refs.
12523 Use return value of df_word_lr_simulate_defs to decide whether an insn
12525 (fast_dce): Rename arg to WORD_LEVEL.
12526 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
12528 (pass_fast_rtl_byte_dce): Delete.
12529 * dce.h (run_word_dce): Declare.
12530 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
12531 All callers changed. Simplify code to only deal with two-word regs.
12532 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
12533 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
12534 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
12535 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
12536 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
12537 (df_word_lr_mark_ref): Declare.
12538 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
12539 df_word_lr_simulate_uses): Declare or rename from byte variants.
12540 (df_byte_lr_simulate_artificial_refs_at_top,
12541 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
12542 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
12544 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
12545 (enum df_mm): Delete.
12546 * df-byte-scan.c: Delete file.
12547 * df-problems.c (df_word_lr_problem_data): Renamed from
12548 df_byte_lr_problem_data, all members deleted except for
12549 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
12550 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
12551 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
12552 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
12553 df_byte_lr_confluence_0): Delete functions.
12554 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
12556 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
12557 Don't initialize members that were deleted, don't try to discover data
12558 about registers. Ignore hard regs.
12559 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
12560 (df_word_lr_mark_ref): New function.
12561 (df_word_lr_bb_local_compute): Renamed from
12562 df_byte_bb_lr_local_compute; all callers changed. Use
12563 df_word_lr_mark_ref. Assert that artificial refs don't include
12564 pseudos. Ignore hard registers.
12565 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
12566 Assert that exit block uses don't contain pseudos.
12567 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
12568 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
12569 callers changed. Ignore hard regs.
12570 (df_word_lr_transfer_function): Renamed from
12571 df_byte_lr_transfer_function; all callers changed.
12572 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
12573 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
12575 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
12577 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
12578 confluence operator 0 set to NULL.
12579 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
12581 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
12582 Return bool, true if bitmap changed or insn otherwise necessary.
12583 All callers changed. Simplify using df_word_lr_mark_ref.
12584 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
12585 all callers changed. Simplify using df_word_lr_mark_ref.
12586 * lower-subreg.c: Include "dce.h"
12587 (decompose_multiword_subregs): Call run_word_dce if df available.
12588 * Makefile.in (lower-subreg.o): Adjust dependencies.
12589 (df-byte-scan.o): Delete.
12590 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
12592 2010-07-29 Richard Guenther <rguenther@suse.de>
12594 * tree.c (build_vector): Assert that the vector constant
12595 has enough elements.
12596 (build_vector_from_ctor): Pad with trailing zeros.
12598 2010-07-29 Richard Guenther <rguenther@suse.de>
12600 PR tree-optimization/45120
12601 * tree-ssa-structalias.c (get_constraint_for_component_ref):
12602 Handle offset in DEREFs properly.
12603 (get_constraint_for_1): Handle MEM_REF offset properly.
12605 2010-07-29 Richard Guenther <rguenther@suse.de>
12607 PR middle-end/45034
12608 * convert.c (convert_to_integer): Always use an unsigned
12609 type for narrowed negate and bitwise not.
12611 2010-07-29 Ira Rosen <irar@il.ibm.com>
12613 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
12614 to outer loop when creating reduction epilogue for double reduction,
12615 and switch back to the inner loop when updating the phi nodes.
12616 Update uses of outer loop exit phi nodes in double reduction (instead
12617 of uses of reduction).
12619 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
12621 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
12622 popcount on power7 and parity on power6 systems.
12623 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
12624 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
12627 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
12628 (UNSPEC_PARITY): Ditto.
12629 (SFDF): New iterator for SF/DF.
12630 (rreg2): New mode attribute for floating register constraint.
12631 (TARGET_FLOAT): New mode attribute for whether single/double float
12633 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
12635 (parity<mode>2_cmpb): New insn for parity on power6 and newer
12637 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
12638 pattern. Add support for fcpsgn instruction added in power6.
12639 (copysignsf3): Delete.
12640 (copysigndf3): Delete.
12641 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
12642 instead of if_then_else in RTL to avoid problems with -0.
12644 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
12645 of if_then_else to mirror scalar code.
12646 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
12649 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
12650 instead of if_then_else.
12652 2010-07-28 Xinliang David Li <davidxl@google.com>
12654 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
12655 (dump_cand): Dump var_before/after.
12656 (htab_inv_expr_eq): New function.
12657 (htab_inv_expr_hash): New function.
12658 (tree_ssa_iv_optimize_init): Support pseudo invariants.
12659 (add_candidate_1): consider base type precision.
12660 (set_use_iv_cost): New parameter.
12661 (adjust_setup_cost): Use profile information.
12662 (get_address_cost): Do not hard code width in computing address
12664 (compare_aff_trees): New function.
12665 (get_loop_invariant_expr_id): New function.
12666 (get_computation_cost_at): New parameter and use profile information.
12667 (get_computation_cost): New parameter.
12668 (determine_use_iv_cost_generic): Pass new parameter.
12669 (determine_use_iv_cost_address): Ditto.
12670 (determine_use_iv_cost_condition): Ditto.
12671 (autoinc_possible_for_pair): Ditto.
12672 (determine_use_iv_costs): More dumps.
12673 (iv_ca_get_num_inv_exprs): New function.
12674 (iv_ca_recount_cost): Consider loop invariants in register pressure
12676 (iv_ca_add_use): New parameter.
12677 (iv_ca_dump): Better dumping.
12678 (iv_ca_extend): New parameter.
12679 (try_add_cand_for): Attempt to get better partial solution.
12680 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
12681 (create_new-ivs): More dumps.
12682 (rewrite_use_compare): Ditto.
12683 (free_loop_data): More cleanup.
12684 (treee_ssa_iv_optimize_finalize): Ditto.
12686 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
12688 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
12689 * config/i386/i386.c (ix86_profile_before_prologue): New.
12690 (override_options): Add special handling for -mfentry.
12691 (ix86_function_regparm): Likewise.
12692 (ix86_function_sseregparm): Likewise.
12693 (ix86_frame_pointer_required): Likewise.
12694 (ix86_expand_prologue): Check for ms_hook_prologue.
12695 (x86_function_profiler): Adjust mcount output.
12696 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
12697 * config/i386/i386.opt (mfentry): New.
12698 * doc/invoke.texi (mfentry): Add documentation.
12699 * doc/tm.texi: Regenerated..
12700 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
12701 * final.c (final_start_function): Replace macro
12702 PROFILE_BEFORE_PROLOGUE by target hook.
12703 * function.c (thread_prologue_and_epilogue_insns): Likewise.
12704 * target.def (profile_before_prologue): New hook.
12705 * targhooks.c (default_profile_before_prologue): New.
12706 * targhooks.h (default_profile_before_prologue): New.
12708 2010-07-28 Jakub Jelinek <jakub@redhat.com>
12711 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
12714 * dwarf2out.c (dwarf2out_var_location): Always consider
12715 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
12717 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
12719 PR rtl-optimization/45107
12720 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
12722 2010-07-28 Richard Guenther <rguenther@suse.de>
12724 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
12725 (set_lattice_value): Do not query an old default value.
12726 (get_value_for_expr): New function. Properly canonicalize
12728 (ccp_visit_phi_node): Use it.
12730 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
12732 * config/arm/arm.c (arm_pcs_default): Remove static.
12733 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
12734 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
12735 (arm_pcs_default): Declare.
12737 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
12739 * config/rs6000/rs6000.c (rs6000_override_options):
12740 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
12741 ... to darwin_rs6000_override_options.
12742 (rs6000_return_in_memory): Update preceding comment for darwin
12743 64 bit ABI. Use TARGET_MACHO inline.
12744 (rs6000_darwin64_struct_check_p): New.
12745 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
12746 (function_arg): Likewise.
12747 (rs6000_arg_partial_bytes): Likewise.
12748 (rs6000_function_value): Likewise.
12750 2010-07-28 Andi Kleen <ak@linux.intel.com>
12752 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
12754 2010-07-28 Richard Guenther <rguenther@suse.de>
12756 PR middle-end/44903
12757 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
12758 targets try harder to not generate unaligned accesses.
12760 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
12762 PR rtl-optimization/45101
12763 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
12766 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
12768 PR tree-optimization/44885
12769 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
12770 with non-aliased component.
12772 2010-07-28 Joseph Myers <joseph@codesourcery.com>
12774 * config/darwin-driver.c (SWITCH_TAKES_ARG,
12775 WORD_SWITCH_TAKES_ARG): Remove.
12776 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
12777 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
12778 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
12779 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
12780 definitions from gcc.c.
12781 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
12783 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
12784 Move to defaults.h.
12785 * opts-common.c: Include tm.h.
12786 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
12787 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
12788 Handle more than one argument. Set canonical_option_num_elements.
12789 (decode_cmdline_options_to_array): Set
12790 canonical_option_num_elements and trailing elements of
12792 * opts.h (struct cl_decoded_option): Allow four elements in
12793 canonical_option. Add field canonical_option_num_elements.
12794 * Makefile.in (opts-common.o): Update dependencies.
12796 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
12798 PR middle-end/44790
12799 PR middle-end/44993
12800 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
12801 sure the base has address_mode before adding the offset.
12803 2010-07-27 Xinliang David Li <davidxl@google.com>
12805 * tree-flow.h (create_mem_ref): Add one new parameter.
12806 * tree-ssa-address.c (create_mem_ref): New parameter.
12807 (addr_to_parts): Ditto.
12808 (move_variant_to_index): New function.
12809 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
12811 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
12813 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
12815 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
12816 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
12817 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
12818 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
12819 CODE_LABELs and NOTEs.
12820 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
12821 * combine.c (try_combine): Likewise.
12822 * ira.c (setup_prohibited_mode_move_regs): Likewise.
12823 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
12825 2010-07-27 Joseph Myers <joseph@codesourcery.com>
12827 * coretypes.h (struct cl_option_handlers): Declare.
12828 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
12829 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
12830 * langhooks-def.h (lhd_handle_option): Declare.
12831 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
12832 * langhooks.c (lhd_handle_option): New.
12833 * langhooks.h (struct lang_hooks): Update prototype and return
12834 value type of handle_option hook.
12835 * optc-gen.awk: Generate target_flags_explicit definition for the
12837 * opts-common.c: Include diagnostic.h.
12838 (handle_option): Move from opts.c. Update prototype and return
12839 value type. Use handlers structure.
12840 (read_cmdline_option): Move from opts.c. Update prototype. Use
12841 handlers structure.
12842 (set_option): Move from opts.c.
12843 * opts.c (common_handle_option): Update prototype and return value
12844 type. Update calls to handle_option and enable_warning_as_error.
12845 (unknown_option_callback, post_handling_callback,
12846 lang_handle_option, target_handle_option): New.
12847 (handle_option, read_cmdline_option): Move to opts-common.c.
12848 (read_cmdline_options): Update prototype. Update call to
12849 read_cmdline_option.
12850 (decode_options): Initialize and use handlers structure.
12851 (set_option): Move to opts-common.c.
12852 (enable_warning_as_error): Update prototype. Update call to
12854 * opts.h (struct cl_option_handler_func, struct
12855 cl_option_handlers): New.
12856 (handle_option, enable_warning_as_error): Update prototypes.
12857 (read_cmdline_option): Declare.
12858 * Makefile.in (opts-common.o): Update dependencies.
12860 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12862 * config/arm/arm.c (params.h): Include.
12863 (arm_override_options): Tune gcse-unrestricted-cost.
12864 * config/arm/t-arm (arm.o): Define dependencies.
12866 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12869 PR middle-end/42574
12870 * basic-block.h (get_dominated_to_depth): Declare.
12871 * dominance.c (get_dominated_to_depth): New function, use
12872 get_all_dominated_blocks as a base.
12873 (get_all_dominated_blocks): Use get_dominated_to_depth.
12875 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
12876 (hoist_exprs): Remove.
12877 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
12878 (compute_code_hoist_vbeinout): Add debug print outs.
12879 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
12881 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
12882 quadratic behavior.
12883 * params.h (MAX_HOIST_DEPTH): New macro.
12884 * doc/invoke.texi (max-hoist-depth): Document.
12886 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12888 PR rtl-optimization/40956
12889 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
12892 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12895 PR middle-end/42574
12896 * config/arm/arm.c (legitimize_pic_address): Use
12897 gen_calculate_pic_address pattern to emit calculation of PIC address.
12898 (will_be_in_index_register): New function.
12899 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
12900 (thumb1_legitimate_address_p): Use it provided !strict_p.
12901 * config/arm/arm.md (calculate_pic_address): New expand and split.
12903 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12906 PR middle-end/42574
12907 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
12908 * config/arm/arm.md (define_split "J", define_split "K"): Make
12909 IRA/reload friendly.
12911 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12913 * gcse.c (insert_insn_end_basic_block): Update signature, remove
12915 (pre_edge_insert, hoist_code): Update.
12917 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12920 PR middle-end/42574
12921 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
12923 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12925 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
12927 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12929 PR rtl-optimization/40956
12931 PR middle-end/42574
12932 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
12934 (hoist_code): Count occurences in current block too.
12936 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12938 * gcse.c (struct expr:max_distance): New field.
12939 (doing_code_hoisting_p): New static variable.
12940 (want_to_gcse_p): Change signature. Allow constrained hoisting of
12941 simple expressions, don't change behavior for PRE. Set max_distance.
12942 (insert_expr_in_table): Set new max_distance field.
12943 (hash_scan_set): Update.
12944 (hoist_expr_reaches_here_p): Stop search after max_distance
12946 (find_occr_in_bb): New static function. Use it in ...
12947 (hoist_code): Calculate sizes of basic block before any changes are
12948 done. Pass max_distance to hoist_expr_reaches_here_p.
12949 (one_code_hoisting_pass): Set doing_code_hoisting_p.
12951 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
12952 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
12953 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
12955 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
12958 2010-07-27 Jeff Law <law@redhat.com>
12959 Maxim Kuvyrkov <maxim@codesourcery.com>
12961 * gcse.c (compute_transpout, transpout): Remove, move logic
12962 to prune_expressions.
12963 (compute_pre_data): Move pruning of trapping expressions ...
12964 (prune_expressions): ... here. New static function.
12965 (compute_code_hoist_data): Use it.
12966 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
12968 2010-07-27 Xinliang David Li <davidxl@google.com>
12970 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
12971 (rewrite_use_address): Adjust iv update position when needed.
12973 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12975 * dbgcnt.def (hoist_insn): New debug counter.
12976 * gcse.c (hoist_code): Use it.
12978 2010-07-27 Xinliang David Li <davidxl@google.com>
12980 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
12981 (niter_for_single_dom_exit): Passes additional parameter.
12982 (iv_period): Fix comments.
12983 (may_eliminate_iv): Handles multiple exit loops properly.
12984 (free_tree_niter_desc): New function.
12985 (free_loop_data): Frees up loop iteration descriptors.
12987 2010-07-27 Jakub Jelinek <jakub@redhat.com>
12990 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
12991 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
12992 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
12993 (expand_one_var): Don't consider DECL_ALIGN for variables for
12994 which expand_one_stack_var_at has been already called.
12997 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
12998 constraints on IA-64.
13000 2010-07-27 Jie Zhang <jie@codesourcery.com>
13004 2010-07-23 Jie Zhang <jie@codesourcery.com>
13006 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
13007 false if ! tree_versionable_function_p.
13009 2010-07-27 Jakub Jelinek <jakub@redhat.com>
13011 * dwarf2out.c (add_data_member_location_attribute): Use
13012 add_AT_unsigned instead of add_AT_int if offset is non-negative.
13014 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
13016 * postreload.c (try_replace_in_use): New static function.
13017 (reload_combine_recognize_const_pattern): Use it here. Allow
13018 substituting into a final add insn, and substituting into a memory
13019 reference in an insn that sets the reg.
13021 2010-07-27 Joseph Myers <joseph@codesourcery.com>
13023 * common.opt (o): Add MissingArgError.
13024 * doc/options.texi (MissingArgError): Document.
13025 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
13026 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
13027 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
13028 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
13029 * langhooks.h (struct lang_hooks): Remove missing_argument.
13030 * optc-gen.awk: Handle MissingArgError and output new structure
13031 field initializers.
13032 * opts.c (read_cmdline_option): Use missing_argument_error field
13033 instead of missing_argument langhook.
13034 * opts.h (struct cl_option): Add missing_argument_error field.
13035 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
13037 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
13040 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
13041 Darwin64 ABI, for zero-sized objects.
13043 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
13048 Merge from Apple local 4.2.1.
13049 2005-05-11 Stan Shebs <shebs@apple.com>
13050 Fix 64-bit varargs for Darwin (Radar 4028089).
13051 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
13052 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
13053 Add argument, add case for 8-byte register half-filled with a float.
13054 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
13055 single-precision floats specially.
13057 2010-07-27 Ira Rosen <irar@il.ibm.com>
13059 PR tree-optimization/44152
13060 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
13061 complex numbers for further check.
13062 (vect_supported_load_permutation_p): Check nodes with
13065 2010-07-27 Joseph Myers <joseph@codesourcery.com>
13067 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
13068 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
13069 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
13070 (LANG_HOOKS_INITIALIZER): Add new hooks.
13071 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
13072 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
13073 and complain_wrong_lang_p. Update init_options prototype.
13074 * c-objc-common.c (c_initialize_diagnostics): First call
13075 c_common_initialize_diagnostics.
13076 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
13077 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
13078 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
13079 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
13080 (hook_uint_void_0): New.
13081 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
13082 (hook_uint_void_0): New.
13083 * opts-common.c (decode_cmdline_option,
13084 decode_cmdline_options_to_array): Also fill in canonical_option field.
13085 * opts.c (complain_wrong_lang): Use langhook to determine whether
13086 to complain instead of special-casing LTO.
13087 (decode_options): Separate lang_mask determination with
13088 option_lang_mask hook from call of init_options hook.
13089 * opts.h (struct cl_decoded_option): Add canonical_option.
13091 2010-07-27 Jakub Jelinek <jakub@redhat.com>
13093 PR tree-optimization/45083
13094 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
13096 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
13098 * postreload.c (reload_combine_recognize_const_pattern): Move test
13099 for limiting the insn movement to the right scope.
13101 PR rtl-optimization/45051
13102 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
13103 than reg_mentioned_p.
13105 2010-07-26 Richard Henderson <rth@redhat.com>
13108 * tree-emutls.c: New file.
13109 * Makefile.in (OBJS-common): Add it.
13110 * tree-pass.h (pass_ipa_lower_emutls): Declare.
13111 * passes.c (init_optimization_passes): Add it.
13113 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
13114 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
13115 * expr.c (emutls_var_address): Delete.
13116 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
13117 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
13118 (emutls_finish): Delete.
13119 * toplev.c (compile_file): Don't call it.
13120 * tree.h (emutls_decl): Delete.
13121 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
13122 (emutls_finish, emutls_finalize_control_var): Delete.
13123 (emutls_object_type): Move to tree-emutls.c.
13124 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
13125 default_emutls_var_fields, get_emutls_object_type,
13126 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
13127 default_emutls_var_init): Likewise.
13128 (get_variable_section): Don't special case emutls.
13129 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
13130 default_elf_select_section, default_unique_section,
13131 default_encode_section_info): Likewise.
13132 * varpool.c (decide_is_variable_needed): Likewise.
13133 * gimple-iterator.c (update_call_edge_frequencies): New
13134 (gsi_insert_on_edge_immediate): Use it.
13135 (gsi_insert_seq_on_edge_immediate): Likewise.
13136 (gsi_commit_one_edge_insert): Likewise.
13138 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
13139 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
13140 (x86_64_elf_unique_section): Likewise.
13142 2010-07-26 Jan Hubicka <jh@suse.cz>
13144 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
13147 2010-07-26 Anatoly Sokolov <aesok@post.ru>
13149 * target.def (output_source_filename): New hook.
13150 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
13151 * doc/tm.texi: Regenerate.
13152 * toplev.c (output_file_directive) Remove function.
13153 * toplev.h (output_file_directive) Remove.
13154 * output.h (default_asm_output_source_filename,
13155 output_file_directive): Declare.
13156 * varasm.h (default_asm_output_source_filename,
13157 output_file_directive): New functions.
13159 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
13160 * config/mips/mips-protos.h (mips_output_filename): Remove.
13161 * config/mips/mips.c (mips_output_filename): Make Static.
13162 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
13164 2010-07-26 Richard Guenther <rguenther@suse.de>
13166 PR tree-optimization/43784
13167 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
13168 if the destination is used by the call.
13170 2010-07-26 Richard Guenther <rguenther@suse.de>
13172 PR middle-end/45073
13173 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
13174 SSA updating on being in SSA form.
13176 2010-07-26 Richard Guenther <rguenther@suse.de>
13178 PR middle-end/45056
13179 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
13181 2010-07-26 Richard Guenther <rguenther@suse.de>
13183 PR tree-optimization/45071
13184 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
13187 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
13189 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
13190 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
13191 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
13192 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
13193 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
13194 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
13195 save_r31, return_r31, save_interrupt, return_interrupt,
13196 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
13197 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
13198 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
13199 new ABI requirements.
13200 (save_r6_r9, L_callt_save_r6_r9): Remove.
13201 * config/v850/predicates.md (even_reg_operand, disp23_operand,
13202 const_float_1_operand const_float_0_operand): New Predicates.
13203 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
13204 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
13205 * config/v850/t-v850: Update multilibs for new target variants.
13206 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
13207 * config/v850/t-v850e: Likewise.
13208 * config/v850/v850.c (v850_issue_rate): New.
13209 (v850_strict_argument_naming): New.
13210 (function_arg): Modify to generate a different ABI.
13211 (print_operand): Update case 'z' to support float modes.
13212 (output_move_single): Modify to generate appropriate and better
13214 (v850_float_z_comparison_operator, v850_select_cc_mode,
13215 v850_float_nz_comparison_operator, v850_gen_float_compare,
13216 v850_gen_compare): New functions to support comparison of float values.
13217 (ep_memory_offset): Add support for V850E2 targets.
13218 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
13219 (INTERRUPT_REGPARM_NUM): Remove.
13220 (compute_register_save_size): Add extra case to save/restore long call.
13221 (use_prolog_function): New function to support prologue.
13222 (expand_prologue): Add support for V850E2 targets and modified
13223 as per the current ABI requirements.
13224 (expand_epilogue): Likewise.
13225 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
13226 (construct_save_jarl): Likewise.
13227 (construct_dispose_instruction): Update as per the current ABI
13229 (construct_prepare_instruction): Likewise.
13230 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
13231 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
13232 (CPP_SPEC): Updated to support v850e2 targets.
13233 (STRICT_ALIGNMENT): Modified.
13234 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
13235 (FIXED_REGISTERS): Likewise.
13236 (CALL_USED_REGISTERS): Likewise.
13237 (CONDITIONAL_REGISTER_USAGE): Updated.
13238 (HARD_REGNO_MODE_OK): Updated.
13239 (reg_class): Updated to add even registers.
13240 (REG_CLASS_NAMES): Likewise.
13241 (REG_CLASS_CONTENTS): Likewise.
13242 (REGNO_REG_CLASS): Updated for CC registers.
13243 (REG_CLASS_FROM_LETTER): Added support for even registers.
13244 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
13245 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
13246 ARG_POINTER_REGNUM): Updated.
13247 (FUNCTION_ARG_ADVANCE): Define.
13248 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
13249 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
13250 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
13251 (GO_IF_LEGITIMATE_ADDRESS): Updated.
13252 (SELECT_CC_MODE): Define.
13253 (REGISTER_NAMES): Updated to add psw and fcc registers.
13254 (ADDITIONAL_REGISTER_NAMES): Updated.
13255 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
13256 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
13257 * config/v850/v850.md (define_constants): Define new constants.
13258 (type): Update store,bit1,macc,div,fpu and single attributes.
13259 (cpu): New attribute.
13260 (cc): Add set_z attribute.
13261 (unsign23byte_load, sign23byte_load, unsign23hword_load,
13262 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
13263 23word_store): New instructions for 23-bit displacement load and store.
13264 (movqi_internal, movhi_internal): Update the attributes.
13265 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
13266 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
13268 (v850_tst1): Modified using CC_REGNUM.
13270 (cmpsi): Modified as define_expand from define_insn.
13271 (cmpsi_insn, cmpsf, cmpdf): New instructions.
13272 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
13273 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
13274 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
13275 one_cmplsi2): Clobber the CC_REGNUM register.
13276 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
13277 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
13278 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
13279 (setf_insn, set_z_insn, set_nz_insn): New instructions for
13281 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
13282 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
13284 (sasf_1, sasf_2): Remove.
13285 (sasf): New instruction.
13286 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
13287 targets. CC_REGNUM register is clobbered and attributes are
13289 (branch_z_normal, branch_z_invert, branch_nz_normal,
13290 branch_nz_invert): New branch related instructions.
13291 (jump): Updated the attributes.
13292 (switch): Update to support new targets. CC_REGNUM register is
13293 clobbered and attributes are updated.
13294 (call_internal_short, call_internal_long, call_value_internal_short,
13295 call_value_internal_long): Updated the attributes.
13296 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
13297 clobbered and attributes are updated.
13298 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
13299 Update to support new targets. CC_REGNUM register is clobbered.
13300 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
13302 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
13304 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
13305 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
13306 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
13307 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
13308 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
13309 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
13310 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
13311 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
13312 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
13313 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
13314 point instructions defined for V850e2v3 target.
13315 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
13316 Add support for V850E2 targets and CC_REGNUM register is clobbered.
13317 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
13318 support for new targets.
13319 * config/v850/v850-modes.def: New file.
13320 * config/v850/v850.opt(mstrict-align): Remove.
13321 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
13322 mv850e2v3): New command line options for V850.
13323 * config.gcc: Update the newly added files.
13324 * doc/invoke.texi: Update the newly added command line options for
13327 2010-07-26 Richard Guenther <rguenther@suse.de>
13329 PR tree-optimization/45052
13330 * ipa-pure-const.c (check_stmt): Check volatileness.
13332 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
13335 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
13336 * config/sparc/sparc.c: Include reload.h.
13337 (legitimize_tls_address): Rename into...
13338 (sparc_legitimize_tls_address): ...this.
13339 (legitimize_pic_address): Rename into...
13340 (sparc_legitimize_pic_address): ...this.
13341 (sparc_expand_move): Adjust to above renaming.
13342 (sparc_tls_referenced_p): Likewise.
13343 (sparc_legitimize_tls_address): Likewise.
13344 (sparc_legitimize_pic_address): Likewise.
13345 (sparc_legitimize_address): Likewise.
13346 (sparc_output_mi_thunk): Likewise.
13347 (sparc_legitimize_reload_address): New global function. Recognize
13348 (lo_sum (high ...) ...) patterns generated by earlier passes.
13349 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
13351 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
13354 * config/sparc/predicates.md (memory_reg_operand): Delete.
13355 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
13356 (*sync_compare_and_swap): Encode the address form in the pattern.
13357 (*sync_compare_and_swapdi_v8plus): Likewise.
13359 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
13361 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
13362 Streamline paragraph on compatibility with the system compiler.
13364 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
13366 PR middle-end/45035
13367 * alias.c (true_dependence_1): Fix thinko in merge of old
13368 true_dependence and canon_true_dependence.
13370 2010-07-23 Jan Hubicka <jh@suse.cz>
13372 * lto-streamer-out.c (write_symbol): Fix visibilities of external
13375 2010-07-23 Le-Chun Wu <lcwu@google.com>
13377 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
13378 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
13379 and an unnecessary assignment.
13380 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
13381 self-assign warning.
13382 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
13383 unnecessary self-init.
13385 2010-07-23 Richard Guenther <rguenther@suse.de>
13388 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
13389 for -flto and -fwhopr.
13391 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
13394 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
13395 (stmp-int-hdrs): Prefix/postfix headers by include_next.
13396 * config.gcc (user_headers_inc_next_pre): New.
13397 (user_headers_inc_next_post): Likewise.
13398 (*-w64-mingw*): Use for float.h post-fixing, and for
13399 stddef.h/stdarg.h pre-fixing by include_next.
13400 * configure.ac (user_headers_inc_next_post): New.
13401 (user_headers_inc_next_pre): New.
13402 * configure: Regenerated.
13404 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13406 * configure.ac: Don't disable TLS on Solaris 8/9 by default
13407 Set tga_func for Solaris 2/x86 resp. SPARC.
13408 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
13409 (LIB_THREAD_LDFLAGS_SPEC): Define.
13410 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
13411 * configure: Regenerate.
13412 * config.in: Regenerate.
13413 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
13414 -pthread, -threads, LIB_TLS_SPEC with -pthread.
13415 * doc/install.texi (Specific, *-*-solaris2*): Document use of
13416 alternate thread libraries on Solaris 8.
13417 Document TLS patch requirements.
13418 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
13422 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
13425 2010-07-23 Jakub Jelinek <jakub@redhat.com>
13427 * tree.h (struct tree_base): Add nameless_flag bitfield.
13428 (TYPE_NAMELESS, DECL_NAMELESS): Define.
13429 * omp-low.c (create_omp_child_function, scan_omp_parallel,
13430 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
13431 DECL_ARTIFICIAL where needed.
13432 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
13433 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
13434 has DECL_NAMELESS set.
13436 2010-07-23 Martin Jambor <mjambor@suse.cz>
13438 PR tree-optimization/44915
13439 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
13440 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
13441 (analyze_function): Likewise.
13443 2010-07-23 Martin Jambor <mjambor@suse.cz>
13445 PR tree-optimization/44914
13446 * tree-sra.c (sra_modify_function_body): Return true if CFG was
13447 changed, add purging dead eh edges.
13448 (ipa_sra_modify_function_body): Return true if CFG was changed,
13449 simplify purging dead eh edges.
13450 (modify_function): Return true if CFG was changed.
13451 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
13453 (ipa_early_sra): Likewise.
13455 2010-07-23 Jie Zhang <jie@codesourcery.com>
13458 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
13460 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
13461 false if ! tree_versionable_function_p.
13463 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
13465 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
13466 * ipa-pure-const.c (special_builtlin_state): Remove
13467 BUILT_IN_ARGS_INFO case.
13468 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
13469 * builtins.c (expand_builtin): Likewise.
13470 (expand_builtin_args_info): Remove.
13471 * doc/tm.texi (__builtin_args_info): Remove.
13472 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
13473 * doc/tm.text.in: Likewise.
13475 2010-07-23 Richard Guenther <rguenther@suse.de>
13477 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
13478 (lto_symtab_merge_decls_2): Likewise.
13479 * tree-ssa.c (useless_type_conversion_p): Likewise.
13480 * lto-streamer-in.c (input_gimple_stmt): Likewise.
13481 * gimple.c (gtc_visited2, gtc_ob2): Remove.
13482 (struct type_pair_d): Make same_p an array indexed by mode.
13484 (lookup_type_pair): Update initialization.
13485 (struct sccs): Adjust same_p type.
13486 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
13488 (print_gimple_types_stats): Likewise.
13489 * gimple.h (enum gtc_mode): New.
13490 (gimple_types_compatible_p): Adjust prototype.
13492 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
13494 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
13495 again after processing insn.
13497 2010-07-23 Jie Zhang <jie@codesourcery.com>
13499 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
13500 proper words when !tree_versionable_function_p.
13502 2010-07-23 Richard Guenther <rguenther@suse.de>
13504 PR tree-optimization/45037
13505 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
13507 2010-07-23 Jie Zhang <jie@codesourcery.com>
13509 * doc/extend.texi: Remove IP2K from the description of naked attribute.
13512 2010-07-10 Andi Kleen <ak@linux.intel.com>
13515 * lto-opts.c (lto_write_options): Add NULL file_data argument to
13516 lto_get_section_name.
13517 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
13518 * lto-streamer-out.c (produce_asm): Likewise.
13519 (copy_function): Likewise.
13520 (produce_symtab): Likewise.
13521 (produce_asm_for_decls): Likewise.
13522 * lto-streamer.c (lto_get_section_name): Add file_data argument.
13523 Rewrite to add random postfix to LTO sections.
13524 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
13525 (lto_get_section_name): Add file_data argument to prototype.
13527 2010-07-10 Andi Kleen <ak@linux.intel.com>
13529 * lto-section-in.c (lto_section_name): Synchronize names
13530 with lto_get_section_name.
13532 2010-07-10 Andi Kleen <ak@linux.intel.com>
13534 * lto-opts.c (lto_read_file_options): Check for missing section.
13536 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
13538 * ira.c (check_allocation): Correctly handle the case where an allocno
13539 with two objects was allocated to a single reg.
13541 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
13543 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
13544 (is_widening_mult_p): Likewise.
13545 (convert_to_widen): Use them.
13546 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
13547 well as integer ones.
13549 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
13551 * alias.c (true_dependence_1): New function, merged version of
13552 true_dependence and canon_true_dependence.
13553 (true_dependence): Simplify.
13554 (canon_true_dependence): Simplify.
13556 2010-07-22 Richard Henderson <rth@redhat.com>
13559 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
13560 of V4SFmode for the SSE saves; increase stack alignment if needed.
13561 (ix86_gimplify_va_arg): Don't increase stack alignment here.
13563 2010-07-22 Jakub Jelinek <jakub@redhat.com>
13566 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
13567 call cprop_find_used_regs again via note_uses.
13569 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
13571 * alias.c (get_alias_set): Fix formatting issues.
13573 2010-07-22 Steve Ellcey <sje@cup.hp.com>
13575 PR middle-end/44878
13576 * stmt.c (expand_value_return): Call promote_function_mode with
13577 a for_return argument of 2 when returning by reference.
13579 2010-07-22 Dodji Seketeli <dodji@redhat.com>
13582 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
13583 unit DIE if we can find the scope DIE.
13585 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
13587 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
13588 changed. Initialize OBJECT_SUBWORD.
13589 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
13590 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
13591 all callers changed.
13592 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
13593 (finish_allocno): Likewise.
13594 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
13595 (remove_low_level_allocnos): Likewise.
13596 (update_bad_spill_attribute): Likewise.
13597 (setup_min_max_allocno_live_range_point): Likewise.
13598 (sort_conflict_id_map): Likewise.
13599 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
13600 (ior_hard_reg_conflicts): New function.
13601 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
13602 (compress_conflict_vecs): Iterate over objects, not allocnos.
13603 (ira_add_live_range_to_object): New function.
13604 (object_range_compare_func): Renamed from allocno_range_compare_func.
13605 All callers changed.
13606 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
13607 subobjects, widen the min/max range of the lowest-order object to
13608 potentially include all other such low-order objects.
13609 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
13610 (check_allocation): Likewise. Use more fine-grained tests for register
13612 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
13613 allocno subobjects.
13614 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
13615 choices about which bits to set in each set. Don't use
13616 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
13617 using the multiple sets we computed.
13618 (push_allocno_to_stack): Iterate over allocno subobjects.
13619 (all_conflicting_hard_regs_coalesced): New static function.
13620 (setup_allocno_available_regs_num): Use it.
13621 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
13623 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
13624 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
13625 by ALLOCNO_NUM_OBJECTS.
13626 (calculate_spill_cost): Likewise.
13627 (color_pass): Express if statement in a more normal way.
13628 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
13629 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
13630 (setup_slot_coalesced_allocno_live_ranges): Likewise.
13631 (allocno_reload_assign): Likewise.
13632 (ira_reassign_pseudos): Likewise.
13633 (fast_allocation): Likewise.
13634 * ira-conflicts.c (build_conflict_bit_table): Likewise.
13635 (print_allocno_conflicts): Likewise.
13636 (ira_build_conflicts): Likewise.
13637 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
13638 callers changed. Test subword 0 of each allocno for conflicts.
13639 (build_object_conflicts): Renamed from build_allocno_conflicts. All
13640 callers changed. Iterate over allocno subobjects.
13641 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
13642 * ira-int.h (struct ira_allocno): New member: num_objects.
13643 Rename object to objects and change it into an array.
13644 (ALLOCNO_OBJECT): Add new argument N.
13645 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
13646 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
13647 (ior_hard_reg_conflicts): Declare.
13648 (ira_add_live_range_to_object): Declare.
13649 (ira_allocno_object_iterator): New.
13650 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
13651 (FOR_EACH_ALLOCNO_OBJECT): New macro.
13652 * ira-lives.c (objects_live): Renamed from allocnos_live; all
13654 (allocnos_processed): New sparseset.
13655 (make_object_born): Renamed from make_allocno_born; take an
13656 ira_object_t argument. All callers changed.
13657 (make_object_dead): Renamed from make_allocno_dead; take an
13658 ira_object_t argument. All callers changed.
13659 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
13660 All callers changed.
13661 (mark_pseudo_regno_live): Iterate over allocno subobjects.
13662 (mark_pseudo_regno_dead): Likewise.
13663 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
13665 (mark_ref_live): Detect subword accesses and call
13666 mark_pseudo_regno_subword_live as appropriate.
13667 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
13668 (process_bb_nodes_live): Deal with object-related updates first; set
13669 and test bits in allocnos_processed to avoid computing allocno
13670 statistics more than once.
13671 (create_start_finish_chains): Iterate over objects, not allocnos.
13672 (print_object_live_ranges): New function.
13673 (print_allocno_live_ranges): Use it.
13674 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
13677 2010-07-22 Richard Guenther <rguenther@suse.de>
13680 * gimple.c (gtc_next_dfs_num): New global.
13681 (struct sccs): Make value a union, add integer same_p member.
13682 (gtc_visit): New function.
13683 (gimple_types_compatible_p_1): New function, split out from ...
13684 (gimple_types_compatible_p): ... here. Start a DFS walk here.
13685 (iterative_hash_gimple_type): Adjust for sccs change.
13687 2010-07-22 Martin Jambor <mjambor@suse.cz>
13689 PR tree-optimization/44891
13690 * tree-sra.c: Include gimple-pretty-print.h.
13691 (replace_uses_with_default_def_ssa_name): Renamed to
13692 get_repl_default_def_ssa_name, return the new SSA name instead of
13693 replacing the old one.
13694 (sra_modify_assign): Dump a message when removing a load, if the LHS
13695 is an SSA_NAME, do not do any propagation, just set the RHS to a
13696 default definition SSA NAME, type convert if necessary.
13697 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
13699 2010-07-22 Richard Guenther <rguenther@suse.de>
13701 PR tree-optimization/45017
13702 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
13703 TYPE_PRECISION of integral types in addition to size.
13705 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
13707 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
13708 when no C library is specified.
13710 2010-07-22 Martin Jambor <mjambor@suse.cz>
13712 * ipa-prop.h (struct ipa_node_params): Updated comment.
13713 (struct ipa_edge_args): Likewise.
13714 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
13716 2010-07-22 Martin Jambor <mjambor@suse.cz>
13718 * cgraphunit.c (verify_edge_count_and_frequency): New function.
13719 (verify_cgraph_node): Verify frequencies of indirect edges.
13720 * tree-inline.c (tree_function_versioning): Update frequencies of
13723 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13726 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
13727 Set *arm_rev to be predicable.
13729 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
13731 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
13732 (LINK_COMMAND_SPEC_A): New.
13734 (DSYMUTIL_SPEC): New.
13735 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
13736 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
13738 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
13740 * calls.c (load_register_parameters): Move check for zero
13741 sized items so that only the call to
13742 mem_overlaps_already_clobbered_arg_p () is protected.
13744 2010-07-22 Jan Hubicka <jh@suse.cz>
13746 * ipa-pure-const.c (varying_state): Break out from ...
13747 (get_function_state): ... here; always return varying_state
13748 when state would be NULL otherwise.
13749 (remove_node_data): Do not free varying state.
13751 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
13754 PR middle-end/45009
13755 * postreload.c: Include "target.h".
13756 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
13758 (fixup_debug_insns): Don't copy the rtx.
13759 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
13760 Don't copy when replacing. Call fixup_debug_insns in the case where
13761 we merged one add with another.
13762 (reload_combine_recognize_pattern): Fail if there aren't any uses.
13763 Try harder to determine whether we're picking a valid index register.
13764 Don't set store_ruid for an insn we're going to scan in the
13766 (reload_combine): Remove unused code.
13767 (reload_combine_note_use): When updating use information for
13768 an old insn, ignore a use that occurs after store_ruid.
13769 * Makefile.in (postreload.o): Update dependencies.
13771 * function.c (record_hard_reg_sets): Restrict the previous change
13772 to cases where the incoming nominal mode is the same as the
13773 incoming promoted mode and everything happens in MODE_INT.
13775 2010-07-21 Jakub Jelinek <jakub@redhat.com>
13778 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
13779 ASM_OPERANDS_OUTPUT_IDX.
13780 (adjust_insn): For inline asm with multiple sets ensure first
13781 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
13784 2010-07-21 Richard Henderson <rth@redhat.com>
13786 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
13787 comparison for avoiding xmm register saves. Emit the xmm register
13789 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
13790 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
13791 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
13792 Remove patterns and the associated splitters.
13794 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
13796 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
13797 and imagine parts of a complex, so that they can have the same
13798 base and fall into the same group.
13800 2010-07-21 Richard Guenther <rguenther@suse.de>
13803 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
13804 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
13805 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
13807 2010-07-21 Martin Jambor <mjambor@suse.cz>
13809 PR tree-optimization/44900
13810 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
13811 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
13813 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
13815 PR middle-end/44738
13816 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
13818 2010-07-21 Richard Guenther <rguenther@suse.de>
13820 PR middle-end/45013
13821 * tree-ssa.c (useless_type_conversion_p): Dispatch to
13822 gimple_types_compatible_p only when in lto.
13823 * gimple.c (gimple_types_compatible_p): Use canonical types
13824 to speed up comparison.
13826 2010-07-21 Richard Guenther <rguenther@suse.de>
13828 * tree-flow.h (referenced_var): Move define ...
13829 * tree-flow-inline.h (referenced_var): ... here as an inline
13830 function. Assert here ...
13831 * tree-dfa.c (referenced_var_lookup): ... instead of here.
13832 * tree-ssa.c (maybe_optimize_var): Check if the variable
13833 is in referenced vars.
13834 (execute_update_addresses_taken): Remove old broken check.
13835 * gimple-pretty-print.c (pp_points_to_solution): Use
13836 referenced_var_lookup.
13837 * tree-into-ssa.c (dump_decl_set): Likewise.
13839 2010-07-21 Jakub Jelinek <jakub@redhat.com>
13842 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
13843 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
13846 2010-07-20 Richard Henderson <rth@redhat.com>
13848 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
13850 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
13852 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
13853 computing the sum of the stack pointer and a large constant.
13854 * config/arm/constraints.md (M): Remove superfluous parentheses.
13855 (Pc): New constraint.
13857 2010-07-20 Jakub Jelinek <jakub@redhat.com>
13860 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
13861 operand's type if exp is tcc_unary class tree.
13863 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
13865 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
13866 Reverse sense of if_then_else condition.
13868 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
13870 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
13871 * config/rs6000/rs6000.c (rs6000_override_options): Set
13872 rs6000_block_move_inline_limit appropriately.
13873 (expand_block_move): Use rs6000_block_move_inline_limit.
13874 * doc/invoke.texi (mblock-move-inline-limit): Document.
13876 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
13878 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
13879 FROM and TO. All callers changed. Don't look for tracked uses,
13880 just scan the RTL for DEBUG_INSNs and substitute.
13881 (reload_combine_recognize_pattern): Call fixup_debug_insns.
13882 (reload_combine): Ignore DEBUG_INSNs.
13884 2010-07-20 Jakub Jelinek <jakub@redhat.com>
13886 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
13890 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
13891 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
13892 instead of the result's type.
13894 2010-07-20 Richard Guenther <rguenther@suse.de>
13896 PR tree-optimization/44977
13897 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
13900 2010-07-20 Richard Guenther <rguenther@suse.de>
13902 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
13903 (lto_symtab_merge_decls_2): Likewise.
13904 * gimple.h (gimple_types_compatible_p): Declare.
13905 * gimple.c (gimple_queue_type_fixup): Remove.
13906 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
13907 (gimple_compatible_complete_and_incomplete_type_p): New function.
13908 (gimple_types_compatible_p): Adjust.
13909 (gimple_register_type): Remove type fixup code.
13910 (print_gimple_types_stats): Adjust.
13911 (free_gimple_type_tables): Likewise.
13912 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
13913 * tree-ssa.c (useless_type_conversion_p): Likewise.
13915 2010-07-20 Richard Guenther <rguenther@suse.de>
13917 PR middle-end/44971
13918 PR middle-end/44988
13919 * tree-ssa.c (maybe_optimize_var): New function split out from ...
13920 (execute_update_addresses_taken): ... here.
13921 (non_rewritable_mem_ref_base): Likewise.
13922 (execute_update_addresses_taken): Do not iterate over all referenced
13923 vars but just all local decls and parms.
13924 Properly check call and asm arguments and rewrite call arguments.
13926 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
13928 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
13930 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
13932 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
13934 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
13936 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
13938 * gengtype.c (start_root_entry): New function, split out from
13939 write_root. Check whether V is null and raise an error if so.
13940 (write_field_root): Check for V being null. Don't raise an error here;
13941 set V to null instead.
13942 (write_root): Update comment above function. Use start_root_entry.
13944 2010-07-19 Xinliang David Li <davidxl@google.com>
13947 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
13949 (find_uninit_use): Add dump.
13950 (is_use_properly_guarded): Ditto.
13951 (warn_uninitialized_phi): Ditto.
13952 (execute_late_warn_uninitialized): Ditto.
13954 2010-07-19 Richard Guenther <rguenther@suse.de>
13956 PR middle-end/44941
13957 * expr.c (emit_block_move_hints): Move zero size check first.
13958 Move asserts to more useful places.
13959 * calls.c (load_register_parameters): Check for zero size.
13961 2010-07-19 Richard Henderson <rth@redhat.com>
13963 * tree-optimize.c (execute_all_early_local_passes): New. Change
13964 cgraph_state here ...
13965 (execute_early_local_optimizations): ... not here. Remove.
13966 (pass_early_local_passes, pass_all_early_optimizations): Update.
13968 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
13970 * postreload.c (reload_combine_closest_single_use): Ignore the
13971 number of uses for DEBUG_INSNs.
13972 (fixup_debug_insns): New static function.
13973 (reload_combine_recognize_const_pattern): Use it. Don't let the
13974 main loop be affected by DEBUG_INSNs.
13975 Really disallow moving adds past a jump insn.
13976 (reload_combine_recognize_pattern): Don't update use_ruid here.
13977 (reload_combine_note_use): Do it here.
13978 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
13980 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
13982 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
13984 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
13986 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
13988 * config/i386/darwin.h: Define darwin_emit_branch_islands.
13989 (TARGET_MACHO_BRANCH_ISLANDS): New.
13990 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
13991 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
13993 * config/i386/i386.c (output_pic_addr_const): Do not emit
13994 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
13995 (x86_output_mi_thunk): Adjust symbol creation.
13996 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
13997 Remove out of date comment.
13998 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
13999 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
14000 (DARWIN_GENERATE_ISLANDS): Ditto.
14001 (output_call): Do not emit branch islands unless
14002 darwin_emit_branch_islands is set.
14003 * config/darwin.c: Declare darwin_emit_branch_islands.
14004 (machopic_indirect_data_reference): Do not emit unless
14005 darwin_emit_branch_islands is set.
14006 (darwin_override_options): Set darwin_emit_branch_islands
14007 where it is needed.
14008 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
14010 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14012 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14013 sse_runtime, sse2_runtime.
14015 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
14017 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
14018 low half of a single-register SCmode return value before ORing
14019 it with the high half.
14020 * config/mips/mips16.S (MERGE_GPRf): Likewise.
14022 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14025 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
14028 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
14031 * postreload.c (reload_cse_move2add): Return bool, true if anything.
14032 changed. All callers changed.
14033 (move2add_use_add2_insn): Likewise.
14034 (move2add_use_add3_insn): Likewise.
14035 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
14037 (RELOAD_COMBINE_MAX_USES): Bump to 16.
14038 (last_jump_ruid): New static variable.
14039 (struct reg_use): New members CONTAINING_MEM and RUID.
14040 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
14041 (reload_combine_split_one_ruid, reload_combine_split_ruids,
14042 reload_combine_purge_insn_uses, reload_combine_closest_single_use
14043 reload_combine_purge_reg_uses_after_ruid,
14044 reload_combine_recognize_const_pattern): New static functions.
14045 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
14046 is true for our reg and that we have available index regs.
14047 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
14048 callers changed. Use them to initialize fields in struct reg_use.
14049 (reload_combine): Initialize last_jump_ruid. Be careful when to
14050 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
14051 Call reload_combine_recognize_const_pattern.
14052 (reload_combine_note_store): Update REAL_STORE_RUID field.
14054 2010-07-16 Jason Merrill <jason@redhat.com>
14056 * Makefile.in (opts-common.o): Depend on options.h.
14058 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
14060 * tree.c (build_common_builtin_nodes): Use build_function_type_list
14061 instead of build_function_type.
14062 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
14063 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
14065 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
14067 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
14069 (rs6000_emit_int_cmove): Use function pointers for insn generation.
14070 Don't force values into registers unnecessarily.
14071 (output_isel): Assert that we're not given conditions we can't handle.
14072 Delete corresponding code.
14073 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
14074 scc_comparison_operator constraint. Permit 0 for the consequent
14075 operand. Permit any GPR for the alternative operand.
14076 (isel_unsigned_<mode>): Likewise.
14078 2010-07-16 Jakub Jelinek <jakub@redhat.com>
14081 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
14082 argument to const_tree.
14083 * config/i386/i386.c (function_arg_advance): If padding needs to be
14084 inserted before argument, increment cum->words by number of padding
14086 (contains_aligned_value_p): Change argument to const_tree.
14087 (ix86_function_arg_boundary): Change second argument to const_tree.
14089 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
14092 * function.c (record_hard_reg_sets): New static function.
14093 (assign_parm_setup_reg): If an optab for extending exists and the
14094 generated code clobbbers no hard regs, emit the insn directly and
14095 create a REG_EQUIV note.
14097 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
14099 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
14101 * c-typeck.c (push_init_level): Likewise.
14102 (process_init_element): Likewise.
14104 2010-07-15 Anatoly Sokolov <aesok@post.ru>
14106 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
14107 (integer_three_node): Add.
14108 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
14109 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
14110 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
14111 of call build_int_cst.
14112 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
14113 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
14114 (find_interesting_uses_address): Ditto.
14115 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
14116 * tree-eh.c (lower_eh_constructs_2): Ditto.
14117 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
14118 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
14119 * expmed.c (expand_divmod): Ditto.
14120 * tree-mudflap.c (mx_register_decls): Ditto.
14121 * varasm.c (array_size_for_constructor): Ditto.
14122 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
14123 * c-parser.c (c_parser_postfix_expression): Ditto.
14125 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
14127 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
14128 New static variables.
14129 (reload_combine_recognize_pattern): New static function, broken out
14131 (reload_combine): Use it. Only initialize first_index_reg and
14132 last_index_reg once.
14134 2010-07-15 Richard Henderson <rth@redhat.com>
14136 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
14139 2010-07-15 Jan Hubicka <jh@suse.cz>
14141 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
14142 comdats for broken gold.
14143 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
14145 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
14147 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
14149 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
14151 * tree.h (DECL_CHAIN): Define.
14152 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
14153 * c-decl.c: Likewise.
14154 * c-parser.c: Likewise.
14155 * c-typeck.c: Likewise.
14156 * cfgexpand.c: Likewise.
14157 * cgraph.c: Likewise.
14158 * cgraphunit.c: Likewise.
14159 * combine.c: Likewise.
14160 * config/alpha/alpha.c: Likewise.
14161 * config/arm/arm.c: Likewise.
14162 * config/frv/frv.c: Likewise.
14163 * config/i386/i386.c: Likewise.
14164 * config/i386/winnt-cxx.c: Likewise.
14165 * config/ia64/ia64.c: Likewise.
14166 * config/iq2000/iq2000.c: Likewise.
14167 * config/mep/mep.c: Likewise.
14168 * config/mips/mips.c: Likewise.
14169 * config/pa/som.h: Likewise.
14170 * config/rs6000/rs6000.c: Likewise.
14171 * config/s390/s390.c: Likewise.
14172 * config/sh/sh.c: Likewise.
14173 * config/sh/symbian-cxx.c: Likewise.
14174 * config/sparc/sparc.c: Likewise.
14175 * config/spu/spu.c: Likewise.
14176 * config/stormy16/stormy16.c: Likewise.
14177 * config/vxworks.c: Likewise.
14178 * config/xtensa/xtensa.c: Likewise.
14179 * coverage.c: Likewise.
14180 * dbxout.c: Likewise.
14181 * dwarf2out.c: Likewise.
14182 * emit-rtl.c: Likewise.
14183 * expr.c: Likewise.
14184 * function.c: Likewise.
14185 * gimple-low.c: Likewise.
14186 * gimple-pretty-print.c: Likewise.
14187 * gimplify.c: Likewise.
14188 * integrate.c: Likewise.
14189 * ipa-inline.c: Likewise.
14190 * ipa-prop.c: Likewise.
14191 * ipa-split.c: Likewise.
14192 * ipa-struct-reorg.c: Likewise.
14193 * ipa-type-escape.c: Likewise.
14194 * langhooks.c: Likewise.
14195 * lto-cgraph.c: Likewise.
14196 * omp-low.c: Likewise.
14197 * stor-layout.c: Likewise.
14198 * tree-cfg.c: Likewise.
14199 * tree-complex.c: Likewise.
14200 * tree-dfa.c: Likewise.
14201 * tree-dump.c: Likewise.
14202 * tree-inline.c: Likewise.
14203 * tree-mudflap.c: Likewise.
14204 * tree-nested.c: Likewise.
14205 * tree-object-size.c: Likewise.
14206 * tree-pretty-print.c: Likewise.
14207 * tree-sra.c: Likewise.
14208 * tree-ssa-live.c: Likewise.
14209 * tree-ssa-loop-niter.c: Likewise.
14210 * tree-ssa-math-opts.c: Likewise.
14211 * tree-ssa-reassoc.c: Likewise.
14212 * tree-ssa-sccvn.c: Likewise.
14213 * tree-ssa-structalias.c: Likewise.
14214 * tree-tailcall.c: Likewise.
14215 * tree-vrp.c: Likewise.
14216 * tree.c: Likewise.
14217 * var-tracking.c: Likewise.
14218 * varasm.c: Likewise.
14220 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14223 * config/spu/spu.c (spu_expand_builtin_1): Allow references
14224 (as well as pointers) as argument to mask_for_load builtins.
14226 2010-07-15 Richard Guenther <rguenther@suse.de>
14228 PR tree-optimization/44946
14229 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
14230 with accessing only padding properly.
14232 2010-07-15 Jan Hubicka <jh@suse.cz>
14234 * ipa.c (function_and_variable_visibility): Variables marked as used
14235 should not be localized.
14237 2010-07-15 Jan Hubicka <jh@suse.cz>
14239 * cgraph.c: Include lto-streamer.h
14240 (change_decl_assembler_name): Work when assembler name hash is at place.
14241 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
14242 be sure to rename it to avoid name clash.
14243 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
14244 Localize hidden symbols only when locally defined.
14246 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
14248 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
14250 2010-07-15 Magnus Granberg <zorry@gentoo.org>
14251 Kevin F. Quinn <kevquinn@gentoo.org>
14253 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
14254 * common.opt: Add -Wtrampolines.
14255 * doc/invoke.texi: Add -Wtrampolines.
14257 2010-07-15 Jie Zhang <jie@codesourcery.com>
14259 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
14260 cortex_a8_issue_ls.
14262 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
14264 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
14265 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
14267 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14269 * config/spu/spu.c (reg_names): Remove prototype.
14270 (call_used_regs): Likewise.
14272 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
14274 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
14275 "unused" with attribute "used".
14276 (__JCR_END__): Likewise.
14277 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
14279 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
14281 2010-07-14 Richard Guenther <rguenther@suse.de>
14283 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
14284 (maybe_fixup_decls): Likewise.
14285 (input_gimple_stmt): Do not fixup anything.
14286 * lto-streamer-out.c (output_gimple_stmt): Make sure all
14287 non-automatic variable uses are wrapped inside a MEM_REF.
14289 2010-07-14 Richard Henderson <rth@redhat.com>
14291 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
14293 * varasm.c (assemble_variable): Remove early exit for functions;
14294 assert that we're given a variable.
14296 2010-07-14 Jie Zhang <jie@codesourcery.com>
14298 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
14299 cortex_a8_default when neon_type is not none.
14301 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
14303 * lower-subreg.c (subreg_context): New static bitmap.
14304 (decompose_multiword_subregs): Allocate and free it.
14305 (find_decomposable_subregs): Set a bit in it for a register that
14306 occurs in a subreg that changes mode but not size.
14307 (can_decompose_p): Test it instead of non_decomposable_context.
14309 2010-07-14 Richard Guenther <rguenther@suse.de>
14311 PR tree-optimization/44824
14312 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
14313 is_gimple_mem_ref_addr.
14314 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
14315 non-decl_address_invariant_p addresses.
14317 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
14319 * reload.c (find_reloads): Revert code to penalize small register
14320 classes that was brought in with the IRA merge.
14322 2010-07-14 Richard Guenther <rguenther@suse.de>
14324 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
14325 as base of ARRAY_REFs.
14327 2010-07-14 Richard Guenther <rguenther@suse.de>
14329 PR middle-end/44930
14330 * tree-pretty-print.c (do_niy): Do not print a newline.
14332 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
14334 * ira-int.h (struct ira_object): New.
14335 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
14336 (struct ira_allocno): Remove members min, max,
14337 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
14338 conflict_allocnos_num and conflict_vec_p. Add new member object.
14339 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
14340 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
14341 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
14342 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
14343 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
14344 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
14345 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
14346 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
14347 an ira_object_t rather than ira_allocno_t. All uses changed.
14348 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
14349 contains a vector of ira_object_t; all uses changed.
14350 (ira_objects_num): Declare variable.
14351 (ira_create_allocno_object): Declare function.
14352 (ira_conflict_vector_profitable_p): Adjust prototype.
14353 (ira_allocate_conflict_vec): Renamed from
14354 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
14355 (ira_allocate_object_conflicts): Renamed from
14356 ira_allocate_allocno_conflicts; first arg now ira_object_t.
14357 (struct ira_object_iterator): New.
14358 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
14359 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
14360 to conflict_vec_p. All uses changed.
14361 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
14362 Changed to take into account that conflicts are now tracked for
14364 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
14365 Args changed to accept ira_object_t. All uses changed.
14366 (allocnos_conflict_p): New static function.
14367 (collected_conflict_objects): Renamed from collected_allocno_objects;
14368 now a vector of ira_object_t. All uses changed.
14369 (build_conflict_bit_table): Changed to take into account that
14370 conflicts are now tracked for objects.
14371 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
14372 (print_allocno_conflicts, ira_build_conflicts): Likewise.
14373 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
14374 setup_allocno_left_conflicts_size, allocno_reload_assign,
14375 fast_allocation): Likewise.
14376 * ira-lives.c (make_hard_regno_born, make_allocno_born)
14377 process_single_reg_class_operands, process_bb_node_lives): Likewise.
14378 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
14380 * ira-build.c (ira_objects_num): New variable.
14381 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
14382 contains a vector of ira_object_t; all uses changed.
14383 (ira_object_id_map_vec): Corresponding change.
14384 (object_pool): New static variable.
14385 (initiate_allocnos): Initialize it.
14386 (finish_allocnos): Free it.
14387 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
14389 (ira_create_allocno): Don't set members that were removed.
14390 (ira_set_allocno_cover_class): Don't change conflict hard regs.
14391 (merge_hard_reg_conflicts): Changed to take into account that
14392 conflicts are now tracked for objects.
14393 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
14394 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
14395 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
14396 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
14397 setup_min_max_conflict_allocno_ids, ): Likewise.
14398 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
14399 to ira_object_t; all callers changed.
14400 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
14401 to ira_object_t, all callers changed.
14402 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
14403 to ira_object_t, all callers changed.
14404 (conflict_check, curr_conflict_check_tick): Renamed from
14405 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
14407 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
14408 arg changed to ira_object_t, all callers changed.
14409 (create_cap_allocno): Call ira_create_allocno_object.
14410 (finish_allocno): Free the corresponding object.
14411 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
14412 callers changed. Adjusted for dealing with objects.
14413 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
14414 dealing with objects.
14415 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
14417 * ira-int.h (struct live_range): Rename allocno member to object
14418 and change type to ira_object_t.
14419 (struct ira_object): New member live_ranges.
14420 (struct ira_allocno): Remove member live_ranges.
14421 (ALLOCNO_LIVE_RANGES): Remove.
14422 (OBJECT_LIVE_RANGES): New macro.
14423 (ira_create_live_range, ira_copy_live_range_list,
14424 ira_merge_live_range_list, ira_live_ranges_intersect_p,
14425 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
14426 * ira-build.c (ira_create_object): Initialize live ranges here.
14427 (ira_create_allocno): Not here.
14428 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
14429 changed to ira_object_t, all callers changed.
14430 (copy_live_range): Rename from copy_allocno_live_range, all callers
14432 (ira_copy_live_range_list): Rename from
14433 ira_copy_allocno_live_range_list, all callers changed.
14434 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
14435 all callers changed.
14436 (ira_live_ranges_intersect_p): Rename from
14437 ira_allocno_live_ranges_intersect_p, all callers changed.
14438 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
14440 (ira_finish_live_range_list): Rename from
14441 ira_finish_allocno_live_range_list, all callers changed.
14442 (change_object_in_range_list): Rename from change_allocno_in_range_list,
14443 last arg changed to ira_object_t, all callers changed.
14444 (finish_allocno): Changed to expect live ranges in the allocno's object.
14445 (move_allocno_live_ranges, copy_allocno_live_ranges,
14446 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
14447 ira_flattening, ira_build): Likewise.
14448 * ira-color.c (allocnos_have_intersected_live_ranges_p,
14449 slot_coalesced_allocno_live_ranges_intersect,
14450 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
14451 * ira-conflicts.c (build_conflict_bit_table): Likewise.
14452 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
14453 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
14454 make_allocno_dead, create_start_finish_chains,
14455 remove_some_program_points_and_update_live_ranges,
14456 ira_debug_live_range_list): Likewise.
14458 * ira-int.h (ira_object_conflict_iterator): Rename from
14459 ira_allocno_conflict_iterator.
14460 (ira_object_conflict_iter_init): Rename from
14461 ira_allocno_conflict_iter_init, second arg changed to
14462 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
14463 FOR_EACH_ALLOCNO_CONFLICT.
14464 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
14465 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
14466 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
14467 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14469 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
14472 * tree-dump.c (dump_options): Add enumerate_locals entry.
14473 Add TDF_NOID exclusion to all entry.
14474 * tree-dump.h (dump_enumerated_decls): Declare.
14475 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
14476 Don't display type uid.
14477 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
14478 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
14479 * tree-ssa-live.c: Include gimple.h.
14480 (numbered_tree_d): New struct.
14481 (numbered_tree): New typedef.
14482 (DEF_VEC_O (numbered_tree): New.
14483 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
14484 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
14485 (dump_enumerated_decls): Likewise.
14486 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
14487 debug info and flag_dump_final_insns, call dump_enumerated_decls.
14488 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
14489 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
14491 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
14493 * expmed.h (MAX_BITS_PER_WORD): Move to...
14494 * defaults.h (MAX_BITS_PER_WORD): ...here.
14496 2010-07-13 DJ Delorie <dj@redhat.com>
14498 * config/h8300/h8300.c (h8300_init_once): Default to
14499 -fstrict_volatile_bitfields.
14501 * config/sh/sh.c (sh_override_options): Default to
14502 -fstrict_volatile_bitfields.
14504 * config/rx/rx.c (rx_option_override): New.
14506 * config/m32c/m32c.c (m32c_override_options): Default to
14507 -fstrict_volatile_bitfields.
14509 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
14511 * tree.h (build_function_call_expr): Delete.
14512 (build_call_expr_loc_array): New function.
14513 (build_call_expr_loc_vec): New function.
14514 * tree-flow.h (struct omp_region): Change type of ws_args field
14516 * builtins.c (build_function_call_expr): Delete.
14517 (build_call_expr_loc_array): New function.
14518 (build_call_expr_loc): Call it. Use XALLOCAVEC.
14519 (build_call_expr): Likewise.
14520 (build_call_expr_loc_vec): New function.
14521 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
14522 build_function_call_expr.
14523 * expr.c (emutls_var_address): Likewise.
14524 * varasm.c (emutls_common_1): Likewise.
14525 * omp-low.c (expand_omp_atomic_mutex): Likewise.
14526 (expand_omp_taskreg): Adjust for new type of region->ws_args.
14527 (get_ws_args_for): Return a VEC instead of a tree.
14528 (expand_parallel_call): Call build_call_expr_loc_vec instead of
14529 build_function_call_expr.
14530 * stor-layout.c (self_referential_size): Likewise.
14532 2010-07-13 Jakub Jelinek <jakub@redhat.com>
14535 * recog.c (constrain_operands): Allow side-effects in memory
14536 operands if either < or > constraint is used, rather than if
14537 both < and > is used.
14539 2010-07-13 Richard Guenther <rguenther@suse.de>
14541 PR middle-end/44911
14542 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
14543 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
14546 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
14549 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
14550 to variable emited.
14551 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
14552 * config/sh/sh.md (symGOT_load): Likewise.
14553 (symDTPOFF2reg): Likewise.
14554 (symTPOFF2reg): Likewise.
14556 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14558 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
14559 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
14561 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14563 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
14565 Find ucontext_t * on Solaris 11.
14566 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
14567 Handle new Solaris 11 __sighndlr patterns.
14569 2010-07-13 Jakub Jelinek <jakub@redhat.com>
14572 * vec.h (VEC_block_remove): Fix comment.
14573 * tree-ssa-live.c (remove_unused_locals): Don't use
14574 VEC_unordered_remove on local_decls, instead replace a single
14575 vector element in each iteration if at least one element had
14576 to be removed and VEC_truncate at the end.
14577 * omp-low.c (expand_omp_taskreg): Likewise.
14579 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
14581 * c-decl.c (finish_function): Fix typo in comment.
14583 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
14586 * postreload.c (move2add_use_add3_insn): Silence gcc warning
14589 2010-07-12 Jakub Jelinek <jakub@redhat.com>
14591 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
14592 (simplify_stmt_using_ranges): Use it.
14594 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14596 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
14597 member. Do not mark as GTY(()).
14598 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
14599 (spu_builtin_decls): New static variable.
14600 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
14601 (spu_init_builtins): Likewise.
14602 (spu_builtin_mul_widen_even): Likewise.
14603 (spu_builtin_mul_widen_odd): Likewise.
14604 (spu_builtin_mask_for_load): Likewise.
14605 (spu_builtin_vec_perm): Likewise.
14606 * config/spu/spu-c.c: Include "target.h".
14607 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
14608 of using spu_builtins[].fndecl.
14610 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14612 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
14613 imply -minterlink-mips16.
14615 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14617 * config/mips/mips.h (mips16_globals): Declare.
14618 (SWITCHABLE_TARGET): Define.
14619 * config/mips/mips.c: Include target-globals.h.
14620 (mips16_globals): New variable.
14621 (mips_set_mips16_mode): Use save_target_globals and
14622 restore_target_globals instead of target_reinit.
14624 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14626 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
14627 to say that the function can be called more than once.
14628 * target-globals.c (save_target_globals): Call init_reg_sets.
14630 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14632 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
14633 * bb-reorder.h: New file.
14634 * bb-reorder.c (default_target_bb_reorder): New variable.
14635 (this_target_bb_reorder): New conditional variable.
14636 (uncond_jump_length): Redefine as a macro.
14637 * target-globals.h (this_target_bb_reorder): Declare.
14638 (target_globals): Add a bb_reorder field.
14639 (restore_target_globals): Copy the bb_reorder field to
14640 this_target_bb-reorder.
14641 * target-globals.c: Include bb-reorder.h.
14642 (default_target_globals): Initialize the bb_reorder field.
14643 (save_target_globals): Likewise.
14645 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14647 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
14648 * gcse.h: New file.
14649 * gcse.c: Include gcse.h.
14650 (default_target_gcse): New variable.
14651 (this_target_gcse): New conditional variable.
14652 (can_copy): Redefine as a macro.
14653 (can_copy_init_p): New macro.
14654 (can_copy_p): Remove can_copy_init_p.
14655 * target-globals.h (this_target_gcse): Declare.
14656 (target_globals): Add a gcse field.
14657 (restore_target_globals): Copy the gcse field to this_target_gcse.
14658 * target-globals.c: Include gcse.h.
14659 (default_target_globals): Initialize the gcse field.
14660 (save_target_globals): Likewise.
14662 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14664 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
14665 and x_ira_prohibited_mode_move_regs_initialized_p.
14666 (ira_prohibited_mode_move_regs): Redefine as a macro.
14667 * ira.c (ira_prohibited_mode_move_regs): Delete.
14668 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
14670 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14672 * reload.h (target_reload): Add x_cached_reg_save_code and
14673 x_cached_reg_restore_code.
14674 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
14675 Redefine as macros.
14677 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14679 * Makefile.in (target-globals.o): Depend on builtins.h.
14680 * builtins.h: New file.
14681 * builtins.c: Include builtins.h.
14682 (default_target_builtins): New variable.
14683 (this_target_builtins): New conditional variable.
14684 (apply_args_mode, apply_result_mode): Redefine as macros.
14685 * target-globals.h (this_target_builtins): Declare.
14686 (target_globals): Add a builtins field.
14687 (restore_target_globals): Copy the builtins field to
14688 this_target_builtins.
14689 * target-globals.c: Include builtins.h.
14690 (default_target_globals): Initialize the builtins field.
14691 (save_target_globals): Likewise.
14693 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14695 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
14696 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
14698 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
14699 (alg_hash, alg_hash_used_p): New macros.
14700 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
14701 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
14702 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
14704 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14706 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
14707 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
14708 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
14709 (this_op_costs, costs_classes): Redefine as macros.
14710 (record_reg_classes): Don't take op_costs as a parameter.
14711 (record_operand_costs): Likewise. Update calls to record_reg_classes.
14712 (scan_one_insn): Update call to record_operand_costs.
14714 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14716 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
14717 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
14718 (target_ira_int): New structure.
14719 (default_target_ira_int): Declare.
14720 (this_target_ira_int): Declare as a variable or define as a macro.
14721 (ira_reg_mode_hard_regset, ira_register_move_cost)
14722 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
14723 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
14724 (prohibited_class_mode_regs, ira_important_classes_num)
14725 (ira_important_classes, ira_reg_class_intersect)
14726 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
14727 (ira_reg_class_union): Redefine as macros.
14728 * ira.h (target_ira): New structure.
14729 (default_target_ira): Declare.
14730 (this_target_ira): Declare as a variable or define as a macro.
14731 (ira_available_class_regs, ira_hard_regno_cover_class)
14732 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
14733 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
14734 (ira_class_hard_regs_num): Redefine as macros.
14735 * ira.c (default_target_ira, default_target_ira_int): New variables.
14736 (this_target_ira, this_target_ira_int): New conditional variables.
14737 (ira_reg_mode_hard_regset, ira_memory_move_cost)
14738 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
14739 (ira_class_subset_p): Delete.
14740 (no_unit_alloc_regs): Redefine as a macro.
14741 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
14742 (ira_class_hard_regs_num, ira_class_hard_reg_index)
14743 (ira_available_class_regs): Delete.
14744 (alloc_reg_class_subclasses): Redefine as a macro.
14745 (ira_reg_class_cover_size, ira_reg_class_cover)
14746 (ira_important_classes_num, ira_important_classes)
14747 (ira_important_class_nums, ira_class_translate): Delete.
14748 (cover_class_order): Document the variable's lifetime.
14749 (reorder_important_classes): Don't set ira_important_class_nums.
14750 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
14751 (ira_reg_class_super_classes, ira_reg_class_union)
14752 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
14754 (setup_reg_class_nregs): Don't set ira_max_regs.
14755 (prohibited_class_mode_regs): Delete.
14756 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
14757 (target_globals): Add ira and ira_int fields.
14758 (restore_target_globals): Copy the ira field to this_target_ira
14759 and the ira_int field to this_target_ira_int.
14760 * target-globals.c: Include ira-int.h.
14761 (default_target_globals): Initialize the ira and ira_int fields.
14762 (save_target_globals): Likewise.
14764 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14766 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
14767 * cfgloop.h (target_cfgloop): New structure.
14768 (default_target_cfgloop): Declare.
14769 (this_target_cfgloop): Declare as a variable or define as a macro.
14770 (target_avail_regs, target_clobbered_regs, target_res_regs)
14771 (target_reg_cost, target_spill_cost): Redefine as macros.
14772 * cfgloopanal.c (default_target_cfgloop): New variable.
14773 (this_target_cfgloop): New conditional variable.
14774 (target_avail_regs, target_clobbered_regs, target_res_regs)
14775 (target_reg_cost, target_spill_cost): Delete.
14776 * target-globals.h (this_target_cfgloop): Declare.
14777 (target_globals): Add a cfgloop field.
14778 (restore_target_globals): Copy the cfgloop field to
14779 this_target_cfgloop.
14780 * target-globals.c: Include cfgloop.h.
14781 (default_target_globals): Initialize the cfgloop field.
14782 (save_target_globals): Likewise.
14784 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14786 * regs.h (target_regs): Add x_direct_load, x_direct_store and
14787 x_float_extend_from_mem.
14788 (direct_load, direct_store, float_extend_from_mem): New macros.
14789 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
14791 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14793 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
14794 (target-globals.o): Depend on $(LIBFUNCS_H).
14795 * libfuncs.h: Include hashtab.h.
14796 (libfunc_entry): Moved from optabs.c.
14797 (target_libfuncs): New structure.
14798 (default_target_libfuncs): Declare.
14799 (this_target_libfuncs): Declare as a variable or define as a macro.
14800 (libfunc_table): Redefine as a macro.
14801 * optabs.c (default_target_libfuncs): New variable.
14802 (this_target_libfuncs): New conditional variable.
14803 (libfunc_table): Delete.
14804 (libfunc_entry): Moved to optabs.h.
14805 (libfunc_hash): Redefine as a macro.
14806 (hash_libfunc, eq_libfunc): Fix comments.
14807 (init_optabs): Use libfunc_hash to detect cases where the function
14808 has already been called. Clear the hash table instead of
14810 * target-globals.h (this_target_libfuncs): Declare.
14811 (target_globals): Add a libfuncs field.
14812 (restore_target_globals): Copy the libfuncs field to
14813 this_target_libfuncs.
14814 * target-globals.c: Include libfuncs.h.
14815 (default_target_globals): Initialize the libfuncs field.
14816 (save_target_globals): Likewise.
14818 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14820 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
14821 in all dependency lists.
14823 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14825 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
14826 * optabs.h (target_optabs): New structure.
14827 (default_target_optabs): Declare.
14828 (this_target_optabs): Declare as a variable or define as a macro.
14829 (optab_table, convert_optab_table, direct_optab_table): Redefine
14831 * optabs.c (default_target_optabs): New variable.
14832 (this_target_optabs): New conditional variable.
14833 (optab_table, convert_optab_table, direct_optab_table): Delete.
14834 * target-globals.h (this_target_optabs): Declare.
14835 (target_globals): Add a optabs field.
14836 (restore_target_globals): Copy the optabs field to
14837 this_target_optabs.
14838 * target-globals.c: Include expr.h and optabs.h.
14839 (default_target_globals): Initialize the optabs field.
14840 (save_target_globals): Likewise.
14842 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14844 * flags.h (target_flagstate): Add x_flag_excess_precision.
14845 (flag_excess_precision): Redefine as a macro.
14846 * toplev.c (flag_excess_precision): Delete.
14848 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14850 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
14851 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
14852 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
14853 (no_caller_save_reg_set): Redefine as a macro.
14854 * reload.h (target_reload): Add x_caller_save_initialized_p and
14856 (caller_save_initialized_p): Redefine as a macro.
14857 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
14858 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
14859 (regno_save_mode): Redefine as a macro.
14861 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14863 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
14864 * expmed.h: New file.
14865 * expmed.c (default_target_costs): New variable.
14866 (this_target_costs): New conditional variable.
14867 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
14868 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
14869 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
14870 * target-globals.h (this_target_expmed): Declare.
14871 (target_globals): Add a expmed field.
14872 (restore_target_globals): Copy the expmed field to
14873 this_target_expmed.
14874 * target-globals.c: Include expmed.h.
14875 (default_target_globals): Initialize the expmed field.
14876 (save_target_globals): Likewise.
14878 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14880 * Makefile.in (target-globals.o): Depend on reload.h.
14881 * reload.h (target_reload): New structure.
14882 (default_target_reload): Declare.
14883 (this_target_reload): Declare as a variable or define as a macro.
14884 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
14885 * reload1.c (default_target_reload): New variable
14886 (this_target_reload): New conditional variable.
14887 (indirect_symref_ok, double_reg_address_ok): Delete.
14888 (spill_indirect_levels): Redefine as a macro.
14889 * target-globals.h (this_target_reload): Declare.
14890 (target_globals): Add a reload field.
14891 (restore_target_globals): Copy the reload field to
14892 this_target_reload.
14893 * target-globals.c: Include hard-reg-set.h.
14894 (default_target_globals): Initialize the reload field.
14895 (save_target_globals): Likewise.
14897 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14899 * rtl.h (target_rtl): Add x_static_reg_base_value.
14900 * alias.c (static_reg_base_value): Redefine as a macro.
14902 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14904 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
14905 (GTFILES): Remove reginfo.c.
14906 * rtl.h (target_rtl): Add x_top_of_stack.
14907 (top_of_stack): New macro.
14908 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
14909 (top_of_stack): Delete.
14911 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14913 * regs.h (target_regs): Add x_hard_regs_of_mode,
14914 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
14915 x_may_move_out_cost and x_last_mode_for_init_move_cost.
14916 (have_regs_of_mode, contains_reg_of_mode, move_cost)
14917 (may_move_in_cost, may_move_out_cost): Redefine as macros.
14918 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
14919 (may_move_in_cost, may_move_out_cost): Delete.
14920 (last_mode_for_init_move_cost): Redefine as a macro.
14922 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14924 * hard-reg-set.h (target_hard_regs): New structure.
14925 (default_target_hard_regs): Declare.
14926 (this_target_hard_regs): Declare as a variable or define as a macro.
14927 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
14928 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
14929 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
14930 (reg_class_size, reg_class_subclasses, reg_class_subunion)
14931 (reg_class_superunion, reg_names): Redefine as macros.
14932 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
14933 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
14934 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
14935 (reg_class_contents, reg_class_size, reg_class_subclasses)
14936 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
14937 (default_target_hard_regs): New variable
14938 (this_target_hard_regs, initial_call_really_used_regs)
14939 (initial_reg_alloc_order): New conditional variables.
14940 (initial_reg_names): New variable.
14941 (init_reg_sets): Assert that initial_call_really_used_regs,
14942 initial_reg_alloc_order and initial_reg_names
14943 are all the same size as their variable counterparts. Use them to
14944 initialize those counterparts.
14945 * target-globals.h (this_target_hard_regs): Declare.
14946 (target_globals): Add a hard_regs field.
14947 (restore_target_globals): Copy the hard_regs field to
14948 this_target_hard_regs.
14949 * target-globals.c: Include hard-reg-set.h.
14950 (default_target_globals): Initialize the hard_regs field.
14951 (save_target_globals): Likewise.
14953 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14955 * Makefile.in (target-globals.o): Depend on $(RTL_H).
14956 * rtl.h (target_rtl): New structure.
14957 (default_target_rtl): Declare.
14958 (this_target_rtl): Declare as a variable or define as a macro.
14959 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
14960 Redefine as macros.
14961 * emit-rtl.c (default_target_rtl): New variable.
14962 (this_target_rtl): New conditional variable.
14963 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
14964 (return_address_pointer_rtx): Delete.
14965 (initial_regno_reg_rtx): New macro.
14966 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
14967 (init_emit_regs): Likewise.
14968 * target-globals.h (this_target_rtl): Declare.
14969 (target_globals): Add a rtl field.
14970 (restore_target_globals): Copy the rtl field to this_target_rtl.
14971 * target-globals.c: Include rtl.h.
14972 (default_target_globals): Initialize the rtl field.
14973 (save_target_globals): Likewise.
14975 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14977 * Makefile.in (target-globals.o): Depend on $(REGS_H).
14978 * regs.h (target_reg_modes): New structure.
14979 (default_target_reg_modes): Declare.
14980 (this_target_reg_modes): Declare as a variable or define as a macro.
14981 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
14982 * reginfo.c (default_target_reg_modes): New variable.
14983 (this_target_reg_modes): New conditional variable.
14984 (hard_regno_nregs, reg_raw_mode): Delete.
14985 * target-globals.h (this_target_regs): Declare.
14986 (target_globals): Add a regs field.
14987 (restore_target_globals): Copy the regs field to this_target_regs.
14988 * target-globals.c: Include regs.h.
14989 (default_target_globals): Initialize the regs field.
14990 (save_target_globals): Likewise.
14992 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14994 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
14995 * doc/tm.texi: Regenerate.
14996 * Makefile.in (OBJS-common): Add target-globals.o.
14997 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
14998 and target-globals.h.
14999 (target-globals.o): New rule.
15000 (GTFILES): Include $(srcdir)/target-globals.h.
15001 * defaults.h (SWITCHABLE_TARGET): Define.
15002 * gengtype.c (open_base_files): Add target-globals.h to the
15004 * target-globals.h: New file.
15005 * target-globals.c: Likewise.
15007 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
15008 * flags.h (target_flag_state): New structure.
15009 (default_target_flag_state): Declare.
15010 (this_target_flag_state): Declare as a variable or define as a macro.
15011 (align_loops_log): Redefine as a macro.
15012 (align_loops_max_skip, align_jumps_log): Likewise.
15013 (align_jumps_max_skip, align_labels_log): Likewise.
15014 (align_labels_max_skip, align_functions_log): Likewise.
15015 * toplev.c (default_target_flag_state): New variable.
15016 (this_target_flag_state): New conditional variable.
15017 (align_loops_log): Delete.
15018 (align_loops_max_skip, align_jumps_log): Likewise.
15019 (align_jumps_max_skip, align_labels_log): Likewise.
15020 (align_labels_max_skip, align_functions_log): Likewise.
15021 * target-globals.h (this_target_flag_state): Declare.
15022 (target_globals): Add a flag_state field.
15023 (restore_target_globals): Copy the flag_state field to
15024 this_target_flag_state.
15025 * target-globals.c: Include flags.h.
15026 (default_target_globals): Initialize the flag_state field.
15027 (save_target_globals): Likewise.
15029 2010-07-12 Jie Zhang <jie@codesourcery.com>
15031 * postreload.c (reg_symbol_ref[]): New.
15032 (move2add_use_add2_insn): New.
15033 (move2add_use_add3_insn): New.
15034 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
15035 (move2add_note_store): Likewise.
15037 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
15039 PR rtl-optimization/44752
15040 * genautomata.c (main): Don't emit an empty file even if there
15043 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15045 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
15046 ix86_solaris_return_in_memory.
15047 * config/i386-protos.h: Reflect this.
15048 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
15049 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
15051 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
15053 2010-07-12 Jie Zhang <jie@codesourcery.com>
15055 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
15056 align the stack when it's going to be saved.
15058 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15061 * config/host-solaris.c (mmap_fixed): New function.
15062 (sol_gt_pch_get_address): Use it.
15063 (sol_gt_pch_use_address): Likewise.
15065 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15067 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
15068 pentiumpro on Solaris 8 and 9/x86.
15069 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
15070 Document SSE/SSE2 support.
15071 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
15073 2010-07-12 Andi Kleen <ak@linux.intel.com>
15075 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
15076 instead of gcc_assert to print better error message for multiple
15079 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
15081 * config/i386/i386.c (ix86_asm_output_function_label): Change format
15082 string placeholder from 0x%x to %#x.
15083 (ix86_code_end): Use putc to output '\n'.
15084 (ix86_print_operand) <case ';'>: Use putc to output ';'.
15086 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
15088 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
15089 in directive -export.
15091 2010-07-10 Anatoly Sokolov <aesok@post.ru>
15093 * reginfo.h (reg_classes_intersect_p): Change arguments type to
15095 * rtl.h (reg_classes_intersect_p): Adjust prototype.
15097 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15099 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
15100 rs6000_memory_move_cost): Remove
15101 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
15102 TARGET_MEMORY_MOVE_COST): Define.
15103 (rs6000_register_move_cost): Make static. Change arguments type from
15104 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
15105 (rs6000_memory_move_cost): Make static. Change arguments type from
15106 'enum reg_class' to reg_class_t.
15108 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
15110 PR middle-end/42505
15111 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
15112 lookup code into....
15113 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
15115 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
15116 * cfgloopanal.c (target_clobbered_regs): Define.
15117 (init_set_costs): Initialize target_clobbered_regs.
15118 (estimate_reg_pressure_cost): Add call_p argument. When true,
15119 adjust the number of available registers to exclude the
15120 call-clobbered registers.
15121 * cfgloop.h (target_clobbered_regs): Declare.
15122 (estimate_reg_pressure_cost): Adjust declaration.
15123 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
15124 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
15125 (determine_set_costs): Dump target_clobbered_regs.
15126 (loop_body_includes_call): New function.
15127 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
15128 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
15129 call_p flag through.
15130 (best_gain_for_invariant): Likewise.
15131 (find_invariants_to_move): Likewise.
15132 (move_single_loop_invariants): Likewise, using already-computed
15135 2010-07-10 Richard Guenther <rguenther@suse.de>
15136 Joern Rennecke <joern.rennecke@embecosm.com>
15139 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
15140 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
15141 unless they have DECL_IGNORED_P set.
15143 2010-07-10 Richard Guenther <rguenther@suse.de>
15146 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
15148 (gimple_types_compatible_p): Similar to pointed-to
15149 types allow and merge a mix of complete and incomplete aggregate.
15150 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
15151 (iterative_hash_gimple_type): Adjust for that.
15153 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
15155 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
15157 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
15160 * config/darwin.c (output_objc_section_asm_op): Save and restore
15161 section when outputting ObjC section list.
15163 2010-07-09 Jan Hubicka <jh@suse.cz>
15165 * lto-streamer-out.c (produce_symtab): Do not write alias
15166 cgraph/varpool nodes.
15168 2010-07-09 Jan Hubicka <jh@suse.cz>
15170 * tree-inline.c (declare_return_variable): Fix ICE while
15171 inlining DECL_BY_VALUE function not in SSA form
15173 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
15175 PR tree-optimization/44576
15176 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
15177 New. Pull out from is_loop_prefetching_profitable to implement
15178 the trip count to ahead ratio heuristic.
15179 (mem_ref_count_reasonable_p): New. Pull out from
15180 is_loop_prefetching_profitable to implement the instruction to
15181 memory reference ratio heuristic. Also consider not reasonable if
15182 the memory reference count is above a threshold (to avoid
15183 explosive compilation time.
15184 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
15185 is_loop_prefetching_profitable to implement the instruction to
15186 prefetch ratio heuristic.
15187 (is_loop_prefetching_profitable): Removed.
15188 (loop_prefetch_arrays): Distribute the cost analysis across the
15189 function to allow early exit of the prefetch analysis.
15190 is_loop_prefetching_profitable is splitted into three functions,
15191 with each one called as early as possible.
15192 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
15193 number of memory references in a loop is considered too many.
15195 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
15197 * reload.c (find_reloads): Don't clear badop if we have a winreg
15198 alternative, but not win, and the class only has fixed regs.
15199 * hard-reg-set.h (class_only_fixed_regs): Declare.
15200 * reginfo.c (class_only_fixed_regs): New array.
15201 (init_reg_sets_1): Initialize it.
15202 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
15203 discourage alternatives using the stack pointer.
15205 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
15207 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
15209 * config/arm/arm.md (cbranchqi4): Fix array size.
15210 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
15211 calculating length.
15213 2010-07-09 Richard Guenther <rguenther@suse.de>
15215 * gimple.c (struct type_fixup_s): New struct and VEC type.
15216 (gimple_register_type_fixups): New static global.
15217 (gimple_queue_type_fixup): New function.
15218 (gimple_types_compatible_p): Queue type fixups instead of
15219 applying them here.
15220 (gimple_register_type): Apply queued fixups for the
15221 canonical type. Empty the type fixup queue.
15223 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
15225 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
15226 * configure: Regenerate.
15227 * config.in: Ditto.
15229 2010-07-09 Jakub Jelinek <jakub@redhat.com>
15230 Denys Vlasenko <dvlasenk@redhat.com>
15231 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15233 PR tree-optimization/28632
15234 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
15235 (extract_range_from_binary_expr): Further optimize
15236 BIT_AND_EXPR and BIT_IOR_EXPR.
15238 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
15240 * tree-if-conv.c (fold_or_predicates): New.
15241 (add_to_predicate_list): Call it.
15243 2010-07-09 Richard Guenther <rguenther@suse.de>
15245 PR middle-end/44890
15246 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
15247 if base is a pointer.
15248 * tree-cfg.c (verify_expr): Update MEM_REF checking.
15250 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
15253 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
15254 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
15255 builtin mask for load/store builtins.
15257 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
15259 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
15261 * configure: Regenerate.
15262 * config/i386/i386.c (ix86_print_operand) <case ';'>:
15263 Remove TARGET_MACHO.
15265 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
15267 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
15269 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
15271 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
15273 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
15275 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
15277 * config/picochip/picochip.md (commsTestPort): Emit more
15278 efficient sequence for tstport instruction.
15280 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
15282 * config/i386/i386.c (ix86_veclib_handler): Make static.
15284 2010-07-09 Richard Guenther <rguenther@suse.de>
15286 PR tree-optimization/44852
15287 * tree-ssa-alias.c: Include toplev.h for exact_log2.
15288 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
15290 (indirect_refs_may_alias_p): Likewise.
15291 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
15293 2010-07-09 Richard Guenther <rguenther@suse.de>
15295 PR tree-optimization/44882
15296 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
15298 (vectorizable_load): Likewise.
15300 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
15303 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
15304 All callers changed.
15305 Handle the case when we're called for the epilogue.
15306 (thumb_unexpanded_epilogue): Use it.
15307 (thumb1_expand_epilogue): Likewise.
15309 2010-07-09 Jakub Jelinek <jakub@redhat.com>
15311 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
15312 both ranges are range_int_cst_p with non-negative minimum,
15313 try harder to derive smaller range.
15315 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
15317 * genrecog.c: Include diagnostic-core.h before toplev.h.
15318 * genoutput.c: Likewise.
15319 * genextract.c: Likewise.
15320 * genautomata.c: Likewise.
15321 * genemit.c: Likewise.
15322 * genpeep.c: Likewise.
15323 * genattrtab.c: Likewise.
15324 * genconditions.c: Likewise.
15325 * genpreds.c: Likewise.
15327 2010-07-08 Andi Kleen <ak@linux.intel.com>
15329 * lto-section-in.c (lto_section_name): Add missing comma.
15331 2010-07-08 Anatoly Sokolov <aesok@post.ru>
15333 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
15334 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
15335 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
15336 (ia64_override_options): Rename to...
15337 (ia64_option_override): ... this one. Make static.
15339 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
15341 PR middle-end/44843
15342 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
15343 pointed-to type of the offset in a MEM_REF to compute the alignment.
15345 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
15347 * final.c (final_scan_insn): Replace
15348 TARGET_UNWIND_INFO macro check by unwind_emit
15350 * targhooks.c (default_unwind_emit): Removed.
15351 * targhooks.h (default_unwind_emit): Likewise.
15352 * target.def (unwind_emit): Set default value to NULL.
15354 * config/i386/i386-protos.h (ix86_asm_output_function_label):
15356 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
15357 for NULL fntype argument and allow 64-bit targets.
15358 (ix86_asm_output_function_label): New function.
15359 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
15360 (ix86_handle_fndecl_attribute): Likewise.
15361 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
15362 * doc/doc/tm.texi: Regenerated.
15363 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
15364 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
15365 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
15366 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
15367 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
15368 * config/elfos.h: Likewise.
15369 * config/i386/cygming.h: Likewise.
15370 * config/netbsd-aout.h: Likewise.
15371 * config/openbsd.h: Likewise.
15372 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
15373 by ix86_asm_output_function_label function call.
15374 * varasm.c (assemble_start_function): Use
15375 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
15377 2010-07-08 Jan Hubicka <jh@suse.cz>
15379 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
15381 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
15383 * ipa-cp.c (ipcp_estimate_growth): Use it.
15384 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
15387 2010-07-08 Jan Hubicka <jh@suse.cz>
15389 * tree-inline.c (declare_return_variable): Allocate annotation for new
15392 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
15394 PR tree-optimization/44710
15395 * tree-if-conv.c (parse_predicate): New.
15396 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
15397 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
15399 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
15401 * common.opt (ftree-loop-if-convert): New flag.
15402 * doc/invoke.texi (ftree-loop-if-convert): Documented.
15403 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
15404 when flag_tree_loop_if_convert is set.
15406 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
15408 * config/i386/i386.c: Use short syntax for function calls
15409 through function pointers.
15410 * config/i386/i386.md: Ditto.
15412 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
15414 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
15416 2010-07-08 Richard Guenther <rguenther@suse.de>
15418 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
15419 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
15421 2010-07-08 Jakub Jelinek <jakub@redhat.com>
15423 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
15424 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
15425 (loc_list_from_tree): Likewise.
15426 (output_loc_operands): Handle outputting DW_OP_const[48]u
15427 with loc->dtprel set.
15428 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
15430 2010-07-08 Jan Hubicka <jh@suse.cz>
15432 * ipa.c: Include pointer-set.h
15433 (cgraph_externally_visible_p): New attribute ALIASED;
15434 when in LTO, hidden symbols are local unless they are aliased.
15435 (function_and_variable_visibility): Compute aliased nodes;
15436 handle LTO and hidden symbol on functions and vars.
15437 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
15438 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
15440 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
15442 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
15443 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15444 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15445 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15446 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15447 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
15448 (ix86_gen_probe_stack_range): Likewise.
15449 (override_options): Set them.
15450 (ix86_target_stack_probe): New function.
15451 (ix86_compute_frame_layout): Force use of push instructions to
15452 save registers if stack checking with probes is enabled.
15453 (get_scratch_register_on_entry): New function.
15454 (release_scratch_register_on_entry): Likewise.
15455 (ix86_adjust_stack_and_probe): Likewise.
15456 (output_adjust_stack_and_probe): Likewise.
15457 (ix86_emit_probe_stack_range): Likewise.
15458 (output_probe_stack_range): Likewise.
15459 (ix86_expand_prologue): Emit stack checking code if static built-in
15460 stack checking is enabled.
15461 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
15462 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
15463 (output_adjust_stack_and_probe): Likewise.
15464 (output_probe_stack_range): Likewise.
15465 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
15466 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
15467 TARGET_STACK_PROBE.
15468 (allocate_stack_worker_64): Likewise.
15469 (allocate_stack): Likewise.
15470 (adjust_stack_and_probe): New insn.
15471 (probe_stack_range): Likewise.
15473 2010-07-08 Richard Guenther <rguenther@suse.de>
15475 PR tree-optimization/44831
15476 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
15477 a MEM_REF preserving TBAA info of the original dereference.
15478 Dereference the original pointer if the address is not invariant.
15479 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
15480 at least one invariant address that we are going to dereference.
15482 2010-07-08 Richard Guenther <rguenther@suse.de>
15484 PR tree-optimization/44861
15485 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
15486 information when building MEM_REFs.
15487 (vectorizable_load): Likewise.
15488 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
15490 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
15492 * config/sol2-c.c: Do not include diagnostic-core.h.
15494 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15497 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
15498 with respect to current_function_decl. Pass decl of the function.
15499 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
15500 * ipa-inline.c (compute_inline_parameters): Pass decl to
15501 estimated_stack_frame_size.
15503 2010-07-08 Richard Guenther <rguenther@suse.de>
15505 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15507 (valueize_refs): Call it.
15509 2010-07-08 Richard Guenther <rguenther@suse.de>
15511 PR rtl-optimization/44838
15512 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
15513 SSA form do not use pointer equivalence.
15515 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
15517 * dwarf2out.c (AT_linkage_name): Delete.
15518 (add_linkage_attr): New function.
15519 (add_linkage_name): Call it to emit the linkage attribute.
15520 (dwarf2out_finish): Likewise.
15521 (move_linkage_attr): Explicitly accept both attribute variants.
15523 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
15525 * toplev.h: Do not include diagnostic-core.h.
15526 Include diagnostic-core.h in every file that includes toplev.h.
15527 * c-tree.h: Do not include toplev.h.
15528 * pretty-print.h: Update comment.
15529 * Makefile.in: Update dependencies.
15530 * alias.c: Include diagnostic-core.h in every file that includes
15532 * attribs.c: Likewise.
15533 * auto-inc-dec.c: Likewise.
15534 * bb-reorder.c: Likewise.
15535 * bt-load.c: Likewise.
15536 * caller-save.c: Likewise.
15537 * calls.c: Likewise.
15539 * cfganal.c: Likewise.
15540 * cfgbuild.c: Likewise.
15541 * cfgcleanup.c: Likewise.
15542 * cfghooks.c: Likewise.
15543 * cfgloop.c: Likewise.
15544 * combine.c: Likewise.
15545 * config/alpha/alpha.c: Likewise.
15546 * config/arc/arc.c: Likewise.
15547 * config/arm/arm.c: Likewise.
15548 * config/arm/pe.c: Likewise.
15549 * config/avr/avr.c: Likewise.
15550 * config/bfin/bfin.c: Likewise.
15551 * config/cris/cris.c: Likewise.
15552 * config/crx/crx.c: Likewise.
15553 * config/darwin-c.c: Likewise.
15554 * config/darwin.c: Likewise.
15555 * config/fr30/fr30.c: Likewise.
15556 * config/frv/frv.c: Likewise.
15557 * config/h8300/h8300.c: Likewise.
15558 * config/host-darwin.c: Likewise.
15559 * config/i386/i386.c: Likewise.
15560 * config/i386/netware.c: Likewise.
15561 * config/i386/nwld.c: Likewise.
15562 * config/i386/winnt-cxx.c: Likewise.
15563 * config/i386/winnt-stubs.c: Likewise.
15564 * config/i386/winnt.c: Likewise.
15565 * config/ia64/ia64-c.c: Likewise.
15566 * config/ia64/ia64.c: Likewise.
15567 * config/iq2000/iq2000.c: Likewise.
15568 * config/lm32/lm32.c: Likewise.
15569 * config/m32c/m32c-pragma.c: Likewise.
15570 * config/m32c/m32c.c: Likewise.
15571 * config/m32r/m32r.c: Likewise.
15572 * config/m68hc11/m68hc11.c: Likewise.
15573 * config/m68k/m68k.c: Likewise.
15574 * config/mcore/mcore.c: Likewise.
15575 * config/mep/mep-pragma.c: Likewise.
15576 * config/mep/mep.c: Likewise.
15577 * config/mmix/mmix.c: Likewise.
15578 * config/mn10300/mn10300.c: Likewise.
15579 * config/moxie/moxie.c: Likewise.
15580 * config/pa/pa.c: Likewise.
15581 * config/pdp11/pdp11.c: Likewise.
15582 * config/picochip/picochip.c: Likewise.
15583 * config/rs6000/rs6000-c.c: Likewise.
15584 * config/rs6000/rs6000.c: Likewise.
15585 * config/rx/rx.c: Likewise.
15586 * config/s390/s390.c: Likewise.
15587 * config/score/score.c: Likewise.
15588 * config/score/score3.c: Likewise.
15589 * config/score/score7.c: Likewise.
15590 * config/sh/sh.c: Likewise.
15591 * config/sh/symbian-base.c: Likewise.
15592 * config/sh/symbian-c.c: Likewise.
15593 * config/sh/symbian-cxx.c: Likewise.
15594 * config/sol2-c.c: Likewise.
15595 * config/sol2.c: Likewise.
15596 * config/sparc/sparc.c: Likewise.
15597 * config/spu/spu.c: Likewise.
15598 * config/stormy16/stormy16.c: Likewise.
15599 * config/v850/v850-c.c: Likewise.
15600 * config/v850/v850.c: Likewise.
15601 * config/vax/vax.c: Likewise.
15602 * config/vxworks.c: Likewise.
15603 * config/xtensa/xtensa.c: Likewise.
15604 * convert.c: Likewise.
15606 * cselib.c: Likewise.
15607 * dbgcnt.c: Likewise.
15608 * dbxout.c: Likewise.
15610 * dominance.c: Likewise.
15611 * emit-rtl.c: Likewise.
15612 * explow.c: Likewise.
15613 * expmed.c: Likewise.
15614 * fixed-value.c: Likewise.
15615 * fold-const.c: Likewise.
15616 * fwprop.c: Likewise.
15617 * gcse.c: Likewise.
15618 * ggc-common.c: Likewise.
15619 * ggc-page.c: Likewise.
15620 * ggc-zone.c: Likewise.
15621 * gimple-low.c: Likewise.
15622 * gimplify.c: Likewise.
15623 * graph.c: Likewise.
15624 * haifa-sched.c: Likewise.
15625 * ifcvt.c: Likewise.
15626 * implicit-zee.c: Likewise.
15627 * integrate.c: Likewise.
15628 * ira-build.c: Likewise.
15629 * ira-color.c: Likewise.
15630 * ira-conflicts.c: Likewise.
15631 * ira-costs.c: Likewise.
15632 * ira-lives.c: Likewise.
15634 * lists.c: Likewise.
15635 * loop-doloop.c: Likewise.
15636 * loop-iv.c: Likewise.
15637 * lto-opts.c: Likewise.
15638 * lto-symtab.c: Likewise.
15639 * main.c: Likewise.
15640 * modulo-sched.c: Likewise.
15641 * optabs.c: Likewise.
15642 * params.c: Likewise.
15643 * plugin.c: Likewise.
15644 * postreload-gcse.c: Likewise.
15645 * postreload.c: Likewise.
15646 * predict.c: Likewise.
15647 * profile.c: Likewise.
15648 * real.c: Likewise.
15649 * regcprop.c: Likewise.
15650 * reginfo.c: Likewise.
15651 * regmove.c: Likewise.
15652 * reorg.c: Likewise.
15653 * resource.c: Likewise.
15655 * rtlanal.c: Likewise.
15656 * sched-deps.c: Likewise.
15657 * sched-ebb.c: Likewise.
15658 * sched-rgn.c: Likewise.
15659 * sdbout.c: Likewise.
15660 * sel-sched-dump.c: Likewise.
15661 * sel-sched-ir.c: Likewise.
15662 * simplify-rtx.c: Likewise.
15663 * stmt.c: Likewise.
15664 * stor-layout.c: Likewise.
15665 * store-motion.c: Likewise.
15666 * targhooks.c: Likewise.
15667 * tree-cfg.c: Likewise.
15668 * tree-cfgcleanup.c: Likewise.
15669 * tree-dump.c: Likewise.
15670 * tree-eh.c: Likewise.
15671 * tree-inline.c: Likewise.
15672 * tree-nomudflap.c: Likewise.
15673 * tree-object-size.c: Likewise.
15674 * tree-optimize.c: Likewise.
15675 * tree-outof-ssa.c: Likewise.
15676 * tree-phinodes.c: Likewise.
15677 * tree-profile.c: Likewise.
15678 * tree-ssa-ccp.c: Likewise.
15679 * tree-ssa-coalesce.c: Likewise.
15680 * tree-ssa-live.c: Likewise.
15681 * tree-ssa-loop-niter.c: Likewise.
15682 * tree-ssa-loop-prefetch.c: Likewise.
15683 * tree-ssa-loop.c: Likewise.
15684 * tree-ssa-structalias.c: Likewise.
15685 * tree-ssa-uninit.c: Likewise.
15686 * tree-ssa.c: Likewise.
15687 * tree-vect-data-refs.c: Likewise.
15688 * tree-vect-loop-manip.c: Likewise.
15689 * tree-vect-loop.c: Likewise.
15690 * tree-vect-patterns.c: Likewise.
15691 * tree-vect-stmts.c: Likewise.
15692 * tree-vrp.c: Likewise.
15693 * varasm.c: Likewise.
15696 * xcoffout.c: Likewise.
15698 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
15700 * gengtype.c (write_field_root): New function.
15701 (write_root): Use it.
15703 2010-07-07 Wei Guozhi <carrot@google.com>
15705 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
15706 of lowest bits to lshift/compare): Add a missing line.
15708 2010-07-07 Wei Guozhi <carrot@google.com>
15710 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
15711 of lowest bits to lshift/compare): New.
15713 2010-07-07 Tom Tromey <tromey@redhat.com>
15715 * doc/tm.texi: Update.
15716 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
15718 * target.def (want_debug_pub_sections): New hook.
15719 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
15720 * dwarf2out.c (add_pubname_string): Check
15721 targetm.want_debug_pub_sections.
15722 (add_pubname): Likewise.
15723 (add_pubtype): Likewise.
15725 2010-07-07 Jie Zhang <jie@codesourcery.com>
15727 * genautomata.c (output_automata_list_min_issue_delay_code):
15728 Correctly decompress min_issue_delay.
15730 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
15732 PR rtl-optimization/44404
15733 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
15734 possible, use reg_overlap_mentioned_p instead.
15736 2010-07-07 Duncan Sands <baldrick@free.fr>
15738 PR middle-end/41355
15739 * tree.c (build_function_type_skip_args): Copy the original type using
15740 build_distinct_type_copy rather than copy_node.
15742 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
15745 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
15747 (ix86_expand_prologue): Likewise.
15748 (ix86_handle_fndecl_attribute): Likewise.
15749 (ix86_asm_declare_function_name): Likewise.
15750 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15751 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15752 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
15753 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
15754 * doc/extend.texi: Likewise.
15756 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
15759 * config/i386/i386.md (rdrand<mode>): Changed to expand to
15760 retry if the carry flag isn't valid.
15761 (rdrand<mode>_1): New.
15763 2010-07-07 Richard Guenther <rguenther@suse.de>
15765 PR middle-end/44790
15766 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
15767 for expanding the constant offset for MEM_REFs.
15769 2010-07-07 Richard Guenther <rguenther@suse.de>
15771 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
15772 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
15773 * gimple.h (is_gimple_operand): Remove.
15774 * gimple.c (is_gimple_operand): Likewise.
15775 (walk_gimple_op): Fix wi->val_only setting for calls.
15776 * tree-cfg.c (verify_gimple_call): Fix argument validation.
15777 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
15778 invalid gimple calls.
15780 2010-07-06 Jan Hubicka <jh@suse.cz>
15782 * lto-cgraph.c (output_cgraph): Add missing declaration.
15784 2010-07-06 Jan Hubicka <jh@suse.cz>
15786 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
15789 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
15791 * doc/gimple.texi (GIMPLE_DEBUG): Document.
15792 * doc/rtl.texi (Debug Information): New node.
15793 (NOTE_INSN_VAR_LOCATION): Document.
15794 (debug_insn): Likewise.
15795 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
15797 2010-07-07 Jan Hubicka <jh@suse.cz>
15799 With parts by Richard Guenther.
15801 PR middle-end/44813
15802 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
15803 for functions passed by reference.
15804 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
15805 in memory when passed by reference.
15806 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
15808 * ipa-split.c (split_function): Cleanup way return value is passed;
15809 handle SSA DECL_BY_REFERENCE retvals.
15810 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
15811 DECL_BY_REFERENCE is set.
15812 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
15813 find_what_p_points_to): Handle RESULT_DECL.
15814 * tree-inline.c (declare_return_variable): Get new entry_block argument;
15815 when passing by reference ensure that RESULT_DECL is gimple_val.
15816 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
15817 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
15819 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
15821 PR rtl-optimization/44787
15822 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
15823 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
15825 2010-07-06 Jan Hubicka <jh@suse.cz>
15827 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
15828 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
15829 with body can prevail.
15830 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
15831 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
15832 * cgraph.c (cgraph_get_node_or_alias): New function.
15833 * cgraph.h (cgraph_get_node_or_alias): Declare.
15835 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
15837 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
15839 (ix86_expand_prologue): Likewise.
15840 (ix86_handle_fndecl_attribute): Likewise.
15841 (ix86_asm_declare_function_name): New function for
15842 ASM_DECLARE_FUNCTION_NAME.
15843 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
15844 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
15845 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
15846 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
15847 * doc/extend.texi: Adjust documentation about ms_hook_prologue
15850 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
15852 * config/i386/i386.md (immediate_operand): New mode attribute.
15854 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
15855 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
15856 using P mode iterator.
15857 (pro_epilogue_adjust_stack_di_2): Rename from
15858 pro_epilogue_adjust_stack_rex64_2.
15860 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
15862 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
15864 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
15865 through gen_mov_insv_1 function pointer.
15866 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
15867 gen_truncxf<mode>2 through gen_truncxf function pointer.
15868 (remainder<mode>3): Ditto.
15869 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
15870 (allocate_stack): Call gen_allocate_stack_worker_64 or
15871 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
15873 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
15876 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
15878 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
15879 operand constraint instead of <r><i>m.
15881 2010-07-06 Richard Guenther <rguenther@suse.de>
15883 PR middle-end/44828
15884 * convert.c (convert_to_integer): Watch out for overflowing
15887 2010-07-05 Jan Hubicka <jh@suse.cz>
15889 * lto-streamer.c (write_symbol_vec): Rename to ...
15890 (write_symbol) ... this one; write only symbol given and when
15891 present in cache. Sanity check that what is defined is present
15892 in cgraph/varpool with body/finalized decl.
15893 (write_symbols_of_kind): Remove.
15894 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
15895 pairs to produce symtab.
15896 (produce_asm_for_decls): Update call of produce_symtab; don't do so
15897 when doing WPA streaming.
15899 2010-07-05 Jan Hubicka <jh@suse.cz>
15901 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
15902 function is still available to fold into.
15904 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
15906 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
15907 * function.h (struct_function): Change type of local_decls field
15909 (add_local_decl): New function.
15910 (FOR_EACH_LOCAL_DECL): New macro.
15911 * cfgexpand.c (init_vars_expansion): Adjust for new type of
15913 (estimated_stack_frame_size): Likewise.
15914 (expand_used_vars): Likewise.
15915 * cgraphbuild.c (build_cgraph_edges): Likewise.
15916 * function.c (instantiate_decls_1): Likewise.
15917 * ipa-struct-reorg.c (build_data_structure): Likewise.
15918 * ipa-type-escape.c (analyze_function): Likewise.
15919 * lto-streamer-in.c (input_function): Likewise.
15920 * lto-streamer-out.c (output_function): Likewise.
15921 * tree-ssa-live.c (remove_unused_locals): Likewise.
15922 * tree.c (free_lang_data_in_decl): Likewise.
15923 (find_decls_types_in_node): Likewise.
15924 * omp-low.c (remove_exit_barrier): Likewise.
15925 (expand_omp_taskreg): Likewise.
15926 (list2chain): Rename to...
15927 (vec2chain): ...this. Adjust.
15928 * cgraphunit.c (assemble_thunk): Call add_local_decl.
15929 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
15930 * gimple-low.c (record_vars_into): Likewise.
15931 * tree-inline.c (remap_decls): Likewise.
15932 (declare_return_variable): Likewise.
15933 (declare_inline_vars): Likewise.
15934 (copy_forbidden): Adjust for new type of cfun->local_decls.
15935 (add_local_variables): New function.
15936 (expand_call_inline): Call it.
15937 (tree_function_versioning): Likewise.
15939 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
15941 AVX Programming Reference (June, 2010)
15942 * config/i386/cpuid.h (bit_F16C): New.
15943 (bit_RDRND): Likewise.
15944 (bit_FSGSBASE): Likewise.
15946 * config/i386/i386-builtin-types.def: Add
15947 "DEF_FUNCTION_TYPE (UINT16)", function types for
15948 float16 <-> float conversions and
15949 "DEF_FUNCTION_TYPE (VOID, UINT64)".
15951 * config/i386/i386-c.c (ix86_target_macros_internal): Support
15952 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
15953 OPTION_MASK_ISA_F16C.
15955 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
15956 (OPTION_MASK_ISA_RDRND_SET): Likewise.
15957 (OPTION_MASK_ISA_F16C_SET): Likewise.
15958 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
15959 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
15960 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
15961 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
15962 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
15963 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
15964 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
15965 (override_options): Handle them.
15966 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
15967 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
15968 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
15969 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
15970 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
15971 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
15972 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
15973 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
15974 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
15975 (bdesc_args): Likewise.
15976 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
15977 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
15978 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
15979 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
15980 Handle non-memory store.
15982 * config/i386/i386.h (TARGET_FSGSBASE): New.
15983 (TARGET_RDRND): Likewise.
15984 (TARGET_F12C): Likewise.
15986 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
15987 (UNSPEC_VCVTPS2PH): Likewise.
15988 (UNSPECV_RDFSBASE): Likewise.
15989 (UNSPECV_RDGSBASE): Likewise.
15990 (UNSPECV_WRFSBASE): Likewise.
15991 (UNSPECV_WRGSBASE): Likewise.
15992 (UNSPECV_RDRAND): Likewise.
15993 (rdfsbase<mode>): Likewise.
15994 (rdgsbase<mode>): Likewise.
15995 (wrfsbase<mode>): Likewise.
15996 (wrgsbase<mode>): Likewise.
15997 (rdrand<mode>): Likewise.
15999 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
16001 * config/i386/immintrin.h (_rdrand_u16): New.
16002 (_rdrand_u32): Likewise.
16003 (_readfsbase_u32): Likewise.
16004 (_readfsbase_u64): Likewise.
16005 (_readgsbase_u32): Likewise.
16006 (_readgsbase_u64): Likewise.
16007 (_writefsbase_u32): Likewise.
16008 (_writefsbase_u64): Likewise.
16009 (_writegsbase_u32): Likewise.
16010 (_writegsbase_u64): Likewise.
16011 (_rdrand_u64): Likewise.
16012 (_cvtsh_ss): Likewise.
16013 (_mm_cvtph_ps): Likewise.
16014 (_mm256_cvtph_ps): Likewise.
16015 (_cvtss_sh): Likewise.
16016 (_mm_cvtps_ph): Likewise.
16017 (_mm256_cvtps_ph): Likewise.
16019 * config/i386/sse.md (vcvtph2ps): New.
16020 (*vcvtph2ps_load): Likewise.
16021 (vcvtph2ps256): Likewise.
16022 (vcvtps2ph): Likewise.
16023 (*vcvtps2ph): Likewise.
16024 (*vcvtps2ph_store): Likewise.
16025 (vcvtps2ph256): Likewise.
16027 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
16029 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
16031 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
16034 * genenums.c (main): Output include of insn-constants.h
16035 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
16037 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
16039 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
16040 (override_options): Initialize it.
16041 (ix86_expand_prologue): Use it.
16043 2010-07-05 Jakub Jelinek <jakub@redhat.com>
16045 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
16047 2010-07-05 Anatoly Sokolov <aesok@post.ru>
16049 * double-int.h (fit_double_type): Remove declaration.
16050 * double-int.c (fit_double_type): Remove function.
16051 * tree.h (int_fits_type_p): Adjust prototype.
16052 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
16053 instead of fit_double_type.
16054 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
16055 instead of fit_double_type and build_int_cst_wide.
16056 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
16057 instead of fit_double_type and build_int_cst_wide.
16058 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
16059 of fit_double_type.
16061 2010-07-05 Jan Hubicka <jh@suse.cz>
16063 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
16064 in_other_partition.
16065 * lto-cgraph.c (referenced_from_other_partition_p,
16066 reachable_from_other_partition_p): Use in_other_partition flags.
16067 (output_node, output_varpool_node): COMDAT nodes always have private
16068 copies and thus are never used from other partition.
16070 2010-07-05 Anatoly Sokolov <aesok@post.ru>
16072 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
16073 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
16074 * config/ia64/ia64.c Include reload.h.
16075 (ia64_memory_move_cost): New function.
16076 (TARGET_MEMORY_MOVE_COST): Define.
16077 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
16080 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
16082 PR middle-end/42505
16083 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
16084 comments about cost model.
16085 (try_add_cand_for): Add second strategy for choosing initial set
16086 based on original IVs, controlled by ORIGINALP argument.
16087 (get_initial_solution): Add ORIGINALP argument.
16088 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
16089 (find_optimal_iv_set): Try two different strategies for choosing
16090 the IV set, and return the one with lower cost.
16092 2010-07-05 Richard Guenther <rguenther@suse.de>
16094 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
16096 2010-07-05 Richard Guenther <rguenther@suse.de>
16098 * tree.c (reference_alias_ptr_type): New function.
16099 * tree.h (reference_alias_ptr_type): Declare.
16100 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
16101 allow non-TARGET_MEM_REF new refs.
16102 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
16103 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
16104 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
16105 (create_mem_ref): Get alias pointer type. Adjust calls to
16106 create_mem_ref_raw.
16107 (maybe_fold_tmr): Likewise.
16108 * tree-flow.h (create_mem_ref): Adjust prototype.
16110 2010-07-05 Jakub Jelinek <jakub@redhat.com>
16113 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
16114 *from_p is VAR_DECL.
16116 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
16118 * tree.h (build_call_list): Remove.
16119 * tree.c (build_call_list): Remove.
16121 2010-07-05 Richard Guenther <rguenther@suse.de>
16123 * double-int.h (double_int_sub): Declare.
16124 * double-int.c (double_int_sub): New function.
16125 * dwarf2out.c (field_byte_offset): Use it.
16126 * fixed-value.c (do_fixed_add): Likewise.
16127 (do_fixed_multiply): Likewise.
16128 (do_fixed_divide): Likewise.
16129 * tree-predcom.c (add_ref_to_chain): Likewise.
16130 (determine_roots_comp): Likewise.
16131 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
16133 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
16135 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
16138 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
16140 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
16141 * arm-modes.def (CC_NOTB): Don't define.
16142 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
16143 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
16144 (LTUGEU): New code_iterator.
16145 (cnb, optab): New corresponding code_attrs.
16146 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
16147 to canonical form. Operands 1 and 2 are commutative. Parametrize
16149 (addsi3_carryin_shift_<optab>): Likewise.
16150 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
16151 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
16152 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
16153 (subsi3_compare): Renamed from subsi3_compare0_c.
16154 Change CC_NOTB to CC.
16155 (arm_subsi3_insn): Allow constants for operand 0.
16156 (compare_scc peephole for eq case): New.
16157 (compare_scc splitters): Change CC_NOTB to CC.
16159 2010-07-05 Richard Guenther <rguenther@suse.de>
16161 * tree-ssa-loop-im.c (for_each_index): Do not handle
16162 ALIGN_INDIRECT_REF.
16163 (gen_lsm_tmp_name): Likewise.
16164 * tree-dump.c (dequeue_and_dump): Likewise.
16165 * tree-pretty-print.c (dump_generic_node): Likewise.
16166 (op_code_prio): Likewise.
16167 (op_symbol_code): Likewise.
16168 * tree.c (staticp): Likewise.
16169 (build1_stat): Likewise.
16170 * tree.h (INDIRECT_REF_P): Likewise.
16171 * fold-const.c (maybe_lvalue_p): Likewise.
16172 (operand_equal_p): Likewise.
16173 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16174 (ao_ref_init_from_vn_reference): Likewise.
16175 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
16176 (find_interesting_uses_address): Likewise.
16177 * dwarf2out.c (loc_list_from_tree): Likewise.
16178 * gimplify.c (gimplify_expr): Likewise.
16179 * tree-eh.c (tree_could_trap_p): Likewise.
16180 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
16181 * cfgexpand.c (expand_debug_expr): Likewise.
16182 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
16183 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
16184 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
16185 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
16186 * tree-ssa-operands.c (get_expr_operands): Likewise.
16187 * expr.c (safe_from_p): Likewise.
16188 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
16189 * tree-vect-data-refs.c (vect_setup_realignment): Build
16190 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
16191 * tree-vect-stmts.c (vectorizable_load): Likewise.
16192 * tree.def (ALIGN_INDIRECT_REF): Remove.
16194 2010-07-05 Richard Guenther <rguenther@suse.de>
16196 PR tree-optimization/44784
16197 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
16198 for inserted stmts.
16199 (find_or_generate_expression): Fix SCCVN insertion check.
16201 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
16203 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
16204 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
16205 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
16208 2010-07-05 Ira Rosen <irar@il.ibm.com>
16210 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
16211 statements that are not vectorized.
16212 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
16215 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
16218 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
16220 2010-07-05 Richard Guenther <rguenther@suse.de>
16222 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
16223 RESULT_DECLs properly.
16225 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
16227 PR rtl-optimization/44695
16228 * config/i386/i386.md (extract_code): Removed.
16229 (<u>divmodqi4): Likewise.
16231 (udivmodqi4): Likewise.
16232 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
16233 (udivmodhiqi3): Likewise.
16235 2010-07-04 Jan Hubicka <jh@suse.cz>
16237 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
16239 2010-07-04 Jan Hubicka <jh@suse.cz>
16241 * cgraphunit.c (init_cgraph): Only initialize dump file if it
16242 is not already initialized.
16244 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
16246 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
16247 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
16248 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
16249 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
16250 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
16251 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
16252 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
16253 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
16254 (sync_new_nand_optab): Redefine as macros.
16255 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
16257 (direct_optab_index): New enum.
16258 (direct_optab_d): New structure.
16259 (direct_optab): New typedef.
16260 (direct_optab_table): Declare.
16261 (direct_optab_handler, set_direct_optab_handler): New functions.
16262 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
16263 (sync_lock_release_optab): New macros.
16264 * optabs.c (direct_optab_table): New variable.
16265 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
16266 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
16267 cmpstr_optab and cmpstrn_optab.
16268 (emit_conditional_move): Likewise for movcc_optab.
16269 (can_conditionally_move_p): Likewise for movcc_gen_code.
16270 (init_insn_codes): Clear direct_optab_table.
16271 (init_optabs): Don't initialize the new "direct optabs" here.
16272 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
16274 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
16275 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
16276 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
16277 (expand_sync_operation): Likewise other sync_*_optabs.
16278 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
16279 to sync_compare_and_swap_optab.
16280 (expand_sync_lock_test_and_set): Use direct_optab_handler for
16281 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
16282 to the names of both.
16283 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
16284 cmpstr_optab and cmpstrn_optab.
16285 (expand_builtin_lock_release): Likewise sync_lock_release.
16286 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
16287 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
16288 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
16289 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
16290 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
16291 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
16292 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
16293 (sync_lock_test_and_set, sync_lock_release): Delete.
16294 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
16295 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
16296 * genopinit.c (optabs): Use set_direct_optab_handler for the new
16298 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
16299 the "optab" local variable. Use direct_optab_handler for optab and
16300 sync_compare_and_swap_optab.
16301 * reload1.c (reload_in_optab, reload_out_optab): Delete.
16302 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
16303 reload_in_optab and reload_out_optab.
16304 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
16305 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
16306 * config/pa/pa.c (pa_secondary_reload): Likewise.
16307 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
16308 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
16309 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
16310 (VMSupportsCS8_builtin): Likewise.
16312 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
16314 * optabs.h (optab_handlers): Change type of insn_code to int.
16315 (optab_handler, set_optab_handler, convert_optab_handler)
16316 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
16318 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
16319 (init_insn_codes): Zero both the above arrays.
16320 (init_optabs): Never call init_insn_codes first time around.
16322 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
16324 * optabs.h (optab_handler, convert_optab_handler): Turn into
16325 inline functions that return an insn code.
16326 (set_optab_handler, set_convert_optab_handler): New functions.
16327 * builtins.c: Replace optab_handler(X)->insn_code with
16328 optab_handler or set_optab_handler thoughout. Likewise
16329 convert_optab_handler(X)->insn_code with convert_optab_handler
16330 and set_convert_optab_handler.
16331 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
16332 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
16333 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
16334 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
16335 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
16336 config/spu/spu.c: Likewise.
16338 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
16341 * config.gcc (sh*-*-*): Use regular expressions instead of
16342 the 'i' modifier for sed substitutions.
16344 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
16346 * gimple.c (gimple_body): Comments added.
16348 2010-07-04 Richard Guenther <rguenther@suse.de>
16350 PR middle-end/44809
16351 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
16352 of an INDIRECT_REF.
16354 2010-07-04 Richard Guenther <rguenther@suse.de>
16356 PR tree-optimization/44479
16357 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
16358 extra SSA name copy statements which preserves points-to
16360 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
16361 Copy points-to information for all pointers. Properly handle
16363 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
16365 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
16368 2010-07-04 Richard Guenther <rguenther@suse.de>
16370 PR middle-end/44785
16371 * tree-inline.c (initialize_inlined_parameters): Do not
16372 re-use pointer-map slot over remap_type call.
16374 2010-07-04 Richard Guenther <rguenther@suse.de>
16376 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
16378 2010-07-04 Richard Guenther <rguenther@suse.de>
16380 PR tree-optimization/44656
16381 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
16382 again after value-replacing in the defintions lhs.
16384 2010-07-04 Ira Rosen <irar@il.ibm.com>
16385 Revital Eres <eres@il.ibm.com>
16387 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
16388 Document new arguments.
16389 * doc/tm.texi: Regenerate.
16390 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
16391 Handle unaligned store.
16392 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
16393 * target.def (builtin_vectorization_cost): Add new arguments.
16394 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
16395 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
16396 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
16397 (vect_vfa_segment_size): Fix indentation.
16398 * tree-vectorizer.h (struct _vect_peel_info): New.
16399 (struct _vect_peel_extended_info): New.
16400 (struct _loop_vec_info): Add new field for peeling hash table and a
16401 macro for its access.
16402 (VECT_MAX_COST): Define.
16403 (vect_get_load_cost): Declare.
16404 (vect_get_store_cost, vect_get_known_peeling_cost,
16405 vect_get_single_scalar_iteraion_cost): Likewise.
16406 (vect_supportable_dr_alignment): Add new argument.
16407 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
16409 (destroy_loop_vec_info): Free peeling hash table.
16410 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
16411 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
16412 vect_analyze_slp. Fix indentation.
16413 (vect_get_single_scalar_iteraion_cost): New function.
16414 (vect_get_known_peeling_cost): Likewise.
16415 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
16416 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
16417 statement. Move outside cost calculation inside unknown peeling case.
16418 Call vect_get_known_peeling_cost for known amount of peeling.
16419 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
16420 reference to the print message of forced alignment.
16421 (vect_verify_datarefs_alignment): Update call to
16422 vect_supportable_dr_alignment.
16423 (vect_get_data_access_cost): New function.
16424 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
16425 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
16426 vect_peeling_hash_choose_best_peeling): Likewise.
16427 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
16428 to store all the accesses in the loop and find best possible access to
16429 align using peeling for known alignment case. For unknown alignment
16430 check if stores are preferred or if peeling is worthy.
16431 (vect_find_same_alignment_drs): Analyze pairs of loads too.
16432 (vect_supportable_dr_alignment): Add new argument and check aligned
16433 accesses according to it.
16434 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
16435 (cost_for_stmt): Call vect_get_stmt_cost.
16436 (vect_model_simple_cost): Likewise.
16437 (vect_model_store_cost): Call vect_get_stmt_cost. Call
16438 vect_get_store_cost to calculate the cost of the statement.
16439 (vect_get_store_cost): New function.
16440 (vect_model_load_cost): Call vect_get_stmt_cost. Call
16441 vect_get_load_cost to calculate the cost of the statement.
16442 (vect_get_load_cost): New function.
16443 (vectorizable_store): Update call to vect_supportable_dr_alignment.
16444 (vectorizable_load): Likewise.
16445 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
16446 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
16447 arguments. Handle unaligned store.
16448 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
16449 (rs6000_builtin_support_vector_misalignment): Return true for word and
16450 double word alignments for VSX.
16451 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
16452 vect_supportable_dr_alignment and builtin_vectorization_cost.
16454 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16457 * config/pa/predicates.md (prefetch_cc_operand): Remove.
16458 (prefetch_nocc_operand): Likewise.
16459 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
16460 (prefetch_20): New insn.
16461 (prefetch_cc): Remove.
16462 (prefetch_nocc): Likewise.
16464 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
16466 * expr.c (vector_mode_valid_p): Move to c-common.c.
16467 * expr.h (vector_mode_valid_p): Do not declare here.
16468 * system.h: Poison GCC_EXPR_H in front-ends.
16469 * Makefile.in: Update dependencies.
16471 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16474 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
16476 2010-07-03 Jan Hubicka <jh@suse.cz>
16478 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
16479 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
16480 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
16481 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
16484 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
16486 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
16487 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
16488 TV_IPA_LTO_DECL_OUT): New.
16489 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
16491 2010-07-03 Jan Hubicka <jh@suse.cz>
16493 * ipa-inline.c (update_edge_key): Break out from ...
16494 update_callers_keys): ... here;
16495 (update_callee_keys): Update only the edges from caller to callee.
16496 (update_all_calle_keys): Do what update_calle_keys did.
16497 (decide_inlining_of_small_functions): Avoid recomputing of all
16498 callees when badness increase.
16500 2010-07-03 Jie Zhang <jie@codesourcery.com>
16502 * config/arm/arm.c (arm_attr_length_move_neon): New.
16503 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
16504 * config/arm/neon.md (define_mode_attr V_slen): Remove.
16505 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
16506 to compute length attribute.
16508 2010-07-03 Jie Zhang <jie@codesourcery.com>
16510 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
16511 as predicate for operand 1 and remove its constraint.
16512 * config/arm/predicates.md (vfp_register_operand): New.
16513 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
16514 (*push_fp_multi): Likewise.
16516 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
16518 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
16520 2010-07-03 Jan Hubicka <jh@suse.cz>
16522 * config/i386/i386.c (override_options): Revert accidental commit.
16524 2010-07-02 Le-Chun Wu <lcwu@google.com>
16527 * doc/invoke.texi: Update documentation of -Wshadow.
16529 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
16530 Julian Brown <julian@codesourcery.com>
16531 Sandra Loosemore <sandra@codesourcery.com>
16533 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
16534 comparisons. Adjust to take both operands.
16535 (arm_select_cc_mode): Handle DImode comparisons.
16536 (arm_gen_compare_reg): Generate a scratch register for DImode
16537 comparisons which require one. Use xor for Thumb equality checks.
16538 (arm_const_double_by_immediates): New.
16539 (arm_print_operand): Allow 'Q' and 'R' for constants.
16540 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
16541 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
16542 arm_canonicalize_comparison.
16543 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
16544 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
16546 (arm_const_double_by_immediates): Declare.
16547 * config/arm/constraints.md (Di): New constraint.
16548 * config/arm/predicates.md (arm_immediate_di_operand)
16549 (arm_di_operand, cmpdi_operand): New.
16550 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
16551 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
16552 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
16553 (cstoredi4): Handle non-Cirrus also.
16555 2010-07-02 Julian Brown <julian@codesourcery.com>
16556 Sandra Loosemore <sandra@codesourcery.com>
16559 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
16560 (smax<mode>3): Disable for NEON float modes when
16561 flag_unsafe_math_optimizations is false.
16562 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
16564 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
16565 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
16566 for NEON float modes when flag_unsafe_math_optimizations is false.
16567 (quad_halves_<code>v4sf): Only enable if
16568 flag_unsafe_math_optimizations is true.
16569 * doc/invoke.texi (ARM Options): Add note about floating point
16570 vectorization requiring -funsafe-math-optimizations.
16572 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
16573 Julian Brown <julian@codesourcery.com>
16575 * config/arm/neon.md (UNSPEC_VABA): Delete.
16576 (UNSPEC_VABAL): Delete.
16577 (UNSPEC_VABS): Delete.
16578 (UNSPEC_VMUL_N): Delete.
16579 (adddi3_neon): New.
16580 (subdi3_neon): New.
16581 (mul<mode>3add<mode>_neon): Make the pattern named.
16582 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16583 (neon_vadd<mode>): Replace with define_expand, and move the remaining
16585 (neon_vadd<mode>_unspec): ...to this.
16586 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
16587 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
16588 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
16589 (neon_vaba<mode>): Rewrite in terms of vabd.
16590 (neon_vabal<mode>): Rewrite in terms of vabdl.
16591 (neon_vabs<mode>): Rewrite without unspec.
16592 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
16593 (*arm_subdi3): Likewise.
16594 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
16595 No_op attribute to disable assembly output checks.
16596 * config/arm/arm_neon.h: Regenerated.
16597 * doc/arm-neon-intrinsics.texi: Regenerated.
16599 2010-07-02 Jan Hubicka <jh@suse.cz>
16601 * ipa-split.c (split_function): For aggregate values, set the return
16602 slot optimization bit. When passing DECL_BY_REFERENCE, produce
16603 *<retval> = fncall.part ().
16604 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
16606 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
16608 * config/arm/neon.md (UNSPEC_VAND): Delete.
16609 (UNSPEC_VBIC): Delete.
16610 (UNSPEC_VCLZ): Delete.
16611 (UNSPEC_VCNT): Delete.
16612 (UNSPEC_VEOR): Delete.
16613 (UNSPEC_VORN): Delete.
16614 (UNSPEC_VORR): Delete.
16615 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
16616 core registers too.
16617 (anddi3_neon): Likewise.
16618 (orndi3_neon): Likewise.
16619 (bicdi3_neon): Likewise.
16620 (xordi3_neon): Likewise.
16621 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
16622 rid of unspec and handle unused operand.
16623 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
16624 * config/arm/predicates.md (imm_for_neon_logic_operand):
16625 Require TARGET_NEON.
16626 (imm_for_neon_inv_logic_operand): Likewise.
16627 * config/arm/arm.md (define_split for logical_binary_operator):
16628 Disable for NEON registers.
16629 (anddi3): Add new define_expand, and rename the insn. Disable
16630 this insn for NEON, where anddi3_neon now applies.
16631 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
16632 (iordi3): As for anddi3.
16633 (xordi3): Likewise.
16634 * config/arm/neon.ml (Vand): Split DImode variants and mark them
16635 as No_op to disable testing for exact instruction match.
16640 * config/arm/arm_neon.h: Regenerated.
16641 * doc/arm-neon-intrinsics.texi: Regenerated.
16643 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
16645 * expr.h (emit_stack_probe): Declare.
16646 * explow.c (emit_stack_probe): Make global.
16647 (anti_adjust_stack_and_probe): Fix comments.
16648 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
16649 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16650 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16651 * config/sparc/sparc.c: Include except.h.
16652 (sparc_emit_probe_stack_range): New function.
16653 (output_probe_stack_range): Likewise.
16654 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
16655 built-in stack checking is enabled.
16656 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
16657 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
16658 (probe_stack_range): New insn.
16660 2010-07-02 Richard Guenther <rguenther@suse.de>
16663 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
16664 for argument alignment.
16666 2010-07-02 Jan Hubicka <jh@suse.cz>
16668 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
16669 walk backwards from entry_bb to check only those basic block of header
16670 that might lead to execution of split part.
16671 (consider_split) ... here.
16672 (find_return_bb): Allow assignment in return BB.
16673 (find_retval): New.
16674 (split_function): Fix name of cloned function; take care of updating
16675 return value in return_bb containing move.
16677 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
16680 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
16681 used variable insn.
16683 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
16685 * implicit-zee.c (combine_reaching_defs): Fix long lines.
16686 (is_set_with_extension_DI): Delete.
16687 (struct zero_extend_info): New structure.
16688 (add_removable_zero_extend): New function.
16689 (find_removable_zero_extends): Use note_stores to find SETs.
16690 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
16692 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
16694 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
16695 is_miss_rate_acceptable. Pull total_positions computation
16696 out of the loops. Early return if miss_positions exceeds
16697 the acceptable threshold.
16698 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
16699 is_miss_rate_acceptable after renaming of compute_miss_rate.
16701 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
16703 PR middle-end/44576
16704 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
16705 of 1000) for miss rate if the address diference is greater than or
16706 equal to the cache line size (the two reference will never hit the
16709 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
16712 * config/arm/arm-modes.def (CC_NOTB): New mode.
16713 * config/arm/arm.c (get_arm_condition_code): Handle it.
16714 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
16715 * config/arm/arm.md (subsi3_compare0_c): New pattern.
16716 (compare_scc): Now a define_and_split. Add a number of extra
16717 splitters before it.
16720 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
16722 (arm_rtx_costs_1): Likewise.
16723 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
16724 * config/arm/arm.md (is_arch6): New attribute.
16725 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
16726 extendqisi2): Tighten the code somewhat, avoiding invalid
16727 RTL to occur in the expander patterns.
16728 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
16729 (thumb1_zero_extendhisi2_v6): Delete.
16730 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
16731 (thumb1_extendhisi2_v6): Delete.
16732 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
16733 (thumb1_extendqisi2_v6): Delete.
16734 (zero_extendhisi2 for register input splitter): New.
16735 (zero_extendqisi2 for register input splitter): New.
16736 (thumb1_extendhisi2 for register input splitter): New.
16737 (extendhisi2 for register input splitter): New.
16738 (extendqisi2 for register input splitter): New.
16739 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
16740 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
16741 and add support for a register alternative requiring a split.
16742 (thumb1_zero_extendqisi2): Likewise.
16743 (arm_zero_extendqisi2): Likewise.
16744 (arm_extendhisi2): Likewise.
16745 (arm_extendqisi2): Likewise.
16747 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
16749 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
16750 instead of an unspec.
16751 (neon_expand_vector_init): Likewise.
16752 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
16753 (UNSPEC_VDUP_LANE): Delete.
16754 (UNSPEC VDUP_N): Delete.
16755 (UNSPEC_VGET_HIGH): Delete.
16756 (UNSPEC_VGET_LANE): Delete.
16757 (UNSPEC_VGET_LOW): Delete.
16758 (UNSPEC_VMVN): Delete.
16759 (UNSPEC_VSET_LANE): Delete.
16760 (V_double_vector_mode): New.
16761 (vec_set<mode>_internal): Make code emitted match that for the
16762 corresponding intrinsics.
16763 (vec_setv2di_internal): Likewise.
16764 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
16765 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
16766 (neon_vset_lane<mode>): Combine double and quad patterns and
16767 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
16768 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
16769 (neon_vdup_n<mode>): Rewrite RTL without unspec.
16770 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
16771 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
16772 with neon_vdup_lanev2di, adjusting the pattern from the latter
16773 to be predicable for consistency.
16774 (neon_vdup_lane<mode>_internal): New.
16775 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
16776 to avoid using an unspec.
16777 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
16778 (neon_vdup_lanev2di): Turn into a define_expand.
16779 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
16780 (neon_vget_high<mode>): Replace with....
16781 (neon_vget_highv16qi): New pattern using canonical RTL.
16782 (neon_vget_highv8hi): Likewise.
16783 (neon_vget_highv4si): Likewise.
16784 (neon_vget_highv4sf): Likewise.
16785 (neon_vget_highv2di): Likewise.
16786 (neon_vget_low<mode>): Replace with....
16787 (neon_vget_lowv16qi): New pattern using canonical RTL.
16788 (neon_vget_lowv8hi): Likewise.
16789 (neon_vget_lowv4si): Likewise.
16790 (neon_vget_lowv4sf): Likewise.
16791 (neon_vget_lowv2di): Likewise.
16793 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
16794 test for this emitting vmov.
16795 (Vset_lane): Likewise.
16796 (Vdup_n): Likewise.
16797 (Vmov_n): Likewise.
16799 * doc/arm-neon-intrinsics.texi: Regenerated.
16801 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
16803 * config/arm/neon.md (vec_extractv2di): Correct error in register
16804 numbering to reconcile with neon_vget_lanev2di.
16806 2010-07-02 Richard Guenther <rguenther@suse.de>
16808 * tree-ssa-structalias.c (pt_solution_set_var): New function.
16809 * tree-ssa-alias.h (pt_solution_set_var): Declare.
16810 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
16811 points-to information.
16813 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
16815 * config/s390/s390.c (override_options): Adopt prefetching
16816 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
16818 2010-07-02 Jan Hubicka <jh@suse.cz>
16820 * df-problems.c (df_kill_notes): Do not collect dead notes.
16821 (df_set_note): Just call add_reg_note.
16822 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
16823 df_create_unused_note): Do not deal with lists of old notes.
16824 (df_note_bb_compute): Likewise.
16826 2010-07-02 Richard Guenther <rguenther@suse.de>
16828 * tree-ssa-structalias.c (find_func_aliases): Handle
16829 pointer alignment via BIT_AND_EXPR.
16830 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
16832 2010-07-02 Richard Guenther <rguenther@suse.de>
16834 * tree-data-ref.c (initialize_data_dependence_relation): Handle
16835 mismatching number of dimensions properly.
16837 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16840 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
16841 (lo_sum (high ...) ...) patterns generated by earlier passes.
16843 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16845 * doc/install.texi (Prerequisites): Document Perl requirement on
16847 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
16849 2010-07-02 Richard Guenther <rguenther@suse.de>
16851 PR middle-end/44777
16852 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
16854 2010-07-02 Jan Hubicka <jh@suse.cz>
16856 PR middle-end/44706
16857 * predict.c (predict_paths_for_bb): Handle case when control dependence
16858 BB has only abnormal edges.
16860 2010-07-02 Richard Guenther <rguenther@suse.de>
16862 PR tree-optimization/44748
16863 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
16864 the embedded conversion in MEM_REFs.
16866 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
16868 * reload.c: Include toplev.h.
16869 * recog.c: Likewise.
16870 * Makefile.in: Adjust dependencies.
16872 2010-07-01 Jakub Jelinek <jakub@redhat.com>
16875 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
16876 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
16878 2010-07-01 Richard Guenther <rguenther@suse.de>
16880 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
16883 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
16886 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
16887 Fix argument types.
16889 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
16892 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
16893 Make sure operand 0 dies.
16895 2010-07-01 Richard Guenther <rguenther@suse.de>
16897 PR middle-end/42834
16898 PR middle-end/44468
16899 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
16900 * doc/generic.texi (References to storage): Document MEM_REF.
16901 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
16902 (print_call_name): Likewise.
16903 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
16904 (build_simple_mem_ref_loc): New function.
16905 (mem_ref_offset): Likewise.
16906 * tree.h (build_simple_mem_ref_loc): Declare.
16907 (build_simple_mem_ref): Define.
16908 (mem_ref_offset): Declare.
16909 * fold-const.c: Include tree-flow.h.
16910 (operand_equal_p): Handle MEM_REF.
16911 (build_fold_addr_expr_with_type_loc): Likewise.
16912 (fold_comparison): Likewise.
16913 (fold_unary_loc): Fold
16914 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
16915 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
16916 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
16917 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
16918 (ptr_deref_may_alias_ref_p_1): Likewise.
16919 (ao_ref_base_alias_set): Properly differentiate base object for
16921 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
16922 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
16923 (indirect_refs_may_alias_p): Likewise.
16924 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
16926 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
16927 (call_may_clobber_ref_p_1): Likewise.
16928 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
16929 * expr.c (expand_assignment): Handle MEM_REF.
16930 (store_expr): Handle MEM_REFs from STRING_CSTs.
16931 (store_field): If expanding a MEM_REF of a non-addressable
16932 decl use bitfield operations.
16933 (get_inner_reference): Handle MEM_REF.
16934 (expand_expr_addr_expr_1): Likewise.
16935 (expand_expr_real_1): Likewise.
16936 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
16937 * alias.c (ao_ref_from_mem): Handle MEM_REF.
16938 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
16939 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
16940 (dr_analyze_indices): Likewise.
16941 (dr_analyze_alias): Likewise.
16942 (object_address_invariant_in_loop_p): Likewise.
16943 * gimplify.c (mark_addressable): Handle MEM_REF.
16944 (gimplify_cond_expr): Build MEM_REFs.
16945 (gimplify_modify_expr_to_memcpy): Likewise.
16946 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
16947 (gimple_fold_indirect_ref): Adjust.
16948 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
16949 * tree.def (MEM_REF): New tree code.
16950 * tree-dfa.c: Include toplev.h.
16951 (get_ref_base_and_extent): Handle MEM_REF.
16952 (get_addr_base_and_unit_offset): New function.
16953 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
16954 * gimple-fold.c (may_propagate_address_into_dereference): Handle
16956 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
16957 accesses if the array has just one dimension. Remove always true
16958 parameter. Do not require type compatibility here.
16959 (maybe_fold_offset_to_component_ref): Remove.
16960 (maybe_fold_stmt_indirect): Remove.
16961 (maybe_fold_reference): Remove INDIRECT_REF handling.
16962 Fold back to non-MEM_REF.
16963 (maybe_fold_offset_to_address): Simplify. Deal with type
16965 (maybe_fold_reference): Likewise.
16966 (maybe_fold_stmt_addition): Likewise. Also handle
16967 &ARRAY + I in addition to &ARRAY[0] + I.
16968 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
16969 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
16970 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
16971 * tree-ssa.c (useless_type_conversion_p): Make most pointer
16972 conversions useless.
16973 (warn_uninitialized_var): Handle MEM_REF.
16974 (maybe_rewrite_mem_ref_base): New function.
16975 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
16977 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
16978 INDIRECT_REF handling.
16979 (copy_tree_body_r): Handle MEM_REF.
16980 * gimple.c (is_gimple_addressable): Adjust.
16981 (is_gimple_address): Likewise.
16982 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
16983 invariant base are invariant.
16984 (is_gimple_min_lval): Adjust.
16985 (is_gimple_mem_ref_addr): New function.
16986 (get_base_address): Handle MEM_REF.
16987 (count_ptr_derefs): Likewise.
16988 (get_base_loadstore): Likewise.
16989 * gimple.h (is_gimple_mem_ref_addr): Declare.
16990 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
16991 * tree-cfg.c (verify_address): New function, split out from ...
16992 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
16993 the address operand of MEM_REFs. Verify MEM_REFs. Reject
16995 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
16996 INDIRECT_REF. Allow conversions.
16997 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
16998 a register does not change its size.
16999 (verify_types_in_gimple_reference): Verify MEM_REF.
17000 (verify_gimple_assign_single): Disallow INDIRECT_REF.
17002 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
17004 (mark_address_taken): Handle MEM_REF.
17005 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
17006 (get_asm_expr_operands): Pass opf_not_non_addressable.
17007 (get_expr_operands): Handle opf_[not_]non_addressable.
17008 Handle MEM_REF. Remove INDIRECT_REF handling.
17009 * tree-vrp.c (check_array_ref): Handle MEM_REF.
17010 (search_for_addr_array): Likewise.
17011 (check_array_bounds): Likewise.
17012 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
17013 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
17014 (ref_always_accessed_p): Likewise.
17015 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
17016 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
17018 * cgraphbuild.c (mark_load): Properly check for NULL result
17019 from get_base_address.
17020 (mark_store): Likewise.
17021 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
17022 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
17023 handling for MEM_REF.
17024 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
17025 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
17026 * builtins.c (stabilize_va_list_loc): Use the function ABI
17027 valist type if we couldn't canonicalize the argument type.
17028 Always dereference with the canonical va-list type.
17029 (maybe_emit_free_warning): Handle MEM_REF.
17030 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
17032 * builtins.c (fold_builtin_memory_op): Use ref-all types
17033 for all memcpy foldings.
17034 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
17035 (build_outer_var_ref): Likewise.
17036 (scan_omp_1_op): Likewise.
17037 (lower_rec_input_clauses): Likewise.
17038 (lower_lastprivate_clauses): Likewise.
17039 (lower_reduction_clauses): Likewise.
17040 (lower_copyprivate_clauses): Likewise.
17041 (expand_omp_atomic_pipeline): Likewise.
17042 (expand_omp_atomic_mutex): Likewise.
17043 (create_task_copyfn): Likewise.
17044 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
17045 Remove old union trick. Initialize constant offsets.
17046 (ao_ref_init_from_vn_reference): Likewise. Do not handle
17047 INDIRECT_REF. Init base_alias_set properly.
17048 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
17049 (vn_reference_fold_indirect): Adjust for MEM_REFs.
17050 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
17052 (may_insert): Remove.
17053 (visit_reference_op_load): Do not test may_insert.
17054 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
17055 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
17056 a field to store the constant offset this op applies.
17057 (run_scc_vn): Adjust prototype.
17058 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
17059 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
17060 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
17061 bother about volatile qualifiers on pointers.
17062 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
17063 * tree-ssa-loop-ivopts.c
17064 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
17065 (strip_offset_1): Likewise.
17066 (find_interesting_uses_address): Replace INDIRECT_REF handling with
17068 (get_computation_cost_at): Likewise.
17069 * ipa-pure-const.c (check_op): Handle MEM_REF.
17070 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
17071 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
17073 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
17074 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
17075 (eliminate_local_variables_1): Likewise.
17076 (create_call_for_reduction_1): Likewise.
17077 (create_loads_for_reductions): Likewise.
17078 (create_loads_and_stores_for_name): Likewise.
17079 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
17080 (ssa_accessed_in_tree): Handle MEM_REF.
17081 (ssa_accessed_in_assign_rhs): Likewise.
17082 (update_type_size): Likewise.
17083 (analyze_accesses_for_call_stmt): Likewise.
17084 (analyze_accesses_for_assign_stmt): Likewise.
17085 (transform_access_sites): Likewise.
17086 (transform_allocation_sites): Likewise.
17087 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
17088 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
17089 not handle INDIRECT_REF.
17090 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
17091 (cond_store_replacement): Likewise.
17092 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
17093 MEM_REF, no not handle INDIRECT_REFs.
17094 (insert_into_preds_of_block): Properly initialize avail.
17095 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
17096 for ARRAY_REFs. Properly handle reference lookups that
17097 require a bit re-interpretation.
17098 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
17099 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
17100 (build_ref_for_offset_1): Remove.
17101 (build_ref_for_offset): Build MEM_REFs.
17102 (gate_intra_sra): Disable for now.
17103 (sra_ipa_modify_expr): Handle MEM_REF.
17104 (ipa_early_sra_gate): Disable for now.
17105 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
17107 (disqualify_base_of_expr): Likewise.
17108 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
17110 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
17111 Use mem_ref_offset. Remove bogus folding.
17112 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
17113 (make_fancy_name_1): Add support for MEM_REF.
17114 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
17115 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
17116 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
17117 (compute_complex_ancestor_jump_func): Likewise.
17118 (ipa_analyze_virtual_call_uses): Likewise.
17119 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
17120 INDIRECT_REF folding with more generalized MEM_REF folding.
17121 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
17122 (forward_propagate_addr_into_variable_array_index): Also handle
17123 &ARRAY + I in addition to &ARRAY[0] + I.
17124 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
17125 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
17126 creates assignments with overlap.
17127 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
17128 (get_frame_field): Likewise.
17129 (get_nonlocal_debug_decl): Likewise.
17130 (convert_nonlocal_reference_op): Likewise.
17131 (struct nesting_info): Add mem_refs pointer-set.
17132 (create_nesting_tree): Allocate it.
17133 (convert_local_reference_op): Insert to be folded mem-refs.
17134 (fold_mem_refs): New function.
17135 (finalize_nesting_tree_1): Perform defered folding of mem-refs
17136 (free_nesting_tree): Free the pointer-set.
17137 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
17138 (vectorizable_load): Likewise.
17139 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
17140 (propagate_with_phi): Likewise.
17141 * tree-object-size.c (addr_object_size): Handle MEM_REFs
17142 instead of INDIRECT_REFs.
17143 (compute_object_offset): Handle MEM_REF.
17144 (plus_stmt_object_size): Handle MEM_REF.
17145 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
17147 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
17148 (symbol_marked_for_renaming): Likewise.
17149 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
17150 (fold-const.o): Add $(TREE_FLOW_H).
17151 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
17152 (find_func_clobbers): Likewise.
17153 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
17154 (decompose_access): Likewise.
17155 (replace_field_acc): Likewise.
17156 (replace_field_access_stmt): Likewise.
17157 (insert_new_var_in_stmt): Likewise.
17158 (get_stmt_accesses): Likewise.
17159 (reorg_structs_drive): Disable.
17160 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
17161 (ix86_canonical_va_list_type): Likewise.
17163 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
17166 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
17167 * target.def (struct gcc_target): Replace enum reg_class with
17168 reg_class_t in hook argument / return types.
17169 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
17170 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
17171 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
17172 * targhooks.h (default_branch_target_register_class): Likewise.
17173 (default_ira_cover_classes, default_secondary_reload): Likewise.
17174 (default_memory_move_cost, default_register_move_cost): Likewise.
17175 * targhooks.c (default_branch_target_register_class): Likewise.
17176 (default_ira_cover_classes, default_secondary_reload): Likewise.
17177 (default_memory_move_cost, default_register_move_cost): Likewise.
17178 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
17179 * bt-load.c (branch_target_load_optimize): Likewise.
17180 * ira.c (setup_cover_and_important_classes): Likewise.
17181 * ira-costs.c (copy_cost): Likewise.
17182 * reload1.c (emit_input_reload_insns): Likewise.
17183 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
17184 * config/frv/frv.c (frv_secondary_reload): Likewise.
17185 * config/s390/s390.c (s390_secondary_reload): Likewise.
17186 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
17187 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
17188 (ix86_register_move_cost): Likewise.
17189 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
17190 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
17191 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
17192 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
17193 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
17194 (rs6000_ira_cover_classes): Likewise.
17195 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
17196 * config/picochip/picochip-protos.h (picochip_secondary_reload):
17198 * config/pa/pa.c (pa_secondary_reload): Likewise.
17199 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
17200 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
17201 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
17202 * doc/tm.texi: Regenerate.
17204 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
17206 PR bootstrrap/44726
17207 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
17209 (build_alias_set_optimal_p): Likewise.
17210 (build_base_obj_set_for_drs): Likewise.
17212 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
17214 * target.def: Remove comment about licensing problems of function
17217 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
17218 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
17219 * doc/tm.texi: Regenerate.
17221 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
17222 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
17224 * target.def (enum_va_list_p): Use DEFHOOK.
17225 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
17226 Rename ptype to ptree.
17227 * doc/tm.texi: Regenerate.
17229 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
17230 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
17231 * doc/tm.texi: Regenerate.
17233 * target.def (memory_move_cost): Use DEFHOOK.
17234 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
17235 Rename regclass AKA class to rclass.
17236 * doc/tm.texi: Regenerate.
17238 * target.def (pragma_parse): Use DEFHOOK.
17239 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
17240 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
17241 * doc/tm.texi: Regenerate.
17243 * target.def (pass_by_reference): Use DEFHOOK.
17244 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
17245 * doc/tm.texi: Regenerate.
17247 * target.def (resolve_overloaded_builtin): Rename params to arglist.
17249 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
17250 * doc/tm.texi: Regenerate.
17252 * target.def (return_pops_args): Use DEFHOOK.
17253 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
17254 Rename stack-size to size.
17255 * doc/tm.texi: Regenerate.
17257 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
17258 last-sched_cycle to last_clock, cur_cycle to clock.
17259 * doc/tm.texi.in: Use @hook.
17260 * doc/tm.texi: Regenerate.
17262 * target.def (print_operand, print_operand_address): Update comment.
17263 (print_operand_punct_valid_p): Likewise.
17265 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
17267 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
17269 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
17270 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
17271 * rtl-error.h: New.
17272 * regrename.c: Do not include toplev.h. Include rtl-error.h.
17273 * rtl-error.c: Likewise.
17274 * reload.c: Likewise.
17275 * recog.c: Likewise.
17276 * sel-sched.c: Likewise.
17277 * function.c: Likewise.
17278 * reg-stack.c: Likewise.
17279 * cfgrtl.c: Likewise.
17280 * reload1.c: Likewise.
17281 * final.c: Include rtl-error.
17282 * Makefile.in: Adjust dependencies.
17284 2010-06-30 Jan Hubicka <jh@suse.cz>
17286 PR middle-end/PR44706
17287 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
17288 to return the value.
17290 2010-06-30 Michael Matz <matz@suse.de>
17293 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
17294 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
17295 a gimple reg, attach the original VDEF to the last store in the
17298 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
17301 * config/darwin.c (darwin_override_options): Use renamed
17302 targetm.asm_out.emit_unwind_label.
17304 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
17306 PR tree-optimization/39799
17307 * tree-inline.c (remap_ssa_name): Initialize variable only if
17308 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
17310 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
17312 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
17314 2010-06-30 Richard Guenther <rguenther@suse.de>
17317 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
17318 against oscillation with reverse peephole2.
17320 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
17323 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
17326 2010-06-30 Nick Clifton <nickc@redhat.com>
17328 * config/rx/rx-modes.def: New file.
17329 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
17330 (CC_REGNUM): Define.
17331 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
17333 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
17334 (SELECT_CC_MODE): Define.
17335 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
17336 (reg:CC CC_REG) instead of (cc0).
17337 (attr "cc"): Delete.
17338 (cbranchsi4): Do not split compare and branch here. Instead move
17340 (cbranchsi4_<code>): ... here. New patterns.
17341 (cmpsi): Call rx-compare_redundant to find out if it is necessary
17342 to emit the compare instruction.
17343 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
17345 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
17346 FIRST_PSEUDO_REGNUM.
17347 (rx_expand_prologue, rx_expand_epilogue): Likewise.
17348 (rx_notice_update_cc): Delete.
17349 (rx_cc_modes_compatible): New function.
17350 (flags_needed_for_conditional): New function.
17351 (flags_from_mode): New function.
17352 (rx_compare_redundant): New function - scans backwards through
17353 insn list to find out if condition flags are already set correctly.
17354 (TARGET_CC_MODES_COMPATIBLE): Define.
17355 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
17357 * config/rx/rx.h (BRANCH_COST): Define.
17358 (REGISTER_MOVE_COST): Define.
17359 * config/rx/predicates (rx_source_operand): Allow all constant types.
17360 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
17361 (tstsi4): New pattern.
17362 * config/rx/rx.c (rx_memory_move_cost): Define.
17363 (TARGET_MEMORY_MOVE_COST): Define.
17365 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
17367 * tree.h (block_may_fallthru): Declare here.
17368 * tree-flow.h (block_may_fallthru): Do not declare here.
17369 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
17371 * Makefile.in (c-typeck.o): Update dependencies.
17373 2010-06-30 Jakub Jelinek <jakub@redhat.com>
17376 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
17377 * cselib.c (cfa_base_preserved_regno): New static variable.
17378 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
17379 of REGNO (cfa_base_preserved_val->locs->loc).
17380 (cselib_preserve_cfa_base_value): Add regno argument, set
17381 cfa_base_preserved_regno to it.
17382 (cselib_invalidate_regno): Allow removal of registers other than
17383 cfa_base_preserved_regno from cfa_base_preserved_val.
17384 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
17385 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
17386 of MEM addresses, if not on LHS.
17387 (reverse_op): Don't add reverse ops for cfa_base_rtx.
17388 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
17390 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
17392 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
17394 (peep2_buf_position): New static function.
17395 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
17396 peephole2_optimize): Use it.
17397 (peep2_attempt, peep2_update_life): New static functions, broken out
17398 of peephole2_optimize.
17399 (peep2_fill_buffer): New static function.
17400 (peephole2_optimize): Change the main loop to try to fill the buffer
17401 with the maximum number of insns before matching them against
17402 peepholes. Use a forward scan. Remove special case for targets with
17403 conditional execution.
17404 * genrecog.c (change_state): Delete dead code.
17405 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
17406 Rewrite so as not to expect the second insn to have had a peephole
17409 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
17411 * genhooks.c (emit_findices): Cast field precision to int.
17412 (emit_documentation): Likewise.
17414 2010-06-29 Jakub Jelinek <jakub@redhat.com>
17416 PR tree-optimization/43801
17417 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
17418 if old_decl was DECL_ONE_ONLY.
17421 * dwarf2out.c (add_accessibility_attribute): New function.
17422 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
17423 instead of adding DW_AT_accessibility manually.
17424 (gen_enumeration_type_die, gen_struct_or_union_type_die,
17425 gen_typedef_die): Use it.
17427 2010-06-29 Douglas B Rupp <rupp@gnat.com>
17429 * vmsdbgout.c (full_name): Just output the file name if not native.
17431 2010-06-29 Douglas B Rupp <rupp@gnat.com>
17433 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
17434 (funcnam_table): New static table.
17435 (funcnum_table): New static table.
17436 (write_rtnbeg): Write value saved in funcnum_table.
17437 (write_rtnend): Write value saved in funcnum_table.
17438 (vmsdbgout_begin_function): Save current function info in
17439 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
17440 (vmsdbgout_finish): Iterate over funcnum_table.
17442 2010-06-29 Douglas B Rupp <rupp@gnat.com>
17444 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
17445 (vmsdbgout_type_decl): Declare
17446 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
17447 (FUNC_EPILOGUE_LABEL): New macro
17448 (vmsdbgout_begin_epilogue): New function.
17449 (vmsdbgout_type_decl): New function.
17451 2010-06-29 Douglas B Rupp <rupp@gnat.com>
17453 * vmsdbg.h: Update copyright.
17455 2010-06-29 Douglas B Rupp <rupp@gnat.com>
17457 * vmsdbg.h (DST_K_TBG): New DST constant.
17458 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
17459 (write_modbeg): Cast module_language to avoid warning.
17460 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
17462 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
17465 * target.def, doc/tm.texi.in, genhooks.c: New files.
17466 * target.h: Instead of defining individual hook members,
17467 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
17468 include target.def.
17469 * target-def.h: Instead of defining individual hook initializers,
17470 include target-hooks-def.h.
17471 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
17472 targetm.live_on_entry -> targetm.extra_live_on_entry
17473 targetm.sched.md_finish ->targetm.sched.finish
17474 targetm.sched.md_init -> targetm.sched.init
17475 targetm.sched.md_init_global -> targetm.sched.init_global
17476 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
17477 targetm.asm_out.except_table_label ->
17478 targetm.asm_out.emit_except_table_label
17479 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
17480 targetm.target_help -> targetm.help
17481 targetm.vectorize.builtin_support_vector_misalignment ->
17482 targetm.vectorize.support_vector_misalignment
17483 targetm.file_start_app_off -> targetm.asm_file_start_app_off
17484 targetm.file_start_file_directive ->
17485 targetm.asm_file_start_file_directive
17486 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
17487 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
17488 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
17489 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
17490 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
17491 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
17492 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
17493 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
17494 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
17495 * Makefile.in (TARGET_H): Depend on target.def.
17496 (TARGET_DEF_H): Depend on target-hooks-def.h.
17497 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
17498 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
17499 * doc/tm.texi: Regenerate.
17501 * Makefile.in (s-tm-texi): Remove stray tab / rule.
17503 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
17504 (targetm.sched.init): Likewise.
17506 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
17509 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
17510 (function_arg_advance_32): Const-ify TYPE parameter.
17511 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
17512 (ix86_function_arg_advance): Change type of NAMED to bool.
17513 (function_arg_32): Const-ify CUM and TYPE parameters.
17514 (function_arg_64): Likewise. Change type of NAMED to bool.
17515 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
17517 (ix86_function_arg): Change type of NAMED to bool.
17518 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
17519 last argument as a bool.
17521 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
17523 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
17524 (OVERRIDE_OPTIONS): Add note of obsolescence.
17525 Replace references with references to TARGET_OPTION_OVERRIDE.
17526 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
17528 * targhooks.c (default_target_option_override): New function.
17529 * targhooks.h (default_target_option_override): Declare.
17530 * target.h (struct gcc_target): Add override member to
17531 target_option member.
17532 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
17533 targetm.target_option.override call.
17534 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
17535 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
17537 2010-06-29 Jan Hubicka <jh@suse.cz>
17539 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
17541 2010-06-29 Jan Hubicka <jh@suse.cz>
17543 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
17545 (rebuild_frequencies): New function.
17546 * predict.h (rebuild_frequencies): Declare.
17547 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
17548 entry block and edge reaching new_entry.
17549 (tree_function_versioning): When doing partial cloning, rebuild
17550 frequencies when done.
17551 * passes.c (execute_function_todo): Use rebild_frequencies.
17553 2010-06-29 Richard Guenther <rguenther@suse.de>
17555 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
17556 * tree-flow.h (enum noalias_state): Remove.
17557 (struct var_ann_d): Remove noalias_state member.
17559 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
17562 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
17563 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
17564 (maddhidi4): Likewise.
17566 Revert parts of the change for PR25130.
17567 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
17570 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
17572 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
17573 targetm.calls.function_incoming_arg, and
17574 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
17575 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
17576 * target.h (struct gcc_target): Add function_arg_advance,
17577 function_arg, and function_incoming_arg fields.
17578 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
17579 (TARGET_FUNCTION_INCOMING_ARG): Define.
17580 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
17581 and TARGET_FUNCTION_INCOMING_ARG.
17582 * targhooks.h (default_function_arg_advance): Declare.
17583 (default_function_arg, default_function_incoming_arg): Declare.
17584 * targhooks.c (default_function_arg_advance): New function.
17585 (default_function_arg, default_function_incoming_arg): New function.
17586 * config/i386/i386.c (function_arg_advance): Rename to...
17587 (ix86_function_arg_advance): ...this. Make static.
17588 (function_arg): Rename to...
17589 (ix86_function_arg): ...this. Make static.
17590 (TARGET_FUNCTION_ARG_ADVANCE): Define.
17591 (TARGET_FUNCTION_ARG): Define.
17592 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
17593 (FUNCTION_ARG): Delete.
17594 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
17595 (function_arg): Delete prototype.
17597 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
17599 * reginfo.c (init_reg_sets_1): Adjust comments.
17600 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
17601 * calls.c (prepare_call_address): Likewise.
17602 (emit_call_1): Use targetm.calls.return_pops_args.
17603 (expand_call): Likewise.
17604 * function.c (assign_parms): Likewise.
17605 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
17606 * target.h (struct gcc_target) [struct calls]: Add
17607 return_pops_args field.
17608 * targhooks.h (default_return_pops_args): Declare.
17609 * targhooks.c (default_return_pops_args): Define.
17610 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
17611 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
17612 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
17613 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
17615 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
17616 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
17617 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
17618 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
17619 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
17620 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
17621 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
17622 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
17623 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
17624 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
17625 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
17626 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
17627 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
17628 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
17629 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
17630 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
17631 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
17632 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
17633 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
17634 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
17635 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
17636 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
17637 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
17638 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
17639 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
17640 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
17641 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
17642 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
17643 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
17644 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
17645 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
17646 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
17647 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
17648 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
17649 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
17650 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
17651 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
17652 * config/i386/i386.c (ix86_return_pops_args): Make static.
17653 Constify arguments.
17654 (TARGET_RETURN_POPS_ARGS): Define.
17655 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
17656 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
17657 (TARGET_RETURN_POPS_ARGS): Define.
17658 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
17659 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
17660 (TARGET_RETURN_POPS_ARGS): Define.
17662 2010-06-29 Richard Guenther <rguenther@suse.de>
17664 PR middle-end/44667
17665 * tree-inline.c (initialize_inlined_parameters): Make sure
17666 to remap the inlined parameter variable substitutions types.
17668 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
17670 PR rtl-optimization/44659
17671 * combine.c (make_compound_operation) <SUBREG>: Do not return the
17672 result of force_to_mode if it partially re-expanded the compound.
17674 2010-06-28 Jan Hubicka <jh@suse.cz>
17676 PR middle-end/44671
17677 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
17680 2010-06-28 Anatoly Sokolov <aesok@post.ru>
17682 * double-int.h (force_fit_type_double): Remove declaration.
17683 * double-int.c (force_fit_type_double): Move to tree.c.
17684 * tree.h (force_fit_type_double): Declare.
17685 * tree.h (force_fit_type_double): Moved from double-int.c. Use
17686 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
17687 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
17688 * convert.c (convert_to_pointer): Adjust call to
17689 force_fit_type_double.
17690 * tree-vrp.c (extract_range_from_assert,
17691 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
17692 * fold-const.c: Update comment.
17693 (int_const_binop, fold_convert_const_int_from_int,
17694 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
17695 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
17696 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
17697 round_up_loc): Adjust call to force_fit_type_double.
17699 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17701 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
17703 2010-06-28 Martin Jambor <mjambor@suse.cz>
17705 * tree-sra.c (convert_callers): New parameter, change fndecls of
17707 (modify_function): Pass the old decl to convert_callers.
17709 2010-06-28 Martin Jambor <mjambor@suse.cz>
17711 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
17712 ipa_check_create_node_params and ipa_initialize_node_params with
17713 checking asserts they are not necessary.
17715 2010-06-28 Jan Hubicka <jh@suse.cz>
17717 PR tree-optimization/44687
17718 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
17720 2010-06-28 Martin Jambor <mjambor@suse.cz>
17723 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
17724 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
17725 instead of BINFO_BASE_BINFO.
17727 2010-06-28 Michael Matz <matz@suse.de>
17729 PR middle-end/44592
17730 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
17731 proper VDEF chain for intermediate stores in the sequence.
17733 2010-06-28 Jan Hubicka <jh@suse.cz>
17735 PR tree-optimization/44357
17736 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
17737 uninlinable functions.
17739 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17741 * config.gcc (powerpc*-*-*): Handle titan.
17742 * config/rs6000/rs6000.c (titan_cost): New costs.
17743 (rs6000_override_options): Add "titan" to processor_target_table.
17744 Add Titan to branch alignment logic.
17745 Correctly set rs6000_cost for titan.
17746 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
17747 * config/rs6000/titan.md: New file.
17748 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
17750 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
17752 * tree-browser.c (TB_history_stack): Convert to a VEC.
17753 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
17754 (TB_history_prev): Likewise.
17756 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
17758 * vec.h (vec_heap_free): Add parentheses around free.
17760 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
17762 * system.h: Poison GCC_EXCEPT_H for front-end files.
17764 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
17766 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
17767 Define to NULL by default.
17768 * except.h: Define GCC_EXCEPT_H.
17769 (doing_eh): Remove prototype.
17770 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
17771 (lang_protect_cleanup_actions): Remove.
17772 * except.c (lang_protect_cleanup_actions): Remove.
17773 (doing_eh): Remove.
17774 (gen_eh_region): Don't check doing_eh here.
17775 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
17776 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
17777 instead of lang_protect_cleanup_actions.
17778 * omp-low.c (maybe_catch_exception): Likewise.
17779 * Makefile.in: Update dependencies.
17781 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
17783 * cgraph.h (struct varpool_node): new used_from_object_file flag.
17784 (struct cgraph_local_info): new used_from_object_file flag.
17785 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
17786 (cgraph_clone_node): initialize used_from_object_file.
17787 (cgraph_create_virtual_clone): initialize used_from_object_file.
17788 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
17789 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
17790 when compiling with -fwhole-program.
17791 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
17793 * ipa.c (function_and_variable_visibility): Set externally_visible
17794 flag of varpool_node if used_from_object_file flag is set.
17795 (cgraph_externally_visible_p): check used_from_object_file flag.
17796 * doc/invoke.texi (-fwhole-program option): Change description of
17797 externally_visible attribute accordingly.
17798 * doc/extend.texi (externally_visible): Ditto.
17800 2010-06-27 Jan Hubicka <jh@suse.cz>
17802 * params.def (max-inline-insns-auto): Default to 40.
17803 * doc/invoke.texi (max-inline-insns-auto): Document the change.
17805 2010-06-27 Jan Hubicka <jh@suse.cz>
17807 PR middle-end/44671
17808 PR middle-end/44686
17809 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
17811 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
17812 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
17814 2010-06-27 Anatoly Sokolov <aesok@post.ru>
17816 * target.h (struct gcc_target): Add register_move_cost field.
17817 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
17818 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
17819 * targhooks.c (default_register_move_cost): New function.
17820 * targhooks.h (default_register_move_cost): Declare function.
17821 * defaults.h (REGISTER_MOVE_COST): Delete.
17822 * ira-int.h (ira_register_move_cost): Update comment.
17823 * ira.c (ira_register_move_cost): Update comment.
17824 * reload.h (register_move_cost): Declare.
17825 * reginfo.c (register_move_cost): New function.
17826 (move_cost): Update comment.
17827 (init_move_cost, memory_move_secondary_cost): Replace
17828 REGISTER_MOVE_COST with register_move_cost.
17829 * postreload.c (reload_cse_simplify_set): (Ditto.).
17830 * reload.c (find_valid_class, find_reloads): (Ditto.).
17831 * reload1.c (choose_reload_regs): (Ditto.).
17832 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
17833 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
17834 * doc/md.texi (can_create_pseudo_p): Update documentation.
17836 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
17837 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
17838 * config/i386/i386.h (ix86_memory_move_cost): Make static.
17839 (TARGET_MEMORY_MOVE_COST): Define.
17841 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
17842 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
17843 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
17844 (TARGET_MEMORY_MOVE_COST): Define.
17846 2010-06-27 Richard Guenther <rguenther@suse.de>
17848 PR tree-optimization/44683
17849 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
17850 false edge from the inverted condition.
17852 2010-06-27 Richard Guenther <rguenther@suse.de>
17854 PR middle-end/44684
17855 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
17856 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
17857 for register LHS. Or non-store assignments.
17859 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
17861 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
17862 (sparc_emit_set_const64): Likewise. Remove disabled code.
17863 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
17864 (sparc_emit_set_const64): Likewise.
17866 2010-06-26 Catherine Moore <clm@codesourcery.com>
17868 * config/mips/mips.md (alu_type): New attribute.
17869 (type): Infer type from alu_type.
17870 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
17871 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
17872 *subsi3_extended, negsi2, negdi2, *low<mode>,
17873 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
17874 xor<mode>3, *nor<mode>3,
17875 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
17876 *zero_extendhi_truncqi): Set alu_type instead of type.
17878 2010-06-26 Douglas B Rupp <rupp@gnat.com>
17880 * config/alpha/alpha.c (alpha_need_linkage): Adjust
17881 splay_tree_new_ggc call.
17882 (alpha_use_linkage): Likewise.
17884 2010-06-26 Joseph Myers <joseph@codesourcery.com>
17886 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
17887 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
17888 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
17889 (static_specs): Remove switches_need_spaces.
17890 (process_command, do_self_spec): Hardcode handling "-o" instead of
17891 checking switches_need_spaces.
17892 * system.h (SWITCHES_NEED_SPACES): Poison.
17894 2010-06-26 Richard Guenther <rguenther@suse.de>
17896 PR tree-optimization/44393
17897 * tree-loop-distribution.c (generate_loops_for_partition): Fix
17898 stmt removal and VOP renaming.
17899 (generate_memset_zero): Remove redundant stmt updating.
17900 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
17901 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
17903 2010-06-26 Jan Hubicka <jh@suse.cz>
17905 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
17906 edges comming from header are equivalent.
17907 (visit_bb): Handle PHIs correctly.
17908 * tree-inline.c (copy_phis_for_bb): Be able to copy
17909 PHI from entry edge.
17910 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
17912 2010-06-26 Richard Guenther <rguenther@suse.de>
17914 PR middle-end/44674
17915 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
17916 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
17918 2010-06-26 Joseph Myers <joseph@codesourcery.com>
17920 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
17921 add_infile, alloc_switch): New.
17922 (process_command): Remove variable lang_n_infiles. Process
17923 options in a single pass. Use new functions for allocating
17924 infiles and switches arrays. Properly skip operands of
17925 -Xpreprocessor and -Xassembler.
17927 2010-06-26 Jan Hubicka <jh@suse.cz>
17929 PR middle-end/44671
17930 * cgraphunit.c (cgraph_function_versioning): Remove wrong
17931 cgraph_make_decl_local call; fix typo copying RTL data.
17933 2010-06-25 DJ Delorie <dj@redhat.com>
17935 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
17936 (m32c_output_aligned_common): Likewise.
17937 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
17938 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
17939 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
17940 (m32c_register_pragmas): Register it.
17941 * config/m32c/m32c.c (m32c_get_pragma_address): New.
17942 (m32c_insert_attributes): Set #pragma address decls volatile.
17943 (pragma_entry_eq): New.
17944 (pragma_entry_hash): New.
17945 (m32c_note_pragma_address): New.
17946 (m32c_get_pragma_address): New.
17947 (m32c_output_aligned_common): New.
17948 * doc/extend.texi: Document the new pragma.
17950 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
17952 * config/m32c/predicates.md (m32c_any_operand): Check the code
17953 instead of memory_operand so as to allow matching volatile MEMs.
17954 (m32c_nonimmediate_operand): Likewise.
17955 (mra_operand): Allow volatiles.
17957 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
17960 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
17961 address if the offset is unknown.
17963 2010-06-25 Douglas B Rupp <rupp@gnat.com>
17965 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
17966 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
17967 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
17968 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
17969 to ia64_start_function. Invoke it.
17970 * config/ia64/ia64.c (ia64_start_function): Call new function
17971 dwarf2out_vms_debug_main_pointer.
17973 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17975 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
17976 statements computing the true predicate.
17978 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17980 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
17981 to boolean_true_node.
17982 (reset_bb_predicate): New.
17983 (predicate_bbs): Call reset_bb_predicate.
17985 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17987 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
17988 (tree_if_conversion): Returns true when something has been changed.
17989 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
17992 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17994 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
17995 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
17996 * tree-if-conv.c: Include dbgcnt.h.
17997 (tree_if_conversion): Use if_conversion_tree to count the number of
17998 if-convertible loops.
18000 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
18002 * common.opt (fprefetch-loop-arrays): Re-define
18003 -fprefetch-loop-arrays as a tri-state option with the initial
18005 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
18006 pass only when flag_prefetch_loop_arrays > 0.
18007 * toplev.c (process_options): Note that, with tri-states,
18008 flag_prefetch_loop_arrays>0 means prefetching is enabled.
18009 * config/i386/i386.c (override_options): Enable prefetching at -O3
18010 for a set of CPUs that sw prefetching is helpful.
18011 (software_prefetching_beneficial_p): New. Return TRUE if software
18012 prefetching is beneficial for the given CPU.
18014 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
18016 PR rtl-optimization/44326
18017 * implicit-zee.c (find_removable_zero_extends): Replace
18018 INSN_P with NONDEBUG_INSN_P.
18020 2010-06-25 Martin Jambor <mjambor@suse.cz>
18022 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
18023 (struct ipa_node_params): Removed the modification_analysis_done flag.
18024 (ipa_is_param_modified): Removed.
18025 (ipa_analyze_node): Declare.
18026 (ipa_compute_jump_functions): Remove declaration.
18027 (ipa_count_arguments): Likewise.
18028 (ipa_detect_param_modifications): Likewise.
18029 (ipa_analyze_params_uses): Likewise.
18030 * ipa-prop.c (struct param_analysis_info): New type.
18031 (visit_store_addr_for_mod_analysis): Removed.
18032 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
18033 moved down in the file.
18034 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
18035 (ipa_count_arguments): Made static.
18036 (mark_modified): New function.
18037 (is_parm_modified_before_call): New function.
18038 (compute_pass_through_member_ptrs): New parameter parms_info, call
18039 is_parm_modified_before_call instead of ipa_is_param_modified.
18040 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
18041 it to compute_pass_through_member_ptrs.
18042 (ipa_compute_jump_functions): New parameter parms_info, pass it to
18043 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
18044 on the callee if it is analyzed. Made static.
18045 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
18046 is_parm_modified_before_call instead of ipa_is_param_modified.
18047 (ipa_analyze_call_uses): New parameter parms_info, pass it to
18048 ipa_analyze_indirect_call_uses.
18049 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
18050 ipa_analyze_call_uses.
18051 (ipa_analyze_params_uses): New parameter parms_info, pass it to
18052 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
18053 (ipa_analyze_node): New function.
18054 (ipa_print_node_params): Do not dump the modified flag.
18055 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
18056 it. Do not stream the modified parameter flag.
18057 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
18058 it. Do not stream the modified parameter flag.
18059 * ipa-cp.c (ipcp_analyze_node): Removed.
18060 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
18061 with only a call to ipa_analyze_node.
18062 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
18063 node with only a call to ipa_analyze_node.
18065 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
18067 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
18069 2010-06-25 Jan Hubicka <jh@suse.cz>
18071 * tree-pass.h (pass_split_functions): Declare.
18072 * opts.c (decode_options): Enable function splitting at -O2
18073 * timevar.def (TV_IPA_FNSPLIT): New macro.
18074 * ipa-split.c: New file.
18075 * common.opt (-fpartial-inlining): New flag.
18076 * Makefile.in (ipa-split.o): New object file.
18077 * passes.c (init_optimization_passes): Add ipa-split.
18078 * params.def (partial-inlining-entry-probability): New parameters.
18079 * doc/invoke.texi (-fpartial-inlining): New.
18081 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
18084 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
18085 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
18086 (gimplify_expr): Likewise.
18088 2010-06-25 Martin Jambor <mjambor@suse.cz>
18090 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
18091 statements instead of bailing out on them.
18092 (ipa_analyze_indirect_call_uses): Do not require that loads from the
18093 parameter are in the same BB as the condition. Update comments.
18095 2010-06-25 Jakub Jelinek <jakub@redhat.com>
18097 PR middle-end/43866
18098 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
18099 true or always false, return NULL_TREE.
18100 (tree_unswitch_single_loop): Optimize conditions even when reaching
18101 max-unswitch-level parameter. If num > 0, optimize first all conditions
18102 using entry checks, then do still reachable block discovery and consider
18103 only conditions in still reachable basic blocks in the loop.
18105 PR tree-optimization/44539
18106 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
18107 the call doesn't have LHS, but has VDEF.
18109 2010-06-25 Joseph Myers <joseph@codesourcery.com>
18111 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
18112 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
18113 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
18114 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
18115 * system.h (MODIFY_TARGET_NAME): Poison.
18117 2010-06-25 Alan Modra <amodra@gmail.com>
18119 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
18120 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
18121 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
18122 CMODEL_LARGE as default.
18123 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
18124 (offsettable_ok_by_alignment): Delete.
18125 (rs6000_emit_move): Remove mcmodel=medium optimization.
18127 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
18129 With large parts from Jim Wilson:
18131 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
18132 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
18133 * optabs.c (optab_for_tree_code): Likewise.
18134 (expand_widen_pattern_expr): Likewise.
18135 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
18136 out of execute_optimize_widening_mul.
18137 (convert_plusminus_to_widen): New function.
18138 (execute_optimize_widening_mul): Use the two new functions.
18139 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
18140 Remove code to generate widening multiply-accumulate. Add support
18141 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
18142 * gimple-pretty-print.c (dump_ternary_rhs): New function.
18143 (dump_gimple_assign): Call it when appropriate.
18144 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
18145 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
18146 (expand_gimple_stmt_1): Likewise.
18147 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
18148 WIDEN_MULT_MINUS_EXPR.
18149 * tree-ssa-operands.c (get_expr_operands): Likewise.
18150 * tree-inline.c (estimate_operator_cost): Likewise.
18151 * gimple.c (extract_ops_from_tree_1): Renamed from
18152 extract_ops_from_tree. Add new arg for a third operand; fill it.
18153 (gimple_build_assign_stat): Support operations with three operands.
18154 (gimple_build_assign_with_ops_stat): Likewise.
18155 (gimple_assign_set_rhs_from_tree): Likewise.
18156 (gimple_assign_set_rhs_with_ops_1): Renamed from
18157 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
18158 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
18159 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
18160 WIDEN_MULT_MINUS_EXPR.
18161 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
18162 (extract_ops_from_tree_1): Adjust declaration.
18163 (gimple_assign_set_rhs_with_ops_1): Likewise.
18164 (gimple_build_assign_with_ops): Pass NULL for last operand.
18165 (gimple_build_assign_with_ops3): New macro.
18166 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
18167 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
18169 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
18170 (verify_gimple_assign): Call it.
18171 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
18172 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
18173 functions for dealing with three-operand statements.
18174 * tree.c (commutative_ternary_tree_code): New function.
18175 * tree.h (commutative_ternary_tree_code): Declare it.
18176 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
18177 ternary statements.
18178 (gimple_assign_nonzero_warnv_p): Likewise.
18179 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
18180 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
18181 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
18182 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
18183 (struct hashtable_expr): New member ternary in the union.
18184 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
18185 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
18186 (iterative_hash_hashable_expr): Likewise.
18187 (print_expr_hash_elt): Handle EXPR_TERNARY.
18188 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
18189 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
18190 statements. Handle GIMPLE_TERNARY_RHS.
18192 2010-06-25 Jan Hubicka <jh@suse.cz>
18194 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
18196 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
18199 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
18200 parameters are not good.
18201 (c_parser_parameter_declaration): Error unknown type name if the type
18202 name can't start declaration specifiers.
18204 2010-06-25 Joseph Myers <joseph@codesourcery.com>
18206 * gcc.c (translate_options): Don't mention +e in comment.
18207 (process_command): Don't handle +e specially.
18209 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
18211 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
18213 * ira-build.c (merge_hard_reg_conflicts): New function.
18214 (create_cap_allocno, copy_info_to_removed_store_destinations,
18215 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
18216 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
18217 (remove_unnecessary_allocnos, remove_low_level_allocnos)
18218 copy_nifo_to_removed_store_destination): Use them.
18219 * ira-lives.c (make_hard_regno_born): New function, split out of
18221 (make_allocno_born): Likewise.
18222 (make_hard_regno_dead): New function, split out of make_regno_dead.
18223 (make_allocno_dead): Likewise.
18224 (inc_register_pressure): New function, split out of set_allocno_live.
18225 (dec_register_pressure): New function, split out of clear_allocno_live.
18226 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
18227 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
18228 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
18229 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
18230 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
18231 mark_pseudo_regno_live.
18232 (process_bb_node_lives): Use mark_pseudo_regno_live,
18233 make_hard_regno_born and make_allocno_dead.
18234 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
18235 set_allocno_live, clear_allocno_live): Delete functions.
18237 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
18238 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
18240 (ira_flattening): Use ira_parent_allocno.
18241 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
18242 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
18244 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
18247 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
18248 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
18249 minmax_set_iter_cond, minmax_set_iter_next,
18250 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
18251 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
18252 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
18253 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
18256 * ira-int.h (struct live_range, live_range_t): Renamed from struct
18257 ira_allocno_live_range and allocno_live_range_t; all uses changed.
18258 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
18261 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
18263 * thumb2.md (thumb2_tlobits_cbranch): Delete.
18264 (peephole2 to convert zero_extract/compare of single bit to
18265 lshift/compare): New.
18267 2010-06-24 Anatoly Sokolov <aesok@post.ru>
18269 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
18270 recursive call and call to 'int_const_binop'.
18271 (build_range_check, fold_cond_expr_with_comparison, unextend,
18272 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
18273 multiple_of_p): Adjust call to const_binop.
18275 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
18277 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
18278 determine size of XFmode operand.
18279 (XFmode extended DFmode push splitter): Ditto.
18280 (XFmode extended SFmode push splitter): Ditto.
18282 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
18285 * config/i386/i386.md (extract_code): New.
18286 (<u>divmodqi4): Likewise.
18287 (divmodhiqi3): Likewise.
18288 (udivmodhiqi3): Likewise.
18289 (<u>divqi3): Remvoved.
18291 2010-06-24 Jakub Jelinek <jakub@redhat.com>
18293 PR middle-end/44492
18294 * recog.h (struct recog_data): Add is_asm field.
18295 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
18296 present in constraints of inline-asm operand and memory operand
18297 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
18298 (extract_insn): Initialize recog_data.is_asm.
18299 * doc/md.texi (Constraints): Document operand side-effect rules.
18301 2010-06-24 Andi Kleen <ak@linux.intel.com>
18303 * c-parser.c (c_parser_conditional_expression): Call
18304 warn_for_omitted_condop.
18305 * doc/invoke.texi: Document omitted condop warning.
18307 2010-06-24 Nick Clifton<nickc@redhat.com>
18309 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
18310 insn in the sequence is a jump insn before setting its label.
18312 2010-06-24 Alan Modra <amodra@gmail.com>
18314 * collect2.c (main): Match exactly --version and --help.
18316 2010-06-24 DJ Delorie <dj@redhat.com>
18318 * config/m32c/m32c-pragma.c: Don't include rtl.h.
18320 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
18322 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
18323 using X87MODEF mode iterator.
18324 (pushsf splitter): Macroize splitter using P mode iterator.
18325 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
18328 (*movxf_internal): Rename from *movxf_integer.
18329 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
18330 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
18331 (*movdf_internal): Rename from *movdf_integer.
18332 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
18333 (*movsf_internal): Rename from *movdf_1.
18335 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
18337 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
18338 (const_gimple_seq_node): Removed typedefs.
18340 * gimple.h (gimple_seq_node_d, gimple_seq_node)
18341 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
18343 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
18345 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
18346 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
18347 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
18348 and CODE_FOR_vec_extract_lo_v4df.
18350 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
18351 Changed to define_insn_and_split.
18352 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
18353 (vec_extract_lo_v16hi): Likewise.
18354 (vec_extract_lo_v32qi): Likewise.
18355 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
18356 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
18358 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
18361 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
18362 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
18363 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
18364 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
18365 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
18368 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
18371 * df-core.c (struct df): Rename to df_d.
18372 * df.h (struct df): Likewise.
18373 * dse.h (struct df): Remove forward declaration.
18374 * recog.h (struct insn_data): Rename to:
18375 (struct_insn_data_d). Adjusted all users.
18377 2010-06-23 Arnaud Charlet <charlet@adacore.com
18380 * doc/install.texi: Update requirements to build GNAT.
18382 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
18384 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
18386 (m68k_sched_attr_opx_type): Remove unreachable return.
18387 (m68k_sched_attr_opy_type): Likewise.
18388 (m68k_sched_attr_size): Likewise.
18389 (sched_get_opxy_mem_type): Likewise.
18390 (m68k_sched_attr_op_mem): Likewise.
18392 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
18394 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
18395 new statement and adjust VDEF only if necessary. Remove superfluous
18396 call to maybe_clean_or_replace_eh_stmt.
18397 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
18399 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
18400 * tree-inline.c (copy_bb): ...and not there.
18402 2010-06-22 Cary Coutant <ccoutant@google.com>
18404 * dwarf2out.c (is_nested_in_subprogram): New function.
18405 (should_move_die_to_comdat): Use it.
18406 (copy_ancestor_tree): Don't mark DIEs here.
18407 (copy_decls_walk): Start walk from root of newly-added tree;
18408 mark DIEs here instead.
18410 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
18412 * config/i386/i386.md (unit): Also check sseishft1.
18414 2010-06-22 Jan Hubicka <jh@suse.cz>
18416 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
18419 2010-06-22 Jan Hubicka <jh@suse.cz>
18421 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
18422 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
18423 Return true if something changed.
18424 * df.h (df_confluence_function_n): Return bool.
18425 * df-core.c (df_worklist_propagate_forward,
18426 df_worklist_propagate_backward): Track changes and ages.
18427 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
18429 * dse.c (dse_confluence_n): Return always true.
18431 2010-06-22 Jan Hubicka <jh@suse.cz>
18433 * bitmap.c (bitmap_clear_bit): Micro optimize.
18435 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
18437 * config/i386/i386.md (SWI1248x): New mode iterator.
18442 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
18443 SWI1248x mode iterator.
18444 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
18445 using SWI124 mode iterator.
18446 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
18448 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
18449 *pushdi2_prologue_rex64 using P mode iterator.
18450 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
18451 using SWI48 mode iterator.
18452 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
18453 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
18454 using SWI1248x mode iterator.
18455 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
18456 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
18457 SWI48 mode iterator.
18458 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
18460 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
18461 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
18462 SWI12 mode iterator.
18463 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
18464 SWI12 mode iterator.
18465 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
18466 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
18467 SWI24 mode iterator.
18468 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
18469 SWI48 mode iterator.
18470 (mov<mode>_insn_1): New expander.
18471 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
18472 using SWI48x mode iterator.
18474 (*movoi_internal_avx): Rename from *movoi_internal.
18475 (*movti_internal_rex64): Rename from *movti_rex64.
18476 (*movti_internal_sse): Rename from *movti_sse.
18477 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
18478 (*movdi_internal): Rename from *movdi_2.
18479 (*movsi_internal): Rename from *movsi_1.
18480 (*movhi_internal): Rename from *movhi_1.
18481 (*movqi_internal): Rename from *movqi_1.
18483 (insv): Update the call to gen_movsi_insv_1 for rename.
18484 * config/i386/i386.c (promote_duplicated_reg): Ditto.
18486 2010-06-22 Jan Hubicka <jh@suse.cz>
18488 * passes.c (execute_function_todo): Move call of statistics_fini_pass
18490 (execute_todo) ... this one.
18492 2010-06-22 Alan Modra <amodra@gmail.com>
18495 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
18496 * caller-save.c (insert_restore, insert_save): Use non-validate
18497 form of adjust_address.
18499 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18502 * config/pa/pa.c (override_options): Disable
18503 -freorder-blocks-and-partition.
18505 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
18508 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
18510 * config/i386/i386.md (type): Add sseishft1
18512 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
18513 (ppro_insn_load): Likewise.
18514 (ppro_insn_store): Likewise.
18515 (ppro_insn_both): Likewise.
18517 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
18518 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
18520 (*vec_extractv2di_1_avx): Likewise.
18521 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
18522 type. Remove atom_unit.
18523 (*vec_extractv2di_1_sse2): Likewise.
18525 2010-06-21 DJ Delorie <dj@redhat.com>
18527 * diagnostic.h (diagnostic_classification_change_t): New.
18528 (diagnostic_context): Add history and push/pop list.
18529 (diagnostic_push_diagnostics): Declare.
18530 (diagnostic_pop_diagnostics): Declare.
18531 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
18532 from pragmas in a history chain instead of the global table.
18533 (diagnostic_push_diagnostics): New.
18534 (diagnostic_pop_diagnostics): New.
18535 (diagnostic_report_diagnostic): Scan history chain to find state
18536 of diagnostics as of the diagnostic location.
18537 * opts.c (set_option): Pass UNKNOWN_LOCATION to
18538 diagnostic_classify_diagnostic.
18539 (enable_warning_as_error): Likewise.
18540 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
18541 use in the history chain.
18542 * doc/extend.texi: Document pragma GCC diagnostic changes.
18544 2010-06-21 Jakub Jelinek <jakub@redhat.com>
18546 * dwarf2out.c (add_linkage_name): New function. Don't add
18547 anything to DW_TAG_member DIEs.
18548 (add_name_and_src_coords_attributes): Use it.
18549 (gen_variable_die): Call it for C++ static data members if
18550 specification is DW_TAG_member.
18552 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
18553 C++ char16_t and char32_t.
18555 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
18556 * genattrtab.c: Include vecprim.h.
18557 (cached_attrs, cached_attr_count, attrs_seen_once,
18558 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
18559 attrs_cached_after): New variables.
18560 (find_attrs_to_cache): New function.
18561 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
18562 (write_test_expr): Add attrs_cached argument, return it too,
18563 attempt to cache non-const attributes used more than once in
18564 a single case handling.
18565 (write_attr_get): Use find_attrs_to_cache, for caching candidates
18566 emit cached_* variables. Adjust write_attr_set callers.
18567 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
18568 to find attributes that should be cached in this block. Adjust
18569 write_test_expr callers.
18570 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
18572 (make_automaton_attrs): Adjust write_test_expr caller.
18574 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
18575 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
18576 (make_automaton_attrs): If find_tune_attr returns non-NULL,
18577 write separate internal_dfa_insn_code_* and insn_default_latency_*
18578 functions for each attribute's value and emit init_sched_attrs
18579 function and function pointers.
18580 * genattr.c (const_attrs, reservations): New variables.
18581 (gen_attr): Add const attributes to const_attrs vector.
18582 (check_tune_attr, find_tune_attr): New functions.
18583 (main): Add reservations to reservations vector. If find_tune_attr
18584 returns true, add prototype for init_sched_attrs and make
18585 internal_dfa_insn_code and insn_default_latency function pointers,
18586 otherwise define init_sched_attrs as dummy macro.
18587 * cfgexpand.c: Include insn-attr.h.
18588 (gimple_expand_cfg): Call init_sched_attrs.
18590 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
18593 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
18594 va_arg from a set of register save slots into a temporary,
18595 if the container is bigger than type size, do the copying
18596 using smaller mode or using memcpy.
18599 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
18601 (sel_print_to_dot): Remove macro.
18602 (sel_print): Likewise. New prototype.
18603 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
18604 (sel_print): New function.
18606 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18608 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
18609 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
18611 2010-06-21 Nick Clifton <nickc@redhat.com>
18613 * config/rx/rx.h (PTRDIFF_TYPE): Define.
18614 (SMALL_REGISTER_CLASS): Define (to zero).
18615 (PRINT_OPERAND): Delete.
18616 (PRINT_OPERAND_ADDRESS): Delete.
18617 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
18618 (rx_print_operand_address): Delete prototype.
18619 * config/rx/rx.c (rx_print_operand): Make static.
18620 Allow %H and %L to handle CONST_DOUBLEs.
18621 (rx_print_operand_address): Make static.
18622 (rx_gen_move_template): Rename local variable 'template' to
18624 (rx_function_arg): Do not pass unknown sized objects in registers.
18625 (TARGET_PRINT_OPERAND): Define.
18626 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18628 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18630 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
18632 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
18634 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
18635 stack-alignment for simple leaf-functions.
18637 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
18639 * doc/install.texi: Document bootstrap-lto.
18641 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
18644 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
18645 (input_function): Drop them here, if VTA is disabled.
18647 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
18650 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
18652 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
18653 ix86_swapped_fp_comparsion_operator instead of
18654 ix86_fp_comparison_operator.
18656 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
18657 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
18658 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
18659 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
18660 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
18661 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
18663 2010-06-20 Joseph Myers <joseph@codesourcery.com>
18666 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
18667 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
18668 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
18669 (decode_cmdline_option): Update for this return value. Set
18670 orig_option_with_args_text field. Set arg field for unknown
18671 options. Make static.
18672 (decode_cmdline_options_to_array): New.
18673 (prune_options): Update handling of find_opt return value.
18674 * opts.c (read_cmdline_option): Take decoded option. Return void.
18675 (read_cmdline_options): Take decoded options.
18676 (decode_options): Add parameters for decoded options. Use
18677 decode_cmdline_options_to_array. Use decoded options for -O
18678 scan. Use integral_argument for -O parameters. Update call to
18679 read_cmdline_options.
18680 (enable_warning_as_error): Update handling of find_opt return value.
18681 * opts.h: Update comment on unknown options.
18682 (struct cl_decoded_option): Update comments on opt_index and arg.
18683 Add orig_option_with_args_text.
18684 (decode_cmdline_option): Remove.
18685 (decode_cmdline_options_to_array): Declare.
18686 (decode_options): Update prototype.
18687 * toplev.c (save_argv): Remove.
18688 (save_decoded_options, save_decoded_options_count): New.
18689 (read_integral_parameter): Remove.
18690 (print_switch_values): Use decoded options.
18691 (toplev_main): Don't set save_argv. Update call to decode_options.
18692 * toplev.h (read_integral_parameter): Remove.
18693 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
18695 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
18698 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
18700 * constraints.md (Pw, Px): New constraints.
18701 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
18703 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
18705 * config/i386/sse.md (fma4modesuffixf4): Removed.
18706 (ssemodesuffixf2s): Likewise.
18707 (ssemodesuffixf4): Likewise.
18708 (ssemodesuffixf2c): Likewise.
18709 (ssescalarmodesuffix2s): Likewise.
18710 (avxmodesuffixf2c): Likewise.
18711 (ssemodesuffix): New.
18712 (ssescalarmodesuffix): Likewise.
18713 Update patterns with ssemodesuffix and ssescalarmodesuffix.
18715 2010-06-19 Philip Herron <herron.philip@googlemail.com>
18717 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
18719 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
18721 * stor-layout.c (debug_rli): Remove unused local variables.
18723 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
18725 PR rtl-optimization/40900
18726 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
18727 original expression for later reuse.
18728 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
18729 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
18731 2010-06-18 Anatoly Sokolov <aesok@post.ru>
18733 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
18734 double_int_fits_in_uhwi_p): Implement as static inline.
18735 (double_int_xor): New inline function.
18736 (double_int_lrotate, double_int_rrotate, double_int_max,
18737 double_int_umax, double_int_smax, double_int_min, double_int_umin,
18738 double_int_smin): Declare.
18739 (lrotate_double, rrotate_double): Remove declaration.
18740 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
18741 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
18742 (double_int_lrotate, double_int_rrotate, double_int_max,
18743 double_int_umax, double_int_smax, double_int_min, double_int_umin,
18744 double_int_smin): New function.
18745 * fold-const.c (int_const_binop): Clean up, use double_int_*
18747 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
18748 double_int_* and immed_double_int_const functions.
18750 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
18752 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
18753 * function.c (types_used_by_cur_var_decl): Likewise.
18754 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
18756 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
18758 * tree.h (record_layout_info): Change type of pending_statics field
18760 * stor-layout.c (start_record_layout): Store NULL into
18762 (debug_rli): Call debug_vec_tree instead of debug_tree.
18763 (place_field): Likewise.
18764 (finish_record_layout): Likewise.
18766 2010-06-18 Alan Modra <amodra@gmail.com>
18768 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
18770 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18773 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
18774 for SET source operand from SET destination operand.
18776 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
18778 PR rtl-optimization/39871
18779 * reload1.c (init_eliminable_invariants): For flag_pic, disable
18780 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
18781 (function_invariant_p): Rule out a plus of frame or arg pointer with
18783 * ira.c (find_reg_equiv_invariant_const): Likewise.
18785 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
18787 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
18788 print_operand_address and puts to output the operand for CONST.
18790 2010-06-17 Jakub Jelinek <jakub@redhat.com>
18793 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
18796 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18798 * v850-protos.h (print_operand): Delete.
18799 (print_operand_address): Delete.
18800 * v850.h (PRINT_OPERAND): Delete.
18801 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18802 (PRINT_OPERAND_ADDRESS): Delete.
18803 * v850.c (print_operand_address): Rename to...
18804 (v850_print_operand_address): ...this. Make static. Call
18805 v850_print_operand.
18806 (print_operand): Rename to...
18807 (v850_print_operand): ...this. Make static. Call
18808 v850_print_operand_address.
18809 (v850_print_operand_punct_valid_p): New function.
18810 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18811 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18813 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18815 * config/sh/sh-protos.h (print_operand): Delete.
18816 (print_operand_address): Delete.
18817 * config/sh/sh.h (PRINT_OPERAND): Delete.
18818 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18819 (PRINT_OPERAND_ADDRESS): Delete.
18820 * config/sh/sh.c (sh_print_operand_address): Make static.
18821 (sh_print_operand): Make static. Call sh_print_operand_address
18822 and sh_print_operand.
18823 (sh_print_operand_punct_valid_p): New function.
18824 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18825 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18827 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18829 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
18830 (mcore_print_operand_address): Delete.
18831 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
18832 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18833 (PRINT_OPERAND_ADDRESS): Delete.
18834 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
18835 (mcore_print_operand): Make static.
18836 (mcore_print_operand_punct_valid_p): New function.
18837 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
18838 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18840 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18842 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
18843 (print_operand_address): Delete.
18844 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
18845 (PRINT_OPERAND_ADDRESS): Delete.
18846 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
18848 (m68hc11_print_operand): Make static.
18849 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18851 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18853 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
18854 (m32r_print_operand_address): Delete.
18855 * config/m32r/m32r.h (m32r_punct_chars): Delete.
18856 (PRINT_OPERAND): Delete.
18857 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18858 (PRINT_OPERAND_ADDRESS): Delete.
18859 * config/m32r/m32r.c (m32r_punct_chars): Make static.
18860 (m32r_print_operand_address): Make static.
18861 (m32r_print_operand): Make static.
18862 (m32r_print_operand_punct_valid_p): New function.
18863 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18864 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18866 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18868 * config/iq2000/iq2000-protos.h (print_operand): Delete.
18869 (print_operand_address): Delete.
18870 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
18871 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18872 (PRINT_OPERAND_ADDRESS): Delete.
18873 (iq2000_print_operand_punct): Delete.
18874 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
18875 (iq2000_print_operand_address): Make static.
18876 (iq2000_print_operand): Make static.
18877 (iq2000_print_operand_punct_valid_p): New function.
18878 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18879 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18881 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18883 * config/frv/frv-protos.h (frv_print_operand): Delete.
18884 (frv_print_operand_address): Delete.
18885 * config/frv/frv.h (PRINT_OPERAND): Delete.
18886 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18887 (PRINT_OPERAND_ADDRESS): Delete.
18888 * config/frv/frv.c (frv_print_operand_address): Make static.
18889 (frv_print_operand): Make static.
18890 (frv_print_operand_punct_valid_p): New function.
18891 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18892 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18894 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18896 * tree.h (vec_member): Declare.
18897 * tree.c (vec_member): Define.
18899 2010-06-17 Richard Guenther <rguenther@suse.de>
18901 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
18902 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
18904 2010-06-17 Richard Guenther <rguenther@suse.de>
18906 * tree-inline.c (declare_return_variable): Remove bogus code.
18908 2010-06-17 Richard Guenther <rguenther@suse.de>
18910 * gimplify.c (gimplify_bind_expr): Always promote complex
18911 and vector variables to registers if possible.
18913 2010-06-17 Richard Guenther <rguenther@suse.de>
18915 * expr.c (get_inner_reference): Use double_int for bit_offset
18918 2010-06-16 DJ Delorie <dj@redhat.com>
18920 * common.opt (-fstrict-volatile-bitfields): new.
18921 * doc/invoke.texi: Document it.
18922 * fold-const.c (optimize_bit_field_compare): For volatile
18923 bitfields, use the field's type to determine the mode, not the
18925 * expr.c (expand_assignment): Likewise.
18926 (get_inner_reference): Likewise.
18927 (expand_expr_real_1): Likewise.
18928 * expmed.c (store_fixed_bit_field): Likewise.
18929 (extract_bit_field_1): Likewise.
18930 (extract_fixed_bit_field): Likewise.
18932 2010-06-16 Richard Guenther <rguenther@suse.de>
18934 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
18936 2010-06-16 Douglas B Rupp <rupp@gnat.com>
18938 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
18939 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
18940 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
18941 * debug.c: Likewise.
18942 * sdbout.c: Likewise.
18943 * vmsdbgout.c: Likewise.
18944 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
18945 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
18946 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
18947 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
18948 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
18949 * dwarf2out.c (dw_fde_struct): New fields
18950 dw_fde_vms_{end,begin}_prologue.
18951 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
18952 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
18953 (dwarf2out_vms_end_prologue): New function.
18954 (dwarf2out_vms_begin_epilogue): New function.
18955 (dw_val_struct): New value dw_val_class_vms_delta.
18956 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
18957 begin_epilogue for VMS.
18958 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
18959 new static functions.
18960 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
18961 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
18963 (print_die): New case dw_val_class_vms_delta.
18964 (attr_checksum): Likewise.
18965 (same_dw_val_p: Likewise.
18966 (size_of_die): Likewise.
18967 (value_format): Likewise.
18968 (output_die): Likewise.
18969 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
18970 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
18971 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
18972 dwarf2out_cfi_begin_epilogue
18973 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
18975 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
18977 * config/cris/cris-protos.h (cris_print_operand): Delete.
18978 (cris_print_operand_address): Delete.
18979 * config/cris/cris.h (PRINT_OPERAND): Delete.
18980 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18981 (PRINT_OPERAND_ADDRESS): Delete.
18982 * config/cris/cris.c (cris_print_operand_address): Make static.
18983 (cris_print_operand): Make static.
18984 (cris_print_operand_punct_valid_p): New function.
18985 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18986 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18988 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
18990 * config/arm/arm-protos.h (arm_print_operand): Delete.
18991 (arm_print_operand_address): Delete.
18992 * config/arm/arm.h (PRINT_OPERAND): Delete.
18993 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18994 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
18995 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
18996 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
18997 (arm_print_operand): Make static.
18998 (arm_print_operand_punct_valid_p): New function.
18999 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
19000 (TARGET_PRINT_OPERAND_ADDRESS): Define.
19002 2010-06-16 Nick Clifton <nickc@redhat.com>
19004 * config/rx/constraints.md (NEGint4): New constraint.
19005 * config/rx/rx.md (attr cc): Add set_zsc.
19006 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
19009 (call_internal): Clobber the cc0 register.
19010 (call_value_internal): Likewise.
19011 (cstoresi4): Likewise.
19012 (movsieq): Likewise.
19013 (movsine): Likewise.
19014 (addsi3): Add alternative to handle small negative constants.
19015 (sunsi3): Likewise.
19016 (addsi3): Do not set the O bit in the cc0 register.
19017 (adddi3): Likewise.
19018 (subsi3): Likewise.
19019 (subdi3): Likewise.
19020 (andsi3): Reorder alternatives to prefer shorter forms.
19021 (mulsi3): Likewise.
19022 (iorsi3): Likewise.
19023 (negsi2): Note that the cc0 flags are set.
19024 (rotlsi3): Note that only the Z and S bits are set in cc0.
19025 (lshrsi3): Likewise.
19026 (ashlsi3): Likewise.
19027 (subsf3): Use %Q for the MEM operand.
19028 (fix_truncsfsi2): Likewise.
19029 (floatsisf2): Likewise.
19030 (bitset): Remove early clobber from destination.
19031 (bitset_in_memory): Likewise.
19032 (lrintsf2): Clobber the cc0 register.
19033 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
19034 (rx_print_operand): Handle %N.
19036 2010-06-16 Jan Hubicka <jh@suse.cz>
19038 * df-core.c (df_compact_blocks): Free problem_temps vector.
19040 2010-06-16 Martin Jambor <mjambor@suse.cz>
19042 PR tree-optimization/43905
19043 * tree-sra.c: Include tree-inline.h.
19044 (create_abstract_origin): Removed.
19045 (modify_function): Version the call graph node instead of creating
19046 abstract origins and dealing with same_body aliases.
19047 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
19048 function is versionable.
19049 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
19051 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
19053 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
19054 (CHOOSE_DYNAMIC_LINKER): Update.
19056 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
19058 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
19059 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
19060 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
19061 *prefetch_3dnow_rex.
19063 2010-06-15 Anatoly Sokolov <aesok@post.ru>
19065 * target.h (struct asm_out):Add declare_constant_name field.
19066 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
19067 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
19068 * output.h (default_asm_declare_constant_name): Declare.
19069 (assemble_label): Update prototype.
19070 * varasm.c (assemble_constant_contents): Use
19071 targetm.asm_out.declare_constant_name target hook.
19072 (assemble_label): Add 'file' argument.
19073 (default_asm_declare_constant_name): New function.
19074 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
19075 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
19076 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
19078 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
19079 * config/darwin.c (darwin_asm_declare_constant_name): New function.
19080 (machopic_output_indirection): Update assemble_label argument list.
19081 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
19082 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
19084 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
19086 PR middle-end/44391
19087 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
19088 size_one_node for pointer types. Do not call gmp_cst_to_tree.
19090 2010-06-15 Richard Guenther <rguenther@suse.de>
19092 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
19094 2010-06-15 Paul Brook <paul@codesourcery.com>
19096 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
19099 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
19101 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
19102 don't get a vector type for output.
19104 2010-06-15 Jakub Jelinek <jakub@redhat.com>
19107 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
19108 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
19109 (LANG_HOOKS_DECLS): Add it.
19110 * gimplify.c (omp_notice_variable): Call
19111 lang_hooks.decls.omp_report_decl.
19113 2010-06-15 Martin Jambor <mjambor@suse.cz>
19116 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
19117 on the newly dead SSA name.
19119 2010-06-15 Alan Modra <amodra@gmail.com>
19121 * doc/invoke.texi: Add mcmodel to powerpc options.
19122 * configure.ac: Add HAVE_LD_LARGE_TOC test.
19123 * configure: Regenerate.
19124 * config.in: Regenerate.
19125 * config/rs6000/linux64.opt (mcmodel): New.
19126 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
19127 (TARGET_CMODEL, SET_CMODEL): Define.
19128 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
19129 select CMODEL_MEDIUM default.
19130 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
19131 (TARGET_CMODEL): Define default.
19132 * config/rs6000/rs6000.c (cmodel): New variable.
19133 (rs6000_explicit_options): Add cmodel field.
19134 (rs6000_handle_option): Handle -mcmodel.
19135 (create_TOC_reference): Add largetoc_reg param. Generate high,
19136 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
19137 (rs6000_delegitimize_address): Recognise new toc reference rtl
19138 and minimal-toc rtl.
19139 (rs6000_legitimize_reload_address): Handle new toc references.
19140 (print_operand_address): Handle legitimate_constant_pool_address_p
19141 match before lo_sum.
19142 (rs6000_eliminate_indexed_memrefs): Tidy.
19143 (rs6000_emit_move): Tweak threshold for inlining constants.
19144 Keep rs6000_emit_allocate_stack large stack frame offsets
19145 loaded into r0 inline.
19146 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
19147 (tocrel_base, tocrel_offset): New variables.
19148 (toc_relative_expr_p): Set them here.
19149 (print_operand_address): Skip over any offset on constant pool address.
19150 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
19151 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
19152 (offsettable_ok_by_alignment): New function.
19153 (rs6000_emit_move): Address suitably aligned local symbol_refs
19154 relative to the toc pointer for -mcmodel=medium.
19155 (legitimate_constant_pool_address_p): Make param const_rtx. Add
19156 strict param. Allow lo_sum version of addressing. Verify reg
19157 used for -mminimal-toc and -mcmodel != small. Update all callers.
19158 * config/rs6000/constraints.md: Update for above change.
19159 * config/rs6000/predicates.md: Likewise.
19160 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
19162 (tls_gd): Split for -mcmodel=medium/large.
19163 (tls_gd_high, tls_gd_low): New.
19164 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
19165 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
19166 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
19167 (largetoc_high, largetoc_low): New.
19168 (cmptf_internal2): Add clobber.
19169 * config/rs6000/rs6000-protos.h: Update.
19171 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
19173 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
19174 true if no prefetch is going to be generated for a given group.
19175 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
19176 estimate the prefetch_count.
19177 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
19178 prefetch count by considering the unroll_factor and prefetch_mod
19179 for is_loop_prefetching_profitable.
19181 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
19183 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
19184 anything if the argument is not a MEM.
19186 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
19191 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
19193 (canonicalize_loop_ivs): Likewise.
19195 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
19198 * haifa-sched.c (setup_insn_reg_pressure_info,
19199 update_register_pressure): Reject debug insns.
19200 (ready_sort): Don't setup reg pressure for debug insns.
19201 (schedule_insn): Don't update reg pressure for debug insns.
19203 2010-06-14 Richard Guenther <rguenther@suse.de>
19205 * lto-streamer.c (cached_bp): Remove.
19206 (bitpack_delete): Likewise.
19207 (bitpack_create): Likewise.
19208 (bp_get_next_word): Likewise.
19209 (bp_pack_value, bp_unpack_value): Move ...
19210 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
19212 (struct bitpack_d): Likewise.
19213 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
19214 New inline functions.
19215 * lto-streamer-out.c (lto_output_bitpack): Remove.
19216 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
19217 (pack_value_fields): Adjust.
19218 (lto_write_tree): Likewise.
19219 (output_gimple_stmt): Likewise.
19220 (output_function): Likewise.
19221 * lto-streamer-in.c (input_gimple_stmt): Adjust.
19222 (input_function): Likewise.
19223 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
19224 (lto_input_bitpack): Remove.
19225 (lto_materialize_tree): Adjust.
19226 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
19227 * lto-cgraph.c (lto_output_edge): Adjust.
19228 (lto_output_node): Likewise.
19229 (lto_output_varpool_node): Likewise.
19230 (lto_output_ref): Likewise.
19231 (input_node): Likewise.
19232 (input_varpool_node): Likewise.
19233 (input_ref): Likewise.
19234 (input_edge): Likewise.
19235 (output_node_opt_summary): Likewise.
19236 (input_node_opt_summary): Likewise.
19237 * ipa-pure-const.c (pure_const_write_summary): Likewise.
19238 (pure_const_read_summary): Likewise.
19239 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
19240 (ipa_read_indirect_edge_info): Likewise.
19241 (ipa_write_node_info): Likewise.
19242 (ipa_read_node_info): Likewise.
19244 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
19247 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
19248 (vec_extract_lo_v16hi): Likewise.
19249 (vec_extract_lo_v32qi): Likewise.
19251 2010-06-14 Jakub Jelinek <jakub@redhat.com>
19254 * tree.h (build_call_expr): Don't define as vararg macro, instead
19256 * builtins.c (build_call_nofold): Remove.
19257 (expand_builtin_int_roundingfn, expand_builtin_pow,
19258 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
19259 expand_builtin_memset_args, expand_builtin_strcmp,
19260 expand_builtin_strncmp, expand_builtin_memory_chk): Use
19261 build_call_nofold_loc instead of build_call_nofold.
19262 (build_call_expr): New function.
19264 PR tree-optimization/44508
19265 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
19266 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
19267 don't eliminate trivially dead stmts.
19268 * tree-vrp.c (vrp_finalize): Pass false as last argument
19269 to substitute_and_fold.
19270 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
19271 to substitute_and_fold.
19272 * tree-ssa-ccp.c (ccp_finalize): Likewise.
19275 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
19277 2010-06-14 Ira Rosen <irar@il.ibm.com>
19279 PR tree-optimization/44507
19280 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
19281 to build initial vector for BIT_AND_EXPR.
19282 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
19284 2010-06-14 Jakub Jelinek <jakub@redhat.com>
19286 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
19287 adjust z10prop set_attr.
19289 2010-06-13 Jan Hubicka <jh@suse.cz>
19291 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
19292 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
19293 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
19294 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
19295 datastructure checks into checking asserts.
19296 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
19297 * tree-ssa-sccvn.c (VN_INFO): Likewise.
19298 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
19299 df_ref_create_structure): Likewise.
19300 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
19301 pool_free): Use gcc_checking_assert.
19302 * alias.c (get_alias_set): Likewise.
19303 * var-tracking.c (variable_htab_free, shared_hash_copy,
19304 canonicalize_values_mark, variable_merge_over_cur): Likewise.
19305 * lto-streamer.c (bp_unpack_value): Likewise.
19307 2010-06-13 Richard Guenther <rguenther@suse.de>
19309 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
19310 Do not stream but initialize TYPE_CANONICAL to NULL.
19311 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
19312 * gimple.c (gimple_types_compatible_p): Disregard
19313 TYPE_STRUCTURAL_EQUALITY_P.
19314 (gimple_register_type): Use TYPE_CANONICAL as cache.
19315 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
19316 before registering common types.
19317 * config/i386/i386.c (ix86_function_arg_boundary): Do not
19318 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
19319 * tree.h (TYPE_CANONICAL): Clarify documentation.
19321 2010-06-13 Anatoly Sokolov <aesok@post.ru>
19323 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
19324 LIBCALL_VALUE): Remove macros.
19325 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
19326 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19327 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19328 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
19329 (ia64_function_value): Make static. Handle receiving the function
19330 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
19332 2010-06-12 Jan Hubicka <jh@suse.cz>
19334 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
19337 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
19339 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
19341 2010-06-12 Jan Hubicka <jh@suse.cz>
19343 * df-core.c (df_clear_bb_info): New function.
19344 (df_set_blocks): bb_info is always allocated.
19345 (df_get_bb_info): Use block_info_elt_size.
19346 (df_set_bb_info): Likewise.
19347 (df_compact_blocks): Update for new block_info.
19348 (grow_bb_info): New function.
19349 * df-problems.c (df_grow_bb_info): Move to df-core.c
19350 (df_rd_set_bb_info): Remove.
19351 (df_rd_free_bb_info): Do not free block pool.
19352 (df_rd_alloc): Do not create pool, use check for
19353 obstack presence instead of NULL pointer for new blocks.
19354 (df_rd_free): DO not free alloc pool; clear block_info.
19355 (problem_RD): Add size of block info structure.
19356 (df_lr_set_bb_info): Remove.
19357 (df_lr_free_bb_info): Do not free block pool.
19358 (df_lr_alloc): Do not create pool, use check for
19359 obstack presence instead of NULL pointer for new blocks.
19360 (df_lr_free): DO not free alloc pool; clear block_info.
19361 (problem_LR): Add size of block info structure.
19362 (df_live_set_bb_info): Remove.
19363 (df_live_free_bb_info): Do not free block pool.
19364 (df_live_alloc): Do not create pool, use check for
19365 obstack presence instead of NULL pointer for new blocks.
19366 (df_live_free): DO not free alloc pool; clear block_info.
19367 (problem_LIVE): Add size of block info structure.
19368 (problem_CHAIN): Add size of block info structure.
19369 (df_byte_lr_set_bb_info): Remove.
19370 (df_byte_lr_free_bb_info): Do not free block pool.
19371 (df_byte_lr_alloc): Do not create pool, use check for
19372 obstack presence instead of NULL pointer for new blocks.
19373 (df_byte_lr_free): DO not free alloc pool; clear block_info.
19374 (problem_BYTE_LR): Add size of block info structure.
19375 (problem_NOTE): Add size of block info structure.
19376 (df_byte_MD_set_bb_info): Remove.
19377 (df_byte_MD_free_bb_info): Do not free block pool.
19378 (df_byte_MD_alloc): Do not create pool, use check for
19379 obstack presence instead of NULL pointer for new blocks.
19380 (df_byte_MD_free): DO not free alloc pool; clear block_info.
19381 (problem_BD): Add size of block info structure.
19382 * df-scan.c (df_scan_free_internal): Free block pool.
19383 (df_scan_set_bb_info): Remove.
19384 (df_scan_free_bb_info): Check for artificial_defs instead
19385 of bb_info being non-NULL.
19386 (df_scan_alloc): DO not create df_scan_block pool.
19387 (problem_SCAN): Set size of block info.
19388 (df_bb_refs_record): Do not allocate bb_info.
19389 * df.h (df_problem): Add block_info_elt_size.
19390 (struct dataflow): Change block_info to void *.
19391 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
19392 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
19393 in-line structures.
19395 2010-06-12 Jan Hubicka <jh@suse.cz>
19397 PR tree-optimize/44485
19398 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
19399 containing use of return value of noreturn function.
19401 2010-06-12 Anatoly Sokolov <aesok@post.ru>
19403 * targhooks.c (default_function_value): Don't use
19404 FUNCTION_OUTGOING_VALUE.
19405 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
19406 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
19408 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
19410 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
19411 Add crtfastmath.o to extra_parts.
19412 * config/mips/crtfastmath.c: New.
19413 * config/mips/linux.h (ENDFILE_SPEC): New.
19415 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
19417 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
19418 old_type in parameter.
19419 (gcc_type_for_value): Update call to gcc_type_for_interval.
19420 (compute_type_for_level_1): Renamed compute_type_for_level.
19421 Update call to gcc_type_for_interval.
19423 2010-06-11 Joseph Myers <joseph@codesourcery.com>
19425 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
19426 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
19428 2010-06-11 Joseph Myers <joseph@codesourcery.com>
19430 * opts-common.c: Include options.h.
19431 (integral_argument): Move from opts.c.
19432 (decode_cmdline_option): New. Based on read_cmdline_option.
19433 * opts.c (integral_argument): Move to opts-common.c.
19434 (read_cmdline_option): Move most contents to
19435 decode_cmdline_option. Use %qs in diagnostics.
19436 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
19437 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
19438 decode_cmdline_option): New.
19440 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
19443 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
19444 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
19445 (partiysi2_cmp): Ditto.
19446 (*partiyhi2_cmp): Ditto.
19447 (*parityqi2_cmp): Remove.
19449 2010-06-11 Jan Hubicka <jh@suse.cz>
19451 * bitmap.h (bmp_iter_next_bit): New.
19452 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
19454 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
19455 Eric Botcazou <ebotcazou@adacore.com>
19457 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
19460 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
19462 * config/i386/i386.md (unspec): New define_c_enum.
19465 2010-06-10 Jakub Jelinek <jakub@redhat.com>
19467 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
19469 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
19471 PR middle-end/44483
19472 * tree-if-conv.c (bb_predicate_s): New struct.
19473 (bb_predicate_p): New.
19474 (bb_has_predicate): New.
19475 (bb_predicate): New.
19476 (set_bb_predicate): New.
19477 (bb_predicate_gimplified_stmts): New.
19478 (set_bb_predicate_gimplified_stmts): New.
19479 (add_bb_predicate_gimplified_stmts): New.
19480 (init_bb_predicate): New.
19481 (free_bb_predicate): New.
19482 (is_predicated): Use bb_predicate.
19483 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
19484 (predicate_bbs): Same. Gimplify the condition of the basic blocks
19485 before processing their successors.
19486 (clean_predicate_lists): Removed.
19487 (find_phi_replacement_condition): Use bb_predicate.
19488 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
19490 (insert_gimplified_predicates): New.
19491 (combine_blocks): Call insert_gimplified_predicates.
19492 (tree_if_conversion): Call free_bb_predicate instead of
19493 clean_predicate_lists.
19495 2010-10-11 Paul Brook <paul@codesourcery.com>
19497 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
19498 * config/arm/arm.c (all_architectures): Change v7e-m default to
19500 * config/arm/arm-cores.def: Add cortex-m4.
19501 * config/arm/arm-tune.md: Regenerate.
19503 2010-06-11 Jan Hubicka <jh@suse.cz>
19505 * ipa-pure-const.c (special_builtlin_state): New function.
19506 (check_call): Use it instead of special casign BUILT_IN_RETURN.
19507 (propagate_pure_const): Use it.
19509 2010-06-11 Jan Hubicka <jh@suse.cz>
19511 * df-problems.c (df_live_scratch): Convert to bitmap_head.
19512 (df_live_alloc): Initialize df_live_scratch when initializing
19514 (df_live_transfer_function): Update uses of df_live_scratch.
19515 (df_live_free): Free problem_data; clear df_live_scratch before
19516 releasing the obstack.
19517 (df_md_free): Free problem data.
19519 2010-06-11 Jan Hubicka <jh@suse.cz>
19521 * doc/invoke.texi (Wsuggest-attribute): Document.
19522 (Wmissing-noreturn): Remove.
19523 * ipa-pure-const.c (warn_function_noreturn): New function.
19524 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
19525 warn_missing_noreturn.
19526 * common.opt (Wsuggest-attribute=noreturn): New.
19527 * tree-flow.h (warn_function_noreturn): Declare.
19528 * tree-cfg.c (execute_warn_function_noreturn): Use
19529 warn_function_noreturn.
19530 (gate_warn_function_noreturn): New.
19531 (pass_warn_function_noreturn): Update.
19533 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
19535 * c-typeck.c (handle_warn_cast_qual): Add loc
19536 parameter. Improve warning message.
19537 (build_c_cast): Pass location to handle_warn_cast_qual.
19539 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
19541 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
19542 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
19544 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
19546 2010-06-10 Dodji Seketeli <dodji@redhat.com>
19548 Fix bootstap on mips
19549 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
19550 be naming typedefs.
19552 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
19554 * system.h (helper_const_non_const_cast): New inline for
19555 gcc version <= 4.0.
19556 (CONST_CAST2): For gcc version <= 4.0 use
19557 new helper to do const/non-const casting.
19559 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19561 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
19562 * Makefile.in (OBJS-common): Include insn-enums.o.
19563 (insn-enums.o): New rule.
19564 (simple_generated_c): Add insn-enums.c.
19565 (build/genenums.o): New rule.
19566 (genprogmd): Add "enums".
19567 * genconstants.c (print_enum_type): Declare a C string array
19569 * genenums.c: New file.
19570 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
19571 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
19572 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
19574 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19576 * doc/md.texi (define_enum_attr): Document.
19577 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
19578 * read-md.h (lookup_enum_type): Declare.
19579 * read-md.c (lookup_enum_type): New function.
19580 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
19581 * genattrtab.c (attr_desc): Add an enum_name field.
19582 (evaluate_eq_attr): Take the associated attribute as argument.
19583 Get the enum prefix from the enum_name field, if defined.
19584 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
19585 (simplify_test_exp): Pass attr to evaluate_eq_attr.
19586 (add_attr_value): New function, split out from...
19587 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
19588 (write_test_expr): Pass attr to evaluate_eq_attr.
19589 (write_attr_get): Use the enum_name as the enum tag, if defined.
19590 (write_attr_valueq): Use the enum_name as a prefix, if defined.
19591 (find_attr): Initialize enum_name.
19592 (main): Handle DEFINE_ENUM_ATTR.
19593 * gensupport.c (process_rtx): Likewise.
19594 * config/mips/mips.h (mips_tune_attr): Delete.
19595 * config/mips/mips.md (cpu): Use define_attr_enum.
19597 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19599 * doc/md.texi (define_c_enum, define_enum): Document.
19600 * read-md.h (md_constant): Add a parent_enum field.
19601 (enum_value, enum_type): New structures.
19602 (upcase_string, traverse_enum_types): Declare.
19603 * read-md.c (enum_types): New variable.
19604 (upcase_string, add_constant): New functions.
19605 (handle_constants): Don't create the hash table here.
19607 (traverse_md_constants): Don't check for a null md_constants.
19608 (decimal_string, handle_enum, traverse_enum_types): New functions.
19609 (read_md_files): Initialize md_constants and md_enums.
19610 * genconstants.c (print_md_constant): Ignore info argument.
19611 Only print constants that belong to no enum.
19612 (print_enum_type): New function.
19613 (main): Don't pass stdout to print_md_constant. Call print_enum_type
19614 for each defined enum type.
19615 * config/mips/mips.md (processor): New define_enum.
19616 (unspec): New define_c_enum.
19617 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
19618 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
19619 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
19620 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
19621 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
19622 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
19623 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
19624 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
19625 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
19626 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
19627 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
19628 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
19629 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
19630 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
19631 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
19632 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
19633 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
19634 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
19635 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
19636 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
19637 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
19638 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
19639 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
19640 (UNSPEC_RDDSP): Move to mips-dsp.md.
19641 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
19642 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
19643 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
19644 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
19645 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
19646 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
19647 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
19648 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
19649 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
19650 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
19651 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
19652 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
19653 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
19654 Moved to mips-dspr2.md.
19655 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
19656 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
19657 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
19658 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
19659 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
19660 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
19661 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
19662 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
19663 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
19664 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
19665 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
19666 UNSPEC_LOONGSON_PSADBH)
19667 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
19668 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
19669 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
19670 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
19671 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
19672 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
19673 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
19674 (cpu): Update comment.
19675 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
19676 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
19677 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
19678 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
19679 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
19680 UNSPEC_LOONGSON_PCMPEQ)
19681 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
19682 UNSPEC_LOONGSON_PINSR_0)
19683 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
19684 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
19685 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
19686 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
19687 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
19688 UNSPEC_LOONGSON_PSADBH)
19689 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
19690 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
19691 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
19692 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
19693 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
19694 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
19695 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
19696 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
19697 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
19698 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
19699 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
19700 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
19701 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
19702 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
19703 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
19704 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
19705 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
19706 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
19707 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
19708 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
19709 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
19710 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
19711 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
19712 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
19713 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
19714 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
19715 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
19716 (UNSPEC_RDDSP): Moved from mips.md.
19717 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
19718 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
19719 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
19720 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
19721 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
19722 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
19723 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
19724 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
19725 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
19726 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
19727 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
19728 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
19729 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
19730 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
19731 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
19732 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
19733 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
19734 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
19735 (UNSPEC_SCC): Moved from mips.md.
19736 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
19737 "processor_type" to "processor".
19738 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
19739 * config/mips/mips.h (processor_type): Delete.
19740 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
19741 "processor_type" to "processor".
19743 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19745 * configure.ac (tm_include_list): Add insn-constants.h.
19746 * configure: Regenerate.
19747 * Makefile.in (GTM_H): Move insn-constants.h here from...
19749 * mkconfig.sh: Remove special handling for insn-constants.h.
19751 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19753 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
19754 (BUILD_MD): ...this new variable.
19755 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
19756 that include the old contents of simple_generated_h and
19757 simple_generated_c.
19758 (simple_generated_h, simple_generated_c): Include them. Add
19760 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
19761 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
19762 Remove these dependencies from the main rule and include
19763 insn-conditions.md in the command line only if it appears
19764 in the dependency list.
19765 (insn-constants.h, s-constants): Delete.
19766 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
19768 (build/genmddeps.o): Likewise.
19769 (genprogrtl): New variable that contains everything from genprogmd
19770 except mddeps and constants.
19771 (genprogmd): Redefine in terms of genprogrtl. Make these programs
19772 depend on $(BUILD_MD)
19773 (genprog): New variable. Make these programs depend on
19775 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
19776 (main): Use read_md_files instead of init_rtx_reader_args.
19777 * genconstants.c: As for genmddeps.c.
19778 * read-md.h (read_skip_construct): Declare.
19779 * read-md.c (read_skip_construct): New function.
19780 (handle_file): Allow a null handle_directive, skipping the
19782 (parse_include): Update the comment accordingly.
19784 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19786 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
19787 * genmddeps.c: Include read-md.h.
19788 (main): Call init_rtx_reader_args instead of init_md_reader_args.
19789 * genattr.c (main): Likewise.
19790 * genattrtab.c (main): Likewise.
19791 * genautomata.c (main): Likewise.
19792 * gencodes.c (main): Likewise.
19793 * genconditions.c (main): Likewise.
19794 * genconfig.c (main): Likewise.
19795 * genconstants.c (main): Likewise.
19796 * genemit.c (main): Likewise.
19797 * genextract.c (main): Likewise.
19798 * genflags.c (main): Likewise.
19799 * genopinit.c (main): Likewise.
19800 * genoutput.c (main): Likewise.
19801 * genpeep.c (main): Likewise.
19802 * genrecog.c (main): Likewise.
19803 * genpreds.c (main): Likewise.
19804 * gensupport.h (in_fname): Move to read-md.h.
19805 (init_md_reader_args_cb): Rename to...
19806 (init_rtx_reader_args_cb): ...this and return a bool.
19807 (init_md_reader_args): Rename to...
19808 (init_rtx_reader_args): ...this and return a bool.
19809 (include_callback): Move to read-md.h.
19810 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
19811 (file_name_list, first_dir_md_include): Move to read-md.c
19812 (first_bracket_include): Delete unused variable.
19813 (last_dir_md_include): Move to read-md.c.
19814 (process_include): Delete, moving code to read-md.c:handle_include.
19815 (process_rtx): Don't handle INCLUDE.
19816 (save_string): Delete.
19817 (rtx_handle_directive): New function.
19818 (init_md_reader_args_cb): Rename to...
19819 (init_rtx_reader_args_cb): ...this and return a boolean success value.
19821 (init_md_reader_args): Rename to...
19822 (init_rtx_reader_args): ...this and return a boolean success value.
19823 * rtl.def (INCLUDE): Delete.
19824 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
19826 * read-rtl.c (read_conditions): Don't gobble ')' here.
19827 (read_mapping): Likewise.
19828 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
19829 Handle top-level non-rtx constructs here rather than in read_rtx_1.
19830 Store the whole queue in *X. Remove call to init_md_reader.
19831 (read_rtx_1): Rename to...
19832 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
19833 Don't handle top-level non-rtx constructs here. Don't handle (nil)
19835 (read_nested_rtx): New function. Handle (nil) here rather than
19837 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
19839 * read-md.h (directive_handler_t): New type.
19840 (in_fname, include_callback): Moved from read-md.h.
19841 (read_constants, init_md_reader): Delete.
19842 (read_md_files): Declare.
19843 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
19844 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
19846 (read_constants): Rename to...
19847 (handle_constants): ...this. Don't gobble ')' here.
19848 (handle_include, handle_file, handle_toplevel_file)
19849 (parse_include): New functions, mostly taken from gensupport.c.
19850 (init_md_reader): Subsume into...
19851 (read_md_files): ...this new function.
19853 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19855 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
19856 (unread_char): Decrement read_md_lineno after putting back '\n'.
19857 * read-md.c (fatal_with_file_and_line): Push back any characters
19858 that we decide not to add to the context.
19859 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
19860 fatal_expected_char in cases where '/' ends a line (for example).
19861 (read_name): Don't increment read_md_lineno here.
19862 (read_escape): Likewise.
19863 (read_quoted_string): Likewise.
19864 (read_braced_string): Likewise.
19866 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19868 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
19869 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
19870 * genconstants.c: Include read-md.h.
19871 * read-rtl.c (md_constants): Move to read-md.c.
19872 (md_name): Move to read-md.h.
19873 (initialize_iterators): Use leading_string_hash instead of def_hash
19874 and leading_string_eq_p instead of def_name_eq_p.
19875 (read_name): Move to read-md.c.
19876 (def_hash, def_name_eq_p): Delete.
19877 (read_constants, traverse_md_constants): Move to read-md.c.
19878 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
19879 * read-md.h: Include hashtab.h.
19880 (md_name): Moved from read-rtl.c.
19881 (md_constant): Moved from read-md.h.
19882 (leading_string_hash, leading_string_eq_p, read_name)
19883 (read_constants, traverse_md_constants): Declare.
19884 * read-md.c (md_constants): Moved from read-rtl.c.
19885 (leading_string_hash, leading_string_eq_p): New functions.
19886 (read_name, read_constants, traverse_md_constants): Moved from
19889 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19891 * read-rtl.c (md_name): New structure.
19892 (read_name): Take an md_name instead of a buffer pointer.
19893 Use the "string" field instead of strcpy when expanding constants.
19894 (read_constants): Remove the tmp_char argument. Update the calls
19895 to read_name, using two local name buffers instead of the tmp_char
19896 argument. Merge the constant-creation code.
19897 (read_conditions): Remove the tmp_char argument. Update the calls
19898 to read_name, using a local name buffer instead of the tmp_char
19900 (read_mapping): Replace tmp_char variable with a local name buffer.
19901 Update the calls to read_name.
19902 (read_rtx_1): Likewise. Update the calls to read_constants and
19905 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19907 * Makefile.in (build/read-md.o): Depend on errors.h.
19908 * read-md.h (error_with_line): Declare.
19909 * read-md.c: Include errors.h.
19910 (message_with_line_1): New function, extracted from...
19911 (message_with_line): ...here.
19912 (error_with_line): New function.
19913 * genattrtab.c: If a call to message_with_line is followed by
19914 "have_error = 1;", replace both statements with a call to
19916 * genoutput.c: Likewise.
19917 * genpreds.c: Likewise.
19918 * genrecog.c: If a call to message_with_line is followed by
19919 "error_count++;", replace both statements with a call to
19921 (errorcount): Delete.
19922 (main): Don't check it.
19923 * gensupport.c: If a call to message_with_line is followed by
19924 "errors = 1;", replace both statements with a call to error_with_line.
19926 (process_define_cond_exec): Check have_error instead of errors.
19927 (init_md_reader_args_cb): Likewise. Don't set errors.
19929 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19931 * read-md.h (read_md_file): Declare.
19932 (read_char, unread_char): New functions.
19933 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
19934 (read_quoted_string, read_string): Remove FILE * argument.
19935 * read-md.c (read_md_file): New variable.
19936 (read_md_filename, read_md_lineno): Update comments and remove
19937 unnecessary initialization.
19938 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
19939 (read_escape, read_quoted_string, read_braced_string, read_string):
19940 Remove FILE * argument. Update calls accordingly, using read_char
19941 and unread_char instead of getc and ungetc.
19942 * rtl.h (read_rtx): Remove FILE * argument.
19943 * read-rtl.c (iterator_group): Remove FILE * argument from
19945 (iterator_traverse_data): Remove "infile" field.
19946 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
19947 (add_mapping, read_name, read_constants, read_conditions)
19948 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
19949 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
19950 Remove file arguments from all calls, using read_char and unread_char
19951 instead of getc and ungetc.
19952 * gensupport.c (process_include): Preserve read_md_file around
19953 the include. Set read_md_file to the handle of the included file.
19954 Update call to read_rtx.
19955 (init_md_reader_args_cb): Set read_md_file to the handle of the file
19956 and remove local FILE *. Update calls to read_rtx.
19958 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19960 * read-md.h (read_rtx_lineno): Rename to...
19961 (read_md_lineno): ...this.
19962 (read_rtx_filename): Rename to...
19963 (read_md_filename): ...this.
19964 (copy_rtx_ptr_loc): Rename to...
19965 (copy_md_ptr_loc): ...this.
19966 (print_rtx_ptr_loc): Rename to...
19967 (print_md_ptr_loc): ...this.
19968 * read-md.c: Likewise. Update references after renaming.
19969 (string_obstack): Replace RTL with MD in comment.
19970 (set_rtx_ptr_loc): Rename to...
19971 (set_md_ptr_loc): ...this.
19972 (get_rtx_ptr_loc): Rename to...
19973 (get_md_ptr_loc): ...this.
19974 * genconditions.c: Update references after renaming.
19975 * genemit.c: Likewise.
19976 * genoutput.c: Likewise.
19977 * genpreds.c: Likewise.
19978 * gensupport.c: Likewise.
19979 * read-rtl.c: Likewise.
19981 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19983 * Makefile.in (READ_MD_H): New variable.
19984 (BUILD_RTL): Add build/read-md.o.
19985 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
19986 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
19987 (build/genattrtab.o, build/genconditions.o build/genemit.o)
19988 (build/genextract.o, build/genflags.o, build/genoutput.o)
19989 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
19990 (build/read-md.o): New rule.
19991 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
19992 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
19993 * coretypes.h: ...here.
19994 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
19995 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
19996 * genattr.c: Include read-md.h.
19997 * genattrtab.c: Likewise.
19998 * genconditions.c: Likewise.
19999 * genemit.c: Likewise.
20000 * genextract.c: Likewise.
20001 * genflags.c: Likewise.
20002 * genoutput.c: Likewise.
20003 * genpreds.c: Likewise.
20004 * genrecog.c: Likewise.
20005 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
20006 (join_c_conditions, print_c_condition, read_rtx_filename)
20007 (read_rtx_lineno): Move to read-md.h.
20008 * read-rtl.c: Include read-md.h.
20009 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
20010 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
20011 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
20012 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
20013 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
20014 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
20015 (read_braced_string, read_string): Move to read-md.c.
20016 (read_rtx): Move some initialization to init_md_reader and call
20017 init_md_reader here.
20018 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
20020 * gensupport.c: Include read-md.h.
20021 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
20022 * read-md.h, read-md.c: New files.
20024 2010-06-10 Anatoly Sokolov <aesok@post.ru>
20026 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
20027 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
20028 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
20029 * config/moxie/moxie.c (moxie_function_value): Make static.
20030 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
20031 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
20033 2010-06-10 Martin Jambor <mjambor@suse.cz>
20035 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
20036 * dbgcnt.def (tree_sra): New counter.
20037 * tree-sra.c: Include dbgcnt.h.
20038 (gate_intra_sra): Check tree_sra debug counter.
20040 2010-06-10 Martin Jambor <mjambor@suse.cz>
20042 PR tree-optimization/44258
20043 * tree-sra.c (build_access_subtree): Return false iff there is a
20045 (build_access_trees): Likewise.
20046 (analyze_all_variable_accesses): Disqualify candidates if
20047 build_access_trees returns true for them.
20049 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
20052 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
20053 tail-recurse into canonical node. Fast-forward over
20054 non-canonical VALUEs.
20056 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
20059 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
20060 (*addsi_1_zext) <TYPE_LEA>: Likewise.
20061 (add lea splitter): Likewise.
20062 (add_zext lea splitter): Likewise.
20064 2010-06-10 Joseph Myers <joseph@codesourcery.com>
20066 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
20068 2010-06-10 Jan Hubicka <jh@suse.cz>
20070 * df-problems.c (df_live_problem_data): Add live_bitmaps.
20071 (df_live_alloc): Initialize problem data and live_osbtacks.
20072 (df_live_finalize): Remove obstack, problem data; do not
20074 (df_live_top_dump, df_live_bottom_dump): Do not dump old
20075 data when not allocated.
20076 (df_live_verify_solution_start): Do not allocate problem data.
20077 (df_live_verify_solution_end): Check if out is allocated.
20078 (struct df_md_problem_data): New structure.
20079 (df_md_alloc): Allocate problem data.
20080 (df_md_free): Free problem data; do not clear bitmaps.
20082 2010-06-10 Jan Beulich <jbeulich@novell.com>
20085 * configure.ac: Replace $() with ${} when intending to expand
20086 variables rather than invoking commands.
20087 * configure: Re-generate.
20089 2010-06-10 Jan Hubicka <jh@suse.cz>
20091 PR rtl-optimization/44460
20092 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
20093 TYPE_NEEDS_CONSTRUCTING sanity check.
20095 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
20097 * doc/include/fdl.texi: Move to GFDL version 1.3.
20099 * doc/cpp.texi: Move to GFDL version 1.3.
20100 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
20101 * doc/gccint.texi: Move to GFDL version 1.3.
20102 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
20103 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
20104 * doc/invoke.texi: Move to GFDL version 1.3.
20106 2010-06-09 Jan Hubicka <jh@suse.cz>
20108 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
20110 (propagate) ... here; swap the order.
20112 2010-06-09 Jan Hubicka <jh@suse.cz>
20114 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
20115 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
20116 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
20117 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
20119 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
20121 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
20122 Do not the gather memory reference in the outer loop if the step
20125 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
20127 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
20128 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
20129 8 to 4. Minor change of the related comments.
20131 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
20133 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
20134 the scev analysis when the variable is not used outside the loop
20135 in a close phi node: call compute_overall_effect_of_inner_loop.
20137 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
20139 * graphite-sese-to-poly.c (single_pred_cond): Renamed
20140 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
20141 (build_sese_conditions_before): Renamed call to single_pred_cond.
20142 (build_sese_conditions_after): Same.
20144 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
20146 * graphite-poly.h: Fix comments and indentation.
20147 * graphite-sese-to-poly.c: Same.
20148 (build_sese_conditions_before): Compute stmt and gbb only when needed.
20149 * tree-chrec.c: Fix comments and indentation.
20150 (tree-ssa-loop-niter.c): Same.
20152 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
20154 PR rtl-optimization/42461
20155 * dce.c (deletable_insn_p): Return true for const or pure calls again.
20156 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
20158 2010-06-09 Jan Hubicka <jh@suse.cz>
20160 * bitmap.c (bitmap_and): Walk array forward.
20161 (bitmap_and_compl_into): Likewise.
20162 (bitmap_xor): Likewise.
20163 (bitmap_xor_into): Likewise.
20164 (bitmap_equal_p): Likewise.
20165 (bitmap_intersect_p): Likewise.
20166 (bitmap_intersect_compl_p): Likewise.
20167 (bitmap_ior_and_into): Likewise.
20168 (bitmap_elt_copy): Likewise.
20169 (bitmap_and_compl): Likewise.
20170 (bitmap_elt_ior): Likewise.
20172 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
20174 * opts-common.c (prune_options): Ensure replacement argv array
20175 is correctly terminated by a NULL entry.
20177 2010-06-09 Jan Hubicka <jh@suse.cz>
20179 * cgraph.h (varpool_first_static_initializer,
20180 varpool_next_static_initializer): Make checking only when
20182 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
20183 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
20184 gcc_assert to gcc_checking_assert.
20185 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
20186 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
20187 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
20188 op_iter_init_phiuse, op_iter_init_phidef,
20189 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
20190 gcc_checking_assert.
20191 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
20192 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
20193 partition_is_global, live_on_entry, live_on_exit,
20194 live_merge_and_clear): Likewise.
20195 * system.h (gcc_checking_assert): New macro.
20196 * gimple.h (set_bb_seq): Use gcc_checking_assert.
20198 2010-06-09 Jason Merrill <jason@redhat.com>
20200 * Makefile.in (TAGS): Collect tags info from c-family.
20202 2010-06-09 Jan Hubicka <jh@suse.cz>
20204 * gimple.h (gcc_gimple_checking_assert): New macro.
20205 (gimple_set_def_ops, gimple_set_use_ops,
20206 gimple_set_vuse, gimple_set_vdef,
20207 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
20208 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
20209 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
20210 gimple_asm_output_op, gimple_asm_output_op_ptr,
20211 gimple_asm_set_output_op, gimple_asm_clobber_op,
20212 gimple_asm_set_clobber_op, gimple_asm_label_op,
20213 gimple_asm_set_label_op, gimple_try_set_kind,
20214 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
20215 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
20216 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
20217 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
20218 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
20219 gimple_omp_for_set_initial, gimple_omp_for_final,
20220 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
20221 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
20222 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
20223 conditional with ENABLE_GIMPLE_CHECKING.
20224 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
20226 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
20228 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
20229 (get_computation_cost_at): Use it.
20230 (determine_use_iv_cost_condition): Likewise.
20231 (determine_iv_cost): Likewise.
20233 2010-06-09 Richard Guenther <rguenther@suse.de>
20235 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
20238 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
20240 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
20242 2010-06-09 Martin Jambor <mjambor@suse.cz>
20244 PR tree-optimization/44423
20245 * tree-sra.c (dump_access): Dump also grp_assignment_read.
20246 (analyze_access_subtree): Pass negative allow_replacements to children
20247 if the current type is scalar.
20249 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
20252 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
20253 * doc/plugins.texi (Plugin license check): Update information
20254 on type of plugin_is_GPL_compatible.
20255 * Makefile.in (PLUGINCC): Define as $(COMPILER).
20256 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
20258 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
20260 * config/arm/arm.c (thumb2_reorg): New function.
20261 (arm_reorg): Call it.
20262 * config/arm/thumb2.md (define_peephole2 for flag clobbering
20263 arithmetic operations): Delete.
20265 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
20268 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
20271 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
20274 * gcc-plugin.h: Encapsulate all declarations in extern "C".
20276 2010-06-08 Jan Hubicka <jh@suse.cz>
20278 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
20279 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
20281 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
20283 PR tree-optimization/39874
20284 PR middle-end/28685
20285 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
20287 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
20288 same_bool_result_p): New.
20289 (and_var_with_comparison, and_var_with_comparison_1,
20290 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
20291 (or_var_with_comparison, or_var_with_comparison_1,
20292 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
20293 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
20294 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
20295 of combine_comparisons.
20296 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
20298 2010-06-08 Anatoly Sokolov <aesok@post.ru>
20300 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
20301 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
20302 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
20303 pdp11_function_value_regno_p): New functions.
20304 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20305 TARGET_FUNCTION_VALUE_REGNO_P): Define.
20307 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
20309 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
20310 Thumb-2 in the MINUS case.
20312 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
20314 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
20316 * doc/gty.texi (GTY Options): Document typed GC allocation and
20317 variable_size GTY option.
20319 * ggc-internal.h: New.
20321 * ggc.h: Update copyright year.
20322 (digit_string): Move to stringpool.c.
20323 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
20324 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
20325 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
20326 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
20327 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
20328 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
20329 (ggc_force_collect, ggc_get_size, ggc_statistics)
20330 (ggc_print_common_statistics): Move to ggc-internal.h.
20331 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
20332 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
20333 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
20334 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
20335 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
20336 (ggc_alloc_zone_pass_stat): Remove.
20337 (ggc_internal_alloc_stat, ggc_internal_alloc)
20338 (ggc_internal_cleared_alloc_stat): New.
20339 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
20340 (ggc_internal_vec_alloc_stat)
20341 (ggc_internal_cleared_vec_alloc_stat)
20342 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
20343 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
20344 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
20345 (ggc_cleared_alloc_ptr_array_two_args): New.
20346 (htab_create_ggc, splay_tree_new_ggc): Redefine.
20347 (ggc_splay_alloc): Change the type of the first argument to
20348 enum gt_types_enum.
20349 (ggc_alloc_string): Make macro.
20350 (ggc_alloc_string_stat): New.
20351 (ggc_strdup): Redefine.
20352 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
20353 (ggc_alloc_rtvec_sized): New.
20354 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
20355 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
20356 (ggc_internal_cleared_alloc_zone_stat)
20357 (ggc_internal_zone_alloc_stat)
20358 (ggc_internal_zone_cleared_alloc_stat)
20359 (ggc_internal_zone_vec_alloc_stat)
20360 (ggc_alloc_zone_rtx_def_stat)
20361 (ggc_alloc_zone_tree_node_stat)
20362 (ggc_alloc_zone_cleared_tree_node_stat)
20363 (ggc_alloc_cleared_gimple_statement_d_stat): New.
20365 * ggc-common.c: Include ggc-internal.h.
20366 (ggc_internal_cleared_alloc_stat): Rename from
20367 ggc_alloc_cleared_stat.
20368 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
20369 (ggc_calloc): Remove.
20370 (ggc_cleared_alloc_htab_ignore_args): New.
20371 (ggc_cleared_alloc_ptr_array_two_args): New.
20372 (ggc_splay_alloc): Add obj_type parameter.
20373 (init_ggc_heuristics): Formatting fixes.
20375 * ggc-none.c: Update copyright year.
20376 (ggc_alloc_stat): Rename to ggc_alloc_stat.
20377 (ggc_alloc_cleared_stat): Rename to
20378 ggc_internal_cleared_alloc_stat.
20379 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
20381 * ggc-page.c: Update copyright year. Include ggc-internal.h.
20382 Remove references to ggc_alloc in comments.
20383 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
20384 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
20385 (new_ggc_zone, destroy_ggc_zone): Remove.
20386 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
20388 * ggc-zone.c: Include ggc-internal.h. Remove references to
20389 ggc_alloc in comments.
20390 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
20391 (ggc_internal_alloc_zone_pass_stat): New.
20392 (ggc_internal_cleared_alloc_zone_stat): New.
20393 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
20394 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
20395 (new_ggc_zone, destroy_ggc_zone): Remove.
20397 * stringpool.c: Update copyright year. Include ggc-internal.h
20398 (digit_vector): Make static.
20399 (digit_string): Moved from ggc.h.
20400 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
20401 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
20403 * Makefile.in (GGC_INTERNAL_H): New.
20404 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
20405 $(GGC_INTERNAL_H) to dependencies.
20407 * gentype.c: Update copyright year.
20408 (walk_type): Accept variable_size GTY option.
20409 (USED_BY_TYPED_GC_P): New macro.
20410 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
20411 whitespace at the end of strings.
20412 (get_type_specifier, variable_size_p): New functions.
20413 (alloc_quantity, alloc_zone): New enums.
20414 (write_typed_alloc_def): New function.
20415 (write_typed_struct_alloc_def): Likewise.
20416 (write_typed_typed_typedef_alloc_def): Likewise.
20417 (write_typed_alloc_defns): Likewise.
20418 (output_typename, write_splay_tree_allocator_def): Likewise.
20419 (write_splay_tree_allocators): Likewise.
20420 (main): Call write_typed_alloc_defns and
20421 write_splay_tree_allocators.
20423 * lto-streamer.h (lto_file_decl_data_ptr): New.
20425 * passes.c (order): Define using cgraph_node_ptr.
20427 * strinpool.c (struct string_pool_data): Declare nested_ptr using
20430 * gimple.h (union gimple_statement_d): Likewise.
20432 * rtl.h (struct rtx_def): Likewise.
20433 (struct rtvec_def): Likewise.
20435 * tree.h (union tree_node): Likewise.
20437 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
20439 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
20441 * tree-scalar-evolution.c (scev_initialize): Likewise.
20443 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
20445 * dwarf2asm.c (dw2_force_const_mem): Likewise.
20447 * omp-low.c (lower_omp_critical): Likewise.
20449 * bitmap.h (struct bitmap_head_def): Update comment to not
20450 reference ggc_alloc.
20452 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
20454 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
20456 * ipa-prop.c (duplicate_ggc_array): Rename to
20457 duplicate_ipa_jump_func_array. Use typed GC allocation.
20458 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
20460 * gimple.c (gimple_alloc_stat): Use
20461 ggc_alloc_cleared_gimple_statement_d_stat.
20463 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
20465 * tree.c (make_node_stat): Use
20466 ggc_alloc_zone_cleared_tree_node_stat.
20467 (make_tree_vec_stat): Likewise.
20468 (build_vl_exp_stat): Likewise.
20469 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
20470 (make_tree_binfo_stat): Likewise.
20471 (tree_cons_stat): Likewise.
20473 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
20474 (shallow_copy_rtx_stat): Likewise.
20475 (make_node_stat): Likewise.
20477 * lto-symtab.c: Fix comment.
20479 * tree-cfg.c (create_bb): Update comment to not reference
20481 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
20483 * varpool.c (varpool_node): Use typed GC allocation.
20484 (varpool_extra_name_alias): Likewise.
20486 * varasm.c (emutls_decl): Likewise.
20487 (get_unnamed_section): Likewise.
20488 (get_noswitch_section): Likewise.
20489 (get_section): Likewise.
20490 (get_block_for_section): Likewise.
20491 (build_constant_desc): Likewise.
20492 (create_constant_pool): Likewise.
20493 (force_const_mem): Likewise.
20495 * tree.c (build_vl_exp_stat): Likewise.
20496 (build_real): Likewise.
20497 (build_string): Likewise.
20498 (decl_debug_expr_insert): Likewise.
20499 (decl_value_expr_insert): Likewise.
20500 (type_hash_add): Likewise.
20501 (build_omp_clause): Likewise.
20503 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
20505 * tree-ssa.c (init_tree_ssa): Likewise.
20507 * tree-ssa-structalias.c (heapvar_insert): Likewise.
20509 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
20511 * tree-ssa-loop-niter.c (record_estimate): Likewise.
20513 * tree-ssa-alias.c (get_ptr_info): Likewise.
20515 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
20517 * tree-phinodes.c (allocate_phi_node): Likewise.
20519 * tree-iterator.c (tsi_link_before): Likewise.
20520 (tsi_link_after): Likewise.
20522 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
20524 * tree-dfa.c (create_var_ann): Likewise.
20526 * tree-cfg.c (create_bb): Likewise.
20528 * toplev.c (alloc_for_identifier_to_locale): Likewise.
20529 (general_init): Likewise.
20531 * stringpool.c (stringpool_ggc_alloc): Likewise.
20532 (gt_pch_save_stringpool): Likewise.
20534 * sese.c (if_region_set_false_region): Likewise.
20536 * passes.c (do_per_function_toporder): Likewise.
20538 * optabs.c (set_optab_libfunc): Likewise.
20539 (set_conv_libfunc): Likewise.
20541 * lto-symtab.c (lto_symtab_register_decl): Likewise.
20543 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
20544 (input_eh_region): Likewise.
20545 (input_eh_lp): Likewise.
20546 (make_new_block): Likewise.
20547 (unpack_ts_real_cst_value_fields): Likewise.
20549 * lto-section-in.c (lto_new_in_decl_state): Likewise.
20551 * lto-cgraph.c (input_node_opt_summary): Likewise.
20553 * loop-init.c (loop_optimizer_init): Likewise.
20555 * lambda.h (lambda_vector_new): Likewise.
20557 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
20559 * ira.c (update_equiv_regs): Likewise.
20561 * ipa.c (cgraph_node_set_new): Likewise.
20562 (cgraph_node_set_add): Likewise.
20563 (varpool_node_set_new): Likewise.
20564 (varpool_node_set_add): Likewise.
20566 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
20567 (duplicate_ipa_jump_func_array): Likewise.
20568 (ipa_read_node_info): Likewise.
20570 * ipa-cp.c (ipcp_create_replace_map): Likewise.
20572 * integrate.c (get_hard_reg_initial_val): Likewise.
20574 * gimple.c (gimple_alloc_stat): Likewise.
20575 (gimple_build_omp_for): Likewise.
20576 (gimple_seq_alloc): Likewise.
20577 (gimple_copy): Likewise.
20579 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
20580 (gsi_insert_after_without_update): Likewise.
20582 * function.c (add_frame_space): Likewise.
20583 (insert_temp_slot_address): Likewise.
20584 (assign_stack_temp_for_type): Likewise.
20585 (allocate_struct_function): Likewise.
20586 (types_used_by_var_decl_insert): Likewise.
20588 * except.c (init_eh_for_function): Likewise.
20589 (gen_eh_region): Likewise.
20590 (gen_eh_region_catch): Likewise.
20591 (gen_eh_landing_pad): Likewise.
20592 (add_call_site): Likewise.
20594 * emit-rtl.c (get_mem_attrs): Likewise.
20595 (get_reg_attrs): Likewise.
20596 (start_sequence): Likewise.
20597 (init_emit): Likewise.
20599 * dwarf2out.c (new_cfi): Likewise.
20600 (queue_reg_save): Likewise.
20601 (dwarf2out_frame_init): Likewise.
20602 (new_loc_descr): Likewise.
20603 (find_AT_string): Likewise.
20604 (new_die): Likewise.
20605 (add_var_loc_to_decl): Likewise.
20606 (clone_die): Likewise.
20607 (clone_as_declaration): Likewise.
20608 (break_out_comdat_types): Likewise.
20609 (new_loc_list): Likewise.
20610 (loc_descriptor): Likewise.
20611 (add_loc_descr_to_each): Likewise.
20612 (add_const_value_attribute): Likewise.
20613 (tree_add_const_value_attribute): Likewise.
20614 (add_comp_dir_attribute): Likewise.
20615 (add_name_and_src_coords_attributes): Likewise.
20616 (lookup_filename): Likewise.
20617 (store_vcall_insn): Likewise.
20618 (dwarf2out_init): Likewise.
20620 * dbxout.c (dbxout_init): Likewise.
20622 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
20624 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
20626 * config/score/score7.c (score7_output_external): Likewise.
20628 * config/score/score3.c (score3_output_external): Likewise.
20630 * config/s390/s390.c (s390_init_machine_status): Likewise.
20632 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
20633 (rs6000_init_machine_status): Likewise.
20634 (output_toc): Likewise.
20636 * config/pa/pa.c (pa_init_machine_status): Likewise.
20637 (get_deferred_plabel): Likewise.
20639 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
20641 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
20643 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
20645 * config/mep/mep.c (mep_init_machine_status): Likewise.
20646 (mep_note_pragma_flag): Likewise.
20648 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
20650 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
20652 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
20654 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
20655 (i386_pe_maybe_record_exported_symbol): Likewise.
20657 * config/i386/i386.c (get_dllimport_decl): Likewise.
20658 (ix86_init_machine_status): Likewise.
20659 (assign_386_stack_local): Likewise.
20661 * config/frv/frv.c (frv_init_machine_status): Likewise.
20663 * config/darwin.c (machopic_indirection_name): Likewise.
20665 * config/cris/cris.c (cris_init_machine_status): Likewise.
20667 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
20669 * config/avr/avr.c (avr_init_machine_status): Likewise.
20671 * config/arm/arm.c (arm_init_machine_status): Likewise.
20673 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
20674 (alpha_need_linkage): Likewise.
20675 (alpha_use_linkage): Likewise.
20677 * cgraph.c (cgraph_allocate_node): Likewise.
20678 (cgraph_create_edge_1): Likewise.
20679 (cgraph_create_indirect_edge): Likewise.
20680 (cgraph_add_asm_node): Likewise.
20682 * cfgrtl.c (init_rtl_bb_info): Likewise.
20684 * cfgloop.c (alloc_loop): Likewise.
20685 (rescan_loop_exit): Likewise.
20687 * cfg.c (init_flow): Likewise.
20688 (alloc_block): Likewise.
20689 (unchecked_make_edge): Likewise.
20691 * c-parser.c (c_parse_init): Likewise.
20692 (c_parse_file): Likewise.
20694 * c-decl.c (bind): Likewise.
20695 (record_inline_static): Likewise.
20696 (push_scope): Likewise.
20697 (make_label): Likewise.
20698 (lookup_label_for_goto): Likewise.
20699 (finish_struct): Likewise.
20700 (finish_enum): Likewise.
20701 (c_push_function_context): Likewise.
20703 * bitmap.c (bitmap_element_allocate): Likewise.
20704 (bitmap_gc_alloc_stat): Likewise.
20706 * alias.c (record_alias_subset): Likewise.
20707 (init_alias_analysis): Likewise.
20709 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
20711 * fold-const.c (fold_comparison): Remove redundant parenthesis.
20712 * tree-inline.c (expand_call_inline): Pass translated return value of
20713 cgraph_inline_failed_string to diagnostic function.
20715 2010-06-08 Andrew Pinski <pinskia@gmail.com>
20716 Shujing Zhao <pearly.zhao@oracle.com>
20719 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
20720 implicit bad conversions is initialization.
20721 (error_init): Use gmsgid instead of msgid for argument name and change
20722 the call for error.
20723 (pedwarn_init): Use gmsgid instead of msgid for argument name and
20724 change the call for pedwarn.
20725 (warning_init): Use gmsgid instead of msgid for argument name and
20726 change the call for warning.
20728 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
20730 * config/mips/mips-protos.h (mips_print_operand): Delete.
20731 (mips_print_operand_address): Delete.
20732 * config/mips/mips.h (mips_print_operand_punct): Delete.
20733 (PRINT_OPERAND): Delete.
20734 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20735 (PRINT_OPERAND_ADDRESS): Delete.
20736 * config/mips/mips.c (mips_print_operand_punct): Make static.
20737 (mips_print_operand_address): Make static.
20738 (mips_print_operand): Make static. Call
20739 mips_print_operand_punct_valid_p.
20740 (mips_print_operand_punct_valid_p): New function.
20741 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
20742 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20744 2010-06-07 Jan Hubicka <jh@suse.cz>
20746 PR middle-end/44454
20747 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
20750 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
20752 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
20755 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20757 * doc/sourcebuild.texi (Effective-Target Keywords, Other
20758 attributes): Document gas.
20760 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
20762 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
20763 <TYPE_LEA>: Split instruction.
20764 <default>: Remove alternative 2 handling.
20765 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
20766 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
20767 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
20769 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
20770 (ashift_zext lea splitter): Use DImode for multiplication.
20772 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
20773 to generate addition.
20775 2010-06-07 Joseph Myers <joseph@codesourcery.com>
20777 * common.opt (fira-verbose): Use Var.
20778 (fpcc-struct-return): Use Init instead of VarExists.
20779 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
20781 * flags.h (flag_signed_char, flag_short_enums,
20782 flag_pcc_struct_return, flag_ira_verbose,
20783 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
20784 * toplev.c (flag_detailed_statistics, flag_signed_char,
20785 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
20786 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
20787 * toplev.h (flag_crossjumping, flag_if_conversion,
20788 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
20789 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
20790 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
20791 flag_cprop_registers, time_report, flag_ira_loop_pressure,
20792 flag_ira_coalesce, flag_ira_move_spills,
20793 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
20795 2010-06-07 Jan Hubicka <jh@suse.cz>
20797 * df-core.c (df_analyze_problem): Do verification after allocation.
20799 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
20800 (df_lr_alloc): Initialize problem data; move bitmaps to
20801 lr_bitmaps obstack.
20802 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
20803 (df_lr_verify_solution_start): Do not initialize problem data;
20804 allocate bitmaps in lr_bitmaps.
20805 (df_lr_verify_solution_end): Do not free problem data.
20807 2010-06-07 Jan Hubicka <jh@suse.cz>
20809 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
20810 if caller is noreturn.
20811 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
20812 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
20813 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
20814 * ipa-pure-const.c (check_decl): Add IPA parameter.
20815 (state_from_flags): New function.
20816 (better_state, worse_state): New functions.
20817 (check_call): When in IPA mode, do not care about callees.
20818 (check_load, check_store): Update.
20819 (check_ipa_load, check_ipa_store): New.
20820 (check_stmt): When in IPA mode, use IPA checkers.
20821 (analyze_function): Use state_from_flags.
20822 (propagate): Check indirect edges and references.
20824 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
20826 PR rtl-optimization/44404
20827 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
20828 of count_occurrences to see if it's safe to modify mem_insn.
20830 2010-06-07 Richard Guenther <rguenther@suse.de>
20832 * gimplify.c (gimplify_cleanup_point_expr): For empty body
20833 and EH-only cleanup drop the cleanup instead of inserting it
20836 2010-06-07 Ira Rosen <irar@il.ibm.com>
20838 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
20840 * targhooks.c (default_builtin_vectorization_cost): New function.
20841 * targhooks.h (default_builtin_vectorization_cost): Declare.
20842 * target.h (enum vect_cost_for_stmt): Define.
20843 (builtin_vectorization_cost): Change argument and comment.
20844 * tree-vectorizer.h: Remove cost model macros.
20845 * tree-vect-loop.c: Include target.h.
20846 (vect_get_cost): New function.
20847 (vect_estimate_min_profitable_iters): Replace cost model macros with
20848 calls to vect_get_cost.
20849 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
20850 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
20851 default implementation.
20852 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
20853 calls to target hook builtin_vectorization_cost.
20854 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
20856 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
20857 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
20858 implementation to return costs.
20859 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
20860 * config/spu/spu.h: Remove vectorizer cost model macros.
20861 * config/i386/i386.h: Likewise.
20862 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
20863 a call to target hook builtin_vectorization_cost.
20865 2010-06-06 Sriraman Tallam <tmsriram@google.com>
20868 * config/i386/i386.c (override_options): Turn zee pass on for level 2
20869 and above and defer till target is known.
20870 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
20871 turn off otherwise.
20873 2010-05-25 Jan Hubicka <jh@suse.cz>
20875 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
20876 (df_compact_blocks): Likewise.
20877 * df.h (struct df): Turn hardware_regs_used,
20878 regular_block_artificial_uses, eh_block_artificial_uses,
20879 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
20881 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
20882 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
20883 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
20884 df_scan_blocks, df_insn_delete, df_insn_rescan,
20885 df_insn_rescan_debug_internal, df_insn_rescan_all,
20886 df_process_deferred_rescans, df_process_deferred_rescans,
20887 df_notes_rescan, df_get_call_refs, df_get_call_refs,
20888 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
20889 df_record_entry_block_defs, df_record_exit_block_uses,
20890 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
20891 df_scan_verify): Update.
20893 2010-05-25 Dodji Seketeli <dodji@redhat.com>
20896 * c-common.c (is_typedef_decl): Move this definition ...
20897 * tree.c (is_typedef_decl): ... here.
20898 (typdef_variant_p): Move definition here from cp/tree.c.
20899 * c-common.h (is_typedef_decl): Move this declaration ...
20900 * tree.h (is_typedef_decl): ... here.
20901 (typedef_variant_p): Move declaration here from cp/cp-tree.h
20902 * dwarf2out.c (is_naming_typedef_decl): New function.
20903 (gen_tagged_type_die): Split out of ...
20904 (gen_type_die_with_usage): ... this function. When an anonymous
20905 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
20906 is emitted for the typedef.
20907 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
20908 anonymous tagged types.
20910 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
20913 * c-decl.c (grokdeclarator): Delete warning.
20915 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
20917 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
20918 newly built CALL_EXPR.
20919 * tree-profile.c (tree_profiling): Don't profile functions produced
20920 for built-in stuff.
20922 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
20926 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
20927 endianness-independent.
20929 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
20931 * c-common.c: Move to c-family/.
20932 * c-common.def: Likewise.
20933 * c-common.h: Likewise.
20934 * c-cppbuiltin.c: Likewise.
20935 * c-dump.c: Likewise.
20936 * c-format.c: Likewise.
20937 * c-format.h : Likewise.
20938 * c-gimplify.c: Likewise.
20939 * c-lex.c: Likewise.
20940 * c-omp.c: Likewise.
20942 * c-opts.c: Likewise.
20943 * c-pch.c: Likewise.
20944 * c-ppoutput.c: Likewise.
20945 * c-pragma.c: Likewise.
20946 * c-pragma.h: Likewise.
20947 * c-pretty-print.c: Likewise.
20948 * c-pretty-print.h: Likewise.
20949 * c-semantics.c: Likewise.
20950 * stub-objc.c: Likewise.
20952 * gengtype.c (get_file_langdir): Special-case files in c-family/.
20953 (get_output_file_with_visibility): Fix name for c-common.h.
20954 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
20956 * c-tree.h: Update include path for moved files.
20957 * c-lang.c: Likewise.
20958 * c-lang.h: Likewise.
20959 * c-parser.c: Likewise.
20960 * c-convert.c: Likewise.
20961 * c-decl.c: Likewise.
20962 * c-objc-common.c: Likewise.
20963 * configure.ac: Make sure c-family/ exists in the build directory.
20964 * configure: Regenerate.
20965 * Makefile.in: Update paths for moved files. Regroup files per
20966 location and update dependencies. Move generated_files down after
20969 * config/spu/spu-c.c: Update paths for moved files.
20970 * config/mep/mep-pragma.c: Likewise.
20971 * config/darwin-c.c: Likewise.
20972 * config/i386/msformat-c.c: Likewise.
20973 * config/i386/i386-c.c: Likewise.
20974 * config/avr/avr-c.c: Likewise.
20975 * config/sol2-c.c: Likewise.
20976 * config/ia64/ia64-c.c: Likewise.
20977 * config/rs6000/rs6000-c.c: Likewise.
20978 * config/arm/arm.c: Likewise.
20979 * config/arm/arm-c.c: Likewise.
20980 * config/h8300/h8300.c: Likewise.
20981 * config/v850/v850-c.c: Likewise.
20983 * config/t-darwin: Fix dependencies for moved files.
20984 * config/t-sol2: Fix dependencies for moved files.
20985 * config/mep/t-mep: Fix dependencies for moved files.
20986 * config/ia64/t-ia64: Fix dependencies for moved files.
20987 * config/rs6000/t-rs6000: Fix dependencies for moved files.
20988 * config/v850/t-v850: Fix dependencies for moved files.
20989 * config/v850/t-v850e: Fix dependencies for moved files.
20991 * config/m32c/m32c-pragma.c
20993 * po/exgettext: Look in c-family/ also.
20995 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
20997 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
20998 (mark_control_dependent_edges_necessary): Call it instead of marking
20999 the last statement manually.
21000 (propagate_necessity): Likewise.
21002 2010-06-05 Jan Hubicka <jh@suse.cz>
21004 * basic-block.h (compute_dominance_frontiers): Updated.
21005 (compute_idf): Likewise.
21007 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
21008 for dominance frontiers.
21009 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
21010 (insert_updated_phi_nodes_for): Likewise.
21011 (update_ssa): Likewise.
21012 * cfganal.c (compute_dominance_frontiers_1): Likewise.
21013 (compute_dominance_frontiers): Likewise.
21014 (compute_idf): Likewise.
21015 * df-problems.c (df_md_local_compute): Likewise.
21017 2010-06-05 Anatoly Sokolov <aesok@post.ru>
21019 * target.h (struct gcc_target): Add memory_move_cost field.
21020 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
21021 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
21022 * targhooks.c (default_memory_move_cost): New function.
21023 * targhooks.h (default_memory_move_cost): Declare function.
21024 * reload.h (memory_move_cost): Declare.
21025 (memory_move_secondary_cost): Change type of 'in' argument to bool.
21026 * reginfo.c (memory_move_cost): New function.
21027 (memory_move_secondary_cost): Change type of 'in' argument to bool.
21028 * ira.h (ira_memory_move_cost): Update comment.
21029 * ira.c (ira_memory_move_cost): Update comment.
21030 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
21031 with memory_move_cost.
21032 * postreload.c (reload_cse_simplify_set): (Ditto.).
21033 * reload1.c (choose_reload_regs): (Ditto.).
21034 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
21035 (MEMORY_MOVE_COST): Revise documentation.
21037 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
21038 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
21039 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
21040 type of 'in' argument to bool.
21041 (TARGET_MEMORY_MOVE_COST): Define.
21043 2010-06-05 Jan Hubicka <jh@suse.cz>
21045 * ipa-pure-const.c (propagate): Fix typo in handling of functions
21046 that cannot return. Be more careful when merging the results with
21047 previously known ones.
21049 2010-06-05 Matthias Klose <doko@ubuntu.com>
21051 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
21052 function to add the -iplugindir option.
21053 (find_plugindir_spec_function): Add new declaration and function.
21054 (static_spec_func): Use it for "find-plugindir".
21056 2010-06-05 Jakub Jelinek <jakub@redhat.com>
21059 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
21060 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
21061 statement expression.
21063 2010-06-05 Jan Hubicka <jh@suse.cz>
21065 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
21066 (df_rd_problem_data): Convert sparse_invalidated_by_call,
21067 dense_invalidated_by_call to bitmap head.
21068 (df_rd_alloc, df_rd_bb_local_compute_process_def,
21069 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
21070 df_rd_start_dump, df_lr_verify_transfer_functions,
21071 df_live_verify_transfer_functions, df_chain_create_bb,
21072 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
21073 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
21074 df_simulate_one_insn_forwards, df_md_alloc,
21075 df_md_bb_local_compute_process_def,
21076 df_md_bb_local_compute_process_def, df_md_local_compute,
21077 df_md_transfer_function df_md_free): Update.
21079 2010-06-05 Joseph Myers <joseph@codesourcery.com>
21082 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
21083 target type for ADDR_EXPR; require no changes to qualifiers except
21084 for function types.
21085 * c-tree.h (c_build_type_variant): Remove.
21087 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
21089 * genautomata.c (get_excl_set): Do work per element, not per char.
21090 (check_presence_pattern_sets): Similar.
21091 (check_absence_pattern_sets): Similar.
21093 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
21095 * genautomata.c (curr_state_pass_num): Delete.
21096 (min_issue_delay_pass_states): Delete.
21097 (min_issue_delay): Delete.
21098 (initiate_min_issue_delay_pass_states): Delete.
21099 (output_min_issue_delay_table): Compute min_issue_delay_vect
21100 using a breadth-first search variant.
21101 (output_tables): Don't call initiate_min_issue_delay_pass_states.
21103 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
21106 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
21107 (df_byte_lr_bb_local_compute): Likewise.
21109 2010-06-03 Jason Merrill <jason@redhat.com>
21111 Implement noexcept operator (5.3.7)
21112 * c-common.c (c_common_reswords): Add noexcept.
21113 * c-common.h (enum rid): Add RID_NOEXCEPT.
21115 2010-06-04 Joseph Myers <joseph@codesourcery.com>
21117 * config/darwin-driver.c (darwin_default_min_version): Use
21118 GCC-specific formats in diagnostics.
21119 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
21121 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
21122 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
21123 eval_spec_function, handle_braces, process_brace_body, main,
21124 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
21125 getenv_spec_function, compare_version_strings,
21126 version_compare_spec_function): Use GCC-specific formats in
21129 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
21131 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
21132 that operand 0 and operand 1 are equal.
21133 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
21134 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
21135 and operand 1 are equal.
21136 <default>: Ditto. Remove ??? comment.
21137 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
21138 and operand 1 are equal.
21139 <default>: Ditto. Remove ??? comment.
21140 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
21142 (*add<mode>_4) <default>: Ditto.
21143 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
21145 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
21147 * config/i386/i386-protos.h (ix86_print_operand): Declare.
21148 * config/i386/i386.c (ix86_print_operand): Make non-static.
21149 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
21150 * output.h (output_operand): Declare.
21151 * final.c (output_operand): Make non-static.
21153 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
21155 PR rtl-optimization/44013
21156 * sched-deps.c (add_dependence_list_and_free): Don't free lists
21157 when processing debug insns.
21160 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
21161 recursing. Check that recursion is bounded. Rename inner var
21162 to avoid hiding incoming argument.
21164 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
21166 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
21167 operands[2] == 255.
21171 (*addqi_ext_1_rex64): Ditto.
21172 (*addqi_ext_1): Ditto.
21174 (*addqi_4): Check for incdec_operand in QImode.
21176 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
21177 using SWI mode iterator.
21178 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
21179 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
21181 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
21182 using SWI mode iterator.
21184 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
21187 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
21188 * c-format.c (gcc_diag_flag_specs): Add hash.
21189 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
21190 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
21191 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
21192 pp_c_cv_qualifiers. Handle qualifiers spelling here.
21193 (pp_c_type_qualifier_list): Call the function above.
21194 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
21195 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
21196 (WARN_FOR_QUALIFIERS): New macro.
21197 (convert_for_assignment): Use it.
21199 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
21201 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
21203 2010-06-04 Jan Hubicka <jh@suse.cz>
21205 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
21206 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
21207 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
21208 DF_BYTE_LR_OUT): Update for embedded bitmaps.
21209 * fwprop.c (single_def_use_enter_block): Likewise.
21210 * ddg.c (create_ddg_dep_from_intra_loop_link,
21211 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
21212 * loop-iv.c (latch_dominating_def): Likewise.
21213 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
21214 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
21215 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
21216 df_rd_transfer_function, df_rd_top_dump,
21217 df_rd_bottom_dump): Update.
21218 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
21219 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
21220 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
21221 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
21222 df_lr_verify_solution_start, df_lr_verify_solution_end,
21223 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
21224 df_live_free_bb_info, df_live_alloc, df_live_reset,
21225 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
21226 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
21227 df_live_verify_solution_start, df_live_verify_solution_end,
21228 df_live_verify_transfer_functions, df_chain_create_bb,
21229 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
21230 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
21231 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
21232 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
21233 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
21234 df_byte_lr_transfer_function, df_byte_lr_top_dump,
21235 df_byte_lr_bottom_dump, df_create_unused_note,
21236 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
21237 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
21238 df_md_transfer_function, df_md_init, df_md_confluence_0,
21239 df_md_confluence_n,
21240 df_md_top_dump, df_md_bottom_dump): Update.
21241 (struct df_lr_problem_data): Embedd bitmap headers.
21243 2010-06-04 Jan Hubicka <jh@suse.cz>
21245 * dce.c (dce_process_block): Do not re-scan already marked
21248 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
21250 PR rtl-optimization/39871
21251 PR rtl-optimization/40615
21252 PR rtl-optimization/42500
21253 PR rtl-optimization/42502
21254 * ira.c (init_reg_equiv_memory_loc: New function.
21255 (ira): Call it twice.
21256 * reload.h (calculate_elim_costs_all_insns): Declare.
21257 * ira-costs.c: Include "reload.h".
21258 (regno_equiv_gains): New static variable.
21259 (init_costs): Allocate it.
21260 (finish_costs): Free it.
21261 (ira_costs): Call calculate_elim_costs_all_insns.
21262 (find_costs_and_classes): Take estimated elimination costs
21264 (ira_adjust_equiv_reg_cost): New function.
21265 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
21266 * reload1.c (init_eliminable_invariants, free_reg_equiv,
21267 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
21268 (elim_bb): New static variable.
21269 (reload): Move code out of here into init_eliminable_invariants and
21270 free_reg_equiv. Call them.
21271 (calculate_elim_costs_all_insns): New function.
21272 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
21273 all callers changed. If FOR_COSTS is true, don't call alter_reg,
21274 but call note_reg_elim_costly if we turned a valid memory address
21275 into an invalid one.
21276 * Makefile.in (ira-costs.o): Depend on reload.h.
21278 2010-06-04 Julian Brown <julian@codesourcery.com>
21280 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
21283 2010-06-04 Richard Guenther <rguenther@suse.de>
21286 * cgraph.h (struct varpool_node): Add lto_file_data field.
21287 * lto-cgraph.c (input_varpool_node): Initialize it.
21289 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
21291 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
21292 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
21293 predicate in "type" attribute calculation.
21294 (*addsi_1_zext): Ditto.
21295 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
21296 (*addsi_2_zext): Ditto.
21297 (*add<mode>_3): Ditto.
21298 (*addsi_3_zext): Ditto.
21299 (*add<mode>_5): Ditto.
21301 2010-06-03 Jan Hubicka <jh@suse.cz>
21303 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
21305 * cfganal.c (compute_dominance_frontiers_1): Likewise.
21307 2010-06-03 Jan Hubicka <jh@suse.cz>
21309 * df-problems.c (df_create_unused_note, df_note_bb_compute):
21310 micro-optimize the checks when to add new note.
21312 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
21314 * final.c (output_asm_insn): Call
21315 targetm.asm_out.print_operand_punct_valid_p. Update comments.
21316 (output_operand): Call targetm.asm_out.print_operand. Update comments.
21317 (output_address): Call targetm.asm_out.print_operand_address.
21319 * target.h (struct gcc_target): Add print_operand,
21320 print_operand_address, and print_operand_punct_valid_p fields.
21321 * targhooks.h (default_print_operand): Declare.
21322 (default_print_operand_address): Declare.
21323 (default_print_operand_punct_valid_p): Declare.
21324 * targhooks.c (default_print_operand): Define.
21325 (default_print_operand_address): Define.
21326 (default_print_operand_punct_valid_p): Define.
21327 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
21328 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
21329 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
21330 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
21331 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
21332 * vmsdbgout.c (addr_const_to_string): Update comment.
21333 * config/i386/i386.c (print_operand): Rename to...
21334 (ix86_print_operand): ...this. Make static.
21335 (print_operand_address): Rename to...
21336 (ix86_print_operand_address): ...this. Make static. Call
21337 ix86_print_operand instead of PRINT_OPERAND.
21338 (ix86_print_operand_punct_valid_p): New function.
21339 (TARGET_PRINT_OPERAND): Define.
21340 (TARGET_PRINT_OPERAND_ADDRESS): Define.
21341 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21342 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
21343 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21344 (PRINT_OPERAND): Delete.
21345 (PRINT_OPERAND_ADDRESS): Delete.
21346 * config/i386/i386-protos.h (print_operand): Delete prototype.
21347 (print_operand_address): Delete prototype.
21349 2010-06-03 Richard Guenther <rguenther@suse.de>
21351 PR tree-optimization/44403
21352 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
21353 Preserve pointer qualifiers.
21354 (vect_create_data_ref_ptr): Likewise.
21356 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
21359 * defaults.h (MAX_FIXED_MODE_SIZE): New.
21361 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
21363 2010-06-03 Jakub Jelinek <jakub@redhat.com>
21366 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
21367 return false if merging the bbs would lead to goto_locus
21368 location being lost from the IL.
21370 2010-06-03 Jan Hubicka <jh@suse.cz>
21371 Jakub Jelinek <jakub@redhat.com>
21373 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
21374 set->regs[i] is NULL or has just one entry.
21376 2010-06-03 Jan Hubicka <jh@suse.cz>
21378 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
21379 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
21381 2010-06-03 Paul Brook <paul@codesourcery.com>
21383 * config/arm/arm.c (FL_TUNE): Define.
21384 (arm_default_cpu, arm_cpu_select): Remove.
21385 (all_cores): Populate core field.
21386 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
21387 (arm_find_cpu): New function.
21388 (arm_handle_option): Lookup cpu/architecture names.
21389 (arm_override_options): Cleanup mcpu/march/mtune handling.
21390 (arm_file_start): Ditto.
21392 2010-06-03 Alan Modra <amodra@gmail.com>
21395 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
21396 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
21397 rtx to gen_load_toc_v4_PIC_1b. Tidy.
21398 (rs6000_emit_load_toc_table): Likewise.
21400 2010-06-02 Jan Hubicka <jh@suse.cz>
21402 * passes.c (init_optimization_passes): Put ipa reference
21403 after ipa pure-const.
21405 2010-06-02 Jan Hubicka <jh@suse.cz>
21407 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
21408 calls_read_all and calls_write_all.
21409 (get_reference_optimization_summary): Fix formatting.
21410 (is_proper_for_analysis): Check that decl is not readonly.
21411 (propagate_bits): Check CONST/PURE/noreturn flags.
21412 (ipa_init): Move all_module_statics to optimization_summary_obstack.
21413 (analyze_function): Ignore indirect edges.
21414 (copy_global_bitmap): For all module statics, do nothing.
21415 (generate_summary): Do not print calls_read_all/calls_write_all.
21416 (read_write_all_from_decl): Take node as argument; check
21417 cgraph_node_cannot_return.
21418 (propagate): Reorganize read_all/write_all computation;
21419 check indirect edges; check ecf flags; use all_module_statics
21420 in the results; do not free all_module_statics.
21421 (stream_out_bitmap): Handle all_module_statics.
21422 (ipa_reference_write_optimization_summary): Likewise; use
21423 varpool/cgraph encoders to get boundaries.
21424 (ipa_reference_read_optimization_summary): Read in all_module_statics;
21425 use it when possible.
21427 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21430 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
21431 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
21433 * doc/extend.texi (powerpc builtins): Document vec_recip,
21434 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
21436 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
21437 (rs6000_emit_swrsqrt): Ditto.
21438 (rs6000_emit_swdivsf): Delete.
21439 (rs6000_emit_swdivdf): Ditto.
21440 (rs6000_emit_swrsqrtsf): Ditto.
21442 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
21443 describe the reciprocal estimate support for each type.
21444 (recip_options): Map -mrecip=<opt> into option bits.
21445 (gen_2arg_fn_t): New typedef for binary rtx gen function.
21446 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
21447 reciprocal estimate instructions.
21448 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
21449 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
21450 Set up rs6000_recip_bits based on the -mrecip* options. Print the
21451 cost information if -mdebug=cost or -mdebug=reg.
21452 (rs6000_override_options): Set -mrecip-precision for power6, and
21453 power7 machines. If -mvsx or -mdfp, enable various options that
21454 came in previous instruction set ISAs, unless the option was
21455 explicitly disabled by the command line option. Parse
21456 -mrecip=<opt> options.
21457 (rs6000_builtin_vectorized_function): Add support for vectorizing
21458 the reciprocal estimate builtins and expansions.
21459 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
21460 (bdesc_2arg): Add reciprocal estimate builtins.
21461 (bdesc_1arg): Add reciprocal square root estimate builtins.
21462 (rs6000_expand_builtin): Rewrite to use a switch statement,
21463 instead of multiple if/then/elses. Add reciprocal estimate builtins.
21464 (rs6000_init_builtins): Create declarations for reciprocal
21466 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
21467 sized, prefer traditional floating point registers, if integer
21468 vector types, prefer altivec registers. Don't actually look at
21469 the memory address any more.
21470 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
21472 (rs6000_load_constant_and_splat): New helper function to load up
21473 the constant for reciprocal estimate instructions.
21474 (rs6000_emit_madd): New helper function for generating
21475 multiply/add type instructions, based on the current switches.
21476 (rs6000_emit_msub): Ditto.
21477 (rs6000_emit_mnsub): Ditto.
21478 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
21479 replace a divide with a reciprocal estimate and fixup, adding
21480 support for machines with high precision and vectors.
21481 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
21482 low precision machines.
21483 (rs6000_emit_swdiv): New common function to be called to replace a
21484 division with reciprocal estimate and fixup.
21485 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
21486 for double and vector types. Add support for high precision machines.
21488 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
21489 the reciprocal estimate instructions can be generated.
21490 (TARGET_FRE): Ditto.
21491 (TARGET_FRSQRTES): Ditto.
21492 (TARGET_FRSQRTE): Ditto.
21493 (RS6000_RECIP_*): New macros for reciprocal estimate support.
21495 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
21496 square root estimate on vectors.
21497 (re<mode>2): New insn for reciprocal division estimate on vectors.
21499 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
21501 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
21502 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
21503 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
21504 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
21505 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
21506 (RS6000_BUILTIN_RSQRT): Ditto.
21507 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
21508 floating point builtin.
21510 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
21511 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
21512 __RECIP_PRECISION__ based on the command line switches.
21513 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
21515 * config/rs6000/rs6000.opt (-mrecip): Document add support for
21516 replacing division instructions with reciprocal estimate and fixup.
21517 (-mrecip=<opt>): New option.
21518 (-mrecip-precision): Ditto.
21520 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
21521 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
21522 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
21525 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
21526 (UNSPEC_VREFP): Ditto.
21527 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
21528 conterparts with regard to support of -mno-fused-madd and -ffast-math.
21529 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
21530 reciprocal estimate instructions to be generated.
21531 (altivec_vrefp): Ditto.
21533 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
21535 (rreg): New mode attribute for reciprocal estimate support.
21536 (recip<mode>3): New insn for division using reciprocal estimate
21537 and fixup builtins.
21538 (divide define_split): New define_split to convert floating point
21539 division to use reciprocal estimate if the user used the
21540 appropriate options and the split is run when we can add new
21541 pseudo registers for the fixup.
21542 (rsqrt<mode>2): New insn for reciprocal square root support.
21543 (recipsf3): Move into recip<mode>3.
21545 (fres): Use TARGET_FRES.
21546 (rsqrtsf2): Move into rsqrt<mode>2.
21547 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
21548 (copysignsf3): Add support for VSX.
21549 (fred): Use TARGET_FRE.
21551 (rsqrtdf_internal1): New function for frsqrte instruciton.
21553 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
21554 (vec_rsqrt): Ditto.
21556 2010-06-03 Richard Guenther <rguenther@suse.de>
21558 PR middle-end/44291
21559 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
21560 (set_user_assembler_libfunc): Likewise.
21562 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
21564 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
21566 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
21568 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
21569 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
21570 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
21571 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
21572 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
21573 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
21574 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
21575 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
21576 * defaults.h: Updated for above mentioned changes.
21578 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
21580 * c-common.c: Remove header include of tm_p.h.
21581 * Makefile.in (c-common.o): Remove TM_P_H dependency.
21583 2010-06-02 Jakub Jelinek <jakub@redhat.com>
21585 * tree.h (struct tree_decl_map): New type.
21586 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
21587 (tree_decl_map_hash): New prototype.
21588 (debug_expr_for_decl, value_expr_for_decl): Change into
21589 tree_decl_map hashtab from tree_map.
21590 (init_ttree): Adjust initialization.
21591 (tree_decl_map_hash): New function.
21592 (decl_debug_expr_lookup, decl_debug_expr_insert,
21593 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
21595 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21597 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
21599 * configure: Regenerate.
21600 * config.in: Regenerate.
21602 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
21603 (X86_64_EMULATION): Define.
21604 (TARGET_LD_EMULATION): Use them.
21606 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
21607 (SPARC64_EMULATION): Define.
21608 (LINK_ARCH_SPEC): Use them.
21610 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
21612 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
21613 smallest_mode_for_size for computing the precision types of new
21614 graphite IVs. Do not call lang_hooks.types.type_for_size.
21616 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
21618 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
21620 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
21622 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
21624 PR middle-end/44363
21625 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
21626 return false instead.
21628 2010-06-02 Jan Hubicka <jh@suse.cz>
21630 PR middle-end/44295
21631 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
21632 create new cgraph node to check callee.
21634 2010-06-02 Richard Guenther <rguenther@suse.de>
21636 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
21638 2010-06-02 Richard Guenther <rguenther@suse.de>
21640 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
21641 (lto_wrapper_cleanup): ... this. Do not exit.
21642 (fatal): Adjust. Exit here.
21643 (fatal_perror): Likewise.
21644 (fatal_signal): New function.
21645 (main): Set up signal handlers to cleanup temporary files.
21646 * Makefile.in (lto-wrapper.o): Adjust dependencies.
21648 2010-06-02 Richard Guenther <rguenther@suse.de>
21650 PR tree-optimization/44377
21651 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
21653 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21655 * config/s390/2097.md (z10_fhex): Remove insn reservation.
21656 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
21657 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
21658 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
21660 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
21662 2010-06-02 Jan Hubicka <jh@suse.cz>
21664 * bitmap.c (bitmap_descriptor): Add search_iter.
21665 (bitmap_find_bit): Increment it.
21666 (print_statistics): Print it.
21668 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
21670 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
21671 instead of gimple_build_call_vec. Delete unnecessary local variable.
21673 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
21675 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
21676 change from yesterday.
21678 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
21680 * c-ada-spec.c: Clean up redundant includes.
21682 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
21684 * gimplify.c: Do not include except.h and optabs.h.
21685 (gimplify_body): Do not initialize RTL profiling.
21686 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
21687 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
21688 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
21689 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
21692 * tree-pretty-print.h: Include pretty-print.h.
21693 * gimple-pretty-print.h: Include pretty-print.h.
21695 * tree-pretty-print.c: Do not include diagnostic.h.
21696 * tree-vrp.c: Likewise.
21697 * tree-tailcall.c: Likewise
21698 * tree-scalar-evolution.c: Likewise
21699 * tree-ssa-dse.c: Likewise
21700 * tree-chrec.c: Likewise
21701 * tree-ssa-sccvn.c: Likewise
21702 * tree-ssa-copyrename.c: Likewise
21703 * tree-nomudflap.c: Likewise
21704 * tree-call-cdce.c: Likewise
21705 * tree-stdarg.c: Likewise
21706 * tree-ssa-math-opts.c: Likewise
21707 * tree-nrv.c: Likewise
21708 * tree-ssa-sink.c: Likewise
21709 * tree-browser.c: Likewise
21710 * tree-ssa-loop-ivcanon.c: Likewise
21711 * tree-ssa-loop.c: Likewise
21712 * tree-parloops.c: Likewise
21713 * tree-ssa-address.c: Likewise
21714 * tree-ssa-ifcombine.c: Likewise
21715 * tree-if-conv.c: Likewise
21716 * tree-data-ref.c: Likewise
21717 * tree-affine.c: Likewise
21718 * tree-ssa-phiopt.c: Likewise
21719 * tree-ssa-coalesce.c: Likewise
21720 * tree-ssa-pre.c: Likewise
21721 * tree-ssa-live.c: Likewise
21722 * tree-predcom.c: Likewise
21723 * tree-ssa-forwprop.c: Likewise
21724 * tree-ssa-dce.c: Likewise
21725 * tree-ssa-ter.c: Likewise
21726 * tree-ssa-loop-prefetch.c: Likewise
21727 * tree-optimize.c: Likewise
21728 * tree-ssa-phiprop.c: Likewise
21729 * tree-object-size.c: Likewise
21730 * tree-outof-ssa.c: Likewise
21731 * tree-ssa-structalias.c: Likewise
21732 * tree-switch-conversion.c: Likewise
21733 * tree-ssa-reassoc.c: Likewise
21734 * tree-ssa-operands.c: Likewise
21735 * tree-vectorizer.c: Likewise
21736 * tree-vect-data-refs.c: Likewise
21737 * tree-vect-generic.c: Likewise
21738 * tree-vect-stmts.c: Likewise
21739 * tree-vect-patterns.c: Likewise
21740 * tree-vect-slp.c: Likewise
21741 * tree-vect-loop.c: Likewise
21742 * tree-ssa-loop-ivopts.c: Likewise
21743 * tree-ssa-loop-im.c: Likewise
21744 * tree-ssa-loop-niter.c: Likewise
21745 * tree-ssa-loop-unswitch.c: Likewise
21746 * tree-ssa-loop-manip.c: Likewise
21747 * tree-ssa-loop-ch.c: Likewise
21748 * tree-dump.c: Likewise
21749 * tree-complex.c: Likewise
21751 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
21752 * tree-ssa-uninit.c: Likewise
21753 * tree-ssa-threadupdate.c: Likewise
21754 * tree-ssa-uncprop.c: Likewise
21755 * tree-ssa-ccp.c: Likewise
21756 * tree-ssa-dom.c: Likewise
21757 * tree-ssa-propagate.c: Likewise
21758 * tree-ssa-alias.c: Likewise
21759 * tree-dfa.c: Likewise
21760 * tree-cfgcleanup.c: Likewise
21761 * tree-sra.c: Likewise
21762 * tree-ssa-copy.c: Likewise
21763 * tree-ssa.c: Likewise
21764 * tree-profile.c: Likewise
21765 * tree-cfg.c: Likewise
21766 * tree-ssa-threadedge.c: Likewise
21767 * tree-vect-loop-manip.c: Likewise
21769 * tree-inline.c: Do not include diagnostic.h and expr.h.
21771 (copy_decl_for_dup_finish): Do not use NULL_RTX.
21773 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
21774 * tree-loop-distribution.c: Likewise.
21776 2010-06-01 Jan Hubicka <jh@suse.cz>
21778 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
21780 2010-06-01 Jan Hubicka <jh@suse.cz>
21782 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
21783 remove return value.
21784 (split_bbs_on_noreturn_calls) .... here.
21785 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
21786 * tree-flow.h (fixup_noreturn_call): New.
21788 2010-06-01 Jan Hubicka <jh@suse.cz>
21790 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
21792 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
21794 * tree.h (build_nt_call_list): Delete.
21795 * tree.c (build_nt_call_list): Delete.
21797 2010-06-01 Jan Hubicka <jh@suse.cz>
21799 * fwprop.c: Make emit-rtl.h include last.
21800 * rtlanal.c: Include emit-rtl.h.
21801 * genautomata.c: Output emit-rtl include into insn-automata.c
21802 * df-scan.c: Include emit-rtl.h.
21803 * haifa-sched.c: Indlude emit-rtl.h.
21804 * mode-switching.c: Indlude emit-rtl.h.
21805 * graph.c: Indlude emit-rtl.h.
21806 * sel-sched.c: Include emit-rtl.h.
21807 * sel-sched-ir.c: Include emit-rtl.h.
21808 * ira-build.c: Include emit-rtl.h.
21809 * emit-rtl.c (first_insn, last_insn): Remove defines.
21810 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
21811 Move to emit-rtl.h.
21812 (set_new_first_and_last_insn, get_last_insn_anywhere,
21813 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
21814 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
21815 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
21816 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
21817 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
21818 Use accessor functions.
21819 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
21820 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
21821 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
21822 mem_expr_equal_p): Move here from rtl.h.
21823 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
21824 Move here from emit-rtl.c; make inline.
21825 * cfglayout.h: Include emit-rtl.h.
21826 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
21827 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
21828 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
21829 mem_expr_equal_p, get_insns, set_first-insn,
21830 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
21831 * reg-stack.c: Include emit-rtl.h.
21834 2010-06-01 Jan Hubicka <jh@suse.cz>
21836 * cgraph.h (tree_function_versioning): Update prototype.
21837 (cgraph_function_versioning): Update prototype.
21838 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
21840 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
21841 (cgraph_materialize_clone, save_inline_function_body): Update use of
21842 tree_function_versioning.
21843 * tree-inline.c (copy_bb): Look for previous copied block to link
21844 after; fix debug output.
21845 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
21846 (copy_body): Likewise.
21847 (expand_call_inline): Update use of copy_body.
21848 (tree_function_versioning): Update use of copy body; accept
21849 blocks_to_copy and new_entry.
21851 2010-06-01 Jan Hubicka <jh@suse.cz>
21853 * gegenrtl.c: Remove unnecesary prototypes.
21855 (gendef): Produce static inline.
21857 (main): Do not decode parameters; generate header only.
21858 * Makefile.in (genrtl.c): Remove.
21860 2010-06-01 Jan Hubicka <jh@suse.cz>
21862 * tree-switch-conversion.c (build_one_array): Make it readonly.
21864 2010-06-01 Richard Guenther <rguenther@suse.de>
21866 * optabs.c (init_optabs): Guard all accesses to reinit.
21867 * ipa-pure-const.c (propagate): Fix another typo.
21868 * opts.c (common_handle_option): Split assignment to bool.
21869 * c-opts.c (c_common_handle_option): Likewise.
21871 2010-06-01 Arnaud Charlet <charlet@adacore.com>
21872 Matthew Gingell <gingell@adacore.com>
21874 * doc/invoke.texi: Mention -fdump-ada-spec.
21875 * tree-dump.c (dump_files): Add ada-spec.
21876 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
21877 * tree-pass.h (tree_dump_index): Add TDI_ada.
21878 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
21879 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
21880 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
21881 * c-decl.c: Include c-ada-spec.h.
21882 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
21884 (c_write_global_declarations): Add handling of -fdump-ada-spec.
21885 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
21886 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
21887 * c-ada-spec.h, c-ada-spec.c: New files.
21889 2010-06-01 Richard Guenther <rguenther@suse.de>
21892 * ipa-pure-const.c (get_function_state): Hand back varying state
21893 if we do not have one.
21894 (has_function_state): New function.
21895 (duplicate_node_data): Adjust.
21896 (remove_node_data): Likewise.
21897 (pure_const_write_summary): Likewise.
21898 (propagate): Likewise. Fix typo.
21900 2010-06-01 Jan Hubicka <jh@suse.cz>
21902 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
21903 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
21904 (execute_all_ipa_transforms): Do not play with the states.
21906 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
21908 * config/arm/t-linux-androideabi: New.
21909 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
21911 2010-06-01 Jan Hubicka <jh@suse.cz>
21913 * tree-inline.c (estimate_num_insns): For stdarg functions look
21914 into call statement to count cost of argument passing.
21916 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
21918 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
21919 argument for fprintf.
21920 (ix86_output_addr_diff_elt): Likewise.
21921 (x86_function_profiler): Likewise.
21922 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
21923 (LPREFIX): Likewise.
21924 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
21926 2010-05-31 Jakub Jelinek <jakub@redhat.com>
21929 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
21930 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
21931 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
21932 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
21933 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
21934 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
21935 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
21936 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
21939 2010-05-31 Jan Hubicka <jh@suse.cz>
21941 * tree.h (tree_range_check_failed): Declare noreturn.
21943 2010-05-31 Jan Hubicka <jh@suse.cz>
21945 * gimple.c (gimple_call_builtin_p): New function.
21946 * gimple.h (gimple_call_builtin_p): Declare.
21947 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
21949 (execute_warn_function_return): BUILT_IN_RETURN is return.
21950 (split_critical_edges): Return edges are not critical.
21951 (is_ctrl_altering_stmt): Builtin_in_return is altering.
21952 (gimple_verify_flow_info): Handle built_in_return.
21953 (execute_warn_function_return): Handle built_in_return.
21954 * ipa-pure-const.c (check_call): Ignore builtin_return.
21956 2010-05-31 Jakub Jelinek <jakub@redhat.com>
21958 PR middle-end/44337
21959 * expr.c (expand_assignment): Don't store anything for out-of-bounds
21960 array accesses with non-MEM.
21962 PR tree-optimization/44182
21963 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
21964 newly needs to end a bb is followed by debug stmts, instead return
21965 true from the function at the end.
21966 (maybe_move_debug_stmts_to_successors): New function.
21967 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
21969 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
21972 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
21974 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
21976 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
21977 for nested functions in non-optimized compilation.
21979 2010-05-31 Richard Guenther <rguenther@suse.de>
21981 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
21983 2010-05-30 Jan Hubicka <jh@suse.cz>
21985 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
21987 2010-05-30 Richard Guenther <rguenther@suse.de>
21990 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
21991 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
21994 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
21996 * config/darwin.c (output_objc_section_asm_op): Add comment.
21997 (name_needs_quotes): Add '_' to list of valid comment chars.
21998 (machopic_output_function_base_name): Remove unneeded quotes.
21999 (darwin_encode_section_info): Adjust asm whitespace.
22000 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
22001 (ASM_OUTPUT_LOCAL): Ditto.
22002 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
22003 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
22004 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
22006 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
22008 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
22009 RS6000_OUTPUT_BASENAME unconditionally.
22010 (rs6000_output_function_epilogue): Likewise.
22012 2010-05-30 Jan Hubicka <jh@suse.cz>
22014 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
22017 2010-05-30 Richard Guenther <rguenther@suse.de>
22019 * tree-cfg.c (verify_gimple_assign_single): Implement
22020 verification for COND_EXPR rhs.
22022 2010-05-30 Jan Hubicka <jh@suse.cz>
22024 * cgraph.h (cgraph_dump_file): Declare.
22025 * cgraphunit.c (cgraph_dump_file): Export.
22026 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
22028 2010-05-30 Jan Hubicka <jh@suse.cz>
22030 * dwarf2out.c (reference_to_unused,
22031 premark_types_used_by_global_vars_helper): Avoid creation of new
22034 2010-05-30 Jan Hubicka <jh@suse.cz>
22036 * cgraph.h (cgraph_node_cannot_return,
22037 cgraph_edge_cannot_lead_to_return): New functions.
22038 * cgraph.c (cgraph_node_cannot_return,
22039 cgraph_edge_cannot_lead_to_return): Use them.
22040 * ipa-pure-const.c (pure_const_names): New static var.
22041 (check_call): Handle calls not leading to return.
22042 (pure_const_read_summary): Dump info read.
22043 (propagate): Dump info about propagation process; ignore side effects
22044 of functions not leading to exit; fix handling of pure functions.
22046 2010-05-30 Jan Hubicka <jh@suse.cz>
22048 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
22049 for tail call epilogues.
22051 2010-05-30 Jan Hubicka <jh@suse.cz>
22053 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
22054 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
22057 2010-05-29 Jan Hubicka <jh@suse.cz>
22059 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
22060 node; remove references in node we no longer keep in cgrpah but need
22063 2010-05-29 Jan Hubicka <jh@suse.cz>
22065 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
22067 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22070 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
22072 2010-05-29 Jan Hubicka <jh@suse.cz>
22074 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
22075 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
22076 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
22077 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
22078 debug_names_replaced_by, debug_update_ssa): Likewise.
22079 * sbitmap.c (debug_sbitmap): Likewise.
22080 * genrecog.c (debug_decision, debug_decision_list): Likewise.
22081 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
22082 debug_tree_chain): Likewise.
22083 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
22084 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
22085 * optabs.c (debug_optab_libfuncs): Likewise.
22086 (verify_loop_closed_ssa): Likewise.
22087 * value-prof.c (verify_histograms): Likewise.
22088 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
22089 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
22090 * cfghooks.c (verify_flow_info): Likewise.
22091 * fold-const.c (debug_fold_checksum): Likewise.
22092 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
22093 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
22095 * omega.c (debug_omega_problem): Likewise.
22096 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
22097 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
22098 * dominance.c (verify_dominators, debug_dominance_info,
22099 debug_dominance_tree): Likewise.
22100 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
22101 * df_regno_debug, df_ref_debug,
22102 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
22103 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
22104 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
22105 * sel-sched.c (debug_state): Likewise.
22106 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
22108 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
22109 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
22110 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
22111 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
22113 * c-pretty-print.c (debug_c_tree): Likewise.
22114 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
22115 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
22116 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
22117 * ebitmap.c (debug_ebitmap): Likewise.
22118 * function.c (debug_find_var_in_block_tree): Likewise.
22119 * print-rtl.c (debug_rtx): Likewise.
22120 (debug_rtx_count): Likewise.
22121 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
22122 * stor-layout.c (debug_rli): Likewise.
22123 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
22124 * tree-data-ref.c (debug_data_references,
22125 debug_data_dependence_relations, debug_data_reference,
22126 debug_data_dependence_relation, debug_rdg_vertex,
22127 debug_rdg_component, debug_rdg): Likewise.
22128 * tree-affine.c (debug_aff): Likewise.
22129 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
22131 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
22132 * emit-rtl.c (verify_rtl_sharing): Likewise.
22133 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
22134 debug_value_expressions): Likewise.
22135 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
22136 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
22137 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
22138 * cfglayout.c (verify_insn_chain): Likewise.
22139 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
22140 debug_clast_stmt, debug_generated_program): Likewise.
22141 * ggc-page.c (debug_print_page_list): Likewise.
22142 * tree-ssa-ter.c (debug_ter): Likewise.
22143 * graphite-dependences.c (debug_pddr): Likewise.
22144 * sched-deps.c (debug_ds): Likewise.
22145 * tree-ssa.c (verify_ssa): Likewise.
22146 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
22147 debug_scattering_functions, debug_iteration_domains, debug_pdr,
22148 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
22149 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
22150 * tree-inline.c (debug_find_tree): Likewise.
22151 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
22152 debug_ppl_powerset_matrix): Likewise.
22153 * var-tracking.c (debug_dv): Likewise.
22154 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
22155 * cfgloop.c (verify_loop_structure): Likewise.
22156 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
22157 * c-common.c (verify_sequence_points): Likewise.
22158 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
22159 debug_candidates, debug_rgn_dependencies): Likewise.
22160 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
22161 * debug_constraint_graph, debug_solution_for_var,
22162 debug_sa_points_to_info): Likewise.
22163 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
22165 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
22166 debug_loops, debug_loop, debug_loop_num): Likewise.
22167 * passes.c (debug_pass): Likewise.
22168 (dump_properties): Likewise; add cfglayout property.
22169 (debug_properties): Likewise.
22170 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
22171 * varpool.c (debug_varpool): Likewise.
22172 * regcprop.c (debug_value_data): Likewise.
22173 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
22174 debug_immediate_uses_for): Likewise.
22176 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
22179 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
22180 Filter out insn-flags.h.
22182 2010-05-29 Jan Hubicka <jh@suse.cz>
22184 * cgraph.h (struct varpool_node_set_def,
22185 struct cgraph_node_set_def): Remove unused AUX pointer.
22186 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
22189 2010-05-29 Jan Hubicka <jh@suse.cz>
22191 PR middle-end/44324
22192 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
22194 2010-05-29 Richard Guenther <rguenther@suse.de>
22196 * lto-streamer.c (cached_bp): New global variable.
22197 (bitpack_create): Return the cached bitpack, if available.
22198 (bitpack_delete): Clear and cache the bitpack, if appropriate.
22199 (bp_pack_value): Remove redundant asserts.
22201 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
22203 PR middle-end/44306
22204 * tree-if-conv.c (is_true_predicate): New.
22205 (is_predicated): Use is_true_predicate.
22206 (add_to_predicate_list): Same. Do not use unshare_expr.
22207 (add_to_dst_predicate_list): Same.
22209 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
22211 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
22213 (predicate_bbs): Same.
22214 (clean_predicate_lists): Same.
22215 (find_phi_replacement_condition): Do not AND the predicate from
22218 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
22221 * Makefile.in (build/gencondmd.o): Add a missing `\'.
22223 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22226 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
22227 (negdf2): Adjust expander pattern and use negdf2_slow.
22228 (negsf2): Likewise.
22230 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
22232 * basic-block.h (struct control_flow_graph): Move last_label_uid field
22234 * df.h (struct df_base_ref): Move regno field up.
22235 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
22236 * expr.h (struct separate_ops): Move location field up.
22237 * optabs.h (struct optab_d): Move libcall_basename field down.
22238 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
22239 * config/i386/i386.h (struct machine_function): Convert call_abi field
22240 into a bitfield. Move cfa field to the end of the structure.
22242 2010-05-29 Jan Hubicka <jh@suse.cz>
22244 * varpool.c (varpool_get_node): Fix lookup.
22246 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
22248 * config/spu/spu-protos.h: Do not include rtl.h. Protect
22249 RTL specific prototypes with #ifdef RTX_CODE.
22250 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
22251 * config/spu/t-spu-elf: Fix dependencies.
22253 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
22255 2010-05-29 Mike Stump <mikestump@comcast.net>
22258 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
22259 TM_H when building to avoid dependency loops.
22261 2010-05-29 Jan Hubicka <jh@suse.cz>
22263 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
22264 refs and body; not the whole node for masters of materialized clones.
22266 2010-05-29 Mike Stump <mikestump@comcast.net>
22268 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
22270 2010-05-29 Jan Hubicka <jh@suse.cz>
22272 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
22273 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
22274 use of clone_function_name.
22275 * cgraph.h (cgraph_create_virtual_clone,
22276 cgraph_function_versioning): update prototypes.
22277 (clone_function_name): Declare.
22278 * ipa-cp.c (ipcp_insert_stage): Update call of
22279 cgraph_create_virtual_clone.
22280 * omp-low.c (create_omp_child_function_name): Use
22281 cgraph_create_virtual_clone.
22282 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
22283 (cgraph_function_versioning): Take SUFFIX argument; produce new name
22284 and make decl local.
22286 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
22288 * vec.h: Include statistics.h
22289 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
22292 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
22294 * c-lex.c: Do not include c-tree.h.
22295 * c-pretty-print.c: Likewise.
22296 * c-opts.c: Likewise.
22297 * c-gimplify.c: Likewise.
22298 * c-common.c: Likewise.
22299 * c-dump.c: Likewise. Include c-common.h.
22301 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
22303 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
22304 before including diagnostic-core.h.
22305 (c_cpp_error): New prototype moved from c-tree.h.
22306 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
22307 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
22308 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
22309 (c_cpp_error): Prototype moved to c-common.h.
22310 * Makefile.in: Update dependency for C_COMMON_H.
22312 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
22314 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
22315 * c-common.c (c_register_addr_space): Remove here.
22316 * c-decl.c (c_register_addr_space): Re-add here.
22318 2010-05-28 Mike Stump <mikestump@comcast.net>
22320 * config/darwin-c.c: Remove c-tree.h include.
22322 2010-05-28 Joseph Myers <joseph@codesourcery.com>
22324 * gcc.c: Include diagnostic.h.
22325 (error_count): Remove. All users changed to use errorcount.
22326 (programname): Remove. All users changed to use progname.
22327 (fancy_abort, internal_error, fatal_error, error, warning, inform,
22329 (execute): Don't include "Internal error" and bug reporting
22330 information in argument of internal_error call.
22331 (process_command): Don't increment error_count after calling
22333 (input_filename): Rename to gcc_input_filename. All users
22335 (main): Call diagnostic_initialize. Register delete_temp_files
22336 with atexit. Use seen_error to test for errors.
22337 * gcc.h: Include diagnostic-core.h.
22338 (fatal_error, error, warning): Remove.
22339 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
22340 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
22341 (gcc.o): Update dependencies.
22343 2010-05-28 Jeff Law <law@redhat.com>
22345 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
22347 * ira.h (ira_bad_reload_regno): Declare
22348 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
22350 * ira-color.c (update_curr_costs): Free updated hard reg costs.
22351 (ira_reassign_conflict_allocnos): Remove bogus asserts.
22352 (allocno_reload_assign): Likewise.
22354 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
22356 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
22359 2010-05-28 Richard Guenther <rguenther@suse.de>
22362 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
22363 Stream fixed-point constants mode.
22364 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
22365 and TYPE_PRECISION.
22366 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
22367 Stream fixed-point constants mode.
22368 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
22369 and TYPE_PRECISION.
22371 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
22373 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
22374 only place it was called from.
22375 (number_of_latch_executions): Do not return chrec_dont_know when the
22376 may_be_zero is a runtime condition: instead, return a COND_EXPR
22377 including the may_be_zero condition.
22378 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
22380 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
22383 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
22385 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
22386 generate COND_EXPRs for degenerate_phi_result.
22388 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
22390 PR middle-end/44293
22391 * tree-if-conv.c (if_convertible_loop_p): Check the
22392 if-convertibility of phi nodes in non predicated BBs.
22394 2010-05-28 Joseph Myers <joseph@codesourcery.com>
22396 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
22398 2010-05-28 Joseph Myers <joseph@codesourcery.com>
22401 * gcc.c (inform, warning, inform): New functions.
22402 (fatal_ice): Rename to internal_error; change cmsgid parameter to
22403 gmsgid. All callers changed.
22404 (notice): Rename to fnotice; add parameter fp. All callers changed.
22405 (fatal_error): Rename to fatal_signal. All users changed.
22406 (fatal): Rename to fatal_error; change cmsgid parameter to
22407 gmsgid. All callers changed.
22408 (process_command): Use warning instead of error for warnings.
22409 (end_going_arg): Don't use _() around argument of error.
22410 (do_spec_1): Use inform for message from %n specs. Use warning
22411 instead of error for warnings.
22412 (main): Use inform for comparison messages. Use warning for
22413 message about unused linker input.
22414 (error): Increment error_count. Print "error: ".
22415 * gcc.h (fatal): Change to fatal_error.
22416 (warning): Declare.
22417 * config/darwin-driver.c (darwin_default_min_version): Use warning
22418 instead of fprintf for warnings.
22419 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
22421 2010-05-28 Julian Brown <julian@codesourcery.com>
22423 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
22424 (*thumb2_addsi3_compare0_scratch): New.
22425 * config/arm/constraints.md (Pv): New.
22426 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
22428 (*addsi3_compare0_scratch): Likewise.
22430 2010-05-28 Jan Hubicka <jh@suse.cz>
22432 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
22434 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
22435 only on local statics.
22437 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
22439 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
22441 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
22444 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
22445 (OPTION_GLIBC): Define.
22447 2010-05-28 Jakub Jelinek <jakub@redhat.com>
22450 * dwarf2out.c (double_int_type_size_in_bits): New function.
22451 (round_up_to_align): Change first argument and return value to
22453 (field_byte_offset): Work internally on double_ints.
22456 * builtins.c (expand_movstr): Use a temporary pseudo instead
22457 of target even when target is not NULL and not const0_rtx, but
22458 fails movstr predicate.
22459 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
22461 2010-05-28 Joseph Myers <joseph@codesourcery.com>
22463 * final.c (rest_of_clean_state): Use %m in errors instead of
22465 * gengtype.c (read_input_list, close_output_files): Use xstrerror
22466 instead of strerror.
22467 * toplev.c (process_options): Use %m in errors instead of strerror
22469 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
22472 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
22474 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
22475 (ix86_canonical_va_list_type): Make static. Add declaration.
22476 (ix86_enum_va_list): Make static. Reindent.
22477 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
22478 (ix86_canonical_va_list_type): Ditto.
22479 (ix86_enum_va_list): Ditto.
22481 2010-05-28 Richard Guenther <rguenther@suse.de>
22483 * lto-wrapper.c (run_gcc): With -save-temps generate a
22484 user-visible ltrans filename. Fixup ltrans unit numbering.
22486 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
22488 * c-common.c (c_common_nodes_and_builtins): Replace use
22489 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
22490 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
22491 to ix86_enum_va_list.
22492 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
22493 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
22494 (TARGET_ENUM_VA_LIST_P): Add hook description.
22495 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
22496 * target.h (gcc_target): Add enum_va_list hook.
22499 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
22500 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
22501 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
22503 2010-05-28 Alan Modra <amodra@gmail.com>
22506 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
22507 emit_library_call machinery to set up __tls_get_addr calls.
22509 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22511 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
22513 2010-05-28 Dodji Seketeli <dodji@redhat.com>
22515 Revert fix for PR c++/44188
22516 * c-common.c (is_typedef_decl): Revert the moving of this
22518 * tree.c (is_typedef_decl): ... here.
22519 (typdef_variant_p): Revert the moving of this definition
22520 here from cp/tree.c.
22521 * c-common.h (is_typedef_decl): Revert the moving of this
22523 * tree.h (is_typedef_decl): ... here.
22524 (typedef_variant_p): Revert the moving of this declaration here
22526 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
22527 (gen_tagged_type_die): Revert the splitting out of ...
22528 (gen_type_die_with_usage): ... this function. Revert the anonymous
22529 tagged type handling.
22530 (gen_typedef_die): Revert emitting DW_TAG_typedef for
22531 typedefs naming anonymous tagged types.
22533 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
22535 * config/rs6000/rs6000-modes.def (PSImode): Delete.
22537 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
22539 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
22540 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
22542 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
22544 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
22545 XER_REGS to CA_REGS throughout.
22546 * config/rs6000/rs6000.h: Same.
22547 (ADDITIONAL_REGISTER_NAMES): Add "xer".
22548 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
22549 that mode_iterator "P" is the size for arithmetic carries as well.
22550 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
22552 2010-05-28 Jakub Jelinek <jakub@redhat.com>
22555 * combine.c (struct rtx_subst_pair): Define unconditionally.
22556 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
22557 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
22558 Call make_compound_operation on pair->to.
22559 (propagate_for_debug): Don't call make_compound_operation here.
22560 Always use simplify_replace_fn_rtx.
22562 2010-05-27 Sterling Augustine <sterling@tensilica.com>
22564 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
22565 * config/xtensa/xtensa.c (override_options): Check
22566 TARGET_FORCE_NO_PIC and set flag_pic.
22567 * config/xtensa/xtensa.opt: Document -mforce-no-pic
22569 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
22572 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
22573 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
22575 2010-05-27 Joseph Myers <joseph@codesourcery.com>
22577 * diagnostic-core.h: New. Contents moved from diagnostic.h and
22579 * diagnostic.c: Don't include toplev.h.
22580 (progname): Define. Moved from toplev.c.
22581 (seen_error): New function.
22582 * diagnostic.h: Include diagnostic-core.h.
22583 (diagnostic_t, emit_diagnostic): Don't declare here.
22584 * toplev.c (progname): Move to toplev.c.
22585 (emit_debug_global_declarations, compile_file, finalize,
22586 do_compile, toplev_main): Use seen_error.
22587 * toplev.h: Include diagnostic-core.h.
22588 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
22589 internal_error, warning, warning_at, error, error_n, error_at,
22590 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
22591 verbatim, fnotice, progname): Move to diagnostic-core.h.
22592 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
22593 (expand_builtin_expect): Use seen_error.
22594 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
22595 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
22596 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
22597 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
22598 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
22599 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
22600 errorcount for errors.
22601 * c-opts.c (c_common_finish): Use seen_error.
22602 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
22603 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
22604 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
22605 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
22606 (get_coverage_counts): Use seen_error.
22607 * dwarf2out.c (dwarf2out_finish): Use seen_error.
22608 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
22609 gimplify_body): Use seen_error.
22610 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
22611 * ipa-pure-const.c (gate_pure_const): Use seen_error.
22612 * ipa-reference.c (gate_reference): Use seen_error.
22613 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
22614 * lambda-code.c: Include diagnostic-core.h instead of
22616 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
22617 * lto-compress.c: Include diagnostic-core.h instead of
22619 * lto-section-in.c: Include diagnostic-core.h instead of
22621 * lto-streamer-out.c: Include diagnostic-core.h instead of
22623 * lto-streamer.c: Include diagnostic-core.h instead of
22625 (gate_lto_out): Use seen_error.
22626 * matrix-reorg.c: Include diagnostic-core.h instead of
22628 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
22629 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
22630 (gate_expand_omp, lower_omp_1): Use seen_error.
22631 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
22632 (rest_of_decl_compilation, rest_of_type_compilation,
22633 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
22634 * tree-cfg.c (label_to_block_fn): Use seen_error.
22635 * tree-inline.c (optimize_inline_calls): Use seen_error.
22636 * tree-mudflap.c (mudflap_finish_file): Use
22638 * tree-optimize.c (gate_all_optimizations,
22639 gate_all_early_local_passes, gate_all_early_optimizations): Use
22641 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
22642 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
22643 (varpool_remove_unreferenced_decls,
22644 varpool_assemble_pending_decls): Use seen_error.
22645 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
22646 (TOPLEV_H, DIAGNOSTIC_H): Update.
22647 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
22648 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
22649 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
22650 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
22651 coverage.o, lambda-code.o): Update dependencies.
22653 2010-05-25 Dodji Seketeli <dodji@redhat.com>
22656 * c-common.c (is_typedef_decl): Move this definition ...
22657 * tree.c (is_typedef_decl): ... here.
22658 (typdef_variant_p): Move definition here from cp/tree.c.
22659 * c-common.h (is_typedef_decl): Move this declaration ...
22660 * tree.h (is_typedef_decl): ... here.
22661 (typedef_variant_p): Move declaration here from cp/cp-tree.h
22662 * dwarf2out.c (is_naming_typedef_decl): New function.
22663 (gen_tagged_type_die): Split out of ...
22664 (gen_type_die_with_usage): ... this function. When an anonymous
22665 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
22666 is emitted for the typedef.
22667 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
22668 anonymous tagged types.
22670 2010-05-27 Jason Merrill <jason@redhat.com>
22672 * print-tree.c (debug_vec_tree): New fn.
22673 (print_vec_tree): New fn.
22674 * tree.h: Declare them.
22675 * gdbinit.in (pvt): New command.
22677 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
22679 * gdbinit.in (pdd): New command.
22681 2010-05-27 Jan Hubicka <jh@suse.cz>
22683 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
22684 (update_caller_keys): Return early if there are no callers;
22685 only update fibheap when decresing the key.
22686 (update_callee_keys): Avoid recursion.
22687 (decide_inlining_of_small_functions): When badness does not match;
22688 re-insert into fibheap.
22690 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
22692 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
22693 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
22694 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
22695 (ALL_HOST_OBJS): Now a union of the above two.
22696 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
22697 all files in ALL_HOST_FRONTEND_OBJS.
22698 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
22700 * c-common.c: Pretend to be a backend file by undefining
22701 IN_GCC_FRONTEND (still need rtl.h here).
22703 2010-05-27 Jan Hubicka <jh@suse.cz>
22705 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
22706 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
22708 2010-05-27 Jan Hubicka <jh@suse.cz>
22710 * sched-ebb.c: Rename struct deps to struct deps_desc.
22712 * sel-sched-ir.c: Likewise.
22713 * sched-deps.c: Likewise.
22714 * sched-int.h: Likewise.
22715 * sched-rgn.c: Likewise.
22717 2010-05-27 Jon Beniston <jon@beniston.com>
22720 * config/lm32/lm32.h: Remove definition of
22721 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
22723 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
22726 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
22728 2010-05-27 Richard Guenther <rguenther@suse.de>
22730 PR tree-optimization/44284
22731 * tree-vect-stmts.c (vectorizable_assignment): Handle
22732 sign-changing conversions as simple copy.
22734 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
22736 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
22738 (__gthread_active_p): Check for pthread_create if compiling against
22741 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
22743 Support compilation for Android platform. Reimplement -mandroid.
22745 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
22746 (*android*): Set ANDROID_DEFAULT.
22747 (arm*-*-linux*): Include linux-android.h.
22748 (arm*-*-eabi*): Don't include previous -mandroid implementation.
22749 * config/arm/eabi.h: Remove, move Android-specific parts ...
22750 * config/linux-android.h: ... here. New file.
22751 * config/arm/eabi.opt: Rename to ...
22752 * config/linux-android.opt: ... this.
22753 (mandroid): Allow -mno-android option. Initialize based on
22755 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
22756 Move logic to corresponding LINUX_TARGET_* macros.
22757 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
22758 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
22759 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
22760 Android definitions.
22761 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
22762 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
22765 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
22767 Add support for Bionic C library
22769 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
22771 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
22772 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
22774 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
22775 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
22776 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
22777 to support multiple C libraries. Handle Bionic.
22778 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
22779 (BIONIC_DYNAMIC_LINKER64): Define.
22780 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
22782 (TARGET_HAS_SINCOS): Enable for Bionic.
22784 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
22785 the last option specified on command line take effect.
22786 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
22788 (mglibc, muclibc): Update.
22790 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
22791 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
22794 * doc/invoke.texi (-mglibc, -muclibc): Update.
22795 (-mbionic): Document.
22797 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22799 * c-common.h (c_register_addr_space): Add prototype.
22800 (ADDR_SPACE_KEYWORD): Remove.
22801 * c-common.c (c_register_addr_space): New function.
22802 (c_addr_space_name): Reimplement.
22803 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
22805 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
22806 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
22808 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
22809 Remove TARGET_ADDR_SPACE_KEYWORDS.
22811 2010-05-27 Joseph Myers <joseph@codesourcery.com>
22813 * input.c: New file.
22814 * input.h (main_input_filename): Move declaration to toplev.h.
22815 * toplev.c (input_location, line_table): Move to input.c
22816 * toplev.h (main_input_filename): Move declaration from input.h.
22817 * tree.c (expand_location): Move to input.c.
22818 * Makefile.in (OBJS-common): Add input.o.
22819 (input.o): Add dependencies.
22821 2010-05-27 Richard Guenther <rguenther@suse.de>
22823 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
22824 for non-existant files.
22825 (fork_execute): Mark args_name file as deleted.
22827 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
22830 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
22831 (narrow_signed_type): Likewise.
22833 2010-05-26 Jan Hubicka <jh@suse.cz>
22835 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
22836 edge only when checking is enabled; check using former_clone_of;
22837 check inline clones too.
22838 (cgraph_materialize_clone): Record former_clone_of pointer.
22839 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
22840 combining redirections; dump args_to_skip bitmap
22841 (cgraph_materialize_all_clones): Do no redirection here.
22842 * ipa-inline.c (inline_transform): Do redirection here.
22843 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
22846 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22848 * config/avr/avr-c.c: Do not include regs.h.
22849 Include cpplib.h for cpp_define and tree.h for c-common.h.
22850 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
22851 * config/avr/t-avr: Fix dependencies for avr-c.o.
22853 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22855 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
22856 string instead of SYMBOL_REF rtx.
22857 * rtl.h (set_stack_check_libfunc): Move prototype from here...
22858 * libfuncs.h: ...to here. Adjust for explow.c change.
22860 2010-05-26 Joseph Myers <joseph@codesourcery.com>
22862 * pretty-print.c: Don't include ggc.h.
22863 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
22864 (identifier_to_locale): Use them for allocation.
22865 * pretty-print.h (identifier_to_locale_alloc,
22866 identifier_to_locale_free): Declare.
22867 * toplev.c (alloc_for_identifier_to_locale): New.
22868 (general_init): Set identifier_to_locale_alloc and
22869 identifier_to_locale_free.
22870 * Makefile.in (pretty-print.o): Update dependencies.
22872 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
22874 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
22875 pointer types if they have different alignment or mode.
22877 2010-05-26 Anatoly Sokolov <aesok@post.ru>
22879 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
22880 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
22881 * config/sparc/sparc-protos.h (function_value): Remove declaration.
22882 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
22883 sparc_function_value_regno_p): New functions.
22884 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22885 TARGET_FUNCTION_VALUE_REGNO_P): Define.
22886 (function_value): Rename to...
22887 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
22888 argument to 'outgoing'.
22889 (function_arg_record_value, function_arg_union_value,
22890 function_arg_vector_value): Update comment.
22892 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
22894 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
22895 (fde_needed_for_eh_p): New predicate.
22896 (output_call_frame_info): Use it throughout to decide whether FDEs
22897 are needed for EH purpose.
22898 (dwarf2out_begin_prologue): Reorder assignments.
22900 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22902 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
22903 special case loop->header.
22904 (is_predicated): New.
22905 (if_convertible_loop_p): Call it.
22907 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22909 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
22910 iterator in parameter. Do not generate code during the analysis.
22911 (tree_if_convert_cond_stmt): Removed.
22912 (tree_if_convert_stmt): Removed.
22913 (predicate_bbs): New.
22914 (if_convertible_loop_p): Call predicate_bbs.
22915 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
22916 now contains all the analysis part.
22918 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22920 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
22921 statements in the analysis part.
22922 (tree_if_convert_stmt): Update comment.
22923 (remove_conditions_and_labels): New.
22924 (combine_blocks): Call remove_conditions_and_labels.
22925 (tree_if_conversion): Update comment.
22927 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22929 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
22930 than 2 predecessors or more than 2 successors.
22932 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22934 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
22935 of loops in which the data dependence analysis fails.
22937 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22939 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
22940 CDI_POST_DOMINATORS.
22941 (tree_if_conversion): Same.
22943 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22945 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
22947 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22949 * tree-if-conv.c: Update copyright years. Fix comments.
22952 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
22954 * builtin-types.def (BT_INT128): New primitive type.
22955 (BT_UINT128): Likewise.
22956 * c-common.c (c_common_r): Add __int128 keyword.
22957 (c_common_type_for_size): Handle __int128.
22958 (c_common_type_for_mode): Likewise.
22959 (c_common_signed_or_unsigned_type): Likewise.
22960 (c_common_nodes_and_builtins): Add builtin type
22961 if target supports 128-bit integer scalar.
22962 * c-common.h (enum rid): Add RID_INT128.
22963 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
22964 if target supports 128-bit integer scalar.
22965 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
22966 (finish_declspecs): Likewise.
22967 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
22968 (c_token_starts_declspecs): Likewise.
22969 (c_parser_declspecs): Likewise.
22970 (c_parser_attributes): Likewise.
22971 (c_parser_objc_selector): Likewise.
22972 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
22973 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
22974 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
22975 * tree.c (make_or_reuse_type): Likewise.
22976 (make_unsigned_type): Likewise.
22977 (build_common_tree_nodes_2): Likewise.
22978 * tree.h (enum integer_type_kind): Add itk_int128 and
22979 itk_unsigned_int128.
22980 (int128_integer_type_node): New define.
22981 (int128_unsigned_type_node): New define.
22982 * doc/extend.texi: Add documentation about __int128 type.
22984 2010-05-26 Richard Guenther <rguenther@suse.de>
22986 * tree-ssa-sccvn.c (copy_nary): Adjust.
22987 (copy_phis): Rename to ...
22988 (copy_phi): ... this. Adjust.
22989 (copy_references): Rename to ...
22990 (copy_reference): ... this. Adjust.
22991 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
22992 result into the valid table.
22994 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22996 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
22997 insn-config.h, insn-codes.h, recog.h, and optabs.h.
22999 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
23001 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
23003 2010-05-26 Richard Guenther <rguenther@suse.de>
23005 * opts.c (common_handle_option): Handle OPT_Ofast.
23007 2010-05-26 Joseph Myers <joseph@codesourcery.com>
23009 * diagnostic.c: Don't include opts.h.
23010 (permissive_error_option): Define.
23011 (diagnostic_initialize): Take n_opts parameter. Allocate memory
23012 for classify_diagnostic. Don't use memset for
23013 classify_diagnostic. Initialize new and recently added fields.
23014 (diagnostic_classify_diagnostic): Use context->n_opts instead of
23016 (diagnostic_report_diagnostic): Pass context parameter to
23017 diagnostic_report_warnings_p. Use option_enabled and option_name
23018 hooks from context.
23019 (emit_diagnostic): Use permissive_error_option.
23020 (permerror): Likewise.
23021 * diagnostic.h: Don't include options.h.
23022 (struct diagnostic_context): Add n_opts, opt_permissive,
23023 inhibit_warnings, warn_system_headers, option_enabled and
23024 option_name fields. Change classify_diagnostic to a pointer.
23025 * opts-diagnostic.h: New file.
23026 * opts.c: Include opts-diagnostic.h.
23027 (common_handle_option): Set global_dc fields for -Wfatal-errors,
23028 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
23029 (option_name): New function.
23030 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
23031 (c_common_handle_option): Set global_dc->permissive for
23033 * c-common.c (c_cpp_error): Save and restore
23034 global_dc->warn_system_headers, not variable warn_system_headers.
23035 * toplev.c: Include opts-diagnostic.h.
23036 (general_init): Update call to diagnostic_initialize. Set
23037 global_dc->show_column, global_dc->option_enabled and
23038 global_dc->option_name.
23039 (process_options): Don't set global_dc fields here.
23040 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
23041 (diagnostic.o, opts.o, toplev.o): Update dependencies.
23043 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
23045 * config/picochip/picochip.md (movsi): Split a movsi from a
23046 const after reload.
23048 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
23050 * ggc-zone.c: Update copyright year.
23051 (poison_region): Mark memory for Valgrind as undefined before
23052 memset () call and inaccessible afterwards.
23053 (ggc_pch_total_size): Change type of i to int.
23055 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
23057 * ggc-common.c (ggc_free_overhead): Allow empty slot.
23059 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
23061 * ggc-common.c: Update copyright year.
23062 (ggc_rlimit_bound): Remove prototype. Compile only if
23063 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
23064 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
23065 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
23066 (ggc_min_heapsize_heuristic): Likewise.
23068 2010-05-26 Richard Guenther <rguenther@suse.de>
23070 PR rtl-optimization/44164
23071 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
23072 no-common access-path disambiguation.
23073 (indirect_ref_may_alias_decl_p): Adjust.
23074 (indirect_refs_may_alias_p): Likewise.
23075 (refs_may_alias_p_1): Likewise.
23077 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
23079 * c-typeck.c: Do not include expr.h.
23081 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
23083 * rtl.h (decl_default_tls_model): Move prototype from here...
23084 * output.h: ...to here.
23085 * c-decl.c: Do not include rtl.h.
23086 * c-pragma.c: Likewise.
23087 * c-parser.c: Likewise.
23088 * c-gimplify.c: Likewise. And also not hard-reg-set.
23089 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
23090 FIXME note for it. Add a FIXME note for expr.h.
23091 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
23092 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
23095 2010-05-26 Jakub Jelinek <jakub@redhat.com>
23098 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
23099 or total_size is larger than red zone size for non-V4 ABI, emit a
23100 stack_tie resp. frame_tie insn before stack pointer restore.
23101 * config/rs6000/rs6000.md (frame_tie): New insn.
23103 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
23105 * function.h (struct function): Add can_throw_non_call_exceptions bit.
23106 * lto-streamer-in.c (input_function): Stream it in.
23107 * lto-streamer-out.c (output_function): Stream it out.
23108 * function.c (allocate_struct_function): Set it.
23109 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
23110 for flag_non_call_exceptions.
23111 * cfgbuild.c (control_flow_insn_p): Likewise.
23112 (make_edges): Likewise.
23113 * cfgexpand.c (expand_stack_alignment): Likewise.
23114 * combine.c (distribute_notes): Likewise.
23115 * cse.c (cse_extended_basic_block): Likewise.
23116 * except.c (insn_could_throw_p): Likewise.
23117 * gcse.c (simple_mem): Likewise.
23118 * ipa-pure-const.c (check_call): Likewise.
23119 (check_stmt ): Likewise.
23120 * lower-subreg.c (lower-subreg.c): Likewise.
23121 * optabs.c (emit_libcall_block): Likewise.
23122 (prepare_cmp_insn): Likewise.
23123 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
23124 * postreload.c (rest_of_handle_postreload): Likewise.
23125 * reload1.c (reload_as_needed): Likewise.
23126 (emit_input_reload_insns): Likewise.
23127 (emit_output_reload_insns): Likewise.
23128 (fixup_abnormal_edges): Likewise.
23129 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
23130 * store-motion.c (find_moveable_store): Likewise.
23131 * tree-eh.c (stmt_could_throw_p): Likewise.
23132 (tree_could_throw_p): Likewise.
23133 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
23134 * config/arm/arm.c (arm_expand_prologue): Likewise.
23135 (thumb1_expand_prologue): Likewise.
23136 * config/rx/rx.md (cbranchsf4): Likewise.
23138 * config/s390/s390.c (s390_emit_prologue): Likewise.
23139 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
23140 (inline_forbidden_into_p): New predicate.
23141 (expand_call_inline): Use it to forbid inlining.
23142 (tree_can_inline_p): Likewise.
23144 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
23146 * config/i386/i386-c.c: Do not include rtl.h.
23147 * config/i386/t-i386: Update dependencies.
23149 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
23151 * attribs.c: Do not include rtl.h.
23152 * Makefile.in: Update dependencies.
23154 2010-05-25 Anatoly Sokolov <aesok@post.ru>
23156 * double-int.h (double_int_and): New.
23157 * combine.c (try_combine): Clean up, use double_int_* and
23158 immed_double_int_const functions.
23160 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23162 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
23163 stderr to /dev/null instead of grep -q.
23164 * configure: Regenerate.
23166 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
23168 * Makefile.in (EXCEPT_H): Fix typo.
23170 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
23172 * ira-build.c (update_conflict_hard_reg_costs): New.
23173 (ira_build): Call update_conflict_hard_reg_costs.
23175 2010-05-25 Jakub Jelinek <jakub@redhat.com>
23178 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
23180 (intersect_loc_chains): Walk the s2var's loc_chain together
23181 with s1node chain as long as the locations are equal, don't
23182 call find_loc_in_1pdv in that case.
23185 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
23186 (copy_bind_expr): ... instead of here.
23187 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
23188 if the block hasn't been remapped.
23189 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
23190 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
23192 2010-05-25 Richard Guenther <rguenther@suse.de>
23194 PR middle-end/44069
23195 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
23196 out-of-bounds array accesses.
23198 2010-05-25 Richard Guenther <rguenther@suse.de>
23200 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
23201 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
23202 (run_gcc): Re-organize to make cleanup easier.
23204 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23206 * config/s390/s390.c (optimization_options): Fix and move the
23207 flag_prefetch_loop_arrays override ...
23208 (override_options): ... here.
23210 2010-05-25 Joseph Myers <joseph@codesourcery.com>
23212 * diagnostic.c: Don't include plugin.h.
23213 (diagnostic_report_diagnostic): Don't handle plugins specially
23214 here. Pass context to internal_error callback.
23215 * diagnostic.h (struct diagnostic_context): Add context parameter
23216 to internal_error callback.
23217 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
23218 * plugin.h (struct diagnostic_context): Declare.
23219 (warn_if_plugins, plugins_internal_error_function): Declare.
23220 * toplev.c (general_init): Set global_dc->internal_error.
23221 * Makefile.in (diagnostic.o): Update dependencies.
23223 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
23225 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
23226 * config/rs6000/t-darwin64: New.
23227 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
23230 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
23233 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
23234 match the original (and intended) behaviour before r159557. This
23235 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
23238 2010-05-25 Richard Guenther <rguenther@suse.de>
23240 * doc/invoke.texi: Document -Ofast.
23241 * target.h (struct gcc_target): Add handle_ofast.
23242 * target-def.h (TARGET_HANDLE_OFAST): Add.
23243 (TARGET_INITIALIZER): Adjust.
23244 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
23245 * common.opt (Ofast): Add.
23247 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
23249 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
23250 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
23252 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
23255 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
23256 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
23257 false_rtx. Use false_rtx to compute the correct *ptest for reversed
23258 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
23260 2010-05-25 Jakub Jelinek <jakub@redhat.com>
23262 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
23263 DW_OP_minus with negated offset instead of DW_OP_plus.
23264 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
23266 2010-05-25 Wei Guozhi <carrot@google.com>
23268 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
23269 tst instruction and a new alternative.
23270 * config/arm/constraints.md (Pu): New constraint.
23272 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
23274 * function.c (assign_stack_local_1): Initialize variable
23275 to avoid warning when bootstrapping at -O3.
23277 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
23279 * configure.ac (all_lang_makefiles): Remove everything related to it.
23280 * configure: Regenerate.
23281 * Makefile.in: Fix reference to ada Make-lang.in.
23282 Remove support for LANG_MAKEFILES.
23284 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
23285 Sandra Loosemore <sandra@codesourcery.com>
23287 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
23288 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
23289 description. Add arm_neon_fp16_ok.
23290 (Add Options): Add arm_neon and arm_neon_fp16.
23292 2010-05-24 Joseph Myers <joseph@codesourcery.com>
23294 * diagnostic.c: Don't include flags.h.
23295 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
23296 context parameters. Check flags in the context passed as a parameter.
23297 (diagnostic_build_prefix): Add context parameter. Check
23298 show_column flag in context.
23299 (diagnostic_action_after_output): Check fatal_errors flag in context.
23300 (diagnostic_report_current_module): Check show_column flag in context.
23301 (default_diagnostic_starter): Update call to
23302 diagnostic_build_prefix.
23303 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
23304 (emit_diagnostic): Pass context to permissive_error_kind.
23305 (permerror): Pass context to permissive_error_kind.
23306 * diagnostic.h (struct diagnostic_context): Add show_column,
23307 pedantic_errors, permissive and fatal_errors fields.
23308 (diagnostic_build_prefix): Update prototype.
23310 * toplev.c (process_options): Set flags in global_dc from
23311 flag_show_column, flag_pedantic_errors, flag_permissive,
23313 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
23314 to diagnostic_build_prefix.
23315 * Makefile.in (diagnostic.o): Update dependencies.
23317 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
23319 * config/i386/ia32intrin.h (__crc32q): Define only if
23320 __SSE4_2__ is defined.
23322 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
23325 PR middle-end/43602
23326 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
23327 DECL_VISIBILITY_SPECIFIED.
23328 (emutls_decl): Set DECL_PRESERVE_P and copy
23329 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
23330 (emutls_finalize_control_var): New callback.
23331 (emutls_finish): Finalize emutls control variables.
23332 * toplev.c (compile_file): Move the call to emutls_finish ()
23333 before varpool_assemble_pending_decls ().
23335 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
23337 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
23338 added to the preprocessor condition.
23340 2010-05-24 Paul Brook <paul@codesourcery.com>
23342 * gengtype-lex.l: Add HARD_REG_SET.
23343 * expr.c (expand_expr_real_1): Record writes to hard registers.
23344 * function.c (rtl_data): Add asm_clobbers.
23345 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
23346 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
23347 Use crtl->asm_clobbers.
23349 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23351 * doc/makefile.texi (Makefile): Mention stages 'profile'
23352 and 'feedback' for profiledbootstrap.
23354 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
23357 * config/i386/i386.c (def_builtin): Properly check
23358 OPTION_MASK_ISA_64BIT.
23360 2010-05-23 Joseph Myers <joseph@codesourcery.com>
23362 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
23363 typedefs with different but compatible types. Allow duplicate
23364 typedefs with the same type except for pedantic non-C1X, but give
23365 warning for variably modified types.
23366 * c-typeck.c (tagged_types_tu_compatible_p,
23367 function_types_compatible_p, type_lists_compatible_p,
23368 comptypes_internal): Add parameter different_types_p; set
23369 *different_types_p for different but compatible types. All
23371 (comptypes_check_different_types): New.
23372 * c-tree.h (comptypes_check_different_types): Declare.
23374 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
23376 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
23377 * jump.c: Include basic-block.h.
23378 * profile.c: Likewise.
23379 * tree-profile.c: Likewise.
23380 * coverage.c: Likewise.
23381 * basic-block.h (optimize_function_for_size_p): Move to function.h.
23382 (optimize_function_for_speed_p): Likewise.
23383 * function.h (optimize_function_for_size_p,
23384 optimize_function_for_speed_p): Moved here from basic-block.h.
23385 * Makefile.in: Update dependencies.
23387 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23389 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
23390 before calling make; allow override through $MAKE.
23391 * doc/invoke.texi (Optimize Options): Document override.
23393 2010-05-23 Anatoly Sokolov <aesok@post.ru>
23395 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
23396 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23397 (rs6000_mode_dependent_address_ptr): Make static.
23398 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23399 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
23402 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
23405 * config/i386/i386.c: Make sure that the correct regparm is passed.
23407 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
23409 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
23410 * sbitmap.c: ...to here to internalize sbitmap element access.
23411 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
23412 Explain why basic-block.h is included.
23413 * function.h: Include tm.h for CUMULATIVE_ARGS.
23414 * Makefile.in: Update dependencies.
23416 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
23418 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
23420 * sbitmap.h (struct sbitmap_def): Do not typedef here.
23421 * sbitmap.c: Include sbitmap.h.
23422 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
23423 hard-reg-set.h. Split everything related to regsets out from here...
23424 * regset.h: ...to here. New file.
23425 * df.h: Include regset.h and sbitmap.h.
23426 * tree-flow.h: Likewise.
23427 * cfgloop.h: Likewise.
23428 * except.h: Do not include sbitmap.h. Include hashtab.h.
23429 * cgraph.h: Include vec.h and function.h.
23430 * reload.h (struct insn_chain): Change types of live_throughout
23431 and dead_or_set from regset_head to bitmap_head.
23432 (compute_use_by_pseudos): Be defined also if regset.h is not included.
23433 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
23434 spilled_regs from regset_head to bitmap_head to avoid dependency
23436 * sel-sched-ir.h: Include regset.h.
23437 * reload.c: Include df.h before reload.h.
23438 * caller-save.c: Likewise.
23439 * reload1.c: Likewise.
23441 (mark_elimination): Update type of r to bitmap, consistent with
23443 * dominance.c: Include bitmap.h.
23444 * modulo-sched.c: Include df.h.
23445 * cfganal.c: Include bitmap.h and sbitmap.h.
23446 * cfgbuild.c: Include sbitmap.h.
23447 * lcm.c: Include sbitmap.h.
23448 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
23449 * domwalk.c: Include sbitmap.h, exclude ggc.h.
23450 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
23451 * cselib.c: Include bitmap.h.
23452 * tree-optimize.c: Include regset.h.
23453 * stmt.c: Include bitmap.h.
23454 * Makefile.in: Update dependencies.
23456 2010-05-22 Jan Hubicka <jh@suse.cz>
23458 * cgraph.h (struct varpool_node): Add same_comdat_group.
23459 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
23461 (output_varpool): Update call of lto_output_varpool_node.
23462 (input_varpool): Read same_comdat_group pointer.
23463 (input_varpool_1): Fixup same_comdat_group pointer.
23464 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
23465 group is needed, all are.
23466 * varpool.c (varpool_remove_node): Remove node from same comdat group
23468 (varpool_analyze_pending_decls): Walk same comdat groups.
23470 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
23472 * rtl.h (union rtunion_def): Remove rt_bit member.
23473 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
23474 * print-rtl (print_rtx): Do not print the member.
23475 * gengtype.c (adjust_field_rtx_def): Do not handle it.
23476 * gengenrtl.c (type_from_format): Likewise.
23477 (accessor_from_format): Likewise.
23479 2010-05-22 Joseph Myers <joseph@codesourcery.com>
23481 * dbgcnt.c: Include toplev.h instead of errors.h.
23482 * ira-emit.c: Don't include errors.h.
23483 * ira.c: Include toplev.h instead of errors.h.
23484 * lto-compress.c: Include toplev.h instead of errors.h.
23485 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
23486 ira.o, dbgcnt.o): Update dependencies.
23488 2010-05-22 Richard Guenther <rguenther@suse.de>
23490 * gimple.c (gimple_types_compatible_p): Check type qualifications
23491 before merging pointer to complete and pointer to incomplete type.
23492 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
23493 we use our own resolution algorithm. The gold linker plugin
23494 doesn't do the job we want it to do here.
23496 2010-05-22 Anatoly Sokolov <aesok@post.ru>
23498 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23499 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23500 (sparc_mode_dependent_address_p): New function.
23502 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
23504 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
23506 * timevar.c: Do not include any core headers.
23507 (timevar_print): De-i18n-ize.
23508 (print_time): Likewise.
23509 * timevar.h (timevar_push, timevar_pop): Make inline functions.
23511 2010-05-21 Joseph Myers <joseph@codesourcery.com>
23513 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
23515 (diagnostic_initialize): Initialize x_data not last_function.
23516 (diagnostic_report_current_function): Move to tree-diagnostic.c.
23517 (default_diagnostic_starter): Call
23518 diagnostic_report_current_module not
23519 diagnostic_report_current_function.
23520 (diagnostic_report_diagnostic): Initialize x_data not
23522 (verbatim): Likewise.
23523 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
23525 (struct diagnostic_context): Change last_function to x_data.
23526 (diagnostic_auxiliary_data): Replace with
23527 diagnostic_context_auxiliary_data and
23528 diagnostic_info_auxiliary_data.
23529 (diagnostic_last_function_changed, diagnostic_set_last_function,
23530 diagnostic_report_current_function): Move to tree-diagnostic.h.
23531 (print_declaration, dump_generic_node, print_generic_stmt,
23532 print_generic_stmt_indented, print_generic_expr,
23533 print_generic_decl, debug_c_tree, dump_omp_clauses,
23534 print_call_name, debug_generic_expr, debug_generic_stmt,
23535 debug_tree_chain, default_tree_printer): Move to
23536 tree-pretty-print.h.
23537 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
23538 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
23539 gimple-pretty-print.h.
23540 * pretty-print.c: Don't include tree.h
23541 (pp_base_format): Don't handle %K here.
23542 (pp_base_tree_identifier): Move to tree-pretty-print.c.
23543 * pretty-print.h (text_info): Change abstract_origin to x_data.
23544 (pp_tree_identifier, pp_unsupported_tree,
23545 pp_base_tree_identifier): Move to tree-pretty-print.h.
23546 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
23547 tree-pretty-print.h: New files.
23548 * tree-pretty-print.c: Include tree-pretty-print.h.
23549 (percent_K_format): New. Moved from pretty-print.c.
23550 (pp_base_tree_identifier): Move from pretty-print.c.
23551 * c-objc-common.c: Include tree-pretty-print.h.
23552 (c_tree_printer): Handle %K here.
23553 * langhooks.c: Include tree-diagnostic.h.
23554 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
23555 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
23556 (default_tree_printer): Handle %K using percent_K_format.
23557 (general_init): Use default_tree_diagnostic_starter.
23558 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
23559 (free_lang_data): Use default_tree_diagnostic_starter.
23560 * c-pretty-print.c: Include tree-pretty-print.h.
23561 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23562 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23563 * dwarf2out.c: Include tree-pretty-print.h.
23564 * except.c: Include tree-pretty-print.h.
23565 * gimple-pretty-print.c: Include tree-pretty-print.h and
23566 gimple-pretty-print.h.
23567 * gimplify.c: Include tree-pretty-print.h.
23568 * graphite-poly.c: Include tree-pretty-print.h and
23569 gimple-pretty-print.h.
23570 * ipa-cp.c: Include tree-pretty-print.h.
23571 * ipa-inline.c: Include gimple-pretty-print.h.
23572 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23573 * ipa-pure-const.c: Include gimple-pretty-print.h.
23574 * ipa-struct-reorg.c: Include tree-pretty-print.h and
23575 gimple-pretty-print.h.
23576 * ipa-type-escape.c: Include tree-pretty-print.h.
23577 * print-rtl.c: Include tree-pretty-print.h.
23578 * print-tree.c: Include gimple-pretty-print.h.
23579 * sese.c: Include tree-pretty-print.h.
23580 * tree-affine.c: Include tree-pretty-print.h.
23581 * tree-browser.c: Include tree-pretty-print.h.
23582 * tree-call-cdce.c: Include gimple-pretty-print.h.
23583 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23584 * tree-chrec.c: Include tree-pretty-print.h.
23585 * tree-data-ref.c: Include tree-pretty-print.h and
23586 gimple-pretty-print.h.
23587 * tree-dfa.c: Include tree-pretty-print.h.
23588 * tree-if-conv.c: Include tree-pretty-print.h and
23589 gimple-pretty-print.h.
23590 * tree-inline.c: Include tree-pretty-print.h.
23591 * tree-into-ssa.c: Include tree-pretty-print.h and
23592 gimple-pretty-print.h.
23593 * tree-nrv.c: Include tree-pretty-print.h.
23594 * tree-object-size.c: Include tree-pretty-print.h and
23595 gimple-pretty-print.h.
23596 * tree-outof-ssa.c: Include tree-pretty-print.h and
23597 gimple-pretty-print.h.
23598 * tree-parloops.c: Include tree-pretty-print.h and
23599 gimple-pretty-print.h.
23600 * tree-predcom.c: Include tree-pretty-print.h and
23601 gimple-pretty-print.h.
23602 * tree-scalar-evolution.c: Include tree-pretty-print.h and
23603 gimple-pretty-print.h.
23604 * tree-sra.c: Include tree-pretty-print.h.
23605 * tree-ssa-address.c: Include tree-pretty-print.h.
23606 * tree-ssa-alias.c: Include tree-pretty-print.h.
23607 * tree-ssa-ccp.c: Include tree-pretty-print.h and
23608 gimple-pretty-print.h.
23609 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
23610 * tree-ssa-copy.c: Include tree-pretty-print.h and
23611 gimple-pretty-print.h.
23612 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
23613 * tree-ssa-dce.c: Include tree-pretty-print.h and
23614 gimple-pretty-print.h.
23615 * tree-ssa-dom.c: Include tree-pretty-print.h and
23616 gimple-pretty-print.h.
23617 * tree-ssa-dse.c: Include gimple-pretty-print.h.
23618 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
23619 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
23620 * tree-ssa-live.c: Include tree-pretty-print.h and
23621 gimple-pretty-print.h.
23622 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
23623 gimple-pretty-print.h.
23624 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
23625 gimple-pretty-print.h.
23626 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
23627 gimple-pretty-print.h.
23628 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
23629 gimple-pretty-print.h.
23630 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
23631 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
23632 * tree-ssa-operands.c: Include tree-pretty-print.h and
23633 gimple-pretty-print.h.
23634 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
23635 gimple-pretty-print.h.
23636 * tree-ssa-pre.c: Include tree-pretty-print.h and
23637 gimple-pretty-print.h.
23638 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
23639 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
23640 gimple-pretty-print.h.
23641 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
23642 gimple-pretty-print.h.
23643 * tree-ssa-sink.c: Include gimple-pretty-print.h.
23644 * tree-ssa-ter.c: Include tree-pretty-print.h and
23645 gimple-pretty-print.h.
23646 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
23647 * tree-ssa.c: Include tree-pretty-print.h and
23648 gimple-pretty-print.h.
23649 * tree-stdarg.c: Include gimple-pretty-print.h.
23650 * tree-switch-conversion.c: Include gimple-pretty-print.h.
23651 * tree-tailcall.c: Include tree-pretty-print.h and
23652 gimple-pretty-print.h.
23653 * tree-vect-data-refs.c: Include tree-pretty-print.h and
23654 gimple-pretty-print.h.
23655 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
23656 gimple-pretty-print.h.
23657 * tree-vect-loop.c: Include tree-pretty-print.h and
23658 gimple-pretty-print.h.
23659 * tree-vect-patterns.c: Include gimple-pretty-print.h.
23660 * tree-vect-slp.c: Include tree-pretty-print.h and
23661 gimple-pretty-print.h.
23662 * tree-vect-stmts.c: Include tree-pretty-print.h and
23663 gimple-pretty-print.h.
23664 * tree-vectorizer.c: Include tree-pretty-print.h.
23665 * tree-vrp.c: Include tree-pretty-print.h and
23666 gimple-pretty-print.h.
23667 * value-prof.c: Include tree-pretty-print.h and
23668 gimple-pretty-print.h.
23669 * var-tracking.c: Include tree-pretty-print.h.
23670 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
23671 (tree-diagnostic.o): New dependencies.
23672 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
23673 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
23674 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
23675 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
23676 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
23677 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
23678 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
23679 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
23680 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
23681 tree-ssa-address.o, tree-ssa-loop-niter.o,
23682 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
23683 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
23684 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
23685 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
23686 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
23687 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
23688 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
23689 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
23690 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
23691 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
23692 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
23693 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
23694 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
23695 tree-switch-conversion.o, var-tracking.o, value-prof.o,
23696 cfgexpand.o, pretty-print.o): Update dependencies.
23698 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
23700 * tree-ssa-structalias.c: Remove tm_p.h from include.
23702 2010-05-21 Jeff Law <law@redhat.com>
23704 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
23706 2010-05-21 Jason Merrill <jason@redhat.com>
23708 * tree-eh.c (cleanup_is_dead_in): New.
23709 (lower_try_finally): Don't generate a dead cleanup region.
23710 (lower_cleanup): Likewise.
23712 2010-05-21 Jakub Jelinek <jakub@redhat.com>
23715 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
23716 unchain each use from the cyclic next_regno_use chain first.
23718 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
23720 * real: Do not include gmp.h, mpfr.h, and mpc.h.
23721 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
23722 (real_value_negate, real_value_abs): New prototypes.
23723 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
23724 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
23725 new include file for interface between MPFR and REAL_VALUE_TYPE.
23726 * real.c: Include realmpfr.h.
23727 (real_arithmetic2): Remove legacy function.
23728 (real_value_negate): New.
23729 (real_value_abs): New.
23730 (mfpr_from_real, real_from_mpfr): Move from here...
23731 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
23732 * builtins.c: Include realmpfr.h.
23733 * fold-const.c: Include realmpfr.h.
23734 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
23735 (fold_negate_const): Likewise.
23736 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
23737 * toplev.c: Include realmpfr.h.
23738 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
23739 and real_value_negate.
23740 * fixed-value.c (check_real_for_fixed_mode): Likewise.
23741 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
23742 (vfp3_const_double_index): Likewise.
23743 (arm_print_operand): Likewise.
23744 * Makefile.in: Update dependencies.
23746 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23748 * config/s390/s390.c (override_options): Increase the default
23749 of max-completely-peel-times.
23751 2010-05-21 Julian Brown <julian@codesourcery.com>
23752 Mark Mitchell <mark@codesourcery.com>
23754 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
23755 sibling calls for Thumb-1.
23756 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
23757 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
23759 (*call_insn, *call_value_insn): Don't use for Thumb-2.
23760 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
23762 (return): New expander.
23763 (*arm_return): New name for ARM return insn.
23764 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
23766 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
23768 * config.gcc (sparc64-*-rtems*): New target.
23770 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
23772 * tree.c (build_function_decl_skip_args): Fix grammar.
23773 (build_function_type_list_1): Fix typos, adjust formatting.
23775 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
23777 * tree.h: Include real.h and fixed-value.h as basic datatypes.
23778 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
23779 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
23780 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
23781 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
23782 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
23783 tree-pretty-print.c, tree-loop-distribution.c,
23784 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
23785 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
23786 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
23787 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
23788 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
23789 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
23790 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
23791 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
23792 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
23793 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
23794 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
23795 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
23796 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
23797 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
23798 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
23799 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
23800 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
23801 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
23802 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
23803 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
23804 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
23805 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
23806 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
23807 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
23808 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
23809 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
23810 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
23811 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
23812 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
23813 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
23814 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
23815 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
23816 config/score/score7.c, config/score/score.c, config/arm/arm.c,
23817 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
23818 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
23819 config/bfin/bfin.c: Clean up redundant includes.
23820 * Makefile.in: Update accordingly.
23822 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
23824 PR middle-end/44204
23825 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
23826 statement has no arguments.
23828 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
23831 * varasm.c (emutls_decl): Merge attributes to new decl.
23833 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
23835 PR middle-end/44101
23836 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
23837 around the uniquized constructor if its type requires a conversion.
23839 2010-05-21 Jakub Jelinek <jakub@redhat.com>
23842 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
23843 at -O0 goto_locus of any of the incoming edges differs from
23844 goto_locus of outgoing edge, or gimple_location of any of the
23847 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
23849 * ira.c (ira_non_ordered_class_hard_regs): Define.
23850 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
23851 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
23852 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
23853 cost of unaligned hard regs when allocating multi-reg pseudos.
23855 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
23857 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
23858 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
23859 for TARGET_NO_FLOAT.
23860 * config/mips/mips.c (mips_file_start): Expand conditional expression
23861 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
23862 (mips_override_options): Move -mno-float override -msoft-float and
23864 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
23865 Condition(TARGET_SUPPORTS_NO_FLOAT).
23866 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
23867 __mips_no_float here.
23868 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
23869 (TARGET_SUPPORTS_NO_FLOAT): Define.
23870 * config/mips/sdemtk.opt: Delete.
23872 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
23874 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
23876 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
23879 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
23880 * configure: Regenerate.
23881 * config.in: Regenerate.
23882 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
23883 instead of sahf only for 64bit targets.
23885 2010-05-20 Jakub Jelinek <jakub@redhat.com>
23888 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
23889 setup_ref_regs for DEBUG_INSNs.
23891 2010-05-20 Jan Hubicka <jh@suse.cz>
23893 PR middle-end/44197
23894 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
23896 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
23899 * df-scan.c (df_ref_compare): Stabilize sort.
23901 2010-05-20 Jakub Jelinek <jakub@redhat.com>
23903 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
23904 argument. Don't use DW_OP_piece if offset is non-zero,
23905 put offset into second DW_OP_bit_piece argument.
23906 (dw_sra_loc_expr): Adjust callers. For memory expressions
23909 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
23912 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
23913 settings for 16-bit-constant "addo" alternative.
23915 2010-05-19 James E. Wilson <wilson@codesourcery.com>
23917 * config/mips/mips-dsp.md (add<DSPV:mode>3,
23918 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
23921 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
23922 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
23925 2010-05-19 Joseph Myers <joseph@codesourcery.com>
23927 * diagnostic.c (FLOAT, FFS): Don't undefine.
23928 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
23929 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
23932 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
23934 * combine.c (propagate_for_debug): Call make_compound_operation
23935 on the source value.
23936 (try_combine): When implementing a split chosen by find_split_point,
23937 either copy i2src or set it to null. Assert that i2src is not null
23938 before substituting into CALL_INSN_FUNCTION_USAGE.
23940 2010-05-19 Anatoly Sokolov <aesok@post.ru>
23942 * double-int.h (double_int_ior): New function.
23943 * tree.h (build_int_cst_wide_type): Remove.
23944 * tree.c (build_int_cst_wide_type): Remove.
23945 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
23946 of build_int_cst_wide_type.
23947 * stor-layout.c (set_sizetype): (Ditto.).
23948 * dojump.c (do_jump): Use build_int_cstu instead of
23949 build_int_cst_wide_type.
23951 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
23953 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
23954 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
23955 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
23956 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
23957 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
23958 propagate the 'data' argument to copy_tree_r.
23959 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
23960 Propagate 'data' argument to walk_tree.
23961 (copy_if_shared): New function.
23962 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
23963 (unmark_visited): New function.
23964 (unshare_body): Call copy_if_shared instead of doing it manually.
23965 (unvisit_body): Call unmark_visited instead of doing it manually.
23967 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
23969 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
23970 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
23971 * hooks.c: Likewise.
23972 * target-def.h (TARGET_FOLD_BUILTIN): Define to
23973 hook_tree_tree_int_treep_bool_null.
23974 * target.h (struct gcc_target): Update signature of fold_builtin
23976 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
23977 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
23978 instead of the call expression.
23979 (fold_builtin_call_array): Pass n and argarray directly.
23980 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
23982 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
23983 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
23984 `i' and use it in place of `arity'.
23985 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
23986 Dereference `args' directly.
23987 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
23989 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23991 * doc/sourcebuild.texi (Effective-Target Keywords): Document
23993 (Directives): Document optional dg-require-effective-target
23996 2010-05-19 Richard Guenther <rguenther@suse.de>
23999 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
24001 2010-05-19 Richard Guenther <rguenther@suse.de>
24003 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
24004 * common.opt (fwhopr=): New.
24005 * opts.c (common_handle_option): Handle OPT_fwhopr.
24006 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
24007 * collect2.c (main): Match -fwhopr*.
24008 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
24009 Execute ltrans stage in parallel when jobs is bigger than 1.
24011 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24013 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
24014 pentiumpro on Solaris 8/x86 with Sun as.
24015 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
24017 (gcc_cv_as_ix86_quad): Check for .quad directive.
24018 * configure: Regenerate.
24019 * config.in: Regenerate.
24020 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
24022 2010-05-19 Martin Jambor <mjambor@suse.cz>
24024 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
24025 also for indirect edges. Actual printing moved...
24026 (ipa_print_node_jump_functions_for_edge): ...here.
24027 (ipa_compute_jump_functions): Renamed to
24028 ipa_compute_jump_functions_for_edge and made static.
24029 (ipa_compute_jump_functions): New function.
24030 (make_edge_direct_to_target): Check if the number of arguments on
24031 the newly direct edge is the same as the number of parametrs of
24033 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
24034 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
24035 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
24036 analysis functions unconditionally, call the new
24037 ipa_analyze_params_uses on the node instead of every edge.
24039 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
24041 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
24043 (dump_mem_ref): Adopt debug code to handle a tree as step. This
24044 also checks for a constant int vs. non-constant but
24045 loop-invariant steps.
24046 (find_or_create_group): Change the sort algorithm to only consider
24047 steps that are constant ints.
24048 (idx_analyze_ref): Adopt code to handle a tree instead of a
24049 HOST_WIDE_INT for step.
24050 (gather_memory_references_ref): Handle tree instead of int and be
24051 prepared to see a NULL_TREE.
24052 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
24053 prefetches if the step cannot be calculated at compile time.
24054 (issue_prefetch_ref): Issue prefetches for non-constant but
24055 loop-invariant steps.
24057 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
24060 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
24062 * tree.h (build_call_list): Remove.
24063 * tree.c (build_call_list): Remove.
24065 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
24067 * tree.h (build_call_list): Remove.
24068 * tree.c (build_call_list): Remove.
24070 2010-05-18 Jan Hubicka <jh@suse.cz>
24072 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
24074 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
24076 PR rtl-optimization/43332
24077 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
24079 2010-05-18 Anatoly Sokolov <aesok@post.ru>
24081 * tree.h (build_int_cstu): Implement as static inline.
24082 * tree.c (build_int_cstu): Remove function.
24083 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
24086 2010-05-18 Richard Guenther <rguenther@suse.de>
24089 * lto-wrapper.c (verbose): New variable. Initialize from -v.
24090 (debug): Initialize from -save-temps.
24091 (collect_execute): Print command-line when verbose.
24092 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
24093 for ltrans invocation. Produce -dumpbase flag again.
24094 (process_args): Remove.
24096 * collect2.c (maybe_run_lto_and_relink): Only pass object
24097 files to lto-wrapper.
24098 * gcc.c (LINK_COMMAND_SPEC): Likewise.
24100 2010-05-18 Jan Hubicka <jh@suse.cz>
24102 * opts.c (decode_options): Do not disable whopr at ipa_cp.
24103 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
24105 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
24108 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
24110 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
24113 2010-05-18 Jakub Jelinek <jakub@redhat.com>
24116 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
24117 rtx_equal_p inline.
24119 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
24121 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
24122 lto-macho as lto_binary_reader.
24124 * darwin.c (darwin_asm_named_section): Do not add assembler comment
24125 after .section directive; just print it before the directive instead.
24127 2010-05-17 Jan Hubicka <jh@suse.cz>
24129 * cgraph.c (cgraph_create_virtual_clone): Only check
24130 versionable_function_p when not in wpa and checking is enabled.
24131 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
24132 there are no more functions to materialize.
24134 2010-05-17 Jan Hubicka <jh@suse.cz>
24136 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
24137 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
24139 (output_cgraph): Call output_cgraph_opt_summary.
24140 (input_cgrpah): Call input_cgraph_opt_summary.
24141 (output_cgraph_opt_summary_p, output_node_opt_summary,
24142 input_node_opt_summary, input_cgraph_opt_section): New functions.
24143 * lto-section-in.c (lto_section_name): Add cgraphopt.
24144 * tree-inline.c (tree_function_versioning): Handle parm_num.
24145 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
24146 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
24148 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
24150 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
24151 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
24152 the insn to prefetch ratio heuristic to loops with known trip count.
24154 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
24156 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
24157 (schedule_prefetches): Do not generate a prefetch if the unroll factor
24158 is far from what is required by the prefetch.
24160 2010-05-17 Jan Hubicka <jh@suse.cz>
24162 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
24163 (ipcp_estimate_growth): Likewise.
24164 (ipcp_const_param_count): Likewise.
24165 (ipcp_insert_stage): Likewise.
24166 * ipa-prop.c (visit_load_for_mod_analysis): New function.
24167 (visit_store_addr_for_mod_analysis): Set used flag.
24168 (ipa_detect_param_modifications): Set used flag for SSE params;
24169 update use of walk_stmt_load_store_addr_ops.
24170 (ipa_print_node_params): Print used flag.
24171 (ipa_write_node_info): Stream used flag.
24172 (ipa_read_node_info): Likewise.
24173 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
24174 (ipa_is_param_used): New function.
24175 (lto_ipa_fixup_call_notes): Remove unused declaration.
24177 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24180 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
24181 * configure: Regenerate.
24182 * config.in: Regenerate.
24183 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
24184 !HAVE_AS_IX86_REP_LOCK_PREFIX.
24185 Don't emit whitespace.
24186 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
24187 (*rep_movsi): Likewise.
24188 (*rep_movsi_rex64): Likewise.
24189 (*rep_movqi): Likewise.
24190 (*rep_movqi_rex64): Likewise.
24191 (*rep_stosdi_rex64): Likewise.
24192 (*rep_stossi): Likewise.
24193 (*rep_stossi_rex64): Likewise.
24194 (*rep_stosqi): Likewise.
24195 (*rep_stosqi_rex64): Likewise.
24196 (*cmpstrnqi_nz_1): Use {%;} after repz.
24197 (*cmpstrnqi_nz_rex_1): Likewise.
24198 (*cmpstrnqi_1): Likewise.
24199 (*cmpstrnqi_rex_1): Likewise.
24200 (*strlenqi_1): Use {%;} after repnz.
24201 (*strlenqi_rex_1): Likewise.
24202 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
24203 (*sync_compare_and_swap<mode>): Likewise.
24204 (sync_double_compare_and_swap<mode>): Likewise.
24205 (*sync_double_compare_and_swapdi_pic): Likewise.
24206 (sync_old_add<mode>): Likewise.
24207 (sync_add<mode>): Likewise.
24208 (sync_sub<mode>): Likewise.
24209 (sync_<code><mode>): Likewise.
24211 2010-05-17 Martin Jambor <mjambor@suse.cz>
24213 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
24214 otr_token and polymorphic.
24215 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
24216 (cgraph_clone_edge): Copy the above fields.
24217 * tree.c (get_binfo_at_offset): New function.
24218 * tree.h (get_binfo_at_offset): Declare.
24219 * ipa-prop.h (enum jump_func_type): Added known_type jump function
24220 type, reordered items, updated comments.
24221 (union jump_func_value): Added base_type field, reordered fields.
24222 (enum ipa_lattice_type): Moved down in the file.
24223 (struct ipa_param_descriptor): New field polymorphic.
24224 (ipa_is_param_polymorphic): New function.
24225 * ipa-prop.c: Include gimple.h and gimple-fold.h.
24226 (ipa_print_node_jump_functions): Print known type jump functions.
24227 (compute_complex_pass_through): Renamed to...
24228 (compute_complex_assign_jump_func): this.
24229 (compute_complex_ancestor_jump_func): New function.
24230 (compute_known_type_jump_func): Likewise.
24231 (compute_scalar_jump_functions): Create known type and complex ancestor
24233 (ipa_note_param_call): New parameter polymorphic, set the corresponding
24234 flag in the call note accordingly.
24235 (ipa_analyze_call_uses): Renamed to...
24236 (ipa_analyze_indirect_call_uses): this. New parameter target, define
24237 variable var only in the block where it is used.
24238 (ipa_analyze_virtual_call_uses): New function.
24239 (ipa_analyze_call_uses): Likewise.
24240 (combine_known_type_and_ancestor_jfs): Likewise.
24241 (update_jump_functions_after_inlining): Implemented handling of a
24242 number of new jump function types combination.
24243 (print_edge_addition_message): Removed.
24244 (make_edge_direct_to_target): New function.
24245 (try_make_edge_direct_simple_call): Likewise.
24246 (try_make_edge_direct_virtual_call): Likewise.
24247 (update_call_notes_after_inlining): Renamed to...
24248 (update_indirect_edges_after_inlining): this. Moved edge creation for
24249 indirect calls to try_make_edge_direct_simple_call, also calls
24250 try_make_edge_direct_virtual_call for virtual calls.
24251 (ipa_print_node_params): Changed the header message.
24252 (ipa_write_jump_function): Stream also known type jump functions.
24253 (ipa_read_jump_function): Likewise.
24254 (ipa_write_indirect_edge_info): Stream new fields in
24255 cgraph_indirect_call_info.
24256 (ipa_read_indirect_edge_info): Likewise.
24257 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
24260 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24262 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
24264 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
24266 * tree.h (CALL_EXPR_ARGS): Delete.
24267 (call_expr_arglist): Delete.
24268 * tree.c (call_expr_arglist): Delete.
24269 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
24270 targetm.fold_builtin.
24271 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
24272 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
24273 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
24274 arglist parameter. Use CALL_EXPR_ARG.
24275 (picochip_expand_builtin_3op): Likewise.
24276 (picochip_expand_builtin_2opvoid): Likewise.
24277 (picochip_expand_array_get): Likewise.
24278 (picochip_expand_array_put): Likewise.
24279 (picochip_expand_array_testport): Likewise.
24280 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
24281 rather than arglist.
24282 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
24284 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
24285 than TREE_VALUE and TREE_CHAIN.
24286 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
24287 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
24290 2010-05-17 Jakub Jelinek <jakub@redhat.com>
24293 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
24294 to have no fallthru edge.
24296 PR middle-end/44102
24297 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
24298 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
24299 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
24300 add BARRIER after previous bb if needed.
24302 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
24304 * tree.c (build_function_type_list_1): Remove bogus assert condition.
24306 2010-05-17 Alan Modra <amodra@gmail.com>
24308 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
24309 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
24310 with copy_reg rtx param.
24311 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
24312 Correct cases where code for ABI_V4 did not initialise the reg
24313 used to access frame. Also leave frame_reg_rtx as sp for large
24314 frames that save no regs.
24316 2010-05-17 Martin Jambor <mjambor@suse.cz>
24318 PR middle-end/44133
24319 * tree-sra.c (create_access_replacement): New parameter rename, mark
24320 the replaement for renaming only when it is true.
24321 (get_access_replacement): Pass true in the rename parameter of
24322 create_access_replacement.
24323 (get_unrenamed_access_replacement): New function.
24324 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
24325 replacement declaration from it.
24327 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
24329 * function.c (try_fit_stack_local, add_frame_space): New static
24331 (assign_stack_local_1): Use them. Look for opportunities to use
24332 space previously wasted on alignment.
24333 * function.h (struct frame_space): New.
24334 (struct rtl_data): Add FRAME_SPACE_LIST member.
24335 * reload1.c (something_was_spilled): New static variable.
24336 (alter_reg): Set it.
24337 (reload): Test it in addition to testing if the frame size changed.
24339 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
24341 * config/s390/s390.c: Define sane prefetch settings and activate
24342 flag_prefetch_loop_arrays on -O3.
24343 * config/s390/s390.h: Declare that read can use write prefetch.
24345 2010-05-17 Jakub Jelinek <jakub@redhat.com>
24347 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
24350 2010-05-16 Jan Hubicka <jh@suse.cz>
24352 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
24353 function body; do not check stdarg field of struct function.
24355 2010-05-16 Jan Hubicka <jh@suse.cz>
24357 * cgraph.c (dump_cgraph_node): Dump versionable flag.
24358 * cgraph.h (cgraph_local_info): Add versionable flag.
24359 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
24360 (ipcp_versionable_function_p): Use it.
24361 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
24364 2010-05-16 Jan Hubicka <jh@suse.cz>
24366 * cgraph.c (cgraph_clone_node): Take decl argument and insert
24367 clone into hash when it is different from orig.
24368 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
24369 * cgraph.h (cgraph_clone_node): Update prototype.
24370 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
24371 (lto_cgraph_encoder_delete): Delete body map.
24372 (lto_cgraph_encoder_size): Move to header.
24373 (lto_cgraph_encoder_encode_body_p,
24374 lto_set_cgraph_encoder_encode_body): New.
24375 (lto_output_node): Do not take written_decls argument; output clone_of
24377 (add_node_to): Add include_body_argument; call
24378 lto_set_cgraph_encoder_encode_body on master of the clone.
24379 (add_references): Update use of add_node_to.
24380 (compute_ltrans_boundary): Likewise.
24381 (output_cgraph): Do not create written_decls bitmap.
24382 (input_node): Take nodes argument; stream in clone_of correctly.
24383 (input_cgraph_1): Update use of input_node.
24384 * lto-streamer-out.c (lto_output): Use encoder info to decide
24385 what bodies to output.
24386 * ipa-inline.c (cgraph_clone_inlined_nodes,
24387 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
24388 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
24389 (lto_cgraph_encoder_size): Define here.
24390 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
24393 2010-05-16 Richard Guenther <rguenther@suse.de>
24395 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
24397 * ipa-type-escape.c (gate_type_escape_vars): Run when
24398 -fipa-struct-reorg runs.
24399 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
24400 * common.opt (fipa-type-escape): Remove.
24402 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
24404 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
24405 (decode_options): Likewise.
24406 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
24408 2010-05-16 Jan Hubicka <jh@suse.cz>
24410 * ipa.c (function_and_variable_visibility): Also bring local all
24413 2010-05-16 Richard Guenther <rguenther@suse.de>
24415 * alias.c (nonoverlapping_memrefs_p): Remove use of
24416 IPA type-escape information.
24418 2010-05-16 Joseph Myers <joseph@codesourcery.com>
24420 * c-common.c (c_common_reswords): Add _Static_assert for C.
24421 * c-parser.c (c_token_starts_declaration,
24422 c_parser_next_token_starts_declaration,
24423 c_parser_static_assert_declaration_no_semi,
24424 c_parser_static_assert_declaration): New.
24425 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
24426 Handle static assertions if static_assert_ok.
24427 (c_parser_external_declaration, c_parser_declaration_or_fndef,
24428 c_parser_compound_statement_nostart, c_parser_label,
24429 c_parser_for_statement, c_parser_objc_methodprotolist,
24430 c_parser_omp_for_loop): All callers of
24431 c_parser_declaration_or_fndef changed.
24432 (c_parser_struct_declaration): Handle static assertions.
24433 (c_parser_compound_statement_nostart): Use
24434 c_parser_next_token_starts_declaration and
24435 c_token_starts_declaration to detect start of declarations.
24436 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
24439 2010-05-16 Anatoly Sokolov <aesok@post.ru>
24441 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
24442 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
24443 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24444 TARGET_FUNCTION_VALUE_REGNO_P): Define.
24445 (mmix_function_outgoing_value): Rename to...
24446 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
24447 (mmix_function_value_regno_p): Make static.
24448 (mmix_libcall_value): New function.
24449 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
24450 mmix_function_value_regno_p): Remove declaration.
24452 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
24454 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
24455 BUILT_IN_ALLOCA if stack checking is enabled.
24457 2010-05-16 Richard Guenther <rguenther@suse.de>
24459 * var-tracking.c (vars_copy_1): Inline ...
24460 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
24461 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
24462 (variable_merge_over_cur): Adjust. Merge asserts.
24463 (variable_merge_over_src): Likewise.
24464 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
24465 (variable_post_merge_new_vals): Merge asserts.
24466 (variable_post_merge_perm_vals): Likewise.
24467 (find_mem_expr_in_1pdv): Likewise.
24468 (dataflow_set_different_value): Remove.
24469 (onepart_variable_different_p): Merge asserts.
24470 (variable_different_p): Likewise.
24471 (dataflow_set_different_1): Inline ...
24472 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
24473 (emit_notes_for_differences_1): Merge asserts.
24475 2010-05-16 Richard Guenther <rguenther@suse.de>
24477 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
24478 * optabs.c (libfunc_decl_hash): Likewise.
24479 * varasm.c (emutls_decl): Likewise.
24481 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
24483 * c-decl.c: Don't include gimple.h.
24484 (merge_decls): Do not copy gimple_body.
24486 2010-05-15 Jason Merrill <jason@redhat.com>
24488 * c.opt: Add -fnothrow-opt.
24490 2010-05-15 Jan Hubicka <jh@suse.cz>
24492 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
24494 * passes.c (ipa_write_summaries): Write all analyzed nodes.
24496 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
24498 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
24499 * Makefile.in: Add it.
24500 Fix all other Makefile dependencies for changes below.
24501 * tree.h: Include it instead of defining VEC primitives here.
24502 * gimple.h: Likewise.
24504 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
24505 * except.h: Include vecir.h, break dependence on tree.h.
24507 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
24509 * tree-iterator.c: ...to here.
24510 * tree-iterator.h: Fix file introduction comment. Add extern markers.
24512 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
24514 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
24515 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
24516 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
24517 tree-mudflap.h, and target.h.
24518 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
24519 predict.h, tree-inline.h, gimple.h, and langhooks.h.
24520 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
24521 Add FIXME for why gimple.h is still included (should be unnecessary
24522 since GCC 4.5 gimplification unit-at-a-time).
24523 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
24524 * c-pragma.c: Add FIXME for why function.h needs to be included just
24525 for cfun, at front-end level.
24526 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
24527 Do not include ggc.h, but include vecprim.h for VEC(char).
24528 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
24529 Explain why target.h is included.
24530 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
24531 Explain why gimple.h is included.
24532 * c-ppoutput.c: Do not include tm.h.
24533 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
24534 * c-parses.c: Explain why rtl.h is included, and that this (and only
24535 this) is also why tm.h must be included.
24536 Do not include except.h.
24537 * c-lang.c: Do not include ggc.h.
24539 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
24541 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
24543 2010-05-15 Joseph Myers <joseph@codesourcery.com>
24545 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
24546 unions by default if those structs and unions have no tags. Do
24547 not condition anonymous struct and unions handling on flag_iso.
24548 Allow anonymous structs and unions for C1X.
24549 (finish_struct): Do not diagnose lack of named fields when
24550 anonymous structs and unions present for C1X. Accept flexible
24551 array members in structure with anonymous structs or unions but no
24552 directly named fields.
24553 * doc/extend.texi (Unnamed Fields): Update.
24555 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
24557 * gimple.h (compare_field_offset): Rename into...
24558 (gimple_compare_field_offset): ...this.
24559 * gimple.c (compare_field_offset): Rename into...
24560 (gimple_compare_field_offset): ...this. Compare the full access if
24561 the offset is self-referential.
24562 (gimple_types_compatible_p): Adjust for above renaming.
24563 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
24564 DECL_NONADDRESSABLE_P flag of fields before merging them.
24566 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
24568 * tree.h (ctor_to_list): Delete.
24569 * tree.c (ctor_to_list): Delete.
24571 2010-05-15 Jan Hubicka <jh@suse.cz>
24573 * ipa-reference.c: Include toplev.h
24574 (is_proper_for_analysis): Only add to all_module_statics
24575 if it is allocated.
24576 (write_node_summary_p, stream_out_bitmap,
24577 ipa_reference_write_optimization_summary,
24578 ipa_reference_read_optimization_summary): New.
24579 (struct ipa_opt_pass_d pass_ipa_reference): Add
24580 optimization summary streaming.
24581 * lto-cgraph.c (referenced_from_this_partition_p,
24582 reachable_from_this_partition_p): New functions.
24583 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
24584 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
24585 * opts.c (decode_options): Enable ipa_reference.
24586 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
24587 * lto-streamer.h (referenced_from_this_partition_p,
24588 reachable_from_this_partition_p): Declare.
24590 2010-05-15 Richard Guenther <rguenther@suse.de>
24592 PR tree-optimization/44038
24593 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
24594 taking the address of a V_C_E of a constant.
24596 2010-05-14 Jan Hubicka <jh@suse.cz>
24598 * tree.h (memory_identifier_string): Remove.
24599 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
24600 (ipa_reference_global_vars_info_d): Remove statics_not_read and
24601 statics_not_written.
24602 (ipa_reference_optimization_summary_d): New structure.
24603 (ipa_reference_optimization_summary_t): New type and vector.
24604 (ipa_reference_vars_info_d): Embedd structures instead of using
24606 (reference_vars_to_consider): Remove out of GGC space.
24607 (module_statics_escape): Remove.
24608 (global_info_obstack): Rename to ...
24609 (optimization_summary_obstack): ... this one.
24610 (initialization_status_t): Remove.
24611 (memory_identifier_string): Remove.
24612 (get_reference_vars_info): Fix indenting.
24613 (set_reference_vars_info): Likewise.
24614 (get_reference_optimization_summary): New.
24615 (set_reference_optimization_summary): New.
24616 (get_global_reference_vars_info): Remove.
24617 (ipa_reference_get_read_global): Remove.
24618 (ipa_reference_get_written_global): Remove.
24619 (ipa_reference_get_not_read_global): Update.
24620 (ipa_reference_get_not_written_global): Update.
24621 (is_proper_for_analysis): Outlaw addressable.
24622 (propagate_bits): Update for new datastructures.
24623 (analyze_variable): Remove.
24624 (init_function_info): Update for new datastructures.
24625 (clean_function_local_data): Remove.
24626 (clean_function): Remove.
24627 (copy_global_bitmap): Use optimizations_summary_obstack.
24628 (duplicate_node_data): Duplicate optimization summary only.
24629 (remove_node_data): Remove optimization summary only.
24630 (generate_summary): Do not analyze variables; do not compute
24631 module_statics_escape; do not prune solutions by it.
24632 (read_write_all_from_decl): Fix typos in comments.
24633 (propagate): Doscover readonly and nonaddressable first;
24634 update for new datastructures; share global bitmaps.
24635 * ipa-reference.h (ipa_reference_get_read_global,
24636 ipa_reference_get_written_global): Remove.
24637 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
24638 * Makefile.in: Remove ipa-refereference from GT files.
24640 2010-05-14 Jakub Jelinek <jakub@redhat.com>
24643 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
24644 for all SYMBOL_REF_DECLs.
24646 2010-05-14 Jan Hubicka <jh@suse.cz>
24648 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
24649 (varpool_all_refs_explicit_p): New inline function.
24650 * ipa-reference.c: Update comment.
24651 (module_statics_written): Remove.
24652 (get_static_decl): Remove.
24653 (ipa_init): Do not initialize module_statics_written.
24654 (analyze_function): Likewise.
24655 (generate_summary): Likewise; do not compute module_statics_readonly
24656 and do not update variable flags.
24657 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
24658 * ipa.c: Inlucde flags.h
24659 (cgraph_local_node_p): New.
24660 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
24661 promote functions to local.
24662 (ipa_discover_readonly_nonaddressable_vars): New function.
24663 (function_and_variable_visibility): Use cgraph_local_node_p.
24664 * varpool.c (varpool_finalize_decl): Set force_output for
24665 DECL_PRESERVE_P vars.
24667 2010-05-14 Jan Hubicka <jh@suse.cz>
24669 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
24671 2010-05-14 Richard Guenther <rguenther@suse.de>
24673 PR tree-optimization/44119
24674 * tree-ssa-pre.c (eliminate): Properly mark replacement of
24675 a PHI node necessary.
24677 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
24679 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
24681 2010-05-14 Jason Merrill <jason@redhat.com>
24684 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
24685 (gimple_call_set_nothrow): New.
24686 * gimple.c (gimple_build_call_from_tree): Call it.
24687 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
24690 * gimplify.c (gimplify_seq_add_stmt): No longer static.
24691 * gimple.h: Declare it.
24692 * gimple.c (gimple_build_eh_filter): No ops.
24694 2010-05-14 Jan Hubicka <jh@suse.cz>
24696 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
24697 nodes already in queue.
24698 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
24699 re-enqueueing node.
24701 2010-05-14 Jakub Jelinek <jakub@redhat.com>
24704 * cfgexpand.c (expand_debug_expr): If non-memory op0
24705 has BLKmode, return NULL.
24707 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
24709 * config.gcc: Add support for --with-cpu option for bdver1.
24710 * config/i386/i386.h (TARGET_BDVER1): New macro.
24711 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
24712 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
24713 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
24714 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
24715 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
24716 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
24717 (processor_type): Add PROCESSOR_BDVER1.
24718 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
24719 processor_type in config/i386/i386.h.
24720 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
24721 movaps <reg, reg> instead of movapd <reg, reg> when replacing
24722 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
24723 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
24724 to emit packed xor instead of packed double/packed integer
24725 xor for SSE and AVX when moving a zero value.
24726 * config/i386/sse.md: Add check for
24727 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
24728 movapd/movdqa for SSE and AVX.
24729 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
24730 single logical operations i.e and, or and xor instead of packed double
24731 logical operations for SSE and AVX.
24732 * config/i386/i386-c.c (ix86_target_macros_internal):
24733 Add PROCESSOR_BDVER1.
24734 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
24735 (has_fma4, has_xop): New.
24736 * config/i386/i386.c (bdver1_cost): New variable.
24737 (m_BDVER1): New macro.
24738 (m_AMD_MULTIPLE): Add m_BDVER1.
24739 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
24740 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
24741 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
24742 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
24743 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
24744 x86_tune_sse_partial_reg_dependency,
24745 x86_tune_sse_unaligned_load_optimal,
24746 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
24747 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
24748 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
24749 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
24750 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
24751 Enable/disable for bdver1.
24752 (processor_target_table): Add bdver1_cost.
24753 (cpu_names): Add bdver1.
24754 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
24755 processor_alias_table.
24756 (ix86_expand_vector_move_misalign): Change.
24757 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
24758 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
24759 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
24760 of movupd/movdqu for SSE and AVX.
24761 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
24762 (ix86_tune_adjust_cost): Add code for bdver1.
24763 (standard_sse_constant_opcode): Add check for
24764 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
24765 of packed double xor for SSE and AVX.
24767 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
24769 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
24770 result to unsigned.
24772 2010-05-14 Tristan Gingold <gingold@adacore.com>
24774 * toplev.c (default_debug_hooks): Remove this variable.
24775 (process_options): Remove assignments to default_debug_hooks.
24777 2010-05-14 Martin Jambor <mjambor@suse.cz>
24779 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
24780 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
24781 * langhooks.h (struct lang_hooks_for_decls): Removed field
24783 * tree.c (free_lang_data): Remove assignment to
24784 lang_hooks.fold_obj_type_ref.
24785 * tree.def (OBJ_TYPE_REF): Update comment.
24787 2010-05-14 Richard Guenther <rguenther@suse.de>
24789 PR tree-optimization/44124
24790 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
24792 2010-05-14 Alan Modra <amodra@gmail.com>
24795 * config/rs6000/rs6000.c (struct machine_function): Reorder
24796 fields for better packing. Add lr_save_state.
24797 (rs6000_ra_ever_killed): Return lr_save_state if set.
24798 (rs6000_emit_eh_reg_restore): Set lr_save_state.
24800 2010-05-13 Jan Hubicka <jh@suse.cz>
24802 * varpool.c (decide_is_variable_needed): Drop code checking
24803 TREE_SYMBOL_REFERENCED.
24805 2010-05-13 Jan Hubicka <jh@suse.cz>
24807 * final.c (output_addr_const): Do not call mark_decl_referenced.
24808 * cgraphunit.c (process_function_and_variable_attributes): Use
24809 mark_needed_node dirrectly.
24810 (assemble_thunk): Do not call mark_decl_referenced.
24812 2010-05-13 Anatoly Sokolov <aesok@post.ru>
24814 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
24816 2010-05-13 Jeff Law <law@redhat.com>
24818 * ira-conflicts.c (print_allocno_conflicts): New function broken out
24820 (print_conflicts): Call print_allocno_conflicts.
24822 2010-05-13 Jakub Jelinek <jakub@redhat.com>
24825 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
24828 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
24830 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
24831 t-mingw-w64 or t-mingw-w32 for multilib configuration.
24832 * config/i386/t-mingw-w32: New.
24833 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
24835 2010-05-13 Martin Jambor <mjambor@suse.cz>
24837 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
24839 * gimple-fold.c (get_base_binfo_for_type): New function.
24840 (gimple_get_relevant_ref_binfo): Likewise.
24841 (gimple_fold_obj_type_ref_known_binfo): Likewise.
24842 (gimple_fold_obj_type_ref): Likewise.
24843 (fold_gimple_call): Simplify condition for folding virtual calls
24844 and call gimple_fold_obj_type_ref.
24845 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
24846 (gimple_fold_obj_type_ref_known_binfo): Likewise.
24848 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
24850 * config/rs6000/rs6000-protos.h
24851 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
24852 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
24853 (rs6000_debug_mode_dependent_address)
24854 (rs6000_mode_dependent_address_ptr): Likewise.
24856 2010-05-13 Jakub Jelinek <jakub@redhat.com>
24859 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
24861 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
24862 * tree-sra.c (create_access_replacement): Call unshare_expr before
24863 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
24864 * dwarf2out.c: Include tree-flow.h.
24865 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
24866 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
24867 Handle DW_OP_bit_piece.
24868 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
24869 construct_piece_list, adjust_piece_list): New functions.
24870 (add_var_loc_to_decl): Handle SRA optimized variables.
24871 Adjust for var_loc_note to loc field renaming.
24872 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
24873 in VAR_LOCATION note.
24874 (new_loc_descr_op_bit_piece): New function.
24875 (dw_sra_loc_expr): New function.
24876 (dw_loc_list): Use it. Don't handle the last range after the
24877 loop, handle it inside of the loop. Adjust for var_loc_note
24878 to loc field renaming.
24879 (add_location_or_const_value_attribute): Only special case
24880 single entry loc lists if loc is NOTE_P. Adjust for
24881 var_loc_note to loc field renaming.
24882 (dwarf2out_var_location): Don't set newloc->var_loc_note
24883 and newloc->next here.
24885 2010-05-12 Jan Hubicka <jh@suse.cz>
24887 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
24889 * cgraph.h (cgraph_only_called_directly_p,
24890 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
24891 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
24892 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
24894 * ipa.c (cgraph_remove_unreachable_nodes): Use
24895 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
24897 * tree-inline.c (copy_bb): Check address_taken flag.
24898 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
24899 externally_visible flag.
24901 2010-05-12 Jason Merrill <jason@redhat.com>
24905 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
24906 * sdbout.c (plain_type_1): Likewise.
24907 * dwarf2out.c (is_base_type): Likewise.
24908 (gen_type_die_with_usage): Likewise. Generate
24909 DW_TAG_unspecified_type for any LANG_TYPE.
24911 2010-05-12 Jan Hubicka <jh@suse.cz>
24913 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
24915 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
24916 (cgraph_clone_edge): Update.
24917 (cgraph_node_remove_callees): Remove indirect calls too.
24918 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
24919 (cgraph_create_indirect_edge): Update prototype.
24920 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
24921 is_proper_for_analysis.
24922 (add_new_function, visited_nodes, function_insertion_hook_holder,
24923 get_local_reference_vars_info, mark_address_taken, mark_address,
24924 mark_load, mark_store, check_asm_memory_clobber, check_call,
24925 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
24926 (ipa_init): Do not initialize visited_nodes;
24927 function_insertion_hook_holder.
24928 (analyze_variable): Rewrite.
24929 (analyze_function): Rewrite.
24930 (copy_local_bitmap): Remove.
24931 (duplicate_node_dat): Do not duplicate local info.
24932 (generate_summary): Simplify to only walk cgraph.
24933 (write_node_summary_p, ipa_reference_write_summary,
24934 ipa_reference_read_summary): Remove.
24935 (propagate): Do not remove function insertion;
24937 (pass_ipa_reference): NULLify summary handling fields.
24938 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
24939 (input_edge): Input ecf_flags.
24940 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
24941 (update_indirect_edges_after_inlining): Ignore edges with unknown
24944 2010-05-12 Sriraman Tallam <tmsriram@google.com>
24946 * implicit-zee.c: New file.
24947 * tree-pass.h (pass_implicit_zee): Declare.
24948 * passes.c (init_optimization_passes): Add zee pass.
24949 * common.opt (fzee): New flag.
24950 * timevar.def (TV_ZEE): Define.
24951 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
24953 * Makefile.in (implicit-zee.o): Add new build file.
24955 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
24956 Nathan Froyd <froydnj@codesourcery.com>
24958 * c-common.c (sync_resolve_params): Remove write-only variable.
24960 2010-05-12 Anatoly Sokolov <aesok@post.ru>
24962 * target.h (struct gcc_target): Add mode_dependent_address_p field.
24963 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
24964 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
24965 * targhooks.c (default_mode_dependent_address_p): New function.
24966 * targhooks.h (default_mode_dependent_address_p): Declare function.
24967 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
24968 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
24969 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
24970 target hook. Change return type to bool.
24971 * recog.h (mode_dependent_address_p): Change return type to bool.
24973 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
24974 Nathan Froyd <froydnj@codesourcery.com>
24976 * tree-mudflap.c (build_function_type_0, build_function_type_1,
24977 build_function_type_2, build_function_type_3): Remove.
24978 (mudflap_init): Use build_function_type_list.
24980 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
24981 Nathan Froyd <froydnj@codesourcery.com>
24983 * coverage.c (build_fn_info_value): Call build_constructor instead of
24984 build_constructor_from_list.
24985 (build_ctr_info_value): Likewise.
24986 (build_gcov_info): Likewise.
24988 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
24990 * tree.c (build_constructor): Compute TREE_CONSTANT for the
24991 resultant constructor.
24992 (build_constructor_single): Don't set TREE_CONSTANT.
24993 (build_constructor_from_list): Don't compute TREE_CONSTANT.
24995 2010-05-12 Jan Hubicka <jh@suse.cz>
24997 * cgraph.h (struct varpool_node): Add aux.
24998 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
24999 * varpool.c (varpool_remove_node): Do not remove initializer.
25000 (varpool_reset_queue): Export.
25001 (varpool_finalize_decl): Volatile vars are forced to be output.
25002 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
25004 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
25005 process_references, varpool_can_remove_if_no_refs): New functions.
25006 (cgraph_remove_unreachable_nodes): Handle variables too.
25008 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
25011 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
25013 2010-05-12 Jakub Jelinek <jakub@redhat.com>
25015 PR middle-end/44085
25016 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
25017 change value of ORT_TASK.
25018 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
25019 (omp_notice_threadprivate_variable): New function.
25020 (omp_notice_variable): Call it for threadprivate variables.
25021 If enclosing ctx is a task, print enclosing task rather than
25022 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
25023 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
25024 if task has untied clause.
25027 * dwarf2out.c (base_type_die): Don't add name attribute here.
25028 (modified_type_die): Instead of sizetype use
25029 its underlying original type. If a DW_TAG_base_type doesn't
25030 have name added, add __unknown__.
25031 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
25032 always call force_type_die instead.
25034 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
25036 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
25037 for __stack_chk_guard.
25039 2010-05-11 Jakub Jelinek <jakub@redhat.com>
25041 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
25042 don't call start_source_file debug hook here...
25043 (finish_options): ... but here, after outputting predefined and
25044 command line defines and undefs.
25046 PR middle-end/44071
25047 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
25049 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
25050 optimizing away empty bb with no successors, move over its
25051 footer chain to fallthru predecessor.
25052 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
25053 (rtl_split_edge): For asm goto call patch_jump_insn even if
25054 splitting fallthru edge.
25057 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
25058 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
25059 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
25060 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
25064 * c-parser.c (c_parser_expression): Mark LHS of a comma
25065 expression as read if it is a decl, handled component or
25066 COMPOUND_EXPR with that on the RHS.
25067 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
25068 if it is a decl or handled component.
25070 2010-05-11 Jan Hubicka <jh@suse.cz>
25072 * lto-symtab.c (lto_symtab_free): New function.
25073 * lto-streamer.h (lto_symtab_free): Declare.
25075 2010-05-11 Jan Hubicka <jh@suse.cz>
25077 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
25078 that if function is needed it is reachable.
25079 (lto_output_node): See if it the function is reachable or referenced.
25080 (output_cgraph): Update call of lto_output_node.
25081 * lto-streamer.h (reachable_from_other_partition_p): Declare.
25083 2010-05-11 Jan Hubicka <jh@suse.cz>
25085 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
25088 2010-05-11 Jan Hubicka <jh@suse.cz>
25090 PR tree-optimize/44063
25091 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
25093 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
25095 (estimate_function_body_sizes): Compute sizes even when disregarding.
25097 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
25099 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
25101 2010-05-11 Jan Hubicka <jh@suse.cz>
25103 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
25104 into every boundary.
25106 2010-05-11 Jan Hubicka <jh@suse.cz>
25108 * matrix-reorg.c (matrix_reorg): Rebuild edges.
25110 2010-05-11 Jan Hubicka <jh@suse.cz>
25112 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
25113 lto_streamer_cache_delete): Put nodes into heap.
25114 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
25117 2010-05-11 Jan Hubicka <jh@suse.cz>
25119 * cgraphbuild.c (cgraph_rebuild_references): New.
25120 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
25121 out extern inlines.
25122 * cgraph.h (cgraph_rebuild_references): Declare.
25123 * tree-inline.c (tree_function_versioning): Use it.
25124 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
25126 2010-05-11 Jan Hubicka <jh@suse.cz>
25128 * cgraph.c: Include ipa-utils.h
25129 (cgraph_create_virtual_clone): Update references.
25130 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
25132 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
25134 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
25135 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
25138 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
25140 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
25142 2010-05-11 Jakub Jelinek <jakub@redhat.com>
25144 * gcc.c (execute): For -### don't quote arguments that
25145 contain just alphanumerics and _/-. characters.
25146 * doc/invoke.texi: Document that change for -###.
25149 * df-problems.c (struct dead_debug): Add to_rescan field.
25150 (dead_debug_init): Clear to_rescan field.
25151 (dead_debug_finish): Rescan all debug insns in to_rescan
25152 bitmap and free the bitmap.
25153 (dead_debug_insert_before): Instead of rescanning debug insns
25154 immediately queue their rescanning until dead_debug_finish.
25155 (df_note_bb_compute): After dead_debug_add do continue instead
25158 2010-05-10 Jakub Jelinek <jakub@redhat.com>
25161 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
25162 clear also INSN_REG_USE_LIST.
25164 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25166 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
25168 2010-05-10 Jan Hubicka <jh@suse.cz>
25170 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
25173 2010-05-10 Jan Hubicka <jh@suse.cz>
25175 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
25177 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
25178 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
25179 (lto_streamer_cache_create): Init alloc pool.
25180 (lto_streamer_cache_delete): Free alloc pool.
25181 * lto-streamer.h: Include alloc pool.
25182 (lto_streamer_cache_d): Use alloc pool.
25183 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
25185 2010-05-10 Jan Hubicka <jh@suse.cz>
25187 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
25188 * cgraphbuild.c: Include except.h
25189 (record_type_list, record_eh_tables): New function.
25190 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
25192 2010-05-10 Jan Hubicka <jh@suse.cz>
25194 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
25195 __frame_dummy_init_array_entry, force_to_data): Attribute as used
25196 rather than unused.
25198 2010-05-10 Michael Matz <matz@suse.de>
25200 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
25201 (can_reassociate_p): Use FLOAT_TYPE_P.
25202 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
25203 (vect_force_simple_reduction): ... this.
25204 * tree-parloops.c (gather_scalar_reductions): Use
25205 vect_force_simple_reduction.
25206 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
25207 vect_is_simple_reduction, add modify argument, if true rewrite
25208 "a-b" into "a+(-b)".
25209 (vect_is_simple_reduction, vect_force_simple_reduction): New
25211 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
25213 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
25214 Vladimir Makarov <vmakarov@redhat.com>
25216 PR rtl-optimization/44012
25217 * ira-build.c (remove_unnecessary_allocnos): Nullify
25218 regno_allocno_map of the removed allocno.
25220 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25222 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
25224 * configure: Regenerate.
25226 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25228 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
25230 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
25231 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
25233 * configure: Regenerate.
25235 2010-05-10 Richard Guenther <rguenther@suse.de>
25237 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
25238 marked if the entry identifier is marked.
25240 2010-05-10 Richard Guenther <rguenther@suse.de>
25242 * c-common.c (struct c_common_attributes): Add fnspec attribute.
25243 (handle_fnspec_attribute): New function.
25244 * gimple.h (gimple_call_return_flags): Declare.
25245 (gimple_call_arg_flags): Likewise.
25246 * gimple.c (gimple_call_arg_flags): New function.
25247 (gimple_call_return_flags): Likewise.
25248 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
25249 New argument flags.
25250 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
25251 return value flags.
25252 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
25253 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
25255 (make_heapvar_for): ... this new function.
25256 (handle_rhs_call): Handle fnspec attribute argument specifiers.
25257 (handle_lhs_call): Likewise.
25258 (find_func_aliases): Adjust.
25260 2010-05-10 Richard Guenther <rguenther@suse.de>
25262 PR tree-optimization/44050
25263 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
25265 2010-05-10 Wei Guozhi <carrot@google.com>
25268 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
25270 2010-05-09 Joseph Myers <joseph@codesourcery.com>
25273 * c-typeck.c (lookup_field): Take a type directly. Update
25275 (build_component_ref): Update call to lookup_field.
25276 (set_init_label): Use lookup_field to find initialized field.
25277 Handle returned list of fields like a sequence of designators.
25279 2010-05-09 Richard Guenther <rguenther@suse.de>
25281 PR middle-end/44024
25282 * fold-const.c (tree_single_nonzero_warnv_p): Properly
25283 handle &FUNCTION_DECL.
25285 2010-05-09 Joseph Myers <joseph@codesourcery.com>
25288 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
25289 structures and unions recursively.
25290 (detect_field_duplicates): Move duplicate detection with a hash to
25291 detect_field_duplicates_hash. Always use a hash if anonymous
25292 structures or unions are present.
25293 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
25296 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
25299 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
25300 detect Atom, Core 2 and Core i7.
25302 2010-05-09 Richard Guenther <rguenther@suse.de>
25304 * gcc.c (store_arg): Handle temporary file deletion for
25307 2010-05-09 Richard Guenther <rguenther@suse.de>
25309 PR middle-end/44043
25310 * ipa-inline.c (estimate_function_body_sizes): Return after
25311 disregarding inline limits.
25313 2010-05-09 Richard Guenther <rguenther@suse.de>
25315 * gcc.c (store_arg): Revert last change.
25317 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
25319 PR middle-end/28685
25320 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
25321 (optimize_ops_list): Call it.
25323 2010-05-08 Richard Guenther <rguenther@suse.de>
25325 PR tree-optimization/44030
25326 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
25327 NECESSARY flag if we propagate from a inserted expression.
25329 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
25331 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
25332 domain types as equal if they are both PLACEHOLDER_EXPRs.
25334 2010-05-08 Richard Guenther <rguenther@suse.de>
25336 * lto-wrapper.c (run_gcc): Remove linker output from
25337 command line for LTRANS invocation.
25339 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
25341 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
25342 lto-macho as lto_binary_reader.
25343 * target.h (struct gcc_target): New hooks lto_start and lto_end.
25344 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
25345 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
25346 in lto_start and lto_end calls.
25347 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
25349 (scan_prog_file): Update is_elf_or_coff call.
25350 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
25352 * collect2.c (main): Fix enum comparison.
25354 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
25356 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
25357 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
25358 and TARGET_ASM_LTO_END.
25359 * darwin.c: Include obstack.h and lto-streamer.h.
25360 (lto_section_names_offset, lto_section_names_obstack,
25361 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
25363 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
25364 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
25365 to a temporary file.
25366 (darwin_asm_lto_end): New function. Restore asm_out_file.
25367 (darwin_asm_named_section): For LTO sections, replace the name with
25368 the offset of the section name in a string table, and build this
25370 (darwin_file_start): Initialize global vars for LTO support.
25371 (darwin_file_end): If output to asm_out_file was redirected, append it
25372 to the proper asm_out_file here. Add the section names section.
25374 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
25376 * c-pragma.c (pending_weak_d, pending_weak): New.
25377 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
25378 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
25379 handle_pragma_weak): Update the uses of pending_weaks.
25381 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25383 PR documentation/44016
25384 * doc/standards.texi (Standards): Link to unversioned
25385 cxx0x_status.html page.
25387 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
25390 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
25391 in addition to TREE_USED, to avoid "set but unused" warnings.
25393 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
25395 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
25396 (is_loop_prefetching_profitable): Do not insert prefetches
25397 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
25398 times the prefetch ahead distance.
25400 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
25402 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
25403 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
25404 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
25407 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
25409 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
25410 a diagnostic info when the insn-to-mem ratio is too small.
25412 2010-05-07 Richard Guenther <rguenther@suse.de>
25414 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
25416 (store_arg): Queue temp_filename for deletion instead of
25417 the whole argument.
25419 2010-05-07 Richard Guenther <rguenther@suse.de>
25421 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
25422 (run_gcc): Handle LTRANS phase invocation.
25423 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
25425 2010-05-07 Jakub Jelinek <jakub@redhat.com>
25427 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
25428 this is also meaningful on PARM_DECLs and RESULT_DECLs.
25430 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25432 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
25434 2010-05-07 Richard Guenther <rguenther@suse.de>
25436 PR tree-optimization/44020
25437 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
25438 code when PRE is not yet initialized.
25440 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25442 * config/mips/dbxmdebug.h: Remove.
25443 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
25445 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
25447 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
25448 with null pointer and also warn about ordered comparison of zero with
25449 pointer if -Wextra.
25451 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
25453 * graphite-blocking.c
25454 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
25455 * graphite-clast-to-gimple.c
25456 (clast_to_gcc_expression): Same.
25457 (precision_for_value): Same.
25458 (precision_for_interval): Same.
25459 (gcc_type_for_interval): Same.
25460 (graphite_create_new_guard): Same.
25461 (compute_bounds_for_level): Same.
25462 (graphite_create_new_loop_guard): Same.
25463 * graphite-interchange.c
25464 (build_linearized_memory_access): Same.
25465 (pdr_stride_in_loop): Same.
25466 (memory_strides_in_loop_1): Same.
25467 (memory_strides_in_loop): Same.
25468 (extend_scattering): Same.
25469 (psct_scattering_dim_for_loop_depth): Same.
25470 (pbb_number_of_iterations): Same.
25472 (debug_iteration_domains): Same.
25474 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
25475 (ppl_set_inhomogeneous_gmp): Same.
25476 (ppl_strip_loop): Same.
25477 (ppl_lexico_compare_linear_expressions): Same.
25478 (ppl_read_polyhedron_matrix): Same.
25479 (ppl_max_for_le_pointset): Same.
25481 (ppl_read_polyhedron_matrix): Same.
25482 (tree_int_to_gmp): Same.
25483 (gmp_cst_to_tree): Same.
25484 (ppl_set_inhomogeneous): Same.
25485 (ppl_set_inhomogeneous_tree): Same.
25486 (ppl_set_coef): Same.
25487 (ppl_set_coef_tree): Same.
25488 * graphite-sese-to-poly.c
25489 (build_pbb_scattering_polyhedrons): Same.
25490 (build_scop_scattering): Same.
25491 (scan_tree_for_params_right_scev): Same.
25492 (scan_tree_for_params): Same.
25493 (find_params_in_bb): Same.
25494 (find_scop_parameters): Same.
25495 (add_upper_bounds_from_estimated_nit): Same.
25496 (build_loop_iteration_domains): Same.
25497 (add_condition_to_domain): Same.
25498 (pdr_add_memory_accesses): Same.
25500 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
25502 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
25503 CLooG's value_* macros to their respective mpz_* counterparts.
25504 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
25505 (graphite_create_new_loop_guard): Same.
25506 * graphite-interchange.c (build_linearized_memory_access): Same.
25507 (pdr_stride_in_loop): Same.
25508 (memory_strides_in_loop_1): Same.
25509 (1st_interchange_profitable_p): Same.
25510 * graphite-poly.c (extend_scattering): Same.
25511 (psct_scattering_dim_for_loop_depth): Same.
25512 (pbb_number_of_iterations): Same.
25513 (pbb_number_of_iterations_at_time): Same.
25514 * graphite-poly.h (new_1st_loop): Same.
25515 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
25516 (oppose_constraint): Same.
25517 (insert_constraint_into_matrix): Same.
25518 (ppl_set_inhomogeneous_gmp): Same.
25519 (ppl_set_coef_gmp): Same.
25520 (ppl_strip_loop): Same.
25521 (ppl_lexico_compare_linear_expressions): Same.
25522 (ppl_max_for_le_pointset): Same.
25523 (ppl_min_for_le_pointset): Same.
25524 (ppl_build_realtion): Same.
25525 * graphite-ppl.h (gmp_cst_to_tree): Same.
25526 (ppl_set_inhomogeneous): Same.
25527 (ppl_set_inhomogeneous_tree): Same.
25528 (ppl_set_coef): Same.
25529 (ppl_set_coef_tree): Same.
25530 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
25531 (build_scop_scattering): Same.
25532 (add_value_to_dim): Same.
25533 (scan_tree_for_params_right_scev): Same.
25534 (scan_tree_for_params_int): Same.
25535 (scan_tree_for_params): Same.
25536 (find_params_in_bb): Same.
25537 (find_scop_parameters): Same.
25538 (add_upper_bounds_from_estimated_nit): Same.
25539 (build_loop_iteration_domains): Same.
25540 (create_linear_expr_from_tree): Same.
25541 (add_condition_to_domain): Same.
25542 (pdr_add_memory_accesses): Same.
25544 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
25545 Jason Merrill <jason@redhat.com>
25547 * c-common.c (c_common_reswords): Add nullptr.
25548 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
25549 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
25550 (gen_type_die_with_usage): Likewise.
25551 * dbxout.c (dbxout_type): Likewise.
25552 * sdbout.c (plain_type_1): Likewise.
25554 2010-05-06 Jason Merrill <jason@redhat.com>
25556 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
25557 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
25559 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
25561 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
25562 stripping WITH_SIZE_EXPR.
25563 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
25566 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25568 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
25569 list of obsolete configurations.
25570 Disabled check for obsolete configurations.
25571 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
25572 Removed support for previous versions.
25573 * config/mips/iris.h: Removed.
25574 * config/mips/iris5.h: Removed.
25575 * config/mips/iris6.h: Merged old iris.h contents.
25576 (TARGET_IRIX): Removed.
25577 (DRIVER_SELF_SPECS): Removed mabi=32.
25578 (IDENT_ASM_OP): Removed undef.
25579 (STARTFILE_SPEC): Removed mabi=32.
25580 (ENDFILE_SPEC): Likewise.
25581 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
25582 (MACHINE_TYPE): Update for IRIX 6.5.
25583 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
25584 TARGET_IRIX by TARGET_IRIX6.
25585 (mips_file_start): Likewise.
25586 (mips_output_external): Remove IRIX 5/6 O32 support.
25587 (mips_output_function_prologue): Likewise.
25588 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
25590 (TARGET_CPU_CPP_BUILTINS): Likewise.
25591 (TARGET_IRIX): Removed.
25592 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
25593 (MULTILIB_DIRNAMES): Removed 32.
25594 (MULTILIB_OSDIRNAMES): Removed ../lib.
25595 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
25596 (Specific, mips-sgi-irix5): Document removal.
25597 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
25598 Remove references to older IRIX 6 releases and the O32 ABI.
25600 2010-05-06 Jakub Jelinek <jakub@redhat.com>
25603 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
25604 instead of DF_REF_REAL_REG.
25606 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
25609 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
25610 handling to still return true for x64 targets.
25612 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
25614 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
25616 2010-05-06 Jan Hubicka <jh@suse.cz>
25618 PR tree-optimization/43791
25619 * ipa-inline.c (update_caller_keys): Remove bogus
25620 disregard_inline_limits check.
25622 2010-05-06 Michael Matz <matz@suse.de>
25624 PR tree-optimization/43984
25625 * tree-ssa-pre.c (inserted_phi_names): Remove.
25626 (inserted_exprs): Change to bitmap.
25627 (create_expression_by_pieces): Set bits, don't append to vector.
25628 (insert_into_preds_of_block): Don't handle inserted_phi_names.
25629 (eliminate): Don't look at inserted_phi_names, remove deleted
25630 insns from inserted_exprs.
25631 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
25632 (init_pre, fini_pre): Allocate and free bitmaps.
25633 (execute_pre): Insert insns on edges before elimination.
25635 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
25637 * tree.c (initializer_zerop): Handle STRING_CST.
25639 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
25642 * doc/invoke.texi (Wimplicit): Document as C only.
25643 * opts.c (common_handle_option): Add argument kind.
25644 (handle_option): Rename as read_cmdline_option. Factor out code to...
25645 (handle_option): ... here. New.
25646 (handle_options): Rename as read_cmdline_options.
25647 (decode_options): Update call.
25648 (set_option): Use option index instead of option pointer. Classify
25649 diagnostics correctly.
25650 (enable_warning_as_error): Call handle_option.
25651 * opts.h (set_option): Update declaration.
25652 (handle_option): Declare.
25653 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
25654 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
25655 * c-opts.c (set_Wimplicit): Delete.
25656 (c_family_lang_mask): New static constant.
25657 (c_common_handle_option): Add argument kind. Use handle_option
25658 instead of set_Wimplicit.
25659 (c_common_post_options): warn_implicit and warn_implicit_int
25660 are disabled by default.
25661 * c-common.c (warn_implicit): Do not define here.
25662 * c-common.h (warn_implicit): Do not declare here.
25663 (c_common_handle_option): Update declaration.
25664 * lto-opts.c (lto_reissue_options): Update call to set_option.
25666 2010-05-06 Richard Guenther <rguenther@suse.de>
25668 PR tree-optimization/43571
25669 * domwalk.c (walk_dominator_tree): Walk the dominator
25670 sons in more optimal order.
25672 2010-05-06 Richard Guenther <rguenther@suse.de>
25674 PR tree-optimization/43934
25675 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
25676 (stmt_cost): Likewise.
25677 (extract_true_false_args_from_phi): New helper.
25678 (determine_max_movement): For PHI nodes verify we can hoist them
25679 and compute their cost.
25680 (determine_invariantness_stmt): Handle PHI nodes.
25681 (move_computations_stmt): Likewise. Hoist PHI nodes in
25682 if-converted form using COND_EXPRs.
25683 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
25684 (tree_ssa_lim): Likewise.
25685 * tree-flow.h (tree_ssa_lim): Adjust prototype.
25686 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
25688 2010-05-06 Richard Guenther <rguenther@suse.de>
25690 PR tree-optimization/43987
25691 * tree-ssa-structalias.c (could_have_pointers): For possibly
25692 address-taken variables force pointers to be recorded.
25693 (create_variable_info_for_1): Likewise.
25694 (push_fields_onto_fieldstack): Pass in wheter all fields
25695 must have pointers.
25696 (find_func_aliases): Query types instead of vars whether
25697 they contain pointers where appropriate.
25699 2010-05-06 Jan Hubicka <jh@suse.cz>
25701 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
25702 (record_reference, mark_address, mark_load, mark_store): Record
25704 (record_references_in_initializer): Update call of record_references.
25705 (rebuild_cgraph_edges): Remove all references before rebuiding.
25706 * cgraph.c (cgraph_create_node): Clear ref list.
25707 (cgraph_remove_node): Remove references.
25708 (dump_cgraph_node): Dump references.
25709 (cgraph_clone_node): Clone references.
25710 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
25711 (struct cgraph_node, varpool_node): Add ref_lst.
25712 * ipa-ref.c: New file.
25713 * ipa-ref.h: New file.
25714 * ipa-ref-inline.h: New file.
25715 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
25716 (referenced_from_other_partition_p): New function.
25717 (lto_output_varpool_node): Take set arugment; call
25718 referenced_from_other_partition.
25719 (lto_output_ref): New.
25720 (add_references): New.
25721 (output_refs): New.
25722 (output_cgraph): Compute boundary based on references; output refs.
25723 (output_varpool): Accept cgraph_node_set argument.
25726 (input_cgraph): Call input_refs.
25727 * lto-section-in.c (lto_section_name): Add refs.
25728 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
25729 (ipa-ref.o): New file.
25730 * varpool.c (varpool_node): Clear ipa ref list.
25731 (varpool_remove_node): Remove references.
25732 (dump_varpool_node): Dump references.
25733 (varpool_assemble_decl): Only compile finalized ones.
25734 (varpool_extra_name_alias): Initialize ref list.
25735 * lto-streamer.c (lto-get_section_name): Add .refs section.
25736 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
25737 (referenced_from_other_partition_p): Declared.
25739 2010-05-06 Ira Rosen <irar@il.ibm.com>
25741 PR tree-optimization/43901
25742 * tree-vect-stmts.c (vectorizable_call): Assert that vector
25743 type is not NULL if it's transformation phase, and return
25744 FALSE if it's analysis.
25745 (vectorizable_conversion, vectorizable_operation,
25746 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
25748 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
25750 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
25752 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
25754 * config/mips/mips-protos.h
25755 (mips_small_register_classes_for_mode_p): Delete prototype.
25757 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
25759 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
25760 * config/arm/arm.c (multiple_operation_profitable_p,
25761 compute_offset_order): New static functions.
25762 (load_multiple_sequence, store_multiple_sequence): Use them.
25763 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
25764 memory offsets, not register numbers.
25765 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
25767 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
25769 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
25770 (get_pending_sizes, put_pending_size, put_pending_sizes):
25771 Update the uses of pending_sizes.
25772 * c-decl.c (store_parm_decls): Likewise.
25773 * c-tree.h (struct c_arg_info): Likewise.
25774 * tree.h: Update the prototype for get_pending_sizes and
25777 2010-05-05 Jason Merrill <jason@redhat.com>
25780 * c-common.c (handle_aligned_attribute): Respect
25781 ATTR_FLAG_TYPE_IN_PLACE.
25784 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
25785 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
25786 (TARGET_INITIALIZER): Use it.
25787 * c-common.c (attribute_takes_identifier_p): Call it.
25788 * c-common.h: Update prototype.
25789 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
25790 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
25792 2010-05-05 Jakub Jelinek <jakub@redhat.com>
25795 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
25796 DW_ID_down_case for Fortran compilation units.
25798 2010-05-05 Jan Hubicka <jh@suse.cz>
25800 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
25803 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
25805 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
25806 a variable-sized RESULT_DECL.
25808 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
25810 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
25812 2010-05-05 Jason Merrill <jason@redhat.com>
25815 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
25817 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
25819 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
25820 Jakub Jelinek <jakub@redhat.com>
25823 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
25824 (dead_debug_init, dead_debug_finish): New functions.
25825 (dead_debug_add, dead_debug_insert_before): Likewise.
25826 (df_note_bb_compute): Initialize a dead_debug object, add dead
25827 debug uses to it, insert debug bind insns before death insns,
25828 reset debug insns that refer to pending uses at the end.
25829 * rtl.h (make_debug_expr_from_rtl): New prototype.
25830 * varasm.c (make_debug_expr_from_rtl): New function.
25832 2010-05-05 Jan Hubicka <jh@suse.cz>
25834 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
25835 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
25836 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
25837 lto_varpool_encoder_deref, lto_varpool_encoder_size,
25838 lto_varpool_encoder_encode_initializer_p,
25839 lto_set_varpool_encoder_encode_initializer): New functions.
25840 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
25841 call output_varpool.
25842 (input_varpool_node): Do not always set analyzed.
25843 (input_cgraph_1): Return vector of cgraph nodes.
25844 (input_varpool_1): Return vector of varpools.
25845 (input_cgraph): Free the vectors.
25846 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
25847 output only initializers needed.
25848 (lto_output): Only call output_cgraph.
25849 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
25850 * lto-section-out.c (lto_new_out_decl_state): Initialize
25851 state->varpool_node_encoder.
25852 * lto-streamer.h (lto_varpool_encoder_d): New.
25853 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
25854 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
25855 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
25856 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
25857 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
25859 (output_varpool, input_varpool): Remove declarations.
25861 2010-05-05 Jan Hubicka <jh@suse.cz>
25863 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
25864 with body can prevail.
25866 2010-05-05 Jan Hubicka <jh@suse.cz>
25868 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
25871 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
25873 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
25875 * gengtype.h (erro_at_line): Constify pos argument.
25877 * gengtype.c: Include hashtab.h.
25878 (enum gc_used): Document GC_MAYBE_POINTED_TO.
25879 (error_at_line): Constify pos argument.
25880 (do_typedef): Initialize p->opt field.
25881 (get_file_gtfilename): Fix comment typo.
25882 (struct walk_type_data): Constify line field.
25883 (get_output_file_for_structure): New function.
25884 (write_local_func_for_structure): Constify orig_s argument.
25885 Use get_output_file_for_structure.
25886 (write_func_for_structure): Use get_output_file_for_structure.
25887 (INDENT): New define.
25888 (dump_pair, dump_type, dump_type_list, dump_typekind)
25889 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
25890 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
25892 (seen_types): New variable.
25893 (main): New variable do_dump. Process "-d" command line option.
25894 Call dump_everything if dump requested.
25896 2010-05-05 Jakub Jelinek <jakub@redhat.com>
25898 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
25899 in a temporary instead of invoking the macro multiple times.
25900 (track_expr_p): Likewise.
25902 2010-05-04 Neil Vachharajani <nvachhar@google.com>
25904 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
25906 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
25907 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
25908 conditions for printing notes.
25909 * common.opt (-Wcoverage-mismatch): Allow negative, default to
25910 true, update documentation.
25911 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
25913 2010-05-04 Jakub Jelinek <jakub@redhat.com>
25916 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
25919 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
25922 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
25923 (*sse_prologue_save_insn1): Likewise.
25924 (SSE prologue save splitter): Likewise.
25926 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
25928 * tree.c (free_lang_data_in_one_sizepos): New inline function.
25929 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
25930 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
25931 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
25932 all decls. Call it on DECL_FIELD_OFFSET of fields.
25933 (find_decls_types_r): Follow DECL_VALUE_EXPR.
25934 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
25936 2010-05-04 Martin Jambor <mjambor@suse.cz>
25938 * tree-sra.c (build_access_from_expr_1): The first parameter type
25939 changed to simple tree.
25940 (build_access_from_expr): Likewise, gsi parameter was eliminated.
25941 (scan_assign_result): Renamed to assignment_mod_result, enum elements
25943 (build_accesses_from_assign): Removed all parameters except for a
25944 simple gimple statement. Now returns a simple bool.
25945 (scan_function): All non-analysis parts moved to separate functions
25946 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
25947 parameters and updated both callers.
25948 (sra_modify_expr): Removed parameter data.
25949 (sra_modify_function_body): New function.
25950 (perform_intra_sra): Call sra_modify_function_body to modify the
25952 (replace_removed_params_ssa_names): Parameter data changed into
25953 adjustments vector.
25954 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
25955 changed the parameter dont_convert to convert with the opposite
25957 (sra_ipa_modify_assign): Parameter data changed into adjustments
25958 vector, return value changed to bool.
25959 (ipa_sra_modify_function_body): New function.
25960 (sra_ipa_reset_debug_stmts): Updated a comment.
25961 (modify_function): Use ipa_sra_modify_function_body to modify function
25964 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
25966 PR middle-end/43671
25967 * alias.c (true_dependence): Handle the same VALUE in x and mem.
25968 (canon_true_dependence): Likewise.
25969 (write_dependence_p): Likewise.
25971 2010-05-04 Jan Hubicka <jh@suse.cz>
25973 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
25974 * cgraphbuild.c: Include ipa-utils.h
25975 (record_reference_ctx): New struct.
25976 (record_reference): Simplify to work on initializers; not statements.
25977 (mark_address, mark_load, mark_store): New.
25978 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
25979 walk PHI nodes too.
25980 (record_references_in_initializer): Update use of record_reference.
25981 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
25982 walk PHI nodes too.
25984 2010-05-04 Jan Hubicka <jh@suse.cz>
25986 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
25987 node will be removed anyway.
25988 (lto_varpool_replace_node): Allow also unanalyzed nodes;
25989 relink aliases of node into prevailing node.
25990 * varpool.c (varpool_remove_node): Remove aliases properly;
25991 when removing node, remove all its aliases too; remove DECL_INITIAL
25992 of removed node; ggc_free the varpool node.
25994 2010-05-04 Richard Guenther <rguenther@suse.de>
25996 PR tree-optimization/43879
25997 * tree-ssa-structalias.c (alias_get_name): Use
25998 DECL_ASSEMBLER_NAME if available.
25999 (create_function_info_for): Return the varinfo node.
26000 (ipa_pta_execute): Associate same-body aliases and extra names
26001 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
26003 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
26005 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
26007 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
26010 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
26011 only if HONOR_REG_ALLOC_ORDER is not defined.
26013 2010-05-04 Richard Guenther <rguenther@suse.de>
26015 PR tree-optimization/43949
26016 * tree-vrp.c (extract_range_from_binary_expr): Only handle
26019 2010-04-26 Jason Merrill <jason@redhat.com>
26021 * c.opt (-fstrict-enums): New.
26022 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
26024 2010-05-03 David Ung <davidu@mips.com>
26025 James E. Wilson <wilson@codesourcery.com>
26027 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
26028 emit the trap instruction before the divide for TUNE_74K.
26030 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
26032 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
26033 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
26034 based on the above, for new target hook.
26036 * hooks.c (hook_bool_mode_true): New generic hook.
26037 * hooks.h (hook_bool_mode_true): Add prototype.
26039 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
26041 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
26042 target hook, set to hook_bool_mode_false.
26043 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
26044 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
26045 with targetm.small_register_classes_for_mode_p.
26046 (find_reusable_reload): Likewise.
26047 (combine_reloads): Likewise.
26048 * reload1.c (reload_as_needed): Likewise.
26049 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
26050 * ifcvt.c (noce_process_if_block, check_cond_move_block,
26051 dead_or_predicable): Likewise.
26052 * regmove.c (optimize_reg_copy_1): Likewise.
26053 * calls.c (prepare_call_address): Likewise.
26054 (precompute_register_parameters): Likewise.
26056 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
26058 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
26059 implementation of the hook that considers all register classes
26060 small except for SH64.
26061 (sh_override_options): Use the new hook.
26062 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
26065 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
26067 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
26068 implementation of the hook that considers all register classes
26070 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
26073 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
26075 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
26076 implementation of the hook that considers all register classes
26078 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
26081 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
26083 * config/m32c/m32c.h: Likewise.
26084 * config/pdp11/pdp11.h: Likewise.
26085 * config/avr/avr.h: Likewise.
26086 * config/xtensa/xtensa.h: Likewise.
26087 * config/m68hc11/m68hc11.h: Likewise.
26088 * config/mn10300/mn10300.h: Likewise.
26089 * config/mcore/mcore.h: Likewise.
26090 * config/h8300/h8300.h: Likewise.
26091 * config/bfin/bfin.h: Likewise.
26093 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
26094 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
26096 2010-05-03 Anatoly Sokolov <aesok@post.ru>
26098 * double-int.h (tree_to_double_int): Remove macro.
26099 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
26100 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
26101 (tree_to_double_int): New function.
26102 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
26104 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
26106 2010-05-03 Richard Guenther <rguenther@suse.de>
26108 PR tree-optimization/43971
26109 * tree-ssa-structalias.c (get_constraint_for_1): Fix
26110 constraints in the !flag_delete_null_pointer_checks case.
26112 2010-05-03 Jakub Jelinek <jakub@redhat.com>
26115 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
26116 result mode matches original rtl mode.
26118 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
26121 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
26123 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
26125 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
26126 when processing flag options.
26128 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
26130 * gcov-iov.c (main): Change format string placeholder
26131 from %#08x to 0x%08x.
26132 * genchecksum.c (dosum): Change format string placeholder
26133 from %#02x to 0x%02x.
26135 2010-05-02 Richard Guenther <rguenther@suse.de>
26137 PR tree-optimization/43879
26138 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
26140 2010-05-02 Bruno Haible <bruno@clisp.org>
26142 * doc/extend.texi (Function Attributes): Fix a typo.
26144 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
26147 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
26148 placeholder from 0x%x to %#x.
26149 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
26150 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
26151 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
26152 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
26153 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
26154 * config/i386/i386.c (ix86_target_string): Ditto.
26155 * config/i386/i386.c (output_pic_addr_const): Ditto.
26156 (print_operand): Ditto.
26158 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
26160 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
26161 placeholder from 0x%x to %#x.
26162 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
26163 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
26164 (ASM_OUTPUT_DEBUG_DATA): Ditto.
26165 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
26166 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
26167 * optc-gen.awk: Ditto.
26168 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
26169 (HOST_WIDE_INT_PRINT_HEX): Ditto.
26170 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
26171 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
26173 2010-05-01 Anatoly Sokolov <aesok@post.ru>
26175 * target.h (struct calls): Add function_value_regno_p field.
26176 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
26177 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
26178 * targhooks.c (default_function_value_regno_p): New function.
26179 * targhooks.h (default_function_value_regno_p): Declare function.
26180 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
26181 * builtins.c. (apply_result_size): (Ditto.).
26182 * combine.c. (likely_spilled_retval_p): (Ditto.).
26183 * mode-switching.c. Include 'target.h'.
26184 (create_pre_exit): Use function_value_regno_p hook.
26185 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
26186 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
26187 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
26189 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
26190 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
26191 (ix86_function_value_regno_p): Declare as static, change argument
26192 type to const unsigned int.
26193 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
26195 2010-05-01 Richard Guenther <rguenther@suse.de>
26197 PR tree-optimization/43949
26198 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
26200 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
26202 2010-05-01 Anatoly Sokolov <aesok@post.ru>
26204 * rtl.h (CONST_DOUBLE_P): Define.
26205 (rtx_to_double_int): Declare.
26206 * emit-rtl.c (rtx_to_double_int): New function.
26207 * dwarf2out.c (insert_double): New function.
26208 (loc_descriptor, add_const_value_attribute): Clean up, use
26209 rtx_to_double_int and insert_double functions.
26211 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
26213 * doc/extend.texi (Inline): Add missing return keyword to examples.
26214 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
26217 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
26219 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
26220 the variable part of the offset as well. Use highest_pow2_factor for
26221 all alignment checks.
26223 2010-04-30 Richard Guenther <rguenther@suse.de>
26225 PR tree-optimization/43879
26226 * tree-ssa-structalias.c (type_could_have_pointers): Functions
26229 2010-04-30 Jan Hubicka <jh@suse.cz>
26231 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
26233 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
26235 2010-04-30 Jan Hubicka <jh@suse.cz>
26237 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
26239 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
26240 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
26241 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
26242 cgraph_node_set_needs_ltrans_p): Remove.
26244 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
26246 * sdbout.c: Include vec.h, do not include varray.h.
26247 (deferred_global_decls, sdbout_global_decl,
26248 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
26249 * toplev.c: Do not include varray.h.
26250 (dump_memory_report): Do not dump VARRAY statistics.
26251 * gengtype.c (open_base_file): Ignore varray.h.
26252 * Makefile.in: Update for abovementioned changes.
26253 Remove all traces of varray.c and varray.h.
26254 * varray.c: Remove file.
26255 * varray.h: Remove file.
26257 2010-04-30 Jan Hubicka <jh@suse.cz>
26259 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
26262 2010-04-30 Jan Hubicka <jh@suse.cz>
26264 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
26267 2010-04-30 Richard Guenther <rguenther@suse.de>
26269 * tree-ssa-structalias.c (get_constraint_for_1): Generate
26270 constraints for CONSTRUCTOR.
26272 2010-04-30 Richard Guenther <rguenther@suse.de>
26275 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
26276 first after all lowering passes.
26278 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
26280 * toplev.c: Include varray.h for statistics dumping.
26281 * tree.h: Do not declare varray_head_tag.
26282 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
26283 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
26284 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
26285 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
26286 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
26287 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
26288 c-common.c, c-common.h, reg-stack.c, basic-block.h,
26289 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
26291 * Makefile.in: Update for abovementioned changes.
26293 2010-04-30 Jakub Jelinek <jakub@redhat.com>
26296 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
26298 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
26300 * config/picochip/picochip.c (picochip_legitimize_address): Define.
26301 Use this function to do machine-specific conversion.
26302 (picochip_legitimize_reload_address): Likewise.
26303 (picochip_legitimate_address_p): Check valid base register only if
26305 (picochip_check_conditional_copy): Check for modw only if opnd is
26307 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
26308 to call the function in c.
26309 * config/picochip/picochip-protos.h
26310 (picochip_legitimize_reload_address): Define.
26311 * config/picochip/picochip.md (supported_compare1): Define.
26313 2010-04-30 Jan Hubicka <jh@suse.cz>
26315 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
26316 (cgraph_global_info): Remove inlined.
26317 (LTO_cgraph_tag_names): Remove.
26318 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
26319 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
26320 simplify cgraph tags and document.
26321 (lto_output_node): Use only LTO_cgraph_unavail_node and
26322 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
26323 for_functions_valid, global info, process and output flags.
26324 (input_overwrite_node): Initialize estimated stack size and
26325 estimated growth. Do not read flags we no longer store.
26326 (input_node): Likewise do not read info no longer stored.
26327 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
26330 2010-04-30 Richard Guenther <rguenther@suse.de>
26332 PR tree-optimization/43879
26333 * tree-ssa-structalias.c (get_constraint_for_1): Properly
26334 handle non-zero initializers.
26336 2010-04-30 Richard Guenther <rguenther@suse.de>
26338 * builtins.c (fold_builtin_1): Delete free (0).
26340 2010-04-29 Jan Hubicka <jh@suse.cz>
26342 * gengtype.c (open_base_files): Add lto-streamer.h
26343 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
26344 (pass_ipa_cp): GGC collect.
26345 * toplev. (compile_file): Do not output symbols.
26346 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
26347 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
26348 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
26349 * lto-section-in.c: Include ggc.h
26350 (lto_new_in_decl_state): Alloc in GGC.
26351 (lto_delete_in_decl_state): Likewise.
26352 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
26355 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
26358 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
26359 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
26360 (HONOR_REG_ALLOC_ORDER): Describe new macro.
26361 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
26362 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
26363 account only if HONOR_REG_ALLOC_ORDER is not defined.
26364 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
26365 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
26367 2010-04-29 Jon Grant <04@jguk.org>
26369 * collect2.c (vflag): Change type from int to bool.
26371 (helpflag): New global bool.
26372 (main): Set vflag and debug with boolean, not integer truth values.
26373 Accept new "--help" option and output usage text if found.
26374 * collect2.h (vflag): Update prototype.
26377 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
26380 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
26382 2010-04-29 Richard Guenther <rguenther@suse.de>
26385 * plugin.h (invoke_plugin_callbacks): Annotate arguments
26386 with ATTRIBUTE_UNUSED.
26388 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
26391 * config/i386/i386.c (get_some_local_dynamic_name): Replace
26392 INSN_P with NONDEBUG_INSN_P.
26393 (distance_non_agu_define): Likewise.
26394 (distance_agu_use): Likewise.
26396 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
26398 From Dominique d'Humieres <dominiq@lps.ens.fr>
26400 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
26403 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
26405 * plugin.h (invoke_plugin_callbacks): New inline function.
26406 * plugin.c (flag_plugin_added): New global flag.
26407 (add_new_plugin): Initialize above flag.
26408 (invoke_plugin_callbacks): Rename to ...
26409 (invoke_plugin_callbacks_full): ... this.
26411 2010-04-28 Jan Hubicka <jh@suse.cz>
26413 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
26414 (lto_varpool_replace_node): New.
26415 (lto_symtab_resolve_symbols): Resolve varpool nodes.
26416 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
26417 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
26418 * cgraph.h (varpool_node_ptr): New type.
26419 (varpool_node_ptr): New vector.
26420 (varpool_node_set_def): New structure.
26421 (varpool_node_set): New type.
26422 (varpool_node_set): New vector.
26423 (varpool_node_set_element_def): New structure.
26424 (varpool_node_set_element, const_varpool_node_set_element): New types.
26425 (varpool_node_set_iterator): New type.
26426 (varpool_node): Add prev pointers, add used_from_other_partition,
26427 in_other_partition.
26428 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
26429 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
26430 varpool_get_node, varpool_remove_node): Declare.
26431 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
26432 varpool_node_set_size): New inlines.
26433 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
26434 * tree-pass.h (varpool_node_set_def): Forward declare.
26435 (ipa_opt_pass_d): Summary writting takes vnode sets too.
26436 (ipa_write_optimization_summaries): Update prototype.
26437 * ipa-cp.c (ipcp_write_summary): Update.
26438 * ipa-reference.c (ipa_reference_write_summary): Update.
26439 * lto-cgraph.c (lto_output_varpool_node): New static function.
26440 (output_varpool): New function.
26441 (input_varpool_node): New static function.
26442 (input_varpool_1): New function.
26443 (input_cgraph): Input varpool.
26444 * ipa-pure-const.c (pure_const_write_summary): Update.
26445 * lto-streamer-out.c (lto_output): Update, output varpool too.
26446 (write_global_stream): Kill WPA hack.
26447 (produce_asm_for_decls): Update.
26448 (output_alias_pair_p): Handle variables.
26449 (output_unreferenced_globals): Output only needed partition of varpool.
26450 * ipa-inline.c (inline_write_summary): Update.
26451 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
26453 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
26454 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
26455 varpool_node_set_new, varpool_node_set_add,
26456 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
26457 debug_varpool_node_set): New functions.
26458 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
26459 (execute_one_pass): Process new decls too.
26460 (ipa_write_summaries_2): Pass around vsets.
26461 (ipa_write_summaries_1): Likewise.
26462 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
26464 (ipa_write_optimization_summaries_1): Pass around vsets.
26465 (ipa_write_optimization_summaries): Likewise.
26466 * varpool.c (varpool_get_node): New.
26467 (varpool_node): Update doubly linked lists.
26468 (varpool_remove_node): New.
26469 (dump_varpool_node): More dumping.
26470 (varpool_enqueue_needed_node): Update doubly linked lists.
26471 (decide_is_variable_needed): Kill ltrans hack.
26472 (varpool_finalize_decl): Kill lto hack.
26473 (varpool_assemble_decl): Skip decls in other partitions.
26474 (varpool_assemble_pending_decls): Update doubly linkes lists.
26475 (varpool_empty_needed_queue): Likewise.
26476 (varpool_extra_name_alias): Likewise.
26477 * lto-streamer.c (lto_get_section_name): Add vars section.
26478 * lto-streamer.h (lto_section_type): Update.
26479 (output_varpool, input_varpool): Declare.
26481 2010-04-28 Mike Stump <mikestump@comcast.net>
26483 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
26485 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
26487 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
26488 record or union type with RECORD_OR_UNION_TYPE_P predicate.
26489 (lto_input_ts_type_tree_pointers): Likewise.
26490 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
26491 (lto_output_ts_type_tree_pointers): Likewise.
26493 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
26495 Uniquization of constants at the Tree level
26496 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
26497 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
26499 (tree_output_constant_def): Declare.
26500 * gimplify.c (gimplify_init_constructor): When using block copy, first
26501 uniquize the constant constructor on the RHS.
26502 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
26503 DECL_IN_CONSTANT_POOL flag.
26504 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
26505 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
26507 (assemble_variable): Deal with symbols belonging to the tree constant
26509 (get_constant_section): Add ALIGN parameter and simplify.
26510 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
26511 (assemble_constant_contents): Use the expression of the VAR_DECL.
26512 (output_constant_def_contents): Use the alignment of the VAR_DECL.
26513 (tree_output_constant_def): New global function.
26514 (mark_constant): Use the expression of the VAR_DECL.
26515 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
26517 (output_object_block): Likewise and assemble the expression.
26519 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
26521 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
26522 hash_tree, eq_tree): New tree hash table.
26523 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
26524 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
26525 lto_orig_address_remove): Reimplement.
26527 2010-04-28 Xinliang David Li <davidxl@google.com>
26530 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
26531 (compute_uninit_opnds_pos): New function.
26532 (is_non_loop_exit_postdominating): New function.
26533 (compute_control_dep_chain): New function.
26534 (find_pdom): New function.
26535 (convert_control_dep_chain_into_preds): New function.
26536 (find_predicates): New function.
26537 (find_control_equiv_block): New function.
26538 (collect_phi_def_edges): New function.
26539 (find_def_preds): New function.
26540 (find_dom): New function.
26541 (dump_predicates): New function.
26542 (get_cmp_code): New function.
26543 (is_value_included_in): New function.
26544 (find_matching_predicate_in_rest_chains): New function.
26545 (use_pred_not_overlap_with_undef_path_pred): New function.
26546 (is_use_properly_guarded): New function.
26547 (normalize_cond_1): New function.
26548 (is_and_or_or): New function.
26549 (normalize_cond): New function.
26550 (is_gcond_subset_of): New function.
26551 (is_subset_of_any): New function.
26552 (is_or_set_subset_of): New function.
26553 (is_and_set_subset_of): New function.
26554 (is_norm_cond_subset_of): New function.
26555 (is_pred_expr_subset_of): New function.
26556 (is_pred_chain_subset_of): New function.
26557 (is_included_in): New function.
26558 (is_superset_of): New function.
26559 (find_uninit_use): New function.
26560 (warn_uninitialized_phi): New function.
26561 (compute_possibly_undefined_names): New function.
26562 (ssa_undefined_value_p): New function.
26563 (execute_late_warn_uninitialized): New function.
26564 * tree-ssa.c (ssa_undefined_value_p): Removed.
26565 (warn_uninit): Changed to extern.
26566 (warn_uninitialized_phi): Removed.
26567 (warn_uninitialized_vars): Changed to extern.
26568 (execute_late_warn_uninitialized): Removed
26569 * tree-flow.h: Add new prototypes.
26570 * timevar.def: Add new time variable.
26571 * Makefile.in: Add new build file.
26573 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
26575 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
26578 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26581 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
26583 2010-04-28 Martin Jambor <mjambor@suse.cz>
26585 * cgraph.h (struct cgraph_node): New field indirect_calls.
26586 (struct cgraph_indirect_call_info): New type.
26587 (struct cgraph_edge): Removed field indirect_call. New fields
26588 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
26589 (cgraph_create_indirect_edge): Declare.
26590 (cgraph_make_edge_direct): Likewise.
26591 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
26592 * ipa-prop.h (struct ipa_param_call_note): Removed.
26593 (struct ipa_node_params): Removed field param_calls.
26594 (ipa_create_all_structures_for_iinln): Declare.
26595 * cgraph.c: Described indirect edges and uids in initial comment.
26596 (cgraph_add_edge_to_call_site_hash): New function.
26597 (cgraph_edge): Search also among the indirect edges, use
26598 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
26599 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
26600 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
26602 (initialize_inline_failed): Assign a reason to indirect edges.
26603 (cgraph_create_edge_1): New function.
26604 (cgraph_create_edge): Moved some functionality to
26605 cgraph_create_edge_1.
26606 (cgraph_create_indirect_edge): New function.
26607 (cgraph_edge_remove_callee): Add an assert checking for
26609 (cgraph_edge_remove_caller): Special-case indirect edges.
26610 (cgraph_remove_edge): Likewise.
26611 (cgraph_set_edge_callee): New function.
26612 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
26613 (cgraph_make_edge_direct): New function.
26614 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
26615 the declaration of the call statement matches.
26616 (cgraph_node_remove_callees): Special-case indirect edges.
26617 (cgraph_clone_edge): Likewise.
26618 (cgraph_clone_node): Clone also the indirect edges.
26619 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
26620 indirect_call, dump count of indirect_calls edges.
26621 * ipa-prop.c (iinlining_processed_edges): New variable.
26622 (ipa_note_param_call): Create indirect edges instead of
26623 creating notes. New parameter node.
26624 (ipa_analyze_call_uses): New parameter node, pass it on to
26625 ipa_note_param_call.
26626 (ipa_analyze_stmt_uses): Likewise.
26627 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
26628 (print_edge_addition_message): Work on edges rather than on notes.
26629 (update_call_notes_after_inlining): Likewise, renamed to
26630 update_indirect_edges_after_inlining.
26631 (ipa_create_all_structures_for_iinln): New function.
26632 (ipa_free_node_params_substructures): Do not free notes.
26633 (ipa_edge_duplication_hook): Propagate bits within
26634 iinlining_processed_edges bitmap.
26635 (ipa_node_duplication_hook): Do not duplicate notes.
26636 (free_all_ipa_structures_after_ipa_cp): Renamed to
26637 ipa_free_all_structures_after_ipa_cp.
26638 (free_all_ipa_structures_after_iinln): Renamed to
26639 ipa_free_all_structures_after_iinln.
26640 (ipa_write_param_call_note): Removed.
26641 (ipa_read_param_call_note): Removed.
26642 (ipa_write_indirect_edge_info): New function.
26643 (ipa_read_indirect_edge_info): Likewise.
26644 (ipa_write_node_info): Do not stream notes, do stream information
26646 (ipa_read_node_info): Likewise.
26647 (lto_ipa_fixup_call_notes): Removed.
26648 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
26649 * ipa-inline.c (pass_ipa_inline): Likewise.
26650 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
26651 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
26652 * tree-inline.c (copy_bb): Removed an unnecessary double check for
26654 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
26656 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
26657 (output_cgraph): Stream also indirect edges.
26658 (lto_output_edge): Added capability to stream indirect edges.
26659 (input_edge): Likewise.
26660 (input_cgraph_1): Likewise.
26661 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
26664 2010-04-28 Richard Guenther <rguenther@suse.de>
26666 PR tree-optimization/43879
26667 PR tree-optimization/43909
26668 * tree-ssa-structalias.c (struct variable_info): Add
26669 only_restrict_pointers flag.
26670 (new_var_info): Initialize it. Increment stats.total_vars here.
26671 (create_function_info_for): Do not increment stats.total_vars here.
26672 (get_function_part_constraint): Fix build with C++.
26673 (insert_into_field_list): Remove.
26674 (push_fields_onto_fieldstack): Properly merge fields.
26675 (create_variable_info_for): Split and simplify.
26676 (create_variable_info_for_1): New piece.
26677 (intra_create_variable_infos): Properly make restrict constraints
26680 2010-04-28 Richard Guenther <rguenther@suse.de>
26683 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
26685 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
26686 Jan Hubicka <hubicka@ucw.cz>
26688 * doc/invoke.texi (-Wsuggest-attribute=const,
26689 -Wsuggest-attribute=pure): Document.
26690 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
26691 (function_always_visible_to_compiler_p,
26692 suggest_attribute, warn_function_pure, warn_function_const):
26694 (check_call): Improve debug info.
26695 (analyze_function): Do not check availability.
26696 (add_new_function): Check availability.
26697 (propagate): Output warnings.
26698 (skip_function_for_local_pure_const): New function.
26699 (local_pure_const): Use it; output warnings.
26700 * common.opt (Wsuggest-attribute=const,
26701 Wsuggest-attribute=pure): New.
26703 2010-04-27 Jakub Jelinek <jakub@redhat.com>
26705 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
26706 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
26707 or DW_CFA_def_cfa_offset{,_sf}.
26709 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
26711 * tree.h: Fix truncated long macros.
26713 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
26715 * collect2.c (TARGET_64BIT): Redefine to target's default.
26716 * tlink.c: Likewise.
26717 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
26718 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
26719 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
26720 for underscoring __USER_LABEL_PREFIX__.
26721 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
26722 (SUB_LINK_ENTRY32): New.
26723 (SUB_LINK_ENTRY64): New.
26724 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
26725 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
26726 (SUB_LINK_ENTRY64): New.
26727 (SUB_LINK_ENTRY): New.
26728 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
26729 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
26730 x64 target is choosen.
26731 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
26732 * configure: Regenerated.
26733 * configure.ac (leading-mingw64-underscores): Option added.
26735 2010-04-27 Jan Hubicka <jh@suse.cz>
26737 * doc/invoke.texi (-fipa-profile): Document.
26738 * opts.c (decode_options): Enable ipa-profile at -O1.
26739 * timevar.def (TV_IPA_PROFILE): Define.
26740 * common.opt (fipa-profile): Add.
26741 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
26743 (cgraph_propagate_frequency): Handle only local ones.
26744 * tree-pass.h (pass_ipa_profile): Declare.
26745 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
26746 (pass_ipa_profile): Use TV_IPA_PROFILE.
26747 * ipa.c (ipa_profile): New function.
26748 (gate_ipa_profile): Likewise.
26749 (pass_ipa_profile): New global variable.
26750 * passes.c (pass_ipa_profile): New.
26752 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
26754 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
26756 2010-04-27 Martin Jambor <mjambor@suse.cz>
26758 PR middle-end/43812
26759 * ipa.c (dissolve_same_comdat_group_list): New function.
26760 (function_and_variable_visibility): Call
26761 dissolve_same_comdat_group_list when comdat group contains external or
26763 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
26764 lists are circular and that they contain only DECL_ONE_ONLY nodes.
26766 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
26768 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
26769 (const_hash_1) <VECTOR_CST>: New case.
26770 (compare_constant) <VECTOR_CST>: Likewise.
26771 <ADDR_EXPR>: Deal with LABEL_REFs.
26772 (copy_constant) <VECTOR_CST>: New case.
26774 2010-04-27 Jan Hubicka <jh@suse.cz>
26776 * cgraph.c (cgraph_propagate_frequency): New function.
26777 * cgraph.h (cgraph_propagate_frequency): Declare.
26778 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
26779 cgraph_propagate_frequency.
26781 2010-04-27 Jakub Jelinek <jakub@redhat.com>
26783 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
26785 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
26788 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
26789 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
26790 here to determine which regs to push and how much stack to reserve.
26792 2010-04-27 Jie Zhang <jie@codesourcery.com>
26794 * doc/gimple.texi (gimple_statement_with_ops): Remove
26795 addresses_taken field.
26796 (gimple_statement_with_memory_ops): Likewise.
26798 2010-04-27 Jan Hubicka <jh@suse.cz>
26800 * tree-inline.c (eni_inlining_weights): Remove.
26801 (estimate_num_insns): Special case more builtins.
26803 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
26806 * c-typeck.c (build_binary_op): Move forward check for comparison
26807 pointer with null pointer constant and adjust the diagnostic message.
26809 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
26812 * configure.ac (gcc_cv_as_section_has_align): Set if installed
26813 binutils supports extended .section directive needed by LTO, or
26814 warn if older binutils found.
26815 (LTO_BINARY_READER): New AC_SUBST'd variable.
26816 (LTO_USE_LIBELF): Likewise.
26817 * config.gcc (lto_binary_reader): New target-specific configure
26819 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
26820 (LTO_USE_LIBELF): Likewise.
26821 * configure: Regenerate.
26823 * collect2.c (is_elf): Rename from this ...
26824 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
26825 object files in addition to ELF-formatted ones.
26826 (scan_prog_file): Caller updated. Also allow for LTO info marker
26827 symbol to be prefixed or not by an extra underscore.
26829 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
26830 * config/i386/winnt.c: Also #include lto-streamer.h
26831 (i386_pe_asm_named_section): Specify 1-byte section alignment for
26832 LTO named sections.
26833 (i386_pe_asm_output_aligned_decl_common): Add comment.
26834 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
26836 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
26839 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
26840 Add missing earlyclobber for second alternative.
26842 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
26844 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
26845 bits for artificial defs at the top of the block.
26846 * fwprop.c (single_def_use_enter_block): Don't call it.
26848 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
26851 * configure.ac: Use "$gcc_cv_nm -g" on darwin
26852 instead of "$gcc_cv_objdump -T".
26853 Use "-undefined dynamic_lookup" on darwin.
26854 * configure: Regenerate.
26856 2010-04-26 Jakub Jelinek <jakub@redhat.com>
26859 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
26861 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
26863 * c-parser.c (struct c_token): Move location field up.
26864 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
26865 (struct c_declspecs): Convert typespec_word, storage_class, and
26866 default_int_p into bitfields.
26867 (struct c_declarator): Move loc field up.
26869 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
26871 * cfgloop.h (struct loop): Move can_be_parallel field up.
26872 * ipa-prop.h (struct ip_node_params): Move bitfields up.
26873 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
26875 (struct iv_cand): Convert pos field into a bitfield.
26876 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
26878 (struct _stmt_vec_info): Shuffle fields for better packing.
26880 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
26882 * varasm.c (IN_NAMED_SECTION): Remove guard.
26883 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
26884 (IN_NAMED_SECTION_P): ...this.
26885 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
26886 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
26888 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
26890 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
26891 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
26892 of shadowing it. Fix comments.
26894 2010-04-26 Jan Hubicka <jh@suse.cz>
26896 * cgraph.c (cgraph_create_node): Set node frequency to normal.
26897 (cgraph_clone_node): Copy function frequency.
26898 * cgraph.h (node_frequency): New enum
26899 (struct cgraph_node): Add.
26900 * final.c (rest_of_clean_state): Update.
26901 * lto-cgraph.c (lto_output_node): Output node frequency.
26902 (input_overwrite_node): Input node frequency.
26903 * tre-ssa-loop-ivopts (computation_cost): Update.
26904 * lto-streamer-out.c (output_function): Do not output function
26906 * predict.c (maybe_hot_frequency_p): Update and handle functions
26908 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
26910 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
26911 (compute_function_frequency): Set noreturn functions to be executed
26913 (choose_function_section): Update.
26914 * lto-streamer-in.c (input_function): Do not input function frequency.
26915 * function.c (allocate_struct_function): Do not initialize function
26917 * function.h (function_frequency): Remove.
26918 (struct function): Remove function frequency.
26919 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
26920 (try_update): Update.
26921 * tree-inline.c (initialize_cfun): Do not update function frequency.
26922 * passes.c (pass_init_dump_file): Update.
26923 * i386.c (ix86_compute_frame_layout): Update.
26924 (ix86_pad_returns): Update.
26926 2010-04-26 Jie Zhang <jie@codesourcery.com>
26928 PR tree-optimization/43833
26929 * tree-vrp.c (range_int_cst_p): New.
26930 (range_int_cst_singleton_p): New.
26931 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
26932 when both operands are constants. Use range_int_cst_p in
26935 2010-04-26 Jan Hubicka <jh@suse.cz>
26937 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
26939 2010-04-26 Richard Guenther <rguenther@suse.de>
26942 * gimple.c (gimple_decl_printable_name): Deal gracefully
26943 with a NULL DECL_NAME.
26945 2010-04-26 Richard Guenther <rguenther@suse.de>
26948 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
26949 if emitting debug information and it is either a function
26950 or a namespace decl.
26952 2010-04-26 Ira Rosen <irar@il.ibm.com>
26954 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
26955 determine if the statement is vectorizable, and a macro to access it.
26956 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
26957 Skip statements that can't be vectorized. If the analysis fails,
26958 mark the statement as unvectorizable if vectorizing basic block.
26959 (vect_compute_data_refs_alignment): Likewise.
26960 (vect_verify_datarefs_alignment): Skip statements marked as
26961 unvectorizable. Add print.
26962 (vect_analyze_group_access): Skip statements that can't be
26963 vectorized. If the analysis fails, mark the statement as
26964 unvectorizable if vectorizing basic block.
26965 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
26966 * tree-vect-stmts.c (vectorizable_store): Fix the number of
26967 generated stmts for SLP.
26968 (new_stmt_vec_info): Initialize the new field.
26969 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
26970 statements marked as unvectorizable.
26972 2010-04-25 Joseph Myers <joseph@codesourcery.com>
26974 * c-common.c (flag_isoc1x): New.
26975 (flag_isoc99): Update comment.
26976 * c-common.h (flag_isoc1x): New.
26977 (flag_isoc99): Update comment.
26978 * c-cppbuiltin.c (builtin_define_float_constants): Also define
26979 __<type>_DECIMAL_DIG__.
26980 * c-opts.c (set_std_c1x): New.
26981 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
26982 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
26983 * c.opt (-std=c1x, -std=gnu1x): New options.
26984 * doc/cpp.texi: Mention -std=c1x.
26985 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
26986 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
26987 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
26988 * doc/standards.texi: Mention C1X.
26989 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
26990 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
26991 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
26994 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
26996 * config/i386/gmon-sol2.c (_mcleanup): Change format string
26997 placeholder from 0x%x to %#x.
26998 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
26999 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
27000 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
27001 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
27002 * config/i386/i386.c (ix86_target_string): Ditto.
27003 (output_pic_addr_const): Ditto.
27004 (print_operand): Ditto.
27006 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
27008 * combine.c (find_split_point): Add third argument. Use it
27009 to find nested multiply-accumulate instructions. Adjust calls.
27010 (try_combine): Adjust call to find_split_point.
27012 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
27014 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
27016 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
27018 PR tree-optimization/41442
27019 * fold-const.c (merge_truthop_with_opposite_arm): New function.
27020 (fold_binary_loc): Call it.
27022 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
27024 * toplev.c (general_init): Set default for fdiagnostics-show-option.
27025 * opts.c (common_handle_option): Allow disabling it.
27026 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
27028 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
27030 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
27031 between modes if both types are integral.
27033 2010-04-23 Richard Guenther <rguenther@suse.de>
27035 PR tree-optimization/43572
27036 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
27038 2010-04-23 Richard Guenther <rguenther@suse.de>
27041 * tree-inline.c (tree_can_inline_p): Also check compatibility
27044 2010-04-23 Martin Jambor <mjambor@suse.cz>
27046 PR tree-optimization/43846
27047 * tree-sra.c (struct access): New flag grp_assignment_read.
27048 (build_accesses_from_assign): Set grp_assignment_read.
27049 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
27050 (enum mark_read_status): New type.
27051 (analyze_access_subtree): Propagate grp_assignment_read, create
27052 accesses also if both direct_read and root->grp_assignment_read.
27054 2010-04-23 Martin Jambor <mjambor@suse.cz>
27056 PR middle-end/43835
27057 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
27058 function does not have type attributes.
27060 2010-04-23 Richard Guenther <rguenther@suse.de>
27063 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
27066 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
27068 * sese.h (create_if_region_on_edge): Remove.
27070 * sese.c (create_if_region_on_edge): Make static.
27072 * tree-inline.c: Do not include ggc.h.
27074 * expr.c: Do not include ggc.h.
27076 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
27079 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
27082 * config/sh/sh.c (find_barrier): Don't emit a constant pool
27083 in the middle of insns for casesi_worker_2.
27085 2010-04-22 David Edelsohn <edelsohn@gnu.org>
27087 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
27089 2010-04-22 Ira Rosen <irar@il.ibm.com>
27091 PR tree-optimization/43842
27092 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
27093 loop unrolling in update of exit phis. Fix comment.
27094 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
27095 least two reduction statements in the loop before starting SLP
27098 2010-04-22 Nick Clifton <nickc@redhat.com>
27100 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
27102 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
27104 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
27105 to simplify a + ~a.
27107 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
27109 * tree-parloops.c (loop_parallel_p): New argument
27110 parloop_obstack. Pass it down.
27111 (parallelize_loops): New variable parloop_obstack. Initialize it,
27112 pass it down, free it.
27114 * tree-loop-linear.c (linear_transform_loops): Pass down
27117 * tree-data-ref.h (lambda_compute_access_matrices): New argument
27118 of type struct obstack *.
27120 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
27121 scratch_obstack. Initialize it, pass down, free it.
27123 * lambda.h (lambda_loop_new): Remove.
27124 (lambda_matrix_new, lambda_matrix_inverse)
27125 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
27126 argument of type struct obstack *.
27128 * lambda-trans.c (lambda_trans_matrix_new): New argument
27129 lambda_obstack. Pass it down, use obstack allocation for ret.
27130 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
27133 * lambda-mat.c (lambda_matrix_get_column)
27134 (lambda_matrix_project_to_null): Remove.
27135 (lambda_matrix_new): New argument lambda_obstack. Use obstack
27136 allocation for mat.
27137 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
27140 * lambda-code.c (lambda_loop_new): New function.
27141 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
27142 (lambda_compute_auxillary_space, lambda_compute_target_space)
27143 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
27144 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
27145 (build_access_matrix): New argument lambda_obstack. Use obstack
27147 (lambda_compute_step_signs, lambda_compute_access_matrices): New
27148 argument lambda_obstack. Pass it down.
27150 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
27152 * optabs.h (expand_widening_mult): Declare.
27154 2010-04-22 Richard Guenther <rguenther@suse.de>
27156 PR tree-optimization/43845
27157 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
27158 lookup the CALL_EXPR function and arguments.
27160 2010-04-22 Nick Clifton <nickc@redhat.com>
27162 * config/stormy16/stormy16.c
27163 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
27164 * config/stormy16/stormy16.h: Tidy up formatting.
27165 (DONT_USE_BUILTIN_SETJMP): Remove definition.
27166 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
27167 (ineqbranchsi): Delete pattern.
27168 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
27169 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
27170 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
27171 stormy16-lib2-ucmpsi2.c.
27173 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
27175 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
27176 df_simulate_find_noclobber_defs as appropriate. Keep track of an
27177 extra set merge_set_noclobber, and use it to relax the final test
27179 * df.h (df_simulate_find_noclobber_defs): Declare.
27180 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
27182 (df_simulate_find_noclobber_defs): New function.
27184 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
27186 * config/i386/i386.md: Use {} around multi-line preparation statements.
27188 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
27190 * c-tree.h (push_init_level, pop_init_level, set_init_index)
27191 (process_init_element): New argument of type struct obstack *.
27193 * c-typeck.c (push_init_level, pop_init_level, set_designator)
27194 (set_init_index, set_init_label, set_nonincremental_init)
27195 (set_nonincremental_init_from_string, find_init_member)
27196 (output_init_element, output_pending_init_elements)
27197 (process_init_element): New argument braced_init_obstack. Pass it
27199 (push_range_stack, add_pending_init): New argument
27200 braced_init_obstack. Use obstack allocation.
27202 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
27203 braced_init_obstack. Pass it down.
27204 (c_parser_braced_init): New variables ret, braced_init_obstack.
27205 Initialize obstack, pass it down and finally free it.
27207 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
27209 PR middle-end/29274
27210 * tree-pass.h (pass_optimize_widening_mul): Declare.
27211 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
27212 gate_optimize_widening_mul): New static functions.
27213 (pass_optimize_widening_mul): New.
27214 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
27215 <case MULT_EXPR>: Remove support for widening multiplies.
27216 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
27217 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
27218 simplify_gen_unary rather than directly building extensions.
27219 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
27221 * expmed.c (expand_widening_mult): New function.
27222 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
27224 2010-04-21 Jan Hubicka <jh@suse.cz>
27226 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
27227 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
27228 * lto-wpa-fixup.c: Remove.
27229 * Makefile.in (lto-wpa-fixup.o): Remove.
27230 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
27231 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
27232 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
27234 2010-04-21 Jan Hubicka <jh@suse.cz>
27236 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
27237 add write_optimization_summary, read_optimization_summary.
27238 (ipa_write_summaries_of_cgraph_node_set): Remove.
27239 (ipa_write_optimization_summaries): Declare.
27240 (ipa_read_optimization_summaries): Declare.
27241 * ipa-cp.c (pass_ipa_cp): Update.
27242 * ipa-reference.c (pass_ipa_reference): Update.
27243 * ipa-pure-const.c (pass_ipa_pure_const): Update.
27244 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
27246 * ipa-inline.c (pass_ipa_inline): Update.
27247 * ipa.c (pass_ipa_whole_program): Update.
27248 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
27249 * passes.c (ipa_write_summaries_1): Do not test wpa.
27250 (ipa_write_optimization_summaries_1): New.
27251 (ipa_write_optimization_summaries): New.
27252 (ipa_read_summaries): Do not test ltrans.
27253 (ipa_read_optimization_summaries_1): New.
27254 (ipa_read_optimization_summaries): New.
27256 2010-04-21 Jan Hubicka <jh@suse.cz>
27258 * lto-cgraph.c (lto_output_node): Do not output comdat groups
27259 for boundary nodes.
27260 (output_cgraph): Do not arrange comdat groups for boundary nodes.
27262 2010-04-21 Jakub Jelinek <jakub@redhat.com>
27265 * dwarf2out.c (add_name_and_src_coords_attributes): Add
27266 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
27268 2010-04-21 Jan Hubicka <jh@suse.cz>
27270 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
27272 2010-04-21 Jan Hubicka <jh@suse.cz>
27274 * varpool.c (decide_is_variable_needed): Variable is always needed
27277 2010-04-21 Jan Hubicka <jh@suse.cz>
27279 * opts.c (decode_options): Enable pure-const pass for whopr.
27281 2010-04-21 Jan Hubicka <jh@suse.cz>
27283 * cgraph.c (dump_cgraph_node): Dump also assembler name.
27284 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
27286 (cgraph_decide_inlining): Do not expect callee to be removed in all
27289 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
27291 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
27293 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
27295 * config/i386/i386.md (x86_shrd): Add athlon_decode and
27296 amdfam10_decode attributes.
27298 2010-04-21 Jakub Jelinek <jakub@redhat.com>
27300 PR middle-end/43570
27301 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
27302 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
27303 (lower_copyprivate_clauses): Use private var in outer
27304 context instead of original var. Make sure the types
27305 are correct for VLAs.
27307 2010-04-21 Richard Guenther <rguenther@suse.de>
27309 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
27310 to non-pointer objects.
27312 2010-04-21 Jakub Jelinek <jakub@redhat.com>
27314 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
27315 last chain entry if it starts with the still current label.
27316 (add_location_or_const_value_attribute): Check that
27317 loc_list->first->next is NULL instead of comparing ->first with ->last.
27318 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
27319 to add_var_loc_to_decl.
27321 * dwarf2out.c (output_call_frame_info): For dw_cie_version
27322 >= 4 add also address size and segment size fields into CIE header.
27324 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
27325 long as address size is the same as sizeof (void *) and
27327 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
27328 address size or segment size is unexpected, return DW_EH_PE_omit.
27329 (classify_object_over_fdes): If get_cie_encoding returned
27330 DW_EH_PE_omit, return -1.
27331 (init_object): If classify_object_over_fdes returned -1,
27332 pretend there were no FDEs at all.
27334 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
27336 * config/i386/i386.md (bswap<mode>2): Macroize expander from
27337 bswap{si,di}2 using SWI48 mode iterator.
27338 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
27339 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
27340 set modrm attribute of bswap insn to 0 and remove length attribute.
27341 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
27342 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
27343 set mode attribute to <MODE> and remove length attribute.
27345 2010-04-20 James E. Wilson <wilson@codesourcery.com>
27347 PR rtl-optimization/43520
27348 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
27349 zero available registers.
27351 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27353 * builtins.c (fold_builtin_cproj): Fold more cases.
27355 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27357 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
27358 (fold_builtin_1): Fold builtin cproj.
27359 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
27360 Use ATTR_CONST_NOTHROW_LIST.
27362 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
27364 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
27365 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
27366 ffsi2_no_cmove for !TARGET_CMOVE.
27367 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
27368 (ffssi2): Remove expander.
27369 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
27371 (ctz<mode>2): Ditto from ctz{si,di}2.
27372 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
27374 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
27377 2010-04-20 Jakub Jelinek <jakub@redhat.com>
27379 * dwarf2out.c (AT_linkage_name): Define.
27380 (clone_as_declaration): Handle DW_AT_linkage_name.
27381 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
27382 of DW_AT_MIPS_linkage_name.
27383 (move_linkage_attr): Likewise.
27384 (dwarf2out_finish): Likewise.
27386 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
27388 PR middle-end/41952
27389 * fold-const.c (fold_comparison): New folding rule.
27391 2010-04-20 Anatoly Sokolov <aesok@post.ru>
27393 * double-int.h (double_int_setbit): Declare.
27394 * double-int.c (double_int_setbit): New function.
27395 * rtl.h (immed_double_int_const): Declare.
27396 * emit-rtl.c (immed_double_int_const): New function.
27397 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
27398 and immed_double_int_const functions.
27399 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
27400 expand_copysign_bit): (Ditto.).
27401 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
27402 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
27403 * dojump.c (prefer_and_bit_test): (Ditto.).
27404 * expr.c (convert_modes, reduce_to_bit_field_precision,
27405 const_vector_from_tree): (Ditto.).
27406 * expmed.c (mask_rtx, lshift_value): (Ditto.).
27408 2010-04-20 Jan Hubicka <jh@suse.cz>
27410 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
27411 (dump_cgraph_node): Dump new flags.
27412 * cgraph.h (struct cgraph_node): Add flags
27413 reachable_from_other_partition and in_other_partition.
27414 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
27415 other partition can not be removed.
27416 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
27417 the other partition must be output; silence sanity checking on
27418 leaking functions bodies from other paritition.
27419 * lto-cgraph.c (reachable_from_other_partition_p): New function.
27420 (lto_output_node): Output new flags; do not sanity check that inline
27421 clones are output; drop lto_forced_extern_inline_p code; do not mock
27422 visibility flags at partition boundaries.
27423 (add_node_to): New function.
27424 (output_cgraph): Use it to sort functions so masters appear before
27426 (input_overwrite_node): Input new flags.
27427 * passes.c (ipa_write_summaries): Do not call
27428 lto_new_extern_inline_states.
27429 * lto-section-out.c (forced_extern_inline,
27430 lto_new_extern_inline_states lto_delete_extern_inline_states,
27431 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
27432 * lto-streamer.h (lto_new_extern_inline_states,
27433 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
27434 lto_forced_extern_inline_p): Kill.
27436 2010-04-20 Richard Guenther <rguenther@suse.de>
27438 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
27439 from vars that can have pointers.
27440 (process_constraint): Dump useless constraints.
27442 2010-04-20 Richard Guenther <rguenther@suse.de>
27444 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
27445 (dump_sa_points_to_info): Remove asserts.
27446 (init_base_vars): nothing_id isn't an escape point nor does it
27449 2010-04-20 Jakub Jelinek <jakub@redhat.com>
27451 * tree.h (TYPE_REF_IS_RVALUE): Define.
27452 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
27453 should_move_die_to_comdat, prune_unused_types_walk): Handle
27454 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
27455 (modified_type_die, gen_reference_type_die): Emit
27456 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
27457 if TYPE_REF_IS_RVALUE and -gdwarf-4.
27459 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27462 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
27463 calls for -fpic -m31 if they have been sibcall optimized.
27465 2010-04-19 James E. Wilson <wilson@codesourcery.com>
27467 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
27468 ar.lc fixed and call-used.
27470 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
27472 2010-04-19 Jan Hubicka <jh@suse.cz>
27474 * opts.c (decode_options): Disable whpr incompatible passes.
27475 * lto/lto.c (lto_1_to_1_map): Skip clones.
27476 (read_cgraph_and_symbols): Do not mark everything as needed.
27477 (do_whole_program_analysis): Do map only after optimizing;
27478 set proper cgraph_state; use passmanager.
27480 2010-04-19 DJ Delorie <dj@redhat.com>
27482 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
27483 POINTER_PLUS_EXPR and fix them.
27485 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
27487 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
27488 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
27489 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
27490 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
27491 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
27492 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
27493 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
27494 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
27495 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
27496 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
27497 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
27499 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
27501 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
27502 (check_cond_move_block): Likewise.
27503 (cond_move_process_if_block): Likewise.
27504 (noce_find_if_block): Improve formatting.
27505 (find_if_header): Pass 0 to memset and tweak conditions.
27506 (cond_exec_find_if_block): Fix long lines and tweak conditions.
27508 2010-04-19 Jakub Jelinek <jakub@redhat.com>
27510 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
27513 PR middle-end/43337
27514 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
27515 with non-local decl doesn't need chain.
27517 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
27519 * ira-color.c (allocno_reload_assign): Avoid accumulating
27520 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
27522 2010-04-19 Martin Jambor <mjambor@suse.cz>
27524 * gimple.h (create_tmp_reg): Declare.
27525 * gimplify.c (create_tmp_reg): New function.
27526 (gimplify_return_expr): Use create_tmp_reg.
27527 (gimplify_omp_atomic): Likewise.
27528 (gimple_regimplify_operands): Likewise.
27529 * tree-dfa.c (make_rename_temp): Likewise.
27530 * tree-predcom.c (predcom_tmp_var): Likewise.
27531 (reassociate_to_the_same_stmt): Likewise.
27532 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
27533 (get_replaced_param_substitute): Likewise.
27534 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
27535 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
27536 * tree-ssa-pre.c (get_representative_for): Likewise.
27537 (create_expression_by_pieces): Likewise.
27538 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
27539 (create_tailcall_accumulator): Likewise.
27541 2010-04-19 Martin Jambor <mjambor@suse.cz>
27543 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
27545 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
27547 2010-04-19 Richard Guenther <rguenther@suse.de>
27549 PR tree-optimization/43796
27550 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
27551 from SCEV in the lattice.
27552 (vrp_visit_phi_node): Dump change.
27554 2010-04-19 Richard Guenther <rguenther@suse.de>
27556 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
27557 * configure: Re-generated.
27559 2010-04-19 Richard Guenther <rguenther@suse.de>
27561 PR tree-optimization/43783
27562 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
27563 constant ARRAY_REF operands two and three if possible.
27565 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
27568 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
27570 2010-04-19 Jie Zhang <jie@codesourcery.com>
27573 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
27575 2010-04-19 Ira Rosen <irar@il.ibm.com>
27577 PR tree-optimization/37027
27578 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
27579 and macro to access it.
27580 (vectorizable_reduction): Add argument.
27581 (vect_get_slp_defs): Likewise.
27582 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
27583 statements for possible use in SLP.
27584 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
27585 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
27586 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
27588 (vectorizable_reduction): Likewise.
27589 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
27591 (vectorizable_type_demotion, vectorizable_type_promotion,
27592 vectorizable_store): Likewise.
27593 (vect_analyze_stmt): Update call to vectorizable_reduction.
27594 (vect_transform_stmt): Likewise.
27595 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
27596 (vect_build_slp_tree): Fix indentation. Check that there are no loads
27597 from different interleaving chains in same node.
27598 (vect_slp_rearrange_stmts): New function.
27599 (vect_supported_load_permutation_p): Allow load permutations for
27600 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
27601 inside SLP nodes if necessary.
27602 (vect_analyze_slp_instance): Handle reductions.
27603 (vect_analyze_slp): Try to build SLP instances originating from groups
27605 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
27606 (vect_get_constant_vectors): Create initial vectors for reductions
27607 according to reduction code. Add new argument.
27608 (vect_get_slp_defs): Add new argument, pass it to
27609 vect_get_constant_vectors.
27610 (vect_schedule_slp_instance): Remove SLP tree root statements.
27612 2010-04-19 Jakub Jelinek <jakub@redhat.com>
27614 * tree.h (ENUM_IS_SCOPED): Define.
27615 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
27616 for ENUM_IS_SCOPED enums.
27618 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
27620 * fold-const.c (fold_comparison): Use ssizetype.
27621 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
27622 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
27623 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
27624 * tree-object-size.c (compute_object_sizes): Use size_type_node.
27626 * tree.h (initialize_sizetypes): Remove parameter.
27627 (build_common_tree_nodes): Remove second parameter.
27628 * stor-layout.c (initialize_sizetypes): Remove parameter.
27629 Always create an unsigned type.
27630 (set_sizetype): Assert that the passed type is unsigned and simplify.
27631 * tree.c (build_common_tree_nodes): Remove second parameter.
27632 Adjust call to initialize_sizetypes.
27633 * c-decl.c (c_init_decl_processing): Remove second argument in call to
27634 build_common_tree_nodes.
27636 2010-04-18 Matthias Klose <doko@ubuntu.com>
27638 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
27640 2010-04-18 Ira Rosen <irar@il.ibm.com>
27642 PR tree-optimization/43771
27643 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
27644 load permutation doesn't have gaps.
27646 2010-04-18 Jan Hubicka <jh@suse.cz>
27648 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
27649 (sse_prologue_save_insn expander): Use new pattern.
27650 (sse_prologue_save_insn1): New pattern and splitter.
27651 (sse_prologue_save_insn): Update to deal also with 64bit aligned
27653 * i386.c (setup_incoming_varargs_64): Do not compute jump
27655 (ix86_gimplify_va_arg): Update alignment needed.
27656 (ix86_local_alignment): Do not align all local arrays to 128bit.
27658 2010-04-17 Jan Hubicka <jh@suse.cz>
27660 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
27662 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
27664 * arm.md (negdi2): Remove redundant code to force values into a
27667 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
27669 * arm/bpabi.S: Add EABI alignment attributes to objects.
27670 * arm/bpabi-v6m.S: Likewise.
27671 * arm/crti.asm: Likewise.
27672 * arm/crtn.asm: Likewise.
27673 * arm/lib1funcs.asm: Likewise.
27674 * arm/libunwind.S: Likewise.
27676 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
27678 * arm-protos.h (tune_params): New structure.
27679 * arm.c (current_tune): New variable.
27680 (arm_constant_limit): Delete.
27681 (struct processors): Add pointer to the tune parameters.
27682 (arm_slowmul_tune): New tuning option.
27683 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
27684 (all_cores): Adjust to pick up the tuning model.
27685 (arm_constant_limit): New function.
27686 (arm_override_options): Select the appropriate tuning model. Delete
27687 initialization of arm_const_limit.
27688 (arm_split_constant): Use the new constant-limit model.
27689 (arm_rtx_costs): Pick up the current tuning model.
27690 * arm.md (is_strongarm, is_xscale): Delete.
27691 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
27692 for Xscale variant architectures.
27693 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
27695 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27697 * config/arm/arm.c (arm_gen_constant): Remove unused variable
27699 (arm_rtx_costs_1): Remove unused variable extra_cost.
27700 (arm_unwind_emit_set): Use variable offset.
27701 (thumb1_output_casesi): Remove unused variable flags.
27703 2010-04-16 Jeff Law <law@redhat.com>
27705 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
27706 needing assignment rather than doing a two-phase assignment. Remove
27707 unused variable 'm'.
27709 2010-04-16 Jakub Jelinek <jakub@redhat.com>
27712 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
27714 2010-04-16 Doug Kwan <dougkwan@google.com>
27716 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
27717 (next_operand_entry_id): New static variable.
27718 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
27719 (add_to_ops_vec): Assigned unique ID to operand entry.
27720 (struct oecount_s): New field ID.
27721 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
27722 (undistribute_ops_list): Assign unique IDs to oecounts.
27723 (init_reassoc): reset next_operand_entry_id.
27725 2010-04-16 Doug Kwan <dougkwan@google.com>
27727 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
27728 missing left parenthesis.
27730 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
27732 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
27733 *btdi_rex64 using SWI48 mode iterator.
27734 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
27735 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
27736 *jcc_btdi_mask_rex64.
27738 2010-04-16 Anatoly Sokolov <aesok@post.ru>
27740 * double-int.h (tree_to_double_int): Convert to macro.
27741 * double-int.c (tree_to_double_int): Remove.
27743 2010-04-16 Jakub Jelinek <jakub@redhat.com>
27746 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
27747 with want_address 2 and in case a single element list might be
27748 possible, call it again with want_address 0.
27750 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27752 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
27753 case 'W' print operands for HI mode.
27754 * config/h8300/h8300.h (Y0, Y2) : New constraints.
27755 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
27756 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
27757 * config/h8300/predicate.md (bit_register_indirect_operand): New.
27759 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
27761 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
27762 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
27763 #xx:3 and #xx:4 mode.
27765 * config/h8300/h8300.md (inverted load with HImode dest): Add
27766 support for H8300SX.
27768 * config/h8300/predicate.md (bit_operand): Allow immediate values that
27769 satisfy 'U' constraint.
27771 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27773 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
27774 * configure: Regenerate.
27775 * config.in: Regenerate.
27776 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
27779 2010-04-16 Richard Guenther <rguenther@suse.de>
27781 * tree.h (struct tree_decl_minimal): Move pt_uid ...
27782 (struct tree_decl_common): ... here.
27783 (DECL_PT_UID): Adjust.
27784 (SET_DECL_PT_UID): Likewise.
27785 (DECL_PT_UID_SET_P): Likewise.
27787 2010-04-16 Richard Guenther <rguenther@suse.de>
27789 PR tree-optimization/43572
27790 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
27791 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
27792 * tree-flow.h (is_call_clobbered): Remove.
27793 * tree-flow-inline.h (is_call_clobbered): Likewise.
27794 * tree-dfa.c (dump_variable): Do not dump call clobber state.
27795 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
27796 (execute_return_slot_opt): Adjust.
27797 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
27798 check for call clobbered vars here.
27799 (find_tail_calls): Move tailcall verification to the
27802 2010-04-16 Diego Novillo <dnovillo@google.com>
27804 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
27806 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
27809 * config/arm/arm.md (cbranchqi4): New pattern.
27810 * config/arm/predicates.md (const0_operand,
27811 cbranchqi4_comparison_operator): New predicates.
27813 2010-04-16 Richard Guenther <rguenther@suse.de>
27815 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
27816 (dump_gimple_stmt): Likewise.
27818 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
27820 * recog.h (struct recog_data): New field is_operator.
27821 (struct insn_operand_data): New field is_operator.
27822 * recog.c (extract_insn): Set recog_data.is_operator.
27823 * genoutput.c (output_operand_data): Emit code to set the
27825 * reload.c (find_reloads): Use it rather than testing for an
27826 empty constraint string.
27829 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
27830 If the previous insn is a cbranchsi4_insn with the same arguments,
27831 omit the compare instruction.
27833 * config/arm/arm.md (addsi3_cbranch): If destination is a high
27834 register, inputs must be low registers and we need a low register
27835 scratch. Handle alternative 2 like alternative 3.
27837 2010-04-16 Jakub Jelinek <jakub@redhat.com>
27839 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
27840 don't call get_addr on both. If one expression is a VALUE and
27841 the other a REG, check VALUE's locs if the REG isn't among them.
27843 2010-04-16 Christian Bruel <christian.bruel@st.com>
27845 * config/sh/sh.h (sh_frame_pointer_required): New function.
27846 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
27847 (flag_omit_frame_pointer) Set.
27848 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
27849 (rounded_frame_size): Adjust size with outgoing_args_size.
27850 (sh_set_return_address): Must return from stack pointer.
27851 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
27852 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
27853 (ACCUMULATE_OUTGOING_ARGS): Define.
27854 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
27855 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
27857 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
27860 * config/sh/sh.c (sh_legitimize_reload_address): Use
27861 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
27862 Remove a unneeded check for offset_base.
27864 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
27866 * configure: Regenerated.
27868 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27870 * config/s390/s390.c (s390_call_save_register_used): Switch back
27871 to HARD_REGNO_NREGS.
27873 2010-04-15 Richard Guenther <rguenther@suse.de>
27875 * alias.c (alias_set_subset_of): Handle alias-set zero
27878 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
27879 Julian Brown <julian@codesourcery.com>
27881 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
27882 alternatives according to use of high and low regs.
27883 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
27884 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
27885 optimizing for size on Thumb-2.
27887 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
27889 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
27891 2010-04-15 Richard Guenther <rguenther@suse.de>
27893 * tree-ssa-structalias.c (struct variable_info): Add
27895 (new_var_info): Initialize it.
27896 (dump_constraints): Support printing last added constraints.
27897 (debug_constraints): Adjust.
27898 (dump_constraint_graph): Likewise.
27899 (make_heapvar_for): Check for NULL cfun.
27900 (get_function_part_constraint): New function.
27901 (get_fi_for_callee): Likewise.
27902 (find_func_aliases): Properly implement IPA PTA constraints.
27903 (process_ipa_clobber): New function.
27904 (find_func_clobbers): Likewise.
27905 (insert_into_field_list_sorted): Remove.
27906 (create_function_info_for): Properly allocate vars for IPA mode.
27907 Do not use insert_into_field_list_sorted.
27908 (create_variable_info_for): Properly generate constraints for
27909 global vars in IPA mode.
27910 (dump_solution_for_var): Always dump the solution.
27911 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
27912 (find_what_var_points_to): Adjust.
27913 (pt_solution_set): Change.
27914 (pt_solution_ior_into): New function.
27915 (pt_solution_empty_p): Export.
27916 (pt_solution_includes_global): Adjust.
27917 (pt_solution_includes_1): Likewise.
27918 (pt_solutions_intersect_1): Likewise.
27919 (dump_sa_points_to_info): Check some invariants.
27920 (solve_constraints): Move constraint dumping ...
27921 (compute_points_to_sets): ... here.
27922 (ipa_pta_execute): ... and here.
27923 (compute_may_aliases): Do not re-compute points-to info
27924 locally if IPA info is available.
27925 (ipa_escaped_pt): New global var.
27926 (ipa_pta_execute): Properly implement IPA PTA.
27927 * tree-into-ssa.c (dump_decl_set): Support dumping
27928 decls not in referenced-vars.
27929 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
27930 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
27931 (dump_points_to_solution): Likewise.
27932 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
27933 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
27934 (remap_gimple_stmt): Reset call clobber/use information if necessary.
27935 (copy_decl_to_var): Copy DECL_PT_UID.
27936 (copy_result_decl_to_var): Likewise.
27937 * tree.c (make_node_stat): Initialize DECL_PT_UID.
27938 (copy_node_stat): Copy it.
27939 * tree.h (DECL_PT_UID): New macro.
27940 (SET_DECL_PT_UID): Likewise.
27941 (DECL_PT_UID_SET_P): Likewise.
27942 (struct tree_decl_minimal): Add pt_uid member.
27943 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
27944 (pt_solution_empty_p): Declare.
27945 (pt_solution_set): Adjust.
27946 (ipa_escaped_pt): Declare.
27947 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
27948 * gimple-pretty-print.c (pp_points_to_solution): New function.
27949 (dump_gimple_call): Dump call clobber/use information.
27950 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
27951 * tree-pass.h (TDF_ALIAS): New dump option.
27952 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
27953 * doc/invoke.texi (-fipa-pta): Update documentation.
27955 2010-04-15 Richard Guenther <rguenther@suse.de>
27957 * Makefile.in (OBJS-common): Add gimple-fold.o.
27958 (gimple-fold.o): New rule.
27959 * tree.h (maybe_fold_offset_to_reference,
27960 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
27962 * gimple.h: ... here.
27963 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
27964 may_propagate_address_into_dereference): Move prototypes ...
27965 * gimple.h: ... here.
27966 * tree-ssa-ccp.c (get_symbol_constant_value,
27967 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
27968 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
27969 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
27970 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
27971 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
27972 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
27973 gimplify_and_update_call_from_tree): Move ...
27974 * gimple-fold.c: ... here. New file.
27975 (ccp_fold_builtin): Rename to ...
27976 (gimple_fold_builtin): ... this.
27977 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
27979 2010-04-15 Richard Guenther <rguenther@suse.de>
27981 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
27982 fit_double_type, force_fit_type_double, add_double_with_sign,
27983 neg_double, mul_double_with_sign, lshift_double, rshift_double,
27984 lrotate_double, rrotate_double, div_and_round_double): Move ...
27985 * double-int.c: ... here.
27986 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
27987 add_double, neg_double, mul_double_with_sign, mul_double,
27988 lshift_double, rshift_double, lrotate_double, rrotate_double,
27989 div_and_round_double): Move prototypes ...
27990 * double-int.h: ... here.
27992 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
27995 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
27996 matching constraints to ensure inputs match the output.
27998 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
28001 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
28002 in an input-only operand.
28004 2010-04-15 Anatoly Sokolov <aesok@post.ru>
28006 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
28007 (double_int_not, double_int_lshift, double_int_rshift): Declare.
28008 (double_int_negative_p): Convert to static inline function.
28009 * double-int.c (double_int_lshift, double_int_lshift): New functions.
28010 (double_int_negative_p): Remove.
28011 * tree.h (lshift_double, rshift_double):
28012 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
28013 * fold-const.c (fold_convert_const_int_from_real,
28014 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
28015 (lshift_double): Change type of arith argument to bool.
28016 (rshift_double): Change type of arith argument to bool. Correct
28018 * expmed.c (mask_rtx, lshift_value): (Ditto.).
28020 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
28023 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
28024 at the start and end of the then/else blocks, and omit them from the
28026 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
28027 argument; all callers changed. Pass zero to old_insns_match_p instead.
28028 (flow_find_head_matching_sequence): New function.
28029 (old_insns_match_p): Check REG_EH_REGION notes for calls.
28030 * basic-block.h (flow_find_cross_jump,
28031 flow_find_head_matching_sequence): Declare functions.
28033 2010-04-14 Jason Merrill <jason@redhat.com>
28036 * c-common.c (attribute_takes_identifier_p): New fn.
28037 * c-common.h: Declare it.
28039 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
28041 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
28042 splitter condition.
28043 (*udivmod<mode>4): Ditto.
28045 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
28047 * config/i386/i386.md (maxmin_int): Rename code attribute from
28048 maxminiprefix and update all users.
28049 (maxmin_float): Ditto from maxminfprefix.
28050 (logic): Ditto from logicprefix.
28051 (absneg_mnemonic): Ditto from absnegprefix.
28052 * config/i386/mmx.md: Update all users of maxminiprefix,
28053 maxminfprefix and logicprefix for rename.
28054 * config/i386/sse.md: Ditto.
28055 * config/i386/sync.md (sync_<code><mode>): Update for
28056 logicprefix rename.
28058 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
28061 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
28062 warnings converted to errors.
28064 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
28066 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
28067 used insn_type variable.
28068 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
28069 to avoid set-but-not-used warning.
28071 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
28073 * df-core.c (df_ref_debug): Change format string placeholder
28075 * dwarf2asm.c (dw2_asm_output_data_raw,
28076 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
28077 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
28078 * dwarf2out.c (output_cfi, output_cfi_directive,
28079 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
28080 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
28082 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
28083 * print-rtl.c (print_rtx): Ditto.
28085 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
28087 PR middle-end/42694
28088 * builtins.c (expand_builtin_pow_root): New function to expand pow
28089 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
28090 series of sqrt and cbrt calls under -ffast-math.
28091 (expand_builtin_pow): Call it.
28093 2010-04-14 Michael Matz <matz@suse.de>
28095 PR tree-optimization/42963
28096 * tree-cfg.c (touched_switch_bbs): New static variable.
28097 (group_case_labels_stmt): New function broken out from ...
28098 (group_case_labels): ... here, use the above.
28099 (start_recording_case_labels): Allocate touched_switch_bbs.
28100 (end_recording_case_labels): Deallocate it, call
28101 group_case_labels_stmt.
28102 (gimple_redirect_edge_and_branch): Remember index of affected BB.
28104 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
28106 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
28107 from insn template.
28109 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
28111 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
28113 2010-04-13 Jan Hubicka <jh@suse.cz>
28115 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
28116 of optimized out static functions.
28117 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
28118 cost computation. Also sanity check for overflows.
28119 (update_caller_keys): Update cgraph_edge_badness call; properly
28120 update fibheap and sanity check that it is up to date.
28121 (add_new_edges_to_heap): Update cgraph_edge_badness.
28122 (cgraph_decide_inlining_of_small_function): Likewise;
28123 add sanity checking that badness in heap is up to date;
28124 improve dumping of reason; Update badness of calls to the
28125 offline copy of function currently inlined; dump badness
28126 of functions not inlined because of unit growth limits.
28128 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
28130 PR middle-end/32628
28131 * c-common.c (pointer_int_sum): Disregard overflow that occured only
28132 because of sign-extension change when converting to sizetype here...
28133 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
28135 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
28136 the folding to constants. Remove redundant final conversion.
28137 (fold_binary) <associate>: Do not associate if the re-association of
28138 constants alone overflows.
28139 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
28140 to the end of the list.
28141 (multiple_of_p) <COND_EXPR>: New case.
28143 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
28145 * opt-functions.awk (opt_sanitized_name): New.
28147 * optc-gen.awk: Use it
28148 * opth-gen.awk: Use it.
28150 2010-04-13 Martin Jambor <mjambor@suse.cz>
28152 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
28153 (sra_modify_assign): Delete stmts loading dead data even if racc has no
28154 children. Call replace_uses_with_default_def_ssa_name to handle
28157 2010-04-13 Michael Matz <matz@suse.de>
28159 PR middle-end/43730
28160 * builtins.c (expand_builtin_interclass_mathfn): Also create
28161 a register if the predicate doesn't match.
28163 2010-04-13 Diego Novillo <dnovillo@google.com>
28165 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
28166 * c-pch.c: Include timevar.h.
28167 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
28168 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
28169 * ggc-common.c: Include timevar.h.
28170 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
28171 * timevar.def (TV_PCH_SAVE): Define.
28172 (TV_PCH_CPP_SAVE): Define.
28173 (TV_PCH_PTR_REALLOC): Define.
28174 (TV_PCH_PTR_SORT): Define.
28175 (TV_PCH_RESTORE): Define.
28176 (TV_PCH_CPP_RESTORE): Define.
28178 2010-04-13 Michael Matz <matz@suse.de>
28180 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
28182 (can_reassociate_p): New function.
28183 (break_up_subtract_bb, reassociate_bb): Use it.
28185 2010-04-13 Richard Guenther <rguenther@suse.de>
28188 * builtins.c (c_readstr): Fix assert.
28190 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
28192 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
28193 when generating cltd insn.
28195 (*ashl<mode>3_1): Remove special handling for register operand 2.
28196 (*ashlsi3_1_zext): Ditto.
28197 (*ashlhi3_1): Ditto.
28198 (*ashlhi3_1_lea): Ditto.
28199 (*ashlqi3_1): Ditto.
28200 (*ashlqi3_1_lea): Ditto.
28201 (*<shiftrt_insn><mode>3_1): Ditto.
28202 (*<shiftrt_insn>si3_1_zext): Ditto.
28203 (*<shiftrt_insn>qi3_1_slp): Ditto.
28204 (*<rotate_insn><mode>3_1): Ditto.
28205 (*<rotate_insn>si3_1_zext): Ditto.
28206 (*<rotate_insn>qi3_1_slp): Ditto.
28208 2010-04-13 Richard Guenther <rguenther@suse.de>
28210 * tree-ssa-structalias.c (callused_id): Remove.
28211 (call_stmt_vars): New.
28212 (get_call_vi): Likewise.
28213 (lookup_call_use_vi): Likewise.
28214 (lookup_call_clobber_vi): Likewise.
28215 (get_call_use_vi): Likewise.
28216 (get_call_clobber_vi): Likewise.
28217 (make_transitive_closure_constraints): Likewise.
28218 (handle_const_call): Adjust to do per-call call-used handling.
28219 (handle_pure_call): Likewise.
28220 (find_what_var_points_to): Remove general callused handling.
28221 (init_base_vars): Likewise.
28222 (init_alias_vars): Initialize call_stmt_vars.
28223 (compute_points_to_sets): Process call-used and call-clobbered
28224 vars for call statements.
28225 (delete_points_to_sets): Free call_stmt_vars.
28227 2010-04-13 Richard Guenther <rguenther@suse.de>
28229 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28230 Only add RW dependence for dependence distance zero.
28231 Adjust maximal vectorization factor according to dependences.
28232 Move alignment handling ...
28233 (vect_find_same_alignment_drs): ... here. New function.
28234 (vect_analyze_data_ref_dependences): Adjust.
28235 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
28236 (vect_analyze_data_refs): Adjust minimal vectorization factor
28237 according to data references.
28238 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
28239 dependences before determining the vectorization factor.
28240 Analyze alignment after determining the vectorization factor.
28241 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
28242 dependences before alignment.
28243 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
28245 (vect_analyze_data_refs): Likewise.
28246 (MAX_VECTORIZATION_FACTOR): New define.
28248 2010-04-13 Duncan Sands <baldrick@free.fr>
28250 * except.h (lang_eh_type_covers): Remove.
28251 * except.c (lang_eh_type_covers): Likewise.
28253 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28254 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28256 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
28257 * config/s390/s390.c: Replace UNTIS_PER_WORD with
28258 UNITS_PER_LONG where it is ABI relevant.
28259 (s390_return_addr_rtx): Likewise.
28260 (s390_back_chain_rtx): Likewise.
28261 (s390_frame_area): Likewise.
28262 (s390_frame_info): Likewise.
28263 (s390_initial_elimination_offset): Likewise.
28264 (save_gprs): Likewise.
28265 (s390_emit_prologue): Likewise.
28266 (s390_emit_epilogue): Likewise.
28267 (s390_function_arg_advance): Likewise.
28268 (s390_function_arg): Likewise.
28269 (s390_va_start): Likewise.
28270 (s390_gimplify_va_arg): Likewise.
28271 (s390_function_profiler): Likewise.
28272 (s390_optimize_prologue): Likewise.
28273 (s390_rtx_costs): Likewise.
28274 (s390_secondary_reload): Likewise.
28275 (s390_promote_function_mode): Likewise.
28276 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
28277 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
28278 registers available.
28279 (s390_unwind_word_mode): New function.
28280 (s390_function_value): Split 64 bit values into register pair if
28281 used as return value.
28282 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
28283 function call parameters. Handle parallels.
28284 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
28285 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
28286 (DWARF_CIE_DATA_ALIGNMENT): New macro.
28287 (s390_expand_setmem): Remove unused variable src_addr.
28288 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
28289 deal with 64 bit registers.
28290 * config/s390/s390.h: Define __zarch__ predefined macro.
28291 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
28292 (UNITS_PER_LONG): New macro.
28293 * libjava/include/s390-signal.h: Define extended ucontext
28294 structure containing the upper halfs of the 64 bit registers.
28296 2010-04-13 Simon Baldwin <simonb@google.com>
28298 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
28300 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
28302 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
28303 rvalue on the RHS if the LHS is of a non-renamable type.
28304 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
28306 2010-04-13 Matthias Klose <doko@ubuntu.com>
28308 * gcc.c (cc1_options): Handle -iplugindir before processing
28309 the cc1 spec. Only add -iplugindir once.
28310 (cpp_unique_options): Add -iplugindir option if -fplugin* options
28312 * common.opt (iplugindir): Remove `Separate' property, initialize.
28313 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
28315 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
28316 (distclean): Remove plugin dir.
28317 * doc/invoke.texi: Document -iplugindir.
28319 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
28321 * doc/plugins.texi (Loading Plugins): Document short
28322 -fplugin=foo option.
28323 (Plugin API): Mention default_plugin_dir_name function.
28325 * gcc.c (find_file_spec_function): Add new declaration.
28326 (static_spec_func): Use it for "find-file".
28327 (find_file_spec_function): Add new function.
28328 (cc1_options): Add -iplugindir option if -fplugin* options found.
28330 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
28332 * plugin.c (add_new_plugin): Updated comment, and handle short
28334 (default_plugin_dir_name): Added new function.
28336 * common.opt (iplugindir): New option to set the plugin directory.
28338 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
28340 * config/i386/i386.md (any_rotate): New code iterator.
28341 (rotate_insn): New code attribute.
28343 (SWIM124): New mode iterator.
28344 (<rotate_insn>ti3): New expander.
28345 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
28346 any_rotate code iterator.
28347 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
28348 using any_rotate code iterator and SWIM124 mode iterator.
28349 (ix86_rotlti3): New insn_and_split pattern.
28350 (ix86_rotrti3): Ditto.
28351 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
28352 ix86_rotl{di,ti}3 patterns.
28353 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
28354 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
28355 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
28356 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
28357 code iterator and SWI mode iterator.
28358 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
28359 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
28361 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
28362 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
28363 (bswap rotatert splitter): Add splitter.
28364 (bswap splitter): Macroize splitter using any_rotate code iterator.
28365 Add insn predicate to split only for TARGET_USE_XCHGB or when
28366 optimizing function for size.
28368 2010-04-12 Steve Ellcey <sje@cup.hp.com>
28370 * config/pa/pa.c (emit_move_sequence): Remove use of
28371 deleted variable flag_argument_noalias.
28373 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28375 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
28377 Add to unsupported targets list.
28378 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
28379 sparc*-sun-solaris2.[567]* from target lists.
28380 * configure: Regenerate.
28381 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
28383 Remove Solaris 7 patch references.
28384 (Specific, sparc-sun-solaris2.7): Removed.
28385 (sparc-sun-solaris2*): Update Solaris 7 example.
28386 (sparc64-*-solaris2*): Likewise.
28388 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28390 * config.build (alpha*-dec-osf4*): Remove.
28391 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
28392 of obsolete configurations.
28393 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
28395 * config/alpha/t-osf4: Renamed to ...
28396 * config/alpha/t-osf5: ... this.
28397 * config/alpha/osf.h: Renamed to ...
28398 * config/alpha/osf5.h: ... this.
28399 Merged old osf5.h contents.
28401 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
28402 (EXTRA_SPECS): Removed.
28403 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
28404 reflect removal of Tru64 UNIX V4.0/V5.0 support.
28407 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28409 * doc/contrib.texi (Contributors, Rainer Orth): Update.
28411 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
28414 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
28415 __thiscall convention.
28417 2010-04-12 Steve Ellcey <sje@cup.hp.com>
28419 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
28421 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
28423 2010-04-12 Steve Ellcey <sje@cup.hp.com>
28425 * function.c (assign_parms_initialize_all): Add unused attribute
28428 2010-04-12 Richard Guenther <rguenther@suse.de>
28430 * gsstruct.def (GSS_CALL): New.
28431 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
28432 * gimple.h: Include tree-ssa-alias.h.
28433 (struct gimple_statement_call): New.
28434 (union gimple_statement_struct_d): Add gimple_call member.
28435 (gimple_call_reset_alias_info): Declare.
28436 (gimple_call_use_set): New function.
28437 (gimple_call_clobber_set): Likewise.
28438 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
28439 * gimple.c (gimple_call_reset_alias_info): New function.
28440 (gimple_build_call_1): Call it.
28441 * lto-streamer-in.c (input_gimple_stmt): Likewise.
28442 * tree-inline.c (remap_gimple_stmt): Likewise.
28443 (expand_call_inline): Remove callused handling.
28444 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
28445 * tree-dfa.c (dump_variable): Likewise.
28446 * tree-parloops.c (parallelize_loops): Likewise.
28447 * tree-ssa.c (init_tree_ssa): Likewise.
28448 (delete_tree_ssa): Likewise.
28449 * tree-flow-inline.h (is_call_used): Remove.
28450 * tree-flow.h (struct gimple_df): Remove callused member.
28451 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
28452 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
28453 (ref_maybe_used_by_call_p_1): Simplify.
28454 (call_may_clobber_ref_p_1): Likewise.
28455 * tree-ssa-structalias.c (compute_points_to_sets): Set
28456 the call stmt used and clobbered sets.
28457 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
28458 (find_tail_calls): Verify the tail call.
28460 2010-04-12 Richard Guenther <rguenther@suse.de>
28462 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
28463 single-iteration always-inline inlining.
28464 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
28465 (cgraph_decide_inlining): Do not handle always-inline specially.
28466 (try_inline): Remove always-inline cycle detection special case.
28467 Do not recurse on always-inlines.
28468 (cgraph_early_inlining): Do not iterate if not optimizing.
28469 (cgraph_gate_early_inlining): remove.
28470 (pass_early_inline): Run unconditionally.
28471 (gate_cgraph_decide_inlining): New function.
28472 (pass_ipa_inline): Use it. Do not run the IPA inliner if
28473 not inlining or optimizing.
28474 (cgraph_decide_inlining_of_small_functions): Also consider
28475 always-inline functions.
28476 (cgraph_default_inline_p): Return true for nodes which should
28477 disregard inline limits.
28478 (estimate_function_body_sizes): Assume zero size and time for
28479 nodes which are marked as disregarding inline limits.
28480 (cgraph_decide_recursive_inlining): Do not perform recursive
28481 inlining on always-inline nodes.
28483 2010-04-12 Jakub Jelinek <jakub@redhat.com>
28486 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
28487 for exprs satisfying handled_component_p.
28489 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
28491 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
28492 non-constant aggregate elements.
28494 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
28495 is a real initialization.
28497 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
28500 * c-decl.c (start_function): Move forward check for nested function.
28502 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
28504 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
28505 * config/sh/sh.c: Include reload.h.
28506 (sh_legitimize_reload_address): New.
28507 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
28508 sh_legitimize_reload_address.
28510 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
28512 * config/sh/sh.md (*movqi_pop): New insn pattern.
28513 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
28515 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
28517 * config/i386/i386.md (any_shiftrt): New code iterator.
28518 (shiftrt_insn): New code attribute.
28520 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
28521 using any_shiftrt code iterator.
28522 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
28523 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
28524 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
28525 pattern from corresponding peephole2 patterns.
28526 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
28527 using any_shiftrt code iterator.
28528 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
28529 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
28530 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
28531 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
28532 *{ashr,lshr}<mode>3_cmp_zext.
28533 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
28535 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
28537 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
28539 (*lshr<mode>3_cconly): Ditto.
28541 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
28543 * config/i386/i386.md (lshr<mode>3): Macroize expander from
28544 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
28545 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
28546 pattern from *lshr{di,ti}3_1 and corresponding splitters using
28548 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
28549 from corresponding peephole2 patterns.
28550 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
28551 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
28552 and *lshrdi3_1_rex64 using SWI mode iterator.
28553 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
28554 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
28555 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
28556 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
28557 and *lshrdi3_cmp_rex64 using SWI mode iterator.
28558 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
28559 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
28560 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
28561 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
28564 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
28566 * config/i386/i386.md (ashr<mode>3): Macroize expander from
28567 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
28568 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
28569 pattern from *ashr{di,ti}3_1 and corresponding splitters using
28571 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
28572 from corresponding peephole2 patterns.
28573 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
28574 (ashrsi3_cvt): Rename from ashrsi3_31.
28575 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
28576 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
28577 and x86_64_shift_adj_3 using SWI48 mode iterator.
28578 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
28579 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
28580 and *ashrdi3_1_rex64 using SWI mode iterator.
28581 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
28582 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
28583 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
28584 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
28585 and *ashrdi3_cmp_rex64 using SWI mode iterator.
28586 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
28587 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
28588 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
28589 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
28591 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
28592 * config/i386/i386.c (ix86_split_ashr): Update for renamed
28593 x86_shift<mode>_adj_3 expanders.
28595 2010-04-10 Wei Guozhi <carrot@google.com>
28598 * config/arm/arm.c (arm_pic_static_addr): New function.
28599 (legitimize_pic_address): Call arm_pic_static_addr when it detects
28601 (arm_output_addr_const_extra): Output expression for new pattern.
28602 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
28604 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
28606 * ira-costs.c (record_reg_classes): Ignore alternatives that are
28609 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
28610 * web.c: Include "insn-config.h" and "recog.h".
28611 (union_match_dups): New function.
28612 (web_main): Call it.
28613 (union_defs): Don't try to recognize match_dups.
28615 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
28616 if doing so would replace the entire pattern.
28618 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
28622 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
28623 and splitter pattern. Change splitter operand 1 predicate to
28626 2010-04-09 Martin Jambor <mjambor@suse.cz>
28628 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
28629 lattices are addresses of CONST_DECLs with the same initial value.
28630 (ipcp_print_all_lattices): Print values of CONST_DECLs.
28631 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
28633 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
28634 Bernd Schmidt <bernds@codesourcery.com>
28636 * loop-invariant.c (replace_uses): New static function.
28637 (move_invariant_reg): Use it to ensure we can replace the uses.
28639 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
28641 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
28643 (picochip_override_options): Enable section anchors only above -O1.
28644 (picochip_reorg): Fixed a couple of build warnings.
28646 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28648 * configure.ac (plugin -rdynamic test): Log result.
28649 * configure: Regenerate.
28650 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
28651 (RDYNAMIC_SPEC): Define.
28652 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
28654 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28656 * configure.ac: Determine Sun ld version numbers.
28657 (comdat_group): Restrict GNU ld version checks to gld.
28658 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
28659 (enable_comdat): Support --enable-comdat.
28660 * configure: Regenerate.
28661 * doc/install.texi (Configuration): Document --enable-comdat.
28663 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28665 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
28666 * config/sol2-gld.h: ... here.
28667 * config.gcc (sparc*-*-solaris2*): Reflect this.
28668 (i[34567]86-*-solaris2*): Use it.
28670 2010-04-09 Steve Ellcey <sje@cup.hp.com>
28672 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
28674 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
28676 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
28679 * diagnostic.c (diagnostic_initialize): Initialize
28680 some_warnings_are_errors.
28681 (diagnostic_finish): New.
28682 (diagnostic_action_after_output): Call it before exiting.
28683 (diagnostic_report_diagnostic): Do not print message here. Set
28684 some_warnings_are_errors.
28685 * diagnostic.h (diagnostic_context): Delete
28686 issue_warnings_are_errors_message. Add some_warnings_are_errors.
28687 (diagnostic_finish): Declare.
28688 * toplev.c (toplev_main): Call it before exit.
28690 2010-04-09 Jason Merrill <jason@redhat.com>
28693 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
28694 for incomplete type.
28697 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
28698 based on a warning flag.
28700 2010-04-09 Richard Guenther <rguenther@suse.de>
28702 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
28704 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
28707 * varasm.c (default_assemble_visibility): Wrap vars that are
28708 set, but unused, by targets without GAS.
28709 * config/rs6000/rs6000.c (paired_emit_vector_compare):
28710 Remove set, but unused, vars.
28711 (rs6000_legitimize_tls_address): Likewise.
28712 (altivec_expand_dst_builtin): Likewise.
28713 * config/darwin.c (machopic_classify_symbol): Likewise.
28714 (machopic_indirection_name): Likewise.
28716 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
28718 * config/i386/i386.md (DWI): New mode iterator.
28719 (S): New mode attribute.
28720 (shift_operand): Ditto.
28721 (shift_immediate_operand): Ditto.
28722 (ashl_input_operand): Ditto.
28723 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
28724 using SDWIM mode iterator.
28725 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
28726 pattern from *ashl{di,ti}3_1 and corresponding splitters using
28728 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
28729 from corresponding peephole2 patterns.
28730 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
28731 and x86_64_shift_adj_1 using SWI48 mode iterator.
28732 (x86_shift<mode>_adj_2): Ditto.
28733 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
28734 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
28735 using SWI48 mode iterator.
28736 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
28737 *ashldi3_cmp_rex64 using SWI mode iterator.
28738 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
28739 *ashldi3_cconly_rex64 using SWI mode iterator.
28740 * config/i386/i386.c (ix86_split_ashl): Update for renamed
28741 x86_shift<mode>_adj_{1,2}.
28742 (ix86_split_ashr): Ditto.
28743 (ix86_split_lshr): Ditto.
28745 2010-04-09 Richard Guenther <rguenther@suse.de>
28747 * target.h (builtin_conversion): Pass in input and output types.
28748 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
28749 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
28750 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
28751 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
28753 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
28755 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
28757 2010-04-09 Richard Guenther <rguenther@suse.de>
28760 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
28762 2010-04-09 Richard Guenther <rguenther@suse.de>
28764 * tree-vectorizer.h (struct _stmt_vec_info): Document
28765 that vectype is the type of the LHS.
28766 (supportable_widening_operation, supportable_narrowing_operation):
28767 Get both input and output vector types as arguments.
28768 (vect_is_simple_use_1): Declare.
28769 (get_same_sized_vectype): Likewise.
28770 * tree-vect-loop.c (vect_determine_vectorization_factor):
28771 Set STMT_VINFO_VECTYPE to the vector type of the def.
28772 (vectorizable_reduction): Adjust.
28773 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
28774 Adjust. Specify the output vector type.
28775 (vect_pattern_recog_1): Adjust.
28776 * tree-vect-stmts.c (get_same_sized_vectype): New function.
28777 (vectorizable_call): Adjust.
28778 (vectorizable_conversion): Likewise.
28779 (vectorizable_operation): Likewise.
28780 (vectorizable_type_demotion): Likewise.
28781 (vectorizable_type_promotion): Likewise.
28782 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
28784 (vect_is_simple_use_1): New function.
28785 (supportable_widening_operation): Get both input and output
28787 (supportable_narrowing_operation): Likewise.
28788 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
28790 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
28792 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
28793 __thiscall and _thiscall as predefined macros.
28794 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
28795 thiscall attribute handling.
28796 (ix86_comp_type_attributes): Likewise.
28797 (ix86_function_regparm): Likewise.
28798 (ix86_return_pops_args): Likewise.
28799 (init_cumulative_args): Likewise.
28800 (find_drap_reg): Likewise.
28801 (ix86_static_chain): Likewise.
28802 (x86_this_parameter): Likewise.
28803 (x86_output_mi_thunk): Likewise.
28804 (ix86_attribute_table): Add description for thiscall attribute.
28805 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
28806 * doc/extend.texi: Add documentation for thiscall.
28808 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
28811 * c.opt (Wint-to-pointer-cast): Available in C++.
28812 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
28814 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
28816 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
28817 * calls.c (expand_call): Pass the function type to aggregate_value_p.
28818 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
28819 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
28820 function type instead. Reorder and simplify checks.
28822 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
28824 2010-04-08 Jing Yu <jingyu@google.com>
28825 Zdenek Dvorak <ook@ucw.cz>
28827 PR tree-optimization/42720
28828 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
28829 loop unswitch conditions here from ...
28830 (tree_unswitch_single_loop): ... here.
28832 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
28834 * tree-if-conv.c: Fix comments and simplify logic.
28836 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
28838 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
28839 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
28840 (main_tree_if_conversion): Update call to tree_if_conversion.
28842 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
28845 * doc/invoke.texi (-b,-V): Delete.
28846 * doc/tm.texi: Do not mention -b.
28847 * gcc.c (display_help): Delete -b and -V.
28848 (process_command): Delete -b and -V.
28849 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
28851 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
28852 Wolfgang Gellerich <gellerich@de.ibm.com>
28854 Implement target hook for loop unrolling
28855 * target.h (loop_unroll_adjust): Add a new target hook function.
28856 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
28857 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
28858 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
28859 (s390_loop_unroll_adjust): Implement the new target hook for s390.
28860 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
28862 (decide_unroll_stupid): Likewise.
28864 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28867 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
28869 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28871 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
28872 (Specific, *-*-solaris2*): Likewise.
28873 Don't prefer Sun as over GNU as.
28875 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
28877 * config/s390/s390.c (override_options): Adjust the z10 defaults
28878 for max-unroll-times, max-completely-peeled-insns
28879 and max-completely-peel-times.
28881 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28883 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
28884 instructions for z10.
28885 (s390_expand_setmem): Likewise.
28886 (s390_expand_cmpmem): Likewise.
28888 2010-04-08 Richard Guenther <rguenther@suse.de>
28890 PR tree-optimization/43679
28891 * tree-ssa-pre.c (eliminate): Only propagate copies.
28893 2010-04-08 Jakub Jelinek <jakub@redhat.com>
28896 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
28897 set but not used variable warning.
28899 2010-04-08 Wei Guozhi <carrot@google.com>
28902 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
28903 (arm_size_rtx_costs): Call the new function when optimized for size.
28905 2010-04-08 Jakub Jelinek <jakub@redhat.com>
28908 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
28909 op0 is not a MEM, just return NULL instead of assertion
28911 (discover_nonconstant_array_refs): Don't walk debug stmts.
28913 2010-04-08 Doug Kwan <dougkwan@google.com>
28915 * configure.ac: Recognize gold and do not use its version number
28916 to test ld features.
28917 * configure: Regenerate.
28919 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
28921 PR middle-end/40815
28922 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
28923 (negate_value): Move code to push elements to broken_up_substracts ...
28924 (eliminate_plus_minus_pair): ... here. Push operands that have no
28925 negative pair to plus_negates.
28926 (repropagate_negates, init_reassoc, fini_reassoc): Update.
28928 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28930 * doc/install.texi (Configuration): Move description of
28931 --enable-lto, --with-libelf*, --enable-gold from Java section to
28934 * doc/generic.texi (Working with declarations)
28935 (Function Properties, C and C++ Trees): Fix typos.
28936 * doc/sourcebuild.texi (Top Level): Likewise.
28938 2010-04-07 Jakub Jelinek <jakub@redhat.com>
28941 * tree.h (DECL_READ_P): Define.
28942 (struct tree_decl_common): Add decl_read_flag.
28943 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
28944 a set but not used warning.
28945 (merge_decls): Merge DECL_READ_P flag.
28946 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
28947 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
28948 * c-common.c (handle_used_attribute, handle_unused_attribute):
28950 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
28952 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
28954 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
28955 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
28956 c_parser_binary_expression, c_parser_cast_expression,
28957 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
28958 Call default_function_array_read_conversion instead of
28959 default_function_array_conversion where needed.
28960 (c_parser_unary_expression, c_parser_conditional_expression,
28961 c_parser_postfix_expression_after_primary, c_parser_initelt):
28962 Likewise. Call mark_exp_read where needed.
28963 (c_parser_statement_after_labels, c_parser_asm_operands,
28964 c_parser_typeof_specifier, c_parser_sizeof_expression,
28965 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
28967 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
28969 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
28970 (warn_unused_but_set_parameter): Default to warn_unused
28972 * doc/invoke.texi: Document -Wunused-but-set-variable and
28973 -Wunused-but-set-parameter.
28975 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
28976 used count variable.
28977 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
28978 when operandN variables aren't used in the body of the expander
28980 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
28981 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
28982 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
28983 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
28984 FOR_EACH_IMM_USE_ON_STMT): Likewise.
28985 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
28986 * tree.c (PROCESS_ARG): Likewise.
28988 2010-04-07 Simon Baldwin <simonb@google.com>
28990 * diagnostic.h (diagnostic_override_option_index): New macro to
28991 set a diagnostic's option_index.
28992 * c-tree.h (c_cpp_error): Add warning reason argument.
28993 * opts.c (_warning_as_error_callback): New.
28994 (register_warning_as_error_callback): Store callback for
28995 warnings enabled via enable_warning_as_error.
28996 (enable_warning_as_error): Call callback, minor code tidy.
28997 * opts.h (register_warning_as_error_callback): Declare.
28998 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
28999 response to -Werror=.
29000 (c_common_init_options): Register warning_as_error_callback in opts.c.
29001 * common.opt: Add -Wno-cpp option.
29002 * c-common.c (struct reason_option_codes_t): Map cpp warning
29003 reason codes to gcc option indexes.
29004 * (c_option_controlling_cpp_error): New function, lookup the gcc
29005 option index for a cpp warning reason code.
29006 * (c_cpp_error): Add warning reason argument, call
29007 c_option_controlling_cpp_error for diagnostic_override_option_index.
29008 * doc/invoke.texi: Document -Wno-cpp.
29010 2010-04-07 Richard Guenther <rguenther@suse.de>
29012 * ipa-reference.c (mark_load): Use get_base_address.
29013 (mark_store): Likewise.
29015 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
29016 inserting GIMPLE_NOPs into the IL.
29017 * tree-ssa-structalias.c (get_constraint_for_component_ref):
29018 Explicitly strip handled components and indirect references.
29020 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
29021 folding address expressions.
29022 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
29023 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
29024 operand_equal_p to compare decls.
29025 (ptr_deref_may_alias_decl_p): Likewise.
29026 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
29027 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
29028 Handle reversed comparison ops.
29029 * tree-sra.c (asm_visit_addr): Use get_base_address.
29030 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
29031 * ipa-reference.c (mark_address): Use get_base_address.
29033 2010-04-07 Richard Guenther <rguenther@suse.de>
29035 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
29036 Propagate constants everywhere.
29038 2010-04-07 Jakub Jelinek <jakub@redhat.com>
29041 * tree.c (MAX_INT_CACHED_PREC): Define.
29042 (nonstandard_integer_type_cache): New array.
29043 (build_nonstandard_integer_type): Cache results for precision
29044 <= MAX_INT_CACHED_PREC.
29046 2010-04-07 Richard Guenther <rguenther@suse.de>
29048 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
29049 -fargument-noalias-global, -fargument-noalias-anything): Remove.
29050 * common.opt: Likewise.
29051 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
29052 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
29053 (nonoverlapping_memrefs_p): Likewise.
29054 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
29055 * opts.c (common_handle_option): Handle OPT_fargument_alias,
29056 OPT_fargument_noalias, OPT_fargument_noalias_anything and
29057 OPT_fargument_noalias_global for backward compatibility.
29059 2010-04-07 Richard Guenther <rguenther@suse.de>
29061 PR tree-optimization/43270
29062 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
29063 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
29064 * tree-ssa-pre.c (phi_translate_1): Adjust.
29065 (fully_constant_expression): Split out vn_reference handling to ...
29066 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
29067 Fold reads from constant strings.
29068 (vn_reference_lookup): Handle fully constant references.
29069 (vn_reference_lookup_pieces): Likewise.
29070 * Makefile.in (expmed.o-warn): Add -Wno-error.
29072 2010-04-07 Martin Jambor <mjambor@suse.cz>
29074 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
29076 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
29079 * gcc.c: Add -static-libstdc++ to list of recognized options.
29081 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29083 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
29085 2010-04-07 Richard Guenther <rguenther@suse.de>
29087 PR middle-end/42617
29088 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
29089 bases build simple mem attributes to retain points-to information.
29091 2010-04-07 Richard Guenther <rguenther@suse.de>
29093 PR middle-end/42617
29094 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
29095 preserve points-to related information.
29097 2010-04-07 Richard Guenther <rguenther@suse.de>
29099 PR middle-end/42617
29100 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
29101 discard plain indirect references.
29102 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
29103 * tree.c (tree_nop_conversion): Likewise.
29105 2010-04-07 Dodji Seketeli <dodji@redhat.com>
29108 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
29110 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
29112 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
29113 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
29115 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
29117 * tree-if-conv.c: Fix indentation and comments.
29119 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
29121 * tree-if-conv.c: Sort static functions in topological order.
29123 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
29125 * tree-if-conv.c: Fix indentation and comments.
29127 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
29129 PR middle-end/43519
29130 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
29131 lang_hooks.types.type_for_size instead of
29132 build_nonstandard_integer_type.
29133 When converting an unsigned type to signed, double its precision.
29134 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
29135 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
29136 (graphite_create_new_loop_guard): When ub + 1 wraps around,
29139 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
29141 PR middle-end/43519
29142 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
29143 POINTER_PLUS_EXPR for pointer types.
29145 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
29147 PR middle-end/43519
29148 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
29149 * graphite-clast-to-gimple.c: Include langhooks.h.
29150 (max_signed_precision_type): New.
29151 (max_precision_type): Takes two types as arguments.
29152 (precision_for_value): New.
29153 (precision_for_interval): New.
29154 (gcc_type_for_interval): New.
29155 (gcc_type_for_value): New.
29156 (gcc_type_for_clast_term): New.
29157 (gcc_type_for_clast_red): New.
29158 (gcc_type_for_clast_bin): New.
29159 (gcc_type_for_clast_expr): Split up into several functions.
29160 (gcc_type_for_clast_eq): Rewritten.
29161 (compute_bounds_for_level): New.
29162 (compute_type_for_level_1): New.
29163 (compute_type_for_level): New.
29164 (gcc_type_for_cloog_iv): Removed.
29165 (gcc_type_for_iv_of_clast_loop): Rewritten.
29166 (graphite_create_new_loop): Compute the lower and upper bound types
29167 with gcc_type_for_clast_expr.
29168 (graphite_create_new_loop_guard): Same.
29169 (find_cloog_iv_in_expr): Removed.
29170 (compute_cloog_iv_types_1): Removed.
29171 (compute_cloog_iv_types): Removed.
29172 (gloog): Do not call compute_cloog_iv_types.
29173 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
29174 GBB_CLOOG_IV_TYPES.
29175 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
29176 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
29177 (GBB_CLOOG_IV_TYPES): Removed.
29179 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
29181 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
29182 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
29183 (detect_commutative_reduction): Same.
29185 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
29187 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
29188 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
29190 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
29191 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
29192 (rewrite_commutative_reductions_out_of_ssa): Same.
29193 * passes.c (execute_function_todo): Call verify_ssa for every pass
29194 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
29195 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
29196 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
29197 with an extra argument.
29198 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
29199 verify_ssa only when the extra argument is true.
29200 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
29201 with an extra argument.
29202 (tree_transform_and_unroll_loop): Same.
29204 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
29206 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
29207 for all the passes of the LNO having LOOP_CLOSED_SSA.
29208 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
29209 * tree-loop-distribution.c (pass_loop_distribution): Same.
29210 * tree-pass.h (TODO_verify_loops): Removed.
29211 * tree-ssa-loop.c (pass_tree_loop_init): Same.
29213 (pass_tree_unswitch): Same.
29214 (pass_predcom): Same.
29215 (pass_vectorize): Same.
29216 (pass_linear_transform): Same.
29217 (pass_graphite_transforms): Same.
29218 (pass_iv_canon): Same.
29219 (pass_complete_unroll): Same.
29220 (pass_complete_unrolli): Same.
29221 (pass_parallelize_loops): Same.
29222 (pass_loop_prefetch): Same.
29223 (pass_iv_optimize): Same.
29225 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
29227 PR middle-end/32824
29228 * passes.c (init_optimization_passes): Move pass_lim before
29229 pass_copy_prop and pass_dce_loop.
29231 2010-04-06 Jakub Jelinek <jakub@redhat.com>
29234 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
29235 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
29236 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
29237 MULTI_* defines for 4 argument vpermil2p* builtins.
29239 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
29241 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
29242 * config/i386/i386.c (x86_maybe_negate_const_int): New.
29243 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
29244 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
29245 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
29246 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
29247 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
29248 Use x86_maybe_negate_const_int to output insn mnemonic.
29249 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
29250 check from instruction predicate. Update comments.
29251 * config/i386/sync.md (sync_add<mode>): Use
29252 x86_maybe_negate_const_int to output insn mnemonic.
29254 2010-04-06 Jan Hubicka <jh@suse.cz>
29256 PR tree-optimization/42906
29257 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
29258 IGNORE_SELF argument. Set visited_control_parents for fully
29260 (find_obviously_necessary_stmts): Update call of
29261 mark_control_dependent_edges_necessary.
29262 (propagate_necessity): Likewise. Handle PHI edges more curefully.
29264 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
29266 * config/i386/i386.md: Remove comment about 'e' and 'E'
29269 2010-04-06 Richard Guenther <rguenther@suse.de>
29271 PR tree-optimization/43627
29272 * tree-vrp.c (extract_range_from_unary_expr): Widenings
29273 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
29276 2010-04-06 Jakub Jelinek <jakub@redhat.com>
29278 * BASE-VER: Change to 4.6.0.
29281 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
29284 2010-04-06 Richard Guenther <rguenther@suse.de>
29286 PR middle-end/43661
29287 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
29289 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29291 * doc/invoke.texi (Optimize Options): Document that LTO
29292 won't remove object access purely due to incompatible
29295 2010-04-04 Matthias Klose <doko@ubuntu.com>
29297 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
29298 Initialize variable.
29300 2010-04-03 Richard Guenther <rguenther@suse.de>
29302 PR middle-end/42509
29303 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
29304 require a non-NULL MEM_OFFSET.
29306 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
29308 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
29309 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
29310 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
29311 config/alpha/predicates.md, config/arm/arm.md,
29312 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
29313 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
29314 config/darwin9.h, config/darwin.c, config/darwin.h,
29315 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
29316 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
29317 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
29318 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
29319 config/mips/mips.md, config/mn10300/mn10300.c,
29320 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
29321 config/rs6000/aix.h, config/rs6000/dfp.md,
29322 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
29323 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
29324 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
29325 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
29326 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
29327 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
29328 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
29329 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
29330 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
29331 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
29332 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
29333 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
29334 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
29335 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
29336 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
29337 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
29338 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
29339 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
29340 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
29341 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
29342 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
29343 opt-functions.awk, opth-gen.awk, params.def, passes.c,
29344 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
29345 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
29346 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
29347 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
29348 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
29349 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
29350 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
29351 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
29352 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
29353 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
29354 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
29355 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
29356 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
29357 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
29359 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29362 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
29363 * aclocal.m4: Regenerate.
29365 2010-04-02 Richard Guenther <rguenther@suse.de>
29367 PR tree-optimization/43629
29368 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
29369 if we have seen a constant value.
29371 2010-04-02 Joseph Myers <joseph@codesourcery.com>
29373 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
29375 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
29378 * arm.c (legitimize_tls_address): Adjust call to
29379 gen_tls_load_dot_plus_four.
29380 (arm_note_pic_base): New function.
29381 (arm_cannot_copy_insn_p): Use it.
29382 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
29385 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29390 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29392 * Makefile.in ($(out_object_file)): Depend on
29393 gt-$(basename $(notdir $(out_file))).h.
29395 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
29397 * config.gcc (lm32-*-rtems*): Add t-lm32.
29399 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
29401 * config.gcc: Add lm32-*-rtems*.
29402 * config/lm32/rtems.h: New file.
29404 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
29407 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
29409 2010-04-01 Jakub Jelinek <jakub@redhat.com>
29411 * dwarf2out.c (output_compilation_unit_header): For
29412 -gdwarf-4 use version 4 instead of version 3.
29413 (output_line_info): For version 4 and above emit additional
29414 maximum ops per insn header field.
29415 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
29417 * dwarf2out.c (is_c_family, is_java): Remove.
29418 (lower_bound_default): New function.
29419 (add_bound_info, gen_descr_array_type_die): Use it.
29421 2010-04-01 Dodji Seketeli <dodji@redhat.com>
29424 * dwarf2out.c (gen_variable_die): Allow debug info for variable
29425 re-declaration when it happens in a function.
29427 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
29429 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
29430 (cgraph_remove_function_insertion_hook): Same.
29431 (cgraph_call_function_insertion_hooks): Same.
29433 2010-04-01 Richard Guenther <rguenther@suse.de>
29435 PR middle-end/43614
29436 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
29437 and TREE_THIS_VOLATILE.
29438 (copy_ref_info): Likewise.
29439 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
29440 * tree.c (build6_stat): Ignore side-effects of all but arg5
29441 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
29444 2010-04-01 Richard Guenther <rguenther@suse.de>
29446 PR tree-optimization/43607
29447 * ipa-type-escape.c (check_call): Do not access non-existing
29450 2010-04-01 Richard Guenther <rguenther@suse.de>
29452 PR middle-end/43602
29454 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
29455 Jack Howarth <howarth@bromo.med.uc.edu>
29457 * tree-profile.c (tree_init_ic_make_global_vars): Make static
29460 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29462 * doc/install.texi (Prerequisites): Document libelf usability on
29463 IRIX 5/6 and Solaris 2.
29464 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
29465 Update GNU as, GNU ld requirements.
29466 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
29467 Document Sun Studio compiler download.
29468 Update and simplify as, ld recommendations.
29469 (Specific, *-*-solaris2.7): Note obsoletion, removal.
29471 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29473 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
29474 with_tune_32 to pentium4.
29476 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
29478 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
29480 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29482 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
29483 obsoletion, removal.
29485 Document GNU as requirement.
29486 Update configure requirements.
29487 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
29488 Recomment IRIX 6.5.18+.
29489 Document IDF/IDL requirement.
29490 Document GNU as requirement.
29491 Document GNU ld bootstrap failure.
29492 Remove freeware.sgi.com reference.
29494 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29496 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
29497 UNIX V4.0, V5.0 obsoletion, removal.
29498 Remove --with-gc=simple reference.
29499 Update VM requirements during bootstrap.
29500 Remove -oldas bootstrap description.
29501 Update binutils reference.
29502 Remove comparison failure note.
29504 2010-03-31 Richard Guenther <rguenther@suse.de>
29505 Zdenek Dvorak <ook@ucw.cz>
29506 Sebastian Pop <sebastian.pop@amd.com>
29508 PR middle-end/43464
29509 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
29510 with multiple arguments.
29511 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
29513 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
29515 * graphite-dependences.c (print_pddr): Call print_pdr with an
29517 * graphite-poly.c (debug_pdr): Add an extra argument for the
29520 (print_pbb_domain): Same.
29522 (print_scop_context): Same.
29523 (print_scop): Same.
29524 (print_cloog): Same.
29525 (debug_pbb_domain): Same.
29527 (print_pdrs): Same.
29528 (debug_pdrs): Same.
29529 (debug_scop_context): Same.
29530 (debug_scop): Same.
29531 (debug_cloog): Same.
29532 (print_scop_params): Same.
29533 (debug_scop_params): Same.
29534 (print_iteration_domain): Same.
29535 (print_iteration_domains): Same.
29536 (debug_iteration_domain): Same.
29537 (debug_iteration_domains): Same.
29538 (print_scattering_function): Same.
29539 (print_scattering_functions): Same.
29540 (debug_scattering_function): Same.
29541 (debug_scattering_functions): Same.
29542 * graphite-poly.h (debug_pdr): Update declaration.
29544 (print_pbb_domain): Same.
29546 (print_scop_context): Same.
29547 (print_scop): Same.
29548 (print_cloog): Same.
29549 (debug_pbb_domain): Same.
29551 (print_pdrs): Same.
29552 (debug_pdrs): Same.
29553 (debug_scop_context): Same.
29554 (debug_scop): Same.
29555 (debug_cloog): Same.
29556 (print_scop_params): Same.
29557 (debug_scop_params): Same.
29558 (print_iteration_domain): Same.
29559 (print_iteration_domains): Same.
29560 (debug_iteration_domain): Same.
29561 (debug_iteration_domains): Same.
29562 (print_scattering_function): Same.
29563 (print_scattering_functions): Same.
29564 (debug_scattering_function): Same.
29565 (debug_scattering_functions): Same.
29567 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
29569 * graphite-poly.c (print_scattering_function_1): New.
29570 (print_scattering_function): Call it.
29571 (print_scop_params): Remove spaces at the end of lines.
29572 (print_cloog): New.
29573 (debug_cloog): New.
29574 * graphite-poly.h (print_cloog): Declared.
29575 (debug_cloog): Declared.
29577 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
29579 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
29581 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
29582 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
29583 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
29584 to switch between adding the IV bump in loop->latch or in loop->header.
29586 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
29588 * graphite-poly.c (print_scattering_function): Pretty print following
29589 the scoplib format.
29591 (print_pbb_domain): Same.
29592 (dump_gbb_cases): Same.
29593 (dump_gbb_conditions): Same.
29594 (print_pdrs): Same.
29596 (print_scop_params): Same.
29597 (print_scop_context): Same.
29598 (print_scop): Same.
29599 (print_pbb_body): New.
29600 (lst_indent_to): New.
29601 (print_lst): Start new lines with a #.
29602 * graphite-poly.h (pbb_bb): New.
29603 (pbb_index): Use pbb_bb.
29604 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
29606 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
29608 2010-03-31 Jakub Jelinek <jakub@redhat.com>
29610 * dwarf2out.c (size_of_die): For -gdwarf-4 use
29611 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
29612 and 0 instead of 1 for dw_val_class_flag.
29613 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
29614 dw_val_class_range_list, dw_val_class_loc_list,
29615 dw_val_class_lineptr and dw_val_class_macptr, use
29616 DW_FORM_flag_present for dw_val_class_flag and
29617 DW_FORM_exprloc for dw_val_class_loc.
29618 (output_die): For -gdwarf-4 print dw_val_class_loc
29619 size as uleb128 instead of 1 or 2 bytes and don't print
29620 anything for dw_val_class_flag.
29622 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
29623 instead of cselib_lookup following by tweaking locs->setting_insn.
29626 * cselib.c (cselib_process_insn): Clear cselib_current_insn
29627 even before returning from label, setjmp call or volatile asm
29630 2010-03-31 Richard Guenther <rguenther@suse.de>
29632 PR middle-end/43600
29633 * cgraphunit.c (cgraph_output_in_order): Do not allocate
29634 temporary data on stack.
29636 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29638 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
29639 (PUSHSECTION_ASM_OP): Remove.
29640 (POPSECTION_ASM_OP): Remove.
29641 (PUSHSECTION_FORMAT): Remove.
29642 * config/sol2.h (PUSHSECTION_FORMAT): Define.
29643 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
29644 * config/sol2.c (solaris_output_init_fini): Use it.
29646 2010-03-31 Jie Zhang <jie@codesourcery.com>
29649 * opt-functions.awk (var_type_struct): Use signed char type
29650 for simple variables.
29652 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29654 * config/sol2.c: Include output.h.
29655 (solaris_assemble_visibility): New function.
29656 * config/t-sol2 (sol2.o): Add output.h dependency.
29657 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
29658 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
29661 2010-03-31 Jakub Jelinek <jakub@redhat.com>
29664 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
29665 V2SImode or XFmode on PRE_DEC.
29668 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
29671 2010-03-31 Jie Zhang <jie@codesourcery.com>
29674 * reload.h (caller_save_initialized_p): Declare.
29675 * toplev.c (backend_init_target): Don't call
29676 init_caller_save but set caller_save_initialized_p to false.
29677 * caller-save.c (caller_save_initialized_p): Define.
29678 (init_caller_save): Check caller_save_initialized_p.
29679 * ira.c (ira): Call init_caller_save if flag_caller_saves.
29681 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29684 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
29685 and soft-fp/t-softfp to tmake_file.
29686 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
29687 (LIBGCC2_TF_CEXT): Define.
29690 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
29693 * cselib.c (n_useless_values): Document handling of debug locs.
29694 (n_useless_debug_values, n_debug_values): New variables.
29695 (new_elt_loc_list): Don't add to debug values, keep count.
29696 (promote_debug_loc): New.
29697 (cselib_reset_table): Zero new variables.
29698 (entry_and_rtx_equal_p): Promote debug locs.
29699 (discard_useless_locs): Increment n_useless_debug_values for
29701 (remove_useless_values): Adjust n_useless_values and n_debug_values
29702 with n_useless_debug_values.
29703 (add_mem_for_addr): Promote debug locs.
29704 (cselib_lookup_mem): Likewise.
29705 (cselib_lookup_addr): Renamed to...
29706 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
29707 (cselib_log_lookup): ... this. Turn into...
29708 (cselib_lookup_addr): ... new wrapper.
29709 (cselib_lookup_from_insn): New.
29710 (cselib_invalidate_regno): Increment n_useless_debug_values for
29712 (cselib_invalidate_mem): Likewise.
29713 (cselib_process_insn): Take n_deleted and n_debug_values into
29714 account to guard remove_useless_value call.
29715 (cselib_finish): Zero n_useless_debug_values.
29716 * cselib.h (cselib_lookup_from_insn): Declare.
29717 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
29718 (sched_analyze_2): Likewise.
29720 2010-03-30 Jakub Jelinek <jakub@redhat.com>
29722 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
29724 (adjust_mems): Replace narrowing SUBREG of expression containing
29725 just PLUS, MINUS, MULT and ASHIFT of registers and constants
29726 with operations in the narrower mode.
29729 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
29730 regs_invalidated_by_call instead all call_used_reg_set registers.
29732 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
29734 PR middle-end/43430
29735 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
29736 pointer comparisons with types_compatible_p.
29737 * tree-vect-stmts.c (vectorizable_call): Same.
29738 (vectorizable_condition): Same.
29740 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29742 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
29743 stack check if the mask would be zero.
29745 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
29746 Jack Howarth <howarth@bromo.med.uc.edu>
29748 * tree-profile.c (tree_init_ic_make_global_vars): Make static
29751 2010-03-30 Joseph Myers <joseph@codesourcery.com>
29754 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
29756 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
29757 Include ___unordxf2 and ___unordtf2.
29758 * config/i386/libgcc-glibc.ver: Do not define inheritance from
29761 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
29763 * config/lm32/t-lm32: New file.
29764 * config.gcc: Use the above file when targetting lm32.
29766 2010-03-28 Duncan Sands <baldrick@free.fr>
29768 * Makefile.in (PLUGIN_HEADERS): Add except.h.
29770 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
29772 PR middle-end/43431
29773 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
29774 Improve vectorization cost model diagnostic.
29776 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
29778 PR middle-end/43436
29779 * tree-vect-data-refs.c (vect_analyze_data_refs): When
29780 compute_data_dependences_for_loop returns false, early exit
29781 and output an extra diagnostic for the failed data reference
29784 2010-03-29 Richard Guenther <rguenther@suse.de>
29786 PR tree-optimization/43560
29787 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
29788 (can_sm_ref_p): Treat stores to readonly locations as trapping.
29790 2010-03-29 Jie Zhang <jie@codesourcery.com>
29793 * toplev.c (process_options): Set optimization_default_node
29794 and optimization_current_node.
29795 * opts.c (decode_options): Don't set optimization_default_node
29796 and optimization_current_node.
29798 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
29800 * config/rtems.h: Abandon -qrtems_debug.
29802 2010-03-28 Jan Hubicka <jh@suse.cz>
29804 PR tree-optimization/43505
29805 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
29806 map should not be copied.
29808 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29810 PR middle-end/41674
29811 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
29812 cdtors, set DECL_PRESERVE_P.
29813 * ipa.c (cgraph_externally_visible_p): Return true if declaration
29814 should be preseved.
29816 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
29818 PR tree-optimization/43528
29819 * stor-layout.c (place_field): Check that constant fits into
29820 unsigned HWI when skipping calculation of MS bitfield layout.
29822 2010-03-27 Jan Hubicka <jh@suse.cz>
29824 PR middle-end/43391
29825 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
29826 notice_global_symbol work.
29828 2010-03-27 Jakub Jelinek <jakub@redhat.com>
29830 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
29831 instead of dwarf2out_decl.
29832 (struct var_loc_node): Remove section_label field.
29833 (dwarf2out_function_decl): New function.
29834 (dwarf2out_var_location): Don't set section_label field.
29835 (dwarf2out_begin_function): Don't empty decl_loc_table here.
29837 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
29839 PR tree-optimization/43544
29840 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
29841 First argument for builtin vectorized function hook is now a
29842 tree to be able to distinguish between machine specific and
29844 * targhooks.c (default_builtin_vectorized_function): Ditto.
29845 * targhooks.h (default_builtin_vectorized_function): Ditto.
29846 * target.h (struct gcc_target): Ditto.
29847 * tree-vect-stmts.c (vectorizable_function): Ditto.
29848 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
29849 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
29852 2010-03-26 Joseph Myers <joseph@codesourcery.com>
29855 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
29856 nested binding iff it is a FUNCTION_DECL.
29857 (store_parm_decls_newstyle): Pass nested=true to bind for
29858 FUNCTION_DECLs amongst parameters.
29860 2010-03-26 Jakub Jelinek <jakub@redhat.com>
29862 * var-tracking.c (vt_expand_loc_callback): Don't run
29863 cselib_expand_value_rtx_cb in dummy mode if
29864 cselib_dummy_expand_value_rtx_cb returned false.
29866 * var-tracking.c (emit_note_insn_var_location): For one part
29867 notes with offset 0, don't add EXPR_LIST around the location.
29868 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
29869 add_location_or_const_value_attribute): Adjust for that change.
29872 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
29873 into first operand and location into second.
29874 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
29875 dw_cfi_oprnd_loc for DW_CFA_expression.
29876 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
29877 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
29878 assume first argument is regnum and second argument is location.
29880 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
29883 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
29884 of scratch register to DImode. Split to DImode comparison operator.
29885 Use SImode subreg of scratch register in the multiplication.
29886 (*cmp_sadd_sidi): Ditto.
29887 (*cmp_ssub_si): Ditto.
29888 (*cmp_ssub_sidi): Ditto.
29890 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
29893 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
29894 Remove invalid assert and wrong comment.
29896 2010-03-26 Jakub Jelinek <jakub@redhat.com>
29899 * flags.h (final_insns_dump_p): New extern.
29900 * final.c (final_insns_dump_p): New variable.
29901 (rest_of_clean_state): Set it before -fdump-final-insns=
29902 dumping, clear afterwards.
29903 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
29904 MEM_ALIAS_SET on MEMs.
29906 2010-03-26 David S. Miller <davem@davemloft.net>
29908 * configure.ac: Fix sparc GOTDATA_OP bug check.
29909 * configure: Rebuild.
29911 2010-03-26 Alan Modra <amodra@gmail.com>
29913 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
29915 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29917 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
29918 TLS_SECTION_ASM_FLAG.
29920 2010-03-25 Jakub Jelinek <jakub@redhat.com>
29923 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
29924 Clear first_function_block_is_cold.
29927 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
29928 argument if the argument is truth_value_p.
29930 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
29932 * config/rs6000/constraints.md: Update copyright year for my changes.
29935 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
29936 used in reg+reg addressing, swap registers.
29938 2010-03-24 Jakub Jelinek <jakub@redhat.com>
29941 * target.h (struct gcc_target): Add code_end hook.
29942 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
29943 if not yet defined.
29944 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
29945 * toplev.c (compile_file): Call targetm.asm_out.code_end
29946 hook before unwind info/debug info output.
29947 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
29948 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
29949 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
29950 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
29951 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
29952 * config/i386/i386.c (ix86_file_end): Renamed to...
29953 (ix86_code_end): ... this. Make static. Don't call
29954 file_end_indicate_exec_stack. Emit unwind info using
29955 final_start_function/final_end_function.
29956 (darwin_x86_file_end): Remove.
29957 (TARGET_ASM_CODE_END): Define.
29958 * config/i386/i386.h (TARGET_ASM_FILE_END,
29959 NEED_INDICATE_EXEC_STACK): Don't define.
29960 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
29961 (TARGET_ASM_FILE_END): Define to darwin_file_end.
29962 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
29963 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
29966 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
29967 at the beginning and final_end_function at the end.
29968 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
29970 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29972 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
29973 and Sun as TLS syntax.
29974 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
29975 * configure: Regenerate.
29976 * config.in: Regenerate.
29977 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
29978 (default_elf_asm_named_section): Use it.
29979 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
29980 (i386_output_dwarf_dtprel): Likewise.
29981 (output_addr_const_extra): Likewise.
29982 (output_pic_addr_const): Lowercase @GOTTPOFF.
29983 (output_addr_const_extra): Likewise.
29984 (output_pic_addr_const): Lowercase @GOTNTPOFF.
29985 (output_addr_const_extra): Likewise.
29986 (output_pic_addr_const): Lowercase @INDNTPOFF.
29987 (output_addr_const_extra): Likewise.
29988 (output_pic_addr_const): Lowercase @NTPOFF.
29989 (output_addr_const_extra): Likewise.
29990 (output_pic_addr_const): Lowercase @TPOFF.
29991 (output_addr_const_extra): Likewise.
29992 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
29993 (*tls_global_dynamic_64): Likewise.
29994 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
29995 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
29997 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
29998 (ASM_OUTPUT_TLS_COMMON): Use it.
29999 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
30002 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
30003 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
30004 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
30005 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
30006 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
30007 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
30009 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30011 * config/i386/i386.c (override_options): Don't accept
30012 -mtls-dialect=sun any longer.
30013 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
30014 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
30015 (*tls_local_dynamic_base_32_sun): Likewise.
30016 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
30018 2010-03-24 Jakub Jelinek <jakub@redhat.com>
30021 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
30022 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
30025 * ira.c (adjust_cleared_regs): New function.
30026 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
30030 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
30032 * expr.c (expand_expr_real): Restore previous
30033 curr_insn_source_location and curr_insn_block after
30034 expand_expr_real_1 call.
30035 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
30036 instead of expand_expr_real_1.
30038 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
30040 PR rtl-optimization/43413
30041 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
30044 2010-03-22 James E. Wilson <wilson@codesourcery.com>
30047 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
30048 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
30050 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
30052 * config/i386/i386.c (ix86_target_string): Add -mfma.
30053 Fix a typo in comment.
30055 2010-03-22 Mike Stump <mikestump@comcast.net>
30058 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
30059 Don't overly align based upon packed packed fields.
30061 2010-03-22 Jason Merrill <jason@redhat.com>
30063 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
30064 Use () rather than [], and move before the element type.
30066 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30068 * doc/configfiles.texi (Configuration Files): Removed
30069 fixinc/Makefile*, intl/Makefile.*.
30070 * doc/makefile.texi: Fixed markup. Abstract from version
30071 control system used.
30072 (Makefile): Removed obsolete java/parse.y example.
30073 * doc/sourcebuild.texi: Likewise.
30074 (Top Level): Added config, gnattools, libdecnumber, libgcc,
30075 libgomp, libssp. Removed fastjar.
30076 (Miscellaneous Docs): Clarify location.
30077 Added COPYING3, COPYING3.LIB.
30078 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
30080 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30083 * config/i386/i386.c (x86_function_profiler)
30084 [!NO_PROFILE_COUNTERS]: Fix typo.
30085 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
30088 2010-03-22 Janis Johnson <janis187@us.ibm.com>
30089 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30091 * doc/sourcebuild.texi (Test Directives): Split into six
30092 subsections, with most of the current text in new subsections
30093 Directives, Selectors, and Final Actions.
30094 (Directives): Split list of test directives into multiple
30096 (Selectors): Describe use and syntax of selectors.
30097 (Effective-Target Keywords): Describe all existing keywords.
30098 (Add Options): Describe features for dg-add-options.
30099 (Require Support): Describe variants of dg-require-support.
30100 (Final Actions): Describe commands to use in dg-final.
30102 2010-03-22 Michael Matz <matz@suse.de>
30104 PR middle-end/43475
30105 * recog.c (validate_replace_rtx_group): Replace also in
30106 REG_EQUAL and REG_EQUIV notes.
30108 2010-03-22 Richard Guenther <rguenther@suse.de>
30110 PR tree-optimization/43390
30111 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
30112 sure vector extracts are type correct.
30114 2010-03-22 Richard Guenther <rguenther@suse.de>
30116 PR middle-end/40106
30117 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
30118 x * sqrt (x) even when optimizing for size if the target
30119 has native support for sqrt.
30121 2010-03-22 Jakub Jelinek <jakub@redhat.com>
30123 * varasm.c (make_decl_rtl_for_debug): Also clear
30124 flag_mudflap for the duration of make_decl_rtl call.
30127 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
30128 locs from preserved VALUEs.
30130 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30132 PR middle-end/42718
30133 * pa.md (movmemsi): Set align to one if zero.
30134 (movmemdi): Likewise.
30136 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
30139 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
30140 with their corresponding prologue pushes.
30142 2010-03-20 Andrew Pinski <pinskia@gmail.com>
30145 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
30146 at the begining or end.
30147 (spu_expand_epilogue): Likewise.
30149 2010-03-20 Richard Guenther <rguenther@suse.de>
30151 PR rtl-optimization/43438
30152 * combine.c (make_extraction): Properly zero-/sign-extend an
30153 extraction of the low part of a CONST_INT. Also handle
30156 2010-03-19 Mike Stump <mikestump@comcast.net>
30158 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
30159 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
30160 (override_options): Use SUBTARGET32_DEFAULT_CPU.
30162 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
30165 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
30168 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
30170 PR rtl-optimization/42258
30171 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
30172 use that may match DEF.
30175 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
30176 the cost of loading the constant rather than assuming
30178 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
30179 outer code is AND, do the same tests as the andsi3 expander and
30180 return COSTS_N_INSNS (1) if and is cheap.
30182 * optabs.c (avoid_expensive_constant): Fix formatting.
30184 2010-03-19 Michael Matz <matz@suse.de>
30187 * attribs.c (decl_attributes): When rebuilding a function pointer
30188 type use the same qualifiers as the original pointer type.
30190 2010-03-19 Martin Jambor <mjambor@suse.cz>
30192 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
30193 and is_gimple_ip_invariant_address.
30195 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30198 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30200 * config/arm/arm.c (arm_override_options): Turn off
30201 flag_dwarf2_cfi_asm for AAPCS variants.
30203 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30206 * config/arm/arm.c (emit_multi_reg_push): Update comments.
30207 Use PRE_MODIFY instead of PRE_DEC.
30208 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
30209 (vfp_emit_fstmd): Likewise.
30211 2010-03-19 Michael Matz <matz@suse.de>
30214 * builtins.c (expand_builtin_interclass_mathfn,
30215 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
30218 2010-03-19 Richard Guenther <rguenther@suse.de>
30220 PR tree-optimization/43415
30221 * tree-ssa-pre.c (phi_translate): Split out worker to ...
30222 (phi_translate_1): ... this.
30223 (phi_translate): Move all caching here. Cache all NARY
30224 and REFERENCE translations.
30226 2010-03-19 David S. Miller <davem@davemloft.net>
30228 With help from Eric Botcazou.
30229 * config/sparc/sparc.c: Include dwarf2out.h.
30230 (emit_pic_helper): Delete.
30231 (pic_helper_symbol_name): Delete.
30232 (pic_helper_emitted_p): Delete.
30233 (pic_helper_needed): New.
30234 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
30235 (get_pc_thunk_name): New.
30236 (load_pic_register): Remove 'delay_pic_helper' arg. Use
30237 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
30238 Set pic_helper_needed to true. Don't call emit_pic_helper.
30239 (sparc_expand_prologue): Update load_pic_register call.
30240 (sparc_output_mi_thunk): Likewise.
30241 (sparc_file_end): Emit a hidden comdat symbol for the PIC
30242 thunk if possible. Output CFI information as needed.
30244 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
30245 Jack Howarth <howarth@bromo.med.uc.edu>
30248 * config/i386/i386.h: Fix ABI on darwin x86-32.
30250 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
30252 * tree.h: Declare make_decl_rtl_for_debug.
30253 * varasm.c (make_decl_rtl_for_debug): New.
30254 * dwarf2out.c (rtl_for_decl_location): Call it.
30255 * cfgexpand.c (expand_debug_expr): Call it.
30257 2010-03-18 Jakub Jelinek <jakub@redhat.com>
30260 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
30264 * var-tracking.c (vt_init_cfa_base): Do nothing if
30265 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
30267 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
30270 * var-tracking.c (canonicalize_vars_star): New.
30271 (dataflow_post_merge_adjust): Use it.
30273 2010-03-18 Jakub Jelinek <jakub@redhat.com>
30276 * var-tracking.c (non_suitable_const): New function.
30277 (add_uses): For DEBUG_INSNs with constants, don't record any
30278 value, instead just the constant value itself.
30279 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
30280 is not VAR_LOC_UNKNOWN_P, set var to the constant.
30281 (emit_notes_in_bb): Likewise.
30282 (emit_note_insn_var_location): For onepart variables if
30283 cur_loc is a VOIDmode constant, use DECL_MODE.
30285 2010-03-18 Martin Jambor <mjambor@suse.cz>
30287 PR middle-end/42450
30288 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
30289 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
30290 all non-clones. Moved call redirection...
30291 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
30292 (cgraph_materialize_all_clones): Dispose of all
30293 combined_args_to_skip bitmaps.
30294 (verify_cgraph_node): Do not check for edges pointing to wrong
30295 nodes in inline clones.
30296 * tree-inline.c (copy_bb): Call
30297 cgraph_redirect_edge_call_stmt_to_callee.
30298 * ipa.c (cgraph_remove_unreachable_nodes): Call
30299 cgraph_node_remove_callees even when there are used clones.
30301 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
30303 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
30305 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
30308 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
30311 2010-03-18 Michael Matz <matz@suse.de>
30313 PR middle-end/43419
30314 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
30315 into sqrt(x) if we need to preserve signed zeros.
30317 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
30318 Eric Botcazou <ebotcazou@adacore.com>
30320 PR rtl-optimization/43360
30321 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
30322 note if we don't know its invariant status.
30324 2010-03-18 Michael Matz <matz@suse.de>
30326 PR tree-optimization/43402
30327 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
30328 PHI chains of ssa names registered for update.
30330 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
30333 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
30334 non-offsettable and pre_modify update addressing.
30335 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
30336 and "2" alternatives "#".
30337 (*movdd_softfloat32): Make all alternatives "#";
30338 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
30339 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
30340 (*movdf_softfloat32): Make all alternatives "#";
30341 (movdi): Use the new DIFD mode iterator to create a common splitter
30342 for movdi, movdf and movdd patterns.
30344 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
30346 * common.opt (dumpdir): Remove redundant tab.
30348 2010-03-17 Martin Jambor <mjambor@suse.cz>
30350 PR tree-optimization/43347
30351 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
30352 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
30354 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
30356 PR rtl-optimization/42216
30357 * regrename.c (create_new_chain): New function, broken out from...
30358 (scan_rtx_reg): ... here. Call it. Handle the case where we are
30359 appending a use to an empty chain.
30360 (build_def_use): Remove previous changes that convert OP_INOUT to
30361 OP_OUT operands; instead detect the case where an OP_INOUT operand
30362 uses a previously untracked register and create an empty chain for it.
30364 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30366 * doc/extend.texi (Function Attributes): Rewrite unfinished
30367 sentence in ms_abi documentation.
30369 2010-03-17 Alan Modra <amodra@gmail.com>
30371 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
30372 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
30373 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
30374 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
30376 2010-03-16 Richard Henderson <rth@redhat.com>
30378 PR middle-end/43365
30379 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
30380 (lower_try_finally): Save and restore eh_seq around the expansion
30381 of the try-finally.
30383 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
30385 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
30386 statements before splitting block.
30388 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30390 * doc/sourcebuild.texi (Testsuites): Fix markup.
30391 Use pathnames relative to gcc/testsuite.
30392 (Test Directives): Move description of how timeout is determined.
30393 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
30394 (C Tests): Correct gcc.misc-tests directory.
30395 Framework tests now live in gcc.test-framework.
30397 2010-03-16 Richard Guenther <rguenther@suse.de>
30399 PR middle-end/43379
30400 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
30401 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
30403 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
30404 Alexandre Oliva <aoliva@redhat.com>
30406 PR tree-optimization/42917
30407 * lambda-code.c (remove_iv): Skip debug statements.
30408 (lambda_loopnest_to_gcc_loopnest): Likewise.
30409 (not_interesting_stmt): Debug statements are not interesting.
30411 2010-03-16 Jakub Jelinek <jakub@redhat.com>
30415 * cselib.c (cselib_preserve_constants,
30416 cfa_base_preserved_val): New static variables.
30417 (preserve_only_constants): New function.
30418 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
30419 clear its REG_VALUES. If cselib_preserve_constants, don't
30420 empty the whole hash table, but preserve there VALUEs with constants,
30421 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
30422 (cselib_preserve_cfa_base_value): New function.
30423 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
30424 (cselib_init): Change argument to int bitfield. Set
30425 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
30427 (cselib_finish): Clear cselib_preserve_constants and
30428 cfa_base_preserved_val.
30429 * cselib.h (enum cselib_record_what): New enum.
30430 (cselib_init): Change argument to int.
30431 (cselib_preserve_cfa_base_value): New prototype.
30432 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
30433 * dse.c (dse_step1): Likewise.
30434 * cfgcleanup.c (thread_jump): Likewise.
30435 * sched-deps.c (sched_analyze): Likewise.
30436 * gcse.c (local_cprop_pass): Likewise.
30437 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
30438 If FN is non-NULL, call the callback always and whenever it returns
30439 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
30440 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
30441 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
30442 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
30443 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
30444 * var-tracking.c: Include recog.h.
30445 (bb_stack_adjust_offset): Remove.
30446 (vt_stack_adjustments): Don't call it, instead just gather the
30447 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
30448 (adjust_stack_reference): Remove.
30449 (compute_cfa_pointer): New function.
30450 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
30451 (struct adjust_mem_data): New type.
30452 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
30454 (get_address_mode): New function.
30455 (replace_expr_with_values): Use it.
30456 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
30457 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
30458 (adjust_sets): Remove.
30459 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
30460 Use get_address_mode.
30461 (get_adjusted_src): Remove.
30462 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
30463 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
30464 (add_with_sets): Don't call adjust_sets.
30465 (fp_setter, vt_init_cfa_base): New functions.
30466 (vt_initialize): Change return type to bool. Move most of pool etc.
30467 initialization to the beginning of the function from end. Pass
30468 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
30469 If !frame_pointer_needed, call vt_stack_adjustment before mos
30470 vector is filled, call vt_init_cfa_base if argp/framep has been
30471 eliminated to sp. If frame_pointer_needed and argp/framep has
30472 been eliminated to hard frame pointer, set
30473 hard_frame_pointer_adjustment and call vt_init_cfa_base after
30474 encountering fp setter in the prologue. For MO_ADJUST, call
30475 log_op_type before pusing the op into mos vector, not afterwards.
30476 Call adjust_insn before cselib_process_insn/add_with_sets,
30477 call cancel_changes (0) afterwards.
30478 (variable_tracking_main_1): Adjust for vt_initialize calling
30479 vt_stack_adjustments and returning whether it succeeded or not.
30481 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
30483 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
30486 2010-03-15 Jakub Jelinek <jakub@redhat.com>
30488 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
30490 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
30491 drap_reg has not been set.
30493 2010-03-15 Michael Matz <matz@suse.de>
30495 PR middle-end/43300
30496 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
30497 use it to expand block copies.
30498 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
30499 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
30500 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
30502 2010-03-15 Richard Guenther <rguenther@suse.de>
30504 PR tree-optimization/43367
30505 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
30508 2010-03-15 Richard Guenther <rguenther@suse.de>
30510 PR tree-optimization/43317
30511 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
30513 2010-03-15 Martin Jambor <mjambor@suse.cz>
30515 PR tree-optimization/43141
30516 * tree-sra.c (create_abstract_origin): New function.
30517 (modify_function): Call create_abstract_origin.
30519 2010-03-15 Chris Demetriou <cgd@google.com>
30521 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
30524 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30526 PR middle-end/43354
30527 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
30528 call insert_out_of_ssa_copy for default definitions.
30530 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30532 * graphite-clast-to-gimple.c (my_long_long): Defined.
30533 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
30534 * graphite-sese-to-poly.c (my_long_long): Defined.
30535 (scop_ivs_can_be_represented): Use it.
30537 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30539 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
30540 graphite-max-bbs-per-function, and loop-block-tile-size.
30541 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
30543 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
30545 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30547 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
30548 forward declaration.
30549 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
30550 (add_upper_bounds_from_estimated_nit): New.
30551 (build_loop_iteration_domains): Use it.
30553 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30555 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
30557 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30559 PR middle-end/43306
30560 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
30561 should be an INTEGER_CST. Also handle CASE_CONVERT.
30563 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30565 * graphite.c (graphite_initialize): To bound the number of bbs per
30566 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
30567 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
30568 * doc/invoke.texi: Document it.
30570 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30572 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
30573 * graphite-sese-to-poly.h (build_poly_scop): Same.
30575 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30577 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
30578 the number of parameters in the scop. Use as an upper bound
30579 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
30580 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
30581 * doc/invoke.texi: Document it.
30583 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
30585 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
30586 * doc/c-tree.texi: Remove.
30587 * doc/generic.texi: Merge c-tree.texi here.
30588 * doc/gccint.texi (Trees): Remove menu entry.
30589 (c-tree.texi): Remove @include.
30590 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
30591 * doc/languages.texi (Reading RTL): Ditto.
30593 2010-03-12 Steve Ellcey <sje@cup.hp.com>
30596 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
30598 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
30600 PR middle-end/42431
30601 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
30602 code added to work around reload clobbering CONST insns.
30604 2010-03-12 Jakub Jelinek <jakub@redhat.com>
30606 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
30607 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
30608 (cselib_preserve_only_values): Remove retain argument, don't
30609 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
30610 * cselib.h (cselib_preserve_only_values): Remove retain argument.
30611 * var-tracking.c (micro_operation): Move insn field before union.
30612 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
30613 (struct variable_tracking_info_def): Remove n_mos field, change
30614 mos into a vector of micro_operations.
30615 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
30616 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
30617 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
30618 changing into a vector.
30619 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
30620 come before all other uops generated by add_stores.
30621 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
30623 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
30624 a vector. Run just one pass over the bbs instead of separate counting
30625 and computation phase.
30626 (vt_finalize): Free VTI (bb)->mos vector instead of array.
30629 * tree-inline.c (remap_decls): Put old_var rather than origin_var
30630 into *nonlocalized_list vector.
30631 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
30632 even if origin is non-NULL.
30633 (gen_variable_die): Likewise.
30634 (process_scope_var): Don't change origin.
30635 (gen_decl_die): Likewise.
30636 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
30637 before adding new edges instead of after it, fix moving over
30640 2010-03-11 David S. Miller <davem@davemloft.net>
30642 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
30644 * configure: Rebuild.
30646 2010-03-11 Martin Jambor <mjambor@suse.cz>
30648 PR tree-optimization/43257
30649 * tree.c (assign_assembler_name_if_neeeded): New function.
30650 (free_lang_data_in_cgraph): Assembler name assignment moved to the
30651 above new function.
30652 * tree.h (assign_assembler_name_if_neeeded): Declare.
30653 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
30654 the function if needed.
30656 2010-03-11 Chris Demetriou <cgd@google.com>
30658 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
30659 include/stdint-gcc.h, and include/stdint.h world-readable.
30661 2010-03-11 Richard Guenther <rguenther@suse.de>
30663 PR tree-optimization/43255
30664 * tree-vrp.c (process_assert_insertions_for): Do not insert
30665 asserts for trivial conditions.
30667 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30669 PR tree-optimization/43280
30670 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
30671 generation. Move calculation of size out of the if branch.
30672 (find_bswap): Modify compare number generation.
30674 2010-03-11 Richard Guenther <rguenther@suse.de>
30677 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
30678 (input_gimple_stmt): Fixup handled component types during
30679 operand read. Also fix up decls in ADDR_EXPRs.
30681 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
30683 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
30684 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
30686 2010-03-10 Jan Hubicka <jh@suse.cz>
30689 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
30690 * varasm.c (get_variable_section): Don't do that here...
30691 (make_decl_rtl): ... and here.
30692 (do_assemble_alias): Produce decl RTL.
30693 (assemble_alias): Likewise.
30695 2010-03-10 Jakub Jelinek <jakub@redhat.com>
30698 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
30699 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
30701 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
30702 (based_loc_descr): Only express drap or vdrap regno based expressions
30703 using DW_OP_fbreg when not optimizing.
30704 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
30705 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
30706 REG_CFA_SET_VDRAP note.
30708 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
30710 PR tree-optimization/43236
30711 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
30712 error in calculation of base address in reverse iteration case.
30713 (generate_builtin): Take number of latch executions if the statement
30716 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
30718 PR middle-end/42859
30719 * tree-eh.c: Include pointer-set.h.
30720 (lower_eh_dispatch): Filter out duplicate case labels and
30721 remove the unneeded edge when the label is unused. Return
30722 true when some edges are removed.
30723 (execute_lower_eh_dispatch): When any lowering resulted in
30724 removing an edge, also delete unreachable blocks.
30726 2010-03-10 Jakub Jelinek <jakub@redhat.com>
30729 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
30730 UNSPEC_MACHOPIC_OFFSET.
30732 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
30735 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
30736 (m68k_delegitimize_address): New function.
30738 2010-03-09 Jakub Jelinek <jakub@redhat.com>
30741 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
30744 * var-tracking.c (adjust_sets): New function.
30745 (count_with_sets, add_with_sets): Use it.
30746 (get_adjusted_src): New inline function.
30747 (add_stores): Use it.
30750 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
30751 call cselib_dummy_expand_value_rtx_cb instead of
30752 cselib_expand_value_rtx_cb.
30755 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
30756 * config/i386/i386.c: Include debug.h and dwarf2out.h.
30757 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
30758 and .cfi_endproc around the pic thunks.
30759 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
30760 all queued unwind info register saves are saved before the call.
30761 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
30762 considered as sp-=4 for unwind info and the pop as sp+=4 which
30763 also clobbers dest, but doesn't actually restore it.
30766 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
30767 RTX_FRAME_RELATED_P.
30769 2010-03-09 Jie Zhang <jie@codesourcery.com>
30771 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
30772 whitespaces in output template.
30774 2010-03-09 Jie Zhang <jie@codesourcery.com>
30776 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
30777 out array boundary.
30779 2010-03-08 Jakub Jelinek <jakub@redhat.com>
30781 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
30782 builtins.exp in a separate job.
30784 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30786 * graphite-sese-to-poly.c (add_param_constraints): Use
30787 lower_bound_in_type and upper_bound_in_type.
30789 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30791 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
30792 instead of unsigned_type_node.
30794 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30795 Reza Yazdani <reza.yazdani@amd.com>
30797 PR middle-end/43065
30798 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
30799 on pointer type parameters.
30801 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
30803 PR middle-end/42644
30804 PR middle-end/42130
30805 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
30806 handle conversions from pointer to integers.
30807 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
30808 induction variable, to be able to work with code generated by CLooG.
30809 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
30810 (build_poly_scop): Bail out if we cannot codegen a loop.
30812 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
30814 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
30815 code generation with gloog_error.
30817 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30819 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
30820 Call fold_convert on all the returned values.
30821 (expand_scalar_variables_expr): Pass to
30822 expand_scalar_variables_ssa_name the type of the resulting expression.
30824 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30826 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
30827 ppl_min_for_le_pointset.
30828 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
30829 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
30831 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30833 * graphite-dependences.c (map_into_dep_poly): Removed.
30834 (dependence_polyhedron_1): Use combine_context_id_scat.
30836 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30838 * graphite-poly.h (struct poly_scattering): Add layout documentation.
30839 (struct poly_bb): Same.
30840 (combine_context_id_scat): New.
30842 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30844 PR middle-end/42326
30845 * sese.c (name_defined_in_loop_p): Return false for default
30848 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30850 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
30851 and clean up the logic.
30853 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30855 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
30858 2010-03-08 Jakub Jelinek <jakub@redhat.com>
30860 * var-tracking.c (remove_cselib_value_chains): Define only for
30862 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
30863 delete_slot_part, emit_notes_for_differences_1): Don't call
30864 remove_cselib_value_chains here.
30865 (set_slot_part, emit_notes_for_differences_2): Don't call
30866 add_cselib_value_chains here.
30867 (preserved_values): New vector.
30868 (preserve_value): New function.
30869 (add_uses, add_stores, vt_add_function_parameters): Use it
30870 instead of cselib_preserve_value.
30871 (changed_values_stack): New vector.
30872 (check_changed_vars_0): New function.
30873 (check_changed_vars_1, check_changed_vars_2): Use it.
30874 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
30875 changed_values_stack VALUEs.
30876 (vt_emit_notes): For all preserved_values call
30877 add_cselib_value_chains. If ENABLE_CHECKING call
30878 remove_cselib_value_chains before verifying value_chains is empty.
30879 Initialize and free changed_values_stack.
30880 (vt_initialize): Initialize preserved_values.
30881 (vt_finalize): Free preserved_values.
30883 2010-03-08 Richard Guenther <rguenther@suse.de>
30885 PR tree-optimization/43269
30886 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
30889 2010-03-08 Martin Jambor <mjambor@suse.cz>
30891 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
30892 (ipa_is_param_called): Removed.
30893 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
30894 (ipa_print_node_params): Do not print the called flag.
30895 (ipa_write_node_info): Do not stream the called flag.
30896 (ipa_read_node_info): Likewise.
30898 2010-03-07 Jakub Jelinek <jakub@redhat.com>
30901 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
30902 * cselib.c (struct expand_value_data): Add dummy field.
30903 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
30905 (cselib_dummy_expand_value_rtx_cb): New function.
30906 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
30908 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
30909 * var-tracking.c: Include pointer-set.h.
30910 (variable): Change n_var_parts to char from int. Add
30911 cur_loc_changed and in_changed_variables fields.
30912 (variable_canonicalize): Remove.
30913 (shared_var_p): New inline function.
30914 (unshare_variable): Maintain cur_loc_changed and
30915 in_changed_variables fields. If var was in changed_variables,
30916 replace it there with new_var. Just copy cur_loc instead of
30917 resetting it to something else.
30918 (variable_union): Don't recompute cur_loc. Use shared_var_p.
30919 (dataflow_set_union): Don't call variable_canonicalize.
30920 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
30921 of their DEBUG_EXPR_TREE_DECLs.
30922 (canonicalize_loc_order_check): Verify that cur_loc is NULL
30923 and in_changed_variables and cur_loc_changed is false.
30924 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
30925 and cur_loc_changed. Don't update cur_loc here.
30926 (variable_merge_over_src): Don't call variable_canonicalize.
30927 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
30928 removing loc that is equal to cur_loc, clear cur_loc,
30929 set cur_loc_changed and ensure variable_was_changed is called.
30930 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
30931 compare pointers in cur_loc check, if it is equal to loc,
30932 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
30933 (variable_different_p): Remove compare_current_location argument,
30934 don't compare cur_loc.
30935 (dataflow_set_different_1): Adjust variable_different_p caller.
30936 (variable_was_changed): If dv had some var in changed_variables
30937 already, reset in_changed_variables flag for it and propagate
30938 cur_loc_changed over to the new variable. On empty var
30939 always set cur_loc_changed. Set in_changed_variables on whatever
30940 var is added to changed_variables.
30941 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
30942 Use shared_var_p. When removing loc that is equal to cur_loc,
30943 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
30944 end, don't set it to something else, just call variable_was_changed.
30945 (delete_slot_part): Use shared_var_p. When cur_loc equals to
30946 loc being removed, clear cur_loc and set cur_loc_changed.
30947 Set cur_loc_changed if all locations have been removed.
30948 (struct expand_loc_callback_data): New type.
30949 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
30950 allocated. Always create SUBREGs if simplify_subreg failed.
30951 Prefer to use cur_loc, when that fails and still in
30952 changed_variables (and seen first time) recompute it. Set
30953 cur_loc_changed of variables which had to change cur_loc and
30954 compute elcd->cur_loc_changed if any of the subexpressions used
30955 had to change cur_loc.
30956 (vt_expand_loc): Adjust to pass arguments in
30957 expand_loc_callback_data structure.
30958 (vt_expand_loc_dummy): New function.
30959 (emitted_notes): New variable.
30960 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
30961 that weren't used for any other decl in current
30962 emit_notes_for_changes call call vt_expand_loc_dummy to update
30963 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
30964 first loc_chain location if NULL before. Always use just
30965 cur_loc instead of first loc_chain location. When cur_loc_changed
30966 is false, when not --enable-checking=rtl just don't emit any note.
30967 When rtl checking, compute the note and assert it is the same
30968 as previous note. Clear cur_loc_changed and in_changed_variables
30969 at the end before removing from changed_variables.
30970 (check_changed_vars_3): New function.
30971 (emit_notes_for_changes): Traverse changed_vars to call
30972 check_changed_vars_3 on each changed var.
30973 (emit_notes_for_differences_1): Clear cur_loc_changed and
30974 in_changed_variables. Recompute cur_loc of new_var.
30975 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
30976 (vt_emit_notes): Initialize and destroy emitted_notes.
30978 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
30980 PR rtl-optimization/42220
30981 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
30982 Use verify_reg_tracked to determine if we should use OP_OUT rather
30984 (build_def_use): If we see an in-out operand for a register that we
30985 know nothing about, treat is an output if possible, fail the block if
30988 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
30991 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
30994 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
30997 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
30998 uses of relevant DEFs that are dead outside the loop too.
31000 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
31002 * var-tracking.c (dataflow_set_merge): Swap src and src2.
31004 2010-01-13 Jakub Jelinek <jakub@redhat.com>
31006 * var-tracking.c (values_to_unmark): New variable.
31007 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
31008 values_to_unmark vector. Moved body to...
31009 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
31010 instead queue it into values_to_unmark vector.
31011 (vt_find_locations): Free values_to_unmark vector.
31013 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
31015 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
31016 (site.exp): Export them when plugins are enabled.
31018 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
31020 PR middle-end/42326
31021 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
31022 that contain scevs.
31023 (chrec_fold_multiply): Same.
31025 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
31028 * c-decl.c (build_compound_literal): Return early if init is
31029 an error_mark_node.
31031 2010-03-04 Martin Jambor <mjambor@suse.cz>
31033 PR tree-optimization/43164
31034 PR tree-optimization/43191
31035 * tree-sra.c (type_consists_of_records_p): Reject records with
31036 zero-size bit-fields at the end.
31038 2010-03-04 Mike Stump <mikestump@comcast.net>
31040 * Makefile.in (TAGS): Remove *.y.
31042 2010-03-04 Richard Guenther <rguenther@suse.de>
31044 PR tree-optimization/40761
31045 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
31047 (my_rev_post_order_compute): New function.
31048 (init_pre): Call it.
31050 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
31052 PR middle-end/43209
31053 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
31054 decrease the cost of an IV candidate when the cost is infinite.
31056 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31058 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
31059 Use '3DNow!' for the extension of that name, ensure normal space
31061 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
31063 2010-03-03 Jeff Law <law@redhat.com>
31065 * PR middle-end/32693
31066 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
31067 than gen_rtx_SUBREG.
31068 (extract_bit_field_1): Likewise.
31070 2010-03-03 Janis Johnson <janis187@us.ibm.com>
31072 * doc/sourcebuild.texi (Test directives): Document that arguments
31073 include-opts and exclude-opts are now optional for dg-skip-if,
31074 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
31076 2010-03-03 Jason Merrill <jason@redhat.com>
31079 * cgraph.h (varpool_node): Add extra_name field.
31080 * varpool.c (varpool_extra_name_alias): New.
31081 (varpool_assemble_decl): Emit extra name aliases.
31082 (varpool_mark_needed_node): Look past an extra name alias.
31083 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
31084 * lto-streamer-in.c (lto_input_tree): Read it.
31085 * lto-streamer-out.c (output_unreferenced_globals): Write it.
31087 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
31089 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
31090 (sparc*-*-solaris2*): ...this.
31092 2010-03-03 Jakub Jelinek <jakub@redhat.com>
31095 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
31096 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
31097 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
31098 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
31101 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
31102 fallthrough to default handling, just with want_address 0 instead of 2.
31103 For single element lists, add_AT_loc directly, otherwise create an
31104 artificial variable DIE and stick location list to it.
31107 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
31108 (VAL_EXPR_HAS_REVERSE): Define.
31109 (reverse_op): New function.
31110 (add_stores): For reversible operations add an extra MO_VAL_USE.
31112 2010-03-02 Jason Merrill <jason@redhat.com>
31114 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
31116 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
31118 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
31119 (sparc64-*-linux*): Likewise.
31120 (sparc64-*-solaris2*): Include assembler files before linker ones.
31121 (sparc-*-solaris2*): Simplify and reorder to match previous case.
31122 * config/sparc/gas.h: Delete.
31123 * config/sparc/sol2-64.h: Add copyright notice.
31124 * config/sparc/sol2-gas-bi.h: Likewise.
31125 * config/sparc/sol2-gld.h: Likewise.
31126 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
31127 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
31128 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
31129 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
31130 (sparc_elf_asm_named_section): Rename into...
31131 (sparc_solaris_elf_asm_named_section): ...this. Always define.
31133 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
31135 * config/alpha/alpha.c (override_options): Fix -mtune error message.
31137 2010-03-02 Jeff Law <law@redhat.com>
31139 PR middle-end/42431
31140 * reload1.c (rtx_p, substitute_stack): Declare.
31141 (substitute): Record addresses of changed rtxs.
31142 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
31143 Restore the original rtx when complete.
31144 (reload): Free subsitute_stack when complete.
31146 2010-03-02 Janis Johnson <janis187@us.ibm.com>
31148 * doc/gccint.texi (menu): Add Testsuites as a chapter.
31149 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
31151 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
31152 LTO Testing, gcov Testing, profopt Testing, compat Testing,
31153 Torture Tests): Change from subsection to section.
31155 2010-03-02 Jakub Jelinek <jakub@redhat.com>
31156 Steven Bosscher <steven@gcc.gnu.org>
31158 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
31161 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
31163 PR middle-end/42640
31164 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
31165 the assignment from the new induction variable to the assignment
31166 of the value from the original loop PHI function.
31168 2010-03-01 Janis Johnson <janis187@us.ibm.com>
31169 Daniel Jacobowitz <dan@codesourcery.com>
31171 * doc/sourcebuild.texi (Test directives): Clarify options to
31174 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31176 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
31177 Disable cfi directives unless GCC and gas agree on using read-only
31178 .eh_frame sections for 64-bit.
31179 * configure: Regenerate.
31181 2010-03-01 Richard Guenther <rguenther@suse.de>
31183 PR tree-optimization/43220
31184 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
31185 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
31187 2010-03-01 Richard Guenther <rguenther@suse.de>
31188 Martin Jambor <mjambor@suse.cz>
31190 PR middle-end/41250
31191 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
31192 gimplified parameters.
31194 2010-03-01 Christian Bruel <christian.bruel@st.com>
31196 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
31198 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
31200 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
31202 2010-03-01 Richard Guenther <rguenther@suse.de>
31204 PR middle-end/43213
31205 * expr.c (expand_assignment): Use the alias-oracle to tell
31206 if the rhs aliases the result decl.
31208 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31211 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
31212 to sol_gt_pch_get_address.
31213 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
31214 64-bit, SPARC and x86.
31215 (sol_gt_pch_get_address): New function.
31217 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
31219 * toplev.h (inform_n, error_n): Declare.
31220 * diagnostic.c (inform_n, error_n): New function.
31222 2010-03-01 Jakub Jelinek <jakub@redhat.com>
31224 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
31225 has no rtl yet when processing local_decls, queue it and recheck
31226 if deferred stack allocation hasn't assigned it rtl.
31228 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
31230 * config/sh/sh.c (unspec_bbr_uid): New.
31231 (gen_block_redirect): Use it instead of INSN_UID.
31232 (gen_far_branch): Likewise.
31234 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
31236 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
31237 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
31239 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31241 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
31242 (Warning Options): -Wno-conversion-null is valid for
31243 Objective-C++ as well.
31244 * doc/tm.texi (Named Address Spaces): Likewise.
31245 * doc/plugins.texi (Plugins): Replace TABs with spaces.
31246 * doc/tree-ssa.texi (Tree SSA): Likewise.
31248 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
31251 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
31252 by default. Don't set the default arch for
31253 i[34567]86-*-darwin*|x86_64-*-darwin*.
31255 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
31258 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
31259 default. Set the default 32bit/64bit archs with $with_arch
31260 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
31262 2010-02-27 Richard Guenther <rguenther@suse.de>
31264 PR tree-optimization/43186
31265 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
31266 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
31267 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
31268 unroller iterations.
31270 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
31272 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
31273 required and i[34567]86-*-* targets don't support 64bit ISA.
31275 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
31278 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
31279 the same alias set.
31281 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
31283 * config.gcc: Set the default arch at least to Prescott for
31284 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
31285 if SSE math is enabled.
31287 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
31289 * diagnostic.c (diagnostic_initialize): Update.
31290 (diagnostic_report_diagnostic): Test inhibit_notes_p for
31292 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
31293 (diagnostic_inhibit_notes): New.
31294 * toplev.c (process_options): inhibit notes with -fcompare-debug.
31296 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
31299 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
31300 * doc/standards.texi: Likewise.
31301 * doc/extend.texi: Likewise.
31302 * doc/trouble.texi: Likewise.
31303 * doc/cppopts.texi: Likewise.
31304 * doc/install.texi: Likewise.
31305 * c.opt (std=c90,std=gnu90): New options.
31306 * c-opts.c (c_common_handle_option): Handle them.
31308 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
31311 * c-decl.c (undeclared_variable): Use an informative note.
31313 2010-02-26 Richard Guenther <rguenther@suse.de>
31315 PR tree-optimization/43186
31316 * gimple.h (gimple_fold): Remove.
31317 * gimple.c (gimple_fold): Remove. Inline into single user ...
31318 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
31319 Try harder for conditions.
31321 2010-02-26 Jakub Jelinek <jakub@redhat.com>
31324 * function.c (used_types_insert): Don't skip through named pointer
31325 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
31326 and it is different from the main variant's type.
31328 2010-02-26 Nick Clifton <nickc@redhat.com>
31330 * config/rx/rx.md (sminsi3): Remove bogus alternative.
31332 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
31334 * config.gcc: Support --with-fpmath=sse for x86.
31336 * config/i386/ssemath.h: New.
31338 * doc/install.texi (--with-fpmath=sse): Documented.
31340 2010-02-26 Richard Guenther <rguenther@suse.de>
31342 PR tree-optimization/43188
31343 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
31344 vector types of over-aligned element type.
31346 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
31349 * config/i386/i386.c (expand_vec_perm_blend): Use correct
31350 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
31352 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
31354 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
31356 2010-02-26 Jakub Jelinek <jakub@redhat.com>
31358 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
31359 * var-tracking.c: Include diagnostic.h.
31360 (debug_dv): New function.
31361 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
31364 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
31365 (add_value_chain, add_value_chains, remove_value_chain,
31366 remove_value_chains): Handle DEBUG_EXPRs.
31367 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
31370 * regcprop.c (struct queued_debug_insn_change): New type.
31371 (struct value_data_entry): Add debug_insn_changes field.
31372 (struct value_data): Add n_debug_insn_changes field.
31373 (debug_insn_changes_pool): New variable.
31374 (free_debug_insn_changes, apply_debug_insn_changes,
31375 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
31376 (kill_value_one_regno): Call free_debug_insn_changes if needed.
31377 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
31379 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
31381 (copyprop_hardreg_forward_1): Don't call apply_change_group for
31382 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
31383 changes, call cprop_find_used_regs via note_stores.
31384 (copyprop_hardreg_forward): When copying vd from predecessor
31385 which has any queued DEBUG_INSN changes, make sure the pointers are
31386 cleared. At the end call df_analyze and then if there are any
31387 DEBUG_INSN changes queued at the end of some basic block for still
31388 live registers, apply them.
31389 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
31391 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
31393 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
31396 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
31398 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
31399 targets. Set the default with_cpu/with_arch from arch/cpu.
31400 Allow x86-64 and native for with_cpu/with_arch.
31402 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
31404 * ebitmap.c: Change calls to verify_popcount with calls to
31405 sbitmap_verify_popcount.
31406 (ebitmap_clear_bit): Fixed map->cacheindex test and
31407 map>cache update when bit clearing results in an empty
31410 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
31413 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
31414 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
31415 and support both V2DF and V2DI modes.
31416 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
31417 support both V2DF and V2DI modes.
31418 (general): Delete trailing whitespace from a few patterns.
31420 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
31421 V2DF/V2DI interleave high/low builtins.
31423 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
31426 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
31427 interleave high/low functions.
31429 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
31431 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
31432 #pragma extern_prefix.
31434 2010-02-25 Jakub Jelinek <jakub@redhat.com>
31437 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
31438 BLKmode, assert op0 is a MEM and just adjust its mode.
31441 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
31442 if bitpos isn't multiple of mode's bitsize.
31444 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
31446 * c.opt (-ftemplate-depth=): New.
31447 (-ftemplate-depth-): Deprecate.
31448 * optc-gen.awk: Handle -ftemplate-depth=.
31449 * opth-gen.awk: Likewise.
31450 * c-opts.c (c_common_handle_option): Likewise.
31451 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
31453 2010-02-24 Jason Merrill <jason@redhat.com>
31455 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
31457 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31459 * cfg.c (alloc_aux_for_block): Remove inline.
31460 (alloc_aux_for_edge): Likewise.
31462 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31464 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
31466 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31468 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
31469 * config/i386/sol2-gas.h: New file.
31470 * config.gcc (i[34567]86-*-solaris2*): Use it.
31472 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
31475 * c-typeck.c (ep_convert_and_check): New.
31476 (build_conditional_expr): Use it.
31477 (build_binary_op): Likewise.
31479 2010-02-24 Jakub Jelinek <jakub@redhat.com>
31481 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
31484 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
31485 bounds even for -O+.
31486 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
31487 expr needs to have DECL_NAME set.
31489 2010-02-24 Nick Clifton <nickc@redhat.com>
31491 * config/mep/mep.c: Include gimple.h.
31492 (mep_function_uses_sp): Delete unused function.
31493 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
31494 parameters. Use unsigned integers to count args. Return a
31495 NULL_RTX instead of an error_mark_node. Toidy up formatting.
31497 2010-02-23 Jakub Jelinek <jakub@redhat.com>
31500 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
31501 greater or equal to nelt instead of 2 * nelt.
31502 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
31505 2010-02-23 Jason Merrill <jason@redhat.com>
31508 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
31509 in cfun->local_decls even if they have register types.
31512 * stor-layout.c (place_field): Don't warn about unnecessary
31513 DECL_PACKED if the type is packed.
31515 2010-02-23 Jakub Jelinek <jakub@redhat.com>
31518 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
31519 GOTOFF relocs, even when the base reg isn't pic pointer.
31521 2010-02-23 Michael Matz <matz@suse.de>
31524 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
31525 (expand_gimple_basic_block): Generate and use debug temps if there
31526 are debug uses left after the last real use of TERed ssa names.
31527 Unlink debug immediate uses when they are expanded.
31529 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
31532 * config/i386/i386.c (override_options): Reorganise to provide
31533 better error messages.
31535 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
31537 PR middle-end/43083
31538 * graphite-scop-detection.c (create_single_exit_edge): Move
31539 the call to find_single_exit_edge to....
31540 (create_sese_edges): ...here. Don't handle multiple edges
31541 exiting the function.
31542 (build_graphite_scops): Don't handle multiple edges
31543 exiting the function.
31545 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
31547 PR middle-end/43097
31548 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
31549 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
31551 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
31553 PR middle-end/43026
31554 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
31556 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
31559 * c-typeck.c (convert_arguments): Print declaration location.
31560 * c-common.c (validate_nargs): Rename as
31561 builtin_function_validate_nargs.
31562 (check_builtin_function_arguments): Update.
31564 2010-02-22 Richard Guenther <rguenther@suse.de>
31567 * tree-inline.c (declare_return_variable): Use the type of
31568 the call stmt lhs if available.
31570 2010-02-22 Duncan Sands <baldrick@free.fr>
31572 * passes.c (register_pass): Always consider all pass lists when
31573 ref_pass_instance_number is zero.
31575 2010-02-22 Richard Guenther <rguenther@suse.de>
31577 PR tree-optimization/42749
31578 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
31579 parameter. Do arithmetic in the original type.
31580 (update_accumulator_with_ops): Likewise.
31581 (adjust_accumulator_values): Adjust.
31583 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31585 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
31586 (QI to BLKmode splitter): New splitter.
31588 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
31590 * config/i386/i386.c (initial_ix86_tune_features): Turn on
31591 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
31593 2010-02-22 Richard Guenther <rguenther@suse.de>
31595 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
31597 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
31599 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
31600 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
31601 ($(T)crti.o, $(T)crtn.o): Remove rules.
31603 2010-02-21 Tobias Burnus <burnus@net-b.de>
31606 * doc/invoke.texi (-fassociative-math): Document that this
31607 option is automatically enabled for Fortran.
31609 2010-02-20 David S. Miller <davem@davemloft.net>
31611 * configure.ac: Test if linker and assembler properly support
31612 GOTDATA_OP relocations.
31613 * configure: Rebuild.
31614 * config.in: Likewise.
31615 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
31616 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
31617 (movsi_high_pic): Likewise.
31618 (movdi_lo_sum_pic): Likewise.
31619 (movdi_high_pic): Likewise.
31620 (movsi_pic_gotdata_op): New pattern.
31621 (movdi_pic_gotdata_op): Likewise.
31622 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
31623 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
31625 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
31628 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
31629 attribute to ssemul.
31630 (xop_mulv2div2di3_high): Ditto.
31632 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
31635 * c.opt (Wconversion-null): New option.
31636 * doc/invoke.texi (Wconversion-null): Document.
31638 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
31640 * common.opt (Wlarger-than-): Add Undocumented.
31642 2010-02-19 Mike Stump <mikestump@comcast.net>
31644 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
31646 2010-02-19 Jason Merrill <jason@redhat.com>
31649 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
31650 * configure: Likewise.
31652 2010-02-20 Alan Modra <amodra@gmail.com>
31654 PR middle-end/42344
31655 * cgraph.h (cgraph_make_decl_local): Declare.
31656 * cgraph.c (cgraph_make_decl_local): New function.
31657 (cgraph_make_node_local): Use it.
31658 * cgraphunit.c (cgraph_function_versioning): Likewise.
31659 * ipa.c (function_and_variable_visibility): Likewise.
31661 2010-02-19 Jakub Jelinek <jakub@redhat.com>
31664 * except.c (sjlj_emit_function_enter): Don't call
31665 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
31667 * rtl.h (add_reg_br_prob_note): Remove prototype.
31669 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
31672 * c-common.c (conversion_warning): Remove widening conversions
31673 before checking the conversion of integers to reals.
31675 2010-02-19 Mike Stump <mikestump@comcast.net>
31677 PR middle-end/43125
31678 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
31681 * cgraphunit.c (process_function_and_variable_attributes): Check
31682 DECL_PRESERVE_P instead of looking up attribute "used".
31683 * ipa-pure-const.c (check_decl): Likewise.
31684 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
31685 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
31686 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
31687 instead of attribute "used".
31688 * config/sol2-c.c (solaris_pragma_init): Likewise.
31689 (solaris_pragma_fini): Likewise.
31691 2010-02-19 Jakub Jelinek <jakub@redhat.com>
31693 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
31694 Use XCNEW instead of xcalloc.
31695 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
31696 XNEW instead of xmalloc.
31697 (get_fields): Use XNEWVEC instead of xmalloc.
31700 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
31701 populate vars array.
31702 (create_new_general_access): For debug stmts just reset value.
31703 (get_stmt_accesses): For accesses within debug stmts just record them
31704 using add_access_to_acc_sites instead of preventing the peeling or
31705 counting them as accesses.
31707 PR middle-end/42233
31708 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
31710 2010-02-19 Richard Guenther <rguenther@suse.de>
31712 PR tree-optimization/42916
31713 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
31716 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
31718 * configure.ac: Replace all uses of changequote in macro arguments
31719 with proper quoting.
31721 2010-02-19 Jakub Jelinek <jakub@redhat.com>
31723 PR middle-end/42233
31724 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
31726 2010-02-19 Richard Guenther <rguenther@suse.de>
31728 PR tree-optimization/42944
31729 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
31730 test for aliasing with errno.
31732 2010-02-19 Jakub Jelinek <jakub@redhat.com>
31734 PR middle-end/42233
31735 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
31736 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
31737 * dojump.c: Include output.h.
31738 (inv): New inline function.
31739 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
31740 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
31741 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
31742 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
31743 argument, pass it down to other calls.
31744 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
31745 add REG_BR_PROB note to the conditional jump.
31746 * cfgexpand.c (add_reg_br_prob_note): Removed.
31747 (expand_gimple_cond): Don't call it, add the probability
31748 as last argument to jumpif_1/jumpifnot_1.
31749 * Makefile.in (dojump.o): Depend on output.h.
31750 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
31752 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
31753 * stmt.c (do_jump_if_equal): Likewise.
31754 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
31755 * loop-unswitch.c (compare_and_jump_seq): Likewise.
31756 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
31758 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
31759 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
31760 jumpifnot_1 callers.
31761 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
31763 (store_expr): Adjust jumpifnot caller.
31764 (store_constructor): Adjust jumpif caller.
31766 PR middle-end/42233
31767 * gimplify.c (gimple_boolify): For __builtin_expect call
31768 gimple_boolify also on its first argument.
31770 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
31772 * configure.ac (gnu-unique-object): Wrap regexps using [] in
31774 (__stack_chk_fail): Ditto. Remove quadrigraphs.
31775 * configure: Regenerated.
31777 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31779 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
31780 lang_hooks.types_compatible_p instead of comptypes.
31782 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
31784 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
31785 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
31786 if __prefer_thumb__ is defined.
31788 2010-02-18 Martin Jambor <mjambor@suse.cz>
31790 PR tree-optimization/43066
31791 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
31792 array with zero-sized element type.
31794 2010-02-18 Jakub Jelinek <jakub@redhat.com>
31796 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
31797 rtx, allocate struct var_loc_node here and return it to the
31798 caller, and only if it is actually needed.
31799 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
31800 move it earlier and return immediately if it returns NULL.
31802 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
31804 * config/sparc/gas.h: New file. Restore
31805 TARGET_ASM_NAMED_SECTION to its ELF default.
31806 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
31807 check !HAVE_GNU_AS.
31808 * config/sparc/sparc.c (sparc_elf_asm_named_section):
31809 Likewise. Add ATTRIBUTE_UNUSED to prototype.
31810 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
31811 after sparc/sysv4.h.
31813 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
31815 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
31817 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
31819 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
31820 patterns from predicated pattern.
31822 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
31825 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
31826 for insn mnemonic suffix.
31828 2010-02-17 Richard Guenther <rguenther@suse.de>
31830 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
31833 2010-02-17 Jakub Jelinek <jakub@redhat.com>
31836 * caller-save.c (save_call_clobbered_regs): If BB ends with
31837 a DEBUG_INSN, move any notes in between last real insn and the last
31838 DEBUG_INSN after the last DEBUG_INSN.
31840 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
31842 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
31843 Fix return type. Fix argument type. Explain meaning of return value.
31845 2010-02-16 Richard Guenther <rguenther@suse.de>
31847 PR tree-optimization/41043
31848 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
31849 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
31851 (vrp_visit_phi_node): ... but only for loop PHI nodes.
31853 2010-02-16 Ira Rosen <irar@il.ibm.com>
31855 PR tree-optimization/43074
31856 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
31857 * tree-vect-loop.c (vect_analyze_loop_operations): Add
31858 vectorizable cycles in hybrid SLP check.
31859 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
31861 2010-02-16 Richard Guenther <rguenther@suse.de>
31863 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
31864 (true_dependence): If memrefs_conflict_p computes must-alias
31865 trust it. Move TBAA check after offset-based disambiguation.
31866 (canon_true_dependence): Likewise.
31868 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
31870 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
31871 * doc/invoke.texi: Document it.
31872 * var-tracking.c: Include toplev.h and params.h.
31873 (vt_find_locations): Return bool indicating success. Compute
31874 hash sizes unconditionally. Check new parameter, report.
31875 (variable_tracking_main_1): Check vt_find_locations results and
31876 retry. Renamed from...
31877 (variable_tracking_main): ... this. New wrapper to preserve
31878 flag_var_tracking_assignments.
31879 * Makefile.in (var-tracking.o): Adjust dependencies.
31881 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
31882 Jakub Jelinek <jakub@redhat.com>
31885 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
31886 if weak_import attribute is present.
31887 * config/darwin.c (machopic_select_section): Likewise.
31889 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
31891 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
31892 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
31893 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
31894 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
31896 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
31899 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
31900 Fix argument types.
31902 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
31903 Rewrite text to refer to the names.
31905 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
31907 * config/i386/i386-builtin-types.def
31908 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
31909 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
31910 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
31911 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
31912 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
31913 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
31914 IX86_BUILTIN_VPERMIL2PS256.
31915 (MULTI_ARG_4_DF2_DI_I): Defined.
31916 (MULTI_ARG_4_DF2_DI_I1): Defined.
31917 (MULTI_ARG_4_SF2_SI_I): Defined.
31918 (MULTI_ARG_4_SF2_SI_I1): Defined.
31919 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
31920 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
31921 __builtin_ia32_vpermil2ps256.
31922 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
31923 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
31924 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
31925 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
31926 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
31927 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
31928 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
31929 CODE_FOR_xop_vpermil2v8sf3.
31930 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
31931 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
31932 * config/i386/xopintrin.h (_mm_permute2_pd): New.
31933 (_mm256_permute2_pd): New.
31934 (_mm_permute2_ps): New.
31935 (_mm256_permute2_ps): New.
31937 2010-02-15 Nick Clifton <nickc@redhat.com>
31939 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
31940 boolean parameters. Use emit_jump_insn when emitting a pop
31941 instruction containing a return insn.
31942 (push): Use 'true' rather than '1' as second parameter to F.
31943 (h8300_expand_prologue): Likewise.
31944 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
31945 (h8300_expand_epilogue): Likewise.
31947 2010-02-15 Richard Guenther <rguenther@suse.de>
31949 PR middle-end/43068
31950 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
31953 2010-02-15 Nick Clifton <nickc@redhat.com>
31955 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
31958 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
31960 * intl.c (fake_ngettext): New function.
31961 * intl.h (fake_ngettext): Declare.
31962 (ngettext): Define macro.
31963 * collect2.c (notice_translated): New function.
31964 (main): Use notice_translated and ngettext.
31965 * collect2.h (notice_translated): Declare.
31967 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
31969 * reorg.c (delete_computation): Comment fixes.
31970 * caller-save.c (setup_save_areas): Idem.
31971 * sel-sched-dump.c (dump_lv_set): Idem.
31974 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31976 * config/s390/s390.c (s390_sched_init): New function.
31977 (TARGET_SCHED_INIT): Target hook defined.
31979 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
31980 Jack Howarth <howarth@bromo.med.uc.edu>
31981 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
31984 Partial revert of unintended change in fix for PR41605.
31985 * config/darwin.h: Fix typo.
31986 * config/darwin9.h: Same.
31988 2010-02-11 Jakub Jelinek <jakub@redhat.com>
31990 * c-pch.c (pch_init): Clear v.
31992 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
31994 PR middle-end/42930
31995 * graphite-scop-detection.c (graphite_can_represent_scev): Call
31996 graphite_can_represent_init for MULT_EXPR.
31998 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
32000 PR middle-end/42914
32001 PR middle-end/42530
32002 * graphite-sese-to-poly.c (remove_phi): New.
32003 (translate_scalar_reduction_to_array): Call remove_phi.
32005 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
32007 PR middle-end/42771
32008 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
32009 * graphite-clast-to-gimple.h (gloog): Update declaration.
32010 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
32011 * graphite-poly.h (struct poly_bb): Add missing comments.
32012 (struct scop): Add poly_scop_p field.
32013 (POLY_SCOP_P): New.
32014 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
32015 * graphite.c (graphite_transform_loops): Build the polyhedral
32016 representation for each scop before code generation.
32017 * sese.c (rename_variables_in_operand): Removed.
32018 (rename_variables_in_expr): Return the renamed expression.
32019 (rename_sese_parameters): New.
32020 * sese.h (rename_sese_parameters): Declared.
32022 2010-02-11 Richard Guenther <rguenther@suse.de>
32024 PR tree-optimization/42998
32025 * tree-ssa-pre.c (create_expression_by_pieces): Treat
32026 POINTER_PLUS_EXPR properly.
32028 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
32029 Changpeng Fang <changpeng.fang@amd.com>
32031 PR middle-end/40886
32032 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
32033 the cost of an IV candidate when the IV is used in a test against zero.
32035 * gcc.dg/tree-ssa/ivopts-3.c: New.
32037 2010-02-11 Richard Guenther <rguenther@suse.de>
32040 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
32041 pointer-vs-decl case by swapping refs. Handle some cases
32042 of pointer-vs-decl disambiguations more conservatively.
32043 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
32044 to false after expanding.
32046 2010-02-11 Richard Guenther <rguenther@suse.de>
32049 * gcc.c (process_command): Handle LTO file@offset case more
32052 2010-02-11 Jakub Jelinek <jakub@redhat.com>
32054 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
32055 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
32057 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
32059 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
32060 if MEM's mode size isn't DWARF2_ADDR_SIZE.
32061 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
32062 Optimize eq/ne comparisons when both arguments are known to be
32064 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
32065 Don't mask operands unnecessarily if they are known to be already
32068 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
32070 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
32073 2010-02-10 Richard Guenther <rguenther@suse.de>
32075 PR tree-optimization/43017
32076 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
32077 for wrapping signed arithmetic.
32079 2010-02-10 Jakub Jelinek <jakub@redhat.com>
32082 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
32083 if no debug info should be emitted for it.
32085 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
32087 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
32088 note when flag_exceptions is set.
32090 2010-02-10 Duncan Sands <baldrick@free.fr>
32092 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
32094 2010-02-10 Richard Guenther <rguenther@suse.de>
32097 * tree.c (get_unwidened): Handle constants.
32098 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
32100 2010-02-10 Martin Jambor <mjambor@suse.cz>
32103 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
32104 check for variable argument counts independently.
32106 2010-02-10 Christian Bruel <christian.bruel@st.com>
32109 * config/sh/sh.c (find_barrier): Increase length for non delayed
32110 conditional branches.
32112 2010-02-10 Christian Bruel <christian.bruel@st.com>
32114 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
32116 2010-02-10 Jakub Jelinek <jakub@redhat.com>
32118 * builtins.c (set_builtin_user_assembler_name): Also handle
32119 ffs if int is smaller than word.
32121 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
32123 PR middle-end/42973
32124 * ira-conflicts.c (get_dup): Remove.
32125 (process_reg_shuffles): Add new parameter. Use it as an
32126 additional guard for copy generation.
32127 (add_insn_allocno_copies): Rewrite.
32129 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
32131 * common.opt (fsched2-use-traces): Preserved for backward
32133 * doc/invoke.texi: Remove the documentation about option
32134 -fsched2-use-traces.
32135 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
32136 flag_sched2_use_traces.
32137 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
32138 the backward compatibility flag section.
32140 2010-02-09 Richard Guenther <rguenther@suse.de>
32142 PR tree-optimization/43008
32143 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
32144 make HEAP variables initialized from global memory if they
32145 are not known builtin functions.
32146 (find_func_aliases): Adjust.
32148 2010-02-09 Richard Guenther <rguenther@suse.de>
32150 PR tree-optimization/43000
32151 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
32152 arithmetic manually.
32154 2010-02-08 Jakub Jelinek <jakub@redhat.com>
32156 PR tree-optimization/42931
32157 * tree-loop-linear.c (try_interchange_loops): Don't call
32158 double_int_mul if estimated_loop_iterations failed.
32160 2010-02-08 Martin Jambor <mjambor@suse.cz>
32162 PR middle-end/42898
32163 * tree-sra.c (build_accesses_from_assign): Do not mark in
32164 should_scalarize_away_bitmap if stmt has volatile ops.
32165 (sra_modify_assign): Do not process assigns piecemeal if if stmt
32168 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
32170 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
32172 2010-02-07 Adam Nemet <adambnmet@gmail.com>
32174 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
32175 before the pattern.
32177 2010-02-07 Andrew Pinski <pinskia@gmail.com>
32179 PR middle-end/42946
32180 * df-core.c (df_finish_pass): Change type of saved_flags to int.
32182 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
32184 PR middle-end/42988
32185 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
32186 to unknown_dependence.
32187 (graphite_legal_transform_dr): Handle the unknown_dependence.
32188 (graphite_carried_dependence_level_k): Same.
32190 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
32192 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
32194 2010-02-07 Richard Guenther <rguenther@suse.de>
32196 PR middle-end/42991
32197 * expr.c (get_inner_reference): Always initialize *pbitsize.
32199 2010-02-07 Richard Guenther <rguenther@suse.de>
32201 PR middle-end/42956
32202 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
32203 new ARRAY_REFs on variable size element or minimal index arrays.
32205 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
32206 gimple_fold_indirect_ref.
32208 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
32211 * arm.c (arm_override_options): Just return if the user has specified
32212 an invalid fpu name.
32214 2010-02-03 Jason Merrill <jason@redhat.com>
32217 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
32218 i386_pe_maybe_record_exported_symbol.
32220 2010-02-05 Steve Ellcey <sje@cup.hp.com>
32223 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
32224 (pa_delegitimize_address): New function.
32226 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
32228 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
32229 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
32231 2010-02-05 Richard Guenther <rguenther@suse.de>
32234 * lto-streamer-in.c (get_resolution): Deal with references
32235 to undefined functions.
32237 2010-02-05 Richard Guenther <rguenther@suse.de>
32239 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
32240 (fold_const_aggregate_ref): Likewise.
32241 (ccp_fold_stmt): Substitute loads.
32242 (maybe_fold_reference): Verify types before substituting.
32244 (fold_gimple_assign): Unshare properly.
32245 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
32247 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
32249 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
32250 for rs6000_gen_cell_microcode.
32252 2010-02-04 Richard Guenther <rguenther@suse.de>
32254 PR rtl-optimization/42952
32255 * dse.c (const_or_frame_p): Remove MEM handling.
32257 2010-02-04 Nick Clifton <nickc@redhat.com>
32259 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
32260 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
32261 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
32262 (mn10300_asm_output_mi_thunk): New function.
32263 (mn10300_can_output_mu_thunk): New function.
32264 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
32265 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
32266 (FUNCTION_ARG): Delete incorrect comment.
32268 2010-02-03 Jason Merrill <jason@redhat.com>
32271 * fold-const.c (operand_equal_p): Handle erroneous types.
32273 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
32275 * config/h8300/h8300.md (can_delay): Fix attibute condition.
32277 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
32279 PR rtl-optimization/42941
32280 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
32283 2010-02-03 Jason Merrill <jason@redhat.com>
32286 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
32288 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
32291 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
32292 (cselib_reset_table): Renamed from...
32293 (cselib_reset_table_with_next_value): ... this.
32294 (cselib_get_next_uid): Renamed from...
32295 (cselib_get_next_unknown_value): ... this.
32296 * cselib.c (next_uid): Renamed from...
32297 (next_unknown_value): ... this.
32298 (cselib_clear_table): Adjust.
32299 (cselib_reset_table): Adjust. Renamed from...
32300 (cselib_reset_table_with_next_value): ... this.
32301 (cselib_get_next_uid): Adjust. Renamed from...
32302 (cselib_get_next_unknown_value): ... this.
32303 (get_value_hash): Use hash.
32304 (cselib_hash_rtx): Likewise.
32305 (new_cselib_val): Adjust. Set and dump uid.
32306 (cselib_lookup_mem): Pass next_uid as hash.
32307 (cselib_subst_to_values): Likewise.
32308 (cselib_log_lookup): Dump uid.
32309 (cselib_lookup): Pass next_uid as hash. Adjust.
32310 (cselib_process_insn): Adjust.
32311 (cselib_init): Initialize next_uid.
32312 (cselib_finish): Adjust.
32313 (dump_cselib_table): Likewise.
32314 * dse.c (canon_address): Dump value uid.
32315 * print-rtl.c (print_rtx): Print value uid.
32316 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
32318 (dv_uid): New function, sort of renamed from...
32319 (dv_htab_hash): ... this, reimplemented in terms of it and...
32320 (dv_uid2hash): ... this. New.
32321 (variable_htab_eq): Drop excess assertions.
32322 (tie_break_pointers): Removed.
32323 (canon_value_cmp): Compare uids.
32324 (variable_post_merge_New_vals): Print uids.
32325 (vt_add_function_parameters): Adjust.
32326 (vt_initialize): Reset table. Adjust.
32328 2010-02-03 Richard Guenther <rguenther@suse.de>
32330 PR tree-optimization/42944
32331 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
32332 (call_may_clobber_ref_p_1): Likewise. Properly handle
32333 malloc and calloc clobbering errno.
32335 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
32337 * doc/invoke.texi: Fix name of sched1 dump.
32339 * opts.c (decode_options): Set flag_tree_switch_conversion
32340 only conditionally on optimize >= 2.
32342 * gcse.c: Assorted comment fixes in pass description.
32344 2010-02-03 Anthony Green <green@moxielogic.com>
32346 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
32347 nop padding in order to maintain alignment of storage location of
32348 target function address.
32349 (moxie_trampoline_init): Store target function address at newly
32351 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
32353 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
32355 2010-02-03 Richard Guenther <rguenther@suse.de>
32357 PR middle-end/42927
32358 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
32360 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32362 * config.gcc: Reenable check for obsolete targets.
32363 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
32364 mips-sgi-irix6.[0-4]*.
32366 2010-02-02 Nick Clifton <nickc@redhat.com>
32368 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
32369 constant size of 4 as being the same as 0.
32370 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
32371 can take values in the range 0..4.
32373 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
32376 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
32377 as _darwin10_Unwind_FindEnclosingFunction().
32378 * libgcc-libsystem.ver: New.
32380 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
32383 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
32384 implicitly set registers.
32386 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
32388 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
32389 (arm_override_options): Allow automatic selection of the thread
32390 pointer register if thumb2.
32391 (legitimize_pic_address): Improve code sequences for Thumb2.
32392 (arm_call_tls_get_addr): Likewise.
32393 (legitimize_tls_address): Likewise.
32394 * arm.md (pic_load_addr_arm): Delete. Replace with ...
32395 (pic_load_addr_32bit): ... this. New named pattern.
32396 * thumb2.md (pic_load_addr_thumb2): Delete.
32397 (pic_load_dot_plus_four): Delete.
32398 (tls_load_dot_plus_four): New named pattern.
32400 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32403 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
32404 Document fix for TLS bug.
32406 2010-01-31 Richard Guenther <rguenther@suse.de>
32408 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
32409 conservatively correct.
32411 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32415 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32417 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
32419 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
32421 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
32423 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
32425 * config.gcc: Adjust order of makefile fragments for mingw targets.
32427 2010-01-31 Richard Guenther <rguenther@suse.de>
32429 PR middle-end/42898
32430 * gimplify.c (gimplify_init_constructor): For volatile LHS
32431 initialize a temporary.
32433 2010-01-31 Matthias Klose <doko@ubuntu.com>
32435 * configure.ac: Fix __stack_chk_fail check for cross builds configured
32437 * configure: Regenerate.
32439 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
32441 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
32442 the same alias set and their sizes different constantness.
32443 (aliasing_component_refs_p): Revert 2009-10-24 change.
32445 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32447 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
32450 2010-01-29 Richard Guenther <rguenther@suse.de>
32452 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
32453 Assert we successfully updated the call.
32455 2010-01-29 Jakub Jelinek <jakub@redhat.com>
32457 PR rtl-optimization/42889
32458 * df.h (df_set_bb_dirty_nonlr): New prototype.
32459 * df-core.c (df_set_bb_dirty_nonlr): New function.
32460 * df-scan.c (df_insn_rescan): Call it instead of
32461 df_set_bb_dirty for DEBUG_INSNs.
32463 2010-01-29 Richard Guenther <rguenther@suse.de>
32465 PR middle-end/37448
32466 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
32467 quadratic behavior in most cases.
32469 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
32472 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
32473 in the call to gen_x86_movsicc_0_m1.
32475 2010-01-28 Richard Guenther <rguenther@suse.de>
32477 PR tree-optimization/42871
32478 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
32480 2010-01-28 Richard Guenther <rguenther@suse.de>
32482 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
32483 into call arguments.
32485 2010-01-28 Richard Guenther <rguenther@suse.de>
32487 PR middle-end/42883
32488 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
32489 the forwarder if the destination is an EH landing pad.
32491 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
32493 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
32494 block list passed to gimple_duplicate_sese_tail.
32495 (parallelize_loops): Avoid parallelization when the function
32496 has_nonlocal_label.
32497 Avoid parallelization when the preheader is IRREDUCIBLE.
32498 Try to optimize when estimated_loop_iterations_int is unresolved.
32499 Add the loop's location to the dump file.
32500 * tree-cfg.c (add_phi_args_after_redirect): Remove.
32501 (gimple_duplicate_sese_tail): Remove the check for the latch.
32502 Redirect nexits to the exit block.
32503 Remove handling of the incoming edges to the latch.
32504 Redirect the backedge from the copied latch to the exit bb.
32506 2010-01-28 Michael Matz <matz@suse.de>
32509 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
32510 Wrap force_reg into a sequence, emit it before user.
32512 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
32514 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
32516 (arm_legacy_rev): Likewise.
32517 (thumb_legacy_rev): Likewise.
32519 2010-01-27 Jakub Jelinek <jakub@redhat.com>
32521 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
32522 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
32523 on MEM's address failed, try avoid_constant_pool_reference and
32524 recurse if it returned something different.
32525 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
32526 address, try avoid_constant_pool_reference and recurse if it
32527 returned something different.
32528 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
32529 address and avoid_constant_pool_reference returned something
32530 different, don't set have_address.
32532 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
32535 * var-tracking.c (val_store): Add modified argument, obey it.
32537 (count_uses): Move down logging of main.
32538 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
32539 don't need resolution.
32540 (emit_notes_in_bb): Likewise.
32542 2010-01-27 Richard Guenther <rguenther@suse.de>
32544 PR middle-end/42878
32545 * tree-inline.c (remap_decl): Delay remapping of SSA name
32546 default definitions until we need them.
32548 2010-01-27 Jakub Jelinek <jakub@redhat.com>
32550 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
32551 (rs6000_delegitimize_address): New function.
32553 * config/s390/s390.c (s390_delegitimize_address): Call
32554 delegitimize_mem_from_attrs.
32556 PR middle-end/42874
32557 * tree-inline.c (cannot_copy_type_1): Removed.
32558 (copy_forbidden): Don't forbid copying of functions containing
32559 records/unions with variable length fields.
32561 2010-01-27 Christian Bruel <christian.bruel@st.com>
32565 * config/sh/sh.c (find_barrier): Increase length for non delayed
32566 conditional branches.
32568 2010-01-27 Matthias Klose <doko@ubuntu.com>
32570 * configure.ac (gnu-unique-object): Fix ldd version check.
32571 * configure: Regenerate.
32573 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32575 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
32577 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
32578 Test for HAVE_GNU_AS value.
32580 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32582 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
32583 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
32584 INT64_TYPE): Define.
32585 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
32586 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
32587 INT_LEAST64_TYPE): Define.
32588 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
32589 UINT_LEAST64_TYPE): Define.
32590 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
32591 INT_FAST64_TYPE): Define.
32592 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
32593 UINT_FAST64_TYPE): Define.
32594 (INTMAX_TYPE, UINTMAX_TYPE): Define.
32595 (INTPTR_TYPE, UINTPTR_TYPE): Define.
32596 (SIG_ATOMIC_TYPE): Define.
32598 2010-01-26 Richard Guenther <rguenther@suse.de>
32600 * df-scan.c (df_scan_set_bb_info): Remove assert.
32601 (df_insn_rescan_debug_internal): Merge asserts.
32602 (df_install_ref): Likewise.
32603 (df_mark_reg): Use bitmap_set_range.
32604 (df_hard_reg_used_p): Remove assert.
32605 (df_hard_reg_used_count): Likewise.
32607 2010-01-26 Richard Guenther <rguenther@suse.de>
32609 PR rtl-optimization/42685
32610 * web.c (web_main): Ignore DEBUG_INSNs.
32612 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
32614 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
32616 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
32617 Fix types of fndecl and arglist parameters.
32619 2010-01-26 Richard Guenther <rguenther@suse.de>
32621 PR middle-end/42806
32622 * tree-eh.c (unsplit_eh): Skip debug insns.
32624 2010-01-26 Richard Guenther <rguenther@suse.de>
32626 PR tree-optimization/42250
32627 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
32629 2010-01-26 Jakub Jelinek <jakub@redhat.com>
32632 * omp-low.c (expand_omp_sections): Only use single_pred if
32633 l2_bb is single_pred_p.
32635 2010-01-25 Christian Bruel <christian.bruel@st.com>
32638 * config/sh/sh.c (find_barrier): Increase length for non delayed
32639 conditional branches.
32640 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
32642 2010-01-24 David S. Miller <davem@davemloft.net>
32644 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
32645 define if not using GAS.
32646 * config/sparc/sparc.c (sparc_elf_asm_named_section):
32647 Likewise. Delete SECTION_MERGE code, which is only applicable
32650 2010-01-24 Mark Mitchell <mark@codesourcery.com>
32653 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
32654 mangling of va_list in system headers.
32656 2010-01-23 Toon Moene <toon@moene.org>
32658 * tree-predcom.c (combine_chains): Return NULL, not false.
32660 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
32662 * tree-loop-distribution.c (distribute_loop): Fix declaration and
32663 initialization of variable res to agree with return type.
32665 2010-01-22 Steve Ellcey <sje@cup.hp.com>
32667 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
32668 * tree-sra.c: Add include of expr.h.
32670 2010-01-22 Jakub Jelinek <jakub@redhat.com>
32672 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
32673 insert the debug stmt on the single non-EH edge from the stmt.
32675 2010-01-22 Richard Henderson <rth@redhat.com>
32678 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
32679 the RHS until after generate_subtree_copies has insertted its
32680 code before the current statement.
32682 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
32684 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
32686 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
32688 2010-01-21 Martin Jambor <mjambor@suse.cz>
32690 PR tree-optimization/42585
32691 * tree-sra.c (struct access): New field grp_total_scalarization.
32692 (dump_access): Dump the new field.
32693 (should_scalarize_away_bitmap): New variable.
32694 (cannot_scalarize_away_bitmap): Likewise.
32695 (sra_initialize): Allocate new bitmaps.
32696 (sra_deinitialize): Free new bitmaps.
32697 (create_access_1): New function.
32698 (create_access): Parts moved to create_access_1.
32699 (type_consists_of_records_p): New function.
32700 (completely_scalarize_record): Likewise.
32701 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
32702 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
32703 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
32705 (analyze_all_variable_accesses): Completely scalarize small eligible
32708 2010-01-21 Martin Jambor <mjambor@suse.cz>
32710 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
32712 2010-01-21 Andrew Haley <aph@redhat.com>
32714 * gcc.c (process_command): Move lang_specific_driver before
32715 setting cc_libexec_prefix.
32717 2010-01-21 Richard Guenther <rguenther@suse.de>
32719 PR middle-end/19988
32720 * fold-const.c (negate_expr_p): Pretend only negative
32721 real constants are easily negatable.
32723 2010-01-20 Janis Johnson <janis187@us.ibm.com>
32724 Jason Merrill <jason@redhat.com>
32726 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
32727 (TYPE_TRANSPARENT_AGGR): this, for union and record.
32728 * calls.c (initialize argument_information): Handle it.
32729 * c-common.c (handle_transparent_union_attribute): Use new name.
32730 * c-decl.c (finish_struct): Ditto.
32731 * c-typeck.c (type_lists_compatible_p): Ditto.
32732 (convert_for_assignment): Use new name and also handle record.
32733 * function.c (aggregate_value_p): Handle it.
32734 (pass_by_reference): Ditto.
32735 (assign_parm_data_types): Ditto.
32736 * print-tree.c (print_node): Ditto.
32737 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
32738 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
32739 * tree.c (first_field): New fn.
32741 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
32744 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
32745 even when linking statically, for now.
32747 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
32750 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
32751 without a cselib val.
32752 (count_uses): Accept MO_VAL_SET with no val on stores.
32753 (add_stores): Likewise.
32755 2010-01-20 Jakub Jelinek <jakub@redhat.com>
32757 * var-tracking.c (check_value_val): Add a compile time assertion.
32758 (dv_is_decl_p): Simplify.
32759 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
32760 gcc_assert if ENABLE_CHECKING.
32762 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
32765 * var-tracking.c: Include tree-flow.h.
32766 (mem_dies_at_call): New.
32767 (dataflow_set_preserve_mem_locs): Use it.
32768 (dataflow_set_remove_mem_locs): Likewise.
32769 (dump_var): Renamed from dump_variable. Adjust all callers.
32770 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
32771 * Makefile.in (var-tracking.o): Adjust deps.
32773 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
32775 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
32777 2010-01-20 Richard Guenther <rguenther@suse.de>
32779 PR tree-optimization/42717
32780 * tree-ssa-dce.c (get_live_post_dom): Remove.
32781 (forward_edge_to_pdom): Take an arbitrary edge to copy
32782 degenerate PHI args from.
32783 (remove_dead_stmt): Use the first post-dominator even if it
32784 does not contain live statements as redirection destination.
32786 2010-01-20 Richard Guenther <rguenther@suse.de>
32788 * tree-inline.c (estimate_num_insns): Handle EH builtins.
32790 2010-01-20 Jakub Jelinek <jakub@redhat.com>
32792 * sel-sched.c (create_speculation_check): Remove set but not used
32794 (try_transformation_cache): Remove set but not used variable ds.
32795 (calculate_privileged_insns): Remove set but not used variables
32796 cur_insn and min_spec_insn.
32797 (find_best_expr): Remove set but not used variable avail_n.
32798 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
32800 * cgraphunit.c (assemble_thunk): Remove set but not used variable
32802 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
32803 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
32804 new_scop_exit_edge.
32806 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
32809 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
32810 cpu types. Add support for *-sse3 cpu types.
32811 (x86_64-*-*): Ditto.
32813 2010-01-20 Jakub Jelinek <jakub@redhat.com>
32815 PR middle-end/42803
32816 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
32817 argument, call initializer_constant_valid_p_1 instead of
32818 initializer_constant_valid_p, pass CACHE to it, return NULL
32819 immediately if first call returns NULL.
32820 (initializer_constant_valid_p_1): New function.
32821 (initializer_constant_valid_p): Use it.
32823 2010-01-20 Thomas Quinot <quinot@adacore.com>
32825 * tree.def (PLACEHOLDER_EXPR): Fix comment.
32827 2010-01-20 Jakub Jelinek <jakub@redhat.com>
32829 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
32830 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
32831 (loc_list_from_tree): Don't handle unsigned division. Handle
32832 signed modulo using DW_OP_{over,over,div,mul,minus}.
32833 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
32834 modulo instead of signed.
32836 2010-01-20 DJ Delorie <dj@redhat.com>
32838 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
32840 (h8300_emit_stack_adjustment): Propogate it.
32842 (h8300_expand_prologue): Likewise.
32843 (h8300_expand_epilogue): Likewise.
32845 2010-01-19 Michael Matz <matz@suse.de>
32847 PR tree-optimization/41783
32848 * tree-data-ref.c (toplevel): Include flags.h.
32849 (dump_data_dependence_relation): Also dump the inputs if the
32850 result will be unknown.
32851 (split_constant_offset_1): Look through some conversions.
32852 * tree-predcom.c (determine_roots_comp): Restart a new chain if
32853 the offset from last element is too large.
32854 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
32855 (reassociate_to_the_same_stmt): Handle vector registers.
32856 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
32857 (e.g. conversions).
32858 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
32859 wide_prolog_niters argument, emit widening instructions.
32860 (vect_do_peeling_for_alignment): Adjust caller, use widened
32861 variant of the iteration cound.
32862 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
32864 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32867 * config/arm/neon-testgen.m (emit_automatics): New parameter
32868 features. Adjust for Fixed_return_reg feature.
32869 (test_intrinsic): Call emit_automatics with new feature.
32870 * config/arm/neon.ml: Update copyright years.
32871 (features): New Fixed_return_reg feature.
32872 (ops): Update feature for Vget_low.
32874 2010-01-19 Jakub Jelinek <jakub@redhat.com>
32876 PR tree-optimization/42719
32877 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
32881 * fwprop.c (all_uses_available_at): Return false if def_set dest
32882 is a REG that is used in def_insn.
32884 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
32886 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
32888 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
32889 Add argument names.
32891 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
32893 * target.h (struct gcc_target) <secondary_reload>: Change type
32894 of last argument to secondary_reload_info *.
32896 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
32899 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
32900 memory references with unaligned offsets. Remove CQImode handling.
32901 (unaligned_memory_operand): Return 1 for memory references with
32902 unaligned offsets. Remove CQImode handling.
32904 2010-01-18 Richard Guenther <rguenther@suse.de>
32906 PR middle-end/39954
32907 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
32910 2010-01-18 Richard Guenther <rguenther@suse.de>
32912 PR tree-optimization/42781
32913 * tree-ssa-structalias.c (find_what_var_points_to): Skip
32914 restrict processing only if the original variable was artificial.
32916 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
32918 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
32919 find number of popped argument bytes.
32921 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
32922 Fix the text that describes the return value for invalid insns.
32924 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
32926 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
32927 Clarify what 'cost of the -dependence' is. Fix quoting.
32929 * toplev.c (default_get_pch_validity): Rename argument to "sz".
32930 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
32932 2010-01-17 Jakub Jelinek <jakub@redhat.com>
32934 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
32935 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
32937 2010-01-17 Richard Guenther <rguenther@suse.de>
32939 PR middle-end/42248
32940 * function.c (split_complex_args): Take a VEC to modify.
32941 (assign_parms_augmented_arg_list): Build a VEC instead of
32942 a chain of PARM_DECLs.
32943 (assign_parms_unsplit_complex): Take a VEC of arguments.
32944 Do not fixup unmodified parms.
32945 (assign_parms): Deal with the VEC.
32946 (gimplify_parameters): Likewise.
32948 2010-01-17 Richard Guenther <rguenther@suse.de>
32950 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
32951 node existence check.
32952 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
32953 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
32954 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
32955 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
32956 (gimple_execute_on_growing_pred): Likewise.
32958 2010-01-17 Richard Guenther <rguenther@suse.de>
32960 PR tree-optimization/42773
32961 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
32962 (compute_antic_aux): Likewise.
32963 (compute_partial_antic_aux): Likewise.
32965 2010-01-17 Jie Zhang <jie.zhang@analog.com>
32968 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
32971 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
32973 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
32976 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
32977 Fix markup for strict argument.
32979 (TARGET_SCHED_REORDER2): Fix argument types.
32981 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
32982 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
32984 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
32985 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
32987 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
32990 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
32991 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
32992 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
32993 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
32994 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
32996 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
32998 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
33000 (TARGET_ASM_RELOC_RW_MASK): Add return type.
33001 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
33003 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
33005 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
33008 (TARGET_ASM_NAMED_SECTION): Fix argument list.
33010 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
33011 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
33013 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
33015 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
33017 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
33018 referring to it. Fix language.
33020 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
33022 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
33024 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
33026 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
33028 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
33029 '@var{stream}. Remove stray 'and'.
33031 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
33033 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
33035 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
33037 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
33038 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
33040 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
33041 Fix description of return value.
33042 Rename argument "sz" to "len."
33044 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
33045 Clarify meaning of 'true' return value.
33047 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
33049 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
33050 rep_mode versus mode_rep.
33052 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
33054 (TARGET_BUILTIN_DECL): Fix name.
33056 (TARGET_COMMUTATIVE_P): Fix type of first argument.
33058 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
33060 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
33062 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
33064 (TARGET_RELAXED_ORDERING): Use @deftypevr.
33066 (TARGET_GET_DRAP_RTX): Note that this is a hook.
33069 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
33070 Rename argument tm_fn to md_fn.
33072 (TARGET_OPTION_PRINT): Fix argument list.
33074 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
33077 * config/i386/i386.c (ix86_fixup_binary_operands):
33078 Revert FMA4 fixup of operands.
33080 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33083 * Makefile.in (write_entries_to_file, install-plugin):
33084 Use \012 instead of \n with tr.
33086 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
33088 * configure.ac (HAVE_AS_REF): New C macro.
33089 * configure: Regenerate.
33090 * config.in: Likewise.
33091 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
33093 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
33096 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
33098 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
33100 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
33102 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
33104 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
33106 (TARGET_IN_SMALL_DATA_P): Fix argument type.
33108 (TARGET_BINDS_LOCAL_P): Fix argument type.
33110 (TARGET_ASM_FILE_END): Use prototype.
33112 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
33114 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
33116 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
33118 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
33120 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
33121 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
33123 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
33124 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
33126 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
33127 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
33128 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
33129 (TARGET_ADDR_SPACE_CONVERT): Likewise.
33131 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
33133 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
33135 (TARGET_INIT_BUILTINS): Use prototype.
33137 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
33138 Put 'const char *' in braces. Fix parameter types.
33139 (TARGET_INVALID_CONVERSION): Fix parameter types.
33140 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
33141 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
33143 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
33146 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
33148 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
33150 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
33152 * doc/tm.texi (TARGET_HELP): Fix return type.
33154 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
33155 in braces. Fix argument types.
33157 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
33159 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
33161 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
33163 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
33164 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
33166 (TARGET_MANGLE_TYPE): Fix argument types.
33168 (TARGET_IRA_COVER_CLASSES): Use prototype.
33170 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
33172 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
33174 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
33176 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
33178 (TARGET_CALLEE_COPIES): Fix argument types.
33180 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
33182 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
33184 (TARGET_FUNCTION_VALUE): Fix argument types.
33186 (TARGET_RETURN_IN_MSB): Fix argument type.
33188 (TARGET_RETURN_IN_MEMORY): Fix argument types.
33190 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
33192 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
33194 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
33195 agree with return type.
33197 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
33199 2010-01-15 Jing Yu <jingyu@google.com>
33201 PR rtl-optimization/42691
33202 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
33203 a pseudo to a constant and are merged, and adjust comments.
33205 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
33207 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
33209 2010-01-15 Richard Guenther <rguenther@suse.de>
33211 PR middle-end/42739
33212 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
33213 labels of computed or non-local gotos to the destination.
33214 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
33215 landing pad label is the first label.
33217 2010-01-15 Richard Guenther <rguenther@suse.de>
33219 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
33221 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
33224 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
33225 to allow generation of the xssqrtdp instruction on power7.
33226 (sqrtdf2_fpr): Ditto.
33228 2010-01-14 Jakub Jelinek <jakub@redhat.com>
33230 PR middle-end/42674
33231 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
33232 functions with noreturn attribute.
33235 * varasm.c (declare_weak): Add weak attribute to decl if it
33236 doesn't have one already.
33237 (assemble_external): Only add decls to weak_decls if they also
33238 have weak attribute.
33240 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
33242 * var-tracking.c (var_reg_delete): Don't delete the association
33243 between REGs and values or one-part variables if the register
33246 2010-01-14 Jakub Jelinek <jakub@redhat.com>
33249 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
33250 because its first operand is a non-localized variable.
33252 2010-01-14 Martin Jambor <mjambor@suse.cz>
33254 PR tree-optimization/42706
33255 * tree-sra.c (encountered_recursive_call): New variable.
33256 (encountered_unchangable_recursive_call): Likewise.
33257 (sra_initialize): Initialize both new variables.
33258 (callsite_has_enough_arguments_p): New function.
33259 (scan_function): Call decl and flags check only for IPA-SRA, check
33260 whether there is a recursive call and whether it has enough arguments.
33261 (all_callers_have_enough_arguments_p): New function.
33262 (convert_callers): Look for recursive calls only when
33263 encountered_recursive_call is set.
33264 (ipa_early_sra): Bail out either if
33265 !all_callers_have_enough_arguments_p or
33266 encountered_unchangable_recursive_call.
33268 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33270 * sel-sched.c: Add 2010 to copyright years.
33271 * sel-sched-ir.c: Likewise.
33272 * sel-sched-ir.h: Likewise.
33274 2010-01-14 Martin Jambor <mjambor@suse.cz>
33276 PR tree-optimization/42714
33277 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
33278 constructors specially.
33280 2010-01-14 Andi Kleen <ak@linux.intel.com>
33282 * config/i386/drivers-i386.c (detect_caches_intel):
33283 Add l2sizekb parameter and fill in.
33284 (host_detect_local_cpu): Add l2sizekb, fill in.
33285 Add Atom small cache heuristic.
33287 2010-01-14 Andi Kleen <ak@linux.intel.com>
33289 * config/i386/drivers-i386.c (detect_caches_cpuid4):
33290 Add level3 parameter and fill in.
33291 (detect_caches_intel): Handle level3 cache.
33293 2010-01-14 Andi Kleen <ak@linux.intel.com>
33295 * config/i386/drivers-i386.c (host_detect_local_cpu):
33296 Fix core duo detection.
33298 2010-01-14 Andi Kleen <ak@linux.intel.com>
33300 * config/i386/drivers-i386.c (host_detect_local_cpu):
33301 Fix Atom detection.
33303 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33305 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
33306 (rs6000_variable_issue_1): this. Use...
33307 (rs6000_variable_issue): here. Reimplement. Print debug info.
33309 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33311 * sel-sched-ir.c (sel_restore_other_notes): Rename to
33312 sel_restore_notes. Update all callers. Call reemit_notes
33315 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
33317 PR rtl-optimization/42246
33318 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
33321 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
33323 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
33324 all successors is the same as number of successors in current region.
33326 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33328 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
33329 to rename is not separable. Otherwise check that its LHS is not NULL.
33331 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33333 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
33335 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33337 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
33338 available registers when failed to discover LHS register class.
33339 Fix indentation. Update comment.
33341 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
33342 Alexander Monakov <amonakov@ispras.ru>
33344 PR rtl-optimization/42389
33345 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
33347 (advance_state_on_fence): Likewise.
33348 (sel_target_adjust_priority): Print debug output only when
33349 sched_verbose >= 4, not 2.
33350 (get_expr_cost): Do not issue all unique insns on the next cycle.
33351 (fill_insns): Initialize can_issue_more from the value saved
33353 * sel-sched-ir.c (flist_add): New parameter issue_more.
33354 Init FENCE_ISSUE_MORE with it.
33355 (merge_fences): Likewise.
33356 (init_fences): Update call to flist_add.
33357 (add_to_fences, add_clean_fence_to_fences)
33358 (add_dirty_fence_to_fences): Likewise.
33359 (move_fence_to_fences): Update call to merge_fences.
33360 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
33362 * sel-sched-ir.h (struct _fence): New field issue_more.
33363 (FENCE_ISSUE_MORE): New accessor macro.
33365 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
33367 PR rtl-optimization/42388
33368 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
33369 that have no predecessors nor successors. Do not call move_bb_info
33370 for empty blocks outside of current region.
33372 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33374 PR rtl-optimization/42294
33375 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
33376 * sel-sched.c (move_exprs_to_boundary): Transitively add all
33377 originators' originators.
33379 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33381 PR rtl-optimization/39453
33382 PR rtl-optimization/42246
33383 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
33385 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
33387 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
33388 Alexander Monakov <amonakov@ispras.ru>
33390 PR middle-end/42245
33391 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
33392 (maybe_tidy_empty_bb): ... here. Make static. Add new
33393 argument. Update all callers.
33394 (tidy_control_flow): ... and here. Recompute topological order
33395 of basic blocks in region if necessary.
33396 (sel_redirect_edge_and_branch): Change return type. Return true
33397 if topological order might have been invalidated.
33398 (purge_empty_blocks): Export and move from...
33399 * sel-sched.c (purge_empty_blocks): ... here.
33400 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
33401 (maybe_tidy_empty_bb): Delete prototype.
33402 (purge_empty_blocks): Declare.
33404 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
33406 PR rtl-optimization/42249
33407 * sel-sched.c (try_replace_dest_reg): When chosen register
33408 and original register is the same, do not bail out early, but
33409 still check all original insns for validity of replacing destination
33410 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
33413 2010-01-14 Jakub Jelinek <jakub@redhat.com>
33416 Port from no-undefined-overflow branch:
33417 2009-03-09 Richard Guenther <rguenther@suse.de>
33419 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
33421 2010-01-14 Richard Guenther <rguenther@suse.de>
33424 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
33426 2010-01-14 Ira Rosen <irar@il.ibm.com>
33428 PR tree-optimization/42709
33429 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
33430 as scalar type in creation of constant vector operand.
33432 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33435 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
33436 (check-parallel-%): Match `testsuite' directory component only
33439 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
33441 PR translation/39521
33442 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
33445 2010-01-13 Richard Guenther <rguenther@suse.de>
33447 PR tree-optimization/42730
33448 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
33451 2010-01-13 Steve Ellcey <sje@cup.hp.com>
33454 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
33455 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
33458 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
33460 * config/bfin/libgcc-bfin.ver: Regenerate based on current
33461 libgcc-std.ver. Add entries for ___smulsi3_highpart and
33462 ___umulsi3_highpart.
33464 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
33465 rather than schedule_insns if the pass is enabled.
33467 2010-01-13 Martin Jambor <mjambor@suse.cz>
33469 PR tree-optimization/42704
33470 * tree-sra.c (sra_modify_assign): Do not delete assignments to
33473 2010-01-13 Martin Jambor <mjambor@suse.cz>
33475 PR tree-optimization/42703
33476 * tree-sra.c (analyze_access_subtree): Check that we can build a
33477 reference to the original data within the aggregate.
33479 2010-01-13 Richard Guenther <rguenther@suse.de>
33481 PR tree-optimization/42705
33482 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
33484 2010-01-13 Richard Guenther <rguenther@suse.de>
33486 PR middle-end/42716
33487 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
33489 2010-01-13 Jakub Jelinek <jakub@redhat.com>
33492 * var-tracking.c (values_to_unmark): New variable.
33493 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
33494 values_to_unmark vector. Moved body to...
33495 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
33496 instead queue it into values_to_unmark vector.
33497 (vt_find_locations): Free values_to_unmark vector.
33499 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
33501 * config/s390/s390.c (override_options): Set
33502 default of max-pending-list-length to 256
33504 2010-01-13 Richard Guenther <rguenther@suse.de>
33507 * tree-pass.h (PROP_gimple_lcx): New.
33508 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
33509 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
33510 before the final cleanup_eh.
33511 (dump_properties): Dump PROP_gimple_lcx.
33512 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
33513 (tree_lower_complex_O0): Remove.
33514 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
33515 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
33516 tree_lower_complex, schedule TODO_update_ssa.
33517 * lto-streamer-out.c (output_function): Stream the functions
33519 * lto-streamer-in.c (input_function): Likewise.
33520 (lto_read_body): Do not override them here.
33522 2010-01-12 Joseph Myers <joseph@codesourcery.com>
33525 * c-typeck.c (build_c_cast): Fold value cast to union type before
33526 wrapping it in a CONSTRUCTOR.
33528 2010-01-12 Jakub Jelinek <jakub@redhat.com>
33530 PR rtl-optimization/42699
33531 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
33534 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33536 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
33537 SUBTARGET_WARN_UNUSED_SPEC): Move ...
33538 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
33539 SUBTARGET_WARN_UNUSED_SPEC): ... here
33540 * config/mips/iris5.h (LIBGCC_SPEC): Define.
33542 2010-01-12 Julian Brown <julian@codesourcery.com>
33544 * config/arm/neon-schedgen.ml (Utils): Don't try to
33545 open missing module.
33546 (find_with_result): New.
33548 2010-01-12 Jakub Jelinek <jakub@redhat.com>
33551 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
33552 sharing when canonicalizing ({lt,ge}u (plus a b) b).
33554 PR tree-optimization/42645
33555 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
33556 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
33557 decl_map, set processing_debug_stmt to -1 and return name without
33560 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
33562 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
33563 binutils version, and reword target configuration description.
33565 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
33567 * config/avr/avr.h (LINKER_NAME): Remove.
33569 2010-01-11 Janis Johnson <janis187@us.ibm.com>
33572 * config/rs6000/rs6000.c (rs6000_override_options): On targets
33573 that support VSX, warn for -mno-altivec if vsx is not disabled,
33576 2010-01-11 Joseph Myers <joseph@codesourcery.com>
33577 Shujing Zhao <pearly.zhao@oracle.com>
33579 PR translation/42469
33580 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
33581 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
33582 character between option name and help text.
33583 * c.opt (imultilib): Likewise.
33585 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
33587 * lto-streamer-out.c (output_unreferenced_globals): Output static
33590 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
33592 PR rtl-optimization/42621
33593 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
33594 optimizing for size.
33595 (duplicate_computed_gotos): Remove now-redundant check.
33597 2010-01-10 Steve Ellcey <sje@cup.hp.com>
33600 * configure.ac: Save and restore LDFLAGS and LIBS
33601 * configure: Regenerate.
33603 2010-01-10 Richard Guenther <rguenther@suse.de>
33605 PR middle-end/42667
33606 * builtins.c (fold_builtin_strlen): Add type argument and
33607 convert the resulting length to it.
33608 (fold_builtin_1): Adjust.
33610 2010-01-09 Jakub Jelinek <jakub@redhat.com>
33612 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
33613 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
33615 (num_insns_constant_wide): Adjust for that change.
33617 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33620 * web.c (union_defs): Add used argument, to combine uses of
33621 uninitialized regs.
33622 (entry_register): Adjust type and tests of used argument.
33623 (web_main): Widen used for new use. Pass it to union_defs.
33624 * df.h (union_defs): Adjust prototype.
33626 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33629 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
33630 uses in new incoming argument. Free body.
33631 (reset_debug_uses_in_loop): New.
33632 (analyze_insn_to_expand_var): Call the latter if the former found
33633 anything. Fix whitespace. Reject invalid dest overlaps before
33634 going through all insns in the loop.
33636 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33639 * haifa-sched.c (dying_use_p): Debug insns don't count.
33641 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33643 PR middle-end/42363
33644 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
33645 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
33646 (verify_gimple_call): Reject LHS in noreturn calls.
33648 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33652 * tree-vect-loop-manip.c (adjust_info): New type.
33653 (adjust_vec): New pointer to vector.
33654 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
33655 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
33656 (slpeel_update_phis_for_duplicate_loop): Use them.
33657 (slpeel_update_phi_nodes_for_guard1): Likewise.
33658 (slpeel_update_phi_nodes_for_guard2): Likewise.
33659 (slpeel_tree_peel_loop_to_edge): Likewise.
33660 (vect_update_ivs_after_vectorizer): Likewise.
33662 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33664 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
33665 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
33667 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33669 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
33670 bogus uninitialized warning.
33672 2010-01-09 Richard Guenther <rguenther@suse.de>
33674 PR middle-end/42512
33675 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
33676 the evolution is compatible with the initial condition.
33678 2010-01-09 Jakub Jelinek <jakub@redhat.com>
33680 * gcc.c (process_command): Update copyright notice dates.
33681 * gcov.c (print_version): Likewise.
33682 * gcov-dump.c (print_version): Likewise.
33683 * mips-tfile.c (main): Likewise.
33684 * mips-tdump.c (main): Likewise.
33686 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
33689 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
33691 (rotlhi3_8): Delete.
33693 (rotlsi3_8): Delete.
33694 (rotlsi3_16): Delete.
33695 (rotlsi3_24): Delete.
33696 (rotl<mode>3): New.
33697 (*rotw<mode>3): New.
33698 (*rotb<mode>3): New.
33699 * config/avr/avr.c (avr_rotate_bytes): New function.
33700 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
33702 2010-01-08 Steve Ellcey <sje@cup.hp.com>
33705 * configure.ac: Modify -rdynamic check.
33706 * configure: Regenerate.
33708 2010-01-08 DJ Delorie <dj@redhat.com>
33710 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
33711 register popping order.
33713 2010-01-08 Richard Guenther <rguenther@suse.de>
33716 * c.opt (fsigned-char): Also let LTO handle this option.
33717 (funsigned-char): Likewise.
33719 2010-01-07 Richard Guenther <rguenther@suse.de>
33721 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
33722 (gimple_op): Likewise.
33723 (gimple_op_ptr): Likewise.
33724 (gimple_assign_set_lhs): Remove gcc_assert.
33725 (gimple_assign_set_rhs1): Likewise.
33726 (gimple_assign_set_rhs2): Likewise.
33727 (gimple_call_set_lhs): Likewise.
33728 (gimple_call_set_fn): Likewise.
33729 (gimple_call_set_fndecl): Likewise.
33730 (gimple_call_fndecl): Likewise.
33731 (gimple_call_return_type): Likewise.
33732 (gimple_call_set_chain): Likewise.
33733 (gimple_call_num_args): Likewise.
33734 (gimple_call_set_arg): Likewise.
33735 (gimple_cond_set_code): Likewise.
33736 (gimple_cond_set_lhs): Likewise.
33737 (gimple_cond_set_rhs): Likewise.
33738 (gimple_cond_set_true_label): Likewise.
33739 (gimple_cond_set_false_label): Likewise.
33740 (gimple_label_set_label): Likewise.
33741 (gimple_goto_set_dest): Likewise.
33742 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
33743 (gimple_debug_bind_get_value): Likewise.
33744 (gimple_debug_bind_get_value_ptr): Likewise.
33745 (gimple_debug_bind_set_var): Likewise.
33746 (gimple_debug_bind_set_value): Likewise.
33747 (gimple_debug_bind_reset_value): Likewise.
33748 (gimple_debug_bind_has_value_p): Likewise.
33749 (gimple_return_retval_ptr): Remove gcc_assert.
33750 (gimple_return_retval): Likewise.
33751 (gimple_return_set_retval): Likewise.
33752 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
33753 (safe_referenced_var_iterator): Remove.
33754 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
33755 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
33756 (fill_referenced_var_vec): Remove.
33757 (first_readonly_imm_use): Remove redundant gcc_assert.
33758 (phi_arg_index_from_use): Combine gcc_asserts.
33759 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
33760 (first_imm_use_stmt): Remove redundant gcc_assert.
33761 * tree-cfg.c (verify_gimple_call): Verify function and chain
33762 operands. Verify arguments.
33763 (verify_types_in_gimple_stmt): Verify condition code and labels.
33765 2010-01-07 Richard Guenther <rguenther@suse.de>
33767 PR tree-optimization/42641
33768 * sese.c (rename_map_elt_info): Use the SSA name version, do
33771 2010-01-07 Jakub Jelinek <jakub@redhat.com>
33773 PR tree-optimization/42625
33774 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
33775 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
33777 2010-01-07 Duncan Sands <baldrick@free.fr>
33779 * Makefile.in (PLUGIN_HEADERS): Add version.h.
33781 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
33784 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
33785 note itself is not function_invariant_p.
33787 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
33789 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
33790 Do not add the DF_NOTE problem.
33791 * store-motion.c (execute_rtl_store_motion): Likewise.
33793 2010-01-07 Martin Jambor <mjambor@suse.cz>
33795 PR tree-optimization/42157
33796 * tree-sra.c (compare_access_positions): Stabilize sort if both
33797 accesses have integer types, return zero immediately if they are the
33800 2010-01-06 Richard Henderson <rth@redhat.com>
33802 PR middle-end/41883
33803 * haifa-sched.c (add_to_note_list): Merge into ...
33804 (concat_note_lists): ... here, and ...
33805 (unlink_other_notes, rm_other_notes): Merge into...
33806 (remove_notes): ... here. Create REG_SAVE_NOTEs for
33807 NOTE_INSN_EPILOGUE_BEG.
33809 2010-01-06 Richard Guenther <rguenther@suse.de>
33811 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
33812 not inline regular functions into always-inline functions.
33814 2010-01-06 Nick Clifton <nickc@redhat.com>
33816 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
33817 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
33819 (OVERRIDE_OPTIONS): Delete.
33820 (OPTIMIZATION_OPTIONS): Define.
33821 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
33822 * config/rx/rx.c (rx_handle_option): Issue an error message if
33823 -mcpu=rx200 and -fpu are used together.
33824 (rx_set_optimization_options): New function. Issue an error
33825 message if an optimization attribute attempts to reset the FPU/
33826 math optimization pairing.
33827 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
33828 * config/rx/rx.opt: Set the default to 32-bit doubles.
33829 * config/rx/t-rx: Add multilibs for -nofpu option.
33830 * doc/invoke.texi: Update documentation of RX options.
33832 2010-01-06 Richard Guenther <rguenther@suse.de>
33834 * tree-ssa-pre.c (name_to_id): New global.
33835 (alloc_expression_id): Simplify SSA name handling.
33836 (lookup_expression_id): Likewise.
33837 (init_pre): Zero name_to_id.
33838 (fini_pre): Free it.
33840 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
33842 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
33844 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
33847 * config/i386/sse.md (smaxv2di3): New.
33848 (umaxv2di3): Likewise.
33849 (sminv2di3): Likewise.
33850 (uminv2di3): Likewise.
33852 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
33855 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
33856 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
33857 (legitimize_tls_address): Likewise.
33858 (sparc_tls_referenced_p): Likewise.
33859 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
33860 and adjust calls to legitimize_pic_address.
33861 (legitimate_constant_p) Use sparc_tls_referenced_p.
33862 (legitimate_pic_operand_p): Likewise.
33863 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
33864 (sparc_tls_symbol_ref_1): Delete.
33865 (sparc_tls_referenced_p): Make static, recognize specific patterns.
33866 (legitimize_tls_address): Make static, handle CONST patterns.
33867 (legitimize_pic_address): Make static, remove unused parameter and
33868 adjust recursive calls.
33869 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
33870 and adjust call to legitimize_pic_address.
33871 (sparc_output_mi_thunk): Likewise.
33873 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
33874 H.J. Lu <hongjiu.lu@intel.com>
33877 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
33878 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
33879 operands to make them signed.
33882 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
33885 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
33886 GTU to GT for V4SI and V2DI.
33888 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
33889 (umin<mode>3): Removed.
33891 (uminv4si3): Likewise.
33893 2010-01-05 Martin Jambor <mjambor@suse.cz>
33895 PR tree-optimization/42462
33896 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
33897 current_function_decl to helper functions and macros.
33899 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33902 * flags.h: Don't include real.h.
33903 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
33904 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
33905 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
33906 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
33907 * dominance.c: Update copyright.
33908 * gimple.c (walk_gimple_op): Remove inline.
33909 * tree-ssa-reassoc.c: Include real.h.
33910 * Makefile.in (FLAGS_H): Remove $(REAL_H).
33911 (tree-ssa-reassoc.o): Depend on $(REAL_H).
33913 2010-01-05 Nick Clifton <nickc@redhat.com>
33915 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
33916 register to push into the stack frame when the accumulator has to
33917 be saved during interrupts.
33919 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
33921 * doc/invoke.texi: Remove the documentation about option
33922 -Wunreachable-code.
33923 * common.opt (Wunreachable-code): Preserved for backward
33925 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
33926 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
33927 the backward compatibility flag section.
33929 2010-01-05 Richard Guenther <rguenther@suse.de>
33931 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
33933 2010-01-05 Jakub Jelinek <jakub@redhat.com>
33936 * cfgexpand.c (expand_one_var): Diagnose too large variables.
33938 PR tree-optimization/42508
33939 * tree-sra.c (convert_callers): Check for recursive call
33940 by comparing cgraph nodes instead of decls.
33941 (modify_function): Call ipa_modify_formal_parameters also
33942 on all same_body aliases.
33944 * cgraphunit.c (cgraph_materialize_all_clones): Compare
33945 cgraph nodes when checking for same_body aliases.
33947 2010-01-05 Richard Guenther <rguenther@suse.de>
33949 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
33950 allocation and lookup.
33951 (get_or_alloc_expr_for_constant): Likewise.
33952 (phi_translate): Sink allocation.
33954 2010-01-04 Richard Guenther <rguenther@suse.de>
33956 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
33957 a new entry only if needed.
33958 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
33959 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
33961 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
33963 (phi_translate): Handle CONSTANTs early.
33965 2010-01-04 Martin Jambor <mjambor@suse.cz>
33967 PR tree-optimization/42398
33968 * tree-sra.c (struct access): Removed flag grp_different_types.
33969 (dump_access): Do not dump the removed flag.
33970 (sort_and_splice_var_accesses): Do not set the removed flag.
33971 (sra_modify_expr): Check for type compatibility directly.
33973 2010-01-04 Martin Jambor <mjambor@suse.cz>
33975 PR tree-optimization/42366
33976 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
33977 edges with variable number of parameters.
33978 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
33979 flag instead of asserting it.
33980 (ipa_read_node_info): Read uses_analysis_done flag.
33982 2010-01-04 Richard Guenther <rguenther@suse.de>
33984 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
33985 iterative_hash_* as intended.
33986 (vn_reference_compute_hash): Likewise. Simplify hashing
33988 (vn_reference_lookup_2): Likewise.
33989 (vn_nary_op_compute_hash): Likewise.
33990 (vn_phi_compute_hash): Likewise.
33991 (expressions_equal_p): Remove strange code.
33992 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
33993 (pre_expr_hash): Likewise. Simplify hashing SSA names.
33994 (bitmap_insert_into_set_1): Take value-id as parameter.
33995 (add_to_value): Pass it.
33996 (bitmap_insert_into_set): Likewise.
33997 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
33999 2010-01-04 Jakub Jelinek <jakub@redhat.com>
34002 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
34003 (do_self_spec): For switches with SWITCH_IGNORE set set also
34004 SWITCH_IGNORE_PERMANENTLY.
34005 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
34008 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
34010 * lto-streamer-out.c (output_unreferenced_globals): Output the full
34011 tree of an unreferenced global var.
34013 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
34016 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
34017 GTU to GT for V4SI and V2DI.
34019 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
34020 (umin<mode>3): Removed.
34022 (uminv4si3): Likewise.
34024 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
34027 * collect2.c (main): Turn on trace in collect2 if -v is passed
34030 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
34032 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
34033 description of expression operand.
34035 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
34037 * configure.ac: Add install-html to target_list for Make-hooks.
34038 * configure: Regenerate.
34039 * fortran/Make-lang.in (F95_HTMLFILES): New.
34040 (fortran.html): Use it.
34041 (fortran.install-html): New.
34042 * Makefile.in (install-html): Add lang.install-html.
34043 * java/Make-lang.in (JAVA_HTMLFILES): New.
34044 (java.html): Use it.
34045 (java.install-html): New.
34046 * objc/Make-lang.in (objc.install-html): New.
34047 * objcp/Make-lang.in (obj-c++.install-html): New.
34048 * cp/Make-lang.in (c++.install-html): New.
34049 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
34050 * lto/Make-lang.in (lto.install-html): New.
34052 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
34055 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
34057 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
34059 PR rtl-optimization/41862
34060 * store-motion.c (store_killed_in_insn, compute_store_table,
34061 remove_reachable_equiv_notes, replace_store_insn,
34062 build_store_vectors): Ignore all DEBUG_INSNs.
34064 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
34067 * common.opt: Add dumpdir.
34069 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
34071 (option_map): Add --dumpdir.
34073 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
34075 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
34077 * opts.c (decode_options): Try dump_dir_name first if
34078 dump_base_name isn't an absolute path.
34079 (common_handle_option): Handle OPT_dumpdir.
34081 * toplev.c (dump_dir_name): New.
34082 (print_switch_values): Also ignore -dumpdir.
34084 * toplev.h (dump_dir_name): New.
34086 2010-01-03 Richard Guenther <rguenther@suse.de>
34088 PR tree-optimization/42589
34089 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
34090 double-word expansion of bswap32.
34092 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
34094 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
34095 with BLOCK_FOR_INSN.
34096 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
34097 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
34098 noce_process_if_block): Likewise.
34099 * gcse.c (compute_local_properties, insert_expr_in_table,
34100 insert_set_in_table, canon_list_insert, find_avail_set,
34101 pre_insert_copy_insn): Likewise.
34103 * basic-block.h (BLOCK_NUM): Move from here...
34104 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
34106 2010-01-03 Richard Guenther <rguenther@suse.de>
34108 PR tree-optimization/42438
34109 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
34110 contains_may_not_return_call flag.
34111 (BB_MAY_NOTRETURN): New.
34112 (valid_in_sets): Trapping nary operations are not valid
34113 in blocks that may not return.
34114 (insert_into_preds_of_block): Remove check for trapping expressions.
34115 (compute_avail): Compute also BB_MAY_NOTRETURN.
34117 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
34119 * doc/invoke.texi: Add 2010 to copyright years.
34121 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
34123 * config/sparc/sparc.c: Fix formatting nits.
34125 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
34126 Alexander Monakov <amonakov@ispras.ru>
34128 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
34130 2010-01-02 Richard Guenther <rguenther@suse.de>
34132 PR middle-end/42577
34133 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
34134 (simplify_switch_using_ranges): Mark to be removed edges
34137 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34139 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
34141 * collect2.c (scan_libraries): Add missing argument in call to
34144 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
34147 * config/alpha/predicates.md (aligned_memory_operand): Return false
34149 (unaligned_memory_operand): Return true for CQImode.
34150 * config/alpha/alpha.c (get_aligned_mem): Assert that location
34151 doesn not cross aligned SImode word boundary.
34153 2010-01-02 Anatoly Sokolov <aesok@post.ru>
34155 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
34157 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
34158 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
34160 2010-01-02 Richard Guenther <rguenther@suse.de>
34163 * toplev.c (compile_file): Emit LTO marker properly. Change
34164 it to __gnu_lto_v1.
34165 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
34167 2010-01-01 Richard Guenther <rguenther@suse.de>
34170 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
34172 2010-01-01 Richard Guenther <rguenther@suse.de>
34175 * c-decl.c (grokdeclarator): For zero-size arrays force
34176 structural equality checks as layout_type does.
34178 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
34180 * builtins.c: Update copyright to 2010.
34182 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
34185 * lto-streamer-out.c (produce_asm): Revert the last change.
34186 (copy_function): Likewise.
34188 * lto-streamer.c (lto_get_section_name): Skip any leading
34191 2010-01-01 Richard Guenther <rguenther@suse.de>
34193 PR middle-end/42559
34194 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
34198 Copyright (C) 2010 Free Software Foundation, Inc.
34200 Copying and distribution of this file, with or without modification,
34201 are permitted in any medium without royalty provided the copyright
34202 notice and this notice are preserved.