]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
6e30c005c6d9632e230a620ff5a0065b0b92a128
[gcc.git] / gcc / ChangeLog
1 2010-09-03 Joseph Myers <joseph@codesourcery.com>
2
3 * doc/options.texi (SeparateAlias): Document.
4 * opt-functions.awk (switch_flags): Handle SeparateAlias.
5 * opth-gen.awk: Generate enumeration names for options marked
6 SeparateAlias, but not for those marked Ignore.
7 * opts-common.c (generate_canonical_option): Don't output separate
8 argument for options marked CL_SEPARATE_ALIAS.
9 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
10 * opts.h (CL_SEPARATE_ALIAS): New.
11 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
12 CL_COMMON): Adjust definitions.
13 * config/i386/darwin.opt, config/mips/sde.opt: New.
14 * common.opt (fdump-final-insns): New.
15 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
16 i386/darwin.opt.
17 (mips*-sde-elf*): Add mips/sde.opt.
18 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
19 -mno-data-in-code and -mcode-xonly here.
20 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
21 * gcc.c (option_map): Add "j" to --dump entry.
22 (translate_options): Don't translate -d to -foutput-class-dir=
23 here.
24
25 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
26
27 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
28 DR_IS_WRITE.
29 (compute_all_dependences): Same.
30 (create_rdg_edge_for_ddr): Same.
31 * tree-data-ref.h (DR_IS_WRITE): New.
32 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
33 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
34 (write_memrefs_written_at_least_once): Same.
35 * tree-predcom.c (suitable_component_p): Same.
36 (determine_roots_comp): Same.
37 (execute_load_motion): Same.
38 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
39 (vect_enhance_data_refs_alignment): Same.
40 (vect_analyze_group_access): Same.
41
42 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
43
44 PR testsuite/42843
45 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
46 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
47
48 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
49
50 * dwarf2out.c (file scope): Remove #if0'd code.
51 (gen_subprogram_die): Same.
52
53 2010-09-03 Jakub Jelinek <jakub@redhat.com>
54
55 PR middle-end/45484
56 * dwarf2out.c (flush_queued_reg_saves): Rename to...
57 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
58 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
59 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
60 * config/i386/i386.c (output_set_got): Call it.
61
62 2010-09-03 Michael Matz <matz@suse.de>
63
64 PR middle-end/45415
65 * tree-sra.c (sra_modify_assign): If we modify the statement,
66 say so.
67
68 * tree-ssa.c (verify_ssa): Check number of operands and links
69 per statement to agree.
70
71 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
72 Iain Sandoe <iains@gcc.gnu.org>
73
74 PR target/45476
75 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
76 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
77 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
78
79 2010-09-03 Richard Guenther <rguenther@suse.de>
80
81 * lto-streamer-out.c (output_function): Output function
82 start and end loci.
83 * lto-streamer-in.c (input_function): Input function start
84 and end loci.
85
86 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
87
88 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
89 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
90 * configure: Regenerate.
91 * aclocal.m4: Regenerate.
92
93 2010-09-03 Jan Hubicka <jh@suse.cz>
94
95 PR lto/44812
96 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
97 on functions/variables in other partition.
98
99 2010-09-03 Jan Hubicka <jh@suse.cz>
100
101 * cgraph.h (struct varpool_node): Add const_value_known.
102 (varpool_decide_const_value_known): Declare.
103 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
104 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
105 (input_varpool_node): Restore const_value_known.
106 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
107 initializer folding.
108 * ipa.c (ipa_discover_readonly_nonaddressable_var,
109 function_and_variable_visibility): Compute const_value_known.
110 * gimple-fold.c (get_symbol_constant_value): Use varpool for
111 initializer folding.
112 * varpool.c (varpool_decide_const_value_known): New function.
113
114 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
115
116 * config/i386/i386.md: Remove empty preparation statements
117 from splitters.
118
119 2010-09-03 Jan Hubicka <jh@suse.cz>
120
121 * passes.c (rest_of_decl_compilation): Do not add local vars into
122 varpool.
123 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
124 static or extern vars are in varpool.
125 (varpool_finalize_decl): Sanity check that only static vars are
126 finalized.
127
128 2010-09-03 Jakub Jelinek <jakub@redhat.com>
129
130 PR debug/45500
131 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
132 not just generic vectors with BLKmode.
133
134 2010-09-03 Richard Guenther <rguenther@suse.de>
135
136 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
137 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
138 * tree.h (TMR_SYMBOL): Remove.
139 (TMR_BASE, TMR_OFFSET): Adjust.
140 (TMR_INDEX2): New.
141 * alias.c (ao_ref_from_mem): Use TMR_BASE.
142 * builtins.c (get_object_alignment): Merge TMR_BASE and
143 TMR_SYMBOL handling.
144 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
145 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
146 handling. Also allow TARGET_MEM_REF as base address.
147 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
148 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
149 base. Gimplify TMR_INDEX2.
150 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
151 * tree-dfa.c (get_ref_base_and_extent): Likewise.
152 (get_addr_base_and_unit_offset): Likewise.
153 * tree-eh.c (tree_could_trap_p): Likewise.
154 * tree-pretty-print.c (dump_generic_node): Likewise.
155 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
156 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
157 base to index2.
158 (get_address_description): Reconstruct addres description
159 from merged TMR_BASE and TMR_INDEX2.
160 (maybe_fold_tmr): Fold propagated addresses.
161 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
162 MEM_REF and TARGET_MEM_REF paths.
163 (indirect_refs_may_alias_p): Likewise.
164 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
165 instead of TMR_SYMBOL.
166 * tree-ssa-operands.c (get_tmr_operands): Simplify.
167 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
168 according to changes ...
169 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
170 Split TARGET_MEM_REF into two fields plus the base.
171 * tree.c (mem_ref_offset): Simplify.
172 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
173 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
174 Strip NOPs when folding MEM_REF addresses.
175 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
176 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
177 (fold_gimple_assign): ... not here.
178
179 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
180
181 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
182 * config/mips/mips.c (mips_shift_truncation_mask): New function.
183 (TARGET_SHIFT_TRUNCATION_MASK): Define.
184
185 2010-09-02 Richard Henderson <rth@redhat.com>
186
187 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
188 instead of readelf in the test.
189 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
190 in the .debug_frame section for coff targets.
191 * configure: Rebuild.
192
193 2010-09-02 Anatoly Sokolov <aesok@post.ru>
194
195 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
196 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
197 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
198 (m32c_class_likely_spilled_p): Make static. Change argument type to
199 reg_class_t. Change result type to bool.
200
201 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
202
203 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
204 to convert (double)(long) into a single FRIZ instruction or not
205 when -ffast-math is used.
206
207 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
208 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
209 or FRIZ instruction if -ffast-math.
210 * config/rs6000/rs6000.md (friz): Ditto.
211
212 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
213
214 2010-09-02 Joseph Myers <joseph@codesourcery.com>
215
216 * opth-gen.awk (quote, comma): Remove unused variables.
217
218 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
219
220 * arm.c (arm_override_options): Correct fall-back code to use
221 SUBTARGET_CPU_DEFAULT.
222
223 2010-09-02 Julian Brown <julian@codesourcery.com>
224
225 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
226 unspecs.
227 (vcond<mode>, vcondu<mode>): New expanders.
228 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
229 comparisons with zero.
230 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
231 * config/arm/constraints.md (Dz): New constraint.
232
233 2010-09-02 Anatoly Sokolov <aesok@post.ru>
234
235 * target.def (class_likely_spilled_p): New hook.
236 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
237 * doc/tm.texi: Regenerate.
238 * targhooks.c (default_class_likely_spilled_p): New function.
239 * targhooks.h (default_class_likely_spilled_p): Declare.
240 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
241 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
242 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
243 Use fixed_reg_set instead of fixed_regs.
244 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
245 * calls.c (avoid_likely_spilled_reg): Ditto.
246 * ira-conflicts.c (ira_build_conflicts): Ditto.
247 * ira.c (update_equiv_regs): Ditto.
248 * mode-switching.c (create_pre_exit): Ditto.
249 * regmove.c (find_matches): Ditto.
250 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
251 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
252 (small_register_class_p): New inline function.
253 (push_secondary_reload, find_reusable_reload, find_reloads): Use
254 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
255
256 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
257 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
258 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
259
260 2010-09-02 Richard Guenther <rguenther@suse.de>
261
262 PR tree-optimization/44937
263 PR tree-optimization/45412
264 * ipa-split.c (split_function): Properly remove PHI nodes.
265
266 2010-09-02 Joseph Myers <joseph@codesourcery.com>
267
268 * opts.h (struct cl_option): Add warn_message field.
269 (struct cl_decoded_option): Add warn_message field.
270 * doc/options.texi (Ignore, Warn): Document.
271 * opt-functions.awk (needs_state_p): Don't consider aliases or
272 ignored options to need state saved.
273 * optc-gen.awk: Handle Warn and Ignore.
274 * opth-gen.awk: Output OPT_SPECIAL_ignore.
275 * opts-common.c (decode_cmdline_option): Set warn_message field.
276 Handle ignored options.
277 (decode_cmdline_options_to_array, generate_option,
278 generate_option_input_file): Set warn_message field.
279 (read_cmdline_option): Generate warnings from warn_message field.
280 Handle ignored options.
281 * common.opt (Wunreachable-code, fargument-alias,
282 fargument-noalias, fargument-noalias-global,
283 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
284 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
285 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
286 ftree-salias): Mark Ignore.
287 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
288 -mintel-syntax and -mno-intel-syntax here.
289 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
290 using Warn.
291 * opts.c (common_handle_option): Don't handle options marked as
292 ignored.
293 (enable_warning_as_error): Handle ignored options.
294
295 2010-09-02 Joseph Myers <joseph@codesourcery.com>
296
297 PR driver/44076
298 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
299 alias_target fields.
300 * opt-functions.awk (opt_sanitized_name): Don't handle
301 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
302 * optc-gen.awk: Generate alias fields.
303 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
304 Don't generate such constants for aliases.
305 * opts-common.c (generate_canonical_option): New.
306 (decode_cmdline_option): Handle aliases. Use
307 generate_canonical_option for known options instead of copying the
308 input option text.
309 * doc/options.texi (Alias): Document.
310 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
311 fstack-check, specs): Mark as aliases.
312 * gcc.c (driver_handle_option): Canonicalize -L options to joined
313 arguments.
314 (driver_handle_option): Don't handle OPT_specs.
315 * opts.c (common_handle_option): Don't handle options marked as
316 aliases.
317 (enable_warning_as_error): Handle aliases.
318 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
319 OPT_Wlarger_than_eq.
320 * tree-optimize.c (tree_rest_of_compilation): Use
321 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
322
323 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
324
325 * config/i386/i386.md (nonmemory_operand): New mode attribute.
326 (push memory peephole2): Macroize peepholes using SWI mode iterator.
327 (move immediate to memory peephole2): Macroize peepholes using
328 SWI124 mode iterator.
329 (non-pairable NOT peephole2): Macroize peepholes using SWI124
330 mode iterator.
331 (simple lea add peephole2): Macroize peepholes using SWI48
332 mode iterator.
333 (simple lea mult peephole2): Ditto.
334 (imul by 3,5,9 to lea peephole2): Ditto.
335 (mov $-1, reg peephole2): Macroize peepholes using SWI248
336 mode iterator.
337 (imul $32bit_imm,mem,reg peephole2): Ditto.
338 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
339
340 2010-09-02 Ian Bolton <ian.bolton@arm.com>
341
342 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
343
344 2010-09-02 Olivier Hainque <hainque@adacore.com>
345
346 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
347 (allocno_priority_compare_func): Use it instead of a straight
348 difference computation over priorities.
349
350 2010-09-02 Andi Kleen <ak@linux.intel.com>
351
352 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
353
354 2010-09-02 Ira Rosen <irar@il.ibm.com>
355
356 * tree-vectorizer.h (get_later_stmt): New function.
357 (vect_analyze_data_ref_dependences): Add argument.
358 * tree-vect-loop.c (vect_analyze_loop): Update call to
359 vect_analyze_data_ref_dependences.
360 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
361 New function.
362 (vect_analyze_data_ref_dependence): Add argument for basic block
363 dependencies. Check dependencies in basic block vectorization.
364 (vect_analyze_data_ref_dependences): Add argument and update call to
365 vect_analyze_data_ref_dependences.
366 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
367 (vect_bb_vectorizable_with_dependencies): New.
368 (vect_slp_analyze_bb): Check dependencies in basic block.
369 (vect_schedule_slp_instance): Insert stores before the last store in
370 SLP instance.
371
372 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
373
374 PR target/45476
375 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
376 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
377
378 2010-09-01 Jakub Jelinek <jakub@redhat.com>
379
380 PR middle-end/45458
381 * bb-reorder.c (add_labels_and_missing_jumps): Treat
382 bbs ending with throwing insns like blocks ending with a call.
383 (fix_up_fall_thru_edges): Likewise.
384
385 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
386
387 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
388 (m32c_function_arg_advance): Delete.
389 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
390 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
391 comments. Take a const_tree and a bool. Declare.
392 (m32c_function_arg_advance): Likewise.
393 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
394
395 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
396
397 PR target/45476
398 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
399 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
400 * config/i386/mingw32.h: ... here.
401
402 2010-09-01 Andi Kleen <ak@linux.intel.com>
403
404 PR lto/45475
405 * lto-streamer-in.c (lto_input_ts_target_option): Add.
406 (lto_input_tree_pointers): Call lto_input_ts_target_option.
407 * lto-streamer-out (lto_output_ts_target_option): Add.
408 (lto_output_tree_pointers): Call lto_output_ts_target_option.
409
410 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
411
412 PR/target 45452
413 * config/i386/cygwin.h: Change order of specified import libraries.
414 * config/i386/mingw32.h: Likewise.
415 * config/i386/t-cygwin: Likewise.
416 * config/i386/t-mingw32: Likewise.
417 * config/i386/t-mingw-w32: Likewise.
418 * config/i386/t-mingw-w64: Likewise.
419
420 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
421
422 * config/arm/neon-schedgen.ml (core): New type.
423 (allCores): List of supported cores.
424 (availability_table): Add supported cores.
425 (collate_bypasses): Accept core as a parameter.
426 (worst_case_latencies_and_bypasses): Accept core as a parameter.
427 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
428 and coreStr to get tune attribute and prefix for functional units.
429 (emit_bypasses): Accept core name and use it.
430 (calculate_per_core_availability_table): New.
431 (filter_core): New.
432 (calculate_core_availability_table): New.
433 (main): Use calculate_core_availablity_table.
434 * config/arm/cortex-a8-neon.md: Update copyright year.
435 Regenerated from ml file and merged in.
436 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
437 cortex_a8_neon_mrc.
438
439 2010-09-01 Ian Bolton <ian.bolton@arm.com>
440
441 * Makefile.in (tree-switch-conversion.o): Update dependencies.
442
443 2010-09-01 Richard Guenther <rguenther@suse.de>
444
445 * alias.c (ao_ref_from_mem): Adjust.
446 * builtins.c (get_object_alignment): Likewise.
447 * cfgexpand.c (expand_debug_expr): Likewise.
448 * gimple.c (get_base_address): Likewise.
449 * tree-dfa.c (get_ref_base_and_extent): Likewise.
450 (get_addr_base_and_unit_offset): Likewise. Fix for
451 both TMR_SYMBOL and TMR_BASE being set.
452 * tree-eh.c (tree_could_trap_p): Likewise.
453 * gimplify.c (gimplify_expr): Do not attempt to gimplify
454 TMR_SYMBOL. Always gimplify TMR_BASE.
455 * tree-cfg.c (verify_types_in_gimple_reference): Verify
456 TMR_BASE if there is a TMR_SYMBOL.
457 * tree-pretty-print.c (dump_generic_node): Adjust.
458 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
459 (tree_mem_ref_addr): Likewise.
460 (create_mem_ref_raw): Likewise.
461 (move_fixed_address_to_symbol): Likewise.
462 (create_mem_ref): Likewise.
463 (dump_mem_address): Likewise.
464 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
465 Fix for both TMR_SYMBOL and TMR_BASE being set.
466 (indirect_refs_may_alias_p): Likewise.
467 * tree-ssa-operands.c (get_tmr_operands): Adjust.
468 * tree.def (TARGET_MEM_REF): Adjust documentation.
469
470 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
471
472 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
473 Rename from X86_TUNE_ADD_ESP_4.
474 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
475 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
476 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
477 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
478 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
479 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
480 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
481 * config/i386/i386.c (initial_ix86_tune_features)
482 <X86_TUNE_SINGLE_POP>: Invert members.
483 <X86_TUNE_DOUBLE_POP>: Ditto.
484 <X86_TUNE_SINGLE_PUSH>: Ditto.
485 <X86_TUNE_DOUBLE_PUSH>: Ditto.
486 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
487 No longer exported.
488 (push peephole2 patterns): Macroize peepholes using P mode iterator.
489 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
490 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
491 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
492
493 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
494
495 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
496 a volatile LHS if the constructor has only one element.
497
498 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
499
500 PR bootstrap/45321
501 * tree.c (stdarg_p): Make fntype parameter const.
502 * tree.h (stdarg_p): Likewise.
503 (function_args_iterator): Remove unused fntype field.
504 (function_args_iter_init): Do not initialize fntype
505 field. Make fntype parameter const.
506
507 2010-09-01 Richard Guenther <rguenther@suse.de>
508
509 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
510 estimate.
511 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
512 (execute_vrp): Compute number of iteration estimates.
513 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
514 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
515 * tree-data-ref.c (estimated_loop_iterations): Adjust.
516 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
517 Infer loop bounds from undefined behavior based on a new parameter.
518 (estimate_numbers_of_iterations): Likewise.
519 (scev_probably_wraps_p): Adjust.
520 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
521
522 2010-09-01 Nick Clifton <nickc@redhat.com>
523
524 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
525 where appropriate.
526 (xstormy16_legitimate_address_p): Use true and false instead of 1
527 and 0.
528 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
529 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
530 magic constant 2.
531 (xstormy16_expand_call): Fix comment at start of function.
532
533 2010-09-01 Nick Clifton <nickc@redhat.com>
534
535 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
536 when pushing accumulator register.
537 (rx_get_stack_layout): Always save call clobbered registers inside
538 interrupt handlers.
539 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
540
541 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
542
543 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
544 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
545
546 * libgcc-std.ver (GCC_4.6.0): Define version.
547
548 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
549
550 * tree-nested.c (convert_all_function_calls): Iterate until after the
551 sum of static chains in the nest doesn't change.
552
553 2010-08-31 Anatoly Sokolov <aesok@post.ru>
554
555 * config/m32c/m32c.c (classes_intersect): Remove.
556 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
557 reg_classes_intersect_p instead of classes_intersect.
558 (class_can_hold_mode): Change arguments type from enum reg_class to
559 reg_class_t. Use reg_class_contents instead of class_contents.
560 (m32c_register_move_cost): Make static. Change arguments type from
561 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
562 classes_intersect. Use reg_class_contents instead of class_contents.
563 (m32c_memory_move_cost): Make static. Change arguments type from
564 enum reg_class to reg_class_t.
565 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
566 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
567 * config/m32c/m32c-protos.h (m32c_register_move_cost,
568 m32c_memory_move_cost): Remove.
569
570 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
571
572 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
573 (arm_function_arg): Delete.
574 (arm_needs_doubleword_align): Take a const_tree.
575 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
576 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
577 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
578 (arm_function_arg): Make static. Take a const_tree and a bool.
579 (arm_function_arg_advance): Likewise.
580 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
581
582 2010-08-31 Andi Kleen <ak@linux.intel.com>
583
584 * common.opt (fwhopr=): Update for -fwhopr=jobserver
585 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
586 * lto-wrapper.c (run_gcc): Add jobserver mode.
587 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
588 argument.
589
590 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
591
592 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
593 (popsi1): Ditto.
594 (*popdi1_epilogue): Ditto.
595 (*popsi1_epilogue): Ditto.
596 (popsi, popdi peephole2 patterns): Update peepholes for changed
597 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
598
599 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
600 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
601
602 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
603 (override_options): Do not initialize removed ix86_gen_pop1.
604 (gen_pop): New static function.
605 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
606 (release_scratch_register_on_entry): Ditto.
607 (ix86_restore_reg_using_pop): Ditto.
608 (ix86_expand_epilogue): Ditto.
609
610 2010-08-31 Jakub Jelinek <jakub@redhat.com>
611
612 PR middle-end/45461
613 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
614
615 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
616
617 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
618 semicolons.
619
620 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
621
622 * doc/extend.texi: Fix documentation of the return value of
623 __builtin_choose_expr.
624
625 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
626
627 * config/v850/v850-protos.h (function_arg): Delete.
628 * config/v850/v850.h (FUNCTION_ARG): Delete.
629 (FUNCTION_ARG_ADVANCE): Move code to...
630 * config/v850/v850.c (v850_function_arg_advance): ...here.
631 (v850_function_arg): Make static. Take a const_tree and a bool.
632 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
633
634 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
635
636 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
637 these...
638 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
639 ...and these...
640 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
641 ..to here..
642 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
643 ...and here.
644 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
645
646 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
647
648 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
649 Delete.
650 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
651 * config/rx/rx.c (rx_function_arg_size): Make static.
652 (rx_function_arg): Likewise.
653 (rx_function_arg_advance): New function.
654 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
655
656 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
657
658 * config/arm/arm.c (arm_override_options): Remove superfluous test.
659 Fix indentation.
660
661 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
662
663 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
664 (dwarf2out_decl) <CONST_DECL>: Likewise.
665
666 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
667
668 Stack usage support
669 * common.opt (-fstack-usage): New option.
670 * doc/invoke.texi (Debugging options): Document it.
671 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
672 allocate_dynamic_stack_space.
673 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
674 and propagate it to allocate_dynamic_stack_space.
675 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
676 * calls.c (initialize_argument_information): Pass TRUE as 4th
677 argument to allocate_dynamic_stack_space.
678 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
679 to 1 when pushing a variable-sized argument onto the stack. Pass
680 TRUE as 4th argument to allocate_dynamic_stack_space.
681 Update current_function_pushed_stack_size.
682 (emit_library_call_value_1): Likewise.
683 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
684 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
685 attempt to find an upper bound. Remove redundant code for the
686 SETJMP_VIA_SAVE_AREA case.
687 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
688 * function.h (struct stack_usage): New structure.
689 (current_function_static_stack_size): New macro.
690 (current_function_dynamic_stack_size): Likewise.
691 (current_function_pushed_stack_size): Likewise.
692 (current_function_dynamic_alloc_count): Likewise.
693 (current_function_has_unbounded_dynamic_stack_size): Likewise.
694 (current_function_allocates_dynamic_stack_space): Likewise.
695 (struct function): Add new field 'su'.
696 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
697 add the value of the dynamic offset to the dynamic stack usage.
698 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
699 for variable-sized objects.
700 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
701 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
702 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
703 BUILT_IN_ALLOCA for variable-sized objects.
704 * output.h (output_stack_usage): Declare.
705 * toplev.c (stack_usage_file): New file pointer.
706 (output_stack_usage): New function.
707 (open_auxiliary_file): Likewise.
708 (lang_dependent_init): Open file if flag_stack_usage is set.
709 (finalize): Close file if stack_usage_file is not null.
710 * tree.h (ALLOCA_FOR_VAR_P): New macro.
711 * config/alpha/alpha.c (compute_frame_size): New function.
712 (alpha_expand_prologue): Use it.
713 (alpha_start_function): Likewise.
714 (alpha_expand_epilogue): Likewise. Set stack usage info.
715 * config/i386/i386.c (ix86_expand_prologue): Likewise.
716 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
717 * config/mips/mips.c (mips_expand_prologue): Likewise.
718 * config/pa/pa.c (hppa_expand_prologue): Likewise.
719 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
720 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
721
722 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
723
724 PR tree-optimization/45427
725 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
726 Handle the case that the exit is never taken correctly.
727 (number_of_iterations_ne): Pass exit_must_be_taken to
728 number_of_iterations_ne_max.
729
730 2010-08-30 Catherine Moore <clm@codesourcery.com>
731
732 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
733 Infer -mdspr2 for the the 74K.
734
735 2010-08-30 Jakub Jelinek <jakub@redhat.com>
736
737 PR debug/45419
738 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
739
740 PR middle-end/45423
741 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
742 and TRUTH_{AND,OR,XOR}_EXPR.
743 * c-parser.c (c_parser_omp_atomic): Handle boolean
744 {PRE,POST}_{INC,DEC}REMENT.
745
746 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
747
748 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
749 (function_arg): Delete.
750 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
751 (FUNCTION_INCOMING_ARG): Delete.
752 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
753 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
754 and a bool.
755 (function_arg): Rename to...
756 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
757 a bool.
758 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
759 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
760 (TARGET_FUNCTION_INCOMING_ARG): Define.
761
762 2010-08-30 Richard Guenther <rguenther@suse.de>
763
764 PR tree-optimization/21602
765 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
766 using points-to information.
767
768 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
769
770 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
771
772 2010-08-30 Richard Guenther <rguenther@suse.de>
773
774 PR tree-optimization/45449
775 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
776 variables.
777
778 2010-08-30 Joseph Myers <joseph@codesourcery.com>
779
780 * opts.h (CL_ERR_NEGATIVE): Define.
781 * opts.c (unknown_option_callback): Don't postpone warnings for
782 options marked with CL_ERR_NEGATIVE.
783 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
784 for negative versions of CL_REJECT_NEGATIVE options.
785
786 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
787
788 * config/i386/i386.md (zero_extendsidi2_1): Rename from
789 zero_extendsidi2_32.
790 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
791 using SWI12 mode iterator.
792 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
793 to define_insn_and_split pattern.
794 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
795 using SWI24 mode iterator.
796 (*zero_extendqi<mode>2_and): Macroize insn from
797 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
798 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
799 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
800 SWI24 mode iterator.
801 (*zero_extendqi<mode>2_movzbl): Ditto from
802 *zero_extendqi{hi,si}2_movzbl.
803 (extendsidi2_1): Rename from extendsidi2_32.
804 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
805 SWI12 mode iterator.
806
807 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
808
809 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
810 general purpose registers.
811 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
812 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
813 with general purpose registers and memory operands. Add associated
814 CCImode post-reload splitter.
815 * config/ia64/div.md: Change BImode to CCImode throughout.
816
817 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
818
819 * config/ia64/ia64.md (cstorebi4): Fix thinko.
820
821 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
822
823 * config/picochip/picochip.c (reorder_var_tracking_notes): This
824 function was dropping debug insns which caused PR45299.
825
826 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
827
828 * config/i386/sse.md (extsuffix): New code attribute.
829 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
830 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
831 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
832 and sse4_1_zero_extendv4qiv4si2.
833 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
834 and sse4_1_zero_extendv2qiv2di2.
835 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
836 and sse4_1_zero_extendv4hiv4si2.
837 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
838 and sse4_1_zero_extendv2hiv2di2.
839 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
840 and sse4_1_zero_extendv2siv2di2
841
842 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
843 using any_extend code iterator.
844 (*avx_<s>mulv8hi3_highpart): Macroize insn from
845 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
846 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
847
848 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
849 gen_sse4_1_sign_extend* functions.
850 (struct builtin_description bdesc_args): Ditto.
851
852 2010-08-27 Xinliang David Li <davidxl@google.com>
853
854 PR/45422
855 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
856 (iv_ca_set_no_cp): Update used inv expr count.
857 (iv_ca_set_cp): Ditto.
858 (iv_ca_new): Initialize new member.
859 (iv_ca_free): Free memory.
860
861 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
862
863 * config/sh/sh-protos.h (sh_function_arg): Delete.
864 (sh_function_arg_advance): Delete.
865 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
866 (PASS_IN_REG_P): Eliminate cast.
867 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
868 const_tree and a bool.
869 (sh_function_arg): Likewise.
870 (sh_output_mi_thunk): Call sh_function_arg_advance) and
871 sh_function_arg.
872 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
873
874 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
875 Kaz Kojima <kkojima@gcc.gnu.org>
876
877 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
878 when possible.
879 (sh_expand_epilogue): Likewise.
880 * config/sh/sh.md (movml_push_banked): New insn.
881 (movml_pop_banked): Likewise.
882
883 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
884
885 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
886 gen_regexp_oneof, gen_regexp_sequence): Use the string found
887 in vector element 0 rather than the original string when there's
888 only one element.
889 (gen_regexp): Remove extra semicolon.
890
891 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
892 thumb2_movsf_vfp): Set attribute "insn".
893 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
894 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
895 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
896 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
897 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
898 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
899 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
900 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
901 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
902 if_not_arith, if_arith_not, cond_move_not): Likewise.
903
904 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
905
906 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
907 New declaration.
908 (rs6000_allocate_stack_temp): Ditto.
909 (rs6000_expand_convert_si_to_sfdf): Ditto.
910
911 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
912 line. Update the options set if power6 or power7 server/embedded
913 type options are used. If we give a warning for no vsx under
914 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
915 (rs6000_allocate_stack_temp): New function to allocate a stack
916 tempoary and adjust the address so it meets either REG+OFFSET or
917 REG+REG addressing requirements.
918 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
919 that they can be used with the LFIWAX/LFIWZX instrucitons.
920 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
921 converting signed/unsigned SImode to either SFmode/DFmode.
922
923 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
924 whether certain instructions can be generated.
925 (TARGET_FCTIDZ): Ditto.
926 (TARGET_STFIWX): Ditto.
927 (TARGET_LFIWAX): Ditto.
928 (TARGET_LFIWZX): Ditto.
929 (TARGET_FCFIDS): Ditto.
930 (TARGET_FCFIDU): Ditto.
931 (TARGET_FCFIDUS): Ditto.
932 (TARGET_FCTIDUZ): Ditto.
933 (TARGET_FCTIWUZ): Ditto.
934
935 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
936 (UNSPEC_FCTID): Ditto.
937 (UNSPEC_LFIWAX): Ditto.
938 (UNSPEC_LFIWZX): Ditto.
939 (UNSPEC_FCTIWUZ): Ditto.
940 (rreg): Use correct constraints.
941 (SI_CONVERT_FP): New mode attribute for floating point conversion
942 tests.
943 (E500_CONVERT): Ditto.
944 (lfiwax): New insns for converting from integer to floating point
945 utilizing newer instructions. Attempt to optimize conversions
946 that come from memory so that we don't load the value into a GPR,
947 spill it to the stack and reload it into a FPR.
948 (floatsi<mode>2_lfiwax): Ditto.
949 (floatsi<mode>2_lfiwax_mem): Ditto.
950 (floatsi<mode>2_lfiwax_mem2): Ditto.
951 (lfiwzx): Ditto.
952 (floatunssi<mode>2_lfiwzx): Ditto.
953 (floatunssi<mode>2_lfiwzx_mem): Ditto.
954 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
955 (floatdidf2_mem): Ditto.
956 (floatunsdidf2_fcfidu): Ditto.
957 (floatunsdidf2_mem): Ditto.
958 (floatunsdisf2): Ditto.
959 (floatunsdisf2_fcfidus): Ditto.
960 (floatunsdisf2_mem): Ditto.
961 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
962 Use FCFID on 32-bit hosts that support it.
963 (floatsidf2_internal): Ditto.
964 (floatunssisf2): Ditto.
965 (floatunssidf2): Ditto.
966 (floatunssidf2_internal): Ditto.
967 (floatsisf2): Ditto.
968 (floatdidf2): Ditto.
969 (floatdidf2_fpr): Ditto.
970 (floatunsdidf2): Ditto.
971 (floatdisf2): Ditto.
972 (floatdisf2_fcfids): Ditto.
973 (floatdisf2_internal1): Ditto.
974 (fixuns_truncsfsi2): Delete, merge into common pattern for both
975 SF/DF. Add power7 support.
976 (fix_truncsfsi2): Ditto.
977 (fixuns_truncdfsi2): Ditto.
978 (fixuns_truncdfdi2): Ditto.
979 (fix_truncdfsi2): Ditto.
980 (fix_truncdfsi2_internal): Ditto.
981 (fix_truncdfsi2_internal_gfxopt): Ditto.
982 (fix_truncdfsi2_mfpgpr): Ditto.
983 (fctiwz): Ditto.
984 (btruncdf2): Ditto.
985 (btruncdf2_fpr): Ditto.
986 (btructsf2): Ditto.
987 (ceildf2): Ditto.
988 (ceildf2_fpr): Ditto.
989 (ceilsf2): Ditto.
990 (floordf2): Ditto.
991 (floordf2_fpr): Ditto.
992 (floorsf2): Ditto.
993 (rounddf2): Ditto.
994 (rounddf2_fpr): Ditto.
995 (roundsf2): Ditto.
996 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
997 (fix_trunc<mode>di2): Ditto.
998 (fixuns_trunc<mode>si2): Ditto.
999 (fixuns_trunc<mode>di2): Ditto.
1000 (fctiwz_<mode>): Ditto.
1001 (btrunc<mode>2): Ditto.
1002 (btrunc<mode>2_fpr): Ditto.
1003 (ceil<mode>2): Ditto.
1004 (ceil<mode>2_fpr): Ditto.
1005 (floor<mode>2): Ditto.
1006 (float<mode>2_fpr): Ditto.
1007 (round<mode>2): Ditto.
1008 (round<mode>2_fpr): Ditto.
1009 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
1010 (fixuns_trunc<mode>si2_stfiwx): Ditto.
1011 (fix_truncdfsi2_internal): Ditto.
1012 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
1013 converted value on stack, loaded into GPR, and then stored into
1014 the final destination.
1015 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
1016 FCTIDZ.
1017 (lrint<mode>di2): New insn, provide the lrint builtin functions.
1018 (ftruncdf2): Delete, unused.
1019 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
1020
1021 * config/rs6000/vsx.md (toplevel): Update copyright year.
1022 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
1023 (VSr3): Ditto.
1024
1025 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
1026 Jeremie Salvucci <jeremie.salvucci@free.fr>
1027
1028 * gengtype.c (output_type_enum): Test the right union member.
1029
1030 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
1031
1032 PR target/41484
1033 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
1034 operands for operand 1.
1035 (sse4_1_extendv4qiv4si2): Ditto.
1036 (sse4_1_extendv2qiv2di2): Ditto.
1037 (sse4_1_extendv4hiv4si2): Ditto.
1038 (sse4_1_extendv2hiv2di2): Ditto.
1039 (sse4_1_extendv2siv2di2): Ditto.
1040 (sse4_1_zero_extendv8qiv8hi2): Ditto.
1041 (sse4_1_zero_extendv4qiv4si2): Ditto.
1042 (sse4_1_zero_extendv2qiv2di2): Ditto.
1043 (sse4_1_zero_extendv4hiv4si2): Ditto.
1044 (sse4_1_zero_extendv2hiv2di2): Ditto.
1045 (sse4_1_zero_extendv2siv2di2): Ditto.
1046 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
1047 (*sse4_1_extendv4qiv4si2): Ditto.
1048 (*sse4_1_extendv2qiv2di2): Ditto.
1049 (*sse4_1_extendv4hiv4si2): Ditto.
1050 (*sse4_1_extendv2hiv2di2): Ditto.
1051 (*sse4_1_extendv2siv2di2): Ditto.
1052 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
1053 (*sse4_1_zero_extendv4qiv4si2): Ditto.
1054 (*sse4_1_zero_extendv2qiv2di2): Ditto.
1055 (*sse4_1_zero_extendv4hiv4si2): Ditto.
1056 (*sse4_1_zero_extendv2hiv2di2): Ditto.
1057 (*sse4_1_zero_extendv2siv2di2): Ditto.
1058
1059 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
1060
1061 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
1062 (mips_function_arg): Delete.
1063 (mips_function_arg_boundary): Take a const_tree.
1064 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
1065 (mips_arg_info): Likewise.
1066 (mips_setup_incoming_varargs): Call mips_function_arg_advance
1067 instead of FUNCTION_ARG_ADVANCE.
1068 (mips_function_arg_advance): Adjust prototype. Make static.
1069 (mips_function_arg): Likewise.
1070 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1071 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
1072
1073 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
1074
1075 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1076 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
1077 (function_arg): Delete.
1078 (function_arg_boundary): Take a const_tree.
1079 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
1080 (rs6000_spe_function_arg): Likewise.
1081 (rs6000_parm_start): Likewise.
1082 (rs6000_arg_size): Likewise.
1083 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
1084 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
1085 (rs6000_mixed_function_arg): Likewise.
1086 (function_arg): Rename to...
1087 (rs6000_function_arg): ...this.
1088 (function_arg_advance): Rename to...
1089 (rs6000_function_arg_advance_1): ...this
1090 (rs6000_function_arg_advance): New function. Call it.
1091 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
1092 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
1093 (rs6000_function_value): Likewise.
1094 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1095
1096 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1097
1098 * config/arm/arm.md (enabled): Test the value of arch_enabled
1099 rather than just using it.
1100
1101 2010-08-27 Olivier Hainque <hainque@adacore.com>
1102 Eric Botcazou <ebotcazou@adacore.com>
1103
1104 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
1105 cover all the possible offsets from this base.
1106 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
1107
1108 2010-08-26 Jakub Jelinek <jakub@redhat.com>
1109
1110 PR tree-optimization/44485
1111 * calls.c (flags_from_decl_or_type): For const or pure
1112 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
1113 together with ECF_CONST resp. ECF_PURE.
1114 * builtins.c (expand_builtin): Use flags_from_decl_or_type
1115 instead of querying flags directly.
1116 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
1117 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
1118
1119 2010-08-26 Richard Guenther <rguenther@suse.de>
1120
1121 PR tree-optimization/45255
1122 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
1123 and externals are also invariant.
1124
1125 2010-08-25 Jakub Jelinek <jakub@redhat.com>
1126
1127 PR rtl-optimization/44858
1128 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
1129 newi2pat, make sure they don't affect newpat.
1130
1131 PR rtl-optimization/45400
1132 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
1133 SUBREG_REG if both modes are of MODE_INT class.
1134
1135 2010-08-25 Julian Brown <julian@codesourcery.com>
1136
1137 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
1138 * config/arm/arm.md (generic_sched): No for Cortex-A5.
1139 (generic_vfp): Likewise.
1140 (cortex-a5.md): Include.
1141 * config/arm/cortex-a5.md: New.
1142
1143 2010-08-25 Richard Guenther <rguenther@suse.de>
1144
1145 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
1146 * gimple.c (gimple_get_alias_set): Remove special handling
1147 for pointers.
1148
1149 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
1150
1151 PR middle-end/45355
1152 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
1153 dead_or_set_p when computing i0_feeds_i2_n.
1154
1155 * combine.c (find_split_point): Undo canonicalization of multiply-add
1156 to (minus x (mult)) when it seems likely that this will increase the
1157 chances of a split.
1158
1159 2010-08-25 Richard Guenther <rguenther@suse.de>
1160
1161 PR lto/44562
1162 * lto-streamer.c (lto_record_common_node): Do not mess with
1163 TYPE_CANONICAL when not in lto.
1164 * gimple.c (gimple_register_type): Likewise.
1165
1166 2010-08-25 Richard Guenther <rguenther@suse.de>
1167
1168 PR tree-optimization/45316
1169 * tree-ssa-pre.c (eliminate): Properly clean EH info.
1170
1171 2010-08-25 Richard Guenther <rguenther@suse.de>
1172
1173 PR tree-optimization/45393
1174 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
1175 and clean EH info. Avoid SSA update.
1176 (execute_cse_sincos): Cleanup the CFG if it has changed.
1177
1178 2010-08-25 Richard Guenther <rguenther@suse.de>
1179
1180 PR middle-end/45379
1181 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
1182 TARGET_MEM_REF in alignment computation.
1183
1184 2010-08-25 Jakub Jelinek <jakub@redhat.com>
1185
1186 PR tree-optimization/45059
1187 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
1188 type conversions from newop{1,2}. Assert t is a comparison and
1189 newop{1,2} after the stripping are gimple vals.
1190
1191 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
1192
1193 * config/arm/iterators.md (VU, SE, V_widen_l): New.
1194 (V_unpack, US): New.
1195 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
1196 (vec_unpack<US>_lo_<mode>): Likewise.
1197 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
1198 (neon_vec_unpack<US>_lo_<mode>): Likewise.
1199 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
1200 (vec_widen_<US>mult_hi_<mode>): Likewise.
1201 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
1202 (neon_vec_<US>mult_hi_<mode>"): Likewise.
1203 (neon_unpack<US>_<mode>): Widening move intermediate step for
1204 vectorizing without -mvectorize-with-neon-quad.
1205 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
1206 for vectorizing without -mvectorize-with-neon-quad.
1207 * config/arm/predicates.md (vect_par_constant_high): Check for
1208 high-half lanes of a vector.
1209 (vect_par_constant_low): Check for low-half lanes of a vector.
1210
1211 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
1212
1213 * tree-if-conv.c (struct ifc_dr): New.
1214 (IFC_DR): New.
1215 (DR_WRITTEN_AT_LEAST_ONCE): New.
1216 (DR_RW_UNCONDITIONALLY): New.
1217 (memref_read_or_written_unconditionally): Use the cached values
1218 when possible.
1219 (write_memref_written_at_least_once): Same.
1220 (if_convertible_loop_p): Initialize and free DR->aux fields.
1221
1222 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
1223
1224 * gimple.c (gimple_could_trap_p_1): Not static anymore.
1225 Pass an extra bool parameter include_mem.
1226 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
1227 (gimple_assign_rhs_could_trap_p): Same.
1228 * gimple.h (gimple_could_trap_p_1): Declared.
1229 * tree-data-ref.h (same_data_refs_base_objects): New.
1230 (same_data_refs): New.
1231 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
1232 (write_memrefs_written_at_least_once): New.
1233 (ifcvt_memrefs_wont_trap): New.
1234 (operations_could_trap): New.
1235 (ifcvt_could_trap_p): New.
1236 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
1237 Gets a vector of data refs.
1238 (if_convertible_stmt_p): Same.
1239 (if_convertible_loop_p_1): New.
1240 (if_convertible_loop_p): Call if_convertible_loop_p_1.
1241
1242 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
1243
1244 * common.opt (ftree-loop-if-convert-stores): New flag.
1245 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
1246 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
1247 the created statement before GSI.
1248 (if_convertible_phi_p): Allow virtual phi nodes when
1249 flag_loop_if_convert_stores is set.
1250 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
1251 Do not handle types that do not match is_gimple_reg_type.
1252 Remove loop and bb parameters. Call gimple_could_trap_p instead of
1253 when flag_loop_if_convert_stores is set, as LHS can contain
1254 memory refs.
1255 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
1256 to if_convertible_gimple_assign_stmt_p.
1257 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
1258 (replace_phi_with_cond_gimple_assign_stmt): Renamed
1259 predicate_scalar_phi. Do not handle virtual phi nodes.
1260 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
1261 Call predicate_scalar_phi.
1262 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
1263 just after the labels for flag_loop_if_convert_stores, otherwise
1264 insert the predicate in the end of the BB.
1265 (predicate_mem_writes): New.
1266 (combine_blocks): Call predicate_all_scalar_phis. When
1267 flag_loop_if_convert_stores is set, call predicate_mem_writes.
1268 (tree_if_conversion): Call mark_sym_for_renaming when
1269 flag_loop_if_convert_stores is set.
1270 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
1271 flag_loop_if_convert_stores is set.
1272
1273 2010-08-24 Anatoly Sokolov <aesok@post.ru>
1274
1275 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
1276 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
1277 (pa_function_value): Make static.
1278 (override_options): Rename to...
1279 (pa_option_override): ...this. Make static.
1280 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
1281 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
1282 TARGET_OPTION_OVERRIDE): Define.
1283 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
1284 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
1285 Remove.
1286 * config/pa/pa-protos.h (override_options): Remove.
1287
1288 2010-08-24 Richard Guenther <rguenther@suse.de>
1289
1290 PR middle-end/45379
1291 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
1292 if addr->index is NULL or zero.
1293 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
1294 TARGET_MEM_REF more properly.
1295 (indirect_ref_may_alias_decl_p): Likewise.
1296 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
1297 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
1298
1299 2010-08-23 Anatoly Sokolov <aesok@post.ru>
1300
1301 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
1302 (m32c_override_options): Rename to...
1303 (m32c_option_override): ...this. Make static.
1304 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
1305 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
1306 Remove.
1307 * config/m32c/m32c-protos.h (m32c_override_options,
1308 m32c_function_value_regno_p): Remove.
1309
1310 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
1311
1312 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
1313 Fix a typo in a previous commit.
1314
1315 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
1316
1317 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
1318 Pre-initialize innerloop_iters to one.
1319
1320 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
1321
1322 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
1323 existing static function global.
1324
1325 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
1326 is changed to global.
1327
1328 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
1329 may_be_nonaddressable_p on base, and don't collect this reference
1330 if the address of the base could not be taken.
1331
1332 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1333
1334 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
1335 enable the compiler to autovectorize mathmetical functions for
1336 power7 using the Mathematical Acceleration Subsystem library.
1337
1338 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
1339 handle which vector math library we have.
1340 (rs6000_override_options): Add -mveclibabi=mass support.
1341 (rs6000_builtin_vectorized_libmass): New function to handle auto
1342 vectorizing math functions that are in the MASS library.
1343 (rs6000_builtin_vectorized_function): Call it.
1344
1345 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
1346 -mveclibabi=mass.
1347
1348 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1349
1350 PR boehm-gc/34544
1351 * gthr-posix.h (__gthread_active_init): Delete.
1352 (__gthread_active_p): Do activity check here.
1353 Don't include errno.h on hppa-hpux. Update comment.
1354 * gthr-posix95.h (__gthread_active_init): Delete.
1355 (__gthread_active_p): Do activity check here.
1356 Don't include errno.h on hppa-hpux. Update comment.
1357 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
1358 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
1359 add -lpthread when -mt or -pthread is specified.
1360 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
1361 (LINK_GCC_C_SEQUENCE_SPEC): Define.
1362 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
1363 (stublib.c, pthread_default_stacksize_np-stub.o,
1364 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
1365 $(T)libgcc_stub.a): Add methods.
1366 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
1367 (stublib.c, pthread_default_stacksize_np-stub.o,
1368 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
1369 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
1370 pthread_mutex_unlock): New stubs.
1371
1372 2010-08-22 Joseph Myers <joseph@codesourcery.com>
1373
1374 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
1375 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
1376 options.
1377 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
1378 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
1379 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
1380 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
1381 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
1382 "-l".
1383 * cppspec.c: Include opts.h.
1384 (lang_specific_driver): Use cl_decoded_option structures.
1385 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
1386 * doc/tm.texi: Regenerate.
1387 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
1388 (driver_handle_option): Allow driver options needing no special
1389 processing.
1390 (process_command): Decode options before call to
1391 lang_specific_driver. Pass decoded options to
1392 lang_specific_driver.
1393 * gcc.h (lang_specific_driver): Update prototype.
1394 * gccspec.c: Include opts.h.
1395 (lang_specific_driver): Use cl_decoded_option structures.
1396 * opts-common.c (option_ok_for_language, generate_option,
1397 generate_option_input_file): New.
1398 (decode_cmdline_option): Use option_ok_for_language.
1399 (decode_cmdline_options_to_array): Use generate_option_input_file.
1400 (handle_generated_option): Use generate_option.
1401 * opts.h (generate_option, generate_option_input_file): Declare.
1402
1403 2010-08-22 Anatoly Sokolov <aesok@post.ru>
1404
1405 * config/mips/mips.c (mips_override_options): Rename to...
1406 (mips_option_override): ...this. Make static.
1407 (TARGET_OPTION_OVERRIDE): Define.
1408 (mips_in_small_data_p): Update comment.
1409 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
1410 (FIXED_REGISTERS): Update comment.
1411 * config/mips/mips-protos.h (mips_override_options): Remove.
1412
1413 2010-08-21 Olivier Hainque <hainque@adacore.com>
1414
1415 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
1416
1417 2010-08-21 Olivier Hainque <hainque@adacore.com>
1418
1419 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
1420 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
1421
1422 2010-08-20 Jan Hubicka <jh@suse.cz>
1423
1424 * tree-pass.h (pass_ipa_cdtor_merge): New function.
1425 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
1426 heap allocated.
1427 (record_cdtor_fn): Move to ipa.c; do not test for
1428 have_ctors_dtors.
1429 (build_cdtor): Move to ipa.c; add code avoiding construction
1430 when target have ctors/dtors and there is only one ctor/dtor at given
1431 priority.
1432 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
1433 sort; reverse order of constructors.
1434 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
1435 (cgraph_finalize_function): Do not call record_cdtor_fn.
1436 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
1437 (cgraph_build_static_cdtor): Move to ipa.c.
1438 * ipa.c: Include target.h and tree-iterator.h.
1439 (cgraph_build_static_cdtor, static_ctors, static_dtors,
1440 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
1441 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
1442 pass_ipa_cdtor_merge): New.
1443 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
1444 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
1445 bounds access.
1446
1447 2010-08-20 Jan Hubicka <jh@suse.cz>
1448
1449 PR c++/45307
1450 PR c++/17736
1451 * cgraph.h (cgraph_only_called_directly_p,
1452 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
1453 static cdtors.
1454 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
1455 are not needed.
1456 (cgraph_finalize_function): Static cdtors are reachable.
1457 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
1458
1459 2010-08-20 Jan Hubicka <jh@suse.cz>
1460
1461 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
1462 flag_wpa.
1463 * lto-streamer-out.c (lto_output): Likewise.
1464 * passes.c (ipa_write_optimization_summaries): Initialize statement
1465 uids.
1466
1467 2010-08-20 Olivier Hainque <hainque@adacore.com>
1468
1469 * tree.h (alias_diag_flags): New enum.
1470 (alias_pair): Add an 'emitted_diags' field.
1471 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
1472 (assemble_alias): Initialize emitted_diags of new pairs.
1473
1474 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
1475
1476 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
1477 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1478 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1479 (STACK_CHECK_PROTECT): Define.
1480 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
1481 (output_probe_stack_range): Likewise.
1482 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
1483 builtin stack checking is enabled.
1484 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
1485 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
1486 (probe_stack_range): New insn.
1487
1488 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
1489
1490 PR target/45336
1491 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
1492 short first.
1493
1494 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
1495 char first.
1496
1497 2010-08-20 Jakub Jelinek <jakub@redhat.com>
1498
1499 PR target/45336
1500 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
1501 to cover zero extension into 64-bit register.
1502 (*sse2_pextrw): Likewise.
1503 (*sse4_1_pextrd_zext): New insn.
1504
1505 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
1506
1507 revert r163410, partially revert r163267.
1508 * config/rs6000/darwin.h (LIB_SPEC): Remove.
1509 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
1510 Darwin versions.
1511
1512 2010-08-20 Jakub Jelinek <jakub@redhat.com>
1513
1514 PR middle-end/44974
1515 * builtins.c (expand_builtin): Don't optimize away
1516 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
1517
1518 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
1519
1520 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
1521 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
1522 alternative 1 of operand 2.
1523
1524 2010-08-20 Jakub Jelinek <jakub@redhat.com>
1525 Paolo Bonzini <bonzini@gnu.org>
1526
1527 * simplify-rtx.c (simplify_unary_operation_1): Optimize
1528 (sign_extend (zero_extend (...)) and
1529 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
1530
1531 2010-08-20 Jakub Jelinek <jakub@redhat.com>
1532
1533 PR rtl-optimization/45353
1534 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
1535 after bb_note is a BARRIER.
1536
1537 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
1538
1539 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
1540 linking libgcc.a.
1541
1542 2010-08-20 Jakub Jelinek <jakub@redhat.com>
1543 Michael Matz <matz@suse.de>
1544
1545 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
1546
1547 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1548
1549 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
1550 (ggc_mark_roots): ...here.
1551
1552 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1553
1554 * vec.h (FOR_EACH_VEC_ELT): Define.
1555 * c-decl.c: Use it.
1556 * cfgloop.c: Likewise.
1557 * cfgloopmanip.c: Likewise.
1558 * cgraph.c: Likewise.
1559 * cgraphunit.c: Likewise.
1560 * combine.c: Likewise.
1561 * config/bfin/bfin.c: Likewise.
1562 * config/mips/mips.c: Likewise.
1563 * config/rs6000/rs6000.c: Likewise.
1564 * dbxout.c: Likewise.
1565 * df-scan.c: Likewise.
1566 * dominance.c: Likewise.
1567 * dse.c: Likewise.
1568 * dwarf2out.c: Likewise.
1569 * except.c: Likewise.
1570 * expr.c: Likewise.
1571 * function.c: Likewise.
1572 * gcse.c: Likewise.
1573 * genattr.c: Likewise.
1574 * ggc-common.c: Likewise.
1575 * gimplify.c: Likewise.
1576 * graphite-blocking.c: Likewise.
1577 * graphite-clast-to-gimple.c: Likewise.
1578 * graphite-dependences.c: Likewise.
1579 * graphite-interchange.c: Likewise.
1580 * graphite-poly.c: Likewise.
1581 * graphite-scop-detection.c: Likewise.
1582 * graphite-sese-to-poly.c: Likewise.
1583 * graphite.c: Likewise.
1584 * haifa-sched.c: Likewise.
1585 * ifcvt.c: Likewise.
1586 * implicit-zee.c: Likewise.
1587 * ipa-prop.c: Likewise.
1588 * ipa-struct-reorg.c: Likewise.
1589 * ipa.c: Likewise.
1590 * ira-build.c: Likewise.
1591 * ira-color.c: Likewise.
1592 * ira-emit.c: Likewise.
1593 * lambda-code.c: Likewise.
1594 * loop-invariant.c: Likewise.
1595 * loop-unroll.c: Likewise.
1596 * lower-subreg.c: Likewise.
1597 * lto-cgraph.c: Likewise.
1598 * lto-opts.c: Likewise.
1599 * lto-streamer-in.c: Likewise.
1600 * lto-streamer-out.c: Likewise.
1601 * lto-streamer.c: Likewise.
1602 * lto-symtab.c: Likewise.
1603 * matrix-reorg.c: Likewise.
1604 * opts.c: Likewise.
1605 * predict.c: Likewise.
1606 * print-tree.c: Likewise.
1607 * sdbout.c: Likewise.
1608 * sel-sched-dump.c: Likewise.
1609 * sel-sched-ir.c: Likewise.
1610 * sel-sched.c: Likewise.
1611 * sese.c: Likewise.
1612 * stor-layout.c: Likewise.
1613 * tree-cfg.c: Likewise.
1614 * tree-cfgcleanup.c: Likewise.
1615 * tree-chrec.c: Likewise.
1616 * tree-data-ref.c: Likewise.
1617 * tree-emutls.c: Likewise.
1618 * tree-inline.c: Likewise.
1619 * tree-into-ssa.c: Likewise.
1620 * tree-loop-distribution.c: Likewise.
1621 * tree-loop-linear.c: Likewise.
1622 * tree-mudflap.c: Likewise.
1623 * tree-outof-ssa.c: Likewise.
1624 * tree-parloops.c: Likewise.
1625 * tree-predcom.c: Likewise.
1626 * tree-pretty-print.c: Likewise.
1627 * tree-scalar-evolution.c: Likewise.
1628 * tree-ssa-live.c: Likewise.
1629 * tree-ssa-loop-im.c: Likewise.
1630 * tree-ssa-loop-ivcanon.c: Likewise.
1631 * tree-ssa-loop-ivopts.c: Likewise.
1632 * tree-ssa-loop-manip.c: Likewise.
1633 * tree-ssa-loop-niter.c: Likewise.
1634 * tree-ssa-loop-prefetch.c: Likewise.
1635 * tree-ssa-phiprop.c: Likewise.
1636 * tree-ssa-pre.c: Likewise.
1637 * tree-ssa-reassoc.c: Likewise.
1638 * tree-ssa-sccvn.c: Likewise.
1639 * tree-ssa-structalias.c: Likewise.
1640 * tree-ssa.c: Likewise.
1641 * tree-vect-data-refs.c: Likewise.
1642 * tree-vect-loop-manip.c: Likewise.
1643 * tree-vect-loop.c: Likewise.
1644 * tree-vect-patterns.c: Likewise.
1645 * tree-vect-slp.c: Likewise.
1646 * tree-vect-stmts.c: Likewise.
1647 * tree-vrp.c: Likewise.
1648 * tree.c: Likewise.
1649 * value-prof.c: Likewise.
1650 * var-tracking.c: Likewise.
1651 * varasm.c: Likewise.
1652 * vmsdbgout.c: Likewise.
1653
1654 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
1655 Richard Guenther <richard.guenther@gmail.com>
1656
1657 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
1658 copy the src value and return a copy.
1659 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
1660 (C++ Volatiles): Adjust to describe C++ semantics only.
1661
1662 2010-08-20 Joseph Myers <joseph@codesourcery.com>
1663
1664 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
1665 be zero or nonzero.
1666 * doc/tm.texi: Regenerate.
1667 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
1668 * df-scan.c (df_get_exit_block_use_set), reginfo.c
1669 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
1670 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
1671 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
1672 to 1.
1673
1674 2010-08-20 Olivier Hainque <hainque@adacore.com>
1675
1676 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
1677 an extra nop past a sibling call at the very end.
1678
1679 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
1680
1681 PR bootstrap/45350
1682 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
1683 a comment.
1684
1685 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
1686
1687 * target.def (function_arg, function_incoming_arg): Remove const
1688 qualifier on CUMULATIVE_ARGS parameter.
1689 * targhooks.h (default_function_arg, default_function_incoming_arg):
1690 Likewise.
1691 * targhooks.c (default_function_arg, default_function_incoming_arg):
1692 Likewise.
1693 * config/i386/i386.c (ix86_function_arg): Likewise.
1694
1695 2010-08-19 Jakub Jelinek <jakub@redhat.com>
1696
1697 PR target/45336
1698 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
1699 SIGN_EXTENDs or ZERO_EXTENDs.
1700
1701 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
1702
1703 PR target/42172
1704 * combine.c (combine_validate_cost): New arg I0. All callers changed.
1705 Take its cost into account if nonnull.
1706 (insn_a_feeds_b): New static function.
1707 (combine_instructions): Look for four-insn combinations.
1708 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
1709 them into account when computing all_adjacent and looking for other
1710 uses.
1711 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
1712 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
1713 (try_combine): New arg I0. Handle four-insn combinations.
1714 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
1715 like ELIM_I1.
1716
1717 2010-08-19 Jason Merrill <jason@redhat.com>
1718
1719 PR c++/45307
1720 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
1721 if ctor is empty.
1722 (gimplify_modify_expr_rhs): Adjust.
1723
1724 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
1725
1726 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
1727 bitmap_bit_p.
1728 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
1729 * dominance.c (iterate_fix_dominators): Likewise.
1730 * dse.c (set_usage_bits): Likewise.
1731 (set_position_unneeded, record_store): Likewise.
1732 * gimple-fold.c (get_maxval_strlen): Likewise.
1733 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
1734 * ipa-inline.c (update_caller_keys): Likewise.
1735 * ipa-split.c (verify_non_ssa_vars): Likewise.
1736 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
1737 (close_type_exposed_parameter, close_type_full_escape): Likewise.
1738 (close_addressof_down): Likewise.
1739 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
1740 (setup_allocno_left_conflicts_size): Likewise.
1741 (ira_reassign_conflict_allocnos): Likewise.
1742 (ira_reassign_pseudos): Likewise.
1743 * ira-emit.c (change_loop): Likewise.
1744 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
1745 * lto-streamer-out.c (write_symbol): Likewise.
1746 * predict.c (expr_expected_value_1): Likewise.
1747 * regstat.c (regstat_bb_compute_ri): Likewise.
1748 * sel-sched.c (create_block_for_bookkeeping): Likewise.
1749 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
1750 * stmt.c (expand_case): Likewise.
1751 * tree-eh.c (emit_eh_dispatch): Likewise.
1752 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
1753 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
1754 Likewise.
1755 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
1756 (rdg_build_components): Likewise.
1757 * tree-object-size.c (collect_object_sizes_for): Likewise.
1758 * tree-sra.c (convert_callers): Likewise.
1759 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
1760 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
1761 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
1762
1763 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
1764
1765 * config/i386/i386.md (*lea_1): Use P mode iterator.
1766 (lea add splitter): Also handle DImode operands.
1767 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
1768 predicate. Do not use ix86_lea_for_add_ok.
1769 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
1770 (lea ashift splitter): Also handle DImode operands.
1771 (DImode lea ashift splitter): Remove splitter.
1772
1773 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
1774
1775 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
1776 ix86_binary_operator_ok.
1777
1778 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
1779
1780 PR rtl-optimization/44691
1781 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
1782 is not a register.
1783
1784 2010-08-19 Ian Bolton <ian.bolton@arm.com>
1785
1786 PR target/45070
1787 * config/arm/arm.c (arm_output_epilogue): Ensure that return
1788 value of size 1-3 is handled correctly.
1789
1790 2010-08-19 Ian Bolton <ian.bolton@arm.com>
1791
1792 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
1793 type for the conditional has wide enough range.
1794
1795 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
1796
1797 PR target/45327
1798 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
1799 ix86_binary_operator_ok.
1800
1801 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
1802
1803 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
1804 <default>: Swap operands 1 and 2 for alternative 2 to use existing
1805 code to output insn mnemonic. Fix comment.
1806 (*addsi_1_zext): Add r-r-0 alternative 1.
1807 <TYPE_LEA>: Split insn to lea.
1808 <default>: Handle alternative 1.
1809 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
1810 multi-level if_then_else RTX to set "type" attribute.
1811 <default>: Handle alternative 2.
1812 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
1813 Use cond RTX instead of multi-level if_then_else RTX to set
1814 "type" attribute.
1815 <default>: Handle alternatives 2 and 4.
1816 (lea splitters): Update calls to ix86_lea_for_add_ok.
1817
1818 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
1819 argument.
1820 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
1821
1822 2010-08-18 Richard Guenther <rguenther@suse.de>
1823
1824 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
1825 use operand helpers.
1826
1827 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
1828
1829 PR middle-end/45292
1830 * optabs.c (expand_bool_compare_and_swap): Expand pending
1831 pops before trying the optab.
1832
1833 2010-08-18 Yao Qi <yao@codesourcery.com>
1834
1835 PR target/45094
1836 * config/arm/arm.c (output_move_double): Fix typo generating
1837 instructions ('ldr'->'str').
1838
1839 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
1840
1841 PR rtl-optimization/42575
1842 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
1843 live ranges.
1844
1845 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
1846
1847 * config/arm/arm-protos.h (arm_expand_sync): New.
1848 (arm_output_memory_barrier, arm_output_sync_insn): New.
1849 (arm_sync_loop_insns): New.
1850 * config/arm/arm.c (FL_ARCH7): New.
1851 (FL_FOR_ARCH7): Include FL_ARCH7.
1852 (arm_arch7): New.
1853 (arm_print_operand): Support %C markup.
1854 (arm_legitimize_sync_memory): New.
1855 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
1856 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
1857 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
1858 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
1859 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
1860 (arm_process_output_sync_insn, arm_output_sync_insn): New.
1861 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
1862 * config/arm/arm.h (struct arm_sync_generator): New.
1863 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
1864 (TARGET_HAVE_MEMORY_BARRIER): New.
1865 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
1866 * config/arm/arm.md: Include sync.md.
1867 (UNSPEC_MEMORY_BARRIER): New.
1868 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
1869 (VUNSPEC_SYNC_OP):New.
1870 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
1871 (sync_result, sync_memory, sync_required_value): New attributes.
1872 (sync_new_value, sync_t1, sync_t2): Likewise.
1873 (sync_release_barrier, sync_op): Likewise.
1874 (length): Add logic to length attribute defintion to call
1875 arm_sync_loop_insns when appropriate.
1876 * config/arm/sync.md: New file.
1877
1878 2010-08-17 Jakub Jelinek <jakub@redhat.com>
1879
1880 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
1881 ENABLE_TREE_CHECKING.
1882 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
1883 and GCC >= 4.3.
1884
1885 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
1886
1887 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
1888 or optimizing for size, always avoid lea if possible.
1889
1890 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
1891
1892 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
1893
1894 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
1895 Dunmmy function with NULL return unless the target is
1896 OSX >= 10.6 (Darwin10).
1897
1898 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
1899
1900 * gcc.c (spec_function): Add remove-outfile.
1901 (remove_outfile_spec_function): New function.
1902 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
1903 * invoke.texi (replace-outfile): Document.
1904
1905 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
1906
1907 PR target/45296
1908 * reginfo.c (globalize_reg): Reject stack registers.
1909
1910 2010-08-17 Richard Guenther <rguenther@suse.de>
1911
1912 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
1913 list of conditional equivalences.
1914 (free_all_edge_infos): Adjust.
1915 (record_equivalences_from_incoming_edge): Likewise.
1916 (record_cond): Likewise.
1917 (build_and_record_new_cond): Likewise.
1918 (record_conditions): Likewise.
1919 (dom_opt_leave_block): Likewise.
1920
1921 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
1922
1923 * doc/invoke.texi (ms-extension): Add documentation.
1924
1925 2010-08-17 Richard Guenther <rguenther@suse.de>
1926
1927 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
1928
1929 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
1930
1931 PR c/40563
1932 * c-decl.c (diagnose_uninitialized_cst_member): New function.
1933 (finish_decl): Use it to issue a -Wc++-compat warning about
1934 uninitialized const field in struct or union.
1935
1936 (finish_struct): Use strip_array_types.
1937
1938 2010-08-17 Jakub Jelinek <jakub@redhat.com>
1939
1940 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
1941 functions.
1942 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
1943 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
1944 call block_nreverse here.
1945 (blocks_nreverse): Rename decl temporary to block.
1946
1947 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
1948
1949 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
1950 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
1951 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
1952 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
1953 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
1954 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
1955 thumb2_iorsi3): Delete.
1956 (orsi_notsi_si): No longer a named pattern.
1957 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
1958 * config/arm/predicates.md (shift_amount_operand): New.
1959 (mult_operator): New.
1960 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
1961 attr enabled): New.
1962 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
1963 arch matches t2.
1964 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
1965 (not_shiftsi_compare0): Likewise, renamed from
1966 arm_notsi_shiftsi_compare0.
1967 (not_shiftsi_compare0_scratch): Likweise, renamed from
1968 arm_notsi_shiftsi_compare0_scratch.
1969 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
1970 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
1971 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
1972 so that the register alternative is disabled when the shift_operator
1973 is MULT. Use "M" as the constraint for constants.
1974 (arith_shiftsi splitter): Enable for TARGET_32BIT.
1975 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
1976 constraint for constants.
1977 (arith_shiftsi_compare0_scratch): Likewise.
1978 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
1979 Handle Thumb2 alternative.
1980
1981 2010-08-16 Joseph Myers <joseph@codesourcery.com>
1982
1983 * doc/options.texi (NoDriverArg): Document.
1984 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
1985 -MDX and -MMDX.
1986 * opt-functions.awk (switch_flags): Handle NoDriverArg.
1987 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
1988 marking for CL_NO_DRIVER_ARG options when in the driver.
1989 * opts.h (CL_NO_DRIVER_ARG): Define.
1990 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
1991 CL_COMMON): Update values.
1992
1993 2010-08-16 Joseph Myers <joseph@codesourcery.com>
1994
1995 * common.opt: Add driver options.
1996 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
1997 * doc/options.texi (Driver, RejectDriver): Document.
1998 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
1999 print_prog_name, print_multi_directory, print_sysroot,
2000 print_multi_os_directory, print_multi_lib,
2001 print_sysroot_headers_suffix, report_times, combine_flag,
2002 use_pipes, wrapper_string): Remove.
2003 (save_switch, driver_unknown_option_callback,
2004 driver_wrong_lang_callback, driver_post_handling_callback,
2005 driver_handle_option): New.
2006 (spec_lang, last_language_n_infiles): Make file-scope static
2007 instead of local to process_command.
2008 (process_command): Use decode_cmdline_options_to_array and
2009 read_cmdline_option for option processing. Compute have_c in
2010 prescan of decoded options.
2011 * opt-functions.awk (switch_flags): Handle Driver and
2012 RejectDriver.
2013 (var_type, var_type_struct): Handle Separate options as generating
2014 const char * variables.
2015 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
2016 CL_TARGET to be passed by caller if required.
2017 (decode_cmdline_options_to_array): Update comment.
2018 * opts.c (complain_wrong_lang): Handle options only valid for the
2019 driver.
2020 (decode_options): Update call to decode_cmdline_options_to_array.
2021 (print_filtered_help): Ignore driver-only options.
2022 (print_specific_help): Ignore CL_DRIVER.
2023 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
2024 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
2025 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
2026 Update values.
2027
2028 2010-08-16 Richard Guenther <rguenther@suse.de>
2029
2030 * tree-cfg.c (verify_types_in_gimple_reference): Verify
2031 TARGET_MEM_REF a bit.
2032 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
2033 (create_mem_ref_raw): Always create TMR_OFFSET, store the
2034 alias pointer type via it.
2035 (copy_mem_ref_info): Adjust.
2036 (maybe_fold_tmr): Likewise.
2037 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
2038 (reference_alias_ptr_type): Likewise.
2039 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
2040 adjust documentation of TMR_OFFSET operand.
2041 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
2042 use the alias pointer type.
2043 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
2044 initialize mem attrs but the TMR itself.
2045 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
2046 similar to MEM_REF.
2047 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
2048 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
2049 (unshare_and_remove_ssa_names): Likewise.
2050 (copy_ref_info): Adjust.
2051 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
2052 TARGET_MEM_REF case.
2053 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
2054 at TMR_ORIGINAL.
2055 * tree.h (TMR_ORIGINAL): Remove.
2056 * gimple.c (get_base_address): For TARGET_MEM_REF with a
2057 symbol return that.
2058 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
2059 with a symbol.
2060 (get_addr_base_and_unit_offset): Likewise.
2061 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
2062 TARGET_MEM_REFs.
2063 (indirect_ref_may_alias_decl_p): Likewise.
2064 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
2065
2066 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
2067
2068 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
2069 with GCC version 4.6, the default setting (when not optimizing
2070 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
2071 been changed to -fomit-frame-pointer.
2072
2073 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
2074
2075 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
2076 Darwin10. Do not link libgcc.a for Darwin >= 9.
2077
2078 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
2079
2080 * doc/invoke.texi (Warning Options): Fix terminology and markup
2081 in the description of how unknown warning options are handled.
2082
2083 2010-08-15 Ira Rosen <irar@il.ibm.com>
2084
2085 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
2086 in basic blocks.
2087 (vect_supportable_dr_alignment): Check alignment for basic blocks.
2088 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
2089 data references.
2090 (vect_bb_vectorization_profitable_p): New function.
2091 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
2092 check if it's worthwhile to vectorize the basic block.
2093
2094 2010-08-14 Anatoly Sokolov <aesok@post.ru>
2095
2096 * reload.h (register_move_cost, memory_move_secondary_cost,
2097 secondary_reload_class): Adjust prototype.
2098 * rtl.h (reg_class_subset_p): Adjust prototype.
2099 * reload.c (secondary_reload_class): Change arguments type from
2100 enum reg_class to reg_class_t. Change result type to reg_class_t.
2101 * reginfo.c (register_move_cost, reg_class_subset_p): Change
2102 arguments type from enum reg_class to reg_class_t.
2103 (memory_move_secondary_cost): Change arguments type from
2104 enum reg_class to reg_class_t. Change type of saved_flags to
2105 reg_class_t.
2106
2107 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
2108 Remove macros.
2109 (mips_cost): Remove.
2110 (struct mips_rtx_cost_data): Moved to mips.c.
2111 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
2112 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
2113 (mips_cost): Make static.
2114 (mips_canonicalize_move_class): Change argument type to reg_class_t.
2115 Change result type to reg_class_t.
2116 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
2117 type from enum reg_class to reg_class_t.
2118 (mips_register_move_cost): Make static. Change arguments
2119 type from enum reg_class to reg_class_t.
2120 (mips_memory_move_cost): New function.
2121 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2122
2123 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
2124
2125 PR rtl-optimization/43358
2126 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
2127 of a single hard register, using simplify_subreg_regno to decide
2128 what that register should be.
2129
2130 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
2131
2132 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
2133 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
2134 (loongson_pmull<V_suffix>): Rename to...
2135 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
2136
2137 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
2138
2139 * gcc/configure.ac: Enable -fomit-frame-pointer on darwin
2140 which support dwarf2.
2141 * config/i386/i386.c (override_options): Same.
2142
2143 2010-08-13 Jie Zhang <jie@codesourcery.com>
2144
2145 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
2146
2147 2010-08-12 Joseph Myers <joseph@codesourcery.com>
2148
2149 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
2150 -MMD.
2151
2152 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
2153
2154 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
2155 up dot_prod pattern searching if a stmt is outside the loop.
2156
2157 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
2158 Uros Bizjak <ubizjak@gmail.com>
2159
2160 * config.gcc: Handle --enable-frame-pointer.
2161
2162 * configure.ac: Add --enable-frame-pointer.
2163 * configure: Regenerated.
2164
2165 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
2166 (override_options): If not configured with --enable-frame-pointer,
2167 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
2168 optimizing for size), -fasynchronous-unwind-tables and
2169 -maccumulate-outgoing-args by default.
2170
2171 2010-08-12 Jakub Jelinek <jakub@redhat.com>
2172
2173 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
2174
2175 PR middle-end/45262
2176 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
2177 -a overflows. Normalize the range.
2178
2179 2010-08-12 Richard Guenther <rguenther@suse.de>
2180
2181 PR tree-optimization/45232
2182 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
2183 for types with undefined overflow.
2184 (reassociate_bb): Allow re-associating of bit and min/max
2185 operations for types with undefined overflow.
2186 * tree-ssa-forwprop.c (associate_plusminus): New function.
2187 (tree_ssa_forward_propagate_single_use_vars): Call it.
2188
2189 2010-08-12 Richard Guenther <rguenther@suse.de>
2190
2191 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
2192 * tree-ssa-alias.c (get_ptr_info): Move ...
2193 * tree-ssanames.c (get_ptr_info): ... here. Initialize
2194 align and misalign fields conservatively.
2195 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
2196 derive alignment information.
2197 (evaluate_stmt): Derive alignment information from memory
2198 allocation functions.
2199 * tree.h (get_pointer_alignment): Make unsigned.
2200 * builtins.c (get_object_alignment): Use alignment information we
2201 have computed for pointers.
2202 (get_pointer_alignment): Likewise. Make conservative, return
2203 and unsigned value.
2204 (expand_builtin_strlen): Adjust.
2205 (expand_builtin_memcmp): Likewise.
2206 (expand_builtin_strcmp): Likewise.
2207 (expand_builtin_strncmp): Likewise.
2208 (get_builtin_sync_mem): Use at least mode alignment.
2209 (fold_builtin_memset): Adjust.
2210 (fold_builtin_memory_op): Likewise.
2211 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
2212 information also dump pointer alignment knowledge.
2213 (dump_gimple_stmt): Likewise.
2214
2215 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
2216
2217 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
2218 (EMPTY_FIELD_BOUNDARY): Remove.
2219 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
2220
2221 2010-08-12 Jakub Jelinek <jakub@redhat.com>
2222
2223 PR debug/45259
2224 * caller-save.c (save_call_clobbered_regs): Only swap notes with
2225 DEBUG_INSNs if n_regs_saved.
2226
2227 2010-08-12 Wei Guozhi <carrot@google.com>
2228
2229 PR target/44999
2230 * config/arm/arm.md (andsi3): Change to zero extension if possible.
2231 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
2232
2233 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
2234
2235 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
2236
2237 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
2238
2239 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2240
2241 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
2242 the case removed in the previous patch, when the only phi argument
2243 is defined in the same loop as the phi node itself. Handle it
2244 separately from the invariant case by both propagating it outside
2245 the region and replacing the phi node with an assign.
2246
2247 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2248
2249 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
2250 constant phi nodes with one argument are is_gimple_min_invariant
2251 and SSA_NAME_IS_DEFAULT_DEF.
2252
2253 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2254
2255 * graphite-cloog-util.c (oppose_constraint):
2256 Extend loop counter's value range (CLOOG_ORG).
2257 (cloog_matrix_to_ppl_constraint): Same.
2258 (new_Constraint_System_from_Cloog_matrix): Same.
2259 * graphite-cloog-compat.h (matrix_num_type): New.
2260
2261 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2262
2263 * graphite.c (graphite_initialize): Do not initialize
2264 CLooG and initialize the Parma Polyhedra Library
2265 manually when using CLOOG_ORG.
2266 (graphite_finalize): Do not finalize CLooG and finalize
2267 the Parma Polyhedra Library manually when using CLOOG_ORG.
2268 * graphite-cloog-compat.h (cloog_initialize): Hide function
2269 when using CLOOG_ORG.
2270 (cloog_finalize): Same.
2271
2272 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2273
2274 * graphite-clast-to-gimple.c (free_scattering): Change
2275 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
2276 (CLOOG_ORG).
2277 (build_cloog_prog): Same.
2278 * graphite-cloog-compat.h (cloog_domain): Removed.
2279 (cloog_scattering): New.
2280 (cloog_set_domain): Removed.
2281 (cloog_set_scattering): New.
2282 (cloog_next_domain): Removed.
2283 (cloog_next_scattering): New.
2284 (cloog_set_next_domain): Removed.
2285 (cloog_set_next_scattering): New.
2286 (CloogScatteringList): New.
2287 (CloogScattering): New.
2288 (cloog_scattering_free): New.
2289 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
2290 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
2291 New.
2292
2293 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2294
2295 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
2296 CloogState.
2297 (set_cloog_options): Same.
2298 (print_clast_stmt): Same.
2299 (scop_to_clast): Same.
2300 (print_generated_program): Same.
2301 (gloog): Same.
2302 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
2303 (scop_to_clast): Extend with CloogState.
2304 * graphite-cloog-util.c: Include graphite-cloog-compat.h
2305 (new_Cloog_Domain_from_ppl_Polyhedron):
2306 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
2307 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
2308 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
2309 * graphite-cloog-util.h (build_cloog_prog): Same.
2310 * graphite-cloog-copat.h (build_cloog_prog): New.
2311 (CloogState): New.
2312 (cloog_state_malloc): New.
2313 (cloog_state_free): New.
2314 (cloog_loop_malloc): New.
2315 (cloog_options_malloc): New.
2316 (cloog_statement_alloc): New.
2317 (cloog_domain_from_cloog_matrix): New.
2318 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
2319 (new_Cloog_Domain_from_ppl_Polyhedron): New.
2320
2321 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2322
2323 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
2324 type of NAME now depends on used CLooG version.
2325 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
2326 (gcc_type_for_clast_expr): Same.
2327 (print_clast_stmt): Replace pprint with clast_pprint.
2328 * graphite-cloog-compat.h: Provide compatibility macros for
2329 CLooG Legacy.
2330 (clast_name_p): New.
2331 (clast_expr_term): New.
2332 (clast_expr_red): New.
2333 (clast_expr_bin): New.
2334 (clast_pprint): New.
2335
2336 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2337
2338 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
2339 compatible to newer CLooG releases (CLOOG_ORG).
2340 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
2341 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
2342 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
2343 (build_cloog_prog) : New.
2344 (cloog_program_extract_scalars): New.
2345 (cloog_program_scatter): New.
2346
2347 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2348
2349 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
2350 conditionally (CLOOG_ORG).
2351 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
2352 (cloog_statement_usr): New.
2353 (cloog_domain): Same.
2354 (cloog_set_domain): Same.
2355 (cloog_next_domain): Same.
2356 (cloog_set_next_domain): Same.
2357 (cloog_program_nb_scattdims): Same.
2358 (cloog_program_set_nb_scattdims): Same.
2359 (cloog_program_names): Same.
2360 (cloog_program_set_names): Same.
2361 (cloog_program_set_context): Same.
2362 (cloog_program_set_loop): Same.
2363 (cloog_program_blocklist): Same.
2364 (cloog_program_set_blocklist): Same.
2365 (cloog_program_scaldims): Same.
2366 (cloog_program_set_scaldims): Same.
2367 (cloog_names_nb_parameters): Same.
2368 (cloog_names_set_nb_parameters): Same.
2369 (cloog_names_parameters): Same.
2370 (cloog_names_set_parameters): Same.
2371 (cloog_names_set_nb_iterators): Same.
2372 (cloog_names_set_iterators): Same.
2373 (cloog_names_set_nb_scattering): Same.
2374 (cloog_names_set_scattering): Same.
2375 (cloog_statement_set_usr): Same.
2376 (cloog_loop_set_next): Same.
2377 (cloog_loop_set_domain): Same.
2378 (cloog_loop_set_block): Same.
2379 (cloog_block_list_next): Same.
2380 (cloog_block_list_set_next):
2381 (cloog_block_list_set_block): Same.
2382
2383 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2384
2385 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
2386 a bool.
2387 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
2388 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
2389 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
2390 when something has been changed.
2391 (rewrite_commutative_reductions_out_of_ssa): Same.
2392
2393 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2394
2395 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
2396 handle the case when def is in the sese region.
2397 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
2398 for invariant expressions.
2399 (rewrite_cross_bb_phi_deps): Removed.
2400 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
2401 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
2402 rewrite_cross_bb_phi_deps.
2403
2404 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2405
2406 * graphite-sese-to-poly.c
2407 (rewrite_commutative_reductions_out_of_ssa_loop): Call
2408 scev_analyzable_p only on is_gimple_reg
2409
2410 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2411
2412 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
2413 (rewrite_close_phi_out_of_ssa): Propagate constant values or
2414 parametric expressions outside the scop region.
2415 (rewrite_cross_bb_scalar_deps): Same.
2416 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
2417
2418 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2419
2420 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
2421 SSA_NAME_DEF_STMT only on SSA_NAMEs.
2422
2423 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2424
2425 * tree-scalar-evolution.c (instantiate_scev_name): Do not
2426 instantiate default definitions.
2427
2428 2010-08-11 Vladimir Kargov <kargov@gmail.com>
2429 Sebastian Pop <sebastian.pop@amd.com>
2430
2431 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
2432 (loop_exits_from_bb_p): New.
2433 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
2434 (loop_exits_from_bb_p): Declared.
2435 * graphite-scop-detection.c (scopdet_basic_block_info): Call
2436 loop_exits_to_bb_p.
2437
2438 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2439
2440 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
2441 extra parameter for the region. Call scev_analyzable_p.
2442 (rewrite_reductions_out_of_ssa): Update call to
2443 rewrite_close_phi_out_of_ssa.
2444 (rewrite_cross_bb_phi_deps): Same.
2445 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
2446 parameter for the region. Call scev_analyzable_p.
2447 (rewrite_commutative_reductions_out_of_ssa): Update call to
2448 rewrite_commutative_reductions_out_of_ssa_loop.
2449
2450 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2451
2452 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
2453
2454 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2455
2456 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
2457 SSA scalar phi nodes that can be scev_analyzable_p.
2458
2459 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2460
2461 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
2462 handle SSA_NAME_IS_DEFAULT_DEF.
2463
2464 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2465
2466 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
2467
2468 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2469
2470 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
2471 case non close-phi nodes with one argument.
2472
2473 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2474
2475 * sese.h (scev_analyzable_p): Scevs could be expressions without
2476 chrecs and still be scev_analyzable_p.
2477
2478 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2479
2480 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
2481
2482 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2483
2484 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
2485 * cfgloop.h (struct loop): Remove single_iv field.
2486 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
2487 (scop_canonicalize_loops): Removed.
2488 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
2489 over all the loop phi nodes in loop->header.
2490 (build_poly_scop): Remove use of scop_canonicalize_loops.
2491
2492 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2493
2494 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
2495 handle GIMPLE_CALL.
2496
2497 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2498
2499 * tree-chrec.c (chrec_apply): Should only apply to the specified
2500 variable. Also handle multivariate chains of recurrences that
2501 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
2502
2503 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2504
2505 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
2506 (debug_clast_name_indexes_1): Removed.
2507 (debug_clast_name_indexes): Removed.
2508 (pbb_to_depth_to_oldiv): Removed.
2509 (build_iv_mapping): Replace the use of rename_map with iv_map.
2510 (translate_clast_user): Remove uses of rename_map. Allocate and
2511 free iv_map.
2512 (translate_clast_for_loop): Remove uses of rename_map.
2513 (translate_clast_for): Same.
2514 (translate_clast_guard): Same.
2515 (translate_clast): Same.
2516 (gloog): Same.
2517 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
2518 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
2519 * sese.c (set_rename): Now static.
2520 (rename_variables_in_stmt): Removed.
2521 (rename_uses): New.
2522 (is_parameter): Removed.
2523 (is_iv): Removed.
2524 (expand_scalar_variables_call): Removed.
2525 (expand_scalar_variables_ssa_name): Removed.
2526 (expand_scalar_variables_expr): Removed.
2527 (expand_scalar_variables_stmt): Removed.
2528 (expand_scalar_variables): Removed.
2529 (rename_variables): Removed.
2530 (remove_condition): Removed.
2531 (get_true_edge_from_guard_bb): Removed.
2532 (get_false_edge_from_guard_bb): Removed.
2533 (struct igp): Removed.
2534 (default_before_guard): Removed.
2535 (convert_for_phi_arg): Removed.
2536 (add_guard_exit_phis): Removed.
2537 (insert_guard_phis): Removed.
2538 (graphite_copy_stmts_from_block): Now also uses iv_map and a
2539 region. Do not copy conditions. Do not copy induction variables.
2540 Call rename_uses.
2541 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
2542 the translated statement. Use the iv_map for the induction
2543 variable renaming.
2544 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
2545 (set_rename): Removed declaration.
2546 (scev_analyzable_p): ...here.
2547 * tree-chrec.c (chrec_apply_map): New.
2548 * tree-chrec.h (chrec_apply_map): Declared.
2549
2550 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2551
2552 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
2553 insert_loop_close_phis.
2554 * sese.c (name_defined_in_loop_p): Removed.
2555 (expr_defined_in_loop_p): Removed.
2556 (alive_after_loop): Removed.
2557 (close_phi_not_yet_inserted_p): Removed.
2558 (struct alep): Removed.
2559 (add_loop_exit_phis): Removed.
2560 (insert_loop_close_phis): Removed.
2561
2562 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2563
2564 * graphite-cloog-util.c
2565 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
2566 * graphite-poly.c
2567 (psct_scattering_dim_for_loop_depth): Same.
2568
2569 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2570
2571 * graphite-cloog-util.h: Added cloog.h.
2572 * graphite-blocking.c: Removed cloog.h.
2573 * graphite-dependences.c: Same.
2574 * graphite-interchange.c: Same.
2575 * graphite-poly.c: Same.
2576 * graphite-ppl.c: Same.
2577 * graphite-scop-detection.c: Same.
2578 * graphite-sese-to-poly.c:
2579 Removed cloog.h.
2580 Removed graphite-clast-to-gimple.h.
2581 (check_poly_representation): Removed (unused).
2582 * graphite-sese-to-poly.h
2583 (check_poly_representation): Removed (unused).
2584
2585 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2586
2587 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
2588 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
2589 (graphite-cloog-util.o): New.
2590 (graphite-ppl.o): Added graphite-cloog-util.h.
2591 * graphite-clast-to-gimple.c:
2592 Added graphite-cloog-util.h to include statements.
2593 * graphite-cloog-util.c: New.
2594 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
2595 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
2596 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
2597 (new_C_Polyhedron_from_Cloog_Matrix): Same.
2598 (insert_constraint_into_matrix): Same.
2599 (ppl_Constrain_System_number_of_constraints): Same.
2600 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
2601 (oppose_constraint): Same.
2602 (cloog_matrix_to_ppl_constraint): Same.
2603 (new_Constraint_System_from_Cloog_Matrix): Same.
2604 * graphite-cloog-util.h: New.
2605 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
2606 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
2607 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
2608 (new_C_Polyhedron_from_Cloog_Matrix): Same.
2609 (insert_constraint_into_matrix): Same.
2610 * graphite-ppl.c:
2611 Added graphite-cloog-util.h to include statements.
2612 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
2613 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
2614 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
2615 (new_C_Polyhedron_from_Cloog_Matrix): Same.
2616 (insert_constraint_into_matrix): Same.
2617 (ppl_Constrain_System_number_of_constraints): Same.
2618 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
2619 (oppose_constraint): Same.
2620 (cloog_matrix_to_ppl_constraint): Same.
2621 (new_Constraint_System_from_Cloog_Matrix): Same.
2622 * graphite-ppl.h:
2623 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
2624 graphite-cloog-util.h.
2625 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
2626 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
2627 (new_C_Polyhedron_from_Cloog_Matrix): Same.
2628 (insert_constraint_into_matrix): Same.
2629
2630 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2631
2632 * graphite-clast-to-gimple.c
2633 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
2634 (precision_for_interval): Same.
2635 (gcc_type_for_interval): Same.
2636 (compute_type_for_level): Same.
2637 * graphite-interchange.c
2638 (lst_interchange_profitable_p): Same.
2639 * graphite-poly.c
2640 (psct_scattering_dim_for_loop_depth): Same.
2641 * graphite-ppl.c
2642 (ppl_max_for_le_pointset): Same.
2643 (ppl_min_for_le_pointset): Same.
2644
2645 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2646
2647 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
2648 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
2649
2650 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2651
2652 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
2653 rewrite_close_phi_out_of_ssa.
2654
2655 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2656
2657 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
2658
2659 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2660
2661 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
2662 rename_map.
2663 * sese.c (debug_rename_map): Same.
2664 (get_rename): Same.
2665 (set_rename): Same.
2666 (rename_variables_in_stmt): Same.
2667 (expand_scalar_variables_call): Same.
2668 (expand_scalar_variables_ssa_name): Same.
2669 (expand_scalar_variables_expr): Same.
2670 (expand_scalar_variables_stmt): Same.
2671 (expand_scalar_variables): Same.
2672 (rename_variables): Same.
2673 (graphite_copy_stmts_from_block): Same.
2674 (copy_bb_and_scalar_dependences): Same.
2675
2676 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2677
2678 * graphite-clast-to-gimple.c (copy_renames): Removed.
2679 (translate_clast_for): Do not call copy_renames.
2680 (translate_clast_guard): Same.
2681
2682 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2683
2684 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
2685 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
2686 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
2687 before rewrite_cross_bb_scalar_deps.
2688
2689 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2690
2691 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
2692 Early return in when flag_associative_math is not set.
2693
2694 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2695
2696 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
2697 of SSA copies on edges except for loop->latch.
2698
2699 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2700
2701 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
2702 Split out of rewrite_reductions_out_of_ssa.
2703 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
2704 Declared.
2705 * graphite.c (graphite_transform_loops): Call it.
2706
2707 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2708
2709 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
2710
2711 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
2712
2713 * dbgcnt.def (graphite_scop): New counter.
2714 * graphite.c: Include dbgcnt.h.
2715 (graphite_transform_loops): Use new counter to limit transformations.
2716 * Makefile.in (graphite.o): Depend on DBGCNT_H.
2717
2718 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2719
2720 * passes.c (init_optimization_passes): Add pass_graphite.
2721 Schedule a pass_copy_prop before pass_graphite_transforms.
2722 * timevar.def (TV_GRAPHITE): Declared.
2723 * tree-pass.h (pass_graphite): Declared.
2724 * tree-ssa-loop.c (pass_graphite): New.
2725
2726 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2727
2728 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
2729 Remove calls to rename_nb_iterations and rename_sese_parameters.
2730 * graphite-clast-to-gimple.h (gloog): Update declaration.
2731 * graphite.c (graphite_transform_loops): Update call to gloog.
2732 * sese.c (rename_variables_in_expr): Removed.
2733 (rename_nb_iterations): Removed.
2734 (rename_sese_parameters): Removed.
2735 * sese.h (rename_nb_iterations): Removed.
2736 (rename_sese_parameters): Removed.
2737
2738 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2739
2740 * graphite-clast-to-gimple.c (gloog): Remove call to
2741 sese_adjust_liveout_phis.
2742 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
2743 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
2744 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
2745 rewrite_phi_out_of_ssa.
2746 * sese.c (get_vdef_before_sese): Removed.
2747 (sese_adjust_vphi): Removed.
2748 (sese_adjust_liveout_phis): Removed.
2749 * sese.h (sese_adjust_liveout_phis): Removed.
2750
2751 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2752
2753 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
2754 argument for the place after which to insert the out of SSA copy.
2755 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
2756 (rewrite_phi_out_of_ssa): Same.
2757 (rewrite_cross_bb_scalar_deps): Same.
2758 (insert_copyout): Removed.
2759 (insert_copyin): Removed.
2760 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
2761 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
2762 insert_copyin.
2763
2764 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2765
2766 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
2767 (rewrite_reductions_out_of_ssa): Same.
2768 (rewrite_commutative_reductions_out_of_ssa): Same.
2769 (build_poly_scop): Do not call these functions.
2770 * graphite-sese-to-poly.h (build_poly_scop): Declared.
2771 (rewrite_reductions_out_of_ssa): Declared.
2772 (rewrite_commutative_reductions_out_of_ssa): Declared.
2773 * graphite.c (graphite_transform_loops): Call on every scop
2774 rewrite_commutative_reductions_out_of_ssa before calling
2775 rewrite_reductions_out_of_ssa and build_scop_bbs.
2776
2777 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2778
2779 * graphite-dependences.c (dot_deps): Make system call to dotty run
2780 in background.
2781 (dot_deps_stmt): Same.
2782 * graphite-poly.c (dot_lst): Same.
2783
2784 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
2785
2786 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
2787 phi_arg_in_outermost_loop.
2788 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
2789 (remove_invariant_phi): Same.
2790
2791 2010-08-11 Anatoly Sokolov <aesok@post.ru>
2792
2793 * target.def (output_addr_const_extra): New hook.
2794 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
2795 * doc/tm.texi: Regenerate.
2796 * targhooks.c (default_asm_output_addr_const_extra): New function.
2797 * targhooks.h (default_asm_output_addr_const_extra): Declare.
2798 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
2799 target hook.
2800
2801 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2802 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
2803 * config/i386/i386.h (output_addr_const_extra): Rename to...
2804 (i386_asm_output_addr_const_extra): ...this. Make static.
2805 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2806
2807 2010-08-11 Richard Henderson <rth@redhat.com>
2808
2809 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
2810
2811 2010-08-11 Nick Clifton <nickc@redhat.com>
2812
2813 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
2814 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
2815 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
2816 stormy16-lib2-cmpsi.c.
2817
2818 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
2819 -O2.
2820
2821 2010-08-11 Joseph Myers <joseph@codesourcery.com>
2822
2823 * opts.h (struct cl_option_handler_func): Make handler take
2824 cl_decoded_option structure as parameter, not individual elements.
2825 (struct cl_option_handlers): Make callbacks take cl_decoded_option
2826 structure as parameter, not individual elements.
2827 (handle_option): Take cl_decoded_option structure as parameter,
2828 not individual elements.
2829 (handle_generated_option): Declare.
2830 * opts-common.c (handle_option): Take cl_decoded_option structure
2831 as parameter, not individual elements. Update calls to callback
2832 and handler functions.
2833 (handle_generated_option): New.
2834 (read_cmdline_option): Update calls to callback functions and
2835 handle_option.
2836 * opts.c (common_handle_option, complain_wrong_lang,
2837 unknown_option_callback, post_handling_callback,
2838 lang_handle_option, target_handle_option): Take cl_decoded_option
2839 structure as parameter, not individual elements.
2840 (lang_handle_option, target_handle_option, common_handle_option):
2841 Assert option has at most one argument.
2842 (enable_warning_as_error): Call handle_generated_option instead of
2843 handle_option. Do not pass -Werror argument as argument of
2844 generated option.
2845
2846 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2847
2848 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
2849 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
2850 (SUBWORD_BOOL_CAS): Likewise.
2851 (SUBWORD_SYNC_OP): Likewise.
2852 (SUBWORD_TEST_AND_SET): Likewise.
2853 (FETCH_AND_OP_WORD): Parenthesise INF_OP
2854 (SUBWORD_SYNC_OP): Likewise.
2855 (OP_AND_FETCH_WORD): Likewise.
2856
2857 2010-08-10 Xinliang David Li <davidxl@google.com>
2858
2859 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
2860 compute max/min offset in address.
2861
2862 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
2863
2864 * ira-live.c: Include sbitmap.h.
2865 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
2866 Compress live ranges even more.
2867
2868 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
2869
2870 * coverage.c (ctr_labels): Delete.
2871
2872 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
2873
2874 PR bootstrap/45177
2875 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
2876 test here from arm_gen_load_multiple_1.
2877 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
2878 multiple_operation_profitable_p.
2879
2880 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
2881
2882 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
2883 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
2884
2885 2010-08-10 Richard Henderson <rth@redhat.com>
2886
2887 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
2888 after saving registers. Assert that SSE registers are only saved
2889 with a sufficiently aligned frame.
2890 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
2891 remove stack_realign_fp handling.
2892 (ix86_expand_prologue): Save int registers before stack_realign_fp,
2893 and do not mark the stack alignment as frame related.
2894 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
2895
2896 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
2897 saves when re-aligning the stack.
2898
2899 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
2900
2901 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
2902 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
2903 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
2904
2905 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
2906
2907 * dwarf2out.c (struct die_struct): Move die_tag to the end.
2908
2909 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
2910
2911 * config/arm/iterators.md: New file.
2912 * config/arm/arm.md: Include iterators.md.
2913 (QHSI): Move to new file.
2914 (LTUGEU, cnb, optab, ior_xor): Likewise.
2915 * config/arm/iwmmxt.md (VMMX): Move to new file.
2916 (VSHFT, MMX_char): Likewise.
2917 * config/arm/neon.md (VD): Move to new file.
2918 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
2919 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
2920 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
2921 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
2922 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
2923 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
2924 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
2925 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
2926 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
2927 (Is_d_reg, V_mode_nunits): Likewise.
2928 * config/arm/vec-common.md (VALL): Move to new file.
2929 (VALLW, VINT, VINTW): Likewise.
2930
2931 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
2932
2933 PR middle-end/45182
2934 * combine.c (make_compound_operation): Don't try to convert
2935 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
2936
2937 2010-08-10 Richard Guenther <rguenther@suse.de>
2938
2939 * tree.h (get_object_alignment): Adjust prototype.
2940 * builtins.c (get_object_alignment): Return unsigned int,
2941 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
2942 and TARGET_MEM_REF properly.
2943 (get_pointer_alignment): Adjust.
2944 * emit-rtl.c (get_mem_align_offset): Adjust comment.
2945 (set_mem_attributes_minus_bitpos): Adjust.
2946 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
2947
2948 2010-08-10 Richard Guenther <rguenther@suse.de>
2949
2950 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
2951 (copy_prop_visit_assignment): Simplify.
2952 (copy_prop_visit_stmt): Also visit assignments from
2953 constants.
2954 (copy_prop_visit_phi_node): Use operand_equal_p.
2955
2956 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
2957
2958 * ipa-split.c (find_split_points): Free stack.
2959
2960 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
2961
2962 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
2963 * tree.c (tree_node_kind): Delete corresponding entries.
2964
2965 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
2966
2967 * alias.c (may_alias_p): Remove unused ret.
2968
2969 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
2970
2971 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
2972 alias_sets_conflict_p.
2973 (walk_mems_1): Moved from alias.c.
2974 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
2975 in alias.c.
2976 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
2977 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
2978 * alias.c (walk_mems_2): Moved to ddg.c.
2979 (walk_mems_1): Ditto.
2980 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
2981 to ddg.c.
2982 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
2983 disambiguation.
2984 *(may_alias_p): New function to check whether two memory expression
2985 may alias or not. Currently used in buidling inter-iteration memory
2986 dependence.
2987 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
2988 (insn_alias_sets_conflict_p): Removed
2989 *rtl.h (may_alias_p): New function prototype.
2990
2991 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
2992
2993 * tree.c (nreverse): Assert that we don't have a BLOCK.
2994
2995 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
2996
2997 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
2998 * config/arm/arm.c (arm_get_pcs_model): Likewise.
2999 * config/avr/avr.c (init_cumulative_args): Likewise.
3000 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
3001 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
3002 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
3003 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
3004 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
3005 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
3006 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
3007 * dwarf2out.c (gen_subprogram_die): Likewise.
3008 * function.c (allocate_struct_function): Likewise.
3009 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
3010 (deserves_ellipsis): Delete.
3011
3012 2010-08-09 Richard Guenther <rguenther@suse.de>
3013
3014 * tree-ssa-copy.c (cached_last_copy_of): Remove.
3015 (valueize_val): New function.
3016 (get_last_copy_of): Remove.
3017 (set_copy_of_val): Simplify.
3018 (dump_copy_of): Likewise.
3019 (copy_prop_visit_cond_stmt): Use valueize_val.
3020 (copy_prop_visit_phi_node): Properly handle unvisited names.
3021 Drop code managing copy-of chains.
3022 (init_copy_prop): Adjust.
3023 (fini_copy_prop): Likewise.
3024 (execute_copy_prop): Remove obsolete comment.
3025
3026 2010-08-09 Richard Guenther <rguenther@suse.de>
3027
3028 PR middle-end/44632
3029 * function.c (gimplify_parameters): Do not clear addressable
3030 bit of the original parameter.
3031
3032 2010-08-09 Richard Guenther <rguenther@suse.de>
3033
3034 PR middle-end/45212
3035 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
3036 alignment from MEM_REF offset only if we took it from the
3037 base object.
3038
3039 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
3040
3041 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
3042
3043 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3044
3045 * c-tree.h (build_arg_info): Declare.
3046 * c-decl.c (build_arg_info): Define.
3047 (get_parm_info): Call it. Delete initialization code.
3048 * c-parser.c (c_parser_parms_declarator): Likewise.
3049 (c_parser_parms_list_declaractor): Likewise.
3050
3051 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3052
3053 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
3054 (struct c_arg_info): Change type of tags field.
3055 * c-decl.c (grokdeclarator): Update for changed type of tags field.
3056 (get_parm_info): Likewise.
3057 (store_parm_decls_newstyle): Likewise.
3058
3059 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3060
3061 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
3062 (branch_island_list): Delete.
3063 (branch_islands): Declare.
3064 (add_compiler_branch_island): Adjust for branch_islands instead of
3065 branch_island_list.
3066 (macho_branch_islands): Likewise.
3067 (no_previous_def): Likewise.
3068 (get_prev_label): Likewise.
3069
3070 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3071
3072 PR boehm-gc/34544
3073 * gthr-posix.h (__gthread_start): Delete.
3074 (__gthread_active_init): Use pthread_default_stacksize_np instead of
3075 pthread_create to determine if hpux pthreads are active.
3076 * gthr-posix95.h (__gthread_start): Delete.
3077 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
3078
3079 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
3080
3081 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
3082 _WIN64 not expanded.
3083
3084 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
3085 H.J. Lu <hongjiu.lu@intel.com>
3086
3087 PR target/45213
3088 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
3089 to output 32bit SFmode immediate as 8 byte sign extended value.
3090
3091 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
3092
3093 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
3094 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
3095 (SUBWORD_BOOL_CAS): Likewise.
3096 (SUBWORD_SYNC_OP): Likewise.
3097 (SUBWORD_TEST_AND_SET): Likewise.
3098 (FETCH_AND_OP_WORD): Parenthesise INF_OP
3099 (SUBWORD_SYNC_OP): Likewise.
3100 (OP_AND_FETCH_WORD): Likewise.
3101
3102 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3103
3104 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
3105 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
3106 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
3107 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
3108 generic part.
3109 (cortex_a9_sched_adjust_cost): New function.
3110 (xscale_sched_adjust_cost): New function.
3111 * config/arm/arm-protos.h (struct tune_params): New field
3112 sched_adjust_cost.
3113 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
3114
3115 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
3116
3117 PR target/44942
3118 * config/sparc/sparc.c (function_arg_advance): Always take into account
3119 the padding, if any.
3120
3121 2010-08-06 Richard Guenther <rguenther@suse.de>
3122
3123 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
3124 (dump_lattice_value): Dump it.
3125 (get_default_value): Adjust.
3126 (get_constant_value): Likewise.
3127 (set_value_varying): Likewise.
3128 (set_lattice_value): Make sure to not go up the lattice
3129 with bitwise constant values.
3130 (get_value_for_expr): Handle ADDR_EXPRs.
3131 (value_to_double_int): New function.
3132 (get_value_from_alignment): Likewise.
3133 (do_dbg_cnt): Adjust.
3134 (ccp_lattice_meet): Handle partially constant values.
3135 (bit_value_unop_1): New function.
3136 (bit_value_binop_1): Likewise.
3137 (bit_value_unop): Likewise.
3138 (bit_value_binop): Likewise.
3139 (evaluate_stmt): Track partially constant values if
3140 flag_tree_bit_ccp is set.
3141 (ccp_fold_stmt): Dump if we folded a predicate.
3142 (ccp_visit_stmt): Adjust.
3143 * common.opt (ftree-bit-ccp): New flag.
3144 * doc/invoke.texi (ftree-bit-ccp): Document.
3145 * opts.c (decode_options): Enable bit-CCP at -O1.
3146
3147 2010-08-06 Alan Modra <amodra@gmail.com>
3148
3149 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
3150 and -mrelocatable-lib description.
3151
3152 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
3153
3154 From Martin Thuresson <martint@google.com>
3155 * postreload.c (reload_cse_simplify_operands): Use
3156 SET_REGNO_RAW instead of SET_REGNO.
3157 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
3158 SET_REGNO.
3159 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
3160 instead of SET_REGNO.
3161 * rtl.h (SET_REGNO_RAW): New macro.
3162
3163 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
3164
3165 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
3166 computations. Fix formatting issues.
3167 (num_sign_bit_copies1): Likewise.
3168 (canonicalize_condition): Likewise.
3169
3170 2010-08-05 Richard Henderson <rth@redhat.com>
3171
3172 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
3173 (floor_log2): Use clz_hwi.
3174 (exact_log2): Use ctz_hwi.
3175 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
3176 * builtins.c (fold_builtin_bitop): Use them.
3177 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3178 * combine.c (get_pos_from_mask): Use ctz_hwi.
3179 * double-int.c (double_int_ctz): Likewise.
3180 * explow.c (force_reg): Likewise.
3181 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
3182
3183 2010-08-05 Richard Henderson <rth@redhat.com>
3184
3185 PR target/45189
3186 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
3187 the alignment constant is properly sign-extended.
3188
3189 2010-08-05 Richard Guenther <rguenther@suse.de>
3190
3191 * expr.c (store_expr): Use emit_block_move only if both
3192 source and target are MEMs. Use store_bit_field if only
3193 the target is a MEM.
3194
3195 2010-08-05 Richard Henderson <rth@redhat.com>
3196
3197 PR debug/45188
3198 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
3199 (INCOMING_RETURN_ADDR_RTX): Likewise.
3200 (dwarf2out_do_frame): Remove conditional compilation.
3201 (dwarf2out_frame_init): Likewise.
3202
3203 2010-08-05 Nicolas Setton <setton@adacore.com>
3204
3205 * gcov.c (flag_display_progress): New static variable.
3206 (main): Display progress info on standard output if requested.
3207 (options): Add -d/--display-progress.
3208 (print_usage): Print them.
3209 (process_args): Handle them.
3210 * doc/gcov.texi: Document them.
3211
3212 2010-08-05 Martin Jambor <mjambor@suse.cz>
3213
3214 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
3215 (ipcp_insert_stage): Redirect only edges not flagged with
3216 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
3217 discovered constants.
3218
3219 2010-08-05 Martin Jambor <mjambor@suse.cz>
3220
3221 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
3222 (struct ipa_param_descriptor): New fields types and
3223 cannot_devirtualize.
3224 (ipa_param_cannot_devirtualize_p): New function.
3225 (ipa_param_types_vec_empty): Likewise.
3226 (ipa_make_edge_direct_to_target): Declare.
3227 * ipa-cp.c: Fixed first stage driver name in initial comment,
3228 described devirtualization there too.
3229 (ipcp_analyze_node): Call ipa_analyze_params_uses.
3230 (ipcp_print_all_lattices): Print devirtualization info.
3231 (ipa_set_param_cannot_devirtualize): New function.
3232 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
3233 lattice to BOTTOM.
3234 (ipcp_init_stage): Merged into...
3235 (ipcp_generate_summary): ...its caller.
3236 (ipcp_change_tops_to_bottom): Also process type lists.
3237 (ipcp_add_param_type): New function.
3238 (ipcp_copy_types): Likewise.
3239 (ipcp_propagate_types): Likewise.
3240 (ipcp_propagate_stage): Also propagate types.
3241 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
3242 Also return true if propagated types require it.
3243 (ipcp_update_callgraph): Dump redirection info.
3244 (ipcp_process_devirtualization_opportunities): New function.
3245 (ipcp_const_param_count): Include known type information.
3246 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
3247 on new node. Fixed formatting.
3248 * ipa-prop.c (make_edge_direct_to_target): Renamed to
3249 ipa_make_edge_direct_to_target and changed all callers. Made
3250 externally visible.
3251 (ipa_node_duplication_hook): Duplicate types vector.
3252 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
3253 redirect outgoing calls for which we can't get a decl from the
3254 statement. Check that we can get a decl from the call statement.
3255 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
3256 ipa_analyze_params_uses only when ipa-cp is disabled.
3257 * tree-inline.c (get_indirect_callee_fndecl): Removed.
3258 (expand_call_inline): Do not call get_indirect_callee_fndecl.
3259 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
3260 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
3261
3262 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
3263
3264 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
3265 temporary. Emit move from temporary to accum, so REG_EQUAL note will
3266 be attached to this insn in correct mode.
3267
3268 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
3269
3270 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
3271 using REGNO of base_reg directly.
3272
3273 2010-08-05 Jie Zhang <jie@codesourcery.com>
3274
3275 PR tree-optimization/45144
3276 * tree-sra.c (type_consists_of_records_p): Return false
3277 if the record contains bit-field.
3278
3279 2010-08-04 Richard Henderson <rth@redhat.com>
3280
3281 * config/i386/i386.c (struct ix86_frame): Remove padding and
3282 to_allocate members.
3283 (ix86_compute_frame_layout): Don't store them.
3284 (ix86_can_use_return_insn_p): Use a more direct and more obviously
3285 correct condition for the position of the stack pointer.
3286 (ix86_expand_prologue): Compute remaining stack allocation based
3287 on the ultimate stack pointer offset.
3288 (ix86_expand_epilogue): Use more obvious expressions testing for
3289 the stack pointer already pointing to the saved registers.
3290
3291 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
3292 duplication deconstructing the frame pointer. Simplify
3293 deallocation of the local stack frame.
3294
3295 * reg-notes.def (CFA_EXPRESSION): New.
3296 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
3297 (dwarf2out_frame_debug_cfa_expression): New.
3298 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
3299
3300 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
3301 * config/i386/i386.c (ix86_expand_prologue): Set it.
3302 (ix86_expand_epilogue): Clear it.
3303 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
3304 context, add REG_CFA_EXPRESSION notes.
3305
3306 * config/i386/i386.h (struct machine_frame_state): Rename from
3307 machine_cfa_state. Add members tracking SP and FP regardless
3308 of the current CFA register.
3309 (ix86_cfa_state): Remove.
3310 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
3311 and sse_reg_save_offset members.
3312 (ix86_compute_frame_layout): Set them.
3313 (gen_push): Increment sp_offset too.
3314 (choose_baseaddr_len, choose_baseaddr): New.
3315 (ix86_emit_save_reg_using_mov): New.
3316 (ix86_emit_save_regs_using_mov): Use it.
3317 (ix86_emit_save_sse_regs_using_mov): Likewise.
3318 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
3319 compare vs the saved red_zone_offset.
3320 (pro_epilogue_adjust_stack): Adjust sp_offset.
3321 (ix86_adjust_stack_and_probe): Likewise.
3322 (ix86_expand_prologue): Set up, use, and validate the new
3323 frame_state_info members. Use gen_frame_mem.
3324 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
3325 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
3326 new frame_state_info members.
3327 (ix86_emit_leave): Likewise.
3328 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
3329 out-of-range stack pointer offsets here.
3330 (ix86_emit_restore_sse_regs_using_mov): Likewise.
3331 (ix86_expand_epilogue): Use and validate the new frame_state_info
3332 members. Break up and simplify the logic selecting the
3333 restore_regs_via_mov code path. Ensure that there will be no
3334 out-of-range stack pointer offsets.
3335
3336 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
3337
3338 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
3339 argument name to reflect the expected tree; fix indentation.
3340 (ix86_asm_output_function_label): Output the entire 32-bit
3341 ms_hook here as bytes ...
3342 (ix86_expand_prologue): ... not here as insns. Attach the
3343 unwind info for the ms_hook to a blockage insn.
3344 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
3345 (ix86_ms_bitfield_layout_p): Fix indentation.
3346 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
3347
3348 * config/i386/i386.c (ix86_using_red_zone): New.
3349 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
3350 ix86_expand_prologue, ix86_force_to_memory): Use it.
3351
3352 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
3353 saving the int registers.
3354
3355 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
3356 and DWARF2_UNWIND_INFO conditional compilation.
3357
3358 2010-08-04 Richard Henderson <rth@redhat.com>
3359
3360 PR debug/45171
3361 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
3362 an is_naming_typedef_decl.
3363
3364 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
3365
3366 PR rtl-optimization/45162
3367 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
3368 * dce.c (word_dce_process_block): Likewise.
3369
3370 2010-08-04 Steve Ellcey <sje@cup.hp.com>
3371
3372 PR target/44583
3373 * config/ia64/constraints.md (Z): New.
3374 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
3375 (xfreg_or_signed_fp01_operand): New.
3376 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
3377 with fr_reg_or_signed_fp01_operand and constraint G with Z.
3378 (subsf3): Ditto.
3379 (*maddsf4): Ditto.
3380 (*msubsf4): Ditto.
3381 (adddf3): Ditto.
3382 (adddf3_trunc): Ditto.
3383 (subdf3): Ditto.
3384 (*subdf3_trunc): Ditto.
3385 (*madddf4): Ditto.
3386 (*madddf4_trunc): Ditto.
3387 (*msubdf4): Ditto.
3388 (*msubdf4_trunc): Ditto.
3389 (addxf3): Replace xfreg_or_fp01_operand with
3390 xfreg_or_signed_fp01_operand and constraint G with Z.
3391 (*addxf3_truncsf): Ditto.
3392 (*addxf3_truncdf): Ditto.
3393 (subxf3): Ditto.
3394 (*subxf3_truncsf): Ditto.
3395 (*subxf3_truncdf): Ditto.
3396 (*maddxf4): Ditto.
3397 (*maddxf4_truncsf): Ditto.
3398 (*maddxf4_truncdf): Ditto.
3399 (*msubxf4): Ditto.
3400 (*msubxf4_truncsf): Ditto.
3401 (*msubxf4_truncdf): Ditto.
3402
3403 2010-08-04 Richard Guenther <rguenther@suse.de>
3404
3405 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
3406 if either alias-set is zero.
3407
3408 2010-08-04 Richard Guenther <rguenther@suse.de>
3409
3410 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
3411 * tree-ssa-ccp.c: ... here.
3412 * tree-ssa-copy.c: ... and here.
3413 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
3414 value_range_t): Move ...
3415 * tree-vrp.c: ... here.
3416 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
3417 (substitute_and_fold): Adjust prototype.
3418 * tree-ssa-propagate.c (replace_uses_in): Adjust.
3419 (replace_phi_args_in): Likewise.
3420 (substitute_and_fold): Take callback to query lattice instead
3421 of pointer to lattice. Replace SSA name defs with lattice
3422 values first.
3423 * tree-ssa-ccp.c (ccp_finalize): Adjust.
3424 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
3425 (get_value): New function.
3426 (fini_copy_prop): Adjust.
3427 * tree-vrp.c (vrp_finalize): Adjust.
3428
3429 2010-08-04 Richard Guenther <rguenther@suse.de>
3430
3431 PR middle-end/45176
3432 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
3433 points-to set for original MEM_REF.
3434
3435 2010-08-04 Richard Guenther <rguenther@suse.de>
3436
3437 * tree-ssa-ccp.c (get_constant_value): New function.
3438 (get_rhs_assign_op_for_ccp): Remove.
3439 (valueize_op): New function.
3440 (ccp_fold): Use get_constant_value and valueize_op.
3441 (fold_const_aggregate_ref): Likewise.
3442 (ccp_fold_stmt): Likewise.
3443 (visit_assignment): Simplify.
3444
3445 2010-08-04 Richard Guenther <rguenther@suse.de>
3446
3447 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
3448 * double-int.h (double_int_ctz): Declare.
3449 * double-int.c (double_int_ctz): New function.
3450
3451 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
3452
3453 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
3454 Define.
3455 picochip_expand_movmemhi : Expand movmem pattern.
3456 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
3457 Declare.
3458 * config/picochip/picochip.md (movmemhi) : New pattern.
3459
3460 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
3461
3462 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
3463
3464 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
3465
3466 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
3467 NEG as operand of a MULT by merging it with the other operand.
3468 * combine.c (make_compound_operation): Use trunc_int_for_mode when
3469 generating a MULT with constant. Canonicalize PLUS and MINUS involving
3470 MULT.
3471 * config/arm/constraints.md (M): Examine only 32 bits of a
3472 HOST_WIDE_INT.
3473 * config/arm/predicates.md (power_of_two_operand): Likewise.
3474
3475 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3476
3477 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
3478 non-NOTE insns.
3479
3480 2010-08-03 Jan Hubicka <jh@suse.cz>
3481
3482 * ipa-split.c (struct split_point): Add split_part_set_retval.
3483 (find_retval): Forward declare.
3484 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
3485 (consider_split): Compute current->split_part_set_retval.
3486 (visit_bb): Do not look into return value.
3487 (split_function): Handle !split_part_set_retval
3488
3489 2010-08-03 Martin Jambor <mjambor@suse.cz>
3490
3491 * tree-sra.c (completely_scalarize_record): New parameter REF, create
3492 its own access->expr intead of using build_ref_for_offset.
3493
3494 2010-08-03 Joseph Myers <joseph@codesourcery.com>
3495
3496 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
3497 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
3498 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
3499 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
3500 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
3501 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
3502 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
3503 DEFAULT_SWITCH_TAKES_ARG.
3504 * config/rx/rx.opt (-patch=): Remove option.
3505 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
3506 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
3507 * doc/invoke.texi (RX Options): Remove -patch=.
3508 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
3509 (option_map): Remove --profile-blocks, --quiet and --silent.
3510
3511 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
3512
3513 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
3514 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
3515 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
3516 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
3517 Update calls to ix86_expand_compare and ix86_expand_branch.
3518 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
3519 ix86_expand_compare.
3520 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
3521 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
3522 Make static.
3523 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
3524 and ix86_compare_op1. Update calls to ix86_expand_compare.
3525 (ix86_expand_int_movcc): Ditto.
3526 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
3527 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
3528 (ix86_expand_setcc): Ditto.
3529 (ix86_expand_compare): Remove prototype.
3530 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
3531 ix86_compare_op0 and ix86_compare_op1. Update calls
3532 to ix86_expand_branch to directly pass operands[1] and operands[2].
3533 (cbranchxf4): Ditto.
3534 (cbranch<MODEF:mode>4): Ditto.
3535 (cbranchcc4): Ditto.
3536 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
3537 Update calls to ix86_expand_setcc to directly pass operands[2] and
3538 operands[3].
3539 (cstorexf4): Ditto.
3540 (cstore<MODEF:mode>4): Ditto.
3541 (cstorecc4): Ditto.
3542
3543 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
3544
3545 PR target/45063
3546 * caller-save.c (save_call_clobbered_regs): Remove regs from
3547 hard_regs_saved when they are set.
3548
3549 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
3550
3551 PR target/41089
3552 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
3553 as volatile.
3554
3555 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
3556
3557 * common.opt (ftree-loop-distribute-patterns): New.
3558 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
3559 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
3560 at -O3.
3561 * tree-data-ref.c (stores_zero_from_loop): New.
3562 * tree-data-ref.h (stores_zero_from_loop): Declared.
3563 * tree-loop-distribution.c (tree_loop_distribution): Call
3564 stores_zero_from_loop.
3565 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
3566
3567 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
3568
3569 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
3570 into account.
3571
3572 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
3573 * config/arm/arm.c (thumb1_code): New variable.
3574 (arm_override_options): Set it.
3575 (thumb1_final_prescan_insn): Keep track of condition code status.
3576 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
3577 jumps that depend on them.
3578 * config/arm/arm.h (thumb1_code): Declare variable.
3579 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
3580 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
3581 thumb1_cc_mode.
3582 (CC_STATUS_INIT): New macro.
3583 * config/arm/constraints.md (Pd): New constraint.
3584 * config/arm/predicates.md (noov_comparison_operator): New predicate.
3585 * config/arm/arm.md (is_thumb1): New define_attr.
3586 (conds): Set default to "clob" when generating Thumb1 code.
3587 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
3588 code are set. Use two-operand assembly syntax.
3589 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
3590 pattern.
3591 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
3592 codes are set. Use two-operand assembly syntax.
3593 (zero_extendhisi splitter): Remove constraints.
3594 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
3595 thumb1_movsf_insn): Set conds attribute as appropriate.
3596 (cbranchsi4_insn): Use condition code status from struct
3597 machine_function to determine whether the comparison can be eliminated.
3598 Discourage the alternative using high registers.
3599 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
3600 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
3601 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
3602 subsi3_cbranch): Delete.
3603 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
3604 one subtract and one cbranch insn.
3605
3606 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
3607 thumb2_movdf_soft_insn): Delete patterns.
3608 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
3609 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
3610 (pool_range, neg_pool_range): Use them to define defaults.
3611 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
3612 and allow for TARGET_32BIT.
3613
3614 PR target/40457
3615 * config/arm/arm.h (arm_regs_in_sequence): Declare.
3616 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
3617 load_multiple_sequence, store_multiple_sequence): Delete
3618 declarations.
3619 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
3620 declarations.
3621 * config/arm/ldmstm.md: New file.
3622 * config/arm/arm.c (arm_regs_in_sequence): New array.
3623 (load_multiple_sequence): Now static. New args SAVED_ORDER,
3624 CHECK_REGS. All callers changed.
3625 If SAVED_ORDER is nonnull, copy the computed order into it.
3626 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
3627 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
3628 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
3629 If SAVED_ORDER is nonnull, copy the computed order into it.
3630 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
3631 like REGS. Handle Thumb mode.
3632 (arm_gen_load_multiple_1): New function, broken out of
3633 arm_gen_load_multiple.
3634 (arm_gen_store_multiple_1): New function, broken out of
3635 arm_gen_store_multiple.
3636 (arm_gen_multiple_op): New function, with code from
3637 arm_gen_load_multiple and arm_gen_store_multiple moved here.
3638 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
3639 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
3640 changed.
3641 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
3642 * config/arm/predicates.md (commutative_binary_operator): New.
3643 (load_multiple_operation, store_multiple_operation): Handle more
3644 variants of these patterns with different starting offsets. Handle
3645 Thumb-1.
3646 * config/arm/arm.md: Include "ldmstm.md".
3647 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
3648 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
3649 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
3650 peepholes): Delete.
3651 * config/arm/ldmstm.md: New file.
3652 * config/arm/arm-ldmstm.ml: New file.
3653
3654 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
3655 if statement which adds extra costs to frame-related expressions.
3656
3657 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3658
3659 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
3660
3661 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
3662
3663 PR target/45142
3664 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
3665 alternative 2.
3666 (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
3667 split V4SI operands.
3668
3669 2010-08-01 Anatoly Sokolov <aesok@post.ru>
3670
3671 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
3672 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
3673 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
3674 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
3675
3676 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
3677
3678 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
3679 LOCAL_INCLUDE_DIR.
3680
3681 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
3682
3683 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
3684 used in the call to optab_for_tree_code. Fix the second
3685 is_widening_mult_p call. Check that both unwidened operands
3686 have the same sign.
3687
3688 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
3689
3690 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
3691
3692 2010-07-31 Anatoly Sokolov <aesok@post.ru>
3693
3694 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
3695
3696 2010-07-30 DJ Delorie <dj@redhat.com>
3697
3698 * config/rx/predicates.md (rx_constshift_operand): New.
3699 * config/rx/rx.md (zs_cond): New.
3700 (cbranchsi4): Remove mode.
3701 (*cbranchsi4_<code>): Likewise.
3702 (*tstbranchsi4_<code>): New.
3703 (*tstbranchsi4r_<code>): New.
3704 (*tstbranchsi4m_eq): New.
3705 (*tstbranchsi4m_ne): New.
3706 (cbranchsf4): Remove mode.
3707 (*cbranchsf4_<code>): Likewise.
3708
3709 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
3710
3711 * rtlanal.c (simplify_subreg_regno): Don't treat
3712 HARD_FRAME_POINTER_REGNUM specially.
3713
3714 2010-07-30 Joseph Myers <joseph@codesourcery.com>
3715
3716 * common.opt (-G): Don't define option here.
3717 * config/g.opt: New.
3718 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
3719 rs6000/powerpc and score targets.
3720 * opts.c (common_handle_option): Don't handle -G here.
3721 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
3722 * config/frv/frv.c (frv_handle_option): Handle -G.
3723 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
3724 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
3725 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
3726 * config/mips/mips.c (mips_handle_option): Handle -G.
3727 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
3728 * config/score/score.c (score_handle_option): Handle -G.
3729
3730 2010-07-30 Anatoly Sokolov <aesok@post.ru>
3731
3732 * config/mmix/mmix.c: Include basic-block.h.
3733
3734 2010-07-30 Jakub Jelinek <jakub@redhat.com>
3735
3736 PR debug/45055
3737 PR rtl-optimization/45137
3738 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
3739 prototypes.
3740 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
3741 New functions.
3742 * combine.c (next_nonnote_nondebug_insn): Removed.
3743 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
3744 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
3745 * sched-deps.c (sched_analyze_insn): Likewise.
3746 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
3747 * rtlanal.c (canonicalize_condition): Likewise.
3748 * postreload.c (reload_combine_recognize_pattern): Likewise.
3749 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
3750
3751 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
3752
3753 * config/i386/i386.md (int_cond): Remove code iterator.
3754 (fp_cond): Ditto.
3755 (cbranch<mode>4): Use ordered_comparison_operator predicate
3756 for operator0.
3757 (cstore<mode>4): Ditto for operator1.
3758 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
3759 (add<mode>cc): ditto.
3760
3761 2010-07-30 Richard Guenther <rguenther@suse.de>
3762
3763 PR middle-end/45141
3764 * expr.c (expand_expr_real_1): Check for not handled base address.
3765
3766 2010-07-30 Richard Guenther <rguenther@suse.de>
3767
3768 * ipa-prop.c (ipa_modify_formal_parameters): Use
3769 build_distinct_type_copy.
3770
3771 2010-07-30 Anthony Green <green@moxielogic.com>
3772
3773 * config/moxie/rtems.h: New file.
3774 * config.gcc: Add moxie-rtems support.
3775
3776 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
3777
3778 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
3779 df flags as in run_fast_df_dce.
3780
3781 2010-07-29 Jakub Jelinek <jakub@redhat.com>
3782
3783 Revert:
3784 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
3785
3786 * rtl.def (NOTE): Swap operands 4 and 5.
3787 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
3788 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
3789 Adjust accordingly.
3790 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
3791
3792 2010-07-29 Jakub Jelinek <jakub@redhat.com>
3793
3794 PR debug/45110
3795 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
3796 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
3797 (gen_subprogram_die): Likewise. Remove it when removing declaration's
3798 formal parameters.
3799 (gen_decl_die): Change return type to dw_die_ref, return what
3800 gen_formal_parameter_die returned.
3801
3802 2010-07-29 Martin Jambor <mjambor@suse.cz>
3803
3804 * dbgcnt.def (eipa_sra): New counter.
3805 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
3806
3807 2010-07-29 Xinliang David Li <davidxl@google.com>
3808
3809 PR bootstrap/45119
3810 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
3811 in revision 162652.
3812
3813 2010-07-29 Richard Guenther <rguenther@suse.de>
3814
3815 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
3816 (TV_TREE_STORE_CCP): Likewise.
3817 (TV_TREE_REDPHI): Likewise.
3818
3819 2010-07-29 Richard Guenther <rguenther@suse.de>
3820
3821 * double-int.h (double_int_and_not): New function.
3822 * combine.c (try_combine): Use it.
3823 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
3824
3825 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
3826
3827 PR rtl-optimization/42575
3828 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
3829 Argument AU removed. All callers changed. Ignore artificial refs.
3830 Use return value of df_word_lr_simulate_defs to decide whether an insn
3831 is necessary.
3832 (fast_dce): Rename arg to WORD_LEVEL.
3833 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
3834 static.
3835 (pass_fast_rtl_byte_dce): Delete.
3836 * dce.h (run_word_dce): Declare.
3837 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
3838 All callers changed. Simplify code to only deal with two-word regs.
3839 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
3840 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
3841 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
3842 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
3843 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
3844 (df_word_lr_mark_ref): Declare.
3845 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
3846 df_word_lr_simulate_uses): Declare or rename from byte variants.
3847 (df_byte_lr_simulate_artificial_refs_at_top,
3848 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
3849 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
3850 declarations.
3851 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
3852 (enum df_mm): Delete.
3853 * df-byte-scan.c: Delete file.
3854 * df-problems.c (df_word_lr_problem_data): Renamed from
3855 df_byte_lr_problem_data, all members deleted except for
3856 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
3857 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
3858 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
3859 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
3860 df_byte_lr_confluence_0): Delete functions.
3861 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
3862 callers changed.
3863 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
3864 Don't initialize members that were deleted, don't try to discover data
3865 about registers. Ignore hard regs.
3866 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
3867 (df_word_lr_mark_ref): New function.
3868 (df_word_lr_bb_local_compute): Renamed from
3869 df_byte_bb_lr_local_compute; all callers changed. Use
3870 df_word_lr_mark_ref. Assert that artificial refs don't include
3871 pseudos. Ignore hard registers.
3872 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
3873 Assert that exit block uses don't contain pseudos.
3874 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
3875 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
3876 callers changed. Ignore hard regs.
3877 (df_word_lr_transfer_function): Renamed from
3878 df_byte_lr_transfer_function; all callers changed.
3879 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
3880 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
3881 changed.
3882 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
3883 callers changed.
3884 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
3885 confluence operator 0 set to NULL.
3886 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
3887 callers changed.
3888 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
3889 Return bool, true if bitmap changed or insn otherwise necessary.
3890 All callers changed. Simplify using df_word_lr_mark_ref.
3891 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
3892 all callers changed. Simplify using df_word_lr_mark_ref.
3893 * lower-subreg.c: Include "dce.h"
3894 (decompose_multiword_subregs): Call run_word_dce if df available.
3895 * Makefile.in (lower-subreg.o): Adjust dependencies.
3896 (df-byte-scan.o): Delete.
3897 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
3898
3899 2010-07-29 Richard Guenther <rguenther@suse.de>
3900
3901 * tree.c (build_vector): Assert that the vector constant
3902 has enough elements.
3903 (build_vector_from_ctor): Pad with trailing zeros.
3904
3905 2010-07-29 Richard Guenther <rguenther@suse.de>
3906
3907 PR tree-optimization/45120
3908 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3909 Handle offset in DEREFs properly.
3910 (get_constraint_for_1): Handle MEM_REF offset properly.
3911
3912 2010-07-29 Richard Guenther <rguenther@suse.de>
3913
3914 PR middle-end/45034
3915 * convert.c (convert_to_integer): Always use an unsigned
3916 type for narrowed negate and bitwise not.
3917
3918 2010-07-29 Ira Rosen <irar@il.ibm.com>
3919
3920 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
3921 to outer loop when creating reduction epilogue for double reduction,
3922 and switch back to the inner loop when updating the phi nodes.
3923 Update uses of outer loop exit phi nodes in double reduction (instead
3924 of uses of reduction).
3925
3926 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
3927
3928 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
3929 popcount on power7 and parity on power6 systems.
3930 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
3931 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
3932 instructions.
3933
3934 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
3935 (UNSPEC_PARITY): Ditto.
3936 (SFDF): New iterator for SF/DF.
3937 (rreg2): New mode attribute for floating register constraint.
3938 (TARGET_FLOAT): New mode attribute for whether single/double float
3939 is supported.
3940 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
3941 pattern.
3942 (parity<mode>2_cmpb): New insn for parity on power6 and newer
3943 machines.
3944 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
3945 pattern. Add support for fcpsgn instruction added in power6.
3946 (copysignsf3): Delete.
3947 (copysigndf3): Delete.
3948 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
3949 instead of if_then_else in RTL to avoid problems with -0.
3950
3951 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
3952 of if_then_else to mirror scalar code.
3953 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
3954 rs6000.md.
3955
3956 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
3957 instead of if_then_else.
3958
3959 2010-07-28 Xinliang David Li <davidxl@google.com>
3960
3961 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
3962 (dump_cand): Dump var_before/after.
3963 (htab_inv_expr_eq): New function.
3964 (htab_inv_expr_hash): New function.
3965 (tree_ssa_iv_optimize_init): Support pseudo invariants.
3966 (add_candidate_1): consider base type precision.
3967 (set_use_iv_cost): New parameter.
3968 (adjust_setup_cost): Use profile information.
3969 (get_address_cost): Do not hard code width in computing address
3970 offset limits.
3971 (compare_aff_trees): New function.
3972 (get_loop_invariant_expr_id): New function.
3973 (get_computation_cost_at): New parameter and use profile information.
3974 (get_computation_cost): New parameter.
3975 (determine_use_iv_cost_generic): Pass new parameter.
3976 (determine_use_iv_cost_address): Ditto.
3977 (determine_use_iv_cost_condition): Ditto.
3978 (autoinc_possible_for_pair): Ditto.
3979 (determine_use_iv_costs): More dumps.
3980 (iv_ca_get_num_inv_exprs): New function.
3981 (iv_ca_recount_cost): Consider loop invariants in register pressure
3982 cost.
3983 (iv_ca_add_use): New parameter.
3984 (iv_ca_dump): Better dumping.
3985 (iv_ca_extend): New parameter.
3986 (try_add_cand_for): Attempt to get better partial solution.
3987 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
3988 (create_new-ivs): More dumps.
3989 (rewrite_use_compare): Ditto.
3990 (free_loop_data): More cleanup.
3991 (treee_ssa_iv_optimize_finalize): Ditto.
3992
3993 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
3994
3995 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
3996 * config/i386/i386.c (ix86_profile_before_prologue): New.
3997 (override_options): Add special handling for -mfentry.
3998 (ix86_function_regparm): Likewise.
3999 (ix86_function_sseregparm): Likewise.
4000 (ix86_frame_pointer_required): Likewise.
4001 (ix86_expand_prologue): Check for ms_hook_prologue.
4002 (x86_function_profiler): Adjust mcount output.
4003 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
4004 * config/i386/i386.opt (mfentry): New.
4005 * doc/invoke.texi (mfentry): Add documentation.
4006 * doc/tm.texi: Regenerated..
4007 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
4008 * final.c (final_start_function): Replace macro
4009 PROFILE_BEFORE_PROLOGUE by target hook.
4010 * function.c (thread_prologue_and_epilogue_insns): Likewise.
4011 * target.def (profile_before_prologue): New hook.
4012 * targhooks.c (default_profile_before_prologue): New.
4013 * targhooks.h (default_profile_before_prologue): New.
4014
4015 2010-07-28 Jakub Jelinek <jakub@redhat.com>
4016
4017 PR debug/45105
4018 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
4019
4020 PR debug/45103
4021 * dwarf2out.c (dwarf2out_var_location): Always consider
4022 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
4023
4024 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
4025
4026 PR rtl-optimization/45107
4027 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
4028
4029 2010-07-28 Richard Guenther <rguenther@suse.de>
4030
4031 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
4032 (set_lattice_value): Do not query an old default value.
4033 (get_value_for_expr): New function. Properly canonicalize
4034 float values.
4035 (ccp_visit_phi_node): Use it.
4036
4037 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
4038
4039 * config/arm/arm.c (arm_pcs_default): Remove static.
4040 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
4041 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
4042 (arm_pcs_default): Declare.
4043
4044 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
4045
4046 * config/rs6000/rs6000.c (rs6000_override_options):
4047 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
4048 ... to darwin_rs6000_override_options.
4049 (rs6000_return_in_memory): Update preceding comment for darwin
4050 64 bit ABI. Use TARGET_MACHO inline.
4051 (rs6000_darwin64_struct_check_p): New.
4052 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
4053 (function_arg): Likewise.
4054 (rs6000_arg_partial_bytes): Likewise.
4055 (rs6000_function_value): Likewise.
4056
4057 2010-07-28 Andi Kleen <ak@linux.intel.com>
4058
4059 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
4060
4061 2010-07-28 Richard Guenther <rguenther@suse.de>
4062
4063 PR middle-end/44903
4064 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
4065 targets try harder to not generate unaligned accesses.
4066
4067 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
4068
4069 PR rtl-optimization/45101
4070 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
4071 for gcse-las.
4072
4073 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
4074
4075 PR tree-optimization/44885
4076 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
4077 with non-aliased component.
4078
4079 2010-07-28 Joseph Myers <joseph@codesourcery.com>
4080
4081 * config/darwin-driver.c (SWITCH_TAKES_ARG,
4082 WORD_SWITCH_TAKES_ARG): Remove.
4083 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
4084 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
4085 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
4086 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
4087 definitions from gcc.c.
4088 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
4089 defaults.h.
4090 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
4091 Move to defaults.h.
4092 * opts-common.c: Include tm.h.
4093 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
4094 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
4095 Handle more than one argument. Set canonical_option_num_elements.
4096 (decode_cmdline_options_to_array): Set
4097 canonical_option_num_elements and trailing elements of
4098 canonical_option.
4099 * opts.h (struct cl_decoded_option): Allow four elements in
4100 canonical_option. Add field canonical_option_num_elements.
4101 * Makefile.in (opts-common.o): Update dependencies.
4102
4103 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
4104
4105 PR middle-end/44790
4106 PR middle-end/44993
4107 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
4108 sure the base has address_mode before adding the offset.
4109
4110 2010-07-27 Xinliang David Li <davidxl@google.com>
4111
4112 * tree-flow.h (create_mem_ref): Add one new parameter.
4113 * tree-ssa-address.c (create_mem_ref): New parameter.
4114 (addr_to_parts): Ditto.
4115 (move_variant_to_index): New function.
4116 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
4117
4118 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
4119
4120 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
4121 4 and 5.
4122 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
4123 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
4124 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
4125 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
4126 CODE_LABELs and NOTEs.
4127 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
4128 * combine.c (try_combine): Likewise.
4129 * ira.c (setup_prohibited_mode_move_regs): Likewise.
4130 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
4131
4132 2010-07-27 Joseph Myers <joseph@codesourcery.com>
4133
4134 * coretypes.h (struct cl_option_handlers): Declare.
4135 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
4136 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
4137 * langhooks-def.h (lhd_handle_option): Declare.
4138 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
4139 * langhooks.c (lhd_handle_option): New.
4140 * langhooks.h (struct lang_hooks): Update prototype and return
4141 value type of handle_option hook.
4142 * optc-gen.awk: Generate target_flags_explicit definition for the
4143 driver.
4144 * opts-common.c: Include diagnostic.h.
4145 (handle_option): Move from opts.c. Update prototype and return
4146 value type. Use handlers structure.
4147 (read_cmdline_option): Move from opts.c. Update prototype. Use
4148 handlers structure.
4149 (set_option): Move from opts.c.
4150 * opts.c (common_handle_option): Update prototype and return value
4151 type. Update calls to handle_option and enable_warning_as_error.
4152 (unknown_option_callback, post_handling_callback,
4153 lang_handle_option, target_handle_option): New.
4154 (handle_option, read_cmdline_option): Move to opts-common.c.
4155 (read_cmdline_options): Update prototype. Update call to
4156 read_cmdline_option.
4157 (decode_options): Initialize and use handlers structure.
4158 (set_option): Move to opts-common.c.
4159 (enable_warning_as_error): Update prototype. Update call to
4160 handle_option.
4161 * opts.h (struct cl_option_handler_func, struct
4162 cl_option_handlers): New.
4163 (handle_option, enable_warning_as_error): Update prototypes.
4164 (read_cmdline_option): Declare.
4165 * Makefile.in (opts-common.o): Update dependencies.
4166
4167 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4168
4169 * config/arm/arm.c (params.h): Include.
4170 (arm_override_options): Tune gcse-unrestricted-cost.
4171 * config/arm/t-arm (arm.o): Define dependencies.
4172
4173 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4174
4175 PR target/42495
4176 PR middle-end/42574
4177 * basic-block.h (get_dominated_to_depth): Declare.
4178 * dominance.c (get_dominated_to_depth): New function, use
4179 get_all_dominated_blocks as a base.
4180 (get_all_dominated_blocks): Use get_dominated_to_depth.
4181
4182 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
4183 (hoist_exprs): Remove.
4184 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
4185 (compute_code_hoist_vbeinout): Add debug print outs.
4186 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
4187
4188 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
4189 quadratic behavior.
4190 * params.h (MAX_HOIST_DEPTH): New macro.
4191 * doc/invoke.texi (max-hoist-depth): Document.
4192
4193 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4194
4195 PR rtl-optimization/40956
4196 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
4197 constants.
4198
4199 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4200
4201 PR target/42495
4202 PR middle-end/42574
4203 * config/arm/arm.c (legitimize_pic_address): Use
4204 gen_calculate_pic_address pattern to emit calculation of PIC address.
4205 (will_be_in_index_register): New function.
4206 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
4207 (thumb1_legitimate_address_p): Use it provided !strict_p.
4208 * config/arm/arm.md (calculate_pic_address): New expand and split.
4209
4210 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4211
4212 PR target/42495
4213 PR middle-end/42574
4214 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
4215 * config/arm/arm.md (define_split "J", define_split "K"): Make
4216 IRA/reload friendly.
4217
4218 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4219
4220 * gcse.c (insert_insn_end_basic_block): Update signature, remove
4221 unused checks.
4222 (pre_edge_insert, hoist_code): Update.
4223
4224 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4225
4226 PR target/42495
4227 PR middle-end/42574
4228 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
4229
4230 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4231
4232 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
4233
4234 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4235
4236 PR rtl-optimization/40956
4237 PR target/42495
4238 PR middle-end/42574
4239 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
4240 for hoisting.
4241 (hoist_code): Count occurences in current block too.
4242
4243 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4244
4245 * gcse.c (struct expr:max_distance): New field.
4246 (doing_code_hoisting_p): New static variable.
4247 (want_to_gcse_p): Change signature. Allow constrained hoisting of
4248 simple expressions, don't change behavior for PRE. Set max_distance.
4249 (insert_expr_in_table): Set new max_distance field.
4250 (hash_scan_set): Update.
4251 (hoist_expr_reaches_here_p): Stop search after max_distance
4252 instructions.
4253 (find_occr_in_bb): New static function. Use it in ...
4254 (hoist_code): Calculate sizes of basic block before any changes are
4255 done. Pass max_distance to hoist_expr_reaches_here_p.
4256 (one_code_hoisting_pass): Set doing_code_hoisting_p.
4257
4258 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
4259 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
4260 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
4261 macros.
4262 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
4263 Document.
4264
4265 2010-07-27 Jeff Law <law@redhat.com>
4266 Maxim Kuvyrkov <maxim@codesourcery.com>
4267
4268 * gcse.c (compute_transpout, transpout): Remove, move logic
4269 to prune_expressions.
4270 (compute_pre_data): Move pruning of trapping expressions ...
4271 (prune_expressions): ... here. New static function.
4272 (compute_code_hoist_data): Use it.
4273 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
4274
4275 2010-07-27 Xinliang David Li <davidxl@google.com>
4276
4277 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
4278 (rewrite_use_address): Adjust iv update position when needed.
4279
4280 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4281
4282 * dbgcnt.def (hoist_insn): New debug counter.
4283 * gcse.c (hoist_code): Use it.
4284
4285 2010-07-27 Xinliang David Li <davidxl@google.com>
4286
4287 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
4288 (niter_for_single_dom_exit): Passes additional parameter.
4289 (iv_period): Fix comments.
4290 (may_eliminate_iv): Handles multiple exit loops properly.
4291 (free_tree_niter_desc): New function.
4292 (free_loop_data): Frees up loop iteration descriptors.
4293
4294 2010-07-27 Jakub Jelinek <jakub@redhat.com>
4295
4296 PR target/44542
4297 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
4298 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
4299 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
4300 (expand_one_var): Don't consider DECL_ALIGN for variables for
4301 which expand_one_stack_var_at has been already called.
4302
4303 PR testsuite/44701
4304 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
4305 constraints on IA-64.
4306
4307 2010-07-27 Jie Zhang <jie@codesourcery.com>
4308
4309 PR target/44290
4310 Revert:
4311 2010-07-23 Jie Zhang <jie@codesourcery.com>
4312
4313 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
4314 false if ! tree_versionable_function_p.
4315
4316 2010-07-27 Jakub Jelinek <jakub@redhat.com>
4317
4318 * dwarf2out.c (add_data_member_location_attribute): Use
4319 add_AT_unsigned instead of add_AT_int if offset is non-negative.
4320
4321 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
4322
4323 * postreload.c (try_replace_in_use): New static function.
4324 (reload_combine_recognize_const_pattern): Use it here. Allow
4325 substituting into a final add insn, and substituting into a memory
4326 reference in an insn that sets the reg.
4327
4328 2010-07-27 Joseph Myers <joseph@codesourcery.com>
4329
4330 * common.opt (o): Add MissingArgError.
4331 * doc/options.texi (MissingArgError): Document.
4332 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
4333 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
4334 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4335 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
4336 * langhooks.h (struct lang_hooks): Remove missing_argument.
4337 * optc-gen.awk: Handle MissingArgError and output new structure
4338 field initializers.
4339 * opts.c (read_cmdline_option): Use missing_argument_error field
4340 instead of missing_argument langhook.
4341 * opts.h (struct cl_option): Add missing_argument_error field.
4342 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
4343
4344 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
4345
4346 PR target/29090
4347 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
4348 Darwin64 ABI, for zero-sized objects.
4349
4350 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
4351
4352 PR target/35491
4353 PR target/29090
4354
4355 Merge from Apple local 4.2.1.
4356 2005-05-11 Stan Shebs <shebs@apple.com>
4357 Fix 64-bit varargs for Darwin (Radar 4028089).
4358 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
4359 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
4360 Add argument, add case for 8-byte register half-filled with a float.
4361 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
4362 single-precision floats specially.
4363
4364 2010-07-27 Ira Rosen <irar@il.ibm.com>
4365
4366 PR tree-optimization/44152
4367 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
4368 complex numbers for further check.
4369 (vect_supported_load_permutation_p): Check nodes with
4370 complex numbers.
4371
4372 2010-07-27 Joseph Myers <joseph@codesourcery.com>
4373
4374 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
4375 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
4376 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
4377 (LANG_HOOKS_INITIALIZER): Add new hooks.
4378 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
4379 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
4380 and complain_wrong_lang_p. Update init_options prototype.
4381 * c-objc-common.c (c_initialize_diagnostics): First call
4382 c_common_initialize_diagnostics.
4383 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
4384 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
4385 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
4386 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
4387 (hook_uint_void_0): New.
4388 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
4389 (hook_uint_void_0): New.
4390 * opts-common.c (decode_cmdline_option,
4391 decode_cmdline_options_to_array): Also fill in canonical_option field.
4392 * opts.c (complain_wrong_lang): Use langhook to determine whether
4393 to complain instead of special-casing LTO.
4394 (decode_options): Separate lang_mask determination with
4395 option_lang_mask hook from call of init_options hook.
4396 * opts.h (struct cl_decoded_option): Add canonical_option.
4397
4398 2010-07-27 Jakub Jelinek <jakub@redhat.com>
4399
4400 PR tree-optimization/45083
4401 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
4402
4403 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
4404
4405 * postreload.c (reload_combine_recognize_const_pattern): Move test
4406 for limiting the insn movement to the right scope.
4407
4408 PR rtl-optimization/45051
4409 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
4410 than reg_mentioned_p.
4411
4412 2010-07-26 Richard Henderson <rth@redhat.com>
4413
4414 PR target/44132
4415 * tree-emutls.c: New file.
4416 * Makefile.in (OBJS-common): Add it.
4417 * tree-pass.h (pass_ipa_lower_emutls): Declare.
4418 * passes.c (init_optimization_passes): Add it.
4419
4420 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
4421 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
4422 * expr.c (emutls_var_address): Delete.
4423 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
4424 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
4425 (emutls_finish): Delete.
4426 * toplev.c (compile_file): Don't call it.
4427 * tree.h (emutls_decl): Delete.
4428 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
4429 (emutls_finish, emutls_finalize_control_var): Delete.
4430 (emutls_object_type): Move to tree-emutls.c.
4431 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
4432 default_emutls_var_fields, get_emutls_object_type,
4433 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
4434 default_emutls_var_init): Likewise.
4435 (get_variable_section): Don't special case emutls.
4436 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
4437 default_elf_select_section, default_unique_section,
4438 default_encode_section_info): Likewise.
4439 * varpool.c (decide_is_variable_needed): Likewise.
4440 * gimple-iterator.c (update_call_edge_frequencies): New
4441 (gsi_insert_on_edge_immediate): Use it.
4442 (gsi_insert_seq_on_edge_immediate): Likewise.
4443 (gsi_commit_one_edge_insert): Likewise.
4444
4445 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
4446 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
4447 (x86_64_elf_unique_section): Likewise.
4448
4449 2010-07-26 Jan Hubicka <jh@suse.cz>
4450
4451 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
4452 GTY((skip)).
4453
4454 2010-07-26 Anatoly Sokolov <aesok@post.ru>
4455
4456 * target.def (output_source_filename): New hook.
4457 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
4458 * doc/tm.texi: Regenerate.
4459 * toplev.c (output_file_directive) Remove function.
4460 * toplev.h (output_file_directive) Remove.
4461 * output.h (default_asm_output_source_filename,
4462 output_file_directive): Declare.
4463 * varasm.h (default_asm_output_source_filename,
4464 output_file_directive): New functions.
4465
4466 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
4467 * config/mips/mips-protos.h (mips_output_filename): Remove.
4468 * config/mips/mips.c (mips_output_filename): Make Static.
4469 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
4470
4471 2010-07-26 Richard Guenther <rguenther@suse.de>
4472
4473 PR tree-optimization/43784
4474 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
4475 if the destination is used by the call.
4476
4477 2010-07-26 Richard Guenther <rguenther@suse.de>
4478
4479 PR middle-end/45073
4480 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
4481 SSA updating on being in SSA form.
4482
4483 2010-07-26 Richard Guenther <rguenther@suse.de>
4484
4485 PR middle-end/45056
4486 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
4487
4488 2010-07-26 Richard Guenther <rguenther@suse.de>
4489
4490 PR tree-optimization/45071
4491 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
4492 adjust op->opcode.
4493
4494 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
4495
4496 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
4497 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
4498 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
4499 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
4500 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
4501 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
4502 save_r31, return_r31, save_interrupt, return_interrupt,
4503 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
4504 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
4505 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
4506 new ABI requirements.
4507 (save_r6_r9, L_callt_save_r6_r9): Remove.
4508 * config/v850/predicates.md (even_reg_operand, disp23_operand,
4509 const_float_1_operand const_float_0_operand): New Predicates.
4510 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
4511 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
4512 * config/v850/t-v850: Update multilibs for new target variants.
4513 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
4514 * config/v850/t-v850e: Likewise.
4515 * config/v850/v850.c (v850_issue_rate): New.
4516 (v850_strict_argument_naming): New.
4517 (function_arg): Modify to generate a different ABI.
4518 (print_operand): Update case 'z' to support float modes.
4519 (output_move_single): Modify to generate appropriate and better
4520 assembly.
4521 (v850_float_z_comparison_operator, v850_select_cc_mode,
4522 v850_float_nz_comparison_operator, v850_gen_float_compare,
4523 v850_gen_compare): New functions to support comparison of float values.
4524 (ep_memory_offset): Add support for V850E2 targets.
4525 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
4526 (INTERRUPT_REGPARM_NUM): Remove.
4527 (compute_register_save_size): Add extra case to save/restore long call.
4528 (use_prolog_function): New function to support prologue.
4529 (expand_prologue): Add support for V850E2 targets and modified
4530 as per the current ABI requirements.
4531 (expand_epilogue): Likewise.
4532 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
4533 (construct_save_jarl): Likewise.
4534 (construct_dispose_instruction): Update as per the current ABI
4535 requirements.
4536 (construct_prepare_instruction): Likewise.
4537 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
4538 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
4539 (CPP_SPEC): Updated to support v850e2 targets.
4540 (STRICT_ALIGNMENT): Modified.
4541 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
4542 (FIXED_REGISTERS): Likewise.
4543 (CALL_USED_REGISTERS): Likewise.
4544 (CONDITIONAL_REGISTER_USAGE): Updated.
4545 (HARD_REGNO_MODE_OK): Updated.
4546 (reg_class): Updated to add even registers.
4547 (REG_CLASS_NAMES): Likewise.
4548 (REG_CLASS_CONTENTS): Likewise.
4549 (REGNO_REG_CLASS): Updated for CC registers.
4550 (REG_CLASS_FROM_LETTER): Added support for even registers.
4551 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
4552 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
4553 ARG_POINTER_REGNUM): Updated.
4554 (FUNCTION_ARG_ADVANCE): Define.
4555 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
4556 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
4557 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
4558 (GO_IF_LEGITIMATE_ADDRESS): Updated.
4559 (SELECT_CC_MODE): Define.
4560 (REGISTER_NAMES): Updated to add psw and fcc registers.
4561 (ADDITIONAL_REGISTER_NAMES): Updated.
4562 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
4563 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
4564 * config/v850/v850.md (define_constants): Define new constants.
4565 (type): Update store,bit1,macc,div,fpu and single attributes.
4566 (cpu): New attribute.
4567 (cc): Add set_z attribute.
4568 (unsign23byte_load, sign23byte_load, unsign23hword_load,
4569 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
4570 23word_store): New instructions for 23-bit displacement load and store.
4571 (movqi_internal, movhi_internal): Update the attributes.
4572 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
4573 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
4574 the attributes.
4575 (v850_tst1): Modified using CC_REGNUM.
4576 (tstsi): Remove.
4577 (cmpsi): Modified as define_expand from define_insn.
4578 (cmpsi_insn, cmpsf, cmpdf): New instructions.
4579 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
4580 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
4581 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
4582 one_cmplsi2): Clobber the CC_REGNUM register.
4583 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
4584 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
4585 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
4586 (setf_insn, set_z_insn, set_nz_insn): New instructions for
4587 v850e2v3 target.
4588 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
4589 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
4590 targets.
4591 (sasf_1, sasf_2): Remove.
4592 (sasf): New instruction.
4593 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
4594 targets. CC_REGNUM register is clobbered and attributes are
4595 updated.
4596 (branch_z_normal, branch_z_invert, branch_nz_normal,
4597 branch_nz_invert): New branch related instructions.
4598 (jump): Updated the attributes.
4599 (switch): Update to support new targets. CC_REGNUM register is
4600 clobbered and attributes are updated.
4601 (call_internal_short, call_internal_long, call_value_internal_short,
4602 call_value_internal_long): Updated the attributes.
4603 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
4604 clobbered and attributes are updated.
4605 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
4606 Update to support new targets. CC_REGNUM register is clobbered.
4607 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
4608 instructions.
4609 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
4610 are updated.
4611 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
4612 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
4613 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
4614 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
4615 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
4616 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
4617 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
4618 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
4619 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
4620 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
4621 point instructions defined for V850e2v3 target.
4622 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
4623 Add support for V850E2 targets and CC_REGNUM register is clobbered.
4624 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
4625 support for new targets.
4626 * config/v850/v850-modes.def: New file.
4627 * config/v850/v850.opt(mstrict-align): Remove.
4628 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
4629 mv850e2v3): New command line options for V850.
4630 * config.gcc: Update the newly added files.
4631 * doc/invoke.texi: Update the newly added command line options for
4632 V850 target.
4633
4634 2010-07-26 Richard Guenther <rguenther@suse.de>
4635
4636 PR tree-optimization/45052
4637 * ipa-pure-const.c (check_stmt): Check volatileness.
4638
4639 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
4640
4641 PR target/44707
4642 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
4643 * config/sparc/sparc.c: Include reload.h.
4644 (legitimize_tls_address): Rename into...
4645 (sparc_legitimize_tls_address): ...this.
4646 (legitimize_pic_address): Rename into...
4647 (sparc_legitimize_pic_address): ...this.
4648 (sparc_expand_move): Adjust to above renaming.
4649 (sparc_tls_referenced_p): Likewise.
4650 (sparc_legitimize_tls_address): Likewise.
4651 (sparc_legitimize_pic_address): Likewise.
4652 (sparc_legitimize_address): Likewise.
4653 (sparc_output_mi_thunk): Likewise.
4654 (sparc_legitimize_reload_address): New global function. Recognize
4655 (lo_sum (high ...) ...) patterns generated by earlier passes.
4656 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
4657
4658 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
4659
4660 PR target/44484
4661 * config/sparc/predicates.md (memory_reg_operand): Delete.
4662 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
4663 (*sync_compare_and_swap): Encode the address form in the pattern.
4664 (*sync_compare_and_swapdi_v8plus): Likewise.
4665
4666 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
4667
4668 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
4669 Streamline paragraph on compatibility with the system compiler.
4670
4671 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
4672
4673 PR middle-end/45035
4674 * alias.c (true_dependence_1): Fix thinko in merge of old
4675 true_dependence and canon_true_dependence.
4676
4677 2010-07-23 Jan Hubicka <jh@suse.cz>
4678
4679 * lto-streamer-out.c (write_symbol): Fix visibilities of external
4680 references.
4681
4682 2010-07-23 Le-Chun Wu <lcwu@google.com>
4683
4684 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
4685 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
4686 and an unnecessary assignment.
4687 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
4688 self-assign warning.
4689 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
4690 unnecessary self-init.
4691
4692 2010-07-23 Richard Guenther <rguenther@suse.de>
4693
4694 PR lto/43071
4695 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
4696 for -flto and -fwhopr.
4697
4698 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
4699
4700 PR target/41943
4701 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
4702 (stmp-int-hdrs): Prefix/postfix headers by include_next.
4703 * config.gcc (user_headers_inc_next_pre): New.
4704 (user_headers_inc_next_post): Likewise.
4705 (*-w64-mingw*): Use for float.h post-fixing, and for
4706 stddef.h/stdarg.h pre-fixing by include_next.
4707 * configure.ac (user_headers_inc_next_post): New.
4708 (user_headers_inc_next_pre): New.
4709 * configure: Regenerated.
4710
4711 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4712
4713 * configure.ac: Don't disable TLS on Solaris 8/9 by default
4714 Set tga_func for Solaris 2/x86 resp. SPARC.
4715 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
4716 (LIB_THREAD_LDFLAGS_SPEC): Define.
4717 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
4718 * configure: Regenerate.
4719 * config.in: Regenerate.
4720 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
4721 -pthread, -threads, LIB_TLS_SPEC with -pthread.
4722 * doc/install.texi (Specific, *-*-solaris2*): Document use of
4723 alternate thread libraries on Solaris 8.
4724 Document TLS patch requirements.
4725 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
4726 Document tls.
4727
4728 PR target/18788
4729 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
4730 -shared.
4731
4732 2010-07-23 Jakub Jelinek <jakub@redhat.com>
4733
4734 * tree.h (struct tree_base): Add nameless_flag bitfield.
4735 (TYPE_NAMELESS, DECL_NAMELESS): Define.
4736 * omp-low.c (create_omp_child_function, scan_omp_parallel,
4737 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
4738 DECL_ARTIFICIAL where needed.
4739 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
4740 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
4741 has DECL_NAMELESS set.
4742
4743 2010-07-23 Martin Jambor <mjambor@suse.cz>
4744
4745 PR tree-optimization/44915
4746 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
4747 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
4748 (analyze_function): Likewise.
4749
4750 2010-07-23 Martin Jambor <mjambor@suse.cz>
4751
4752 PR tree-optimization/44914
4753 * tree-sra.c (sra_modify_function_body): Return true if CFG was
4754 changed, add purging dead eh edges.
4755 (ipa_sra_modify_function_body): Return true if CFG was changed,
4756 simplify purging dead eh edges.
4757 (modify_function): Return true if CFG was changed.
4758 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
4759 was changed.
4760 (ipa_early_sra): Likewise.
4761
4762 2010-07-23 Jie Zhang <jie@codesourcery.com>
4763
4764 PR target/44290
4765 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
4766 if "naked".
4767 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
4768 false if ! tree_versionable_function_p.
4769
4770 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
4771
4772 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
4773 * ipa-pure-const.c (special_builtlin_state): Remove
4774 BUILT_IN_ARGS_INFO case.
4775 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
4776 * builtins.c (expand_builtin): Likewise.
4777 (expand_builtin_args_info): Remove.
4778 * doc/tm.texi (__builtin_args_info): Remove.
4779 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
4780 * doc/tm.text.in: Likewise.
4781
4782 2010-07-23 Richard Guenther <rguenther@suse.de>
4783
4784 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
4785 (lto_symtab_merge_decls_2): Likewise.
4786 * tree-ssa.c (useless_type_conversion_p): Likewise.
4787 * lto-streamer-in.c (input_gimple_stmt): Likewise.
4788 * gimple.c (gtc_visited2, gtc_ob2): Remove.
4789 (struct type_pair_d): Make same_p an array indexed by mode.
4790 Update comment.
4791 (lookup_type_pair): Update initialization.
4792 (struct sccs): Adjust same_p type.
4793 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
4794 Adjust.
4795 (print_gimple_types_stats): Likewise.
4796 * gimple.h (enum gtc_mode): New.
4797 (gimple_types_compatible_p): Adjust prototype.
4798
4799 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
4800
4801 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
4802 again after processing insn.
4803
4804 2010-07-23 Jie Zhang <jie@codesourcery.com>
4805
4806 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
4807 proper words when !tree_versionable_function_p.
4808
4809 2010-07-23 Richard Guenther <rguenther@suse.de>
4810
4811 PR tree-optimization/45037
4812 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
4813
4814 2010-07-23 Jie Zhang <jie@codesourcery.com>
4815
4816 * doc/extend.texi: Remove IP2K from the description of naked attribute.
4817 Add MCORE instead.
4818
4819 2010-07-10 Andi Kleen <ak@linux.intel.com>
4820
4821 PR lto/44992
4822 * lto-opts.c (lto_write_options): Add NULL file_data argument to
4823 lto_get_section_name.
4824 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
4825 * lto-streamer-out.c (produce_asm): Likewise.
4826 (copy_function): Likewise.
4827 (produce_symtab): Likewise.
4828 (produce_asm_for_decls): Likewise.
4829 * lto-streamer.c (lto_get_section_name): Add file_data argument.
4830 Rewrite to add random postfix to LTO sections.
4831 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
4832 (lto_get_section_name): Add file_data argument to prototype.
4833
4834 2010-07-10 Andi Kleen <ak@linux.intel.com>
4835
4836 * lto-section-in.c (lto_section_name): Synchronize names
4837 with lto_get_section_name.
4838
4839 2010-07-10 Andi Kleen <ak@linux.intel.com>
4840
4841 * lto-opts.c (lto_read_file_options): Check for missing section.
4842
4843 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
4844
4845 * ira.c (check_allocation): Correctly handle the case where an allocno
4846 with two objects was allocated to a single reg.
4847
4848 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
4849
4850 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
4851 (is_widening_mult_p): Likewise.
4852 (convert_to_widen): Use them.
4853 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
4854 well as integer ones.
4855
4856 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
4857
4858 * alias.c (true_dependence_1): New function, merged version of
4859 true_dependence and canon_true_dependence.
4860 (true_dependence): Simplify.
4861 (canon_true_dependence): Simplify.
4862
4863 2010-07-22 Richard Henderson <rth@redhat.com>
4864
4865 PR target/45027
4866 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
4867 of V4SFmode for the SSE saves; increase stack alignment if needed.
4868 (ix86_gimplify_va_arg): Don't increase stack alignment here.
4869
4870 2010-07-22 Jakub Jelinek <jakub@redhat.com>
4871
4872 PR bootstrap/45028
4873 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
4874 call cprop_find_used_regs again via note_uses.
4875
4876 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
4877
4878 * alias.c (get_alias_set): Fix formatting issues.
4879
4880 2010-07-22 Steve Ellcey <sje@cup.hp.com>
4881
4882 PR middle-end/44878
4883 * stmt.c (expand_value_return): Call promote_function_mode with
4884 a for_return argument of 2 when returning by reference.
4885
4886 2010-07-22 Dodji Seketeli <dodji@redhat.com>
4887
4888 PR debug/45024
4889 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
4890 unit DIE if we can find the scope DIE.
4891
4892 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
4893
4894 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
4895 changed. Initialize OBJECT_SUBWORD.
4896 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
4897 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
4898 all callers changed.
4899 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
4900 (finish_allocno): Likewise.
4901 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
4902 (remove_low_level_allocnos): Likewise.
4903 (update_bad_spill_attribute): Likewise.
4904 (setup_min_max_allocno_live_range_point): Likewise.
4905 (sort_conflict_id_map): Likewise.
4906 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
4907 (ior_hard_reg_conflicts): New function.
4908 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
4909 (compress_conflict_vecs): Iterate over objects, not allocnos.
4910 (ira_add_live_range_to_object): New function.
4911 (object_range_compare_func): Renamed from allocno_range_compare_func.
4912 All callers changed.
4913 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
4914 subobjects, widen the min/max range of the lowest-order object to
4915 potentially include all other such low-order objects.
4916 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
4917 (check_allocation): Likewise. Use more fine-grained tests for register
4918 conflicts.
4919 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
4920 allocno subobjects.
4921 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
4922 choices about which bits to set in each set. Don't use
4923 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
4924 using the multiple sets we computed.
4925 (push_allocno_to_stack): Iterate over allocno subobjects.
4926 (all_conflicting_hard_regs_coalesced): New static function.
4927 (setup_allocno_available_regs_num): Use it.
4928 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
4929 subobjects.
4930 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
4931 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4932 by ALLOCNO_NUM_OBJECTS.
4933 (calculate_spill_cost): Likewise.
4934 (color_pass): Express if statement in a more normal way.
4935 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
4936 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
4937 (setup_slot_coalesced_allocno_live_ranges): Likewise.
4938 (allocno_reload_assign): Likewise.
4939 (ira_reassign_pseudos): Likewise.
4940 (fast_allocation): Likewise.
4941 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4942 (print_allocno_conflicts): Likewise.
4943 (ira_build_conflicts): Likewise.
4944 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
4945 callers changed. Test subword 0 of each allocno for conflicts.
4946 (build_object_conflicts): Renamed from build_allocno_conflicts. All
4947 callers changed. Iterate over allocno subobjects.
4948 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
4949 * ira-int.h (struct ira_allocno): New member: num_objects.
4950 Rename object to objects and change it into an array.
4951 (ALLOCNO_OBJECT): Add new argument N.
4952 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
4953 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
4954 (ior_hard_reg_conflicts): Declare.
4955 (ira_add_live_range_to_object): Declare.
4956 (ira_allocno_object_iterator): New.
4957 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
4958 (FOR_EACH_ALLOCNO_OBJECT): New macro.
4959 * ira-lives.c (objects_live): Renamed from allocnos_live; all
4960 uses changed.
4961 (allocnos_processed): New sparseset.
4962 (make_object_born): Renamed from make_allocno_born; take an
4963 ira_object_t argument. All callers changed.
4964 (make_object_dead): Renamed from make_allocno_dead; take an
4965 ira_object_t argument. All callers changed.
4966 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
4967 All callers changed.
4968 (mark_pseudo_regno_live): Iterate over allocno subobjects.
4969 (mark_pseudo_regno_dead): Likewise.
4970 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
4971 functions.
4972 (mark_ref_live): Detect subword accesses and call
4973 mark_pseudo_regno_subword_live as appropriate.
4974 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
4975 (process_bb_nodes_live): Deal with object-related updates first; set
4976 and test bits in allocnos_processed to avoid computing allocno
4977 statistics more than once.
4978 (create_start_finish_chains): Iterate over objects, not allocnos.
4979 (print_object_live_ranges): New function.
4980 (print_allocno_live_ranges): Use it.
4981 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
4982 and objects_live.
4983
4984 2010-07-22 Richard Guenther <rguenther@suse.de>
4985
4986 PR lto/42451
4987 * gimple.c (gtc_next_dfs_num): New global.
4988 (struct sccs): Make value a union, add integer same_p member.
4989 (gtc_visit): New function.
4990 (gimple_types_compatible_p_1): New function, split out from ...
4991 (gimple_types_compatible_p): ... here. Start a DFS walk here.
4992 (iterative_hash_gimple_type): Adjust for sccs change.
4993
4994 2010-07-22 Martin Jambor <mjambor@suse.cz>
4995
4996 PR tree-optimization/44891
4997 * tree-sra.c: Include gimple-pretty-print.h.
4998 (replace_uses_with_default_def_ssa_name): Renamed to
4999 get_repl_default_def_ssa_name, return the new SSA name instead of
5000 replacing the old one.
5001 (sra_modify_assign): Dump a message when removing a load, if the LHS
5002 is an SSA_NAME, do not do any propagation, just set the RHS to a
5003 default definition SSA NAME, type convert if necessary.
5004 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
5005
5006 2010-07-22 Richard Guenther <rguenther@suse.de>
5007
5008 PR tree-optimization/45017
5009 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
5010 TYPE_PRECISION of integral types in addition to size.
5011
5012 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
5013
5014 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
5015 when no C library is specified.
5016
5017 2010-07-22 Martin Jambor <mjambor@suse.cz>
5018
5019 * ipa-prop.h (struct ipa_node_params): Updated comment.
5020 (struct ipa_edge_args): Likewise.
5021 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
5022
5023 2010-07-22 Martin Jambor <mjambor@suse.cz>
5024
5025 * cgraphunit.c (verify_edge_count_and_frequency): New function.
5026 (verify_cgraph_node): Verify frequencies of indirect edges.
5027 * tree-inline.c (tree_function_versioning): Update frequencies of
5028 indirect edges.
5029
5030 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5031
5032 PR target/43698
5033 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
5034 Set *arm_rev to be predicable.
5035
5036 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
5037
5038 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
5039 (LINK_COMMAND_SPEC_A): New.
5040 (DSYMUTIL): New.
5041 (DSYMUTIL_SPEC): New.
5042 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
5043 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
5044
5045 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
5046
5047 * calls.c (load_register_parameters): Move check for zero
5048 sized items so that only the call to
5049 mem_overlaps_already_clobbered_arg_p () is protected.
5050
5051 2010-07-22 Jan Hubicka <jh@suse.cz>
5052
5053 * ipa-pure-const.c (varying_state): Break out from ...
5054 (get_function_state): ... here; always return varying_state
5055 when state would be NULL otherwise.
5056 (remove_node_data): Do not free varying state.
5057
5058 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
5059
5060 PR bootstrap/44970
5061 PR middle-end/45009
5062 * postreload.c: Include "target.h".
5063 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
5064 into account.
5065 (fixup_debug_insns): Don't copy the rtx.
5066 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
5067 Don't copy when replacing. Call fixup_debug_insns in the case where
5068 we merged one add with another.
5069 (reload_combine_recognize_pattern): Fail if there aren't any uses.
5070 Try harder to determine whether we're picking a valid index register.
5071 Don't set store_ruid for an insn we're going to scan in the
5072 next iteration.
5073 (reload_combine): Remove unused code.
5074 (reload_combine_note_use): When updating use information for
5075 an old insn, ignore a use that occurs after store_ruid.
5076 * Makefile.in (postreload.o): Update dependencies.
5077
5078 * function.c (record_hard_reg_sets): Restrict the previous change
5079 to cases where the incoming nominal mode is the same as the
5080 incoming promoted mode and everything happens in MODE_INT.
5081
5082 2010-07-21 Jakub Jelinek <jakub@redhat.com>
5083
5084 PR debug/45015
5085 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
5086 ASM_OPERANDS_OUTPUT_IDX.
5087 (adjust_insn): For inline asm with multiple sets ensure first
5088 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
5089 the insn.
5090
5091 2010-07-21 Richard Henderson <rth@redhat.com>
5092
5093 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
5094 comparison for avoiding xmm register saves. Emit the xmm register
5095 saves explicitly.
5096 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
5097 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
5098 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
5099 Remove patterns and the associated splitters.
5100
5101 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
5102
5103 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
5104 and imagine parts of a complex, so that they can have the same
5105 base and fall into the same group.
5106
5107 2010-07-21 Richard Guenther <rguenther@suse.de>
5108
5109 PR lto/45018
5110 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
5111 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
5112 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
5113
5114 2010-07-21 Martin Jambor <mjambor@suse.cz>
5115
5116 PR tree-optimization/44900
5117 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
5118 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
5119
5120 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
5121
5122 PR middle-end/44738
5123 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
5124
5125 2010-07-21 Richard Guenther <rguenther@suse.de>
5126
5127 PR middle-end/45013
5128 * tree-ssa.c (useless_type_conversion_p): Dispatch to
5129 gimple_types_compatible_p only when in lto.
5130 * gimple.c (gimple_types_compatible_p): Use canonical types
5131 to speed up comparison.
5132
5133 2010-07-21 Richard Guenther <rguenther@suse.de>
5134
5135 * tree-flow.h (referenced_var): Move define ...
5136 * tree-flow-inline.h (referenced_var): ... here as an inline
5137 function. Assert here ...
5138 * tree-dfa.c (referenced_var_lookup): ... instead of here.
5139 * tree-ssa.c (maybe_optimize_var): Check if the variable
5140 is in referenced vars.
5141 (execute_update_addresses_taken): Remove old broken check.
5142 * gimple-pretty-print.c (pp_points_to_solution): Use
5143 referenced_var_lookup.
5144 * tree-into-ssa.c (dump_decl_set): Likewise.
5145
5146 2010-07-21 Jakub Jelinek <jakub@redhat.com>
5147
5148 PR debug/45003
5149 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
5150 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
5151 ZERO_EXTEND here.
5152
5153 2010-07-20 Richard Henderson <rth@redhat.com>
5154
5155 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
5156
5157 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
5158
5159 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
5160 computing the sum of the stack pointer and a large constant.
5161 * config/arm/constraints.md (M): Remove superfluous parentheses.
5162 (Pc): New constraint.
5163
5164 2010-07-20 Jakub Jelinek <jakub@redhat.com>
5165
5166 PR debug/45006
5167 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
5168 operand's type if exp is tcc_unary class tree.
5169
5170 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
5171
5172 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
5173 Reverse sense of if_then_else condition.
5174
5175 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
5176
5177 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
5178 * config/rs6000/rs6000.c (rs6000_override_options): Set
5179 rs6000_block_move_inline_limit appropriately.
5180 (expand_block_move): Use rs6000_block_move_inline_limit.
5181 * doc/invoke.texi (mblock-move-inline-limit): Document.
5182
5183 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
5184
5185 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
5186 FROM and TO. All callers changed. Don't look for tracked uses,
5187 just scan the RTL for DEBUG_INSNs and substitute.
5188 (reload_combine_recognize_pattern): Call fixup_debug_insns.
5189 (reload_combine): Ignore DEBUG_INSNs.
5190
5191 2010-07-20 Jakub Jelinek <jakub@redhat.com>
5192
5193 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
5194 depth to 8 from 5.
5195
5196 PR debug/45003
5197 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
5198 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
5199 instead of the result's type.
5200
5201 2010-07-20 Richard Guenther <rguenther@suse.de>
5202
5203 PR tree-optimization/44977
5204 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
5205 SSA form.
5206
5207 2010-07-20 Richard Guenther <rguenther@suse.de>
5208
5209 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
5210 (lto_symtab_merge_decls_2): Likewise.
5211 * gimple.h (gimple_types_compatible_p): Declare.
5212 * gimple.c (gimple_queue_type_fixup): Remove.
5213 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
5214 (gimple_compatible_complete_and_incomplete_type_p): New function.
5215 (gimple_types_compatible_p): Adjust.
5216 (gimple_register_type): Remove type fixup code.
5217 (print_gimple_types_stats): Adjust.
5218 (free_gimple_type_tables): Likewise.
5219 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
5220 * tree-ssa.c (useless_type_conversion_p): Likewise.
5221
5222 2010-07-20 Richard Guenther <rguenther@suse.de>
5223
5224 PR middle-end/44971
5225 PR middle-end/44988
5226 * tree-ssa.c (maybe_optimize_var): New function split out from ...
5227 (execute_update_addresses_taken): ... here.
5228 (non_rewritable_mem_ref_base): Likewise.
5229 (execute_update_addresses_taken): Do not iterate over all referenced
5230 vars but just all local decls and parms.
5231 Properly check call and asm arguments and rewrite call arguments.
5232
5233 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
5234
5235 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
5236 to top level.
5237 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
5238 definitions ...
5239 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
5240 New macro.
5241 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
5242
5243 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
5244
5245 * gengtype.c (start_root_entry): New function, split out from
5246 write_root. Check whether V is null and raise an error if so.
5247 (write_field_root): Check for V being null. Don't raise an error here;
5248 set V to null instead.
5249 (write_root): Update comment above function. Use start_root_entry.
5250
5251 2010-07-19 Xinliang David Li <davidxl@google.com>
5252
5253 PR testsuite/44932
5254 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
5255 def edges.
5256 (find_uninit_use): Add dump.
5257 (is_use_properly_guarded): Ditto.
5258 (warn_uninitialized_phi): Ditto.
5259 (execute_late_warn_uninitialized): Ditto.
5260
5261 2010-07-19 Richard Guenther <rguenther@suse.de>
5262
5263 PR middle-end/44941
5264 * expr.c (emit_block_move_hints): Move zero size check first.
5265 Move asserts to more useful places.
5266 * calls.c (load_register_parameters): Check for zero size.
5267
5268 2010-07-19 Richard Henderson <rth@redhat.com>
5269
5270 * tree-optimize.c (execute_all_early_local_passes): New. Change
5271 cgraph_state here ...
5272 (execute_early_local_optimizations): ... not here. Remove.
5273 (pass_early_local_passes, pass_all_early_optimizations): Update.
5274
5275 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
5276
5277 * postreload.c (reload_combine_closest_single_use): Ignore the
5278 number of uses for DEBUG_INSNs.
5279 (fixup_debug_insns): New static function.
5280 (reload_combine_recognize_const_pattern): Use it. Don't let the
5281 main loop be affected by DEBUG_INSNs.
5282 Really disallow moving adds past a jump insn.
5283 (reload_combine_recognize_pattern): Don't update use_ruid here.
5284 (reload_combine_note_use): Do it here.
5285 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
5286
5287 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
5288
5289 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
5290 of a loop.
5291 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
5292
5293 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
5294
5295 * config/i386/darwin.h: Define darwin_emit_branch_islands.
5296 (TARGET_MACHO_BRANCH_ISLANDS): New.
5297 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
5298 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
5299 default value.
5300 * config/i386/i386.c (output_pic_addr_const): Do not emit
5301 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
5302 (x86_output_mi_thunk): Adjust symbol creation.
5303 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
5304 Remove out of date comment.
5305 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
5306 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
5307 (DARWIN_GENERATE_ISLANDS): Ditto.
5308 (output_call): Do not emit branch islands unless
5309 darwin_emit_branch_islands is set.
5310 * config/darwin.c: Declare darwin_emit_branch_islands.
5311 (machopic_indirect_data_reference): Do not emit unless
5312 darwin_emit_branch_islands is set.
5313 (darwin_override_options): Set darwin_emit_branch_islands
5314 where it is needed.
5315 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
5316
5317 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5318
5319 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5320 sse_runtime, sse2_runtime.
5321
5322 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
5323
5324 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
5325 low half of a single-register SCmode return value before ORing
5326 it with the high half.
5327 * config/mips/mips16.S (MERGE_GPRf): Likewise.
5328
5329 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5330
5331 PR target/44805
5332 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
5333 on all targets.
5334
5335 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
5336
5337 PR target/42235
5338 * postreload.c (reload_cse_move2add): Return bool, true if anything.
5339 changed. All callers changed.
5340 (move2add_use_add2_insn): Likewise.
5341 (move2add_use_add3_insn): Likewise.
5342 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
5343 reload_combine.
5344 (RELOAD_COMBINE_MAX_USES): Bump to 16.
5345 (last_jump_ruid): New static variable.
5346 (struct reg_use): New members CONTAINING_MEM and RUID.
5347 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
5348 (reload_combine_split_one_ruid, reload_combine_split_ruids,
5349 reload_combine_purge_insn_uses, reload_combine_closest_single_use
5350 reload_combine_purge_reg_uses_after_ruid,
5351 reload_combine_recognize_const_pattern): New static functions.
5352 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
5353 is true for our reg and that we have available index regs.
5354 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
5355 callers changed. Use them to initialize fields in struct reg_use.
5356 (reload_combine): Initialize last_jump_ruid. Be careful when to
5357 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
5358 Call reload_combine_recognize_const_pattern.
5359 (reload_combine_note_store): Update REAL_STORE_RUID field.
5360
5361 2010-07-16 Jason Merrill <jason@redhat.com>
5362
5363 * Makefile.in (opts-common.o): Depend on options.h.
5364
5365 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
5366
5367 * tree.c (build_common_builtin_nodes): Use build_function_type_list
5368 instead of build_function_type.
5369 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
5370 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
5371
5372 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
5373
5374 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
5375 do all the work.
5376 (rs6000_emit_int_cmove): Use function pointers for insn generation.
5377 Don't force values into registers unnecessarily.
5378 (output_isel): Assert that we're not given conditions we can't handle.
5379 Delete corresponding code.
5380 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
5381 scc_comparison_operator constraint. Permit 0 for the consequent
5382 operand. Permit any GPR for the alternative operand.
5383 (isel_unsigned_<mode>): Likewise.
5384
5385 2010-07-16 Jakub Jelinek <jakub@redhat.com>
5386
5387 PR target/44942
5388 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
5389 argument to const_tree.
5390 * config/i386/i386.c (function_arg_advance): If padding needs to be
5391 inserted before argument, increment cum->words by number of padding
5392 words as well.
5393 (contains_aligned_value_p): Change argument to const_tree.
5394 (ix86_function_arg_boundary): Change second argument to const_tree.
5395
5396 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
5397
5398 PR target/42235
5399 * function.c (record_hard_reg_sets): New static function.
5400 (assign_parm_setup_reg): If an optab for extending exists and the
5401 generated code clobbbers no hard regs, emit the insn directly and
5402 create a REG_EQUIV note.
5403
5404 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5405
5406 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
5407 TREE_CHAIN.
5408 * c-typeck.c (push_init_level): Likewise.
5409 (process_init_element): Likewise.
5410
5411 2010-07-15 Anatoly Sokolov <aesok@post.ru>
5412
5413 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
5414 (integer_three_node): Add.
5415 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
5416 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
5417 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
5418 of call build_int_cst.
5419 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
5420 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
5421 (find_interesting_uses_address): Ditto.
5422 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
5423 * tree-eh.c (lower_eh_constructs_2): Ditto.
5424 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
5425 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
5426 * expmed.c (expand_divmod): Ditto.
5427 * tree-mudflap.c (mx_register_decls): Ditto.
5428 * varasm.c (array_size_for_constructor): Ditto.
5429 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
5430 * c-parser.c (c_parser_postfix_expression): Ditto.
5431
5432 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
5433
5434 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
5435 New static variables.
5436 (reload_combine_recognize_pattern): New static function, broken out
5437 of reload_combine.
5438 (reload_combine): Use it. Only initialize first_index_reg and
5439 last_index_reg once.
5440
5441 2010-07-15 Richard Henderson <rth@redhat.com>
5442
5443 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
5444 when done.
5445
5446 2010-07-15 Jan Hubicka <jh@suse.cz>
5447
5448 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
5449 comdats for broken gold.
5450 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
5451
5452 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5453
5454 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
5455
5456 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5457
5458 * tree.h (DECL_CHAIN): Define.
5459 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5460 * c-decl.c: Likewise.
5461 * c-parser.c: Likewise.
5462 * c-typeck.c: Likewise.
5463 * cfgexpand.c: Likewise.
5464 * cgraph.c: Likewise.
5465 * cgraphunit.c: Likewise.
5466 * combine.c: Likewise.
5467 * config/alpha/alpha.c: Likewise.
5468 * config/arm/arm.c: Likewise.
5469 * config/frv/frv.c: Likewise.
5470 * config/i386/i386.c: Likewise.
5471 * config/i386/winnt-cxx.c: Likewise.
5472 * config/ia64/ia64.c: Likewise.
5473 * config/iq2000/iq2000.c: Likewise.
5474 * config/mep/mep.c: Likewise.
5475 * config/mips/mips.c: Likewise.
5476 * config/pa/som.h: Likewise.
5477 * config/rs6000/rs6000.c: Likewise.
5478 * config/s390/s390.c: Likewise.
5479 * config/sh/sh.c: Likewise.
5480 * config/sh/symbian-cxx.c: Likewise.
5481 * config/sparc/sparc.c: Likewise.
5482 * config/spu/spu.c: Likewise.
5483 * config/stormy16/stormy16.c: Likewise.
5484 * config/vxworks.c: Likewise.
5485 * config/xtensa/xtensa.c: Likewise.
5486 * coverage.c: Likewise.
5487 * dbxout.c: Likewise.
5488 * dwarf2out.c: Likewise.
5489 * emit-rtl.c: Likewise.
5490 * expr.c: Likewise.
5491 * function.c: Likewise.
5492 * gimple-low.c: Likewise.
5493 * gimple-pretty-print.c: Likewise.
5494 * gimplify.c: Likewise.
5495 * integrate.c: Likewise.
5496 * ipa-inline.c: Likewise.
5497 * ipa-prop.c: Likewise.
5498 * ipa-split.c: Likewise.
5499 * ipa-struct-reorg.c: Likewise.
5500 * ipa-type-escape.c: Likewise.
5501 * langhooks.c: Likewise.
5502 * lto-cgraph.c: Likewise.
5503 * omp-low.c: Likewise.
5504 * stor-layout.c: Likewise.
5505 * tree-cfg.c: Likewise.
5506 * tree-complex.c: Likewise.
5507 * tree-dfa.c: Likewise.
5508 * tree-dump.c: Likewise.
5509 * tree-inline.c: Likewise.
5510 * tree-mudflap.c: Likewise.
5511 * tree-nested.c: Likewise.
5512 * tree-object-size.c: Likewise.
5513 * tree-pretty-print.c: Likewise.
5514 * tree-sra.c: Likewise.
5515 * tree-ssa-live.c: Likewise.
5516 * tree-ssa-loop-niter.c: Likewise.
5517 * tree-ssa-math-opts.c: Likewise.
5518 * tree-ssa-reassoc.c: Likewise.
5519 * tree-ssa-sccvn.c: Likewise.
5520 * tree-ssa-structalias.c: Likewise.
5521 * tree-tailcall.c: Likewise.
5522 * tree-vrp.c: Likewise.
5523 * tree.c: Likewise.
5524 * var-tracking.c: Likewise.
5525 * varasm.c: Likewise.
5526
5527 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5528
5529 PR target/44877
5530 * config/spu/spu.c (spu_expand_builtin_1): Allow references
5531 (as well as pointers) as argument to mask_for_load builtins.
5532
5533 2010-07-15 Richard Guenther <rguenther@suse.de>
5534
5535 PR tree-optimization/44946
5536 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
5537 with accessing only padding properly.
5538
5539 2010-07-15 Jan Hubicka <jh@suse.cz>
5540
5541 * ipa.c (function_and_variable_visibility): Variables marked as used
5542 should not be localized.
5543
5544 2010-07-15 Jan Hubicka <jh@suse.cz>
5545
5546 * cgraph.c: Include lto-streamer.h
5547 (change_decl_assembler_name): Work when assembler name hash is at place.
5548 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
5549 be sure to rename it to avoid name clash.
5550 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
5551 Localize hidden symbols only when locally defined.
5552
5553 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
5554
5555 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
5556
5557 2010-07-15 Magnus Granberg <zorry@gentoo.org>
5558 Kevin F. Quinn <kevquinn@gentoo.org>
5559
5560 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
5561 * common.opt: Add -Wtrampolines.
5562 * doc/invoke.texi: Add -Wtrampolines.
5563
5564 2010-07-15 Jie Zhang <jie@codesourcery.com>
5565
5566 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
5567 cortex_a8_issue_ls.
5568
5569 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
5570
5571 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
5572 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
5573
5574 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5575
5576 * config/spu/spu.c (reg_names): Remove prototype.
5577 (call_used_regs): Likewise.
5578
5579 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
5580
5581 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
5582 "unused" with attribute "used".
5583 (__JCR_END__): Likewise.
5584 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
5585 "used" attribute.
5586 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
5587
5588 2010-07-14 Richard Guenther <rguenther@suse.de>
5589
5590 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
5591 (maybe_fixup_decls): Likewise.
5592 (input_gimple_stmt): Do not fixup anything.
5593 * lto-streamer-out.c (output_gimple_stmt): Make sure all
5594 non-automatic variable uses are wrapped inside a MEM_REF.
5595
5596 2010-07-14 Richard Henderson <rth@redhat.com>
5597
5598 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
5599 for functions.
5600 * varasm.c (assemble_variable): Remove early exit for functions;
5601 assert that we're given a variable.
5602
5603 2010-07-14 Jie Zhang <jie@codesourcery.com>
5604
5605 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
5606 cortex_a8_default when neon_type is not none.
5607
5608 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
5609
5610 * lower-subreg.c (subreg_context): New static bitmap.
5611 (decompose_multiword_subregs): Allocate and free it.
5612 (find_decomposable_subregs): Set a bit in it for a register that
5613 occurs in a subreg that changes mode but not size.
5614 (can_decompose_p): Test it instead of non_decomposable_context.
5615
5616 2010-07-14 Richard Guenther <rguenther@suse.de>
5617
5618 PR tree-optimization/44824
5619 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
5620 is_gimple_mem_ref_addr.
5621 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
5622 non-decl_address_invariant_p addresses.
5623
5624 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
5625
5626 * reload.c (find_reloads): Revert code to penalize small register
5627 classes that was brought in with the IRA merge.
5628
5629 2010-07-14 Richard Guenther <rguenther@suse.de>
5630
5631 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
5632 as base of ARRAY_REFs.
5633
5634 2010-07-14 Richard Guenther <rguenther@suse.de>
5635
5636 PR middle-end/44930
5637 * tree-pretty-print.c (do_niy): Do not print a newline.
5638
5639 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
5640
5641 * ira-int.h (struct ira_object): New.
5642 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
5643 (struct ira_allocno): Remove members min, max,
5644 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
5645 conflict_allocnos_num and conflict_vec_p. Add new member object.
5646 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
5647 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
5648 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
5649 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
5650 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
5651 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
5652 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
5653 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
5654 an ira_object_t rather than ira_allocno_t. All uses changed.
5655 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
5656 contains a vector of ira_object_t; all uses changed.
5657 (ira_objects_num): Declare variable.
5658 (ira_create_allocno_object): Declare function.
5659 (ira_conflict_vector_profitable_p): Adjust prototype.
5660 (ira_allocate_conflict_vec): Renamed from
5661 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
5662 (ira_allocate_object_conflicts): Renamed from
5663 ira_allocate_allocno_conflicts; first arg now ira_object_t.
5664 (struct ira_object_iterator): New.
5665 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
5666 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
5667 to conflict_vec_p. All uses changed.
5668 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
5669 Changed to take into account that conflicts are now tracked for
5670 objects.
5671 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
5672 Args changed to accept ira_object_t. All uses changed.
5673 (allocnos_conflict_p): New static function.
5674 (collected_conflict_objects): Renamed from collected_allocno_objects;
5675 now a vector of ira_object_t. All uses changed.
5676 (build_conflict_bit_table): Changed to take into account that
5677 conflicts are now tracked for objects.
5678 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
5679 (print_allocno_conflicts, ira_build_conflicts): Likewise.
5680 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
5681 setup_allocno_left_conflicts_size, allocno_reload_assign,
5682 fast_allocation): Likewise.
5683 * ira-lives.c (make_hard_regno_born, make_allocno_born)
5684 process_single_reg_class_operands, process_bb_node_lives): Likewise.
5685 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
5686 Likewise.
5687 * ira-build.c (ira_objects_num): New variable.
5688 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
5689 contains a vector of ira_object_t; all uses changed.
5690 (ira_object_id_map_vec): Corresponding change.
5691 (object_pool): New static variable.
5692 (initiate_allocnos): Initialize it.
5693 (finish_allocnos): Free it.
5694 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
5695 New functions.
5696 (ira_create_allocno): Don't set members that were removed.
5697 (ira_set_allocno_cover_class): Don't change conflict hard regs.
5698 (merge_hard_reg_conflicts): Changed to take into account that
5699 conflicts are now tracked for objects.
5700 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
5701 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
5702 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
5703 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
5704 setup_min_max_conflict_allocno_ids, ): Likewise.
5705 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
5706 to ira_object_t; all callers changed.
5707 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
5708 to ira_object_t, all callers changed.
5709 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
5710 to ira_object_t, all callers changed.
5711 (conflict_check, curr_conflict_check_tick): Renamed from
5712 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
5713 changed.
5714 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
5715 arg changed to ira_object_t, all callers changed.
5716 (create_cap_allocno): Call ira_create_allocno_object.
5717 (finish_allocno): Free the corresponding object.
5718 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
5719 callers changed. Adjusted for dealing with objects.
5720 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
5721 dealing with objects.
5722 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
5723
5724 * ira-int.h (struct live_range): Rename allocno member to object
5725 and change type to ira_object_t.
5726 (struct ira_object): New member live_ranges.
5727 (struct ira_allocno): Remove member live_ranges.
5728 (ALLOCNO_LIVE_RANGES): Remove.
5729 (OBJECT_LIVE_RANGES): New macro.
5730 (ira_create_live_range, ira_copy_live_range_list,
5731 ira_merge_live_range_list, ira_live_ranges_intersect_p,
5732 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
5733 * ira-build.c (ira_create_object): Initialize live ranges here.
5734 (ira_create_allocno): Not here.
5735 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
5736 changed to ira_object_t, all callers changed.
5737 (copy_live_range): Rename from copy_allocno_live_range, all callers
5738 changed.
5739 (ira_copy_live_range_list): Rename from
5740 ira_copy_allocno_live_range_list, all callers changed.
5741 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
5742 all callers changed.
5743 (ira_live_ranges_intersect_p): Rename from
5744 ira_allocno_live_ranges_intersect_p, all callers changed.
5745 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
5746 callers changed.
5747 (ira_finish_live_range_list): Rename from
5748 ira_finish_allocno_live_range_list, all callers changed.
5749 (change_object_in_range_list): Rename from change_allocno_in_range_list,
5750 last arg changed to ira_object_t, all callers changed.
5751 (finish_allocno): Changed to expect live ranges in the allocno's object.
5752 (move_allocno_live_ranges, copy_allocno_live_ranges,
5753 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
5754 ira_flattening, ira_build): Likewise.
5755 * ira-color.c (allocnos_have_intersected_live_ranges_p,
5756 slot_coalesced_allocno_live_ranges_intersect,
5757 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
5758 * ira-conflicts.c (build_conflict_bit_table): Likewise.
5759 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
5760 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
5761 make_allocno_dead, create_start_finish_chains,
5762 remove_some_program_points_and_update_live_ranges,
5763 ira_debug_live_range_list): Likewise.
5764
5765 * ira-int.h (ira_object_conflict_iterator): Rename from
5766 ira_allocno_conflict_iterator.
5767 (ira_object_conflict_iter_init): Rename from
5768 ira_allocno_conflict_iter_init, second arg changed to
5769 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
5770 FOR_EACH_ALLOCNO_CONFLICT.
5771 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
5772 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
5773 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
5774 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5775
5776 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
5777
5778 PR other/44874
5779 * tree-dump.c (dump_options): Add enumerate_locals entry.
5780 Add TDF_NOID exclusion to all entry.
5781 * tree-dump.h (dump_enumerated_decls): Declare.
5782 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
5783 Don't display type uid.
5784 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
5785 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
5786 * tree-ssa-live.c: Include gimple.h.
5787 (numbered_tree_d): New struct.
5788 (numbered_tree): New typedef.
5789 (DEF_VEC_O (numbered_tree): New.
5790 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
5791 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
5792 (dump_enumerated_decls): Likewise.
5793 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
5794 debug info and flag_dump_final_insns, call dump_enumerated_decls.
5795 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
5796 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
5797
5798 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
5799
5800 * expmed.h (MAX_BITS_PER_WORD): Move to...
5801 * defaults.h (MAX_BITS_PER_WORD): ...here.
5802
5803 2010-07-13 DJ Delorie <dj@redhat.com>
5804
5805 * config/h8300/h8300.c (h8300_init_once): Default to
5806 -fstrict_volatile_bitfields.
5807
5808 * config/sh/sh.c (sh_override_options): Default to
5809 -fstrict_volatile_bitfields.
5810
5811 * config/rx/rx.c (rx_option_override): New.
5812
5813 * config/m32c/m32c.c (m32c_override_options): Default to
5814 -fstrict_volatile_bitfields.
5815
5816 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
5817
5818 * tree.h (build_function_call_expr): Delete.
5819 (build_call_expr_loc_array): New function.
5820 (build_call_expr_loc_vec): New function.
5821 * tree-flow.h (struct omp_region): Change type of ws_args field
5822 to a VEC.
5823 * builtins.c (build_function_call_expr): Delete.
5824 (build_call_expr_loc_array): New function.
5825 (build_call_expr_loc): Call it. Use XALLOCAVEC.
5826 (build_call_expr): Likewise.
5827 (build_call_expr_loc_vec): New function.
5828 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
5829 build_function_call_expr.
5830 * expr.c (emutls_var_address): Likewise.
5831 * varasm.c (emutls_common_1): Likewise.
5832 * omp-low.c (expand_omp_atomic_mutex): Likewise.
5833 (expand_omp_taskreg): Adjust for new type of region->ws_args.
5834 (get_ws_args_for): Return a VEC instead of a tree.
5835 (expand_parallel_call): Call build_call_expr_loc_vec instead of
5836 build_function_call_expr.
5837 * stor-layout.c (self_referential_size): Likewise.
5838
5839 2010-07-13 Jakub Jelinek <jakub@redhat.com>
5840
5841 PR testsuite/44701
5842 * recog.c (constrain_operands): Allow side-effects in memory
5843 operands if either < or > constraint is used, rather than if
5844 both < and > is used.
5845
5846 2010-07-13 Richard Guenther <rguenther@suse.de>
5847
5848 PR middle-end/44911
5849 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
5850 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
5851 without name.
5852
5853 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
5854
5855 PR target/44761
5856 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
5857 to variable emited.
5858 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
5859 * config/sh/sh.md (symGOT_load): Likewise.
5860 (symDTPOFF2reg): Likewise.
5861 (symTPOFF2reg): Likewise.
5862
5863 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5864
5865 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
5866 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
5867
5868 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5869
5870 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
5871 explanation.
5872 Find ucontext_t * on Solaris 11.
5873 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
5874 Handle new Solaris 11 __sighndlr patterns.
5875
5876 2010-07-13 Jakub Jelinek <jakub@redhat.com>
5877
5878 PR debug/44901
5879 * vec.h (VEC_block_remove): Fix comment.
5880 * tree-ssa-live.c (remove_unused_locals): Don't use
5881 VEC_unordered_remove on local_decls, instead replace a single
5882 vector element in each iteration if at least one element had
5883 to be removed and VEC_truncate at the end.
5884 * omp-low.c (expand_omp_taskreg): Likewise.
5885
5886 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
5887
5888 * c-decl.c (finish_function): Fix typo in comment.
5889
5890 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
5891
5892 PR bootstrap/44921
5893 * postreload.c (move2add_use_add3_insn): Silence gcc warning
5894 on min_regno.
5895
5896 2010-07-12 Jakub Jelinek <jakub@redhat.com>
5897
5898 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
5899 (simplify_stmt_using_ranges): Use it.
5900
5901 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5902
5903 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
5904 member. Do not mark as GTY(()).
5905 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
5906 (spu_builtin_decls): New static variable.
5907 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
5908 (spu_init_builtins): Likewise.
5909 (spu_builtin_mul_widen_even): Likewise.
5910 (spu_builtin_mul_widen_odd): Likewise.
5911 (spu_builtin_mask_for_load): Likewise.
5912 (spu_builtin_vec_perm): Likewise.
5913 * config/spu/spu-c.c: Include "target.h".
5914 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
5915 of using spu_builtins[].fndecl.
5916
5917 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
5918
5919 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
5920 imply -minterlink-mips16.
5921
5922 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
5923
5924 * config/mips/mips.h (mips16_globals): Declare.
5925 (SWITCHABLE_TARGET): Define.
5926 * config/mips/mips.c: Include target-globals.h.
5927 (mips16_globals): New variable.
5928 (mips_set_mips16_mode): Use save_target_globals and
5929 restore_target_globals instead of target_reinit.
5930
5931 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
5932
5933 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
5934 to say that the function can be called more than once.
5935 * target-globals.c (save_target_globals): Call init_reg_sets.
5936
5937 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
5938
5939 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
5940 * bb-reorder.h: New file.
5941 * bb-reorder.c (default_target_bb_reorder): New variable.
5942 (this_target_bb_reorder): New conditional variable.
5943 (uncond_jump_length): Redefine as a macro.
5944 * target-globals.h (this_target_bb_reorder): Declare.
5945 (target_globals): Add a bb_reorder field.
5946 (restore_target_globals): Copy the bb_reorder field to
5947 this_target_bb-reorder.
5948 * target-globals.c: Include bb-reorder.h.
5949 (default_target_globals): Initialize the bb_reorder field.
5950 (save_target_globals): Likewise.
5951
5952 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
5953
5954 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
5955 * gcse.h: New file.
5956 * gcse.c: Include gcse.h.
5957 (default_target_gcse): New variable.
5958 (this_target_gcse): New conditional variable.
5959 (can_copy): Redefine as a macro.
5960 (can_copy_init_p): New macro.
5961 (can_copy_p): Remove can_copy_init_p.
5962 * target-globals.h (this_target_gcse): Declare.
5963 (target_globals): Add a gcse field.
5964 (restore_target_globals): Copy the gcse field to this_target_gcse.
5965 * target-globals.c: Include gcse.h.
5966 (default_target_globals): Initialize the gcse field.
5967 (save_target_globals): Likewise.
5968
5969 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
5970
5971 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
5972 and x_ira_prohibited_mode_move_regs_initialized_p.
5973 (ira_prohibited_mode_move_regs): Redefine as a macro.
5974 * ira.c (ira_prohibited_mode_move_regs): Delete.
5975 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
5976
5977 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
5978
5979 * reload.h (target_reload): Add x_cached_reg_save_code and
5980 x_cached_reg_restore_code.
5981 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
5982 Redefine as macros.
5983
5984 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
5985
5986 * Makefile.in (target-globals.o): Depend on builtins.h.
5987 * builtins.h: New file.
5988 * builtins.c: Include builtins.h.
5989 (default_target_builtins): New variable.
5990 (this_target_builtins): New conditional variable.
5991 (apply_args_mode, apply_result_mode): Redefine as macros.
5992 * target-globals.h (this_target_builtins): Declare.
5993 (target_globals): Add a builtins field.
5994 (restore_target_globals): Copy the builtins field to
5995 this_target_builtins.
5996 * target-globals.c: Include builtins.h.
5997 (default_target_globals): Initialize the builtins field.
5998 (save_target_globals): Likewise.
5999
6000 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
6001
6002 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
6003 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
6004 from expmed.c.
6005 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
6006 (alg_hash, alg_hash_used_p): New macros.
6007 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
6008 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
6009 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
6010
6011 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
6012
6013 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
6014 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
6015 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
6016 (this_op_costs, costs_classes): Redefine as macros.
6017 (record_reg_classes): Don't take op_costs as a parameter.
6018 (record_operand_costs): Likewise. Update calls to record_reg_classes.
6019 (scan_one_insn): Update call to record_operand_costs.
6020
6021 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
6022
6023 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
6024 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
6025 (target_ira_int): New structure.
6026 (default_target_ira_int): Declare.
6027 (this_target_ira_int): Declare as a variable or define as a macro.
6028 (ira_reg_mode_hard_regset, ira_register_move_cost)
6029 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
6030 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
6031 (prohibited_class_mode_regs, ira_important_classes_num)
6032 (ira_important_classes, ira_reg_class_intersect)
6033 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
6034 (ira_reg_class_union): Redefine as macros.
6035 * ira.h (target_ira): New structure.
6036 (default_target_ira): Declare.
6037 (this_target_ira): Declare as a variable or define as a macro.
6038 (ira_available_class_regs, ira_hard_regno_cover_class)
6039 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
6040 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
6041 (ira_class_hard_regs_num): Redefine as macros.
6042 * ira.c (default_target_ira, default_target_ira_int): New variables.
6043 (this_target_ira, this_target_ira_int): New conditional variables.
6044 (ira_reg_mode_hard_regset, ira_memory_move_cost)
6045 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
6046 (ira_class_subset_p): Delete.
6047 (no_unit_alloc_regs): Redefine as a macro.
6048 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
6049 (ira_class_hard_regs_num, ira_class_hard_reg_index)
6050 (ira_available_class_regs): Delete.
6051 (alloc_reg_class_subclasses): Redefine as a macro.
6052 (ira_reg_class_cover_size, ira_reg_class_cover)
6053 (ira_important_classes_num, ira_important_classes)
6054 (ira_important_class_nums, ira_class_translate): Delete.
6055 (cover_class_order): Document the variable's lifetime.
6056 (reorder_important_classes): Don't set ira_important_class_nums.
6057 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
6058 (ira_reg_class_super_classes, ira_reg_class_union)
6059 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
6060 Delete.
6061 (setup_reg_class_nregs): Don't set ira_max_regs.
6062 (prohibited_class_mode_regs): Delete.
6063 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
6064 (target_globals): Add ira and ira_int fields.
6065 (restore_target_globals): Copy the ira field to this_target_ira
6066 and the ira_int field to this_target_ira_int.
6067 * target-globals.c: Include ira-int.h.
6068 (default_target_globals): Initialize the ira and ira_int fields.
6069 (save_target_globals): Likewise.
6070
6071 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
6072
6073 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
6074 * cfgloop.h (target_cfgloop): New structure.
6075 (default_target_cfgloop): Declare.
6076 (this_target_cfgloop): Declare as a variable or define as a macro.
6077 (target_avail_regs, target_clobbered_regs, target_res_regs)
6078 (target_reg_cost, target_spill_cost): Redefine as macros.
6079 * cfgloopanal.c (default_target_cfgloop): New variable.
6080 (this_target_cfgloop): New conditional variable.
6081 (target_avail_regs, target_clobbered_regs, target_res_regs)
6082 (target_reg_cost, target_spill_cost): Delete.
6083 * target-globals.h (this_target_cfgloop): Declare.
6084 (target_globals): Add a cfgloop field.
6085 (restore_target_globals): Copy the cfgloop field to
6086 this_target_cfgloop.
6087 * target-globals.c: Include cfgloop.h.
6088 (default_target_globals): Initialize the cfgloop field.
6089 (save_target_globals): Likewise.
6090
6091 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
6092
6093 * regs.h (target_regs): Add x_direct_load, x_direct_store and
6094 x_float_extend_from_mem.
6095 (direct_load, direct_store, float_extend_from_mem): New macros.
6096 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
6097
6098 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
6099
6100 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
6101 (target-globals.o): Depend on $(LIBFUNCS_H).
6102 * libfuncs.h: Include hashtab.h.
6103 (libfunc_entry): Moved from optabs.c.
6104 (target_libfuncs): New structure.
6105 (default_target_libfuncs): Declare.
6106 (this_target_libfuncs): Declare as a variable or define as a macro.
6107 (libfunc_table): Redefine as a macro.
6108 * optabs.c (default_target_libfuncs): New variable.
6109 (this_target_libfuncs): New conditional variable.
6110 (libfunc_table): Delete.
6111 (libfunc_entry): Moved to optabs.h.
6112 (libfunc_hash): Redefine as a macro.
6113 (hash_libfunc, eq_libfunc): Fix comments.
6114 (init_optabs): Use libfunc_hash to detect cases where the function
6115 has already been called. Clear the hash table instead of
6116 recreating it.
6117 * target-globals.h (this_target_libfuncs): Declare.
6118 (target_globals): Add a libfuncs field.
6119 (restore_target_globals): Copy the libfuncs field to
6120 this_target_libfuncs.
6121 * target-globals.c: Include libfuncs.h.
6122 (default_target_globals): Initialize the libfuncs field.
6123 (save_target_globals): Likewise.
6124
6125 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
6126
6127 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
6128 in all dependency lists.
6129
6130 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
6131
6132 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
6133 * optabs.h (target_optabs): New structure.
6134 (default_target_optabs): Declare.
6135 (this_target_optabs): Declare as a variable or define as a macro.
6136 (optab_table, convert_optab_table, direct_optab_table): Redefine
6137 as macros.
6138 * optabs.c (default_target_optabs): New variable.
6139 (this_target_optabs): New conditional variable.
6140 (optab_table, convert_optab_table, direct_optab_table): Delete.
6141 * target-globals.h (this_target_optabs): Declare.
6142 (target_globals): Add a optabs field.
6143 (restore_target_globals): Copy the optabs field to
6144 this_target_optabs.
6145 * target-globals.c: Include expr.h and optabs.h.
6146 (default_target_globals): Initialize the optabs field.
6147 (save_target_globals): Likewise.
6148
6149 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
6150
6151 * flags.h (target_flagstate): Add x_flag_excess_precision.
6152 (flag_excess_precision): Redefine as a macro.
6153 * toplev.c (flag_excess_precision): Delete.
6154
6155 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
6156
6157 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
6158 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
6159 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
6160 (no_caller_save_reg_set): Redefine as a macro.
6161 * reload.h (target_reload): Add x_caller_save_initialized_p and
6162 x_regno_save_mode.
6163 (caller_save_initialized_p): Redefine as a macro.
6164 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
6165 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
6166 (regno_save_mode): Redefine as a macro.
6167
6168 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
6169
6170 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
6171 * expmed.h: New file.
6172 * expmed.c (default_target_costs): New variable.
6173 (this_target_costs): New conditional variable.
6174 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
6175 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
6176 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
6177 * target-globals.h (this_target_expmed): Declare.
6178 (target_globals): Add a expmed field.
6179 (restore_target_globals): Copy the expmed field to
6180 this_target_expmed.
6181 * target-globals.c: Include expmed.h.
6182 (default_target_globals): Initialize the expmed field.
6183 (save_target_globals): Likewise.
6184
6185 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
6186
6187 * Makefile.in (target-globals.o): Depend on reload.h.
6188 * reload.h (target_reload): New structure.
6189 (default_target_reload): Declare.
6190 (this_target_reload): Declare as a variable or define as a macro.
6191 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
6192 * reload1.c (default_target_reload): New variable
6193 (this_target_reload): New conditional variable.
6194 (indirect_symref_ok, double_reg_address_ok): Delete.
6195 (spill_indirect_levels): Redefine as a macro.
6196 * target-globals.h (this_target_reload): Declare.
6197 (target_globals): Add a reload field.
6198 (restore_target_globals): Copy the reload field to
6199 this_target_reload.
6200 * target-globals.c: Include hard-reg-set.h.
6201 (default_target_globals): Initialize the reload field.
6202 (save_target_globals): Likewise.
6203
6204 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
6205
6206 * rtl.h (target_rtl): Add x_static_reg_base_value.
6207 * alias.c (static_reg_base_value): Redefine as a macro.
6208
6209 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
6210
6211 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
6212 (GTFILES): Remove reginfo.c.
6213 * rtl.h (target_rtl): Add x_top_of_stack.
6214 (top_of_stack): New macro.
6215 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
6216 (top_of_stack): Delete.
6217
6218 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
6219
6220 * regs.h (target_regs): Add x_hard_regs_of_mode,
6221 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
6222 x_may_move_out_cost and x_last_mode_for_init_move_cost.
6223 (have_regs_of_mode, contains_reg_of_mode, move_cost)
6224 (may_move_in_cost, may_move_out_cost): Redefine as macros.
6225 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
6226 (may_move_in_cost, may_move_out_cost): Delete.
6227 (last_mode_for_init_move_cost): Redefine as a macro.
6228
6229 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
6230
6231 * hard-reg-set.h (target_hard_regs): New structure.
6232 (default_target_hard_regs): Declare.
6233 (this_target_hard_regs): Declare as a variable or define as a macro.
6234 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
6235 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
6236 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
6237 (reg_class_size, reg_class_subclasses, reg_class_subunion)
6238 (reg_class_superunion, reg_names): Redefine as macros.
6239 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
6240 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
6241 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
6242 (reg_class_contents, reg_class_size, reg_class_subclasses)
6243 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
6244 (default_target_hard_regs): New variable
6245 (this_target_hard_regs, initial_call_really_used_regs)
6246 (initial_reg_alloc_order): New conditional variables.
6247 (initial_reg_names): New variable.
6248 (init_reg_sets): Assert that initial_call_really_used_regs,
6249 initial_reg_alloc_order and initial_reg_names
6250 are all the same size as their variable counterparts. Use them to
6251 initialize those counterparts.
6252 * target-globals.h (this_target_hard_regs): Declare.
6253 (target_globals): Add a hard_regs field.
6254 (restore_target_globals): Copy the hard_regs field to
6255 this_target_hard_regs.
6256 * target-globals.c: Include hard-reg-set.h.
6257 (default_target_globals): Initialize the hard_regs field.
6258 (save_target_globals): Likewise.
6259
6260 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
6261
6262 * Makefile.in (target-globals.o): Depend on $(RTL_H).
6263 * rtl.h (target_rtl): New structure.
6264 (default_target_rtl): Declare.
6265 (this_target_rtl): Declare as a variable or define as a macro.
6266 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
6267 Redefine as macros.
6268 * emit-rtl.c (default_target_rtl): New variable.
6269 (this_target_rtl): New conditional variable.
6270 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
6271 (return_address_pointer_rtx): Delete.
6272 (initial_regno_reg_rtx): New macro.
6273 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
6274 (init_emit_regs): Likewise.
6275 * target-globals.h (this_target_rtl): Declare.
6276 (target_globals): Add a rtl field.
6277 (restore_target_globals): Copy the rtl field to this_target_rtl.
6278 * target-globals.c: Include rtl.h.
6279 (default_target_globals): Initialize the rtl field.
6280 (save_target_globals): Likewise.
6281
6282 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
6283
6284 * Makefile.in (target-globals.o): Depend on $(REGS_H).
6285 * regs.h (target_reg_modes): New structure.
6286 (default_target_reg_modes): Declare.
6287 (this_target_reg_modes): Declare as a variable or define as a macro.
6288 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
6289 * reginfo.c (default_target_reg_modes): New variable.
6290 (this_target_reg_modes): New conditional variable.
6291 (hard_regno_nregs, reg_raw_mode): Delete.
6292 * target-globals.h (this_target_regs): Declare.
6293 (target_globals): Add a regs field.
6294 (restore_target_globals): Copy the regs field to this_target_regs.
6295 * target-globals.c: Include regs.h.
6296 (default_target_globals): Initialize the regs field.
6297 (save_target_globals): Likewise.
6298
6299 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
6300
6301 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
6302 * doc/tm.texi: Regenerate.
6303 * Makefile.in (OBJS-common): Add target-globals.o.
6304 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
6305 and target-globals.h.
6306 (target-globals.o): New rule.
6307 (GTFILES): Include $(srcdir)/target-globals.h.
6308 * defaults.h (SWITCHABLE_TARGET): Define.
6309 * gengtype.c (open_base_files): Add target-globals.h to the
6310 list of includes.
6311 * target-globals.h: New file.
6312 * target-globals.c: Likewise.
6313
6314 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
6315 * flags.h (target_flag_state): New structure.
6316 (default_target_flag_state): Declare.
6317 (this_target_flag_state): Declare as a variable or define as a macro.
6318 (align_loops_log): Redefine as a macro.
6319 (align_loops_max_skip, align_jumps_log): Likewise.
6320 (align_jumps_max_skip, align_labels_log): Likewise.
6321 (align_labels_max_skip, align_functions_log): Likewise.
6322 * toplev.c (default_target_flag_state): New variable.
6323 (this_target_flag_state): New conditional variable.
6324 (align_loops_log): Delete.
6325 (align_loops_max_skip, align_jumps_log): Likewise.
6326 (align_jumps_max_skip, align_labels_log): Likewise.
6327 (align_labels_max_skip, align_functions_log): Likewise.
6328 * target-globals.h (this_target_flag_state): Declare.
6329 (target_globals): Add a flag_state field.
6330 (restore_target_globals): Copy the flag_state field to
6331 this_target_flag_state.
6332 * target-globals.c: Include flags.h.
6333 (default_target_globals): Initialize the flag_state field.
6334 (save_target_globals): Likewise.
6335
6336 2010-07-12 Jie Zhang <jie@codesourcery.com>
6337
6338 * postreload.c (reg_symbol_ref[]): New.
6339 (move2add_use_add2_insn): New.
6340 (move2add_use_add3_insn): New.
6341 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
6342 (move2add_note_store): Likewise.
6343
6344 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
6345
6346 PR rtl-optimization/44752
6347 * genautomata.c (main): Don't emit an empty file even if there
6348 is no automaton.
6349
6350 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6351
6352 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
6353 ix86_solaris_return_in_memory.
6354 * config/i386-protos.h: Reflect this.
6355 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
6356 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
6357 Move ...
6358 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
6359
6360 2010-07-12 Jie Zhang <jie@codesourcery.com>
6361
6362 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
6363 align the stack when it's going to be saved.
6364
6365 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6366
6367 PR pch/14940
6368 * config/host-solaris.c (mmap_fixed): New function.
6369 (sol_gt_pch_get_address): Use it.
6370 (sol_gt_pch_use_address): Likewise.
6371
6372 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6373
6374 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
6375 pentiumpro on Solaris 8 and 9/x86.
6376 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
6377 Document SSE/SSE2 support.
6378 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
6379
6380 2010-07-12 Andi Kleen <ak@linux.intel.com>
6381
6382 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
6383 instead of gcc_assert to print better error message for multiple
6384 prevailing defs.
6385
6386 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
6387
6388 * config/i386/i386.c (ix86_asm_output_function_label): Change format
6389 string placeholder from 0x%x to %#x.
6390 (ix86_code_end): Use putc to output '\n'.
6391 (ix86_print_operand) <case ';'>: Use putc to output ';'.
6392
6393 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
6394
6395 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
6396 in directive -export.
6397
6398 2010-07-10 Anatoly Sokolov <aesok@post.ru>
6399
6400 * reginfo.h (reg_classes_intersect_p): Change arguments type to
6401 reg_class_t.
6402 * rtl.h (reg_classes_intersect_p): Adjust prototype.
6403
6404 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6405 Remove macros.
6406 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
6407 rs6000_memory_move_cost): Remove
6408 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
6409 TARGET_MEMORY_MOVE_COST): Define.
6410 (rs6000_register_move_cost): Make static. Change arguments type from
6411 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
6412 (rs6000_memory_move_cost): Make static. Change arguments type from
6413 'enum reg_class' to reg_class_t.
6414
6415 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
6416
6417 PR middle-end/42505
6418 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
6419 lookup code into....
6420 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
6421 new functions.
6422 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
6423 * cfgloopanal.c (target_clobbered_regs): Define.
6424 (init_set_costs): Initialize target_clobbered_regs.
6425 (estimate_reg_pressure_cost): Add call_p argument. When true,
6426 adjust the number of available registers to exclude the
6427 call-clobbered registers.
6428 * cfgloop.h (target_clobbered_regs): Declare.
6429 (estimate_reg_pressure_cost): Adjust declaration.
6430 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
6431 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
6432 (determine_set_costs): Dump target_clobbered_regs.
6433 (loop_body_includes_call): New function.
6434 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
6435 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
6436 call_p flag through.
6437 (best_gain_for_invariant): Likewise.
6438 (find_invariants_to_move): Likewise.
6439 (move_single_loop_invariants): Likewise, using already-computed
6440 has_call field.
6441
6442 2010-07-10 Richard Guenther <rguenther@suse.de>
6443 Joern Rennecke <joern.rennecke@embecosm.com>
6444
6445 PR debug/44832
6446 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
6447 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
6448 unless they have DECL_IGNORED_P set.
6449
6450 2010-07-10 Richard Guenther <rguenther@suse.de>
6451
6452 PR lto/44889
6453 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
6454 helper function.
6455 (gimple_types_compatible_p): Similar to pointed-to
6456 types allow and merge a mix of complete and incomplete aggregate.
6457 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
6458 (iterative_hash_gimple_type): Adjust for that.
6459
6460 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
6461
6462 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
6463
6464 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
6465
6466 PR objc/44140
6467 * config/darwin.c (output_objc_section_asm_op): Save and restore
6468 section when outputting ObjC section list.
6469
6470 2010-07-09 Jan Hubicka <jh@suse.cz>
6471
6472 * lto-streamer-out.c (produce_symtab): Do not write alias
6473 cgraph/varpool nodes.
6474
6475 2010-07-09 Jan Hubicka <jh@suse.cz>
6476
6477 * tree-inline.c (declare_return_variable): Fix ICE while
6478 inlining DECL_BY_VALUE function not in SSA form
6479
6480 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
6481
6482 PR tree-optimization/44576
6483 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
6484 New. Pull out from is_loop_prefetching_profitable to implement
6485 the trip count to ahead ratio heuristic.
6486 (mem_ref_count_reasonable_p): New. Pull out from
6487 is_loop_prefetching_profitable to implement the instruction to
6488 memory reference ratio heuristic. Also consider not reasonable if
6489 the memory reference count is above a threshold (to avoid
6490 explosive compilation time.
6491 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
6492 is_loop_prefetching_profitable to implement the instruction to
6493 prefetch ratio heuristic.
6494 (is_loop_prefetching_profitable): Removed.
6495 (loop_prefetch_arrays): Distribute the cost analysis across the
6496 function to allow early exit of the prefetch analysis.
6497 is_loop_prefetching_profitable is splitted into three functions,
6498 with each one called as early as possible.
6499 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
6500 number of memory references in a loop is considered too many.
6501
6502 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
6503
6504 * reload.c (find_reloads): Don't clear badop if we have a winreg
6505 alternative, but not win, and the class only has fixed regs.
6506 * hard-reg-set.h (class_only_fixed_regs): Declare.
6507 * reginfo.c (class_only_fixed_regs): New array.
6508 (init_reg_sets_1): Initialize it.
6509 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
6510 discourage alternatives using the stack pointer.
6511
6512 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
6513
6514 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
6515
6516 * config/arm/arm.md (cbranchqi4): Fix array size.
6517 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
6518 calculating length.
6519
6520 2010-07-09 Richard Guenther <rguenther@suse.de>
6521
6522 * gimple.c (struct type_fixup_s): New struct and VEC type.
6523 (gimple_register_type_fixups): New static global.
6524 (gimple_queue_type_fixup): New function.
6525 (gimple_types_compatible_p): Queue type fixups instead of
6526 applying them here.
6527 (gimple_register_type): Apply queued fixups for the
6528 canonical type. Empty the type fixup queue.
6529
6530 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
6531
6532 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
6533 * configure: Regenerate.
6534 * config.in: Ditto.
6535
6536 2010-07-09 Jakub Jelinek <jakub@redhat.com>
6537 Denys Vlasenko <dvlasenk@redhat.com>
6538 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6539
6540 PR tree-optimization/28632
6541 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
6542 (extract_range_from_binary_expr): Further optimize
6543 BIT_AND_EXPR and BIT_IOR_EXPR.
6544
6545 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
6546
6547 * tree-if-conv.c (fold_or_predicates): New.
6548 (add_to_predicate_list): Call it.
6549
6550 2010-07-09 Richard Guenther <rguenther@suse.de>
6551
6552 PR middle-end/44890
6553 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
6554 if base is a pointer.
6555 * tree-cfg.c (verify_expr): Update MEM_REF checking.
6556
6557 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
6558
6559 PR target/44877
6560 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
6561 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
6562 builtin mask for load/store builtins.
6563
6564 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
6565
6566 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
6567 for "lock addl".
6568 * configure: Regenerate.
6569 * config/i386/i386.c (ix86_print_operand) <case ';'>:
6570 Remove TARGET_MACHO.
6571
6572 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
6573
6574 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
6575 default ISA flags.
6576 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
6577
6578 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
6579
6580 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
6581
6582 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
6583
6584 * config/picochip/picochip.md (commsTestPort): Emit more
6585 efficient sequence for tstport instruction.
6586
6587 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
6588
6589 * config/i386/i386.c (ix86_veclib_handler): Make static.
6590
6591 2010-07-09 Richard Guenther <rguenther@suse.de>
6592
6593 PR tree-optimization/44852
6594 * tree-ssa-alias.c: Include toplev.h for exact_log2.
6595 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
6596 in MEM_REF.
6597 (indirect_refs_may_alias_p): Likewise.
6598 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
6599
6600 2010-07-09 Richard Guenther <rguenther@suse.de>
6601
6602 PR tree-optimization/44882
6603 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
6604 sets do conflict.
6605 (vectorizable_load): Likewise.
6606
6607 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
6608
6609 PR target/40657
6610 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
6611 All callers changed.
6612 Handle the case when we're called for the epilogue.
6613 (thumb_unexpanded_epilogue): Use it.
6614 (thumb1_expand_epilogue): Likewise.
6615
6616 2010-07-09 Jakub Jelinek <jakub@redhat.com>
6617
6618 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
6619 both ranges are range_int_cst_p with non-negative minimum,
6620 try harder to derive smaller range.
6621
6622 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6623
6624 * genrecog.c: Include diagnostic-core.h before toplev.h.
6625 * genoutput.c: Likewise.
6626 * genextract.c: Likewise.
6627 * genautomata.c: Likewise.
6628 * genemit.c: Likewise.
6629 * genpeep.c: Likewise.
6630 * genattrtab.c: Likewise.
6631 * genconditions.c: Likewise.
6632 * genpreds.c: Likewise.
6633
6634 2010-07-08 Andi Kleen <ak@linux.intel.com>
6635
6636 * lto-section-in.c (lto_section_name): Add missing comma.
6637
6638 2010-07-08 Anatoly Sokolov <aesok@post.ru>
6639
6640 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
6641 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
6642 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
6643 (ia64_override_options): Rename to...
6644 (ia64_option_override): ... this one. Make static.
6645
6646 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
6647
6648 PR middle-end/44843
6649 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
6650 pointed-to type of the offset in a MEM_REF to compute the alignment.
6651
6652 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
6653
6654 * final.c (final_scan_insn): Replace
6655 TARGET_UNWIND_INFO macro check by unwind_emit
6656 hook NULL check.
6657 * targhooks.c (default_unwind_emit): Removed.
6658 * targhooks.h (default_unwind_emit): Likewise.
6659 * target.def (unwind_emit): Set default value to NULL.
6660
6661 * config/i386/i386-protos.h (ix86_asm_output_function_label):
6662 New prototype.
6663 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
6664 for NULL fntype argument and allow 64-bit targets.
6665 (ix86_asm_output_function_label): New function.
6666 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
6667 (ix86_handle_fndecl_attribute): Likewise.
6668 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
6669 * doc/doc/tm.texi: Regenerated.
6670 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
6671 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
6672 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
6673 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
6674 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
6675 * config/elfos.h: Likewise.
6676 * config/i386/cygming.h: Likewise.
6677 * config/netbsd-aout.h: Likewise.
6678 * config/openbsd.h: Likewise.
6679 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
6680 by ix86_asm_output_function_label function call.
6681 * varasm.c (assemble_start_function): Use
6682 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
6683
6684 2010-07-08 Jan Hubicka <jh@suse.cz>
6685
6686 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
6687 New function.
6688 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
6689 Declare.
6690 * ipa-cp.c (ipcp_estimate_growth): Use it.
6691 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
6692 Likewise.
6693
6694 2010-07-08 Jan Hubicka <jh@suse.cz>
6695
6696 * tree-inline.c (declare_return_variable): Allocate annotation for new
6697 temporary.
6698
6699 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
6700
6701 PR tree-optimization/44710
6702 * tree-if-conv.c (parse_predicate): New.
6703 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
6704 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
6705
6706 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
6707
6708 * common.opt (ftree-loop-if-convert): New flag.
6709 * doc/invoke.texi (ftree-loop-if-convert): Documented.
6710 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
6711 when flag_tree_loop_if_convert is set.
6712
6713 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
6714
6715 * config/i386/i386.c: Use short syntax for function calls
6716 through function pointers.
6717 * config/i386/i386.md: Ditto.
6718
6719 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
6720
6721 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
6722
6723 2010-07-08 Richard Guenther <rguenther@suse.de>
6724
6725 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
6726 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
6727
6728 2010-07-08 Jakub Jelinek <jakub@redhat.com>
6729
6730 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
6731 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
6732 (loc_list_from_tree): Likewise.
6733 (output_loc_operands): Handle outputting DW_OP_const[48]u
6734 with loc->dtprel set.
6735 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
6736
6737 2010-07-08 Jan Hubicka <jh@suse.cz>
6738
6739 * ipa.c: Include pointer-set.h
6740 (cgraph_externally_visible_p): New attribute ALIASED;
6741 when in LTO, hidden symbols are local unless they are aliased.
6742 (function_and_variable_visibility): Compute aliased nodes;
6743 handle LTO and hidden symbol on functions and vars.
6744 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
6745 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
6746
6747 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
6748
6749 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
6750 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6751 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6752 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6753 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6754 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
6755 (ix86_gen_probe_stack_range): Likewise.
6756 (override_options): Set them.
6757 (ix86_target_stack_probe): New function.
6758 (ix86_compute_frame_layout): Force use of push instructions to
6759 save registers if stack checking with probes is enabled.
6760 (get_scratch_register_on_entry): New function.
6761 (release_scratch_register_on_entry): Likewise.
6762 (ix86_adjust_stack_and_probe): Likewise.
6763 (output_adjust_stack_and_probe): Likewise.
6764 (ix86_emit_probe_stack_range): Likewise.
6765 (output_probe_stack_range): Likewise.
6766 (ix86_expand_prologue): Emit stack checking code if static built-in
6767 stack checking is enabled.
6768 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
6769 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
6770 (output_adjust_stack_and_probe): Likewise.
6771 (output_probe_stack_range): Likewise.
6772 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
6773 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
6774 TARGET_STACK_PROBE.
6775 (allocate_stack_worker_64): Likewise.
6776 (allocate_stack): Likewise.
6777 (adjust_stack_and_probe): New insn.
6778 (probe_stack_range): Likewise.
6779
6780 2010-07-08 Richard Guenther <rguenther@suse.de>
6781
6782 PR tree-optimization/44831
6783 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
6784 a MEM_REF preserving TBAA info of the original dereference.
6785 Dereference the original pointer if the address is not invariant.
6786 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
6787 at least one invariant address that we are going to dereference.
6788
6789 2010-07-08 Richard Guenther <rguenther@suse.de>
6790
6791 PR tree-optimization/44861
6792 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
6793 information when building MEM_REFs.
6794 (vectorizable_load): Likewise.
6795 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
6796
6797 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
6798
6799 * config/sol2-c.c: Do not include diagnostic-core.h.
6800
6801 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6802
6803 PR bootstrap/44768
6804 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
6805 with respect to current_function_decl. Pass decl of the function.
6806 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
6807 * ipa-inline.c (compute_inline_parameters): Pass decl to
6808 estimated_stack_frame_size.
6809
6810 2010-07-08 Richard Guenther <rguenther@suse.de>
6811
6812 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
6813 New function.
6814 (valueize_refs): Call it.
6815
6816 2010-07-08 Richard Guenther <rguenther@suse.de>
6817
6818 PR rtl-optimization/44838
6819 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
6820 SSA form do not use pointer equivalence.
6821
6822 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
6823
6824 * dwarf2out.c (AT_linkage_name): Delete.
6825 (add_linkage_attr): New function.
6826 (add_linkage_name): Call it to emit the linkage attribute.
6827 (dwarf2out_finish): Likewise.
6828 (move_linkage_attr): Explicitly accept both attribute variants.
6829
6830 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6831
6832 * toplev.h: Do not include diagnostic-core.h.
6833 Include diagnostic-core.h in every file that includes toplev.h.
6834 * c-tree.h: Do not include toplev.h.
6835 * pretty-print.h: Update comment.
6836 * Makefile.in: Update dependencies.
6837 * alias.c: Include diagnostic-core.h in every file that includes
6838 toplev.h.
6839 * attribs.c: Likewise.
6840 * auto-inc-dec.c: Likewise.
6841 * bb-reorder.c: Likewise.
6842 * bt-load.c: Likewise.
6843 * caller-save.c: Likewise.
6844 * calls.c: Likewise.
6845 * cfg.c: Likewise.
6846 * cfganal.c: Likewise.
6847 * cfgbuild.c: Likewise.
6848 * cfgcleanup.c: Likewise.
6849 * cfghooks.c: Likewise.
6850 * cfgloop.c: Likewise.
6851 * combine.c: Likewise.
6852 * config/alpha/alpha.c: Likewise.
6853 * config/arc/arc.c: Likewise.
6854 * config/arm/arm.c: Likewise.
6855 * config/arm/pe.c: Likewise.
6856 * config/avr/avr.c: Likewise.
6857 * config/bfin/bfin.c: Likewise.
6858 * config/cris/cris.c: Likewise.
6859 * config/crx/crx.c: Likewise.
6860 * config/darwin-c.c: Likewise.
6861 * config/darwin.c: Likewise.
6862 * config/fr30/fr30.c: Likewise.
6863 * config/frv/frv.c: Likewise.
6864 * config/h8300/h8300.c: Likewise.
6865 * config/host-darwin.c: Likewise.
6866 * config/i386/i386.c: Likewise.
6867 * config/i386/netware.c: Likewise.
6868 * config/i386/nwld.c: Likewise.
6869 * config/i386/winnt-cxx.c: Likewise.
6870 * config/i386/winnt-stubs.c: Likewise.
6871 * config/i386/winnt.c: Likewise.
6872 * config/ia64/ia64-c.c: Likewise.
6873 * config/ia64/ia64.c: Likewise.
6874 * config/iq2000/iq2000.c: Likewise.
6875 * config/lm32/lm32.c: Likewise.
6876 * config/m32c/m32c-pragma.c: Likewise.
6877 * config/m32c/m32c.c: Likewise.
6878 * config/m32r/m32r.c: Likewise.
6879 * config/m68hc11/m68hc11.c: Likewise.
6880 * config/m68k/m68k.c: Likewise.
6881 * config/mcore/mcore.c: Likewise.
6882 * config/mep/mep-pragma.c: Likewise.
6883 * config/mep/mep.c: Likewise.
6884 * config/mmix/mmix.c: Likewise.
6885 * config/mn10300/mn10300.c: Likewise.
6886 * config/moxie/moxie.c: Likewise.
6887 * config/pa/pa.c: Likewise.
6888 * config/pdp11/pdp11.c: Likewise.
6889 * config/picochip/picochip.c: Likewise.
6890 * config/rs6000/rs6000-c.c: Likewise.
6891 * config/rs6000/rs6000.c: Likewise.
6892 * config/rx/rx.c: Likewise.
6893 * config/s390/s390.c: Likewise.
6894 * config/score/score.c: Likewise.
6895 * config/score/score3.c: Likewise.
6896 * config/score/score7.c: Likewise.
6897 * config/sh/sh.c: Likewise.
6898 * config/sh/symbian-base.c: Likewise.
6899 * config/sh/symbian-c.c: Likewise.
6900 * config/sh/symbian-cxx.c: Likewise.
6901 * config/sol2-c.c: Likewise.
6902 * config/sol2.c: Likewise.
6903 * config/sparc/sparc.c: Likewise.
6904 * config/spu/spu.c: Likewise.
6905 * config/stormy16/stormy16.c: Likewise.
6906 * config/v850/v850-c.c: Likewise.
6907 * config/v850/v850.c: Likewise.
6908 * config/vax/vax.c: Likewise.
6909 * config/vxworks.c: Likewise.
6910 * config/xtensa/xtensa.c: Likewise.
6911 * convert.c: Likewise.
6912 * cse.c: Likewise.
6913 * cselib.c: Likewise.
6914 * dbgcnt.c: Likewise.
6915 * dbxout.c: Likewise.
6916 * ddg.c: Likewise.
6917 * dominance.c: Likewise.
6918 * emit-rtl.c: Likewise.
6919 * explow.c: Likewise.
6920 * expmed.c: Likewise.
6921 * fixed-value.c: Likewise.
6922 * fold-const.c: Likewise.
6923 * fwprop.c: Likewise.
6924 * gcse.c: Likewise.
6925 * ggc-common.c: Likewise.
6926 * ggc-page.c: Likewise.
6927 * ggc-zone.c: Likewise.
6928 * gimple-low.c: Likewise.
6929 * gimplify.c: Likewise.
6930 * graph.c: Likewise.
6931 * haifa-sched.c: Likewise.
6932 * ifcvt.c: Likewise.
6933 * implicit-zee.c: Likewise.
6934 * integrate.c: Likewise.
6935 * ira-build.c: Likewise.
6936 * ira-color.c: Likewise.
6937 * ira-conflicts.c: Likewise.
6938 * ira-costs.c: Likewise.
6939 * ira-lives.c: Likewise.
6940 * ira.c: Likewise.
6941 * lists.c: Likewise.
6942 * loop-doloop.c: Likewise.
6943 * loop-iv.c: Likewise.
6944 * lto-opts.c: Likewise.
6945 * lto-symtab.c: Likewise.
6946 * main.c: Likewise.
6947 * modulo-sched.c: Likewise.
6948 * optabs.c: Likewise.
6949 * params.c: Likewise.
6950 * plugin.c: Likewise.
6951 * postreload-gcse.c: Likewise.
6952 * postreload.c: Likewise.
6953 * predict.c: Likewise.
6954 * profile.c: Likewise.
6955 * real.c: Likewise.
6956 * regcprop.c: Likewise.
6957 * reginfo.c: Likewise.
6958 * regmove.c: Likewise.
6959 * reorg.c: Likewise.
6960 * resource.c: Likewise.
6961 * rtl.c: Likewise.
6962 * rtlanal.c: Likewise.
6963 * sched-deps.c: Likewise.
6964 * sched-ebb.c: Likewise.
6965 * sched-rgn.c: Likewise.
6966 * sdbout.c: Likewise.
6967 * sel-sched-dump.c: Likewise.
6968 * sel-sched-ir.c: Likewise.
6969 * simplify-rtx.c: Likewise.
6970 * stmt.c: Likewise.
6971 * stor-layout.c: Likewise.
6972 * store-motion.c: Likewise.
6973 * targhooks.c: Likewise.
6974 * tree-cfg.c: Likewise.
6975 * tree-cfgcleanup.c: Likewise.
6976 * tree-dump.c: Likewise.
6977 * tree-eh.c: Likewise.
6978 * tree-inline.c: Likewise.
6979 * tree-nomudflap.c: Likewise.
6980 * tree-object-size.c: Likewise.
6981 * tree-optimize.c: Likewise.
6982 * tree-outof-ssa.c: Likewise.
6983 * tree-phinodes.c: Likewise.
6984 * tree-profile.c: Likewise.
6985 * tree-ssa-ccp.c: Likewise.
6986 * tree-ssa-coalesce.c: Likewise.
6987 * tree-ssa-live.c: Likewise.
6988 * tree-ssa-loop-niter.c: Likewise.
6989 * tree-ssa-loop-prefetch.c: Likewise.
6990 * tree-ssa-loop.c: Likewise.
6991 * tree-ssa-structalias.c: Likewise.
6992 * tree-ssa-uninit.c: Likewise.
6993 * tree-ssa.c: Likewise.
6994 * tree-vect-data-refs.c: Likewise.
6995 * tree-vect-loop-manip.c: Likewise.
6996 * tree-vect-loop.c: Likewise.
6997 * tree-vect-patterns.c: Likewise.
6998 * tree-vect-stmts.c: Likewise.
6999 * tree-vrp.c: Likewise.
7000 * varasm.c: Likewise.
7001 * vec.c: Likewise.
7002 * web.c: Likewise.
7003 * xcoffout.c: Likewise.
7004
7005 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
7006
7007 * gengtype.c (write_field_root): New function.
7008 (write_root): Use it.
7009
7010 2010-07-07 Wei Guozhi <carrot@google.com>
7011
7012 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
7013 of lowest bits to lshift/compare): Add a missing line.
7014
7015 2010-07-07 Wei Guozhi <carrot@google.com>
7016
7017 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
7018 of lowest bits to lshift/compare): New.
7019
7020 2010-07-07 Tom Tromey <tromey@redhat.com>
7021
7022 * doc/tm.texi: Update.
7023 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
7024 Add @hook.
7025 * target.def (want_debug_pub_sections): New hook.
7026 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
7027 * dwarf2out.c (add_pubname_string): Check
7028 targetm.want_debug_pub_sections.
7029 (add_pubname): Likewise.
7030 (add_pubtype): Likewise.
7031
7032 2010-07-07 Jie Zhang <jie@codesourcery.com>
7033
7034 * genautomata.c (output_automata_list_min_issue_delay_code):
7035 Correctly decompress min_issue_delay.
7036
7037 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
7038
7039 PR rtl-optimization/44404
7040 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
7041 possible, use reg_overlap_mentioned_p instead.
7042
7043 2010-07-07 Duncan Sands <baldrick@free.fr>
7044
7045 PR middle-end/41355
7046 * tree.c (build_function_type_skip_args): Copy the original type using
7047 build_distinct_type_copy rather than copy_node.
7048
7049 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
7050
7051 PR target/44850
7052 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
7053 revision 161876.
7054 (ix86_expand_prologue): Likewise.
7055 (ix86_handle_fndecl_attribute): Likewise.
7056 (ix86_asm_declare_function_name): Likewise.
7057 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7058 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7059 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
7060 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
7061 * doc/extend.texi: Likewise.
7062
7063 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
7064
7065 PR target/44844
7066 * config/i386/i386.md (rdrand<mode>): Changed to expand to
7067 retry if the carry flag isn't valid.
7068 (rdrand<mode>_1): New.
7069
7070 2010-07-07 Richard Guenther <rguenther@suse.de>
7071
7072 PR middle-end/44790
7073 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
7074 for expanding the constant offset for MEM_REFs.
7075
7076 2010-07-07 Richard Guenther <rguenther@suse.de>
7077
7078 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
7079 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
7080 * gimple.h (is_gimple_operand): Remove.
7081 * gimple.c (is_gimple_operand): Likewise.
7082 (walk_gimple_op): Fix wi->val_only setting for calls.
7083 * tree-cfg.c (verify_gimple_call): Fix argument validation.
7084 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
7085 invalid gimple calls.
7086
7087 2010-07-06 Jan Hubicka <jh@suse.cz>
7088
7089 * lto-cgraph.c (output_cgraph): Add missing declaration.
7090
7091 2010-07-06 Jan Hubicka <jh@suse.cz>
7092
7093 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
7094 partition.
7095
7096 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
7097
7098 * doc/gimple.texi (GIMPLE_DEBUG): Document.
7099 * doc/rtl.texi (Debug Information): New node.
7100 (NOTE_INSN_VAR_LOCATION): Document.
7101 (debug_insn): Likewise.
7102 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
7103
7104 2010-07-07 Jan Hubicka <jh@suse.cz>
7105
7106 With parts by Richard Guenther.
7107
7108 PR middle-end/44813
7109 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
7110 for functions passed by reference.
7111 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
7112 in memory when passed by reference.
7113 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
7114 beggining.
7115 * ipa-split.c (split_function): Cleanup way return value is passed;
7116 handle SSA DECL_BY_REFERENCE retvals.
7117 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
7118 DECL_BY_REFERENCE is set.
7119 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
7120 find_what_p_points_to): Handle RESULT_DECL.
7121 * tree-inline.c (declare_return_variable): Get new entry_block argument;
7122 when passing by reference ensure that RESULT_DECL is gimple_val.
7123 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
7124 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
7125
7126 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
7127
7128 PR rtl-optimization/44787
7129 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
7130 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
7131
7132 2010-07-06 Jan Hubicka <jh@suse.cz>
7133
7134 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
7135 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
7136 with body can prevail.
7137 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
7138 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
7139 * cgraph.c (cgraph_get_node_or_alias): New function.
7140 * cgraph.h (cgraph_get_node_or_alias): Declare.
7141
7142 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
7143
7144 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
7145 support.
7146 (ix86_expand_prologue): Likewise.
7147 (ix86_handle_fndecl_attribute): Likewise.
7148 (ix86_asm_declare_function_name): New function for
7149 ASM_DECLARE_FUNCTION_NAME.
7150 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
7151 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
7152 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
7153 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
7154 * doc/extend.texi: Adjust documentation about ms_hook_prologue
7155 attribute.
7156
7157 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
7158
7159 * config/i386/i386.md (immediate_operand): New mode attribute.
7160
7161 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
7162 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
7163 using P mode iterator.
7164 (pro_epilogue_adjust_stack_di_2): Rename from
7165 pro_epilogue_adjust_stack_rex64_2.
7166
7167 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
7168
7169 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
7170
7171 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
7172 through gen_mov_insv_1 function pointer.
7173 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
7174 gen_truncxf<mode>2 through gen_truncxf function pointer.
7175 (remainder<mode>3): Ditto.
7176 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
7177 (allocate_stack): Call gen_allocate_stack_worker_64 or
7178 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
7179 function pointer.
7180 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
7181 function pointer.
7182
7183 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
7184
7185 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
7186 operand constraint instead of <r><i>m.
7187
7188 2010-07-06 Richard Guenther <rguenther@suse.de>
7189
7190 PR middle-end/44828
7191 * convert.c (convert_to_integer): Watch out for overflowing
7192 MULT_EXPR as well.
7193
7194 2010-07-05 Jan Hubicka <jh@suse.cz>
7195
7196 * lto-streamer.c (write_symbol_vec): Rename to ...
7197 (write_symbol) ... this one; write only symbol given and when
7198 present in cache. Sanity check that what is defined is present
7199 in cgraph/varpool with body/finalized decl.
7200 (write_symbols_of_kind): Remove.
7201 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
7202 pairs to produce symtab.
7203 (produce_asm_for_decls): Update call of produce_symtab; don't do so
7204 when doing WPA streaming.
7205
7206 2010-07-05 Jan Hubicka <jh@suse.cz>
7207
7208 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
7209 function is still available to fold into.
7210
7211 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
7212
7213 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
7214 * function.h (struct_function): Change type of local_decls field
7215 to a VEC.
7216 (add_local_decl): New function.
7217 (FOR_EACH_LOCAL_DECL): New macro.
7218 * cfgexpand.c (init_vars_expansion): Adjust for new type of
7219 cfun->local_decls.
7220 (estimated_stack_frame_size): Likewise.
7221 (expand_used_vars): Likewise.
7222 * cgraphbuild.c (build_cgraph_edges): Likewise.
7223 * function.c (instantiate_decls_1): Likewise.
7224 * ipa-struct-reorg.c (build_data_structure): Likewise.
7225 * ipa-type-escape.c (analyze_function): Likewise.
7226 * lto-streamer-in.c (input_function): Likewise.
7227 * lto-streamer-out.c (output_function): Likewise.
7228 * tree-ssa-live.c (remove_unused_locals): Likewise.
7229 * tree.c (free_lang_data_in_decl): Likewise.
7230 (find_decls_types_in_node): Likewise.
7231 * omp-low.c (remove_exit_barrier): Likewise.
7232 (expand_omp_taskreg): Likewise.
7233 (list2chain): Rename to...
7234 (vec2chain): ...this. Adjust.
7235 * cgraphunit.c (assemble_thunk): Call add_local_decl.
7236 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
7237 * gimple-low.c (record_vars_into): Likewise.
7238 * tree-inline.c (remap_decls): Likewise.
7239 (declare_return_variable): Likewise.
7240 (declare_inline_vars): Likewise.
7241 (copy_forbidden): Adjust for new type of cfun->local_decls.
7242 (add_local_variables): New function.
7243 (expand_call_inline): Call it.
7244 (tree_function_versioning): Likewise.
7245
7246 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
7247
7248 AVX Programming Reference (June, 2010)
7249 * config/i386/cpuid.h (bit_F16C): New.
7250 (bit_RDRND): Likewise.
7251 (bit_FSGSBASE): Likewise.
7252
7253 * config/i386/i386-builtin-types.def: Add
7254 "DEF_FUNCTION_TYPE (UINT16)", function types for
7255 float16 <-> float conversions and
7256 "DEF_FUNCTION_TYPE (VOID, UINT64)".
7257
7258 * config/i386/i386-c.c (ix86_target_macros_internal): Support
7259 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
7260 OPTION_MASK_ISA_F16C.
7261
7262 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
7263 (OPTION_MASK_ISA_RDRND_SET): Likewise.
7264 (OPTION_MASK_ISA_F16C_SET): Likewise.
7265 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
7266 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
7267 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
7268 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
7269 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
7270 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
7271 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
7272 (override_options): Handle them.
7273 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
7274 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
7275 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
7276 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
7277 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
7278 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
7279 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
7280 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
7281 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
7282 (bdesc_args): Likewise.
7283 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
7284 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
7285 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
7286 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
7287 Handle non-memory store.
7288
7289 * config/i386/i386.h (TARGET_FSGSBASE): New.
7290 (TARGET_RDRND): Likewise.
7291 (TARGET_F12C): Likewise.
7292
7293 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
7294 (UNSPEC_VCVTPS2PH): Likewise.
7295 (UNSPECV_RDFSBASE): Likewise.
7296 (UNSPECV_RDGSBASE): Likewise.
7297 (UNSPECV_WRFSBASE): Likewise.
7298 (UNSPECV_WRGSBASE): Likewise.
7299 (UNSPECV_RDRAND): Likewise.
7300 (rdfsbase<mode>): Likewise.
7301 (rdgsbase<mode>): Likewise.
7302 (wrfsbase<mode>): Likewise.
7303 (wrgsbase<mode>): Likewise.
7304 (rdrand<mode>): Likewise.
7305
7306 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
7307
7308 * config/i386/immintrin.h (_rdrand_u16): New.
7309 (_rdrand_u32): Likewise.
7310 (_readfsbase_u32): Likewise.
7311 (_readfsbase_u64): Likewise.
7312 (_readgsbase_u32): Likewise.
7313 (_readgsbase_u64): Likewise.
7314 (_writefsbase_u32): Likewise.
7315 (_writefsbase_u64): Likewise.
7316 (_writegsbase_u32): Likewise.
7317 (_writegsbase_u64): Likewise.
7318 (_rdrand_u64): Likewise.
7319 (_cvtsh_ss): Likewise.
7320 (_mm_cvtph_ps): Likewise.
7321 (_mm256_cvtph_ps): Likewise.
7322 (_cvtss_sh): Likewise.
7323 (_mm_cvtps_ph): Likewise.
7324 (_mm256_cvtps_ph): Likewise.
7325
7326 * config/i386/sse.md (vcvtph2ps): New.
7327 (*vcvtph2ps_load): Likewise.
7328 (vcvtph2ps256): Likewise.
7329 (vcvtps2ph): Likewise.
7330 (*vcvtps2ph): Likewise.
7331 (*vcvtps2ph_store): Likewise.
7332 (vcvtps2ph256): Likewise.
7333
7334 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
7335
7336 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
7337
7338 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
7339
7340 PR bootstrap/44512
7341 * genenums.c (main): Output include of insn-constants.h
7342 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
7343
7344 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
7345
7346 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
7347 (override_options): Initialize it.
7348 (ix86_expand_prologue): Use it.
7349
7350 2010-07-05 Jakub Jelinek <jakub@redhat.com>
7351
7352 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
7353
7354 2010-07-05 Anatoly Sokolov <aesok@post.ru>
7355
7356 * double-int.h (fit_double_type): Remove declaration.
7357 * double-int.c (fit_double_type): Remove function.
7358 * tree.h (int_fits_type_p): Adjust prototype.
7359 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
7360 instead of fit_double_type.
7361 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
7362 instead of fit_double_type and build_int_cst_wide.
7363 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
7364 instead of fit_double_type and build_int_cst_wide.
7365 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
7366 of fit_double_type.
7367
7368 2010-07-05 Jan Hubicka <jh@suse.cz>
7369
7370 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
7371 in_other_partition.
7372 * lto-cgraph.c (referenced_from_other_partition_p,
7373 reachable_from_other_partition_p): Use in_other_partition flags.
7374 (output_node, output_varpool_node): COMDAT nodes always have private
7375 copies and thus are never used from other partition.
7376
7377 2010-07-05 Anatoly Sokolov <aesok@post.ru>
7378
7379 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
7380 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
7381 * config/ia64/ia64.c Include reload.h.
7382 (ia64_memory_move_cost): New function.
7383 (TARGET_MEMORY_MOVE_COST): Define.
7384 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
7385 memory_move_cost.
7386
7387 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
7388
7389 PR middle-end/42505
7390 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
7391 comments about cost model.
7392 (try_add_cand_for): Add second strategy for choosing initial set
7393 based on original IVs, controlled by ORIGINALP argument.
7394 (get_initial_solution): Add ORIGINALP argument.
7395 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
7396 (find_optimal_iv_set): Try two different strategies for choosing
7397 the IV set, and return the one with lower cost.
7398
7399 2010-07-05 Richard Guenther <rguenther@suse.de>
7400
7401 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
7402
7403 2010-07-05 Richard Guenther <rguenther@suse.de>
7404
7405 * tree.c (reference_alias_ptr_type): New function.
7406 * tree.h (reference_alias_ptr_type): Declare.
7407 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
7408 allow non-TARGET_MEM_REF new refs.
7409 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
7410 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
7411 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
7412 (create_mem_ref): Get alias pointer type. Adjust calls to
7413 create_mem_ref_raw.
7414 (maybe_fold_tmr): Likewise.
7415 * tree-flow.h (create_mem_ref): Adjust prototype.
7416
7417 2010-07-05 Jakub Jelinek <jakub@redhat.com>
7418
7419 PR c++/44808
7420 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
7421 *from_p is VAR_DECL.
7422
7423 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
7424
7425 * tree.h (build_call_list): Remove.
7426 * tree.c (build_call_list): Remove.
7427
7428 2010-07-05 Richard Guenther <rguenther@suse.de>
7429
7430 * double-int.h (double_int_sub): Declare.
7431 * double-int.c (double_int_sub): New function.
7432 * dwarf2out.c (field_byte_offset): Use it.
7433 * fixed-value.c (do_fixed_add): Likewise.
7434 (do_fixed_multiply): Likewise.
7435 (do_fixed_divide): Likewise.
7436 * tree-predcom.c (add_ref_to_chain): Likewise.
7437 (determine_roots_comp): Likewise.
7438 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
7439
7440 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
7441
7442 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
7443 implementations.
7444
7445 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
7446
7447 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
7448 * arm-modes.def (CC_NOTB): Don't define.
7449 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
7450 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
7451 (LTUGEU): New code_iterator.
7452 (cnb, optab): New corresponding code_attrs.
7453 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
7454 to canonical form. Operands 1 and 2 are commutative. Parametrize
7455 using LTUGEU.
7456 (addsi3_carryin_shift_<optab>): Likewise.
7457 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
7458 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
7459 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
7460 (subsi3_compare): Renamed from subsi3_compare0_c.
7461 Change CC_NOTB to CC.
7462 (arm_subsi3_insn): Allow constants for operand 0.
7463 (compare_scc peephole for eq case): New.
7464 (compare_scc splitters): Change CC_NOTB to CC.
7465
7466 2010-07-05 Richard Guenther <rguenther@suse.de>
7467
7468 * tree-ssa-loop-im.c (for_each_index): Do not handle
7469 ALIGN_INDIRECT_REF.
7470 (gen_lsm_tmp_name): Likewise.
7471 * tree-dump.c (dequeue_and_dump): Likewise.
7472 * tree-pretty-print.c (dump_generic_node): Likewise.
7473 (op_code_prio): Likewise.
7474 (op_symbol_code): Likewise.
7475 * tree.c (staticp): Likewise.
7476 (build1_stat): Likewise.
7477 * tree.h (INDIRECT_REF_P): Likewise.
7478 * fold-const.c (maybe_lvalue_p): Likewise.
7479 (operand_equal_p): Likewise.
7480 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
7481 (ao_ref_init_from_vn_reference): Likewise.
7482 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
7483 (find_interesting_uses_address): Likewise.
7484 * dwarf2out.c (loc_list_from_tree): Likewise.
7485 * gimplify.c (gimplify_expr): Likewise.
7486 * tree-eh.c (tree_could_trap_p): Likewise.
7487 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7488 * cfgexpand.c (expand_debug_expr): Likewise.
7489 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
7490 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
7491 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
7492 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
7493 * tree-ssa-operands.c (get_expr_operands): Likewise.
7494 * expr.c (safe_from_p): Likewise.
7495 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
7496 * tree-vect-data-refs.c (vect_setup_realignment): Build
7497 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
7498 * tree-vect-stmts.c (vectorizable_load): Likewise.
7499 * tree.def (ALIGN_INDIRECT_REF): Remove.
7500
7501 2010-07-05 Richard Guenther <rguenther@suse.de>
7502
7503 PR tree-optimization/44784
7504 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
7505 for inserted stmts.
7506 (find_or_generate_expression): Fix SCCVN insertion check.
7507
7508 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
7509
7510 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
7511 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
7512 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
7513 directives.
7514
7515 2010-07-05 Ira Rosen <irar@il.ibm.com>
7516
7517 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
7518 statements that are not vectorized.
7519 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
7520 in INSIDE_COST.
7521
7522 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
7523
7524 PR bootstrap/44820
7525 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
7526
7527 2010-07-05 Richard Guenther <rguenther@suse.de>
7528
7529 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
7530 RESULT_DECLs properly.
7531
7532 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
7533
7534 PR rtl-optimization/44695
7535 * config/i386/i386.md (extract_code): Removed.
7536 (<u>divmodqi4): Likewise.
7537 (divmodqi4): New.
7538 (udivmodqi4): Likewise.
7539 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
7540 (udivmodhiqi3): Likewise.
7541
7542 2010-07-04 Jan Hubicka <jh@suse.cz>
7543
7544 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
7545
7546 2010-07-04 Jan Hubicka <jh@suse.cz>
7547
7548 * cgraphunit.c (init_cgraph): Only initialize dump file if it
7549 is not already initialized.
7550
7551 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
7552
7553 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
7554 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
7555 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
7556 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
7557 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
7558 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
7559 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
7560 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
7561 (sync_new_nand_optab): Redefine as macros.
7562 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
7563 Delete.
7564 (direct_optab_index): New enum.
7565 (direct_optab_d): New structure.
7566 (direct_optab): New typedef.
7567 (direct_optab_table): Declare.
7568 (direct_optab_handler, set_direct_optab_handler): New functions.
7569 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
7570 (sync_lock_release_optab): New macros.
7571 * optabs.c (direct_optab_table): New variable.
7572 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
7573 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
7574 cmpstr_optab and cmpstrn_optab.
7575 (emit_conditional_move): Likewise for movcc_optab.
7576 (can_conditionally_move_p): Likewise for movcc_gen_code.
7577 (init_insn_codes): Clear direct_optab_table.
7578 (init_optabs): Don't initialize the new "direct optabs" here.
7579 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
7580 vcond_gen_code.
7581 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
7582 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
7583 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
7584 (expand_sync_operation): Likewise other sync_*_optabs.
7585 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
7586 to sync_compare_and_swap_optab.
7587 (expand_sync_lock_test_and_set): Use direct_optab_handler for
7588 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
7589 to the names of both.
7590 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
7591 cmpstr_optab and cmpstrn_optab.
7592 (expand_builtin_lock_release): Likewise sync_lock_release.
7593 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
7594 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
7595 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
7596 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
7597 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
7598 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
7599 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
7600 (sync_lock_test_and_set, sync_lock_release): Delete.
7601 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
7602 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
7603 * genopinit.c (optabs): Use set_direct_optab_handler for the new
7604 macro optabs.
7605 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
7606 the "optab" local variable. Use direct_optab_handler for optab and
7607 sync_compare_and_swap_optab.
7608 * reload1.c (reload_in_optab, reload_out_optab): Delete.
7609 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
7610 reload_in_optab and reload_out_optab.
7611 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
7612 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
7613 * config/pa/pa.c (pa_secondary_reload): Likewise.
7614 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
7615 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
7616 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
7617 (VMSupportsCS8_builtin): Likewise.
7618
7619 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
7620
7621 * optabs.h (optab_handlers): Change type of insn_code to int.
7622 (optab_handler, set_optab_handler, convert_optab_handler)
7623 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
7624 CODE_FOR_nothing".
7625 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
7626 (init_insn_codes): Zero both the above arrays.
7627 (init_optabs): Never call init_insn_codes first time around.
7628
7629 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
7630
7631 * optabs.h (optab_handler, convert_optab_handler): Turn into
7632 inline functions that return an insn code.
7633 (set_optab_handler, set_convert_optab_handler): New functions.
7634 * builtins.c: Replace optab_handler(X)->insn_code with
7635 optab_handler or set_optab_handler thoughout. Likewise
7636 convert_optab_handler(X)->insn_code with convert_optab_handler
7637 and set_convert_optab_handler.
7638 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
7639 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
7640 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
7641 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
7642 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
7643 config/spu/spu.c: Likewise.
7644
7645 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
7646
7647 PR target/44531
7648 * config.gcc (sh*-*-*): Use regular expressions instead of
7649 the 'i' modifier for sed substitutions.
7650
7651 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
7652
7653 * gimple.c (gimple_body): Comments added.
7654
7655 2010-07-04 Richard Guenther <rguenther@suse.de>
7656
7657 PR middle-end/44809
7658 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
7659 of an INDIRECT_REF.
7660
7661 2010-07-04 Richard Guenther <rguenther@suse.de>
7662
7663 PR tree-optimization/44479
7664 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
7665 extra SSA name copy statements which preserves points-to
7666 information.
7667 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7668 Copy points-to information for all pointers. Properly handle
7669 MEM_REFs.
7670 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
7671 copy statements.
7672 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
7673 dependency.
7674
7675 2010-07-04 Richard Guenther <rguenther@suse.de>
7676
7677 PR middle-end/44785
7678 * tree-inline.c (initialize_inlined_parameters): Do not
7679 re-use pointer-map slot over remap_type call.
7680
7681 2010-07-04 Richard Guenther <rguenther@suse.de>
7682
7683 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
7684
7685 2010-07-04 Richard Guenther <rguenther@suse.de>
7686
7687 PR tree-optimization/44656
7688 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
7689 again after value-replacing in the defintions lhs.
7690
7691 2010-07-04 Ira Rosen <irar@il.ibm.com>
7692 Revital Eres <eres@il.ibm.com>
7693
7694 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
7695 Document new arguments.
7696 * doc/tm.texi: Regenerate.
7697 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
7698 Handle unaligned store.
7699 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
7700 * target.def (builtin_vectorization_cost): Add new arguments.
7701 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
7702 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
7703 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
7704 (vect_vfa_segment_size): Fix indentation.
7705 * tree-vectorizer.h (struct _vect_peel_info): New.
7706 (struct _vect_peel_extended_info): New.
7707 (struct _loop_vec_info): Add new field for peeling hash table and a
7708 macro for its access.
7709 (VECT_MAX_COST): Define.
7710 (vect_get_load_cost): Declare.
7711 (vect_get_store_cost, vect_get_known_peeling_cost,
7712 vect_get_single_scalar_iteraion_cost): Likewise.
7713 (vect_supportable_dr_alignment): Add new argument.
7714 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
7715 field.
7716 (destroy_loop_vec_info): Free peeling hash table.
7717 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
7718 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
7719 vect_analyze_slp. Fix indentation.
7720 (vect_get_single_scalar_iteraion_cost): New function.
7721 (vect_get_known_peeling_cost): Likewise.
7722 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
7723 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
7724 statement. Move outside cost calculation inside unknown peeling case.
7725 Call vect_get_known_peeling_cost for known amount of peeling.
7726 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
7727 reference to the print message of forced alignment.
7728 (vect_verify_datarefs_alignment): Update call to
7729 vect_supportable_dr_alignment.
7730 (vect_get_data_access_cost): New function.
7731 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
7732 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
7733 vect_peeling_hash_choose_best_peeling): Likewise.
7734 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
7735 to store all the accesses in the loop and find best possible access to
7736 align using peeling for known alignment case. For unknown alignment
7737 check if stores are preferred or if peeling is worthy.
7738 (vect_find_same_alignment_drs): Analyze pairs of loads too.
7739 (vect_supportable_dr_alignment): Add new argument and check aligned
7740 accesses according to it.
7741 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
7742 (cost_for_stmt): Call vect_get_stmt_cost.
7743 (vect_model_simple_cost): Likewise.
7744 (vect_model_store_cost): Call vect_get_stmt_cost. Call
7745 vect_get_store_cost to calculate the cost of the statement.
7746 (vect_get_store_cost): New function.
7747 (vect_model_load_cost): Call vect_get_stmt_cost. Call
7748 vect_get_load_cost to calculate the cost of the statement.
7749 (vect_get_load_cost): New function.
7750 (vectorizable_store): Update call to vect_supportable_dr_alignment.
7751 (vectorizable_load): Likewise.
7752 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
7753 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
7754 arguments. Handle unaligned store.
7755 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
7756 (rs6000_builtin_support_vector_misalignment): Return true for word and
7757 double word alignments for VSX.
7758 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
7759 vect_supportable_dr_alignment and builtin_vectorization_cost.
7760
7761 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7762
7763 PR target/44597
7764 * config/pa/predicates.md (prefetch_cc_operand): Remove.
7765 (prefetch_nocc_operand): Likewise.
7766 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
7767 (prefetch_20): New insn.
7768 (prefetch_cc): Remove.
7769 (prefetch_nocc): Likewise.
7770
7771 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
7772
7773 * expr.c (vector_mode_valid_p): Move to c-common.c.
7774 * expr.h (vector_mode_valid_p): Do not declare here.
7775 * system.h: Poison GCC_EXPR_H in front-ends.
7776 * Makefile.in: Update dependencies.
7777
7778 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7779
7780 PR target/44705
7781 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
7782
7783 2010-07-03 Jan Hubicka <jh@suse.cz>
7784
7785 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
7786 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
7787 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
7788 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
7789 Likewise.
7790
7791 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
7792 Update timevars.V
7793 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
7794 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
7795 TV_IPA_LTO_DECL_OUT): New.
7796 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
7797
7798 2010-07-03 Jan Hubicka <jh@suse.cz>
7799
7800 * ipa-inline.c (update_edge_key): Break out from ...
7801 update_callers_keys): ... here;
7802 (update_callee_keys): Update only the edges from caller to callee.
7803 (update_all_calle_keys): Do what update_calle_keys did.
7804 (decide_inlining_of_small_functions): Avoid recomputing of all
7805 callees when badness increase.
7806
7807 2010-07-03 Jie Zhang <jie@codesourcery.com>
7808
7809 * config/arm/arm.c (arm_attr_length_move_neon): New.
7810 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
7811 * config/arm/neon.md (define_mode_attr V_slen): Remove.
7812 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
7813 to compute length attribute.
7814
7815 2010-07-03 Jie Zhang <jie@codesourcery.com>
7816
7817 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
7818 as predicate for operand 1 and remove its constraint.
7819 * config/arm/predicates.md (vfp_register_operand): New.
7820 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
7821 (*push_fp_multi): Likewise.
7822
7823 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
7824
7825 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
7826
7827 2010-07-03 Jan Hubicka <jh@suse.cz>
7828
7829 * config/i386/i386.c (override_options): Revert accidental commit.
7830
7831 2010-07-02 Le-Chun Wu <lcwu@google.com>
7832
7833 PR c++/44128
7834 * doc/invoke.texi: Update documentation of -Wshadow.
7835
7836 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
7837 Julian Brown <julian@codesourcery.com>
7838 Sandra Loosemore <sandra@codesourcery.com>
7839
7840 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
7841 comparisons. Adjust to take both operands.
7842 (arm_select_cc_mode): Handle DImode comparisons.
7843 (arm_gen_compare_reg): Generate a scratch register for DImode
7844 comparisons which require one. Use xor for Thumb equality checks.
7845 (arm_const_double_by_immediates): New.
7846 (arm_print_operand): Allow 'Q' and 'R' for constants.
7847 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
7848 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
7849 arm_canonicalize_comparison.
7850 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
7851 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
7852 prototype.
7853 (arm_const_double_by_immediates): Declare.
7854 * config/arm/constraints.md (Di): New constraint.
7855 * config/arm/predicates.md (arm_immediate_di_operand)
7856 (arm_di_operand, cmpdi_operand): New.
7857 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
7858 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
7859 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
7860 (cstoredi4): Handle non-Cirrus also.
7861
7862 2010-07-02 Julian Brown <julian@codesourcery.com>
7863 Sandra Loosemore <sandra@codesourcery.com>
7864
7865 PR target/43703
7866 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
7867 (smax<mode>3): Disable for NEON float modes when
7868 flag_unsafe_math_optimizations is false.
7869 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
7870 (*mul<mode>3_neon)
7871 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
7872 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
7873 for NEON float modes when flag_unsafe_math_optimizations is false.
7874 (quad_halves_<code>v4sf): Only enable if
7875 flag_unsafe_math_optimizations is true.
7876 * doc/invoke.texi (ARM Options): Add note about floating point
7877 vectorization requiring -funsafe-math-optimizations.
7878
7879 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
7880 Julian Brown <julian@codesourcery.com>
7881
7882 * config/arm/neon.md (UNSPEC_VABA): Delete.
7883 (UNSPEC_VABAL): Delete.
7884 (UNSPEC_VABS): Delete.
7885 (UNSPEC_VMUL_N): Delete.
7886 (adddi3_neon): New.
7887 (subdi3_neon): New.
7888 (mul<mode>3add<mode>_neon): Make the pattern named.
7889 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
7890 (neon_vadd<mode>): Replace with define_expand, and move the remaining
7891 unspec parts...
7892 (neon_vadd<mode>_unspec): ...to this.
7893 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
7894 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
7895 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
7896 (neon_vaba<mode>): Rewrite in terms of vabd.
7897 (neon_vabal<mode>): Rewrite in terms of vabdl.
7898 (neon_vabs<mode>): Rewrite without unspec.
7899 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
7900 (*arm_subdi3): Likewise.
7901 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
7902 No_op attribute to disable assembly output checks.
7903 * config/arm/arm_neon.h: Regenerated.
7904 * doc/arm-neon-intrinsics.texi: Regenerated.
7905
7906 2010-07-02 Jan Hubicka <jh@suse.cz>
7907
7908 * ipa-split.c (split_function): For aggregate values, set the return
7909 slot optimization bit. When passing DECL_BY_REFERENCE, produce
7910 *<retval> = fncall.part ().
7911 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
7912
7913 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
7914
7915 * config/arm/neon.md (UNSPEC_VAND): Delete.
7916 (UNSPEC_VBIC): Delete.
7917 (UNSPEC_VCLZ): Delete.
7918 (UNSPEC_VCNT): Delete.
7919 (UNSPEC_VEOR): Delete.
7920 (UNSPEC_VORN): Delete.
7921 (UNSPEC_VORR): Delete.
7922 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
7923 core registers too.
7924 (anddi3_neon): Likewise.
7925 (orndi3_neon): Likewise.
7926 (bicdi3_neon): Likewise.
7927 (xordi3_neon): Likewise.
7928 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
7929 rid of unspec and handle unused operand.
7930 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
7931 * config/arm/predicates.md (imm_for_neon_logic_operand):
7932 Require TARGET_NEON.
7933 (imm_for_neon_inv_logic_operand): Likewise.
7934 * config/arm/arm.md (define_split for logical_binary_operator):
7935 Disable for NEON registers.
7936 (anddi3): Add new define_expand, and rename the insn. Disable
7937 this insn for NEON, where anddi3_neon now applies.
7938 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
7939 (iordi3): As for anddi3.
7940 (xordi3): Likewise.
7941 * config/arm/neon.ml (Vand): Split DImode variants and mark them
7942 as No_op to disable testing for exact instruction match.
7943 (Vorr): Likewise.
7944 (Veor): Likewise.
7945 (Vbic): Likewise.
7946 (Vorn): Likewise.
7947 * config/arm/arm_neon.h: Regenerated.
7948 * doc/arm-neon-intrinsics.texi: Regenerated.
7949
7950 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
7951
7952 * expr.h (emit_stack_probe): Declare.
7953 * explow.c (emit_stack_probe): Make global.
7954 (anti_adjust_stack_and_probe): Fix comments.
7955 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
7956 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7957 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7958 * config/sparc/sparc.c: Include except.h.
7959 (sparc_emit_probe_stack_range): New function.
7960 (output_probe_stack_range): Likewise.
7961 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
7962 built-in stack checking is enabled.
7963 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
7964 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
7965 (probe_stack_range): New insn.
7966
7967 2010-07-02 Richard Guenther <rguenther@suse.de>
7968
7969 PR target/43958
7970 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
7971 for argument alignment.
7972
7973 2010-07-02 Jan Hubicka <jh@suse.cz>
7974
7975 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
7976 walk backwards from entry_bb to check only those basic block of header
7977 that might lead to execution of split part.
7978 (consider_split) ... here.
7979 (find_return_bb): Allow assignment in return BB.
7980 (find_retval): New.
7981 (split_function): Fix name of cloned function; take care of updating
7982 return value in return_bb containing move.
7983
7984 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
7985
7986 PR target/44771
7987 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
7988 used variable insn.
7989
7990 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
7991
7992 * implicit-zee.c (combine_reaching_defs): Fix long lines.
7993 (is_set_with_extension_DI): Delete.
7994 (struct zero_extend_info): New structure.
7995 (add_removable_zero_extend): New function.
7996 (find_removable_zero_extends): Use note_stores to find SETs.
7997 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
7998
7999 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
8000
8001 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
8002 is_miss_rate_acceptable. Pull total_positions computation
8003 out of the loops. Early return if miss_positions exceeds
8004 the acceptable threshold.
8005 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
8006 is_miss_rate_acceptable after renaming of compute_miss_rate.
8007
8008 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
8009
8010 PR middle-end/44576
8011 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
8012 of 1000) for miss rate if the address diference is greater than or
8013 equal to the cache line size (the two reference will never hit the
8014 same cache line).
8015
8016 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
8017
8018 PR target/42835
8019 * config/arm/arm-modes.def (CC_NOTB): New mode.
8020 * config/arm/arm.c (get_arm_condition_code): Handle it.
8021 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
8022 * config/arm/arm.md (subsi3_compare0_c): New pattern.
8023 (compare_scc): Now a define_and_split. Add a number of extra
8024 splitters before it.
8025
8026 PR target/42172
8027 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
8028 and ZERO_EXTEND.
8029 (arm_rtx_costs_1): Likewise.
8030 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
8031 * config/arm/arm.md (is_arch6): New attribute.
8032 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
8033 extendqisi2): Tighten the code somewhat, avoiding invalid
8034 RTL to occur in the expander patterns.
8035 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
8036 (thumb1_zero_extendhisi2_v6): Delete.
8037 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
8038 (thumb1_extendhisi2_v6): Delete.
8039 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
8040 (thumb1_extendqisi2_v6): Delete.
8041 (zero_extendhisi2 for register input splitter): New.
8042 (zero_extendqisi2 for register input splitter): New.
8043 (thumb1_extendhisi2 for register input splitter): New.
8044 (extendhisi2 for register input splitter): New.
8045 (extendqisi2 for register input splitter): New.
8046 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
8047 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
8048 and add support for a register alternative requiring a split.
8049 (thumb1_zero_extendqisi2): Likewise.
8050 (arm_zero_extendqisi2): Likewise.
8051 (arm_extendhisi2): Likewise.
8052 (arm_extendqisi2): Likewise.
8053
8054 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
8055
8056 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
8057 instead of an unspec.
8058 (neon_expand_vector_init): Likewise.
8059 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
8060 (UNSPEC_VDUP_LANE): Delete.
8061 (UNSPEC VDUP_N): Delete.
8062 (UNSPEC_VGET_HIGH): Delete.
8063 (UNSPEC_VGET_LANE): Delete.
8064 (UNSPEC_VGET_LOW): Delete.
8065 (UNSPEC_VMVN): Delete.
8066 (UNSPEC_VSET_LANE): Delete.
8067 (V_double_vector_mode): New.
8068 (vec_set<mode>_internal): Make code emitted match that for the
8069 corresponding intrinsics.
8070 (vec_setv2di_internal): Likewise.
8071 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
8072 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
8073 (neon_vset_lane<mode>): Combine double and quad patterns and
8074 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
8075 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
8076 (neon_vdup_n<mode>): Rewrite RTL without unspec.
8077 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
8078 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
8079 with neon_vdup_lanev2di, adjusting the pattern from the latter
8080 to be predicable for consistency.
8081 (neon_vdup_lane<mode>_internal): New.
8082 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
8083 to avoid using an unspec.
8084 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
8085 (neon_vdup_lanev2di): Turn into a define_expand.
8086 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
8087 (neon_vget_high<mode>): Replace with....
8088 (neon_vget_highv16qi): New pattern using canonical RTL.
8089 (neon_vget_highv8hi): Likewise.
8090 (neon_vget_highv4si): Likewise.
8091 (neon_vget_highv4sf): Likewise.
8092 (neon_vget_highv2di): Likewise.
8093 (neon_vget_low<mode>): Replace with....
8094 (neon_vget_lowv16qi): New pattern using canonical RTL.
8095 (neon_vget_lowv8hi): Likewise.
8096 (neon_vget_lowv4si): Likewise.
8097 (neon_vget_lowv4sf): Likewise.
8098 (neon_vget_lowv2di): Likewise.
8099
8100 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
8101 test for this emitting vmov.
8102 (Vset_lane): Likewise.
8103 (Vdup_n): Likewise.
8104 (Vmov_n): Likewise.
8105
8106 * doc/arm-neon-intrinsics.texi: Regenerated.
8107
8108 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
8109
8110 * config/arm/neon.md (vec_extractv2di): Correct error in register
8111 numbering to reconcile with neon_vget_lanev2di.
8112
8113 2010-07-02 Richard Guenther <rguenther@suse.de>
8114
8115 * tree-ssa-structalias.c (pt_solution_set_var): New function.
8116 * tree-ssa-alias.h (pt_solution_set_var): Declare.
8117 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
8118 points-to information.
8119
8120 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
8121
8122 * config/s390/s390.c (override_options): Adopt prefetching
8123 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
8124
8125 2010-07-02 Jan Hubicka <jh@suse.cz>
8126
8127 * df-problems.c (df_kill_notes): Do not collect dead notes.
8128 (df_set_note): Just call add_reg_note.
8129 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
8130 df_create_unused_note): Do not deal with lists of old notes.
8131 (df_note_bb_compute): Likewise.
8132
8133 2010-07-02 Richard Guenther <rguenther@suse.de>
8134
8135 * tree-ssa-structalias.c (find_func_aliases): Handle
8136 pointer alignment via BIT_AND_EXPR.
8137 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
8138
8139 2010-07-02 Richard Guenther <rguenther@suse.de>
8140
8141 * tree-data-ref.c (initialize_data_dependence_relation): Handle
8142 mismatching number of dimensions properly.
8143
8144 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8145
8146 PR target/44707
8147 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
8148 (lo_sum (high ...) ...) patterns generated by earlier passes.
8149
8150 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8151
8152 * doc/install.texi (Prerequisites): Document Perl requirement on
8153 Solaris 2.
8154 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
8155
8156 2010-07-02 Richard Guenther <rguenther@suse.de>
8157
8158 PR middle-end/44777
8159 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
8160
8161 2010-07-02 Jan Hubicka <jh@suse.cz>
8162
8163 PR middle-end/44706
8164 * predict.c (predict_paths_for_bb): Handle case when control dependence
8165 BB has only abnormal edges.
8166
8167 2010-07-02 Richard Guenther <rguenther@suse.de>
8168
8169 PR tree-optimization/44748
8170 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
8171 the embedded conversion in MEM_REFs.
8172
8173 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
8174
8175 * reload.c: Include toplev.h.
8176 * recog.c: Likewise.
8177 * Makefile.in: Adjust dependencies.
8178
8179 2010-07-01 Jakub Jelinek <jakub@redhat.com>
8180
8181 PR debug/44694
8182 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
8183 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
8184
8185 2010-07-01 Richard Guenther <rguenther@suse.de>
8186
8187 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
8188 types for offsets.
8189
8190 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
8191
8192 PR target/44732
8193 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
8194 Fix argument types.
8195
8196 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
8197
8198 PR target/44727
8199 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
8200 Make sure operand 0 dies.
8201
8202 2010-07-01 Richard Guenther <rguenther@suse.de>
8203
8204 PR middle-end/42834
8205 PR middle-end/44468
8206 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
8207 * doc/generic.texi (References to storage): Document MEM_REF.
8208 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
8209 (print_call_name): Likewise.
8210 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
8211 (build_simple_mem_ref_loc): New function.
8212 (mem_ref_offset): Likewise.
8213 * tree.h (build_simple_mem_ref_loc): Declare.
8214 (build_simple_mem_ref): Define.
8215 (mem_ref_offset): Declare.
8216 * fold-const.c: Include tree-flow.h.
8217 (operand_equal_p): Handle MEM_REF.
8218 (build_fold_addr_expr_with_type_loc): Likewise.
8219 (fold_comparison): Likewise.
8220 (fold_unary_loc): Fold
8221 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
8222 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
8223 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
8224 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
8225 (ptr_deref_may_alias_ref_p_1): Likewise.
8226 (ao_ref_base_alias_set): Properly differentiate base object for
8227 offset and TBAA.
8228 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
8229 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
8230 (indirect_refs_may_alias_p): Likewise.
8231 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
8232 chasing code.
8233 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
8234 (call_may_clobber_ref_p_1): Likewise.
8235 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
8236 * expr.c (expand_assignment): Handle MEM_REF.
8237 (store_expr): Handle MEM_REFs from STRING_CSTs.
8238 (store_field): If expanding a MEM_REF of a non-addressable
8239 decl use bitfield operations.
8240 (get_inner_reference): Handle MEM_REF.
8241 (expand_expr_addr_expr_1): Likewise.
8242 (expand_expr_real_1): Likewise.
8243 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
8244 * alias.c (ao_ref_from_mem): Handle MEM_REF.
8245 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
8246 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
8247 (dr_analyze_indices): Likewise.
8248 (dr_analyze_alias): Likewise.
8249 (object_address_invariant_in_loop_p): Likewise.
8250 * gimplify.c (mark_addressable): Handle MEM_REF.
8251 (gimplify_cond_expr): Build MEM_REFs.
8252 (gimplify_modify_expr_to_memcpy): Likewise.
8253 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
8254 (gimple_fold_indirect_ref): Adjust.
8255 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
8256 * tree.def (MEM_REF): New tree code.
8257 * tree-dfa.c: Include toplev.h.
8258 (get_ref_base_and_extent): Handle MEM_REF.
8259 (get_addr_base_and_unit_offset): New function.
8260 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
8261 * gimple-fold.c (may_propagate_address_into_dereference): Handle
8262 MEM_REF.
8263 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
8264 accesses if the array has just one dimension. Remove always true
8265 parameter. Do not require type compatibility here.
8266 (maybe_fold_offset_to_component_ref): Remove.
8267 (maybe_fold_stmt_indirect): Remove.
8268 (maybe_fold_reference): Remove INDIRECT_REF handling.
8269 Fold back to non-MEM_REF.
8270 (maybe_fold_offset_to_address): Simplify. Deal with type
8271 mismatches here.
8272 (maybe_fold_reference): Likewise.
8273 (maybe_fold_stmt_addition): Likewise. Also handle
8274 &ARRAY + I in addition to &ARRAY[0] + I.
8275 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
8276 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
8277 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
8278 * tree-ssa.c (useless_type_conversion_p): Make most pointer
8279 conversions useless.
8280 (warn_uninitialized_var): Handle MEM_REF.
8281 (maybe_rewrite_mem_ref_base): New function.
8282 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
8283 to SSA form.
8284 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
8285 INDIRECT_REF handling.
8286 (copy_tree_body_r): Handle MEM_REF.
8287 * gimple.c (is_gimple_addressable): Adjust.
8288 (is_gimple_address): Likewise.
8289 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
8290 invariant base are invariant.
8291 (is_gimple_min_lval): Adjust.
8292 (is_gimple_mem_ref_addr): New function.
8293 (get_base_address): Handle MEM_REF.
8294 (count_ptr_derefs): Likewise.
8295 (get_base_loadstore): Likewise.
8296 * gimple.h (is_gimple_mem_ref_addr): Declare.
8297 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
8298 * tree-cfg.c (verify_address): New function, split out from ...
8299 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
8300 the address operand of MEM_REFs. Verify MEM_REFs. Reject
8301 INDIRECT_REFs.
8302 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
8303 INDIRECT_REF. Allow conversions.
8304 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
8305 a register does not change its size.
8306 (verify_types_in_gimple_reference): Verify MEM_REF.
8307 (verify_gimple_assign_single): Disallow INDIRECT_REF.
8308 Handle MEM_REF.
8309 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
8310 New.
8311 (mark_address_taken): Handle MEM_REF.
8312 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
8313 (get_asm_expr_operands): Pass opf_not_non_addressable.
8314 (get_expr_operands): Handle opf_[not_]non_addressable.
8315 Handle MEM_REF. Remove INDIRECT_REF handling.
8316 * tree-vrp.c (check_array_ref): Handle MEM_REF.
8317 (search_for_addr_array): Likewise.
8318 (check_array_bounds): Likewise.
8319 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
8320 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
8321 (ref_always_accessed_p): Likewise.
8322 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
8323 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
8324 Handle MEM_REF.
8325 * cgraphbuild.c (mark_load): Properly check for NULL result
8326 from get_base_address.
8327 (mark_store): Likewise.
8328 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
8329 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
8330 handling for MEM_REF.
8331 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
8332 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
8333 * builtins.c (stabilize_va_list_loc): Use the function ABI
8334 valist type if we couldn't canonicalize the argument type.
8335 Always dereference with the canonical va-list type.
8336 (maybe_emit_free_warning): Handle MEM_REF.
8337 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
8338 memmove to memcpy.
8339 * builtins.c (fold_builtin_memory_op): Use ref-all types
8340 for all memcpy foldings.
8341 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
8342 (build_outer_var_ref): Likewise.
8343 (scan_omp_1_op): Likewise.
8344 (lower_rec_input_clauses): Likewise.
8345 (lower_lastprivate_clauses): Likewise.
8346 (lower_reduction_clauses): Likewise.
8347 (lower_copyprivate_clauses): Likewise.
8348 (expand_omp_atomic_pipeline): Likewise.
8349 (expand_omp_atomic_mutex): Likewise.
8350 (create_task_copyfn): Likewise.
8351 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
8352 Remove old union trick. Initialize constant offsets.
8353 (ao_ref_init_from_vn_reference): Likewise. Do not handle
8354 INDIRECT_REF. Init base_alias_set properly.
8355 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
8356 (vn_reference_fold_indirect): Adjust for MEM_REFs.
8357 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
8358 for ARRAY_REFs.
8359 (may_insert): Remove.
8360 (visit_reference_op_load): Do not test may_insert.
8361 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
8362 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
8363 a field to store the constant offset this op applies.
8364 (run_scc_vn): Adjust prototype.
8365 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
8366 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
8367 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
8368 bother about volatile qualifiers on pointers.
8369 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
8370 * tree-ssa-loop-ivopts.c
8371 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
8372 (strip_offset_1): Likewise.
8373 (find_interesting_uses_address): Replace INDIRECT_REF handling with
8374 MEM_REF handling.
8375 (get_computation_cost_at): Likewise.
8376 * ipa-pure-const.c (check_op): Handle MEM_REF.
8377 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
8378 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
8379 and constants.
8380 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
8381 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
8382 (eliminate_local_variables_1): Likewise.
8383 (create_call_for_reduction_1): Likewise.
8384 (create_loads_for_reductions): Likewise.
8385 (create_loads_and_stores_for_name): Likewise.
8386 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
8387 (ssa_accessed_in_tree): Handle MEM_REF.
8388 (ssa_accessed_in_assign_rhs): Likewise.
8389 (update_type_size): Likewise.
8390 (analyze_accesses_for_call_stmt): Likewise.
8391 (analyze_accesses_for_assign_stmt): Likewise.
8392 (transform_access_sites): Likewise.
8393 (transform_allocation_sites): Likewise.
8394 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
8395 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
8396 not handle INDIRECT_REF.
8397 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
8398 (cond_store_replacement): Likewise.
8399 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
8400 MEM_REF, no not handle INDIRECT_REFs.
8401 (insert_into_preds_of_block): Properly initialize avail.
8402 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
8403 for ARRAY_REFs. Properly handle reference lookups that
8404 require a bit re-interpretation.
8405 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
8406 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
8407 (build_ref_for_offset_1): Remove.
8408 (build_ref_for_offset): Build MEM_REFs.
8409 (gate_intra_sra): Disable for now.
8410 (sra_ipa_modify_expr): Handle MEM_REF.
8411 (ipa_early_sra_gate): Disable for now.
8412 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
8413 MEM_REF handling.
8414 (disqualify_base_of_expr): Likewise.
8415 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
8416 MEM_REF handling.
8417 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
8418 Use mem_ref_offset. Remove bogus folding.
8419 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
8420 (make_fancy_name_1): Add support for MEM_REF.
8421 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
8422 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
8423 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
8424 (compute_complex_ancestor_jump_func): Likewise.
8425 (ipa_analyze_virtual_call_uses): Likewise.
8426 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
8427 INDIRECT_REF folding with more generalized MEM_REF folding.
8428 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
8429 (forward_propagate_addr_into_variable_array_index): Also handle
8430 &ARRAY + I in addition to &ARRAY[0] + I.
8431 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
8432 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
8433 creates assignments with overlap.
8434 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
8435 (get_frame_field): Likewise.
8436 (get_nonlocal_debug_decl): Likewise.
8437 (convert_nonlocal_reference_op): Likewise.
8438 (struct nesting_info): Add mem_refs pointer-set.
8439 (create_nesting_tree): Allocate it.
8440 (convert_local_reference_op): Insert to be folded mem-refs.
8441 (fold_mem_refs): New function.
8442 (finalize_nesting_tree_1): Perform defered folding of mem-refs
8443 (free_nesting_tree): Free the pointer-set.
8444 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
8445 (vectorizable_load): Likewise.
8446 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
8447 (propagate_with_phi): Likewise.
8448 * tree-object-size.c (addr_object_size): Handle MEM_REFs
8449 instead of INDIRECT_REFs.
8450 (compute_object_offset): Handle MEM_REF.
8451 (plus_stmt_object_size): Handle MEM_REF.
8452 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
8453 for &MEM_REF.
8454 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
8455 (symbol_marked_for_renaming): Likewise.
8456 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
8457 (fold-const.o): Add $(TREE_FLOW_H).
8458 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
8459 (find_func_clobbers): Likewise.
8460 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
8461 (decompose_access): Likewise.
8462 (replace_field_acc): Likewise.
8463 (replace_field_access_stmt): Likewise.
8464 (insert_new_var_in_stmt): Likewise.
8465 (get_stmt_accesses): Likewise.
8466 (reorg_structs_drive): Disable.
8467 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
8468 (ix86_canonical_va_list_type): Likewise.
8469
8470 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
8471
8472 PR other/44566
8473 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
8474 * target.def (struct gcc_target): Replace enum reg_class with
8475 reg_class_t in hook argument / return types.
8476 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
8477 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
8478 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
8479 * targhooks.h (default_branch_target_register_class): Likewise.
8480 (default_ira_cover_classes, default_secondary_reload): Likewise.
8481 (default_memory_move_cost, default_register_move_cost): Likewise.
8482 * targhooks.c (default_branch_target_register_class): Likewise.
8483 (default_ira_cover_classes, default_secondary_reload): Likewise.
8484 (default_memory_move_cost, default_register_move_cost): Likewise.
8485 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
8486 * bt-load.c (branch_target_load_optimize): Likewise.
8487 * ira.c (setup_cover_and_important_classes): Likewise.
8488 * ira-costs.c (copy_cost): Likewise.
8489 * reload1.c (emit_input_reload_insns): Likewise.
8490 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
8491 * config/frv/frv.c (frv_secondary_reload): Likewise.
8492 * config/s390/s390.c (s390_secondary_reload): Likewise.
8493 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
8494 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
8495 (ix86_register_move_cost): Likewise.
8496 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
8497 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
8498 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
8499 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
8500 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
8501 (rs6000_ira_cover_classes): Likewise.
8502 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
8503 * config/picochip/picochip-protos.h (picochip_secondary_reload):
8504 Likewise.
8505 * config/pa/pa.c (pa_secondary_reload): Likewise.
8506 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
8507 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
8508 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
8509 * doc/tm.texi: Regenerate.
8510
8511 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
8512
8513 PR bootstrrap/44726
8514 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
8515 use.
8516 (build_alias_set_optimal_p): Likewise.
8517 (build_base_obj_set_for_drs): Likewise.
8518
8519 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
8520
8521 * target.def: Remove comment about licensing problems of function
8522 declarations.
8523
8524 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
8525 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
8526 * doc/tm.texi: Regenerate.
8527
8528 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
8529 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
8530
8531 * target.def (enum_va_list_p): Use DEFHOOK.
8532 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
8533 Rename ptype to ptree.
8534 * doc/tm.texi: Regenerate.
8535
8536 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
8537 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
8538 * doc/tm.texi: Regenerate.
8539
8540 * target.def (memory_move_cost): Use DEFHOOK.
8541 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
8542 Rename regclass AKA class to rclass.
8543 * doc/tm.texi: Regenerate.
8544
8545 * target.def (pragma_parse): Use DEFHOOK.
8546 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
8547 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
8548 * doc/tm.texi: Regenerate.
8549
8550 * target.def (pass_by_reference): Use DEFHOOK.
8551 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
8552 * doc/tm.texi: Regenerate.
8553
8554 * target.def (resolve_overloaded_builtin): Rename params to arglist.
8555 Use DEFHOOK.
8556 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
8557 * doc/tm.texi: Regenerate.
8558
8559 * target.def (return_pops_args): Use DEFHOOK.
8560 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
8561 Rename stack-size to size.
8562 * doc/tm.texi: Regenerate.
8563
8564 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
8565 last-sched_cycle to last_clock, cur_cycle to clock.
8566 * doc/tm.texi.in: Use @hook.
8567 * doc/tm.texi: Regenerate.
8568
8569 * target.def (print_operand, print_operand_address): Update comment.
8570 (print_operand_punct_valid_p): Likewise.
8571
8572 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
8573
8574 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
8575 to rtl.h.
8576 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
8577 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
8578 * rtl-error.h: New.
8579 * regrename.c: Do not include toplev.h. Include rtl-error.h.
8580 * rtl-error.c: Likewise.
8581 * reload.c: Likewise.
8582 * recog.c: Likewise.
8583 * sel-sched.c: Likewise.
8584 * function.c: Likewise.
8585 * reg-stack.c: Likewise.
8586 * cfgrtl.c: Likewise.
8587 * reload1.c: Likewise.
8588 * final.c: Include rtl-error.
8589 * Makefile.in: Adjust dependencies.
8590
8591 2010-06-30 Jan Hubicka <jh@suse.cz>
8592
8593 PR middle-end/PR44706
8594 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
8595 to return the value.
8596
8597 2010-06-30 Michael Matz <matz@suse.de>
8598
8599 PR bootstrap/44699
8600 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
8601 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
8602 a gimple reg, attach the original VDEF to the last store in the
8603 sequence.
8604
8605 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
8606
8607 PR other/44034
8608 * config/darwin.c (darwin_override_options): Use renamed
8609 targetm.asm_out.emit_unwind_label.
8610
8611 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
8612
8613 PR tree-optimization/39799
8614 * tree-inline.c (remap_ssa_name): Initialize variable only if
8615 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
8616
8617 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
8618
8619 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
8620
8621 2010-06-30 Richard Guenther <rguenther@suse.de>
8622
8623 PR target/44722
8624 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
8625 against oscillation with reverse peephole2.
8626
8627 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
8628
8629 PR target/44721
8630 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
8631 Fix last commit.
8632
8633 2010-06-30 Nick Clifton <nickc@redhat.com>
8634
8635 * config/rx/rx-modes.def: New file.
8636 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
8637 (CC_REGNUM): Define.
8638 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
8639 register.
8640 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
8641 (SELECT_CC_MODE): Define.
8642 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
8643 (reg:CC CC_REG) instead of (cc0).
8644 (attr "cc"): Delete.
8645 (cbranchsi4): Do not split compare and branch here. Instead move
8646 it to...
8647 (cbranchsi4_<code>): ... here. New patterns.
8648 (cmpsi): Call rx-compare_redundant to find out if it is necessary
8649 to emit the compare instruction.
8650 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
8651 cc_status flags.
8652 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
8653 FIRST_PSEUDO_REGNUM.
8654 (rx_expand_prologue, rx_expand_epilogue): Likewise.
8655 (rx_notice_update_cc): Delete.
8656 (rx_cc_modes_compatible): New function.
8657 (flags_needed_for_conditional): New function.
8658 (flags_from_mode): New function.
8659 (rx_compare_redundant): New function - scans backwards through
8660 insn list to find out if condition flags are already set correctly.
8661 (TARGET_CC_MODES_COMPATIBLE): Define.
8662 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
8663
8664 * config/rx/rx.h (BRANCH_COST): Define.
8665 (REGISTER_MOVE_COST): Define.
8666 * config/rx/predicates (rx_source_operand): Allow all constant types.
8667 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
8668 (tstsi4): New pattern.
8669 * config/rx/rx.c (rx_memory_move_cost): Define.
8670 (TARGET_MEMORY_MOVE_COST): Define.
8671
8672 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
8673
8674 * tree.h (block_may_fallthru): Declare here.
8675 * tree-flow.h (block_may_fallthru): Do not declare here.
8676 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
8677 bitmap.h
8678 * Makefile.in (c-typeck.o): Update dependencies.
8679
8680 2010-06-30 Jakub Jelinek <jakub@redhat.com>
8681
8682 PR debug/44694
8683 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
8684 * cselib.c (cfa_base_preserved_regno): New static variable.
8685 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
8686 of REGNO (cfa_base_preserved_val->locs->loc).
8687 (cselib_preserve_cfa_base_value): Add regno argument, set
8688 cfa_base_preserved_regno to it.
8689 (cselib_invalidate_regno): Allow removal of registers other than
8690 cfa_base_preserved_regno from cfa_base_preserved_val.
8691 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
8692 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
8693 of MEM addresses, if not on LHS.
8694 (reverse_op): Don't add reverse ops for cfa_base_rtx.
8695 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
8696
8697 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
8698
8699 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
8700 static variables.
8701 (peep2_buf_position): New static function.
8702 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
8703 peephole2_optimize): Use it.
8704 (peep2_attempt, peep2_update_life): New static functions, broken out
8705 of peephole2_optimize.
8706 (peep2_fill_buffer): New static function.
8707 (peephole2_optimize): Change the main loop to try to fill the buffer
8708 with the maximum number of insns before matching them against
8709 peepholes. Use a forward scan. Remove special case for targets with
8710 conditional execution.
8711 * genrecog.c (change_state): Delete dead code.
8712 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
8713 Rewrite so as not to expect the second insn to have had a peephole
8714 applied yet.
8715
8716 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
8717
8718 * genhooks.c (emit_findices): Cast field precision to int.
8719 (emit_documentation): Likewise.
8720
8721 2010-06-29 Jakub Jelinek <jakub@redhat.com>
8722
8723 PR tree-optimization/43801
8724 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
8725 if old_decl was DECL_ONE_ONLY.
8726
8727 PR debug/44668
8728 * dwarf2out.c (add_accessibility_attribute): New function.
8729 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
8730 instead of adding DW_AT_accessibility manually.
8731 (gen_enumeration_type_die, gen_struct_or_union_type_die,
8732 gen_typedef_die): Use it.
8733
8734 2010-06-29 Douglas B Rupp <rupp@gnat.com>
8735
8736 * vmsdbgout.c (full_name): Just output the file name if not native.
8737
8738 2010-06-29 Douglas B Rupp <rupp@gnat.com>
8739
8740 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
8741 (funcnam_table): New static table.
8742 (funcnum_table): New static table.
8743 (write_rtnbeg): Write value saved in funcnum_table.
8744 (write_rtnend): Write value saved in funcnum_table.
8745 (vmsdbgout_begin_function): Save current function info in
8746 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
8747 (vmsdbgout_finish): Iterate over funcnum_table.
8748
8749 2010-06-29 Douglas B Rupp <rupp@gnat.com>
8750
8751 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
8752 (vmsdbgout_type_decl): Declare
8753 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
8754 (FUNC_EPILOGUE_LABEL): New macro
8755 (vmsdbgout_begin_epilogue): New function.
8756 (vmsdbgout_type_decl): New function.
8757
8758 2010-06-29 Douglas B Rupp <rupp@gnat.com>
8759
8760 * vmsdbg.h: Update copyright.
8761
8762 2010-06-29 Douglas B Rupp <rupp@gnat.com>
8763
8764 * vmsdbg.h (DST_K_TBG): New DST constant.
8765 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
8766 (write_modbeg): Cast module_language to avoid warning.
8767 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
8768
8769 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
8770
8771 PR other/44034
8772 * target.def, doc/tm.texi.in, genhooks.c: New files.
8773 * target.h: Instead of defining individual hook members,
8774 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
8775 include target.def.
8776 * target-def.h: Instead of defining individual hook initializers,
8777 include target-hooks-def.h.
8778 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
8779 targetm.live_on_entry -> targetm.extra_live_on_entry
8780 targetm.sched.md_finish ->targetm.sched.finish
8781 targetm.sched.md_init -> targetm.sched.init
8782 targetm.sched.md_init_global -> targetm.sched.init_global
8783 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
8784 targetm.asm_out.except_table_label ->
8785 targetm.asm_out.emit_except_table_label
8786 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
8787 targetm.target_help -> targetm.help
8788 targetm.vectorize.builtin_support_vector_misalignment ->
8789 targetm.vectorize.support_vector_misalignment
8790 targetm.file_start_app_off -> targetm.asm_file_start_app_off
8791 targetm.file_start_file_directive ->
8792 targetm.asm_file_start_file_directive
8793 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
8794 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
8795 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
8796 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
8797 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
8798 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
8799 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
8800 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
8801 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
8802 * Makefile.in (TARGET_H): Depend on target.def.
8803 (TARGET_DEF_H): Depend on target-hooks-def.h.
8804 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
8805 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
8806 * doc/tm.texi: Regenerate.
8807
8808 * Makefile.in (s-tm-texi): Remove stray tab / rule.
8809
8810 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
8811 (targetm.sched.init): Likewise.
8812
8813 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
8814
8815 PR bootstrap/44713
8816 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
8817 (function_arg_advance_32): Const-ify TYPE parameter.
8818 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
8819 (ix86_function_arg_advance): Change type of NAMED to bool.
8820 (function_arg_32): Const-ify CUM and TYPE parameters.
8821 (function_arg_64): Likewise. Change type of NAMED to bool.
8822 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
8823 to bool.
8824 (ix86_function_arg): Change type of NAMED to bool.
8825 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
8826 last argument as a bool.
8827
8828 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
8829
8830 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
8831 (OVERRIDE_OPTIONS): Add note of obsolescence.
8832 Replace references with references to TARGET_OPTION_OVERRIDE.
8833 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
8834 the macro).
8835 * targhooks.c (default_target_option_override): New function.
8836 * targhooks.h (default_target_option_override): Declare.
8837 * target.h (struct gcc_target): Add override member to
8838 target_option member.
8839 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
8840 targetm.target_option.override call.
8841 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
8842 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
8843
8844 2010-06-29 Jan Hubicka <jh@suse.cz>
8845
8846 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
8847
8848 2010-06-29 Jan Hubicka <jh@suse.cz>
8849
8850 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
8851 unreachable.
8852 (rebuild_frequencies): New function.
8853 * predict.h (rebuild_frequencies): Declare.
8854 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
8855 entry block and edge reaching new_entry.
8856 (tree_function_versioning): When doing partial cloning, rebuild
8857 frequencies when done.
8858 * passes.c (execute_function_todo): Use rebild_frequencies.
8859
8860 2010-06-29 Richard Guenther <rguenther@suse.de>
8861
8862 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
8863 * tree-flow.h (enum noalias_state): Remove.
8864 (struct var_ann_d): Remove noalias_state member.
8865
8866 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
8867
8868 PR target/43902
8869 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
8870 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
8871 (maddhidi4): Likewise.
8872
8873 Revert parts of the change for PR25130.
8874 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
8875 MEM_ALIAS_SET.
8876
8877 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
8878
8879 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
8880 targetm.calls.function_incoming_arg, and
8881 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
8882 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
8883 * target.h (struct gcc_target): Add function_arg_advance,
8884 function_arg, and function_incoming_arg fields.
8885 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
8886 (TARGET_FUNCTION_INCOMING_ARG): Define.
8887 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
8888 and TARGET_FUNCTION_INCOMING_ARG.
8889 * targhooks.h (default_function_arg_advance): Declare.
8890 (default_function_arg, default_function_incoming_arg): Declare.
8891 * targhooks.c (default_function_arg_advance): New function.
8892 (default_function_arg, default_function_incoming_arg): New function.
8893 * config/i386/i386.c (function_arg_advance): Rename to...
8894 (ix86_function_arg_advance): ...this. Make static.
8895 (function_arg): Rename to...
8896 (ix86_function_arg): ...this. Make static.
8897 (TARGET_FUNCTION_ARG_ADVANCE): Define.
8898 (TARGET_FUNCTION_ARG): Define.
8899 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
8900 (FUNCTION_ARG): Delete.
8901 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
8902 (function_arg): Delete prototype.
8903
8904 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
8905
8906 * reginfo.c (init_reg_sets_1): Adjust comments.
8907 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
8908 * calls.c (prepare_call_address): Likewise.
8909 (emit_call_1): Use targetm.calls.return_pops_args.
8910 (expand_call): Likewise.
8911 * function.c (assign_parms): Likewise.
8912 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
8913 * target.h (struct gcc_target) [struct calls]: Add
8914 return_pops_args field.
8915 * targhooks.h (default_return_pops_args): Declare.
8916 * targhooks.c (default_return_pops_args): Define.
8917 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
8918 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
8919 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
8920 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
8921 documentation.
8922 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
8923 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
8924 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
8925 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
8926 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
8927 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
8928 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
8929 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
8930 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
8931 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
8932 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
8933 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
8934 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
8935 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
8936 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
8937 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
8938 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
8939 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
8940 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
8941 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
8942 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
8943 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
8944 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
8945 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
8946 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
8947 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
8948 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
8949 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
8950 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
8951 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
8952 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
8953 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
8954 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
8955 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
8956 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
8957 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
8958 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
8959 * config/i386/i386.c (ix86_return_pops_args): Make static.
8960 Constify arguments.
8961 (TARGET_RETURN_POPS_ARGS): Define.
8962 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
8963 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
8964 (TARGET_RETURN_POPS_ARGS): Define.
8965 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
8966 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
8967 (TARGET_RETURN_POPS_ARGS): Define.
8968
8969 2010-06-29 Richard Guenther <rguenther@suse.de>
8970
8971 PR middle-end/44667
8972 * tree-inline.c (initialize_inlined_parameters): Make sure
8973 to remap the inlined parameter variable substitutions types.
8974
8975 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
8976
8977 PR rtl-optimization/44659
8978 * combine.c (make_compound_operation) <SUBREG>: Do not return the
8979 result of force_to_mode if it partially re-expanded the compound.
8980
8981 2010-06-28 Jan Hubicka <jh@suse.cz>
8982
8983 PR middle-end/44671
8984 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
8985 RESULT_DECL.
8986
8987 2010-06-28 Anatoly Sokolov <aesok@post.ru>
8988
8989 * double-int.h (force_fit_type_double): Remove declaration.
8990 * double-int.c (force_fit_type_double): Move to tree.c.
8991 * tree.h (force_fit_type_double): Declare.
8992 * tree.h (force_fit_type_double): Moved from double-int.c. Use
8993 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
8994 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
8995 * convert.c (convert_to_pointer): Adjust call to
8996 force_fit_type_double.
8997 * tree-vrp.c (extract_range_from_assert,
8998 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
8999 * fold-const.c: Update comment.
9000 (int_const_binop, fold_convert_const_int_from_int,
9001 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
9002 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
9003 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
9004 round_up_loc): Adjust call to force_fit_type_double.
9005
9006 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
9007
9008 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
9009
9010 2010-06-28 Martin Jambor <mjambor@suse.cz>
9011
9012 * tree-sra.c (convert_callers): New parameter, change fndecls of
9013 recursive calls.
9014 (modify_function): Pass the old decl to convert_callers.
9015
9016 2010-06-28 Martin Jambor <mjambor@suse.cz>
9017
9018 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
9019 ipa_check_create_node_params and ipa_initialize_node_params with
9020 checking asserts they are not necessary.
9021
9022 2010-06-28 Jan Hubicka <jh@suse.cz>
9023
9024 PR tree-optimization/44687
9025 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
9026
9027 2010-06-28 Martin Jambor <mjambor@suse.cz>
9028
9029 PR c++/44535
9030 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
9031 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
9032 instead of BINFO_BASE_BINFO.
9033
9034 2010-06-28 Michael Matz <matz@suse.de>
9035
9036 PR middle-end/44592
9037 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
9038 proper VDEF chain for intermediate stores in the sequence.
9039
9040 2010-06-28 Jan Hubicka <jh@suse.cz>
9041
9042 PR tree-optimization/44357
9043 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
9044 uninlinable functions.
9045
9046 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
9047
9048 * config.gcc (powerpc*-*-*): Handle titan.
9049 * config/rs6000/rs6000.c (titan_cost): New costs.
9050 (rs6000_override_options): Add "titan" to processor_target_table.
9051 Add Titan to branch alignment logic.
9052 Correctly set rs6000_cost for titan.
9053 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
9054 * config/rs6000/titan.md: New file.
9055 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
9056
9057 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
9058
9059 * tree-browser.c (TB_history_stack): Convert to a VEC.
9060 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
9061 (TB_history_prev): Likewise.
9062
9063 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
9064
9065 * vec.h (vec_heap_free): Add parentheses around free.
9066
9067 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
9068
9069 * system.h: Poison GCC_EXCEPT_H for front-end files.
9070
9071 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
9072 langhook.
9073 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
9074 Define to NULL by default.
9075 * except.h: Define GCC_EXCEPT_H.
9076 (doing_eh): Remove prototype.
9077 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
9078 (lang_protect_cleanup_actions): Remove.
9079 * except.c (lang_protect_cleanup_actions): Remove.
9080 (doing_eh): Remove.
9081 (gen_eh_region): Don't check doing_eh here.
9082 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
9083 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
9084 instead of lang_protect_cleanup_actions.
9085 * omp-low.c (maybe_catch_exception): Likewise.
9086 * Makefile.in: Update dependencies.
9087
9088 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
9089
9090 * cgraph.h (struct varpool_node): new used_from_object_file flag.
9091 (struct cgraph_local_info): new used_from_object_file flag.
9092 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
9093 (cgraph_clone_node): initialize used_from_object_file.
9094 (cgraph_create_virtual_clone): initialize used_from_object_file.
9095 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
9096 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
9097 when compiling with -fwhole-program.
9098 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
9099 internal resolver.
9100 * ipa.c (function_and_variable_visibility): Set externally_visible
9101 flag of varpool_node if used_from_object_file flag is set.
9102 (cgraph_externally_visible_p): check used_from_object_file flag.
9103 * doc/invoke.texi (-fwhole-program option): Change description of
9104 externally_visible attribute accordingly.
9105 * doc/extend.texi (externally_visible): Ditto.
9106
9107 2010-06-27 Jan Hubicka <jh@suse.cz>
9108
9109 * params.def (max-inline-insns-auto): Default to 40.
9110 * doc/invoke.texi (max-inline-insns-auto): Document the change.
9111
9112 2010-06-27 Jan Hubicka <jh@suse.cz>
9113
9114 PR middle-end/44671
9115 PR middle-end/44686
9116 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
9117 signature change.
9118 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
9119 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
9120
9121 2010-06-27 Anatoly Sokolov <aesok@post.ru>
9122
9123 * target.h (struct gcc_target): Add register_move_cost field.
9124 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
9125 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
9126 * targhooks.c (default_register_move_cost): New function.
9127 * targhooks.h (default_register_move_cost): Declare function.
9128 * defaults.h (REGISTER_MOVE_COST): Delete.
9129 * ira-int.h (ira_register_move_cost): Update comment.
9130 * ira.c (ira_register_move_cost): Update comment.
9131 * reload.h (register_move_cost): Declare.
9132 * reginfo.c (register_move_cost): New function.
9133 (move_cost): Update comment.
9134 (init_move_cost, memory_move_secondary_cost): Replace
9135 REGISTER_MOVE_COST with register_move_cost.
9136 * postreload.c (reload_cse_simplify_set): (Ditto.).
9137 * reload.c (find_valid_class, find_reloads): (Ditto.).
9138 * reload1.c (choose_reload_regs): (Ditto.).
9139 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
9140 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
9141 * doc/md.texi (can_create_pseudo_p): Update documentation.
9142
9143 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
9144 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
9145 * config/i386/i386.h (ix86_memory_move_cost): Make static.
9146 (TARGET_MEMORY_MOVE_COST): Define.
9147
9148 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
9149 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
9150 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
9151 (TARGET_MEMORY_MOVE_COST): Define.
9152
9153 2010-06-27 Richard Guenther <rguenther@suse.de>
9154
9155 PR tree-optimization/44683
9156 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
9157 false edge from the inverted condition.
9158
9159 2010-06-27 Richard Guenther <rguenther@suse.de>
9160
9161 PR middle-end/44684
9162 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
9163 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
9164 for register LHS. Or non-store assignments.
9165
9166 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
9167
9168 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
9169 (sparc_emit_set_const64): Likewise. Remove disabled code.
9170 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
9171 (sparc_emit_set_const64): Likewise.
9172
9173 2010-06-26 Catherine Moore <clm@codesourcery.com>
9174
9175 * config/mips/mips.md (alu_type): New attribute.
9176 (type): Infer type from alu_type.
9177 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
9178 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
9179 *subsi3_extended, negsi2, negdi2, *low<mode>,
9180 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
9181 xor<mode>3, *nor<mode>3,
9182 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
9183 *zero_extendhi_truncqi): Set alu_type instead of type.
9184
9185 2010-06-26 Douglas B Rupp <rupp@gnat.com>
9186
9187 * config/alpha/alpha.c (alpha_need_linkage): Adjust
9188 splay_tree_new_ggc call.
9189 (alpha_use_linkage): Likewise.
9190
9191 2010-06-26 Joseph Myers <joseph@codesourcery.com>
9192
9193 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
9194 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
9195 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
9196 (static_specs): Remove switches_need_spaces.
9197 (process_command, do_self_spec): Hardcode handling "-o" instead of
9198 checking switches_need_spaces.
9199 * system.h (SWITCHES_NEED_SPACES): Poison.
9200
9201 2010-06-26 Richard Guenther <rguenther@suse.de>
9202
9203 PR tree-optimization/44393
9204 * tree-loop-distribution.c (generate_loops_for_partition): Fix
9205 stmt removal and VOP renaming.
9206 (generate_memset_zero): Remove redundant stmt updating.
9207 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
9208 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
9209
9210 2010-06-26 Jan Hubicka <jh@suse.cz>
9211
9212 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
9213 edges comming from header are equivalent.
9214 (visit_bb): Handle PHIs correctly.
9215 * tree-inline.c (copy_phis_for_bb): Be able to copy
9216 PHI from entry edge.
9217 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
9218
9219 2010-06-26 Richard Guenther <rguenther@suse.de>
9220
9221 PR middle-end/44674
9222 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
9223 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
9224
9225 2010-06-26 Joseph Myers <joseph@codesourcery.com>
9226
9227 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
9228 add_infile, alloc_switch): New.
9229 (process_command): Remove variable lang_n_infiles. Process
9230 options in a single pass. Use new functions for allocating
9231 infiles and switches arrays. Properly skip operands of
9232 -Xpreprocessor and -Xassembler.
9233
9234 2010-06-26 Jan Hubicka <jh@suse.cz>
9235
9236 PR middle-end/44671
9237 * cgraphunit.c (cgraph_function_versioning): Remove wrong
9238 cgraph_make_decl_local call; fix typo copying RTL data.
9239
9240 2010-06-25 DJ Delorie <dj@redhat.com>
9241
9242 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
9243 (m32c_output_aligned_common): Likewise.
9244 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
9245 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
9246 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
9247 (m32c_register_pragmas): Register it.
9248 * config/m32c/m32c.c (m32c_get_pragma_address): New.
9249 (m32c_insert_attributes): Set #pragma address decls volatile.
9250 (pragma_entry_eq): New.
9251 (pragma_entry_hash): New.
9252 (m32c_note_pragma_address): New.
9253 (m32c_get_pragma_address): New.
9254 (m32c_output_aligned_common): New.
9255 * doc/extend.texi: Document the new pragma.
9256
9257 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
9258 also.
9259 * config/m32c/predicates.md (m32c_any_operand): Check the code
9260 instead of memory_operand so as to allow matching volatile MEMs.
9261 (m32c_nonimmediate_operand): Likewise.
9262 (mra_operand): Allow volatiles.
9263
9264 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
9265
9266 PR debug/44610
9267 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
9268 address if the offset is unknown.
9269
9270 2010-06-25 Douglas B Rupp <rupp@gnat.com>
9271
9272 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
9273 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
9274 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
9275 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
9276 to ia64_start_function. Invoke it.
9277 * config/ia64/ia64.c (ia64_start_function): Call new function
9278 dwarf2out_vms_debug_main_pointer.
9279
9280 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
9281
9282 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
9283 statements computing the true predicate.
9284
9285 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
9286
9287 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
9288 to boolean_true_node.
9289 (reset_bb_predicate): New.
9290 (predicate_bbs): Call reset_bb_predicate.
9291
9292 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
9293
9294 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
9295 (tree_if_conversion): Returns true when something has been changed.
9296 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
9297 changed something.
9298
9299 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
9300
9301 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
9302 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
9303 * tree-if-conv.c: Include dbgcnt.h.
9304 (tree_if_conversion): Use if_conversion_tree to count the number of
9305 if-convertible loops.
9306
9307 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
9308
9309 * common.opt (fprefetch-loop-arrays): Re-define
9310 -fprefetch-loop-arrays as a tri-state option with the initial
9311 value of -1.
9312 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
9313 pass only when flag_prefetch_loop_arrays > 0.
9314 * toplev.c (process_options): Note that, with tri-states,
9315 flag_prefetch_loop_arrays>0 means prefetching is enabled.
9316 * config/i386/i386.c (override_options): Enable prefetching at -O3
9317 for a set of CPUs that sw prefetching is helpful.
9318 (software_prefetching_beneficial_p): New. Return TRUE if software
9319 prefetching is beneficial for the given CPU.
9320
9321 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
9322
9323 PR rtl-optimization/44326
9324 * implicit-zee.c (find_removable_zero_extends): Replace
9325 INSN_P with NONDEBUG_INSN_P.
9326
9327 2010-06-25 Martin Jambor <mjambor@suse.cz>
9328
9329 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
9330 (struct ipa_node_params): Removed the modification_analysis_done flag.
9331 (ipa_is_param_modified): Removed.
9332 (ipa_analyze_node): Declare.
9333 (ipa_compute_jump_functions): Remove declaration.
9334 (ipa_count_arguments): Likewise.
9335 (ipa_detect_param_modifications): Likewise.
9336 (ipa_analyze_params_uses): Likewise.
9337 * ipa-prop.c (struct param_analysis_info): New type.
9338 (visit_store_addr_for_mod_analysis): Removed.
9339 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
9340 moved down in the file.
9341 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
9342 (ipa_count_arguments): Made static.
9343 (mark_modified): New function.
9344 (is_parm_modified_before_call): New function.
9345 (compute_pass_through_member_ptrs): New parameter parms_info, call
9346 is_parm_modified_before_call instead of ipa_is_param_modified.
9347 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
9348 it to compute_pass_through_member_ptrs.
9349 (ipa_compute_jump_functions): New parameter parms_info, pass it to
9350 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
9351 on the callee if it is analyzed. Made static.
9352 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
9353 is_parm_modified_before_call instead of ipa_is_param_modified.
9354 (ipa_analyze_call_uses): New parameter parms_info, pass it to
9355 ipa_analyze_indirect_call_uses.
9356 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
9357 ipa_analyze_call_uses.
9358 (ipa_analyze_params_uses): New parameter parms_info, pass it to
9359 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
9360 (ipa_analyze_node): New function.
9361 (ipa_print_node_params): Do not dump the modified flag.
9362 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
9363 it. Do not stream the modified parameter flag.
9364 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
9365 it. Do not stream the modified parameter flag.
9366 * ipa-cp.c (ipcp_analyze_node): Removed.
9367 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
9368 with only a call to ipa_analyze_node.
9369 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
9370 node with only a call to ipa_analyze_node.
9371
9372 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
9373
9374 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
9375
9376 2010-06-25 Jan Hubicka <jh@suse.cz>
9377
9378 * tree-pass.h (pass_split_functions): Declare.
9379 * opts.c (decode_options): Enable function splitting at -O2
9380 * timevar.def (TV_IPA_FNSPLIT): New macro.
9381 * ipa-split.c: New file.
9382 * common.opt (-fpartial-inlining): New flag.
9383 * Makefile.in (ipa-split.o): New object file.
9384 * passes.c (init_optimization_passes): Add ipa-split.
9385 * params.def (partial-inlining-entry-probability): New parameters.
9386 * doc/invoke.texi (-fpartial-inlining): New.
9387
9388 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
9389
9390 PR 44665
9391 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
9392 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
9393 (gimplify_expr): Likewise.
9394
9395 2010-06-25 Martin Jambor <mjambor@suse.cz>
9396
9397 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
9398 statements instead of bailing out on them.
9399 (ipa_analyze_indirect_call_uses): Do not require that loads from the
9400 parameter are in the same BB as the condition. Update comments.
9401
9402 2010-06-25 Jakub Jelinek <jakub@redhat.com>
9403
9404 PR middle-end/43866
9405 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
9406 true or always false, return NULL_TREE.
9407 (tree_unswitch_single_loop): Optimize conditions even when reaching
9408 max-unswitch-level parameter. If num > 0, optimize first all conditions
9409 using entry checks, then do still reachable block discovery and consider
9410 only conditions in still reachable basic blocks in the loop.
9411
9412 PR tree-optimization/44539
9413 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
9414 the call doesn't have LHS, but has VDEF.
9415
9416 2010-06-25 Joseph Myers <joseph@codesourcery.com>
9417
9418 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
9419 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
9420 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
9421 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
9422 * system.h (MODIFY_TARGET_NAME): Poison.
9423
9424 2010-06-25 Alan Modra <amodra@gmail.com>
9425
9426 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
9427 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
9428 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
9429 CMODEL_LARGE as default.
9430 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
9431 (offsettable_ok_by_alignment): Delete.
9432 (rs6000_emit_move): Remove mcmodel=medium optimization.
9433
9434 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
9435
9436 With large parts from Jim Wilson:
9437 PR target/43902
9438 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
9439 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
9440 * optabs.c (optab_for_tree_code): Likewise.
9441 (expand_widen_pattern_expr): Likewise.
9442 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
9443 out of execute_optimize_widening_mul.
9444 (convert_plusminus_to_widen): New function.
9445 (execute_optimize_widening_mul): Use the two new functions.
9446 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
9447 Remove code to generate widening multiply-accumulate. Add support
9448 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
9449 * gimple-pretty-print.c (dump_ternary_rhs): New function.
9450 (dump_gimple_assign): Call it when appropriate.
9451 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
9452 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
9453 (expand_gimple_stmt_1): Likewise.
9454 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
9455 WIDEN_MULT_MINUS_EXPR.
9456 * tree-ssa-operands.c (get_expr_operands): Likewise.
9457 * tree-inline.c (estimate_operator_cost): Likewise.
9458 * gimple.c (extract_ops_from_tree_1): Renamed from
9459 extract_ops_from_tree. Add new arg for a third operand; fill it.
9460 (gimple_build_assign_stat): Support operations with three operands.
9461 (gimple_build_assign_with_ops_stat): Likewise.
9462 (gimple_assign_set_rhs_from_tree): Likewise.
9463 (gimple_assign_set_rhs_with_ops_1): Renamed from
9464 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
9465 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
9466 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
9467 WIDEN_MULT_MINUS_EXPR.
9468 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
9469 (extract_ops_from_tree_1): Adjust declaration.
9470 (gimple_assign_set_rhs_with_ops_1): Likewise.
9471 (gimple_build_assign_with_ops): Pass NULL for last operand.
9472 (gimple_build_assign_with_ops3): New macro.
9473 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
9474 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
9475 functions.
9476 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
9477 (verify_gimple_assign): Call it.
9478 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
9479 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
9480 functions for dealing with three-operand statements.
9481 * tree.c (commutative_ternary_tree_code): New function.
9482 * tree.h (commutative_ternary_tree_code): Declare it.
9483 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
9484 ternary statements.
9485 (gimple_assign_nonzero_warnv_p): Likewise.
9486 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
9487 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
9488 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
9489 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
9490 (struct hashtable_expr): New member ternary in the union.
9491 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
9492 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
9493 (iterative_hash_hashable_expr): Likewise.
9494 (print_expr_hash_elt): Handle EXPR_TERNARY.
9495 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
9496 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
9497 statements. Handle GIMPLE_TERNARY_RHS.
9498
9499 2010-06-25 Jan Hubicka <jh@suse.cz>
9500
9501 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
9502
9503 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
9504
9505 PR c/44517
9506 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
9507 parameters are not good.
9508 (c_parser_parameter_declaration): Error unknown type name if the type
9509 name can't start declaration specifiers.
9510
9511 2010-06-25 Joseph Myers <joseph@codesourcery.com>
9512
9513 * gcc.c (translate_options): Don't mention +e in comment.
9514 (process_command): Don't handle +e specially.
9515
9516 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
9517
9518 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
9519
9520 * ira-build.c (merge_hard_reg_conflicts): New function.
9521 (create_cap_allocno, copy_info_to_removed_store_destinations,
9522 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
9523 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
9524 (remove_unnecessary_allocnos, remove_low_level_allocnos)
9525 copy_nifo_to_removed_store_destination): Use them.
9526 * ira-lives.c (make_hard_regno_born): New function, split out of
9527 make_regno_born.
9528 (make_allocno_born): Likewise.
9529 (make_hard_regno_dead): New function, split out of make_regno_dead.
9530 (make_allocno_dead): Likewise.
9531 (inc_register_pressure): New function, split out of set_allocno_live.
9532 (dec_register_pressure): New function, split out of clear_allocno_live.
9533 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
9534 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
9535 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
9536 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
9537 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
9538 mark_pseudo_regno_live.
9539 (process_bb_node_lives): Use mark_pseudo_regno_live,
9540 make_hard_regno_born and make_allocno_dead.
9541 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
9542 set_allocno_live, clear_allocno_live): Delete functions.
9543
9544 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
9545 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
9546 functions.
9547 (ira_flattening): Use ira_parent_allocno.
9548 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
9549 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
9550
9551 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
9552 statement.
9553
9554 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
9555 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
9556 minmax_set_iter_cond, minmax_set_iter_next,
9557 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
9558 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
9559 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
9560 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
9561 uses changed.
9562
9563 * ira-int.h (struct live_range, live_range_t): Renamed from struct
9564 ira_allocno_live_range and allocno_live_range_t; all uses changed.
9565 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
9566 All uses changed.
9567
9568 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
9569
9570 * thumb2.md (thumb2_tlobits_cbranch): Delete.
9571 (peephole2 to convert zero_extract/compare of single bit to
9572 lshift/compare): New.
9573
9574 2010-06-24 Anatoly Sokolov <aesok@post.ru>
9575
9576 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
9577 recursive call and call to 'int_const_binop'.
9578 (build_range_check, fold_cond_expr_with_comparison, unextend,
9579 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
9580 multiple_of_p): Adjust call to const_binop.
9581
9582 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
9583
9584 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
9585 determine size of XFmode operand.
9586 (XFmode extended DFmode push splitter): Ditto.
9587 (XFmode extended SFmode push splitter): Ditto.
9588
9589 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
9590
9591 PR target/44588
9592 * config/i386/i386.md (extract_code): New.
9593 (<u>divmodqi4): Likewise.
9594 (divmodhiqi3): Likewise.
9595 (udivmodhiqi3): Likewise.
9596 (<u>divqi3): Remvoved.
9597
9598 2010-06-24 Jakub Jelinek <jakub@redhat.com>
9599
9600 PR middle-end/44492
9601 * recog.h (struct recog_data): Add is_asm field.
9602 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
9603 present in constraints of inline-asm operand and memory operand
9604 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
9605 (extract_insn): Initialize recog_data.is_asm.
9606 * doc/md.texi (Constraints): Document operand side-effect rules.
9607
9608 2010-06-24 Andi Kleen <ak@linux.intel.com>
9609
9610 * c-parser.c (c_parser_conditional_expression): Call
9611 warn_for_omitted_condop.
9612 * doc/invoke.texi: Document omitted condop warning.
9613
9614 2010-06-24 Nick Clifton<nickc@redhat.com>
9615
9616 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
9617 insn in the sequence is a jump insn before setting its label.
9618
9619 2010-06-24 Alan Modra <amodra@gmail.com>
9620
9621 * collect2.c (main): Match exactly --version and --help.
9622
9623 2010-06-24 DJ Delorie <dj@redhat.com>
9624
9625 * config/m32c/m32c-pragma.c: Don't include rtl.h.
9626
9627 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
9628
9629 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
9630 using X87MODEF mode iterator.
9631 (pushsf splitter): Macroize splitter using P mode iterator.
9632 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
9633 mode iterator.
9634
9635 (*movxf_internal): Rename from *movxf_integer.
9636 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
9637 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
9638 (*movdf_internal): Rename from *movdf_integer.
9639 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
9640 (*movsf_internal): Rename from *movdf_1.
9641
9642 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
9643
9644 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
9645 (const_gimple_seq_node): Removed typedefs.
9646
9647 * gimple.h (gimple_seq_node_d, gimple_seq_node)
9648 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
9649
9650 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
9651
9652 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
9653 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
9654 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
9655 and CODE_FOR_vec_extract_lo_v4df.
9656
9657 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
9658 Changed to define_insn_and_split.
9659 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
9660 (vec_extract_lo_v16hi): Likewise.
9661 (vec_extract_lo_v32qi): Likewise.
9662 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
9663 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
9664
9665 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
9666
9667 PR target/44640
9668 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
9669 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
9670 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
9671 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
9672 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
9673
9674 PR target/44640
9675 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
9676
9677 PR other/44644
9678 * df-core.c (struct df): Rename to df_d.
9679 * df.h (struct df): Likewise.
9680 * dse.h (struct df): Remove forward declaration.
9681 * recog.h (struct insn_data): Rename to:
9682 (struct_insn_data_d). Adjusted all users.
9683
9684 2010-06-23 Arnaud Charlet <charlet@adacore.com
9685
9686 PR ada/22220
9687 * doc/install.texi: Update requirements to build GNAT.
9688
9689 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
9690
9691 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
9692 enum type.
9693 (m68k_sched_attr_opx_type): Remove unreachable return.
9694 (m68k_sched_attr_opy_type): Likewise.
9695 (m68k_sched_attr_size): Likewise.
9696 (sched_get_opxy_mem_type): Likewise.
9697 (m68k_sched_attr_op_mem): Likewise.
9698
9699 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
9700
9701 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
9702 new statement and adjust VDEF only if necessary. Remove superfluous
9703 call to maybe_clean_or_replace_eh_stmt.
9704 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
9705 copy the flags.
9706 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
9707 * tree-inline.c (copy_bb): ...and not there.
9708
9709 2010-06-22 Cary Coutant <ccoutant@google.com>
9710
9711 * dwarf2out.c (is_nested_in_subprogram): New function.
9712 (should_move_die_to_comdat): Use it.
9713 (copy_ancestor_tree): Don't mark DIEs here.
9714 (copy_decls_walk): Start walk from root of newly-added tree;
9715 mark DIEs here instead.
9716
9717 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
9718
9719 * config/i386/i386.md (unit): Also check sseishft1.
9720
9721 2010-06-22 Jan Hubicka <jh@suse.cz>
9722
9723 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
9724 enabled.
9725
9726 2010-06-22 Jan Hubicka <jh@suse.cz>
9727
9728 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
9729 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
9730 Return true if something changed.
9731 * df.h (df_confluence_function_n): Return bool.
9732 * df-core.c (df_worklist_propagate_forward,
9733 df_worklist_propagate_backward): Track changes and ages.
9734 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
9735 track ages.
9736 * dse.c (dse_confluence_n): Return always true.
9737
9738 2010-06-22 Jan Hubicka <jh@suse.cz>
9739
9740 * bitmap.c (bitmap_clear_bit): Micro optimize.
9741
9742 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
9743
9744 * config/i386/i386.md (SWI1248x): New mode iterator.
9745 (SWI48x): Ditto.
9746 (SWI12): Ditto.
9747 (SWI24): Ditto.
9748
9749 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
9750 SWI1248x mode iterator.
9751 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
9752 using SWI124 mode iterator.
9753 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
9754 mode iterator.
9755 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
9756 *pushdi2_prologue_rex64 using P mode iterator.
9757 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
9758 using SWI48 mode iterator.
9759 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
9760 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
9761 using SWI1248x mode iterator.
9762 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
9763 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
9764 SWI48 mode iterator.
9765 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
9766 iterator.
9767 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
9768 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
9769 SWI12 mode iterator.
9770 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
9771 SWI12 mode iterator.
9772 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
9773 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
9774 SWI24 mode iterator.
9775 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
9776 SWI48 mode iterator.
9777 (mov<mode>_insn_1): New expander.
9778 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
9779 using SWI48x mode iterator.
9780
9781 (*movoi_internal_avx): Rename from *movoi_internal.
9782 (*movti_internal_rex64): Rename from *movti_rex64.
9783 (*movti_internal_sse): Rename from *movti_sse.
9784 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
9785 (*movdi_internal): Rename from *movdi_2.
9786 (*movsi_internal): Rename from *movsi_1.
9787 (*movhi_internal): Rename from *movhi_1.
9788 (*movqi_internal): Rename from *movqi_1.
9789
9790 (insv): Update the call to gen_movsi_insv_1 for rename.
9791 * config/i386/i386.c (promote_duplicated_reg): Ditto.
9792
9793 2010-06-22 Jan Hubicka <jh@suse.cz>
9794
9795 * passes.c (execute_function_todo): Move call of statistics_fini_pass
9796 to ...
9797 (execute_todo) ... this one.
9798
9799 2010-06-22 Alan Modra <amodra@gmail.com>
9800
9801 PR target/44364
9802 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9803 * caller-save.c (insert_restore, insert_save): Use non-validate
9804 form of adjust_address.
9805
9806 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9807
9808 PR target/39690
9809 * config/pa/pa.c (override_options): Disable
9810 -freorder-blocks-and-partition.
9811
9812 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
9813
9814 PR target/44615
9815 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
9816
9817 * config/i386/i386.md (type): Add sseishft1
9818
9819 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
9820 (ppro_insn_load): Likewise.
9821 (ppro_insn_store): Likewise.
9822 (ppro_insn_both): Likewise.
9823
9824 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
9825 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
9826 for type.
9827 (*vec_extractv2di_1_avx): Likewise.
9828 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
9829 type. Remove atom_unit.
9830 (*vec_extractv2di_1_sse2): Likewise.
9831
9832 2010-06-21 DJ Delorie <dj@redhat.com>
9833
9834 * diagnostic.h (diagnostic_classification_change_t): New.
9835 (diagnostic_context): Add history and push/pop list.
9836 (diagnostic_push_diagnostics): Declare.
9837 (diagnostic_pop_diagnostics): Declare.
9838 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
9839 from pragmas in a history chain instead of the global table.
9840 (diagnostic_push_diagnostics): New.
9841 (diagnostic_pop_diagnostics): New.
9842 (diagnostic_report_diagnostic): Scan history chain to find state
9843 of diagnostics as of the diagnostic location.
9844 * opts.c (set_option): Pass UNKNOWN_LOCATION to
9845 diagnostic_classify_diagnostic.
9846 (enable_warning_as_error): Likewise.
9847 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
9848 use in the history chain.
9849 * doc/extend.texi: Document pragma GCC diagnostic changes.
9850
9851 2010-06-21 Jakub Jelinek <jakub@redhat.com>
9852
9853 * dwarf2out.c (add_linkage_name): New function. Don't add
9854 anything to DW_TAG_member DIEs.
9855 (add_name_and_src_coords_attributes): Use it.
9856 (gen_variable_die): Call it for C++ static data members if
9857 specification is DW_TAG_member.
9858
9859 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
9860 C++ char16_t and char32_t.
9861
9862 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
9863 * genattrtab.c: Include vecprim.h.
9864 (cached_attrs, cached_attr_count, attrs_seen_once,
9865 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
9866 attrs_cached_after): New variables.
9867 (find_attrs_to_cache): New function.
9868 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
9869 (write_test_expr): Add attrs_cached argument, return it too,
9870 attempt to cache non-const attributes used more than once in
9871 a single case handling.
9872 (write_attr_get): Use find_attrs_to_cache, for caching candidates
9873 emit cached_* variables. Adjust write_attr_set callers.
9874 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
9875 to find attributes that should be cached in this block. Adjust
9876 write_test_expr callers.
9877 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
9878 callers.
9879 (make_automaton_attrs): Adjust write_test_expr caller.
9880
9881 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
9882 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
9883 (make_automaton_attrs): If find_tune_attr returns non-NULL,
9884 write separate internal_dfa_insn_code_* and insn_default_latency_*
9885 functions for each attribute's value and emit init_sched_attrs
9886 function and function pointers.
9887 * genattr.c (const_attrs, reservations): New variables.
9888 (gen_attr): Add const attributes to const_attrs vector.
9889 (check_tune_attr, find_tune_attr): New functions.
9890 (main): Add reservations to reservations vector. If find_tune_attr
9891 returns true, add prototype for init_sched_attrs and make
9892 internal_dfa_insn_code and insn_default_latency function pointers,
9893 otherwise define init_sched_attrs as dummy macro.
9894 * cfgexpand.c: Include insn-attr.h.
9895 (gimple_expand_cfg): Call init_sched_attrs.
9896
9897 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
9898
9899 PR target/44575
9900 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
9901 va_arg from a set of register save slots into a temporary,
9902 if the container is bigger than type size, do the copying
9903 using smaller mode or using memcpy.
9904
9905 PR bootstrap/44426
9906 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
9907 prototype.
9908 (sel_print_to_dot): Remove macro.
9909 (sel_print): Likewise. New prototype.
9910 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
9911 (sel_print): New function.
9912
9913 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9914
9915 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
9916 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
9917
9918 2010-06-21 Nick Clifton <nickc@redhat.com>
9919
9920 * config/rx/rx.h (PTRDIFF_TYPE): Define.
9921 (SMALL_REGISTER_CLASS): Define (to zero).
9922 (PRINT_OPERAND): Delete.
9923 (PRINT_OPERAND_ADDRESS): Delete.
9924 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
9925 (rx_print_operand_address): Delete prototype.
9926 * config/rx/rx.c (rx_print_operand): Make static.
9927 Allow %H and %L to handle CONST_DOUBLEs.
9928 (rx_print_operand_address): Make static.
9929 (rx_gen_move_template): Rename local variable 'template' to
9930 out_template.
9931 (rx_function_arg): Do not pass unknown sized objects in registers.
9932 (TARGET_PRINT_OPERAND): Define.
9933 (TARGET_PRINT_OPERAND_ADDRESS): Define.
9934
9935 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9936
9937 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
9938
9939 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
9940
9941 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
9942 stack-alignment for simple leaf-functions.
9943
9944 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
9945
9946 * doc/install.texi: Document bootstrap-lto.
9947
9948 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
9949
9950 PR debug/44248
9951 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
9952 (input_function): Drop them here, if VTA is disabled.
9953
9954 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
9955
9956 PR target/44546
9957 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
9958 New predicate.
9959 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
9960 ix86_swapped_fp_comparsion_operator instead of
9961 ix86_fp_comparison_operator.
9962
9963 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
9964 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
9965 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
9966 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
9967 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
9968 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
9969
9970 2010-06-20 Joseph Myers <joseph@codesourcery.com>
9971
9972 PR other/32998
9973 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
9974 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
9975 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
9976 (decode_cmdline_option): Update for this return value. Set
9977 orig_option_with_args_text field. Set arg field for unknown
9978 options. Make static.
9979 (decode_cmdline_options_to_array): New.
9980 (prune_options): Update handling of find_opt return value.
9981 * opts.c (read_cmdline_option): Take decoded option. Return void.
9982 (read_cmdline_options): Take decoded options.
9983 (decode_options): Add parameters for decoded options. Use
9984 decode_cmdline_options_to_array. Use decoded options for -O
9985 scan. Use integral_argument for -O parameters. Update call to
9986 read_cmdline_options.
9987 (enable_warning_as_error): Update handling of find_opt return value.
9988 * opts.h: Update comment on unknown options.
9989 (struct cl_decoded_option): Update comments on opt_index and arg.
9990 Add orig_option_with_args_text.
9991 (decode_cmdline_option): Remove.
9992 (decode_cmdline_options_to_array): Declare.
9993 (decode_options): Update prototype.
9994 * toplev.c (save_argv): Remove.
9995 (save_decoded_options, save_decoded_options_count): New.
9996 (read_integral_parameter): Remove.
9997 (print_switch_values): Use decoded options.
9998 (toplev_main): Don't set save_argv. Update call to decode_options.
9999 * toplev.h (read_integral_parameter): Remove.
10000 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
10001
10002 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
10003
10004 PR target/44072
10005 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
10006 immediate.
10007 * constraints.md (Pw, Px): New constraints.
10008 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
10009
10010 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
10011
10012 * config/i386/sse.md (fma4modesuffixf4): Removed.
10013 (ssemodesuffixf2s): Likewise.
10014 (ssemodesuffixf4): Likewise.
10015 (ssemodesuffixf2c): Likewise.
10016 (ssescalarmodesuffix2s): Likewise.
10017 (avxmodesuffixf2c): Likewise.
10018 (ssemodesuffix): New.
10019 (ssescalarmodesuffix): Likewise.
10020 Update patterns with ssemodesuffix and ssescalarmodesuffix.
10021
10022 2010-06-19 Philip Herron <herron.philip@googlemail.com>
10023
10024 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
10025
10026 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
10027
10028 * stor-layout.c (debug_rli): Remove unused local variables.
10029
10030 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
10031
10032 PR rtl-optimization/40900
10033 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
10034 original expression for later reuse.
10035 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
10036 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
10037
10038 2010-06-18 Anatoly Sokolov <aesok@post.ru>
10039
10040 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
10041 double_int_fits_in_uhwi_p): Implement as static inline.
10042 (double_int_xor): New inline function.
10043 (double_int_lrotate, double_int_rrotate, double_int_max,
10044 double_int_umax, double_int_smax, double_int_min, double_int_umin,
10045 double_int_smin): Declare.
10046 (lrotate_double, rrotate_double): Remove declaration.
10047 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
10048 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
10049 (double_int_lrotate, double_int_rrotate, double_int_max,
10050 double_int_umax, double_int_smax, double_int_min, double_int_umin,
10051 double_int_smin): New function.
10052 * fold-const.c (int_const_binop): Clean up, use double_int_*
10053 functions.
10054 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
10055 double_int_* and immed_double_int_const functions.
10056
10057 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
10058
10059 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
10060 * function.c (types_used_by_cur_var_decl): Likewise.
10061 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
10062
10063 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
10064
10065 * tree.h (record_layout_info): Change type of pending_statics field
10066 to a VEC.
10067 * stor-layout.c (start_record_layout): Store NULL into
10068 pending_statics.
10069 (debug_rli): Call debug_vec_tree instead of debug_tree.
10070 (place_field): Likewise.
10071 (finish_record_layout): Likewise.
10072
10073 2010-06-18 Alan Modra <amodra@gmail.com>
10074
10075 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
10076
10077 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10078
10079 PR target/43740
10080 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
10081 for SET source operand from SET destination operand.
10082
10083 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
10084
10085 PR rtl-optimization/39871
10086 * reload1.c (init_eliminable_invariants): For flag_pic, disable
10087 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
10088 (function_invariant_p): Rule out a plus of frame or arg pointer with
10089 a SYMBOL_REF.
10090 * ira.c (find_reg_equiv_invariant_const): Likewise.
10091
10092 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
10093
10094 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
10095 print_operand_address and puts to output the operand for CONST.
10096
10097 2010-06-17 Jakub Jelinek <jakub@redhat.com>
10098
10099 PR debug/44572
10100 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
10101 hook.
10102
10103 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
10104
10105 * v850-protos.h (print_operand): Delete.
10106 (print_operand_address): Delete.
10107 * v850.h (PRINT_OPERAND): Delete.
10108 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10109 (PRINT_OPERAND_ADDRESS): Delete.
10110 * v850.c (print_operand_address): Rename to...
10111 (v850_print_operand_address): ...this. Make static. Call
10112 v850_print_operand.
10113 (print_operand): Rename to...
10114 (v850_print_operand): ...this. Make static. Call
10115 v850_print_operand_address.
10116 (v850_print_operand_punct_valid_p): New function.
10117 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10118 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10119
10120 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
10121
10122 * config/sh/sh-protos.h (print_operand): Delete.
10123 (print_operand_address): Delete.
10124 * config/sh/sh.h (PRINT_OPERAND): Delete.
10125 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10126 (PRINT_OPERAND_ADDRESS): Delete.
10127 * config/sh/sh.c (sh_print_operand_address): Make static.
10128 (sh_print_operand): Make static. Call sh_print_operand_address
10129 and sh_print_operand.
10130 (sh_print_operand_punct_valid_p): New function.
10131 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10132 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10133
10134 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
10135
10136 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
10137 (mcore_print_operand_address): Delete.
10138 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
10139 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10140 (PRINT_OPERAND_ADDRESS): Delete.
10141 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
10142 (mcore_print_operand): Make static.
10143 (mcore_print_operand_punct_valid_p): New function.
10144 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
10145 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10146
10147 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
10148
10149 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
10150 (print_operand_address): Delete.
10151 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
10152 (PRINT_OPERAND_ADDRESS): Delete.
10153 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
10154 static.
10155 (m68hc11_print_operand): Make static.
10156 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10157
10158 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
10159
10160 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
10161 (m32r_print_operand_address): Delete.
10162 * config/m32r/m32r.h (m32r_punct_chars): Delete.
10163 (PRINT_OPERAND): Delete.
10164 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10165 (PRINT_OPERAND_ADDRESS): Delete.
10166 * config/m32r/m32r.c (m32r_punct_chars): Make static.
10167 (m32r_print_operand_address): Make static.
10168 (m32r_print_operand): Make static.
10169 (m32r_print_operand_punct_valid_p): New function.
10170 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10171 (TARGET_PRINT_OPERAND_ADDRESS): Define.
10172
10173 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
10174
10175 * config/iq2000/iq2000-protos.h (print_operand): Delete.
10176 (print_operand_address): Delete.
10177 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
10178 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10179 (PRINT_OPERAND_ADDRESS): Delete.
10180 (iq2000_print_operand_punct): Delete.
10181 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
10182 (iq2000_print_operand_address): Make static.
10183 (iq2000_print_operand): Make static.
10184 (iq2000_print_operand_punct_valid_p): New function.
10185 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10186 (TARGET_PRINT_OPERAND_ADDRESS): Define.
10187
10188 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
10189
10190 * config/frv/frv-protos.h (frv_print_operand): Delete.
10191 (frv_print_operand_address): Delete.
10192 * config/frv/frv.h (PRINT_OPERAND): Delete.
10193 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10194 (PRINT_OPERAND_ADDRESS): Delete.
10195 * config/frv/frv.c (frv_print_operand_address): Make static.
10196 (frv_print_operand): Make static.
10197 (frv_print_operand_punct_valid_p): New function.
10198 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10199 (TARGET_PRINT_OPERAND_ADDRESS): Define.
10200
10201 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
10202
10203 * tree.h (vec_member): Declare.
10204 * tree.c (vec_member): Define.
10205
10206 2010-06-17 Richard Guenther <rguenther@suse.de>
10207
10208 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
10209 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
10210
10211 2010-06-17 Richard Guenther <rguenther@suse.de>
10212
10213 * tree-inline.c (declare_return_variable): Remove bogus code.
10214
10215 2010-06-17 Richard Guenther <rguenther@suse.de>
10216
10217 * gimplify.c (gimplify_bind_expr): Always promote complex
10218 and vector variables to registers if possible.
10219
10220 2010-06-17 Richard Guenther <rguenther@suse.de>
10221
10222 * expr.c (get_inner_reference): Use double_int for bit_offset
10223 calculation.
10224
10225 2010-06-16 DJ Delorie <dj@redhat.com>
10226
10227 * common.opt (-fstrict-volatile-bitfields): new.
10228 * doc/invoke.texi: Document it.
10229 * fold-const.c (optimize_bit_field_compare): For volatile
10230 bitfields, use the field's type to determine the mode, not the
10231 field's size.
10232 * expr.c (expand_assignment): Likewise.
10233 (get_inner_reference): Likewise.
10234 (expand_expr_real_1): Likewise.
10235 * expmed.c (store_fixed_bit_field): Likewise.
10236 (extract_bit_field_1): Likewise.
10237 (extract_fixed_bit_field): Likewise.
10238
10239 2010-06-16 Richard Guenther <rguenther@suse.de>
10240
10241 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
10242
10243 2010-06-16 Douglas B Rupp <rupp@gnat.com>
10244
10245 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
10246 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
10247 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
10248 * debug.c: Likewise.
10249 * sdbout.c: Likewise.
10250 * vmsdbgout.c: Likewise.
10251 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
10252 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
10253 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
10254 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
10255 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
10256 * dwarf2out.c (dw_fde_struct): New fields
10257 dw_fde_vms_{end,begin}_prologue.
10258 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
10259 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
10260 (dwarf2out_vms_end_prologue): New function.
10261 (dwarf2out_vms_begin_epilogue): New function.
10262 (dw_val_struct): New value dw_val_class_vms_delta.
10263 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
10264 begin_epilogue for VMS.
10265 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
10266 new static functions.
10267 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
10268 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
10269 static functions.
10270 (print_die): New case dw_val_class_vms_delta.
10271 (attr_checksum): Likewise.
10272 (same_dw_val_p: Likewise.
10273 (size_of_die): Likewise.
10274 (value_format): Likewise.
10275 (output_die): Likewise.
10276 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
10277 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
10278 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
10279 dwarf2out_cfi_begin_epilogue
10280 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
10281
10282 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
10283
10284 * config/cris/cris-protos.h (cris_print_operand): Delete.
10285 (cris_print_operand_address): Delete.
10286 * config/cris/cris.h (PRINT_OPERAND): Delete.
10287 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10288 (PRINT_OPERAND_ADDRESS): Delete.
10289 * config/cris/cris.c (cris_print_operand_address): Make static.
10290 (cris_print_operand): Make static.
10291 (cris_print_operand_punct_valid_p): New function.
10292 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10293 (TARGET_PRINT_OPERAND_ADDRESS): Define.
10294
10295 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
10296
10297 * config/arm/arm-protos.h (arm_print_operand): Delete.
10298 (arm_print_operand_address): Delete.
10299 * config/arm/arm.h (PRINT_OPERAND): Delete.
10300 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10301 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
10302 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
10303 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
10304 (arm_print_operand): Make static.
10305 (arm_print_operand_punct_valid_p): New function.
10306 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10307 (TARGET_PRINT_OPERAND_ADDRESS): Define.
10308
10309 2010-06-16 Nick Clifton <nickc@redhat.com>
10310
10311 * config/rx/constraints.md (NEGint4): New constraint.
10312 * config/rx/rx.md (attr cc): Add set_zsc.
10313 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
10314 initialised.
10315 (cmpsf): Likewise.
10316 (call_internal): Clobber the cc0 register.
10317 (call_value_internal): Likewise.
10318 (cstoresi4): Likewise.
10319 (movsieq): Likewise.
10320 (movsine): Likewise.
10321 (addsi3): Add alternative to handle small negative constants.
10322 (sunsi3): Likewise.
10323 (addsi3): Do not set the O bit in the cc0 register.
10324 (adddi3): Likewise.
10325 (subsi3): Likewise.
10326 (subdi3): Likewise.
10327 (andsi3): Reorder alternatives to prefer shorter forms.
10328 (mulsi3): Likewise.
10329 (iorsi3): Likewise.
10330 (negsi2): Note that the cc0 flags are set.
10331 (rotlsi3): Note that only the Z and S bits are set in cc0.
10332 (lshrsi3): Likewise.
10333 (ashlsi3): Likewise.
10334 (subsf3): Use %Q for the MEM operand.
10335 (fix_truncsfsi2): Likewise.
10336 (floatsisf2): Likewise.
10337 (bitset): Remove early clobber from destination.
10338 (bitset_in_memory): Likewise.
10339 (lrintsf2): Clobber the cc0 register.
10340 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
10341 (rx_print_operand): Handle %N.
10342
10343 2010-06-16 Jan Hubicka <jh@suse.cz>
10344
10345 * df-core.c (df_compact_blocks): Free problem_temps vector.
10346
10347 2010-06-16 Martin Jambor <mjambor@suse.cz>
10348
10349 PR tree-optimization/43905
10350 * tree-sra.c: Include tree-inline.h.
10351 (create_abstract_origin): Removed.
10352 (modify_function): Version the call graph node instead of creating
10353 abstract origins and dealing with same_body aliases.
10354 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
10355 function is versionable.
10356 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
10357
10358 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
10359
10360 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
10361 (CHOOSE_DYNAMIC_LINKER): Update.
10362
10363 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
10364
10365 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
10366 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
10367 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
10368 *prefetch_3dnow_rex.
10369
10370 2010-06-15 Anatoly Sokolov <aesok@post.ru>
10371
10372 * target.h (struct asm_out):Add declare_constant_name field.
10373 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
10374 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
10375 * output.h (default_asm_declare_constant_name): Declare.
10376 (assemble_label): Update prototype.
10377 * varasm.c (assemble_constant_contents): Use
10378 targetm.asm_out.declare_constant_name target hook.
10379 (assemble_label): Add 'file' argument.
10380 (default_asm_declare_constant_name): New function.
10381 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
10382 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
10383 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
10384
10385 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
10386 * config/darwin.c (darwin_asm_declare_constant_name): New function.
10387 (machopic_output_indirection): Update assemble_label argument list.
10388 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
10389 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
10390
10391 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
10392
10393 PR middle-end/44391
10394 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
10395 size_one_node for pointer types. Do not call gmp_cst_to_tree.
10396
10397 2010-06-15 Richard Guenther <rguenther@suse.de>
10398
10399 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
10400
10401 2010-06-15 Paul Brook <paul@codesourcery.com>
10402
10403 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
10404 hard-float ABI.
10405
10406 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
10407
10408 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
10409 don't get a vector type for output.
10410
10411 2010-06-15 Jakub Jelinek <jakub@redhat.com>
10412
10413 PR fortran/44536
10414 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
10415 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
10416 (LANG_HOOKS_DECLS): Add it.
10417 * gimplify.c (omp_notice_variable): Call
10418 lang_hooks.decls.omp_report_decl.
10419
10420 2010-06-15 Martin Jambor <mjambor@suse.cz>
10421
10422 PR lto/44464
10423 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
10424 on the newly dead SSA name.
10425
10426 2010-06-15 Alan Modra <amodra@gmail.com>
10427
10428 * doc/invoke.texi: Add mcmodel to powerpc options.
10429 * configure.ac: Add HAVE_LD_LARGE_TOC test.
10430 * configure: Regenerate.
10431 * config.in: Regenerate.
10432 * config/rs6000/linux64.opt (mcmodel): New.
10433 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
10434 (TARGET_CMODEL, SET_CMODEL): Define.
10435 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
10436 select CMODEL_MEDIUM default.
10437 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
10438 (TARGET_CMODEL): Define default.
10439 * config/rs6000/rs6000.c (cmodel): New variable.
10440 (rs6000_explicit_options): Add cmodel field.
10441 (rs6000_handle_option): Handle -mcmodel.
10442 (create_TOC_reference): Add largetoc_reg param. Generate high,
10443 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
10444 (rs6000_delegitimize_address): Recognise new toc reference rtl
10445 and minimal-toc rtl.
10446 (rs6000_legitimize_reload_address): Handle new toc references.
10447 (print_operand_address): Handle legitimate_constant_pool_address_p
10448 match before lo_sum.
10449 (rs6000_eliminate_indexed_memrefs): Tidy.
10450 (rs6000_emit_move): Tweak threshold for inlining constants.
10451 Keep rs6000_emit_allocate_stack large stack frame offsets
10452 loaded into r0 inline.
10453 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
10454 (tocrel_base, tocrel_offset): New variables.
10455 (toc_relative_expr_p): Set them here.
10456 (print_operand_address): Skip over any offset on constant pool address.
10457 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
10458 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
10459 (offsettable_ok_by_alignment): New function.
10460 (rs6000_emit_move): Address suitably aligned local symbol_refs
10461 relative to the toc pointer for -mcmodel=medium.
10462 (legitimate_constant_pool_address_p): Make param const_rtx. Add
10463 strict param. Allow lo_sum version of addressing. Verify reg
10464 used for -mminimal-toc and -mcmodel != small. Update all callers.
10465 * config/rs6000/constraints.md: Update for above change.
10466 * config/rs6000/predicates.md: Likewise.
10467 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
10468 code.
10469 (tls_gd): Split for -mcmodel=medium/large.
10470 (tls_gd_high, tls_gd_low): New.
10471 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
10472 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
10473 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
10474 (largetoc_high, largetoc_low): New.
10475 (cmptf_internal2): Add clobber.
10476 * config/rs6000/rs6000-protos.h: Update.
10477
10478 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
10479
10480 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
10481 true if no prefetch is going to be generated for a given group.
10482 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
10483 estimate the prefetch_count.
10484 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
10485 prefetch count by considering the unroll_factor and prefetch_mod
10486 for is_loop_prefetching_profitable.
10487
10488 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
10489
10490 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
10491 anything if the argument is not a MEM.
10492
10493 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
10494
10495 PR debug/43650
10496 PR debug/44181
10497 PR debug/44247
10498 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
10499 debug stmts.
10500 (canonicalize_loop_ivs): Likewise.
10501
10502 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
10503
10504 PR debug/43656
10505 * haifa-sched.c (setup_insn_reg_pressure_info,
10506 update_register_pressure): Reject debug insns.
10507 (ready_sort): Don't setup reg pressure for debug insns.
10508 (schedule_insn): Don't update reg pressure for debug insns.
10509
10510 2010-06-14 Richard Guenther <rguenther@suse.de>
10511
10512 * lto-streamer.c (cached_bp): Remove.
10513 (bitpack_delete): Likewise.
10514 (bitpack_create): Likewise.
10515 (bp_get_next_word): Likewise.
10516 (bp_pack_value, bp_unpack_value): Move ...
10517 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
10518 Re-implement.
10519 (struct bitpack_d): Likewise.
10520 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
10521 New inline functions.
10522 * lto-streamer-out.c (lto_output_bitpack): Remove.
10523 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
10524 (pack_value_fields): Adjust.
10525 (lto_write_tree): Likewise.
10526 (output_gimple_stmt): Likewise.
10527 (output_function): Likewise.
10528 * lto-streamer-in.c (input_gimple_stmt): Adjust.
10529 (input_function): Likewise.
10530 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
10531 (lto_input_bitpack): Remove.
10532 (lto_materialize_tree): Adjust.
10533 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
10534 * lto-cgraph.c (lto_output_edge): Adjust.
10535 (lto_output_node): Likewise.
10536 (lto_output_varpool_node): Likewise.
10537 (lto_output_ref): Likewise.
10538 (input_node): Likewise.
10539 (input_varpool_node): Likewise.
10540 (input_ref): Likewise.
10541 (input_edge): Likewise.
10542 (output_node_opt_summary): Likewise.
10543 (input_node_opt_summary): Likewise.
10544 * ipa-pure-const.c (pure_const_write_summary): Likewise.
10545 (pure_const_read_summary): Likewise.
10546 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
10547 (ipa_read_indirect_edge_info): Likewise.
10548 (ipa_write_node_info): Likewise.
10549 (ipa_read_node_info): Likewise.
10550
10551 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
10552
10553 PR target/44534
10554 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
10555 (vec_extract_lo_v16hi): Likewise.
10556 (vec_extract_lo_v32qi): Likewise.
10557
10558 2010-06-14 Jakub Jelinek <jakub@redhat.com>
10559
10560 PR bootstrap/44426
10561 * tree.h (build_call_expr): Don't define as vararg macro, instead
10562 add a prototype.
10563 * builtins.c (build_call_nofold): Remove.
10564 (expand_builtin_int_roundingfn, expand_builtin_pow,
10565 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
10566 expand_builtin_memset_args, expand_builtin_strcmp,
10567 expand_builtin_strncmp, expand_builtin_memory_chk): Use
10568 build_call_nofold_loc instead of build_call_nofold.
10569 (build_call_expr): New function.
10570
10571 PR tree-optimization/44508
10572 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
10573 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
10574 don't eliminate trivially dead stmts.
10575 * tree-vrp.c (vrp_finalize): Pass false as last argument
10576 to substitute_and_fold.
10577 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
10578 to substitute_and_fold.
10579 * tree-ssa-ccp.c (ccp_finalize): Likewise.
10580
10581 PR bootstrap/44509
10582 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
10583
10584 2010-06-14 Ira Rosen <irar@il.ibm.com>
10585
10586 PR tree-optimization/44507
10587 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
10588 to build initial vector for BIT_AND_EXPR.
10589 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
10590
10591 2010-06-14 Jakub Jelinek <jakub@redhat.com>
10592
10593 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
10594 adjust z10prop set_attr.
10595
10596 2010-06-13 Jan Hubicka <jh@suse.cz>
10597
10598 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
10599 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
10600 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
10601 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
10602 datastructure checks into checking asserts.
10603 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
10604 * tree-ssa-sccvn.c (VN_INFO): Likewise.
10605 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
10606 df_ref_create_structure): Likewise.
10607 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
10608 pool_free): Use gcc_checking_assert.
10609 * alias.c (get_alias_set): Likewise.
10610 * var-tracking.c (variable_htab_free, shared_hash_copy,
10611 canonicalize_values_mark, variable_merge_over_cur): Likewise.
10612 * lto-streamer.c (bp_unpack_value): Likewise.
10613
10614 2010-06-13 Richard Guenther <rguenther@suse.de>
10615
10616 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
10617 Do not stream but initialize TYPE_CANONICAL to NULL.
10618 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
10619 * gimple.c (gimple_types_compatible_p): Disregard
10620 TYPE_STRUCTURAL_EQUALITY_P.
10621 (gimple_register_type): Use TYPE_CANONICAL as cache.
10622 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
10623 before registering common types.
10624 * config/i386/i386.c (ix86_function_arg_boundary): Do not
10625 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
10626 * tree.h (TYPE_CANONICAL): Clarify documentation.
10627
10628 2010-06-13 Anatoly Sokolov <aesok@post.ru>
10629
10630 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10631 LIBCALL_VALUE): Remove macros.
10632 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
10633 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10634 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10635 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
10636 (ia64_function_value): Make static. Handle receiving the function
10637 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
10638
10639 2010-06-12 Jan Hubicka <jh@suse.cz>
10640
10641 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
10642 at correct place.
10643
10644 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
10645
10646 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
10647
10648 2010-06-12 Jan Hubicka <jh@suse.cz>
10649
10650 * df-core.c (df_clear_bb_info): New function.
10651 (df_set_blocks): bb_info is always allocated.
10652 (df_get_bb_info): Use block_info_elt_size.
10653 (df_set_bb_info): Likewise.
10654 (df_compact_blocks): Update for new block_info.
10655 (grow_bb_info): New function.
10656 * df-problems.c (df_grow_bb_info): Move to df-core.c
10657 (df_rd_set_bb_info): Remove.
10658 (df_rd_free_bb_info): Do not free block pool.
10659 (df_rd_alloc): Do not create pool, use check for
10660 obstack presence instead of NULL pointer for new blocks.
10661 (df_rd_free): DO not free alloc pool; clear block_info.
10662 (problem_RD): Add size of block info structure.
10663 (df_lr_set_bb_info): Remove.
10664 (df_lr_free_bb_info): Do not free block pool.
10665 (df_lr_alloc): Do not create pool, use check for
10666 obstack presence instead of NULL pointer for new blocks.
10667 (df_lr_free): DO not free alloc pool; clear block_info.
10668 (problem_LR): Add size of block info structure.
10669 (df_live_set_bb_info): Remove.
10670 (df_live_free_bb_info): Do not free block pool.
10671 (df_live_alloc): Do not create pool, use check for
10672 obstack presence instead of NULL pointer for new blocks.
10673 (df_live_free): DO not free alloc pool; clear block_info.
10674 (problem_LIVE): Add size of block info structure.
10675 (problem_CHAIN): Add size of block info structure.
10676 (df_byte_lr_set_bb_info): Remove.
10677 (df_byte_lr_free_bb_info): Do not free block pool.
10678 (df_byte_lr_alloc): Do not create pool, use check for
10679 obstack presence instead of NULL pointer for new blocks.
10680 (df_byte_lr_free): DO not free alloc pool; clear block_info.
10681 (problem_BYTE_LR): Add size of block info structure.
10682 (problem_NOTE): Add size of block info structure.
10683 (df_byte_MD_set_bb_info): Remove.
10684 (df_byte_MD_free_bb_info): Do not free block pool.
10685 (df_byte_MD_alloc): Do not create pool, use check for
10686 obstack presence instead of NULL pointer for new blocks.
10687 (df_byte_MD_free): DO not free alloc pool; clear block_info.
10688 (problem_BD): Add size of block info structure.
10689 * df-scan.c (df_scan_free_internal): Free block pool.
10690 (df_scan_set_bb_info): Remove.
10691 (df_scan_free_bb_info): Check for artificial_defs instead
10692 of bb_info being non-NULL.
10693 (df_scan_alloc): DO not create df_scan_block pool.
10694 (problem_SCAN): Set size of block info.
10695 (df_bb_refs_record): Do not allocate bb_info.
10696 * df.h (df_problem): Add block_info_elt_size.
10697 (struct dataflow): Change block_info to void *.
10698 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
10699 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
10700 in-line structures.
10701
10702 2010-06-12 Jan Hubicka <jh@suse.cz>
10703
10704 PR tree-optimize/44485
10705 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
10706 containing use of return value of noreturn function.
10707
10708 2010-06-12 Anatoly Sokolov <aesok@post.ru>
10709
10710 * targhooks.c (default_function_value): Don't use
10711 FUNCTION_OUTGOING_VALUE.
10712 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
10713 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
10714
10715 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
10716
10717 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
10718 Add crtfastmath.o to extra_parts.
10719 * config/mips/crtfastmath.c: New.
10720 * config/mips/linux.h (ENDFILE_SPEC): New.
10721
10722 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
10723
10724 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
10725 old_type in parameter.
10726 (gcc_type_for_value): Update call to gcc_type_for_interval.
10727 (compute_type_for_level_1): Renamed compute_type_for_level.
10728 Update call to gcc_type_for_interval.
10729
10730 2010-06-11 Joseph Myers <joseph@codesourcery.com>
10731
10732 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
10733 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
10734
10735 2010-06-11 Joseph Myers <joseph@codesourcery.com>
10736
10737 * opts-common.c: Include options.h.
10738 (integral_argument): Move from opts.c.
10739 (decode_cmdline_option): New. Based on read_cmdline_option.
10740 * opts.c (integral_argument): Move to opts-common.c.
10741 (read_cmdline_option): Move most contents to
10742 decode_cmdline_option. Use %qs in diagnostics.
10743 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
10744 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
10745 decode_cmdline_option): New.
10746
10747 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
10748
10749 PR target/44481
10750 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
10751 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
10752 (partiysi2_cmp): Ditto.
10753 (*partiyhi2_cmp): Ditto.
10754 (*parityqi2_cmp): Remove.
10755
10756 2010-06-11 Jan Hubicka <jh@suse.cz>
10757
10758 * bitmap.h (bmp_iter_next_bit): New.
10759 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
10760
10761 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
10762 Eric Botcazou <ebotcazou@adacore.com>
10763
10764 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
10765 computed cost.
10766
10767 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
10768
10769 * config/i386/i386.md (unspec): New define_c_enum.
10770 (unspecv): Ditto.
10771
10772 2010-06-10 Jakub Jelinek <jakub@redhat.com>
10773
10774 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
10775
10776 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
10777
10778 PR middle-end/44483
10779 * tree-if-conv.c (bb_predicate_s): New struct.
10780 (bb_predicate_p): New.
10781 (bb_has_predicate): New.
10782 (bb_predicate): New.
10783 (set_bb_predicate): New.
10784 (bb_predicate_gimplified_stmts): New.
10785 (set_bb_predicate_gimplified_stmts): New.
10786 (add_bb_predicate_gimplified_stmts): New.
10787 (init_bb_predicate): New.
10788 (free_bb_predicate): New.
10789 (is_predicated): Use bb_predicate.
10790 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
10791 (predicate_bbs): Same. Gimplify the condition of the basic blocks
10792 before processing their successors.
10793 (clean_predicate_lists): Removed.
10794 (find_phi_replacement_condition): Use bb_predicate.
10795 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
10796 computations.
10797 (insert_gimplified_predicates): New.
10798 (combine_blocks): Call insert_gimplified_predicates.
10799 (tree_if_conversion): Call free_bb_predicate instead of
10800 clean_predicate_lists.
10801
10802 2010-10-11 Paul Brook <paul@codesourcery.com>
10803
10804 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
10805 * config/arm/arm.c (all_architectures): Change v7e-m default to
10806 cortexm4.
10807 * config/arm/arm-cores.def: Add cortex-m4.
10808 * config/arm/arm-tune.md: Regenerate.
10809
10810 2010-06-11 Jan Hubicka <jh@suse.cz>
10811
10812 * ipa-pure-const.c (special_builtlin_state): New function.
10813 (check_call): Use it instead of special casign BUILT_IN_RETURN.
10814 (propagate_pure_const): Use it.
10815
10816 2010-06-11 Jan Hubicka <jh@suse.cz>
10817
10818 * df-problems.c (df_live_scratch): Convert to bitmap_head.
10819 (df_live_alloc): Initialize df_live_scratch when initializing
10820 problem_data.
10821 (df_live_transfer_function): Update uses of df_live_scratch.
10822 (df_live_free): Free problem_data; clear df_live_scratch before
10823 releasing the obstack.
10824 (df_md_free): Free problem data.
10825
10826 2010-06-11 Jan Hubicka <jh@suse.cz>
10827
10828 * doc/invoke.texi (Wsuggest-attribute): Document.
10829 (Wmissing-noreturn): Remove.
10830 * ipa-pure-const.c (warn_function_noreturn): New function.
10831 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
10832 warn_missing_noreturn.
10833 * common.opt (Wsuggest-attribute=noreturn): New.
10834 * tree-flow.h (warn_function_noreturn): Declare.
10835 * tree-cfg.c (execute_warn_function_noreturn): Use
10836 warn_function_noreturn.
10837 (gate_warn_function_noreturn): New.
10838 (pass_warn_function_noreturn): Update.
10839
10840 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10841
10842 * c-typeck.c (handle_warn_cast_qual): Add loc
10843 parameter. Improve warning message.
10844 (build_c_cast): Pass location to handle_warn_cast_qual.
10845
10846 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
10847
10848 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
10849 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
10850 insn mnemonic.
10851 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
10852
10853 2010-06-10 Dodji Seketeli <dodji@redhat.com>
10854
10855 Fix bootstap on mips
10856 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
10857 be naming typedefs.
10858
10859 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
10860
10861 * system.h (helper_const_non_const_cast): New inline for
10862 gcc version <= 4.0.
10863 (CONST_CAST2): For gcc version <= 4.0 use
10864 new helper to do const/non-const casting.
10865
10866 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
10867
10868 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
10869 * Makefile.in (OBJS-common): Include insn-enums.o.
10870 (insn-enums.o): New rule.
10871 (simple_generated_c): Add insn-enums.c.
10872 (build/genenums.o): New rule.
10873 (genprogmd): Add "enums".
10874 * genconstants.c (print_enum_type): Declare a C string array
10875 for each enum.
10876 * genenums.c: New file.
10877 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
10878 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
10879 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
10880
10881 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
10882
10883 * doc/md.texi (define_enum_attr): Document.
10884 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
10885 * read-md.h (lookup_enum_type): Declare.
10886 * read-md.c (lookup_enum_type): New function.
10887 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
10888 * genattrtab.c (attr_desc): Add an enum_name field.
10889 (evaluate_eq_attr): Take the associated attribute as argument.
10890 Get the enum prefix from the enum_name field, if defined.
10891 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
10892 (simplify_test_exp): Pass attr to evaluate_eq_attr.
10893 (add_attr_value): New function, split out from...
10894 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
10895 (write_test_expr): Pass attr to evaluate_eq_attr.
10896 (write_attr_get): Use the enum_name as the enum tag, if defined.
10897 (write_attr_valueq): Use the enum_name as a prefix, if defined.
10898 (find_attr): Initialize enum_name.
10899 (main): Handle DEFINE_ENUM_ATTR.
10900 * gensupport.c (process_rtx): Likewise.
10901 * config/mips/mips.h (mips_tune_attr): Delete.
10902 * config/mips/mips.md (cpu): Use define_attr_enum.
10903
10904 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
10905
10906 * doc/md.texi (define_c_enum, define_enum): Document.
10907 * read-md.h (md_constant): Add a parent_enum field.
10908 (enum_value, enum_type): New structures.
10909 (upcase_string, traverse_enum_types): Declare.
10910 * read-md.c (enum_types): New variable.
10911 (upcase_string, add_constant): New functions.
10912 (handle_constants): Don't create the hash table here.
10913 Use add_constant.
10914 (traverse_md_constants): Don't check for a null md_constants.
10915 (decimal_string, handle_enum, traverse_enum_types): New functions.
10916 (read_md_files): Initialize md_constants and md_enums.
10917 * genconstants.c (print_md_constant): Ignore info argument.
10918 Only print constants that belong to no enum.
10919 (print_enum_type): New function.
10920 (main): Don't pass stdout to print_md_constant. Call print_enum_type
10921 for each defined enum type.
10922 * config/mips/mips.md (processor): New define_enum.
10923 (unspec): New define_c_enum.
10924 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
10925 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
10926 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
10927 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
10928 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
10929 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
10930 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
10931 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
10932 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
10933 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
10934 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
10935 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
10936 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
10937 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
10938 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
10939 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
10940 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
10941 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
10942 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
10943 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
10944 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
10945 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
10946 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
10947 (UNSPEC_RDDSP): Move to mips-dsp.md.
10948 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
10949 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
10950 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
10951 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
10952 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
10953 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
10954 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
10955 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
10956 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
10957 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
10958 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
10959 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
10960 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
10961 Moved to mips-dspr2.md.
10962 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
10963 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
10964 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
10965 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
10966 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
10967 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
10968 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
10969 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
10970 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
10971 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
10972 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
10973 UNSPEC_LOONGSON_PSADBH)
10974 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
10975 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
10976 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
10977 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
10978 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
10979 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
10980 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
10981 (cpu): Update comment.
10982 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
10983 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
10984 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
10985 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
10986 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
10987 UNSPEC_LOONGSON_PCMPEQ)
10988 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
10989 UNSPEC_LOONGSON_PINSR_0)
10990 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
10991 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
10992 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
10993 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
10994 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
10995 UNSPEC_LOONGSON_PSADBH)
10996 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
10997 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
10998 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
10999 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
11000 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
11001 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
11002 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
11003 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
11004 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
11005 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
11006 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
11007 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
11008 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
11009 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
11010 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
11011 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
11012 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
11013 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
11014 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
11015 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
11016 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
11017 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
11018 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
11019 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
11020 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
11021 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
11022 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
11023 (UNSPEC_RDDSP): Moved from mips.md.
11024 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
11025 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
11026 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
11027 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
11028 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
11029 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
11030 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
11031 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
11032 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
11033 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
11034 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
11035 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
11036 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
11037 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
11038 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
11039 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
11040 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
11041 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
11042 (UNSPEC_SCC): Moved from mips.md.
11043 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
11044 "processor_type" to "processor".
11045 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
11046 * config/mips/mips.h (processor_type): Delete.
11047 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
11048 "processor_type" to "processor".
11049
11050 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
11051
11052 * configure.ac (tm_include_list): Add insn-constants.h.
11053 * configure: Regenerate.
11054 * Makefile.in (GTM_H): Move insn-constants.h here from...
11055 (TM_H): ...here.
11056 * mkconfig.sh: Remove special handling for insn-constants.h.
11057
11058 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
11059
11060 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
11061 (BUILD_MD): ...this new variable.
11062 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
11063 that include the old contents of simple_generated_h and
11064 simple_generated_c.
11065 (simple_generated_h, simple_generated_c): Include them. Add
11066 insn-constants.h.
11067 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
11068 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
11069 Remove these dependencies from the main rule and include
11070 insn-conditions.md in the command line only if it appears
11071 in the dependency list.
11072 (insn-constants.h, s-constants): Delete.
11073 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
11074 or gensupport.h.
11075 (build/genmddeps.o): Likewise.
11076 (genprogrtl): New variable that contains everything from genprogmd
11077 except mddeps and constants.
11078 (genprogmd): Redefine in terms of genprogrtl. Make these programs
11079 depend on $(BUILD_MD)
11080 (genprog): New variable. Make these programs depend on
11081 $(BUILD_ERRORS).
11082 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
11083 (main): Use read_md_files instead of init_rtx_reader_args.
11084 * genconstants.c: As for genmddeps.c.
11085 * read-md.h (read_skip_construct): Declare.
11086 * read-md.c (read_skip_construct): New function.
11087 (handle_file): Allow a null handle_directive, skipping the
11088 construct if so.
11089 (parse_include): Update the comment accordingly.
11090
11091 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
11092
11093 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
11094 * genmddeps.c: Include read-md.h.
11095 (main): Call init_rtx_reader_args instead of init_md_reader_args.
11096 * genattr.c (main): Likewise.
11097 * genattrtab.c (main): Likewise.
11098 * genautomata.c (main): Likewise.
11099 * gencodes.c (main): Likewise.
11100 * genconditions.c (main): Likewise.
11101 * genconfig.c (main): Likewise.
11102 * genconstants.c (main): Likewise.
11103 * genemit.c (main): Likewise.
11104 * genextract.c (main): Likewise.
11105 * genflags.c (main): Likewise.
11106 * genopinit.c (main): Likewise.
11107 * genoutput.c (main): Likewise.
11108 * genpeep.c (main): Likewise.
11109 * genrecog.c (main): Likewise.
11110 * genpreds.c (main): Likewise.
11111 * gensupport.h (in_fname): Move to read-md.h.
11112 (init_md_reader_args_cb): Rename to...
11113 (init_rtx_reader_args_cb): ...this and return a bool.
11114 (init_md_reader_args): Rename to...
11115 (init_rtx_reader_args): ...this and return a bool.
11116 (include_callback): Move to read-md.h.
11117 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
11118 (file_name_list, first_dir_md_include): Move to read-md.c
11119 (first_bracket_include): Delete unused variable.
11120 (last_dir_md_include): Move to read-md.c.
11121 (process_include): Delete, moving code to read-md.c:handle_include.
11122 (process_rtx): Don't handle INCLUDE.
11123 (save_string): Delete.
11124 (rtx_handle_directive): New function.
11125 (init_md_reader_args_cb): Rename to...
11126 (init_rtx_reader_args_cb): ...this and return a boolean success value.
11127 Use read_md_args.
11128 (init_md_reader_args): Rename to...
11129 (init_rtx_reader_args): ...this and return a boolean success value.
11130 * rtl.def (INCLUDE): Delete.
11131 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
11132 argument.
11133 * read-rtl.c (read_conditions): Don't gobble ')' here.
11134 (read_mapping): Likewise.
11135 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
11136 Handle top-level non-rtx constructs here rather than in read_rtx_1.
11137 Store the whole queue in *X. Remove call to init_md_reader.
11138 (read_rtx_1): Rename to...
11139 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
11140 Don't handle top-level non-rtx constructs here. Don't handle (nil)
11141 here.
11142 (read_nested_rtx): New function. Handle (nil) here rather than
11143 in read_rtx_code.
11144 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
11145 gobble ')' here.
11146 * read-md.h (directive_handler_t): New type.
11147 (in_fname, include_callback): Moved from read-md.h.
11148 (read_constants, init_md_reader): Delete.
11149 (read_md_files): Declare.
11150 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
11151 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
11152 from gensupport.c.
11153 (read_constants): Rename to...
11154 (handle_constants): ...this. Don't gobble ')' here.
11155 (handle_include, handle_file, handle_toplevel_file)
11156 (parse_include): New functions, mostly taken from gensupport.c.
11157 (init_md_reader): Subsume into...
11158 (read_md_files): ...this new function.
11159
11160 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
11161
11162 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
11163 (unread_char): Decrement read_md_lineno after putting back '\n'.
11164 * read-md.c (fatal_with_file_and_line): Push back any characters
11165 that we decide not to add to the context.
11166 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
11167 fatal_expected_char in cases where '/' ends a line (for example).
11168 (read_name): Don't increment read_md_lineno here.
11169 (read_escape): Likewise.
11170 (read_quoted_string): Likewise.
11171 (read_braced_string): Likewise.
11172
11173 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
11174
11175 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
11176 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
11177 * genconstants.c: Include read-md.h.
11178 * read-rtl.c (md_constants): Move to read-md.c.
11179 (md_name): Move to read-md.h.
11180 (initialize_iterators): Use leading_string_hash instead of def_hash
11181 and leading_string_eq_p instead of def_name_eq_p.
11182 (read_name): Move to read-md.c.
11183 (def_hash, def_name_eq_p): Delete.
11184 (read_constants, traverse_md_constants): Move to read-md.c.
11185 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
11186 * read-md.h: Include hashtab.h.
11187 (md_name): Moved from read-rtl.c.
11188 (md_constant): Moved from read-md.h.
11189 (leading_string_hash, leading_string_eq_p, read_name)
11190 (read_constants, traverse_md_constants): Declare.
11191 * read-md.c (md_constants): Moved from read-rtl.c.
11192 (leading_string_hash, leading_string_eq_p): New functions.
11193 (read_name, read_constants, traverse_md_constants): Moved from
11194 read-rtl.c.
11195
11196 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
11197
11198 * read-rtl.c (md_name): New structure.
11199 (read_name): Take an md_name instead of a buffer pointer.
11200 Use the "string" field instead of strcpy when expanding constants.
11201 (read_constants): Remove the tmp_char argument. Update the calls
11202 to read_name, using two local name buffers instead of the tmp_char
11203 argument. Merge the constant-creation code.
11204 (read_conditions): Remove the tmp_char argument. Update the calls
11205 to read_name, using a local name buffer instead of the tmp_char
11206 argument.
11207 (read_mapping): Replace tmp_char variable with a local name buffer.
11208 Update the calls to read_name.
11209 (read_rtx_1): Likewise. Update the calls to read_constants and
11210 read_conditions.
11211
11212 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
11213
11214 * Makefile.in (build/read-md.o): Depend on errors.h.
11215 * read-md.h (error_with_line): Declare.
11216 * read-md.c: Include errors.h.
11217 (message_with_line_1): New function, extracted from...
11218 (message_with_line): ...here.
11219 (error_with_line): New function.
11220 * genattrtab.c: If a call to message_with_line is followed by
11221 "have_error = 1;", replace both statements with a call to
11222 error_with_line.
11223 * genoutput.c: Likewise.
11224 * genpreds.c: Likewise.
11225 * genrecog.c: If a call to message_with_line is followed by
11226 "error_count++;", replace both statements with a call to
11227 error_with_line.
11228 (errorcount): Delete.
11229 (main): Don't check it.
11230 * gensupport.c: If a call to message_with_line is followed by
11231 "errors = 1;", replace both statements with a call to error_with_line.
11232 (errors): Delete.
11233 (process_define_cond_exec): Check have_error instead of errors.
11234 (init_md_reader_args_cb): Likewise. Don't set errors.
11235
11236 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
11237
11238 * read-md.h (read_md_file): Declare.
11239 (read_char, unread_char): New functions.
11240 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
11241 (read_quoted_string, read_string): Remove FILE * argument.
11242 * read-md.c (read_md_file): New variable.
11243 (read_md_filename, read_md_lineno): Update comments and remove
11244 unnecessary initialization.
11245 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
11246 (read_escape, read_quoted_string, read_braced_string, read_string):
11247 Remove FILE * argument. Update calls accordingly, using read_char
11248 and unread_char instead of getc and ungetc.
11249 * rtl.h (read_rtx): Remove FILE * argument.
11250 * read-rtl.c (iterator_group): Remove FILE * argument from
11251 "find_builtin".
11252 (iterator_traverse_data): Remove "infile" field.
11253 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
11254 (add_mapping, read_name, read_constants, read_conditions)
11255 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
11256 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
11257 Remove file arguments from all calls, using read_char and unread_char
11258 instead of getc and ungetc.
11259 * gensupport.c (process_include): Preserve read_md_file around
11260 the include. Set read_md_file to the handle of the included file.
11261 Update call to read_rtx.
11262 (init_md_reader_args_cb): Set read_md_file to the handle of the file
11263 and remove local FILE *. Update calls to read_rtx.
11264
11265 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
11266
11267 * read-md.h (read_rtx_lineno): Rename to...
11268 (read_md_lineno): ...this.
11269 (read_rtx_filename): Rename to...
11270 (read_md_filename): ...this.
11271 (copy_rtx_ptr_loc): Rename to...
11272 (copy_md_ptr_loc): ...this.
11273 (print_rtx_ptr_loc): Rename to...
11274 (print_md_ptr_loc): ...this.
11275 * read-md.c: Likewise. Update references after renaming.
11276 (string_obstack): Replace RTL with MD in comment.
11277 (set_rtx_ptr_loc): Rename to...
11278 (set_md_ptr_loc): ...this.
11279 (get_rtx_ptr_loc): Rename to...
11280 (get_md_ptr_loc): ...this.
11281 * genconditions.c: Update references after renaming.
11282 * genemit.c: Likewise.
11283 * genoutput.c: Likewise.
11284 * genpreds.c: Likewise.
11285 * gensupport.c: Likewise.
11286 * read-rtl.c: Likewise.
11287
11288 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
11289
11290 * Makefile.in (READ_MD_H): New variable.
11291 (BUILD_RTL): Add build/read-md.o.
11292 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
11293 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
11294 (build/genattrtab.o, build/genconditions.o build/genemit.o)
11295 (build/genextract.o, build/genflags.o, build/genoutput.o)
11296 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
11297 (build/read-md.o): New rule.
11298 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
11299 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
11300 * coretypes.h: ...here.
11301 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
11302 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
11303 * genattr.c: Include read-md.h.
11304 * genattrtab.c: Likewise.
11305 * genconditions.c: Likewise.
11306 * genemit.c: Likewise.
11307 * genextract.c: Likewise.
11308 * genflags.c: Likewise.
11309 * genoutput.c: Likewise.
11310 * genpreds.c: Likewise.
11311 * genrecog.c: Likewise.
11312 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
11313 (join_c_conditions, print_c_condition, read_rtx_filename)
11314 (read_rtx_lineno): Move to read-md.h.
11315 * read-rtl.c: Include read-md.h.
11316 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
11317 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
11318 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
11319 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
11320 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
11321 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
11322 (read_braced_string, read_string): Move to read-md.c.
11323 (read_rtx): Move some initialization to init_md_reader and call
11324 init_md_reader here.
11325 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
11326 Move to read-md.h.
11327 * gensupport.c: Include read-md.h.
11328 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
11329 * read-md.h, read-md.c: New files.
11330
11331 2010-06-10 Anatoly Sokolov <aesok@post.ru>
11332
11333 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
11334 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11335 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
11336 * config/moxie/moxie.c (moxie_function_value): Make static.
11337 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
11338 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11339
11340 2010-06-10 Martin Jambor <mjambor@suse.cz>
11341
11342 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
11343 * dbgcnt.def (tree_sra): New counter.
11344 * tree-sra.c: Include dbgcnt.h.
11345 (gate_intra_sra): Check tree_sra debug counter.
11346
11347 2010-06-10 Martin Jambor <mjambor@suse.cz>
11348
11349 PR tree-optimization/44258
11350 * tree-sra.c (build_access_subtree): Return false iff there is a
11351 partial overlap.
11352 (build_access_trees): Likewise.
11353 (analyze_all_variable_accesses): Disqualify candidates if
11354 build_access_trees returns true for them.
11355
11356 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
11357
11358 PR debug/41371
11359 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
11360 tail-recurse into canonical node. Fast-forward over
11361 non-canonical VALUEs.
11362
11363 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
11364
11365 PR boostrap/44470
11366 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
11367 (*addsi_1_zext) <TYPE_LEA>: Likewise.
11368 (add lea splitter): Likewise.
11369 (add_zext lea splitter): Likewise.
11370
11371 2010-06-10 Joseph Myers <joseph@codesourcery.com>
11372
11373 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
11374
11375 2010-06-10 Jan Hubicka <jh@suse.cz>
11376
11377 * df-problems.c (df_live_problem_data): Add live_bitmaps.
11378 (df_live_alloc): Initialize problem data and live_osbtacks.
11379 (df_live_finalize): Remove obstack, problem data; do not
11380 clear all bitmaps.
11381 (df_live_top_dump, df_live_bottom_dump): Do not dump old
11382 data when not allocated.
11383 (df_live_verify_solution_start): Do not allocate problem data.
11384 (df_live_verify_solution_end): Check if out is allocated.
11385 (struct df_md_problem_data): New structure.
11386 (df_md_alloc): Allocate problem data.
11387 (df_md_free): Free problem data; do not clear bitmaps.
11388
11389 2010-06-10 Jan Beulich <jbeulich@novell.com>
11390
11391 PR bootstrap/37304
11392 * configure.ac: Replace $() with ${} when intending to expand
11393 variables rather than invoking commands.
11394 * configure: Re-generate.
11395
11396 2010-06-10 Jan Hubicka <jh@suse.cz>
11397
11398 PR rtl-optimization/44460
11399 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
11400 TYPE_NEEDS_CONSTRUCTING sanity check.
11401
11402 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
11403
11404 * doc/include/fdl.texi: Move to GFDL version 1.3.
11405
11406 * doc/cpp.texi: Move to GFDL version 1.3.
11407 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
11408 * doc/gccint.texi: Move to GFDL version 1.3.
11409 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
11410 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
11411 * doc/invoke.texi: Move to GFDL version 1.3.
11412
11413 2010-06-09 Jan Hubicka <jh@suse.cz>
11414
11415 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
11416 Break out from ...
11417 (propagate) ... here; swap the order.
11418
11419 2010-06-09 Jan Hubicka <jh@suse.cz>
11420
11421 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
11422 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
11423 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
11424 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
11425
11426 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
11427
11428 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
11429 Do not the gather memory reference in the outer loop if the step
11430 is not a constant.
11431
11432 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
11433
11434 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
11435 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
11436 8 to 4. Minor change of the related comments.
11437
11438 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
11439
11440 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
11441 the scev analysis when the variable is not used outside the loop
11442 in a close phi node: call compute_overall_effect_of_inner_loop.
11443
11444 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
11445
11446 * graphite-sese-to-poly.c (single_pred_cond): Renamed
11447 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
11448 (build_sese_conditions_before): Renamed call to single_pred_cond.
11449 (build_sese_conditions_after): Same.
11450
11451 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
11452
11453 * graphite-poly.h: Fix comments and indentation.
11454 * graphite-sese-to-poly.c: Same.
11455 (build_sese_conditions_before): Compute stmt and gbb only when needed.
11456 * tree-chrec.c: Fix comments and indentation.
11457 (tree-ssa-loop-niter.c): Same.
11458
11459 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
11460
11461 PR rtl-optimization/42461
11462 * dce.c (deletable_insn_p): Return true for const or pure calls again.
11463 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
11464
11465 2010-06-09 Jan Hubicka <jh@suse.cz>
11466
11467 * bitmap.c (bitmap_and): Walk array forward.
11468 (bitmap_and_compl_into): Likewise.
11469 (bitmap_xor): Likewise.
11470 (bitmap_xor_into): Likewise.
11471 (bitmap_equal_p): Likewise.
11472 (bitmap_intersect_p): Likewise.
11473 (bitmap_intersect_compl_p): Likewise.
11474 (bitmap_ior_and_into): Likewise.
11475 (bitmap_elt_copy): Likewise.
11476 (bitmap_and_compl): Likewise.
11477 (bitmap_elt_ior): Likewise.
11478
11479 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
11480
11481 * opts-common.c (prune_options): Ensure replacement argv array
11482 is correctly terminated by a NULL entry.
11483
11484 2010-06-09 Jan Hubicka <jh@suse.cz>
11485
11486 * cgraph.h (varpool_first_static_initializer,
11487 varpool_next_static_initializer): Make checking only when
11488 checking enabled.
11489 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
11490 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
11491 gcc_assert to gcc_checking_assert.
11492 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
11493 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
11494 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
11495 op_iter_init_phiuse, op_iter_init_phidef,
11496 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
11497 gcc_checking_assert.
11498 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
11499 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
11500 partition_is_global, live_on_entry, live_on_exit,
11501 live_merge_and_clear): Likewise.
11502 * system.h (gcc_checking_assert): New macro.
11503 * gimple.h (set_bb_seq): Use gcc_checking_assert.
11504
11505 2010-06-09 Jason Merrill <jason@redhat.com>
11506
11507 * Makefile.in (TAGS): Collect tags info from c-family.
11508
11509 2010-06-09 Jan Hubicka <jh@suse.cz>
11510
11511 * gimple.h (gcc_gimple_checking_assert): New macro.
11512 (gimple_set_def_ops, gimple_set_use_ops,
11513 gimple_set_vuse, gimple_set_vdef,
11514 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
11515 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
11516 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
11517 gimple_asm_output_op, gimple_asm_output_op_ptr,
11518 gimple_asm_set_output_op, gimple_asm_clobber_op,
11519 gimple_asm_set_clobber_op, gimple_asm_label_op,
11520 gimple_asm_set_label_op, gimple_try_set_kind,
11521 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
11522 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
11523 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
11524 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
11525 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
11526 gimple_omp_for_set_initial, gimple_omp_for_final,
11527 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
11528 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
11529 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
11530 conditional with ENABLE_GIMPLE_CHECKING.
11531 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
11532
11533 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
11534
11535 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
11536 (get_computation_cost_at): Use it.
11537 (determine_use_iv_cost_condition): Likewise.
11538 (determine_iv_cost): Likewise.
11539
11540 2010-06-09 Richard Guenther <rguenther@suse.de>
11541
11542 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
11543 replace constants.
11544
11545 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
11546
11547 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
11548
11549 2010-06-09 Martin Jambor <mjambor@suse.cz>
11550
11551 PR tree-optimization/44423
11552 * tree-sra.c (dump_access): Dump also grp_assignment_read.
11553 (analyze_access_subtree): Pass negative allow_replacements to children
11554 if the current type is scalar.
11555
11556 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
11557
11558 PR testsuite/42843
11559 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
11560 * doc/plugins.texi (Plugin license check): Update information
11561 on type of plugin_is_GPL_compatible.
11562 * Makefile.in (PLUGINCC): Define as $(COMPILER).
11563 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
11564
11565 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
11566
11567 * config/arm/arm.c (thumb2_reorg): New function.
11568 (arm_reorg): Call it.
11569 * config/arm/thumb2.md (define_peephole2 for flag clobbering
11570 arithmetic operations): Delete.
11571
11572 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
11573
11574 PR target/44067
11575 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
11576 e500v2 target.
11577
11578 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
11579
11580 PR plugins/44459
11581 * gcc-plugin.h: Encapsulate all declarations in extern "C".
11582
11583 2010-06-08 Jan Hubicka <jh@suse.cz>
11584
11585 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
11586 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
11587
11588 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
11589
11590 PR tree-optimization/39874
11591 PR middle-end/28685
11592 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
11593 Declare.
11594 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
11595 same_bool_result_p): New.
11596 (and_var_with_comparison, and_var_with_comparison_1,
11597 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
11598 (or_var_with_comparison, or_var_with_comparison_1,
11599 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
11600 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
11601 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
11602 of combine_comparisons.
11603 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
11604
11605 2010-06-08 Anatoly Sokolov <aesok@post.ru>
11606
11607 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
11608 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11609 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
11610 pdp11_function_value_regno_p): New functions.
11611 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11612 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11613
11614 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
11615
11616 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
11617 Thumb-2 in the MINUS case.
11618
11619 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11620
11621 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
11622
11623 * doc/gty.texi (GTY Options): Document typed GC allocation and
11624 variable_size GTY option.
11625
11626 * ggc-internal.h: New.
11627
11628 * ggc.h: Update copyright year.
11629 (digit_string): Move to stringpool.c.
11630 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
11631 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
11632 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
11633 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
11634 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
11635 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
11636 (ggc_force_collect, ggc_get_size, ggc_statistics)
11637 (ggc_print_common_statistics): Move to ggc-internal.h.
11638 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
11639 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
11640 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
11641 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
11642 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
11643 (ggc_alloc_zone_pass_stat): Remove.
11644 (ggc_internal_alloc_stat, ggc_internal_alloc)
11645 (ggc_internal_cleared_alloc_stat): New.
11646 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
11647 (ggc_internal_vec_alloc_stat)
11648 (ggc_internal_cleared_vec_alloc_stat)
11649 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
11650 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
11651 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
11652 (ggc_cleared_alloc_ptr_array_two_args): New.
11653 (htab_create_ggc, splay_tree_new_ggc): Redefine.
11654 (ggc_splay_alloc): Change the type of the first argument to
11655 enum gt_types_enum.
11656 (ggc_alloc_string): Make macro.
11657 (ggc_alloc_string_stat): New.
11658 (ggc_strdup): Redefine.
11659 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
11660 (ggc_alloc_rtvec_sized): New.
11661 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
11662 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
11663 (ggc_internal_cleared_alloc_zone_stat)
11664 (ggc_internal_zone_alloc_stat)
11665 (ggc_internal_zone_cleared_alloc_stat)
11666 (ggc_internal_zone_vec_alloc_stat)
11667 (ggc_alloc_zone_rtx_def_stat)
11668 (ggc_alloc_zone_tree_node_stat)
11669 (ggc_alloc_zone_cleared_tree_node_stat)
11670 (ggc_alloc_cleared_gimple_statement_d_stat): New.
11671
11672 * ggc-common.c: Include ggc-internal.h.
11673 (ggc_internal_cleared_alloc_stat): Rename from
11674 ggc_alloc_cleared_stat.
11675 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
11676 (ggc_calloc): Remove.
11677 (ggc_cleared_alloc_htab_ignore_args): New.
11678 (ggc_cleared_alloc_ptr_array_two_args): New.
11679 (ggc_splay_alloc): Add obj_type parameter.
11680 (init_ggc_heuristics): Formatting fixes.
11681
11682 * ggc-none.c: Update copyright year.
11683 (ggc_alloc_stat): Rename to ggc_alloc_stat.
11684 (ggc_alloc_cleared_stat): Rename to
11685 ggc_internal_cleared_alloc_stat.
11686 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
11687
11688 * ggc-page.c: Update copyright year. Include ggc-internal.h.
11689 Remove references to ggc_alloc in comments.
11690 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
11691 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
11692 (new_ggc_zone, destroy_ggc_zone): Remove.
11693 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
11694
11695 * ggc-zone.c: Include ggc-internal.h. Remove references to
11696 ggc_alloc in comments.
11697 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
11698 (ggc_internal_alloc_zone_pass_stat): New.
11699 (ggc_internal_cleared_alloc_zone_stat): New.
11700 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
11701 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
11702 (new_ggc_zone, destroy_ggc_zone): Remove.
11703
11704 * stringpool.c: Update copyright year. Include ggc-internal.h
11705 (digit_vector): Make static.
11706 (digit_string): Moved from ggc.h.
11707 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
11708 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
11709
11710 * Makefile.in (GGC_INTERNAL_H): New.
11711 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
11712 $(GGC_INTERNAL_H) to dependencies.
11713
11714 * gentype.c: Update copyright year.
11715 (walk_type): Accept variable_size GTY option.
11716 (USED_BY_TYPED_GC_P): New macro.
11717 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
11718 whitespace at the end of strings.
11719 (get_type_specifier, variable_size_p): New functions.
11720 (alloc_quantity, alloc_zone): New enums.
11721 (write_typed_alloc_def): New function.
11722 (write_typed_struct_alloc_def): Likewise.
11723 (write_typed_typed_typedef_alloc_def): Likewise.
11724 (write_typed_alloc_defns): Likewise.
11725 (output_typename, write_splay_tree_allocator_def): Likewise.
11726 (write_splay_tree_allocators): Likewise.
11727 (main): Call write_typed_alloc_defns and
11728 write_splay_tree_allocators.
11729
11730 * lto-streamer.h (lto_file_decl_data_ptr): New.
11731
11732 * passes.c (order): Define using cgraph_node_ptr.
11733
11734 * strinpool.c (struct string_pool_data): Declare nested_ptr using
11735 ht_identifier_ptr.
11736
11737 * gimple.h (union gimple_statement_d): Likewise.
11738
11739 * rtl.h (struct rtx_def): Likewise.
11740 (struct rtvec_def): Likewise.
11741
11742 * tree.h (union tree_node): Likewise.
11743
11744 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
11745
11746 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
11747
11748 * tree-scalar-evolution.c (scev_initialize): Likewise.
11749
11750 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
11751
11752 * dwarf2asm.c (dw2_force_const_mem): Likewise.
11753
11754 * omp-low.c (lower_omp_critical): Likewise.
11755
11756 * bitmap.h (struct bitmap_head_def): Update comment to not
11757 reference ggc_alloc.
11758
11759 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
11760
11761 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
11762
11763 * ipa-prop.c (duplicate_ggc_array): Rename to
11764 duplicate_ipa_jump_func_array. Use typed GC allocation.
11765 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
11766
11767 * gimple.c (gimple_alloc_stat): Use
11768 ggc_alloc_cleared_gimple_statement_d_stat.
11769
11770 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
11771
11772 * tree.c (make_node_stat): Use
11773 ggc_alloc_zone_cleared_tree_node_stat.
11774 (make_tree_vec_stat): Likewise.
11775 (build_vl_exp_stat): Likewise.
11776 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
11777 (make_tree_binfo_stat): Likewise.
11778 (tree_cons_stat): Likewise.
11779
11780 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
11781 (shallow_copy_rtx_stat): Likewise.
11782 (make_node_stat): Likewise.
11783
11784 * lto-symtab.c: Fix comment.
11785
11786 * tree-cfg.c (create_bb): Update comment to not reference
11787 ggc_alloc_cleared.
11788 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
11789
11790 * varpool.c (varpool_node): Use typed GC allocation.
11791 (varpool_extra_name_alias): Likewise.
11792
11793 * varasm.c (emutls_decl): Likewise.
11794 (get_unnamed_section): Likewise.
11795 (get_noswitch_section): Likewise.
11796 (get_section): Likewise.
11797 (get_block_for_section): Likewise.
11798 (build_constant_desc): Likewise.
11799 (create_constant_pool): Likewise.
11800 (force_const_mem): Likewise.
11801
11802 * tree.c (build_vl_exp_stat): Likewise.
11803 (build_real): Likewise.
11804 (build_string): Likewise.
11805 (decl_debug_expr_insert): Likewise.
11806 (decl_value_expr_insert): Likewise.
11807 (type_hash_add): Likewise.
11808 (build_omp_clause): Likewise.
11809
11810 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
11811
11812 * tree-ssa.c (init_tree_ssa): Likewise.
11813
11814 * tree-ssa-structalias.c (heapvar_insert): Likewise.
11815
11816 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
11817
11818 * tree-ssa-loop-niter.c (record_estimate): Likewise.
11819
11820 * tree-ssa-alias.c (get_ptr_info): Likewise.
11821
11822 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
11823
11824 * tree-phinodes.c (allocate_phi_node): Likewise.
11825
11826 * tree-iterator.c (tsi_link_before): Likewise.
11827 (tsi_link_after): Likewise.
11828
11829 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
11830
11831 * tree-dfa.c (create_var_ann): Likewise.
11832
11833 * tree-cfg.c (create_bb): Likewise.
11834
11835 * toplev.c (alloc_for_identifier_to_locale): Likewise.
11836 (general_init): Likewise.
11837
11838 * stringpool.c (stringpool_ggc_alloc): Likewise.
11839 (gt_pch_save_stringpool): Likewise.
11840
11841 * sese.c (if_region_set_false_region): Likewise.
11842
11843 * passes.c (do_per_function_toporder): Likewise.
11844
11845 * optabs.c (set_optab_libfunc): Likewise.
11846 (set_conv_libfunc): Likewise.
11847
11848 * lto-symtab.c (lto_symtab_register_decl): Likewise.
11849
11850 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
11851 (input_eh_region): Likewise.
11852 (input_eh_lp): Likewise.
11853 (make_new_block): Likewise.
11854 (unpack_ts_real_cst_value_fields): Likewise.
11855
11856 * lto-section-in.c (lto_new_in_decl_state): Likewise.
11857
11858 * lto-cgraph.c (input_node_opt_summary): Likewise.
11859
11860 * loop-init.c (loop_optimizer_init): Likewise.
11861
11862 * lambda.h (lambda_vector_new): Likewise.
11863
11864 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
11865
11866 * ira.c (update_equiv_regs): Likewise.
11867
11868 * ipa.c (cgraph_node_set_new): Likewise.
11869 (cgraph_node_set_add): Likewise.
11870 (varpool_node_set_new): Likewise.
11871 (varpool_node_set_add): Likewise.
11872
11873 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
11874 (duplicate_ipa_jump_func_array): Likewise.
11875 (ipa_read_node_info): Likewise.
11876
11877 * ipa-cp.c (ipcp_create_replace_map): Likewise.
11878
11879 * integrate.c (get_hard_reg_initial_val): Likewise.
11880
11881 * gimple.c (gimple_alloc_stat): Likewise.
11882 (gimple_build_omp_for): Likewise.
11883 (gimple_seq_alloc): Likewise.
11884 (gimple_copy): Likewise.
11885
11886 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
11887 (gsi_insert_after_without_update): Likewise.
11888
11889 * function.c (add_frame_space): Likewise.
11890 (insert_temp_slot_address): Likewise.
11891 (assign_stack_temp_for_type): Likewise.
11892 (allocate_struct_function): Likewise.
11893 (types_used_by_var_decl_insert): Likewise.
11894
11895 * except.c (init_eh_for_function): Likewise.
11896 (gen_eh_region): Likewise.
11897 (gen_eh_region_catch): Likewise.
11898 (gen_eh_landing_pad): Likewise.
11899 (add_call_site): Likewise.
11900
11901 * emit-rtl.c (get_mem_attrs): Likewise.
11902 (get_reg_attrs): Likewise.
11903 (start_sequence): Likewise.
11904 (init_emit): Likewise.
11905
11906 * dwarf2out.c (new_cfi): Likewise.
11907 (queue_reg_save): Likewise.
11908 (dwarf2out_frame_init): Likewise.
11909 (new_loc_descr): Likewise.
11910 (find_AT_string): Likewise.
11911 (new_die): Likewise.
11912 (add_var_loc_to_decl): Likewise.
11913 (clone_die): Likewise.
11914 (clone_as_declaration): Likewise.
11915 (break_out_comdat_types): Likewise.
11916 (new_loc_list): Likewise.
11917 (loc_descriptor): Likewise.
11918 (add_loc_descr_to_each): Likewise.
11919 (add_const_value_attribute): Likewise.
11920 (tree_add_const_value_attribute): Likewise.
11921 (add_comp_dir_attribute): Likewise.
11922 (add_name_and_src_coords_attributes): Likewise.
11923 (lookup_filename): Likewise.
11924 (store_vcall_insn): Likewise.
11925 (dwarf2out_init): Likewise.
11926
11927 * dbxout.c (dbxout_init): Likewise.
11928
11929 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
11930
11931 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
11932
11933 * config/score/score7.c (score7_output_external): Likewise.
11934
11935 * config/score/score3.c (score3_output_external): Likewise.
11936
11937 * config/s390/s390.c (s390_init_machine_status): Likewise.
11938
11939 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
11940 (rs6000_init_machine_status): Likewise.
11941 (output_toc): Likewise.
11942
11943 * config/pa/pa.c (pa_init_machine_status): Likewise.
11944 (get_deferred_plabel): Likewise.
11945
11946 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
11947
11948 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
11949
11950 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
11951
11952 * config/mep/mep.c (mep_init_machine_status): Likewise.
11953 (mep_note_pragma_flag): Likewise.
11954
11955 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
11956
11957 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
11958
11959 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
11960
11961 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
11962 (i386_pe_maybe_record_exported_symbol): Likewise.
11963
11964 * config/i386/i386.c (get_dllimport_decl): Likewise.
11965 (ix86_init_machine_status): Likewise.
11966 (assign_386_stack_local): Likewise.
11967
11968 * config/frv/frv.c (frv_init_machine_status): Likewise.
11969
11970 * config/darwin.c (machopic_indirection_name): Likewise.
11971
11972 * config/cris/cris.c (cris_init_machine_status): Likewise.
11973
11974 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
11975
11976 * config/avr/avr.c (avr_init_machine_status): Likewise.
11977
11978 * config/arm/arm.c (arm_init_machine_status): Likewise.
11979
11980 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
11981 (alpha_need_linkage): Likewise.
11982 (alpha_use_linkage): Likewise.
11983
11984 * cgraph.c (cgraph_allocate_node): Likewise.
11985 (cgraph_create_edge_1): Likewise.
11986 (cgraph_create_indirect_edge): Likewise.
11987 (cgraph_add_asm_node): Likewise.
11988
11989 * cfgrtl.c (init_rtl_bb_info): Likewise.
11990
11991 * cfgloop.c (alloc_loop): Likewise.
11992 (rescan_loop_exit): Likewise.
11993
11994 * cfg.c (init_flow): Likewise.
11995 (alloc_block): Likewise.
11996 (unchecked_make_edge): Likewise.
11997
11998 * c-parser.c (c_parse_init): Likewise.
11999 (c_parse_file): Likewise.
12000
12001 * c-decl.c (bind): Likewise.
12002 (record_inline_static): Likewise.
12003 (push_scope): Likewise.
12004 (make_label): Likewise.
12005 (lookup_label_for_goto): Likewise.
12006 (finish_struct): Likewise.
12007 (finish_enum): Likewise.
12008 (c_push_function_context): Likewise.
12009
12010 * bitmap.c (bitmap_element_allocate): Likewise.
12011 (bitmap_gc_alloc_stat): Likewise.
12012
12013 * alias.c (record_alias_subset): Likewise.
12014 (init_alias_analysis): Likewise.
12015
12016 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
12017
12018 * fold-const.c (fold_comparison): Remove redundant parenthesis.
12019 * tree-inline.c (expand_call_inline): Pass translated return value of
12020 cgraph_inline_failed_string to diagnostic function.
12021
12022 2010-06-08 Andrew Pinski <pinskia@gmail.com>
12023 Shujing Zhao <pearly.zhao@oracle.com>
12024
12025 PR c/37724
12026 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
12027 implicit bad conversions is initialization.
12028 (error_init): Use gmsgid instead of msgid for argument name and change
12029 the call for error.
12030 (pedwarn_init): Use gmsgid instead of msgid for argument name and
12031 change the call for pedwarn.
12032 (warning_init): Use gmsgid instead of msgid for argument name and
12033 change the call for warning.
12034
12035 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
12036
12037 * config/mips/mips-protos.h (mips_print_operand): Delete.
12038 (mips_print_operand_address): Delete.
12039 * config/mips/mips.h (mips_print_operand_punct): Delete.
12040 (PRINT_OPERAND): Delete.
12041 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
12042 (PRINT_OPERAND_ADDRESS): Delete.
12043 * config/mips/mips.c (mips_print_operand_punct): Make static.
12044 (mips_print_operand_address): Make static.
12045 (mips_print_operand): Make static. Call
12046 mips_print_operand_punct_valid_p.
12047 (mips_print_operand_punct_valid_p): New function.
12048 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12049 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12050
12051 2010-06-07 Jan Hubicka <jh@suse.cz>
12052
12053 PR middle-end/44454
12054 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
12055 are allocated.
12056
12057 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
12058
12059 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
12060 name of RECORD.
12061
12062 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12063
12064 * doc/sourcebuild.texi (Effective-Target Keywords, Other
12065 attributes): Document gas.
12066
12067 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
12068
12069 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
12070 <TYPE_LEA>: Split instruction.
12071 <default>: Remove alternative 2 handling.
12072 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
12073 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
12074 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
12075
12076 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
12077 (ashift_zext lea splitter): Use DImode for multiplication.
12078
12079 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
12080 to generate addition.
12081
12082 2010-06-07 Joseph Myers <joseph@codesourcery.com>
12083
12084 * common.opt (fira-verbose): Use Var.
12085 (fpcc-struct-return): Use Init instead of VarExists.
12086 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
12087 toplev.c.
12088 * flags.h (flag_signed_char, flag_short_enums,
12089 flag_pcc_struct_return, flag_ira_verbose,
12090 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
12091 * toplev.c (flag_detailed_statistics, flag_signed_char,
12092 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
12093 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
12094 * toplev.h (flag_crossjumping, flag_if_conversion,
12095 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
12096 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
12097 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
12098 flag_cprop_registers, time_report, flag_ira_loop_pressure,
12099 flag_ira_coalesce, flag_ira_move_spills,
12100 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
12101
12102 2010-06-07 Jan Hubicka <jh@suse.cz>
12103
12104 * df-core.c (df_analyze_problem): Do verification after allocation.
12105
12106 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
12107 (df_lr_alloc): Initialize problem data; move bitmaps to
12108 lr_bitmaps obstack.
12109 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
12110 (df_lr_verify_solution_start): Do not initialize problem data;
12111 allocate bitmaps in lr_bitmaps.
12112 (df_lr_verify_solution_end): Do not free problem data.
12113
12114 2010-06-07 Jan Hubicka <jh@suse.cz>
12115
12116 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
12117 if caller is noreturn.
12118 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
12119 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
12120 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
12121 * ipa-pure-const.c (check_decl): Add IPA parameter.
12122 (state_from_flags): New function.
12123 (better_state, worse_state): New functions.
12124 (check_call): When in IPA mode, do not care about callees.
12125 (check_load, check_store): Update.
12126 (check_ipa_load, check_ipa_store): New.
12127 (check_stmt): When in IPA mode, use IPA checkers.
12128 (analyze_function): Use state_from_flags.
12129 (propagate): Check indirect edges and references.
12130
12131 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
12132
12133 PR rtl-optimization/44404
12134 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
12135 of count_occurrences to see if it's safe to modify mem_insn.
12136
12137 2010-06-07 Richard Guenther <rguenther@suse.de>
12138
12139 * gimplify.c (gimplify_cleanup_point_expr): For empty body
12140 and EH-only cleanup drop the cleanup instead of inserting it
12141 unconditionally.
12142
12143 2010-06-07 Ira Rosen <irar@il.ibm.com>
12144
12145 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
12146 documentation.
12147 * targhooks.c (default_builtin_vectorization_cost): New function.
12148 * targhooks.h (default_builtin_vectorization_cost): Declare.
12149 * target.h (enum vect_cost_for_stmt): Define.
12150 (builtin_vectorization_cost): Change argument and comment.
12151 * tree-vectorizer.h: Remove cost model macros.
12152 * tree-vect-loop.c: Include target.h.
12153 (vect_get_cost): New function.
12154 (vect_estimate_min_profitable_iters): Replace cost model macros with
12155 calls to vect_get_cost.
12156 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
12157 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
12158 default implementation.
12159 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
12160 calls to target hook builtin_vectorization_cost.
12161 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
12162 Likewise.
12163 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
12164 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
12165 implementation to return costs.
12166 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
12167 * config/spu/spu.h: Remove vectorizer cost model macros.
12168 * config/i386/i386.h: Likewise.
12169 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
12170 a call to target hook builtin_vectorization_cost.
12171
12172 2010-06-06 Sriraman Tallam <tmsriram@google.com>
12173
12174 PR target/44319
12175 * config/i386/i386.c (override_options): Turn zee pass on for level 2
12176 and above and defer till target is known.
12177 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
12178 turn off otherwise.
12179
12180 2010-05-25 Jan Hubicka <jh@suse.cz>
12181
12182 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
12183 (df_compact_blocks): Likewise.
12184 * df.h (struct df): Turn hardware_regs_used,
12185 regular_block_artificial_uses, eh_block_artificial_uses,
12186 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
12187 bitmap_head.
12188 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
12189 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
12190 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
12191 df_scan_blocks, df_insn_delete, df_insn_rescan,
12192 df_insn_rescan_debug_internal, df_insn_rescan_all,
12193 df_process_deferred_rescans, df_process_deferred_rescans,
12194 df_notes_rescan, df_get_call_refs, df_get_call_refs,
12195 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
12196 df_record_entry_block_defs, df_record_exit_block_uses,
12197 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
12198 df_scan_verify): Update.
12199
12200 2010-05-25 Dodji Seketeli <dodji@redhat.com>
12201
12202 PR c++/44188
12203 * c-common.c (is_typedef_decl): Move this definition ...
12204 * tree.c (is_typedef_decl): ... here.
12205 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
12206 * c-common.h (is_typedef_decl): Move this declaration ...
12207 * tree.h (is_typedef_decl): ... here.
12208 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
12209 * dwarf2out.c (is_naming_typedef_decl): New function.
12210 (gen_tagged_type_die): Split out of ...
12211 (gen_type_die_with_usage): ... this function. When an anonymous
12212 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
12213 is emitted for the typedef.
12214 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
12215 anonymous tagged types.
12216
12217 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
12218
12219 PR c/20000
12220 * c-decl.c (grokdeclarator): Delete warning.
12221
12222 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
12223
12224 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
12225 newly built CALL_EXPR.
12226 * tree-profile.c (tree_profiling): Don't profile functions produced
12227 for built-in stuff.
12228
12229 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
12230
12231 PR bootstrap/44427
12232 PR bootstrap/44428
12233 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
12234 endianness-independent.
12235
12236 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
12237
12238 * c-common.c: Move to c-family/.
12239 * c-common.def: Likewise.
12240 * c-common.h: Likewise.
12241 * c-cppbuiltin.c: Likewise.
12242 * c-dump.c: Likewise.
12243 * c-format.c: Likewise.
12244 * c-format.h : Likewise.
12245 * c-gimplify.c: Likewise.
12246 * c-lex.c: Likewise.
12247 * c-omp.c: Likewise.
12248 * c.opt: Likewise.
12249 * c-opts.c: Likewise.
12250 * c-pch.c: Likewise.
12251 * c-ppoutput.c: Likewise.
12252 * c-pragma.c: Likewise.
12253 * c-pragma.h: Likewise.
12254 * c-pretty-print.c: Likewise.
12255 * c-pretty-print.h: Likewise.
12256 * c-semantics.c: Likewise.
12257 * stub-objc.c: Likewise.
12258
12259 * gengtype.c (get_file_langdir): Special-case files in c-family/.
12260 (get_output_file_with_visibility): Fix name for c-common.h.
12261 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
12262
12263 * c-tree.h: Update include path for moved files.
12264 * c-lang.c: Likewise.
12265 * c-lang.h: Likewise.
12266 * c-parser.c: Likewise.
12267 * c-convert.c: Likewise.
12268 * c-decl.c: Likewise.
12269 * c-objc-common.c: Likewise.
12270 * configure.ac: Make sure c-family/ exists in the build directory.
12271 * configure: Regenerate.
12272 * Makefile.in: Update paths for moved files. Regroup files per
12273 location and update dependencies. Move generated_files down after
12274 ALL_GTFILES_H.
12275
12276 * config/spu/spu-c.c: Update paths for moved files.
12277 * config/mep/mep-pragma.c: Likewise.
12278 * config/darwin-c.c: Likewise.
12279 * config/i386/msformat-c.c: Likewise.
12280 * config/i386/i386-c.c: Likewise.
12281 * config/avr/avr-c.c: Likewise.
12282 * config/sol2-c.c: Likewise.
12283 * config/ia64/ia64-c.c: Likewise.
12284 * config/rs6000/rs6000-c.c: Likewise.
12285 * config/arm/arm.c: Likewise.
12286 * config/arm/arm-c.c: Likewise.
12287 * config/h8300/h8300.c: Likewise.
12288 * config/v850/v850-c.c: Likewise.
12289
12290 * config/t-darwin: Fix dependencies for moved files.
12291 * config/t-sol2: Fix dependencies for moved files.
12292 * config/mep/t-mep: Fix dependencies for moved files.
12293 * config/ia64/t-ia64: Fix dependencies for moved files.
12294 * config/rs6000/t-rs6000: Fix dependencies for moved files.
12295 * config/v850/t-v850: Fix dependencies for moved files.
12296 * config/v850/t-v850e: Fix dependencies for moved files.
12297
12298 * config/m32c/m32c-pragma.c
12299
12300 * po/exgettext: Look in c-family/ also.
12301
12302 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
12303
12304 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
12305 (mark_control_dependent_edges_necessary): Call it instead of marking
12306 the last statement manually.
12307 (propagate_necessity): Likewise.
12308
12309 2010-06-05 Jan Hubicka <jh@suse.cz>
12310
12311 * basic-block.h (compute_dominance_frontiers): Updated.
12312 (compute_idf): Likewise.
12313
12314 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
12315 for dominance frontiers.
12316 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
12317 (insert_updated_phi_nodes_for): Likewise.
12318 (update_ssa): Likewise.
12319 * cfganal.c (compute_dominance_frontiers_1): Likewise.
12320 (compute_dominance_frontiers): Likewise.
12321 (compute_idf): Likewise.
12322 * df-problems.c (df_md_local_compute): Likewise.
12323
12324 2010-06-05 Anatoly Sokolov <aesok@post.ru>
12325
12326 * target.h (struct gcc_target): Add memory_move_cost field.
12327 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
12328 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
12329 * targhooks.c (default_memory_move_cost): New function.
12330 * targhooks.h (default_memory_move_cost): Declare function.
12331 * reload.h (memory_move_cost): Declare.
12332 (memory_move_secondary_cost): Change type of 'in' argument to bool.
12333 * reginfo.c (memory_move_cost): New function.
12334 (memory_move_secondary_cost): Change type of 'in' argument to bool.
12335 * ira.h (ira_memory_move_cost): Update comment.
12336 * ira.c (ira_memory_move_cost): Update comment.
12337 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
12338 with memory_move_cost.
12339 * postreload.c (reload_cse_simplify_set): (Ditto.).
12340 * reload1.c (choose_reload_regs): (Ditto.).
12341 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
12342 (MEMORY_MOVE_COST): Revise documentation.
12343
12344 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
12345 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
12346 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
12347 type of 'in' argument to bool.
12348 (TARGET_MEMORY_MOVE_COST): Define.
12349
12350 2010-06-05 Jan Hubicka <jh@suse.cz>
12351
12352 * ipa-pure-const.c (propagate): Fix typo in handling of functions
12353 that cannot return. Be more careful when merging the results with
12354 previously known ones.
12355
12356 2010-06-05 Matthias Klose <doko@ubuntu.com>
12357
12358 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
12359 function to add the -iplugindir option.
12360 (find_plugindir_spec_function): Add new declaration and function.
12361 (static_spec_func): Use it for "find-plugindir".
12362
12363 2010-06-05 Jakub Jelinek <jakub@redhat.com>
12364
12365 PR c++/44361
12366 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
12367 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
12368 statement expression.
12369
12370 2010-06-05 Jan Hubicka <jh@suse.cz>
12371
12372 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
12373 (df_rd_problem_data): Convert sparse_invalidated_by_call,
12374 dense_invalidated_by_call to bitmap head.
12375 (df_rd_alloc, df_rd_bb_local_compute_process_def,
12376 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
12377 df_rd_start_dump, df_lr_verify_transfer_functions,
12378 df_live_verify_transfer_functions, df_chain_create_bb,
12379 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
12380 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
12381 df_simulate_one_insn_forwards, df_md_alloc,
12382 df_md_bb_local_compute_process_def,
12383 df_md_bb_local_compute_process_def, df_md_local_compute,
12384 df_md_transfer_function df_md_free): Update.
12385
12386 2010-06-05 Joseph Myers <joseph@codesourcery.com>
12387
12388 PR c/44322
12389 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
12390 target type for ADDR_EXPR; require no changes to qualifiers except
12391 for function types.
12392 * c-tree.h (c_build_type_variant): Remove.
12393
12394 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
12395
12396 * genautomata.c (get_excl_set): Do work per element, not per char.
12397 (check_presence_pattern_sets): Similar.
12398 (check_absence_pattern_sets): Similar.
12399
12400 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
12401
12402 * genautomata.c (curr_state_pass_num): Delete.
12403 (min_issue_delay_pass_states): Delete.
12404 (min_issue_delay): Delete.
12405 (initiate_min_issue_delay_pass_states): Delete.
12406 (output_min_issue_delay_table): Compute min_issue_delay_vect
12407 using a breadth-first search variant.
12408 (output_tables): Don't call initiate_min_issue_delay_pass_states.
12409
12410 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
12411
12412 PR boostrap/44421
12413 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
12414 (df_byte_lr_bb_local_compute): Likewise.
12415
12416 2010-06-03 Jason Merrill <jason@redhat.com>
12417
12418 Implement noexcept operator (5.3.7)
12419 * c-common.c (c_common_reswords): Add noexcept.
12420 * c-common.h (enum rid): Add RID_NOEXCEPT.
12421
12422 2010-06-04 Joseph Myers <joseph@codesourcery.com>
12423
12424 * config/darwin-driver.c (darwin_default_min_version): Use
12425 GCC-specific formats in diagnostics.
12426 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
12427 diagnostics.
12428 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
12429 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
12430 eval_spec_function, handle_braces, process_brace_body, main,
12431 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
12432 getenv_spec_function, compare_version_strings,
12433 version_compare_spec_function): Use GCC-specific formats in
12434 diagnostics.
12435
12436 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
12437
12438 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
12439 that operand 0 and operand 1 are equal.
12440 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
12441 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
12442 and operand 1 are equal.
12443 <default>: Ditto. Remove ??? comment.
12444 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
12445 and operand 1 are equal.
12446 <default>: Ditto. Remove ??? comment.
12447 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
12448 are equal.
12449 (*add<mode>_4) <default>: Ditto.
12450 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
12451
12452 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
12453
12454 * config/i386/i386-protos.h (ix86_print_operand): Declare.
12455 * config/i386/i386.c (ix86_print_operand): Make non-static.
12456 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
12457 * output.h (output_operand): Declare.
12458 * final.c (output_operand): Make non-static.
12459
12460 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
12461
12462 PR rtl-optimization/44013
12463 * sched-deps.c (add_dependence_list_and_free): Don't free lists
12464 when processing debug insns.
12465
12466 PR debug/41371
12467 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
12468 recursing. Check that recursion is bounded. Rename inner var
12469 to avoid hiding incoming argument.
12470
12471 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
12472
12473 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
12474 operands[2] == 255.
12475 (*addqi_3): Ditto.
12476 (*addqi_4): Ditto.
12477 (*addqi_5): Ditto.
12478 (*addqi_ext_1_rex64): Ditto.
12479 (*addqi_ext_1): Ditto.
12480
12481 (*addqi_4): Check for incdec_operand in QImode.
12482
12483 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
12484 using SWI mode iterator.
12485 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
12486 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
12487 mode iterator.
12488 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
12489 using SWI mode iterator.
12490
12491 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
12492
12493 PR c/25880
12494 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
12495 * c-format.c (gcc_diag_flag_specs): Add hash.
12496 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
12497 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
12498 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
12499 pp_c_cv_qualifiers. Handle qualifiers spelling here.
12500 (pp_c_type_qualifier_list): Call the function above.
12501 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
12502 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
12503 (WARN_FOR_QUALIFIERS): New macro.
12504 (convert_for_assignment): Use it.
12505
12506 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
12507
12508 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
12509
12510 2010-06-04 Jan Hubicka <jh@suse.cz>
12511
12512 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
12513 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
12514 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
12515 DF_BYTE_LR_OUT): Update for embedded bitmaps.
12516 * fwprop.c (single_def_use_enter_block): Likewise.
12517 * ddg.c (create_ddg_dep_from_intra_loop_link,
12518 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
12519 * loop-iv.c (latch_dominating_def): Likewise.
12520 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
12521 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
12522 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
12523 df_rd_transfer_function, df_rd_top_dump,
12524 df_rd_bottom_dump): Update.
12525 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
12526 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
12527 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
12528 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
12529 df_lr_verify_solution_start, df_lr_verify_solution_end,
12530 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
12531 df_live_free_bb_info, df_live_alloc, df_live_reset,
12532 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
12533 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
12534 df_live_verify_solution_start, df_live_verify_solution_end,
12535 df_live_verify_transfer_functions, df_chain_create_bb,
12536 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
12537 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
12538 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
12539 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
12540 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
12541 df_byte_lr_transfer_function, df_byte_lr_top_dump,
12542 df_byte_lr_bottom_dump, df_create_unused_note,
12543 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
12544 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
12545 df_md_transfer_function, df_md_init, df_md_confluence_0,
12546 df_md_confluence_n,
12547 df_md_top_dump, df_md_bottom_dump): Update.
12548 (struct df_lr_problem_data): Embedd bitmap headers.
12549
12550 2010-06-04 Jan Hubicka <jh@suse.cz>
12551
12552 * dce.c (dce_process_block): Do not re-scan already marked
12553 instructions.
12554
12555 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
12556
12557 PR rtl-optimization/39871
12558 PR rtl-optimization/40615
12559 PR rtl-optimization/42500
12560 PR rtl-optimization/42502
12561 * ira.c (init_reg_equiv_memory_loc: New function.
12562 (ira): Call it twice.
12563 * reload.h (calculate_elim_costs_all_insns): Declare.
12564 * ira-costs.c: Include "reload.h".
12565 (regno_equiv_gains): New static variable.
12566 (init_costs): Allocate it.
12567 (finish_costs): Free it.
12568 (ira_costs): Call calculate_elim_costs_all_insns.
12569 (find_costs_and_classes): Take estimated elimination costs
12570 into account.
12571 (ira_adjust_equiv_reg_cost): New function.
12572 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
12573 * reload1.c (init_eliminable_invariants, free_reg_equiv,
12574 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
12575 (elim_bb): New static variable.
12576 (reload): Move code out of here into init_eliminable_invariants and
12577 free_reg_equiv. Call them.
12578 (calculate_elim_costs_all_insns): New function.
12579 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
12580 all callers changed. If FOR_COSTS is true, don't call alter_reg,
12581 but call note_reg_elim_costly if we turned a valid memory address
12582 into an invalid one.
12583 * Makefile.in (ira-costs.o): Depend on reload.h.
12584
12585 2010-06-04 Julian Brown <julian@codesourcery.com>
12586
12587 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
12588 for pool ranges.
12589
12590 2010-06-04 Richard Guenther <rguenther@suse.de>
12591
12592 PR lto/41584
12593 * cgraph.h (struct varpool_node): Add lto_file_data field.
12594 * lto-cgraph.c (input_varpool_node): Initialize it.
12595
12596 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
12597
12598 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
12599 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
12600 predicate in "type" attribute calculation.
12601 (*addsi_1_zext): Ditto.
12602 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
12603 (*addsi_2_zext): Ditto.
12604 (*add<mode>_3): Ditto.
12605 (*addsi_3_zext): Ditto.
12606 (*add<mode>_5): Ditto.
12607
12608 2010-06-03 Jan Hubicka <jh@suse.cz>
12609
12610 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
12611 of bitmap_bit_p.
12612 * cfganal.c (compute_dominance_frontiers_1): Likewise.
12613
12614 2010-06-03 Jan Hubicka <jh@suse.cz>
12615
12616 * df-problems.c (df_create_unused_note, df_note_bb_compute):
12617 micro-optimize the checks when to add new note.
12618
12619 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
12620
12621 * final.c (output_asm_insn): Call
12622 targetm.asm_out.print_operand_punct_valid_p. Update comments.
12623 (output_operand): Call targetm.asm_out.print_operand. Update comments.
12624 (output_address): Call targetm.asm_out.print_operand_address.
12625 Update comments.
12626 * target.h (struct gcc_target): Add print_operand,
12627 print_operand_address, and print_operand_punct_valid_p fields.
12628 * targhooks.h (default_print_operand): Declare.
12629 (default_print_operand_address): Declare.
12630 (default_print_operand_punct_valid_p): Declare.
12631 * targhooks.c (default_print_operand): Define.
12632 (default_print_operand_address): Define.
12633 (default_print_operand_punct_valid_p): Define.
12634 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
12635 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
12636 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
12637 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
12638 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
12639 * vmsdbgout.c (addr_const_to_string): Update comment.
12640 * config/i386/i386.c (print_operand): Rename to...
12641 (ix86_print_operand): ...this. Make static.
12642 (print_operand_address): Rename to...
12643 (ix86_print_operand_address): ...this. Make static. Call
12644 ix86_print_operand instead of PRINT_OPERAND.
12645 (ix86_print_operand_punct_valid_p): New function.
12646 (TARGET_PRINT_OPERAND): Define.
12647 (TARGET_PRINT_OPERAND_ADDRESS): Define.
12648 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12649 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
12650 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
12651 (PRINT_OPERAND): Delete.
12652 (PRINT_OPERAND_ADDRESS): Delete.
12653 * config/i386/i386-protos.h (print_operand): Delete prototype.
12654 (print_operand_address): Delete prototype.
12655
12656 2010-06-03 Richard Guenther <rguenther@suse.de>
12657
12658 PR tree-optimization/44403
12659 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
12660 Preserve pointer qualifiers.
12661 (vect_create_data_ref_ptr): Likewise.
12662
12663 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
12664
12665 PR c++/44294
12666 * defaults.h (MAX_FIXED_MODE_SIZE): New.
12667
12668 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
12669
12670 2010-06-03 Jakub Jelinek <jakub@redhat.com>
12671
12672 PR debug/44375
12673 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
12674 return false if merging the bbs would lead to goto_locus
12675 location being lost from the IL.
12676
12677 2010-06-03 Jan Hubicka <jh@suse.cz>
12678 Jakub Jelinek <jakub@redhat.com>
12679
12680 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
12681 set->regs[i] is NULL or has just one entry.
12682
12683 2010-06-03 Jan Hubicka <jh@suse.cz>
12684
12685 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
12686 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
12687
12688 2010-06-03 Paul Brook <paul@codesourcery.com>
12689
12690 * config/arm/arm.c (FL_TUNE): Define.
12691 (arm_default_cpu, arm_cpu_select): Remove.
12692 (all_cores): Populate core field.
12693 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
12694 (arm_find_cpu): New function.
12695 (arm_handle_option): Lookup cpu/architecture names.
12696 (arm_override_options): Cleanup mcpu/march/mtune handling.
12697 (arm_file_start): Ditto.
12698
12699 2010-06-03 Alan Modra <amodra@gmail.com>
12700
12701 PR target/44169
12702 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
12703 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
12704 rtx to gen_load_toc_v4_PIC_1b. Tidy.
12705 (rs6000_emit_load_toc_table): Likewise.
12706
12707 2010-06-02 Jan Hubicka <jh@suse.cz>
12708
12709 * passes.c (init_optimization_passes): Put ipa reference
12710 after ipa pure-const.
12711
12712 2010-06-02 Jan Hubicka <jh@suse.cz>
12713
12714 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
12715 calls_read_all and calls_write_all.
12716 (get_reference_optimization_summary): Fix formatting.
12717 (is_proper_for_analysis): Check that decl is not readonly.
12718 (propagate_bits): Check CONST/PURE/noreturn flags.
12719 (ipa_init): Move all_module_statics to optimization_summary_obstack.
12720 (analyze_function): Ignore indirect edges.
12721 (copy_global_bitmap): For all module statics, do nothing.
12722 (generate_summary): Do not print calls_read_all/calls_write_all.
12723 (read_write_all_from_decl): Take node as argument; check
12724 cgraph_node_cannot_return.
12725 (propagate): Reorganize read_all/write_all computation;
12726 check indirect edges; check ecf flags; use all_module_statics
12727 in the results; do not free all_module_statics.
12728 (stream_out_bitmap): Handle all_module_statics.
12729 (ipa_reference_write_optimization_summary): Likewise; use
12730 varpool/cgraph encoders to get boundaries.
12731 (ipa_reference_read_optimization_summary): Read in all_module_statics;
12732 use it when possible.
12733
12734 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12735
12736 PR target/44218
12737 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
12738 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
12739
12740 * doc/extend.texi (powerpc builtins): Document vec_recip,
12741 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
12742
12743 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
12744 (rs6000_emit_swrsqrt): Ditto.
12745 (rs6000_emit_swdivsf): Delete.
12746 (rs6000_emit_swdivdf): Ditto.
12747 (rs6000_emit_swrsqrtsf): Ditto.
12748
12749 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
12750 describe the reciprocal estimate support for each type.
12751 (recip_options): Map -mrecip=<opt> into option bits.
12752 (gen_2arg_fn_t): New typedef for binary rtx gen function.
12753 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
12754 reciprocal estimate instructions.
12755 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
12756 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
12757 Set up rs6000_recip_bits based on the -mrecip* options. Print the
12758 cost information if -mdebug=cost or -mdebug=reg.
12759 (rs6000_override_options): Set -mrecip-precision for power6, and
12760 power7 machines. If -mvsx or -mdfp, enable various options that
12761 came in previous instruction set ISAs, unless the option was
12762 explicitly disabled by the command line option. Parse
12763 -mrecip=<opt> options.
12764 (rs6000_builtin_vectorized_function): Add support for vectorizing
12765 the reciprocal estimate builtins and expansions.
12766 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
12767 (bdesc_2arg): Add reciprocal estimate builtins.
12768 (bdesc_1arg): Add reciprocal square root estimate builtins.
12769 (rs6000_expand_builtin): Rewrite to use a switch statement,
12770 instead of multiple if/then/elses. Add reciprocal estimate builtins.
12771 (rs6000_init_builtins): Create declarations for reciprocal
12772 estimate builtins.
12773 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
12774 sized, prefer traditional floating point registers, if integer
12775 vector types, prefer altivec registers. Don't actually look at
12776 the memory address any more.
12777 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
12778 builtins.
12779 (rs6000_load_constant_and_splat): New helper function to load up
12780 the constant for reciprocal estimate instructions.
12781 (rs6000_emit_madd): New helper function for generating
12782 multiply/add type instructions, based on the current switches.
12783 (rs6000_emit_msub): Ditto.
12784 (rs6000_emit_mnsub): Ditto.
12785 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
12786 replace a divide with a reciprocal estimate and fixup, adding
12787 support for machines with high precision and vectors.
12788 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
12789 low precision machines.
12790 (rs6000_emit_swdiv): New common function to be called to replace a
12791 division with reciprocal estimate and fixup.
12792 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
12793 for double and vector types. Add support for high precision machines.
12794
12795 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
12796 the reciprocal estimate instructions can be generated.
12797 (TARGET_FRE): Ditto.
12798 (TARGET_FRSQRTES): Ditto.
12799 (TARGET_FRSQRTE): Ditto.
12800 (RS6000_RECIP_*): New macros for reciprocal estimate support.
12801
12802 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
12803 square root estimate on vectors.
12804 (re<mode>2): New insn for reciprocal division estimate on vectors.
12805
12806 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
12807 New builtin.
12808 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
12809 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
12810 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
12811 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
12812 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
12813 (RS6000_BUILTIN_RSQRT): Ditto.
12814 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
12815 floating point builtin.
12816
12817 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
12818 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
12819 __RECIP_PRECISION__ based on the command line switches.
12820 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
12821
12822 * config/rs6000/rs6000.opt (-mrecip): Document add support for
12823 replacing division instructions with reciprocal estimate and fixup.
12824 (-mrecip=<opt>): New option.
12825 (-mrecip-precision): Ditto.
12826
12827 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
12828 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
12829 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
12830 precision scalar.
12831
12832 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
12833 (UNSPEC_VREFP): Ditto.
12834 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
12835 conterparts with regard to support of -mno-fused-madd and -ffast-math.
12836 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
12837 reciprocal estimate instructions to be generated.
12838 (altivec_vrefp): Ditto.
12839
12840 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
12841 estimate support.
12842 (rreg): New mode attribute for reciprocal estimate support.
12843 (recip<mode>3): New insn for division using reciprocal estimate
12844 and fixup builtins.
12845 (divide define_split): New define_split to convert floating point
12846 division to use reciprocal estimate if the user used the
12847 appropriate options and the split is run when we can add new
12848 pseudo registers for the fixup.
12849 (rsqrt<mode>2): New insn for reciprocal square root support.
12850 (recipsf3): Move into recip<mode>3.
12851 (recipdf3): Ditto.
12852 (fres): Use TARGET_FRES.
12853 (rsqrtsf2): Move into rsqrt<mode>2.
12854 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
12855 (copysignsf3): Add support for VSX.
12856 (fred): Use TARGET_FRE.
12857 (fred_fpr): Ditto.
12858 (rsqrtdf_internal1): New function for frsqrte instruciton.
12859
12860 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
12861 (vec_rsqrt): Ditto.
12862
12863 2010-06-03 Richard Guenther <rguenther@suse.de>
12864
12865 PR middle-end/44291
12866 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
12867 (set_user_assembler_libfunc): Likewise.
12868
12869 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
12870
12871 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
12872 defaults.h.
12873 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
12874 to defaults.h
12875 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
12876 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
12877 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
12878 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
12879 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
12880 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
12881 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
12882 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
12883 * defaults.h: Updated for above mentioned changes.
12884
12885 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
12886
12887 * c-common.c: Remove header include of tm_p.h.
12888 * Makefile.in (c-common.o): Remove TM_P_H dependency.
12889
12890 2010-06-02 Jakub Jelinek <jakub@redhat.com>
12891
12892 * tree.h (struct tree_decl_map): New type.
12893 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
12894 (tree_decl_map_hash): New prototype.
12895 (debug_expr_for_decl, value_expr_for_decl): Change into
12896 tree_decl_map hashtab from tree_map.
12897 (init_ttree): Adjust initialization.
12898 (tree_decl_map_hash): New function.
12899 (decl_debug_expr_lookup, decl_debug_expr_insert,
12900 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
12901
12902 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12903
12904 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
12905 linker emulations.
12906 * configure: Regenerate.
12907 * config.in: Regenerate.
12908
12909 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
12910 (X86_64_EMULATION): Define.
12911 (TARGET_LD_EMULATION): Use them.
12912
12913 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
12914 (SPARC64_EMULATION): Define.
12915 (LINK_ARCH_SPEC): Use them.
12916
12917 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
12918
12919 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
12920 smallest_mode_for_size for computing the precision types of new
12921 graphite IVs. Do not call lang_hooks.types.type_for_size.
12922
12923 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
12924
12925 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
12926 information.
12927 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
12928
12929 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
12930
12931 PR middle-end/44363
12932 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
12933 return false instead.
12934
12935 2010-06-02 Jan Hubicka <jh@suse.cz>
12936
12937 PR middle-end/44295
12938 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
12939 create new cgraph node to check callee.
12940
12941 2010-06-02 Richard Guenther <rguenther@suse.de>
12942
12943 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
12944
12945 2010-06-02 Richard Guenther <rguenther@suse.de>
12946
12947 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
12948 (lto_wrapper_cleanup): ... this. Do not exit.
12949 (fatal): Adjust. Exit here.
12950 (fatal_perror): Likewise.
12951 (fatal_signal): New function.
12952 (main): Set up signal handlers to cleanup temporary files.
12953 * Makefile.in (lto-wrapper.o): Adjust dependencies.
12954
12955 2010-06-02 Richard Guenther <rguenther@suse.de>
12956
12957 PR tree-optimization/44377
12958 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
12959
12960 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12961
12962 * config/s390/2097.md (z10_fhex): Remove insn reservation.
12963 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
12964 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
12965 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
12966 instruction.
12967 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
12968
12969 2010-06-02 Jan Hubicka <jh@suse.cz>
12970
12971 * bitmap.c (bitmap_descriptor): Add search_iter.
12972 (bitmap_find_bit): Increment it.
12973 (print_statistics): Print it.
12974
12975 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
12976
12977 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
12978 instead of gimple_build_call_vec. Delete unnecessary local variable.
12979
12980 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
12981
12982 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
12983 change from yesterday.
12984
12985 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
12986
12987 * c-ada-spec.c: Clean up redundant includes.
12988
12989 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
12990
12991 * gimplify.c: Do not include except.h and optabs.h.
12992 (gimplify_body): Do not initialize RTL profiling.
12993 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
12994 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
12995 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
12996 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
12997 langhooks.h.
12998
12999 * tree-pretty-print.h: Include pretty-print.h.
13000 * gimple-pretty-print.h: Include pretty-print.h.
13001
13002 * tree-pretty-print.c: Do not include diagnostic.h.
13003 * tree-vrp.c: Likewise.
13004 * tree-tailcall.c: Likewise
13005 * tree-scalar-evolution.c: Likewise
13006 * tree-ssa-dse.c: Likewise
13007 * tree-chrec.c: Likewise
13008 * tree-ssa-sccvn.c: Likewise
13009 * tree-ssa-copyrename.c: Likewise
13010 * tree-nomudflap.c: Likewise
13011 * tree-call-cdce.c: Likewise
13012 * tree-stdarg.c: Likewise
13013 * tree-ssa-math-opts.c: Likewise
13014 * tree-nrv.c: Likewise
13015 * tree-ssa-sink.c: Likewise
13016 * tree-browser.c: Likewise
13017 * tree-ssa-loop-ivcanon.c: Likewise
13018 * tree-ssa-loop.c: Likewise
13019 * tree-parloops.c: Likewise
13020 * tree-ssa-address.c: Likewise
13021 * tree-ssa-ifcombine.c: Likewise
13022 * tree-if-conv.c: Likewise
13023 * tree-data-ref.c: Likewise
13024 * tree-affine.c: Likewise
13025 * tree-ssa-phiopt.c: Likewise
13026 * tree-ssa-coalesce.c: Likewise
13027 * tree-ssa-pre.c: Likewise
13028 * tree-ssa-live.c: Likewise
13029 * tree-predcom.c: Likewise
13030 * tree-ssa-forwprop.c: Likewise
13031 * tree-ssa-dce.c: Likewise
13032 * tree-ssa-ter.c: Likewise
13033 * tree-ssa-loop-prefetch.c: Likewise
13034 * tree-optimize.c: Likewise
13035 * tree-ssa-phiprop.c: Likewise
13036 * tree-object-size.c: Likewise
13037 * tree-outof-ssa.c: Likewise
13038 * tree-ssa-structalias.c: Likewise
13039 * tree-switch-conversion.c: Likewise
13040 * tree-ssa-reassoc.c: Likewise
13041 * tree-ssa-operands.c: Likewise
13042 * tree-vectorizer.c: Likewise
13043 * tree-vect-data-refs.c: Likewise
13044 * tree-vect-generic.c: Likewise
13045 * tree-vect-stmts.c: Likewise
13046 * tree-vect-patterns.c: Likewise
13047 * tree-vect-slp.c: Likewise
13048 * tree-vect-loop.c: Likewise
13049 * tree-ssa-loop-ivopts.c: Likewise
13050 * tree-ssa-loop-im.c: Likewise
13051 * tree-ssa-loop-niter.c: Likewise
13052 * tree-ssa-loop-unswitch.c: Likewise
13053 * tree-ssa-loop-manip.c: Likewise
13054 * tree-ssa-loop-ch.c: Likewise
13055 * tree-dump.c: Likewise
13056 * tree-complex.c: Likewise
13057
13058 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
13059 * tree-ssa-uninit.c: Likewise
13060 * tree-ssa-threadupdate.c: Likewise
13061 * tree-ssa-uncprop.c: Likewise
13062 * tree-ssa-ccp.c: Likewise
13063 * tree-ssa-dom.c: Likewise
13064 * tree-ssa-propagate.c: Likewise
13065 * tree-ssa-alias.c: Likewise
13066 * tree-dfa.c: Likewise
13067 * tree-cfgcleanup.c: Likewise
13068 * tree-sra.c: Likewise
13069 * tree-ssa-copy.c: Likewise
13070 * tree-ssa.c: Likewise
13071 * tree-profile.c: Likewise
13072 * tree-cfg.c: Likewise
13073 * tree-ssa-threadedge.c: Likewise
13074 * tree-vect-loop-manip.c: Likewise
13075
13076 * tree-inline.c: Do not include diagnostic.h and expr.h.
13077 Include rtl.h.
13078 (copy_decl_for_dup_finish): Do not use NULL_RTX.
13079
13080 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
13081 * tree-loop-distribution.c: Likewise.
13082
13083 2010-06-01 Jan Hubicka <jh@suse.cz>
13084
13085 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
13086
13087 2010-06-01 Jan Hubicka <jh@suse.cz>
13088
13089 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
13090 remove return value.
13091 (split_bbs_on_noreturn_calls) .... here.
13092 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
13093 * tree-flow.h (fixup_noreturn_call): New.
13094
13095 2010-06-01 Jan Hubicka <jh@suse.cz>
13096
13097 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
13098
13099 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
13100
13101 * tree.h (build_nt_call_list): Delete.
13102 * tree.c (build_nt_call_list): Delete.
13103
13104 2010-06-01 Jan Hubicka <jh@suse.cz>
13105
13106 * fwprop.c: Make emit-rtl.h include last.
13107 * rtlanal.c: Include emit-rtl.h.
13108 * genautomata.c: Output emit-rtl include into insn-automata.c
13109 * df-scan.c: Include emit-rtl.h.
13110 * haifa-sched.c: Indlude emit-rtl.h.
13111 * mode-switching.c: Indlude emit-rtl.h.
13112 * graph.c: Indlude emit-rtl.h.
13113 * sel-sched.c: Include emit-rtl.h.
13114 * sel-sched-ir.c: Include emit-rtl.h.
13115 * ira-build.c: Include emit-rtl.h.
13116 * emit-rtl.c (first_insn, last_insn): Remove defines.
13117 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
13118 Move to emit-rtl.h.
13119 (set_new_first_and_last_insn, get_last_insn_anywhere,
13120 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
13121 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
13122 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
13123 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
13124 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
13125 Use accessor functions.
13126 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
13127 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
13128 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
13129 mem_expr_equal_p): Move here from rtl.h.
13130 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
13131 Move here from emit-rtl.c; make inline.
13132 * cfglayout.h: Include emit-rtl.h.
13133 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
13134 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
13135 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
13136 mem_expr_equal_p, get_insns, set_first-insn,
13137 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
13138 * reg-stack.c: Include emit-rtl.h.
13139 * dce.c: Likewise.
13140
13141 2010-06-01 Jan Hubicka <jh@suse.cz>
13142
13143 * cgraph.h (tree_function_versioning): Update prototype.
13144 (cgraph_function_versioning): Update prototype.
13145 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
13146 bitmap.
13147 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
13148 (cgraph_materialize_clone, save_inline_function_body): Update use of
13149 tree_function_versioning.
13150 * tree-inline.c (copy_bb): Look for previous copied block to link
13151 after; fix debug output.
13152 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
13153 (copy_body): Likewise.
13154 (expand_call_inline): Update use of copy_body.
13155 (tree_function_versioning): Update use of copy body; accept
13156 blocks_to_copy and new_entry.
13157
13158 2010-06-01 Jan Hubicka <jh@suse.cz>
13159
13160 * gegenrtl.c: Remove unnecesary prototypes.
13161 (gendecl): Remove.
13162 (gendef): Produce static inline.
13163 (gencode): Remove.
13164 (main): Do not decode parameters; generate header only.
13165 * Makefile.in (genrtl.c): Remove.
13166
13167 2010-06-01 Jan Hubicka <jh@suse.cz>
13168
13169 * tree-switch-conversion.c (build_one_array): Make it readonly.
13170
13171 2010-06-01 Richard Guenther <rguenther@suse.de>
13172
13173 * optabs.c (init_optabs): Guard all accesses to reinit.
13174 * ipa-pure-const.c (propagate): Fix another typo.
13175 * opts.c (common_handle_option): Split assignment to bool.
13176 * c-opts.c (c_common_handle_option): Likewise.
13177
13178 2010-06-01 Arnaud Charlet <charlet@adacore.com>
13179 Matthew Gingell <gingell@adacore.com>
13180
13181 * doc/invoke.texi: Mention -fdump-ada-spec.
13182 * tree-dump.c (dump_files): Add ada-spec.
13183 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
13184 * tree-pass.h (tree_dump_index): Add TDI_ada.
13185 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
13186 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
13187 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
13188 * c-decl.c: Include c-ada-spec.h.
13189 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
13190 functions.
13191 (c_write_global_declarations): Add handling of -fdump-ada-spec.
13192 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
13193 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
13194 * c-ada-spec.h, c-ada-spec.c: New files.
13195
13196 2010-06-01 Richard Guenther <rguenther@suse.de>
13197
13198 PR lto/43853
13199 * ipa-pure-const.c (get_function_state): Hand back varying state
13200 if we do not have one.
13201 (has_function_state): New function.
13202 (duplicate_node_data): Adjust.
13203 (remove_node_data): Likewise.
13204 (pure_const_write_summary): Likewise.
13205 (propagate): Likewise. Fix typo.
13206
13207 2010-06-01 Jan Hubicka <jh@suse.cz>
13208
13209 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
13210 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
13211 (execute_all_ipa_transforms): Do not play with the states.
13212
13213 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
13214
13215 * config/arm/t-linux-androideabi: New.
13216 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
13217
13218 2010-06-01 Jan Hubicka <jh@suse.cz>
13219
13220 * tree-inline.c (estimate_num_insns): For stdarg functions look
13221 into call statement to count cost of argument passing.
13222
13223 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
13224
13225 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
13226 argument for fprintf.
13227 (ix86_output_addr_diff_elt): Likewise.
13228 (x86_function_profiler): Likewise.
13229 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
13230 (LPREFIX): Likewise.
13231 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
13232
13233 2010-05-31 Jakub Jelinek <jakub@redhat.com>
13234
13235 PR target/44338
13236 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
13237 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
13238 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
13239 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
13240 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
13241 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
13242 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
13243 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
13244 TARGET_FUSED_MADD.
13245
13246 2010-05-31 Jan Hubicka <jh@suse.cz>
13247
13248 * tree.h (tree_range_check_failed): Declare noreturn.
13249
13250 2010-05-31 Jan Hubicka <jh@suse.cz>
13251
13252 * gimple.c (gimple_call_builtin_p): New function.
13253 * gimple.h (gimple_call_builtin_p): Declare.
13254 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
13255 to exit.
13256 (execute_warn_function_return): BUILT_IN_RETURN is return.
13257 (split_critical_edges): Return edges are not critical.
13258 (is_ctrl_altering_stmt): Builtin_in_return is altering.
13259 (gimple_verify_flow_info): Handle built_in_return.
13260 (execute_warn_function_return): Handle built_in_return.
13261 * ipa-pure-const.c (check_call): Ignore builtin_return.
13262
13263 2010-05-31 Jakub Jelinek <jakub@redhat.com>
13264
13265 PR middle-end/44337
13266 * expr.c (expand_assignment): Don't store anything for out-of-bounds
13267 array accesses with non-MEM.
13268
13269 PR tree-optimization/44182
13270 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
13271 newly needs to end a bb is followed by debug stmts, instead return
13272 true from the function at the end.
13273 (maybe_move_debug_stmts_to_successors): New function.
13274 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
13275
13276 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
13277
13278 PR target/44161
13279 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
13280
13281 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
13282
13283 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
13284 for nested functions in non-optimized compilation.
13285
13286 2010-05-31 Richard Guenther <rguenther@suse.de>
13287
13288 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
13289
13290 2010-05-30 Jan Hubicka <jh@suse.cz>
13291
13292 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
13293
13294 2010-05-30 Richard Guenther <rguenther@suse.de>
13295
13296 PR lto/42975
13297 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
13298 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
13299 no longer needed.
13300
13301 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
13302
13303 * config/darwin.c (output_objc_section_asm_op): Add comment.
13304 (name_needs_quotes): Add '_' to list of valid comment chars.
13305 (machopic_output_function_base_name): Remove unneeded quotes.
13306 (darwin_encode_section_info): Adjust asm whitespace.
13307 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
13308 (ASM_OUTPUT_LOCAL): Ditto.
13309 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
13310 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
13311 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
13312
13313 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
13314
13315 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
13316 RS6000_OUTPUT_BASENAME unconditionally.
13317 (rs6000_output_function_epilogue): Likewise.
13318
13319 2010-05-30 Jan Hubicka <jh@suse.cz>
13320
13321 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
13322 nodes.
13323
13324 2010-05-30 Richard Guenther <rguenther@suse.de>
13325
13326 * tree-cfg.c (verify_gimple_assign_single): Implement
13327 verification for COND_EXPR rhs.
13328
13329 2010-05-30 Jan Hubicka <jh@suse.cz>
13330
13331 * cgraph.h (cgraph_dump_file): Declare.
13332 * cgraphunit.c (cgraph_dump_file): Export.
13333 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
13334
13335 2010-05-30 Jan Hubicka <jh@suse.cz>
13336
13337 * dwarf2out.c (reference_to_unused,
13338 premark_types_used_by_global_vars_helper): Avoid creation of new
13339 varpool nodes.
13340
13341 2010-05-30 Jan Hubicka <jh@suse.cz>
13342
13343 * cgraph.h (cgraph_node_cannot_return,
13344 cgraph_edge_cannot_lead_to_return): New functions.
13345 * cgraph.c (cgraph_node_cannot_return,
13346 cgraph_edge_cannot_lead_to_return): Use them.
13347 * ipa-pure-const.c (pure_const_names): New static var.
13348 (check_call): Handle calls not leading to return.
13349 (pure_const_read_summary): Dump info read.
13350 (propagate): Dump info about propagation process; ignore side effects
13351 of functions not leading to exit; fix handling of pure functions.
13352
13353 2010-05-30 Jan Hubicka <jh@suse.cz>
13354
13355 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
13356 for tail call epilogues.
13357
13358 2010-05-30 Jan Hubicka <jh@suse.cz>
13359
13360 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
13361 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
13362 dump files.
13363
13364 2010-05-29 Jan Hubicka <jh@suse.cz>
13365
13366 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
13367 node; remove references in node we no longer keep in cgrpah but need
13368 body of.
13369
13370 2010-05-29 Jan Hubicka <jh@suse.cz>
13371
13372 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
13373
13374 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13375
13376 PR target/44165
13377 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
13378
13379 2010-05-29 Jan Hubicka <jh@suse.cz>
13380
13381 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
13382 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
13383 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
13384 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
13385 debug_names_replaced_by, debug_update_ssa): Likewise.
13386 * sbitmap.c (debug_sbitmap): Likewise.
13387 * genrecog.c (debug_decision, debug_decision_list): Likewise.
13388 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
13389 debug_tree_chain): Likewise.
13390 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
13391 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
13392 * optabs.c (debug_optab_libfuncs): Likewise.
13393 (verify_loop_closed_ssa): Likewise.
13394 * value-prof.c (verify_histograms): Likewise.
13395 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
13396 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
13397 * cfghooks.c (verify_flow_info): Likewise.
13398 * fold-const.c (debug_fold_checksum): Likewise.
13399 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
13400 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
13401 Likewise.
13402 * omega.c (debug_omega_problem): Likewise.
13403 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
13404 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
13405 * dominance.c (verify_dominators, debug_dominance_info,
13406 debug_dominance_tree): Likewise.
13407 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
13408 * df_regno_debug, df_ref_debug,
13409 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
13410 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
13411 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
13412 * sel-sched.c (debug_state): Likewise.
13413 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
13414 Likewise.
13415 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
13416 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
13417 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
13418 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
13419 Likewise.
13420 * c-pretty-print.c (debug_c_tree): Likewise.
13421 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
13422 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
13423 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
13424 * ebitmap.c (debug_ebitmap): Likewise.
13425 * function.c (debug_find_var_in_block_tree): Likewise.
13426 * print-rtl.c (debug_rtx): Likewise.
13427 (debug_rtx_count): Likewise.
13428 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
13429 * stor-layout.c (debug_rli): Likewise.
13430 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
13431 * tree-data-ref.c (debug_data_references,
13432 debug_data_dependence_relations, debug_data_reference,
13433 debug_data_dependence_relation, debug_rdg_vertex,
13434 debug_rdg_component, debug_rdg): Likewise.
13435 * tree-affine.c (debug_aff): Likewise.
13436 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
13437 Likewise.
13438 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
13439 * emit-rtl.c (verify_rtl_sharing): Likewise.
13440 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
13441 debug_value_expressions): Likewise.
13442 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
13443 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
13444 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
13445 * cfglayout.c (verify_insn_chain): Likewise.
13446 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
13447 debug_clast_stmt, debug_generated_program): Likewise.
13448 * ggc-page.c (debug_print_page_list): Likewise.
13449 * tree-ssa-ter.c (debug_ter): Likewise.
13450 * graphite-dependences.c (debug_pddr): Likewise.
13451 * sched-deps.c (debug_ds): Likewise.
13452 * tree-ssa.c (verify_ssa): Likewise.
13453 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
13454 debug_scattering_functions, debug_iteration_domains, debug_pdr,
13455 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
13456 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
13457 * tree-inline.c (debug_find_tree): Likewise.
13458 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
13459 debug_ppl_powerset_matrix): Likewise.
13460 * var-tracking.c (debug_dv): Likewise.
13461 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
13462 * cfgloop.c (verify_loop_structure): Likewise.
13463 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
13464 * c-common.c (verify_sequence_points): Likewise.
13465 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
13466 debug_candidates, debug_rgn_dependencies): Likewise.
13467 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
13468 * debug_constraint_graph, debug_solution_for_var,
13469 debug_sa_points_to_info): Likewise.
13470 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
13471 Likewie.
13472 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
13473 debug_loops, debug_loop, debug_loop_num): Likewise.
13474 * passes.c (debug_pass): Likewise.
13475 (dump_properties): Likewise; add cfglayout property.
13476 (debug_properties): Likewise.
13477 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
13478 * varpool.c (debug_varpool): Likewise.
13479 * regcprop.c (debug_value_data): Likewise.
13480 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
13481 debug_immediate_uses_for): Likewise.
13482
13483 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
13484
13485 PR bootstrap/44315
13486 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
13487 Filter out insn-flags.h.
13488
13489 2010-05-29 Jan Hubicka <jh@suse.cz>
13490
13491 * cgraph.h (struct varpool_node_set_def,
13492 struct cgraph_node_set_def): Remove unused AUX pointer.
13493 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
13494 VEC_empty macro.
13495
13496 2010-05-29 Jan Hubicka <jh@suse.cz>
13497
13498 PR middle-end/44324
13499 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
13500
13501 2010-05-29 Richard Guenther <rguenther@suse.de>
13502
13503 * lto-streamer.c (cached_bp): New global variable.
13504 (bitpack_create): Return the cached bitpack, if available.
13505 (bitpack_delete): Clear and cache the bitpack, if appropriate.
13506 (bp_pack_value): Remove redundant asserts.
13507
13508 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
13509
13510 PR middle-end/44306
13511 * tree-if-conv.c (is_true_predicate): New.
13512 (is_predicated): Use is_true_predicate.
13513 (add_to_predicate_list): Same. Do not use unshare_expr.
13514 (add_to_dst_predicate_list): Same.
13515
13516 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
13517
13518 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
13519 field on edges.
13520 (predicate_bbs): Same.
13521 (clean_predicate_lists): Same.
13522 (find_phi_replacement_condition): Do not AND the predicate from
13523 edge->aux.
13524
13525 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
13526
13527 PR bootstrap/44315
13528 * Makefile.in (build/gencondmd.o): Add a missing `\'.
13529
13530 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13531
13532 PR target/44261
13533 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
13534 (negdf2): Adjust expander pattern and use negdf2_slow.
13535 (negsf2): Likewise.
13536
13537 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
13538
13539 * basic-block.h (struct control_flow_graph): Move last_label_uid field
13540 up.
13541 * df.h (struct df_base_ref): Move regno field up.
13542 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
13543 * expr.h (struct separate_ops): Move location field up.
13544 * optabs.h (struct optab_d): Move libcall_basename field down.
13545 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
13546 * config/i386/i386.h (struct machine_function): Convert call_abi field
13547 into a bitfield. Move cfa field to the end of the structure.
13548
13549 2010-05-29 Jan Hubicka <jh@suse.cz>
13550
13551 * varpool.c (varpool_get_node): Fix lookup.
13552
13553 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
13554
13555 * config/spu/spu-protos.h: Do not include rtl.h. Protect
13556 RTL specific prototypes with #ifdef RTX_CODE.
13557 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
13558 * config/spu/t-spu-elf: Fix dependencies.
13559
13560 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
13561
13562 2010-05-29 Mike Stump <mikestump@comcast.net>
13563
13564 PR bootstrap/44315
13565 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
13566 TM_H when building to avoid dependency loops.
13567
13568 2010-05-29 Jan Hubicka <jh@suse.cz>
13569
13570 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
13571 refs and body; not the whole node for masters of materialized clones.
13572
13573 2010-05-29 Mike Stump <mikestump@comcast.net>
13574
13575 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
13576
13577 2010-05-29 Jan Hubicka <jh@suse.cz>
13578
13579 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
13580 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
13581 use of clone_function_name.
13582 * cgraph.h (cgraph_create_virtual_clone,
13583 cgraph_function_versioning): update prototypes.
13584 (clone_function_name): Declare.
13585 * ipa-cp.c (ipcp_insert_stage): Update call of
13586 cgraph_create_virtual_clone.
13587 * omp-low.c (create_omp_child_function_name): Use
13588 cgraph_create_virtual_clone.
13589 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
13590 (cgraph_function_versioning): Take SUFFIX argument; produce new name
13591 and make decl local.
13592
13593 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
13594
13595 * vec.h: Include statistics.h
13596 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
13597 with VEC_H.
13598
13599 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
13600
13601 * c-lex.c: Do not include c-tree.h.
13602 * c-pretty-print.c: Likewise.
13603 * c-opts.c: Likewise.
13604 * c-gimplify.c: Likewise.
13605 * c-common.c: Likewise.
13606 * c-dump.c: Likewise. Include c-common.h.
13607
13608 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
13609
13610 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
13611 before including diagnostic-core.h.
13612 (c_cpp_error): New prototype moved from c-tree.h.
13613 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
13614 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
13615 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
13616 (c_cpp_error): Prototype moved to c-common.h.
13617 * Makefile.in: Update dependency for C_COMMON_H.
13618
13619 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
13620
13621 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
13622 * c-common.c (c_register_addr_space): Remove here.
13623 * c-decl.c (c_register_addr_space): Re-add here.
13624
13625 2010-05-28 Mike Stump <mikestump@comcast.net>
13626
13627 * config/darwin-c.c: Remove c-tree.h include.
13628
13629 2010-05-28 Joseph Myers <joseph@codesourcery.com>
13630
13631 * gcc.c: Include diagnostic.h.
13632 (error_count): Remove. All users changed to use errorcount.
13633 (programname): Remove. All users changed to use progname.
13634 (fancy_abort, internal_error, fatal_error, error, warning, inform,
13635 fnotice): Remove.
13636 (execute): Don't include "Internal error" and bug reporting
13637 information in argument of internal_error call.
13638 (process_command): Don't increment error_count after calling
13639 perror_with_name.
13640 (input_filename): Rename to gcc_input_filename. All users
13641 changed.
13642 (main): Call diagnostic_initialize. Register delete_temp_files
13643 with atexit. Use seen_error to test for errors.
13644 * gcc.h: Include diagnostic-core.h.
13645 (fatal_error, error, warning): Remove.
13646 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
13647 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
13648 (gcc.o): Update dependencies.
13649
13650 2010-05-28 Jeff Law <law@redhat.com>
13651
13652 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
13653 functions.
13654 * ira.h (ira_bad_reload_regno): Declare
13655 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
13656
13657 * ira-color.c (update_curr_costs): Free updated hard reg costs.
13658 (ira_reassign_conflict_allocnos): Remove bogus asserts.
13659 (allocno_reload_assign): Likewise.
13660
13661 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
13662
13663 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
13664 build1_stat.
13665
13666 2010-05-28 Richard Guenther <rguenther@suse.de>
13667
13668 PR lto/44312
13669 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
13670 Stream fixed-point constants mode.
13671 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
13672 and TYPE_PRECISION.
13673 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
13674 Stream fixed-point constants mode.
13675 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
13676 and TYPE_PRECISION.
13677
13678 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
13679
13680 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
13681 only place it was called from.
13682 (number_of_latch_executions): Do not return chrec_dont_know when the
13683 may_be_zero is a runtime condition: instead, return a COND_EXPR
13684 including the may_be_zero condition.
13685 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
13686 of nb_iterations.
13687 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
13688 COND_EXPRs.
13689
13690 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
13691
13692 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
13693 generate COND_EXPRs for degenerate_phi_result.
13694
13695 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
13696
13697 PR middle-end/44293
13698 * tree-if-conv.c (if_convertible_loop_p): Check the
13699 if-convertibility of phi nodes in non predicated BBs.
13700
13701 2010-05-28 Joseph Myers <joseph@codesourcery.com>
13702
13703 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
13704
13705 2010-05-28 Joseph Myers <joseph@codesourcery.com>
13706
13707 PR driver/15303
13708 * gcc.c (inform, warning, inform): New functions.
13709 (fatal_ice): Rename to internal_error; change cmsgid parameter to
13710 gmsgid. All callers changed.
13711 (notice): Rename to fnotice; add parameter fp. All callers changed.
13712 (fatal_error): Rename to fatal_signal. All users changed.
13713 (fatal): Rename to fatal_error; change cmsgid parameter to
13714 gmsgid. All callers changed.
13715 (process_command): Use warning instead of error for warnings.
13716 (end_going_arg): Don't use _() around argument of error.
13717 (do_spec_1): Use inform for message from %n specs. Use warning
13718 instead of error for warnings.
13719 (main): Use inform for comparison messages. Use warning for
13720 message about unused linker input.
13721 (error): Increment error_count. Print "error: ".
13722 * gcc.h (fatal): Change to fatal_error.
13723 (warning): Declare.
13724 * config/darwin-driver.c (darwin_default_min_version): Use warning
13725 instead of fprintf for warnings.
13726 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
13727
13728 2010-05-28 Julian Brown <julian@codesourcery.com>
13729
13730 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
13731 (*thumb2_addsi3_compare0_scratch): New.
13732 * config/arm/constraints.md (Pv): New.
13733 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
13734 for ARM mode only.
13735 (*addsi3_compare0_scratch): Likewise.
13736
13737 2010-05-28 Jan Hubicka <jh@suse.cz>
13738
13739 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
13740 check.
13741 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
13742 only on local statics.
13743
13744 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
13745
13746 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
13747
13748 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
13749
13750 PR bootstrap/44314
13751 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
13752 (OPTION_GLIBC): Define.
13753
13754 2010-05-28 Jakub Jelinek <jakub@redhat.com>
13755
13756 PR debug/41048
13757 * dwarf2out.c (double_int_type_size_in_bits): New function.
13758 (round_up_to_align): Change first argument and return value to
13759 double_int.
13760 (field_byte_offset): Work internally on double_ints.
13761
13762 PR target/43636
13763 * builtins.c (expand_movstr): Use a temporary pseudo instead
13764 of target even when target is not NULL and not const0_rtx, but
13765 fails movstr predicate.
13766 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
13767
13768 2010-05-28 Joseph Myers <joseph@codesourcery.com>
13769
13770 * final.c (rest_of_clean_state): Use %m in errors instead of
13771 strerror (errno).
13772 * gengtype.c (read_input_list, close_output_files): Use xstrerror
13773 instead of strerror.
13774 * toplev.c (process_options): Use %m in errors instead of strerror
13775 (errno).
13776 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
13777 (errno).
13778
13779 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
13780
13781 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
13782 (ix86_canonical_va_list_type): Make static. Add declaration.
13783 (ix86_enum_va_list): Make static. Reindent.
13784 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
13785 (ix86_canonical_va_list_type): Ditto.
13786 (ix86_enum_va_list): Ditto.
13787
13788 2010-05-28 Richard Guenther <rguenther@suse.de>
13789
13790 * lto-wrapper.c (run_gcc): With -save-temps generate a
13791 user-visible ltrans filename. Fixup ltrans unit numbering.
13792
13793 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
13794
13795 * c-common.c (c_common_nodes_and_builtins): Replace use
13796 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
13797 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
13798 to ix86_enum_va_list.
13799 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
13800 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
13801 (TARGET_ENUM_VA_LIST_P): Add hook description.
13802 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
13803 * target.h (gcc_target): Add enum_va_list hook.
13804
13805 PR bootstrap/44299
13806 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
13807 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
13808 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
13809
13810 2010-05-28 Alan Modra <amodra@gmail.com>
13811
13812 PR target/44266
13813 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
13814 emit_library_call machinery to set up __tls_get_addr calls.
13815
13816 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13817
13818 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
13819
13820 2010-05-28 Dodji Seketeli <dodji@redhat.com>
13821
13822 Revert fix for PR c++/44188
13823 * c-common.c (is_typedef_decl): Revert the moving of this
13824 definition ...
13825 * tree.c (is_typedef_decl): ... here.
13826 (typdef_variant_p): Revert the moving of this definition
13827 here from gcc/cp/tree.c.
13828 * c-common.h (is_typedef_decl): Revert the moving of this
13829 declaration ...
13830 * tree.h (is_typedef_decl): ... here.
13831 (typedef_variant_p): Revert the moving of this declaration here
13832 from gcc/cp/cp-tree.h
13833 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
13834 (gen_tagged_type_die): Revert the splitting out of ...
13835 (gen_type_die_with_usage): ... this function. Revert the anonymous
13836 tagged type handling.
13837 (gen_typedef_die): Revert emitting DW_TAG_typedef for
13838 typedefs naming anonymous tagged types.
13839
13840 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
13841
13842 * config/rs6000/rs6000-modes.def (PSImode): Delete.
13843
13844 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
13845
13846 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
13847 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
13848 throughout.
13849 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
13850 "xer" to "ca".
13851 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
13852 XER_REGS to CA_REGS throughout.
13853 * config/rs6000/rs6000.h: Same.
13854 (ADDITIONAL_REGISTER_NAMES): Add "xer".
13855 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
13856 that mode_iterator "P" is the size for arithmetic carries as well.
13857 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
13858
13859 2010-05-28 Jakub Jelinek <jakub@redhat.com>
13860
13861 PR bootstrap/44255
13862 * combine.c (struct rtx_subst_pair): Define unconditionally.
13863 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
13864 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
13865 Call make_compound_operation on pair->to.
13866 (propagate_for_debug): Don't call make_compound_operation here.
13867 Always use simplify_replace_fn_rtx.
13868
13869 2010-05-27 Sterling Augustine <sterling@tensilica.com>
13870
13871 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
13872 * config/xtensa/xtensa.c (override_options): Check
13873 TARGET_FORCE_NO_PIC and set flag_pic.
13874 * config/xtensa/xtensa.opt: Document -mforce-no-pic
13875
13876 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
13877
13878 PR bootstrap/44299
13879 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
13880 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
13881
13882 2010-05-27 Joseph Myers <joseph@codesourcery.com>
13883
13884 * diagnostic-core.h: New. Contents moved from diagnostic.h and
13885 toplev.h.
13886 * diagnostic.c: Don't include toplev.h.
13887 (progname): Define. Moved from toplev.c.
13888 (seen_error): New function.
13889 * diagnostic.h: Include diagnostic-core.h.
13890 (diagnostic_t, emit_diagnostic): Don't declare here.
13891 * toplev.c (progname): Move to toplev.c.
13892 (emit_debug_global_declarations, compile_file, finalize,
13893 do_compile, toplev_main): Use seen_error.
13894 * toplev.h: Include diagnostic-core.h.
13895 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
13896 internal_error, warning, warning_at, error, error_n, error_at,
13897 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
13898 verbatim, fnotice, progname): Move to diagnostic-core.h.
13899 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
13900 (expand_builtin_expect): Use seen_error.
13901 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
13902 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
13903 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
13904 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
13905 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
13906 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
13907 errorcount for errors.
13908 * c-opts.c (c_common_finish): Use seen_error.
13909 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
13910 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
13911 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
13912 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
13913 (get_coverage_counts): Use seen_error.
13914 * dwarf2out.c (dwarf2out_finish): Use seen_error.
13915 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
13916 gimplify_body): Use seen_error.
13917 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
13918 * ipa-pure-const.c (gate_pure_const): Use seen_error.
13919 * ipa-reference.c (gate_reference): Use seen_error.
13920 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
13921 * lambda-code.c: Include diagnostic-core.h instead of
13922 diagnostic.h.
13923 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
13924 * lto-compress.c: Include diagnostic-core.h instead of
13925 diagnostic.h.
13926 * lto-section-in.c: Include diagnostic-core.h instead of
13927 diagnostic.h.
13928 * lto-streamer-out.c: Include diagnostic-core.h instead of
13929 diagnostic.h.
13930 * lto-streamer.c: Include diagnostic-core.h instead of
13931 diagnostic.h.
13932 (gate_lto_out): Use seen_error.
13933 * matrix-reorg.c: Include diagnostic-core.h instead of
13934 diagnostic.h.
13935 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
13936 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
13937 (gate_expand_omp, lower_omp_1): Use seen_error.
13938 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
13939 (rest_of_decl_compilation, rest_of_type_compilation,
13940 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
13941 * tree-cfg.c (label_to_block_fn): Use seen_error.
13942 * tree-inline.c (optimize_inline_calls): Use seen_error.
13943 * tree-mudflap.c (mudflap_finish_file): Use
13944 seen_error.
13945 * tree-optimize.c (gate_all_optimizations,
13946 gate_all_early_local_passes, gate_all_early_optimizations): Use
13947 seen_error.
13948 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
13949 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
13950 (varpool_remove_unreferenced_decls,
13951 varpool_assemble_pending_decls): Use seen_error.
13952 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
13953 (TOPLEV_H, DIAGNOSTIC_H): Update.
13954 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
13955 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
13956 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
13957 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
13958 coverage.o, lambda-code.o): Update dependencies.
13959
13960 2010-05-25 Dodji Seketeli <dodji@redhat.com>
13961
13962 PR c++/44188
13963 * c-common.c (is_typedef_decl): Move this definition ...
13964 * tree.c (is_typedef_decl): ... here.
13965 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
13966 * c-common.h (is_typedef_decl): Move this declaration ...
13967 * tree.h (is_typedef_decl): ... here.
13968 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
13969 * dwarf2out.c (is_naming_typedef_decl): New function.
13970 (gen_tagged_type_die): Split out of ...
13971 (gen_type_die_with_usage): ... this function. When an anonymous
13972 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
13973 is emitted for the typedef.
13974 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
13975 anonymous tagged types.
13976
13977 2010-05-27 Jason Merrill <jason@redhat.com>
13978
13979 * print-tree.c (debug_vec_tree): New fn.
13980 (print_vec_tree): New fn.
13981 * tree.h: Declare them.
13982 * gdbinit.in (pvt): New command.
13983
13984 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
13985
13986 * gdbinit.in (pdd): New command.
13987
13988 2010-05-27 Jan Hubicka <jh@suse.cz>
13989
13990 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
13991 (update_caller_keys): Return early if there are no callers;
13992 only update fibheap when decresing the key.
13993 (update_callee_keys): Avoid recursion.
13994 (decide_inlining_of_small_functions): When badness does not match;
13995 re-insert into fibheap.
13996
13997 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
13998
13999 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
14000 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
14001 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
14002 (ALL_HOST_OBJS): Now a union of the above two.
14003 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
14004 all files in ALL_HOST_FRONTEND_OBJS.
14005 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
14006
14007 * c-common.c: Pretend to be a backend file by undefining
14008 IN_GCC_FRONTEND (still need rtl.h here).
14009
14010 2010-05-27 Jan Hubicka <jh@suse.cz>
14011
14012 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
14013 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
14014
14015 2010-05-27 Jan Hubicka <jh@suse.cz>
14016
14017 * sched-ebb.c: Rename struct deps to struct deps_desc.
14018 * ddg.c: Likewise.
14019 * sel-sched-ir.c: Likewise.
14020 * sched-deps.c: Likewise.
14021 * sched-int.h: Likewise.
14022 * sched-rgn.c: Likewise.
14023
14024 2010-05-27 Jon Beniston <jon@beniston.com>
14025
14026 PR 43726
14027 * config/lm32/lm32.h: Remove definition of
14028 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
14029
14030 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
14031
14032 PR lto/44230
14033 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
14034
14035 2010-05-27 Richard Guenther <rguenther@suse.de>
14036
14037 PR tree-optimization/44284
14038 * tree-vect-stmts.c (vectorizable_assignment): Handle
14039 sign-changing conversions as simple copy.
14040
14041 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
14042
14043 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
14044 Bionic C library.
14045 (__gthread_active_p): Check for pthread_create if compiling against
14046 Bionic C library.
14047
14048 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
14049
14050 Support compilation for Android platform. Reimplement -mandroid.
14051
14052 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
14053 (*android*): Set ANDROID_DEFAULT.
14054 (arm*-*-linux*): Include linux-android.h.
14055 (arm*-*-eabi*): Don't include previous -mandroid implementation.
14056 * config/arm/eabi.h: Remove, move Android-specific parts ...
14057 * config/linux-android.h: ... here. New file.
14058 * config/arm/eabi.opt: Rename to ...
14059 * config/linux-android.opt: ... this.
14060 (mandroid): Allow -mno-android option. Initialize based on
14061 ANDROID_DEFAULT.
14062 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
14063 Move logic to corresponding LINUX_TARGET_* macros.
14064 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
14065 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
14066 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
14067 Android definitions.
14068 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
14069 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
14070 Document.
14071
14072 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
14073
14074 Add support for Bionic C library
14075
14076 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
14077 macro.
14078 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
14079 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
14080
14081 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
14082 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
14083 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
14084 to support multiple C libraries. Handle Bionic.
14085 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
14086 (BIONIC_DYNAMIC_LINKER64): Define.
14087 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
14088 Update.
14089 (TARGET_HAS_SINCOS): Enable for Bionic.
14090
14091 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
14092 the last option specified on command line take effect.
14093 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
14094 (mbionic): New.
14095 (mglibc, muclibc): Update.
14096
14097 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
14098 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
14099 DEFAULT_LIBC.
14100
14101 * doc/invoke.texi (-mglibc, -muclibc): Update.
14102 (-mbionic): Document.
14103
14104 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14105
14106 * c-common.h (c_register_addr_space): Add prototype.
14107 (ADDR_SPACE_KEYWORD): Remove.
14108 * c-common.c (c_register_addr_space): New function.
14109 (c_addr_space_name): Reimplement.
14110 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
14111
14112 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
14113 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
14114
14115 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
14116 Remove TARGET_ADDR_SPACE_KEYWORDS.
14117
14118 2010-05-27 Joseph Myers <joseph@codesourcery.com>
14119
14120 * input.c: New file.
14121 * input.h (main_input_filename): Move declaration to toplev.h.
14122 * toplev.c (input_location, line_table): Move to input.c
14123 * toplev.h (main_input_filename): Move declaration from input.h.
14124 * tree.c (expand_location): Move to input.c.
14125 * Makefile.in (OBJS-common): Add input.o.
14126 (input.o): Add dependencies.
14127
14128 2010-05-27 Richard Guenther <rguenther@suse.de>
14129
14130 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
14131 for non-existant files.
14132 (fork_execute): Mark args_name file as deleted.
14133
14134 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
14135
14136 PR bootstrp/44287
14137 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
14138 (narrow_signed_type): Likewise.
14139
14140 2010-05-26 Jan Hubicka <jh@suse.cz>
14141
14142 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
14143 edge only when checking is enabled; check using former_clone_of;
14144 check inline clones too.
14145 (cgraph_materialize_clone): Record former_clone_of pointer.
14146 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
14147 combining redirections; dump args_to_skip bitmap
14148 (cgraph_materialize_all_clones): Do no redirection here.
14149 * ipa-inline.c (inline_transform): Do redirection here.
14150 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
14151 cheking only).
14152
14153 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
14154
14155 * config/avr/avr-c.c: Do not include regs.h.
14156 Include cpplib.h for cpp_define and tree.h for c-common.h.
14157 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
14158 * config/avr/t-avr: Fix dependencies for avr-c.o.
14159
14160 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
14161
14162 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
14163 string instead of SYMBOL_REF rtx.
14164 * rtl.h (set_stack_check_libfunc): Move prototype from here...
14165 * libfuncs.h: ...to here. Adjust for explow.c change.
14166
14167 2010-05-26 Joseph Myers <joseph@codesourcery.com>
14168
14169 * pretty-print.c: Don't include ggc.h.
14170 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
14171 (identifier_to_locale): Use them for allocation.
14172 * pretty-print.h (identifier_to_locale_alloc,
14173 identifier_to_locale_free): Declare.
14174 * toplev.c (alloc_for_identifier_to_locale): New.
14175 (general_init): Set identifier_to_locale_alloc and
14176 identifier_to_locale_free.
14177 * Makefile.in (pretty-print.o): Update dependencies.
14178
14179 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
14180
14181 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
14182 pointer types if they have different alignment or mode.
14183
14184 2010-05-26 Anatoly Sokolov <aesok@post.ru>
14185
14186 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
14187 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14188 * config/sparc/sparc-protos.h (function_value): Remove declaration.
14189 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
14190 sparc_function_value_regno_p): New functions.
14191 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14192 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14193 (function_value): Rename to...
14194 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
14195 argument to 'outgoing'.
14196 (function_arg_record_value, function_arg_union_value,
14197 function_arg_vector_value): Update comment.
14198
14199 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
14200
14201 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
14202 (fde_needed_for_eh_p): New predicate.
14203 (output_call_frame_info): Use it throughout to decide whether FDEs
14204 are needed for EH purpose.
14205 (dwarf2out_begin_prologue): Reorder assignments.
14206
14207 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
14208
14209 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
14210 special case loop->header.
14211 (is_predicated): New.
14212 (if_convertible_loop_p): Call it.
14213
14214 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
14215
14216 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
14217 iterator in parameter. Do not generate code during the analysis.
14218 (tree_if_convert_cond_stmt): Removed.
14219 (tree_if_convert_stmt): Removed.
14220 (predicate_bbs): New.
14221 (if_convertible_loop_p): Call predicate_bbs.
14222 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
14223 now contains all the analysis part.
14224
14225 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
14226
14227 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
14228 statements in the analysis part.
14229 (tree_if_convert_stmt): Update comment.
14230 (remove_conditions_and_labels): New.
14231 (combine_blocks): Call remove_conditions_and_labels.
14232 (tree_if_conversion): Update comment.
14233
14234 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
14235
14236 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
14237 than 2 predecessors or more than 2 successors.
14238
14239 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
14240
14241 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
14242 of loops in which the data dependence analysis fails.
14243
14244 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
14245
14246 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
14247 CDI_POST_DOMINATORS.
14248 (tree_if_conversion): Same.
14249
14250 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
14251
14252 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
14253
14254 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
14255
14256 * tree-if-conv.c: Update copyright years. Fix comments.
14257 Fix indentation.
14258
14259 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
14260
14261 * builtin-types.def (BT_INT128): New primitive type.
14262 (BT_UINT128): Likewise.
14263 * c-common.c (c_common_r): Add __int128 keyword.
14264 (c_common_type_for_size): Handle __int128.
14265 (c_common_type_for_mode): Likewise.
14266 (c_common_signed_or_unsigned_type): Likewise.
14267 (c_common_nodes_and_builtins): Add builtin type
14268 if target supports 128-bit integer scalar.
14269 * c-common.h (enum rid): Add RID_INT128.
14270 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
14271 if target supports 128-bit integer scalar.
14272 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
14273 (finish_declspecs): Likewise.
14274 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
14275 (c_token_starts_declspecs): Likewise.
14276 (c_parser_declspecs): Likewise.
14277 (c_parser_attributes): Likewise.
14278 (c_parser_objc_selector): Likewise.
14279 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
14280 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
14281 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
14282 * tree.c (make_or_reuse_type): Likewise.
14283 (make_unsigned_type): Likewise.
14284 (build_common_tree_nodes_2): Likewise.
14285 * tree.h (enum integer_type_kind): Add itk_int128 and
14286 itk_unsigned_int128.
14287 (int128_integer_type_node): New define.
14288 (int128_unsigned_type_node): New define.
14289 * doc/extend.texi: Add documentation about __int128 type.
14290
14291 2010-05-26 Richard Guenther <rguenther@suse.de>
14292
14293 * tree-ssa-sccvn.c (copy_nary): Adjust.
14294 (copy_phis): Rename to ...
14295 (copy_phi): ... this. Adjust.
14296 (copy_references): Rename to ...
14297 (copy_reference): ... this. Adjust.
14298 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
14299 result into the valid table.
14300
14301 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
14302
14303 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
14304 insn-config.h, insn-codes.h, recog.h, and optabs.h.
14305
14306 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
14307
14308 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
14309
14310 2010-05-26 Richard Guenther <rguenther@suse.de>
14311
14312 * opts.c (common_handle_option): Handle OPT_Ofast.
14313
14314 2010-05-26 Joseph Myers <joseph@codesourcery.com>
14315
14316 * diagnostic.c: Don't include opts.h.
14317 (permissive_error_option): Define.
14318 (diagnostic_initialize): Take n_opts parameter. Allocate memory
14319 for classify_diagnostic. Don't use memset for
14320 classify_diagnostic. Initialize new and recently added fields.
14321 (diagnostic_classify_diagnostic): Use context->n_opts instead of
14322 N_OPTS.
14323 (diagnostic_report_diagnostic): Pass context parameter to
14324 diagnostic_report_warnings_p. Use option_enabled and option_name
14325 hooks from context.
14326 (emit_diagnostic): Use permissive_error_option.
14327 (permerror): Likewise.
14328 * diagnostic.h: Don't include options.h.
14329 (struct diagnostic_context): Add n_opts, opt_permissive,
14330 inhibit_warnings, warn_system_headers, option_enabled and
14331 option_name fields. Change classify_diagnostic to a pointer.
14332 * opts-diagnostic.h: New file.
14333 * opts.c: Include opts-diagnostic.h.
14334 (common_handle_option): Set global_dc fields for -Wfatal-errors,
14335 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
14336 (option_name): New function.
14337 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
14338 (c_common_handle_option): Set global_dc->permissive for
14339 -fpermissive.
14340 * c-common.c (c_cpp_error): Save and restore
14341 global_dc->warn_system_headers, not variable warn_system_headers.
14342 * toplev.c: Include opts-diagnostic.h.
14343 (general_init): Update call to diagnostic_initialize. Set
14344 global_dc->show_column, global_dc->option_enabled and
14345 global_dc->option_name.
14346 (process_options): Don't set global_dc fields here.
14347 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
14348 (diagnostic.o, opts.o, toplev.o): Update dependencies.
14349
14350 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
14351
14352 * config/picochip/picochip.md (movsi): Split a movsi from a
14353 const after reload.
14354
14355 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
14356
14357 * ggc-zone.c: Update copyright year.
14358 (poison_region): Mark memory for Valgrind as undefined before
14359 memset () call and inaccessible afterwards.
14360 (ggc_pch_total_size): Change type of i to int.
14361
14362 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
14363
14364 * ggc-common.c (ggc_free_overhead): Allow empty slot.
14365
14366 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
14367
14368 * ggc-common.c: Update copyright year.
14369 (ggc_rlimit_bound): Remove prototype. Compile only if
14370 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
14371 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
14372 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
14373 (ggc_min_heapsize_heuristic): Likewise.
14374
14375 2010-05-26 Richard Guenther <rguenther@suse.de>
14376
14377 PR rtl-optimization/44164
14378 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
14379 no-common access-path disambiguation.
14380 (indirect_ref_may_alias_decl_p): Adjust.
14381 (indirect_refs_may_alias_p): Likewise.
14382 (refs_may_alias_p_1): Likewise.
14383
14384 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
14385
14386 * c-typeck.c: Do not include expr.h.
14387
14388 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
14389
14390 * rtl.h (decl_default_tls_model): Move prototype from here...
14391 * output.h: ...to here.
14392 * c-decl.c: Do not include rtl.h.
14393 * c-pragma.c: Likewise.
14394 * c-parser.c: Likewise.
14395 * c-gimplify.c: Likewise. And also not hard-reg-set.
14396 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
14397 FIXME note for it. Add a FIXME note for expr.h.
14398 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
14399 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
14400 defined.
14401
14402 2010-05-26 Jakub Jelinek <jakub@redhat.com>
14403
14404 PR target/44199
14405 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
14406 or total_size is larger than red zone size for non-V4 ABI, emit a
14407 stack_tie resp. frame_tie insn before stack pointer restore.
14408 * config/rs6000/rs6000.md (frame_tie): New insn.
14409
14410 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
14411
14412 * function.h (struct function): Add can_throw_non_call_exceptions bit.
14413 * lto-streamer-in.c (input_function): Stream it in.
14414 * lto-streamer-out.c (output_function): Stream it out.
14415 * function.c (allocate_struct_function): Set it.
14416 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
14417 for flag_non_call_exceptions.
14418 * cfgbuild.c (control_flow_insn_p): Likewise.
14419 (make_edges): Likewise.
14420 * cfgexpand.c (expand_stack_alignment): Likewise.
14421 * combine.c (distribute_notes): Likewise.
14422 * cse.c (cse_extended_basic_block): Likewise.
14423 * except.c (insn_could_throw_p): Likewise.
14424 * gcse.c (simple_mem): Likewise.
14425 * ipa-pure-const.c (check_call): Likewise.
14426 (check_stmt ): Likewise.
14427 * lower-subreg.c (lower-subreg.c): Likewise.
14428 * optabs.c (emit_libcall_block): Likewise.
14429 (prepare_cmp_insn): Likewise.
14430 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
14431 * postreload.c (rest_of_handle_postreload): Likewise.
14432 * reload1.c (reload_as_needed): Likewise.
14433 (emit_input_reload_insns): Likewise.
14434 (emit_output_reload_insns): Likewise.
14435 (fixup_abnormal_edges): Likewise.
14436 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
14437 * store-motion.c (find_moveable_store): Likewise.
14438 * tree-eh.c (stmt_could_throw_p): Likewise.
14439 (tree_could_throw_p): Likewise.
14440 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
14441 * config/arm/arm.c (arm_expand_prologue): Likewise.
14442 (thumb1_expand_prologue): Likewise.
14443 * config/rx/rx.md (cbranchsf4): Likewise.
14444 (cmpsf): Likewise.
14445 * config/s390/s390.c (s390_emit_prologue): Likewise.
14446 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
14447 (inline_forbidden_into_p): New predicate.
14448 (expand_call_inline): Use it to forbid inlining.
14449 (tree_can_inline_p): Likewise.
14450
14451 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
14452
14453 * config/i386/i386-c.c: Do not include rtl.h.
14454 * config/i386/t-i386: Update dependencies.
14455
14456 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
14457
14458 * attribs.c: Do not include rtl.h.
14459 * Makefile.in: Update dependencies.
14460
14461 2010-05-25 Anatoly Sokolov <aesok@post.ru>
14462
14463 * double-int.h (double_int_and): New.
14464 * combine.c (try_combine): Clean up, use double_int_* and
14465 immed_double_int_const functions.
14466
14467 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14468
14469 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
14470 stderr to /dev/null instead of grep -q.
14471 * configure: Regenerate.
14472
14473 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
14474
14475 * Makefile.in (EXCEPT_H): Fix typo.
14476
14477 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
14478
14479 * ira-build.c (update_conflict_hard_reg_costs): New.
14480 (ira_build): Call update_conflict_hard_reg_costs.
14481
14482 2010-05-25 Jakub Jelinek <jakub@redhat.com>
14483
14484 PR debug/41371
14485 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
14486 ENABLE_CHECKING.
14487 (intersect_loc_chains): Walk the s2var's loc_chain together
14488 with s1node chain as long as the locations are equal, don't
14489 call find_loc_in_1pdv in that case.
14490
14491 PR debug/42801
14492 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
14493 (copy_bind_expr): ... instead of here.
14494 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
14495 if the block hasn't been remapped.
14496 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
14497 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
14498
14499 2010-05-25 Richard Guenther <rguenther@suse.de>
14500
14501 PR middle-end/44069
14502 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
14503 out-of-bounds array accesses.
14504
14505 2010-05-25 Richard Guenther <rguenther@suse.de>
14506
14507 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
14508 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
14509 (run_gcc): Re-organize to make cleanup easier.
14510
14511 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14512
14513 * config/s390/s390.c (optimization_options): Fix and move the
14514 flag_prefetch_loop_arrays override ...
14515 (override_options): ... here.
14516
14517 2010-05-25 Joseph Myers <joseph@codesourcery.com>
14518
14519 * diagnostic.c: Don't include plugin.h.
14520 (diagnostic_report_diagnostic): Don't handle plugins specially
14521 here. Pass context to internal_error callback.
14522 * diagnostic.h (struct diagnostic_context): Add context parameter
14523 to internal_error callback.
14524 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
14525 * plugin.h (struct diagnostic_context): Declare.
14526 (warn_if_plugins, plugins_internal_error_function): Declare.
14527 * toplev.c (general_init): Set global_dc->internal_error.
14528 * Makefile.in (diagnostic.o): Update dependencies.
14529
14530 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
14531
14532 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
14533 * config/rs6000/t-darwin64: New.
14534 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
14535 build crt2.
14536
14537 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
14538
14539 PR 44203
14540 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
14541 match the original (and intended) behaviour before r159557. This
14542 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
14543 in two ways.
14544
14545 2010-05-25 Richard Guenther <rguenther@suse.de>
14546
14547 * doc/invoke.texi: Document -Ofast.
14548 * target.h (struct gcc_target): Add handle_ofast.
14549 * target-def.h (TARGET_HANDLE_OFAST): Add.
14550 (TARGET_INITIALIZER): Adjust.
14551 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
14552 * common.opt (Ofast): Add.
14553
14554 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
14555
14556 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
14557 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
14558
14559 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
14560
14561 PR target/43610
14562 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
14563 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
14564 false_rtx. Use false_rtx to compute the correct *ptest for reversed
14565 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
14566
14567 2010-05-25 Jakub Jelinek <jakub@redhat.com>
14568
14569 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
14570 DW_OP_minus with negated offset instead of DW_OP_plus.
14571 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
14572
14573 2010-05-25 Wei Guozhi <carrot@google.com>
14574
14575 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
14576 tst instruction and a new alternative.
14577 * config/arm/constraints.md (Pu): New constraint.
14578
14579 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
14580
14581 * function.c (assign_stack_local_1): Initialize variable
14582 to avoid warning when bootstrapping at -O3.
14583
14584 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
14585
14586 * configure.ac (all_lang_makefiles): Remove everything related to it.
14587 * configure: Regenerate.
14588 * Makefile.in: Fix reference to ada Make-lang.in.
14589 Remove support for LANG_MAKEFILES.
14590
14591 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
14592 Sandra Loosemore <sandra@codesourcery.com>
14593
14594 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
14595 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
14596 description. Add arm_neon_fp16_ok.
14597 (Add Options): Add arm_neon and arm_neon_fp16.
14598
14599 2010-05-24 Joseph Myers <joseph@codesourcery.com>
14600
14601 * diagnostic.c: Don't include flags.h.
14602 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
14603 context parameters. Check flags in the context passed as a parameter.
14604 (diagnostic_build_prefix): Add context parameter. Check
14605 show_column flag in context.
14606 (diagnostic_action_after_output): Check fatal_errors flag in context.
14607 (diagnostic_report_current_module): Check show_column flag in context.
14608 (default_diagnostic_starter): Update call to
14609 diagnostic_build_prefix.
14610 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
14611 (emit_diagnostic): Pass context to permissive_error_kind.
14612 (permerror): Pass context to permissive_error_kind.
14613 * diagnostic.h (struct diagnostic_context): Add show_column,
14614 pedantic_errors, permissive and fatal_errors fields.
14615 (diagnostic_build_prefix): Update prototype.
14616 * langhooks.c
14617 * toplev.c (process_options): Set flags in global_dc from
14618 flag_show_column, flag_pedantic_errors, flag_permissive,
14619 flag_fatal_errors.
14620 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
14621 to diagnostic_build_prefix.
14622 * Makefile.in (diagnostic.o): Update dependencies.
14623
14624 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
14625
14626 * config/i386/ia32intrin.h (__crc32q): Define only if
14627 __SSE4_2__ is defined.
14628
14629 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
14630
14631 PR target/44132
14632 PR middle-end/43602
14633 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
14634 DECL_VISIBILITY_SPECIFIED.
14635 (emutls_decl): Set DECL_PRESERVE_P and copy
14636 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
14637 (emutls_finalize_control_var): New callback.
14638 (emutls_finish): Finalize emutls control variables.
14639 * toplev.c (compile_file): Move the call to emutls_finish ()
14640 before varpool_assemble_pending_decls ().
14641
14642 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
14643
14644 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
14645 added to the preprocessor condition.
14646
14647 2010-05-24 Paul Brook <paul@codesourcery.com>
14648
14649 * gengtype-lex.l: Add HARD_REG_SET.
14650 * expr.c (expand_expr_real_1): Record writes to hard registers.
14651 * function.c (rtl_data): Add asm_clobbers.
14652 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
14653 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
14654 Use crtl->asm_clobbers.
14655
14656 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14657
14658 * doc/makefile.texi (Makefile): Mention stages 'profile'
14659 and 'feedback' for profiledbootstrap.
14660
14661 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
14662
14663 PR target/44245
14664 * config/i386/i386.c (def_builtin): Properly check
14665 OPTION_MASK_ISA_64BIT.
14666
14667 2010-05-23 Joseph Myers <joseph@codesourcery.com>
14668
14669 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
14670 typedefs with different but compatible types. Allow duplicate
14671 typedefs with the same type except for pedantic non-C1X, but give
14672 warning for variably modified types.
14673 * c-typeck.c (tagged_types_tu_compatible_p,
14674 function_types_compatible_p, type_lists_compatible_p,
14675 comptypes_internal): Add parameter different_types_p; set
14676 *different_types_p for different but compatible types. All
14677 callers changed.
14678 (comptypes_check_different_types): New.
14679 * c-tree.h (comptypes_check_different_types): Declare.
14680
14681 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
14682
14683 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
14684 * jump.c: Include basic-block.h.
14685 * profile.c: Likewise.
14686 * tree-profile.c: Likewise.
14687 * coverage.c: Likewise.
14688 * basic-block.h (optimize_function_for_size_p): Move to function.h.
14689 (optimize_function_for_speed_p): Likewise.
14690 * function.h (optimize_function_for_size_p,
14691 optimize_function_for_speed_p): Moved here from basic-block.h.
14692 * Makefile.in: Update dependencies.
14693
14694 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14695
14696 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
14697 before calling make; allow override through $MAKE.
14698 * doc/invoke.texi (Optimize Options): Document override.
14699
14700 2010-05-23 Anatoly Sokolov <aesok@post.ru>
14701
14702 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
14703 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14704 (rs6000_mode_dependent_address_ptr): Make static.
14705 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14706 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
14707 Remove.
14708
14709 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
14710
14711 PR target/43869
14712 * config/i386/i386.c: Make sure that the correct regparm is passed.
14713
14714 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
14715
14716 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
14717 * sbitmap.c: ...to here to internalize sbitmap element access.
14718 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
14719 Explain why basic-block.h is included.
14720 * function.h: Include tm.h for CUMULATIVE_ARGS.
14721 * Makefile.in: Update dependencies.
14722
14723 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
14724
14725 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
14726 New core types.
14727 * sbitmap.h (struct sbitmap_def): Do not typedef here.
14728 * sbitmap.c: Include sbitmap.h.
14729 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
14730 hard-reg-set.h. Split everything related to regsets out from here...
14731 * regset.h: ...to here. New file.
14732 * df.h: Include regset.h and sbitmap.h.
14733 * tree-flow.h: Likewise.
14734 * cfgloop.h: Likewise.
14735 * except.h: Do not include sbitmap.h. Include hashtab.h.
14736 * cgraph.h: Include vec.h and function.h.
14737 * reload.h (struct insn_chain): Change types of live_throughout
14738 and dead_or_set from regset_head to bitmap_head.
14739 (compute_use_by_pseudos): Be defined also if regset.h is not included.
14740 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
14741 spilled_regs from regset_head to bitmap_head to avoid dependency
14742 in regset.h.
14743 * sel-sched-ir.h: Include regset.h.
14744 * reload.c: Include df.h before reload.h.
14745 * caller-save.c: Likewise.
14746 * reload1.c: Likewise.
14747 * ira.c: Likewise.
14748 (mark_elimination): Update type of r to bitmap, consistent with
14749 DF_LR_IN.
14750 * dominance.c: Include bitmap.h.
14751 * modulo-sched.c: Include df.h.
14752 * cfganal.c: Include bitmap.h and sbitmap.h.
14753 * cfgbuild.c: Include sbitmap.h.
14754 * lcm.c: Include sbitmap.h.
14755 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
14756 * domwalk.c: Include sbitmap.h, exclude ggc.h.
14757 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
14758 * cselib.c: Include bitmap.h.
14759 * tree-optimize.c: Include regset.h.
14760 * stmt.c: Include bitmap.h.
14761 * Makefile.in: Update dependencies.
14762
14763 2010-05-22 Jan Hubicka <jh@suse.cz>
14764
14765 * cgraph.h (struct varpool_node): Add same_comdat_group.
14766 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
14767 pointer.
14768 (output_varpool): Update call of lto_output_varpool_node.
14769 (input_varpool): Read same_comdat_group pointer.
14770 (input_varpool_1): Fixup same_comdat_group pointer.
14771 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
14772 group is needed, all are.
14773 * varpool.c (varpool_remove_node): Remove node from same comdat group
14774 linklist too.
14775 (varpool_analyze_pending_decls): Walk same comdat groups.
14776
14777 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
14778
14779 * rtl.h (union rtunion_def): Remove rt_bit member.
14780 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
14781 * print-rtl (print_rtx): Do not print the member.
14782 * gengtype.c (adjust_field_rtx_def): Do not handle it.
14783 * gengenrtl.c (type_from_format): Likewise.
14784 (accessor_from_format): Likewise.
14785
14786 2010-05-22 Joseph Myers <joseph@codesourcery.com>
14787
14788 * dbgcnt.c: Include toplev.h instead of errors.h.
14789 * ira-emit.c: Don't include errors.h.
14790 * ira.c: Include toplev.h instead of errors.h.
14791 * lto-compress.c: Include toplev.h instead of errors.h.
14792 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
14793 ira.o, dbgcnt.o): Update dependencies.
14794
14795 2010-05-22 Richard Guenther <rguenther@suse.de>
14796
14797 * gimple.c (gimple_types_compatible_p): Check type qualifications
14798 before merging pointer to complete and pointer to incomplete type.
14799 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
14800 we use our own resolution algorithm. The gold linker plugin
14801 doesn't do the job we want it to do here.
14802
14803 2010-05-22 Anatoly Sokolov <aesok@post.ru>
14804
14805 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14806 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14807 (sparc_mode_dependent_address_p): New function.
14808
14809 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
14810
14811 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
14812
14813 * timevar.c: Do not include any core headers.
14814 (timevar_print): De-i18n-ize.
14815 (print_time): Likewise.
14816 * timevar.h (timevar_push, timevar_pop): Make inline functions.
14817
14818 2010-05-21 Joseph Myers <joseph@codesourcery.com>
14819
14820 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
14821 langhooks-def.h.
14822 (diagnostic_initialize): Initialize x_data not last_function.
14823 (diagnostic_report_current_function): Move to tree-diagnostic.c.
14824 (default_diagnostic_starter): Call
14825 diagnostic_report_current_module not
14826 diagnostic_report_current_function.
14827 (diagnostic_report_diagnostic): Initialize x_data not
14828 abstract_origin.
14829 (verbatim): Likewise.
14830 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
14831 x_data.
14832 (struct diagnostic_context): Change last_function to x_data.
14833 (diagnostic_auxiliary_data): Replace with
14834 diagnostic_context_auxiliary_data and
14835 diagnostic_info_auxiliary_data.
14836 (diagnostic_last_function_changed, diagnostic_set_last_function,
14837 diagnostic_report_current_function): Move to tree-diagnostic.h.
14838 (print_declaration, dump_generic_node, print_generic_stmt,
14839 print_generic_stmt_indented, print_generic_expr,
14840 print_generic_decl, debug_c_tree, dump_omp_clauses,
14841 print_call_name, debug_generic_expr, debug_generic_stmt,
14842 debug_tree_chain, default_tree_printer): Move to
14843 tree-pretty-print.h.
14844 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
14845 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
14846 gimple-pretty-print.h.
14847 * pretty-print.c: Don't include tree.h
14848 (pp_base_format): Don't handle %K here.
14849 (pp_base_tree_identifier): Move to tree-pretty-print.c.
14850 * pretty-print.h (text_info): Change abstract_origin to x_data.
14851 (pp_tree_identifier, pp_unsupported_tree,
14852 pp_base_tree_identifier): Move to tree-pretty-print.h.
14853 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
14854 tree-pretty-print.h: New files.
14855 * tree-pretty-print.c: Include tree-pretty-print.h.
14856 (percent_K_format): New. Moved from pretty-print.c.
14857 (pp_base_tree_identifier): Move from pretty-print.c.
14858 * c-objc-common.c: Include tree-pretty-print.h.
14859 (c_tree_printer): Handle %K here.
14860 * langhooks.c: Include tree-diagnostic.h.
14861 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
14862 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
14863 (default_tree_printer): Handle %K using percent_K_format.
14864 (general_init): Use default_tree_diagnostic_starter.
14865 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
14866 (free_lang_data): Use default_tree_diagnostic_starter.
14867 * c-pretty-print.c: Include tree-pretty-print.h.
14868 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
14869 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
14870 * dwarf2out.c: Include tree-pretty-print.h.
14871 * except.c: Include tree-pretty-print.h.
14872 * gimple-pretty-print.c: Include tree-pretty-print.h and
14873 gimple-pretty-print.h.
14874 * gimplify.c: Include tree-pretty-print.h.
14875 * graphite-poly.c: Include tree-pretty-print.h and
14876 gimple-pretty-print.h.
14877 * ipa-cp.c: Include tree-pretty-print.h.
14878 * ipa-inline.c: Include gimple-pretty-print.h.
14879 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
14880 * ipa-pure-const.c: Include gimple-pretty-print.h.
14881 * ipa-struct-reorg.c: Include tree-pretty-print.h and
14882 gimple-pretty-print.h.
14883 * ipa-type-escape.c: Include tree-pretty-print.h.
14884 * print-rtl.c: Include tree-pretty-print.h.
14885 * print-tree.c: Include gimple-pretty-print.h.
14886 * sese.c: Include tree-pretty-print.h.
14887 * tree-affine.c: Include tree-pretty-print.h.
14888 * tree-browser.c: Include tree-pretty-print.h.
14889 * tree-call-cdce.c: Include gimple-pretty-print.h.
14890 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
14891 * tree-chrec.c: Include tree-pretty-print.h.
14892 * tree-data-ref.c: Include tree-pretty-print.h and
14893 gimple-pretty-print.h.
14894 * tree-dfa.c: Include tree-pretty-print.h.
14895 * tree-if-conv.c: Include tree-pretty-print.h and
14896 gimple-pretty-print.h.
14897 * tree-inline.c: Include tree-pretty-print.h.
14898 * tree-into-ssa.c: Include tree-pretty-print.h and
14899 gimple-pretty-print.h.
14900 * tree-nrv.c: Include tree-pretty-print.h.
14901 * tree-object-size.c: Include tree-pretty-print.h and
14902 gimple-pretty-print.h.
14903 * tree-outof-ssa.c: Include tree-pretty-print.h and
14904 gimple-pretty-print.h.
14905 * tree-parloops.c: Include tree-pretty-print.h and
14906 gimple-pretty-print.h.
14907 * tree-predcom.c: Include tree-pretty-print.h and
14908 gimple-pretty-print.h.
14909 * tree-scalar-evolution.c: Include tree-pretty-print.h and
14910 gimple-pretty-print.h.
14911 * tree-sra.c: Include tree-pretty-print.h.
14912 * tree-ssa-address.c: Include tree-pretty-print.h.
14913 * tree-ssa-alias.c: Include tree-pretty-print.h.
14914 * tree-ssa-ccp.c: Include tree-pretty-print.h and
14915 gimple-pretty-print.h.
14916 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
14917 * tree-ssa-copy.c: Include tree-pretty-print.h and
14918 gimple-pretty-print.h.
14919 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
14920 * tree-ssa-dce.c: Include tree-pretty-print.h and
14921 gimple-pretty-print.h.
14922 * tree-ssa-dom.c: Include tree-pretty-print.h and
14923 gimple-pretty-print.h.
14924 * tree-ssa-dse.c: Include gimple-pretty-print.h.
14925 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
14926 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
14927 * tree-ssa-live.c: Include tree-pretty-print.h and
14928 gimple-pretty-print.h.
14929 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
14930 gimple-pretty-print.h.
14931 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
14932 gimple-pretty-print.h.
14933 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
14934 gimple-pretty-print.h.
14935 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
14936 gimple-pretty-print.h.
14937 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
14938 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
14939 * tree-ssa-operands.c: Include tree-pretty-print.h and
14940 gimple-pretty-print.h.
14941 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
14942 gimple-pretty-print.h.
14943 * tree-ssa-pre.c: Include tree-pretty-print.h and
14944 gimple-pretty-print.h.
14945 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
14946 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
14947 gimple-pretty-print.h.
14948 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
14949 gimple-pretty-print.h.
14950 * tree-ssa-sink.c: Include gimple-pretty-print.h.
14951 * tree-ssa-ter.c: Include tree-pretty-print.h and
14952 gimple-pretty-print.h.
14953 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
14954 * tree-ssa.c: Include tree-pretty-print.h and
14955 gimple-pretty-print.h.
14956 * tree-stdarg.c: Include gimple-pretty-print.h.
14957 * tree-switch-conversion.c: Include gimple-pretty-print.h.
14958 * tree-tailcall.c: Include tree-pretty-print.h and
14959 gimple-pretty-print.h.
14960 * tree-vect-data-refs.c: Include tree-pretty-print.h and
14961 gimple-pretty-print.h.
14962 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
14963 gimple-pretty-print.h.
14964 * tree-vect-loop.c: Include tree-pretty-print.h and
14965 gimple-pretty-print.h.
14966 * tree-vect-patterns.c: Include gimple-pretty-print.h.
14967 * tree-vect-slp.c: Include tree-pretty-print.h and
14968 gimple-pretty-print.h.
14969 * tree-vect-stmts.c: Include tree-pretty-print.h and
14970 gimple-pretty-print.h.
14971 * tree-vectorizer.c: Include tree-pretty-print.h.
14972 * tree-vrp.c: Include tree-pretty-print.h and
14973 gimple-pretty-print.h.
14974 * value-prof.c: Include tree-pretty-print.h and
14975 gimple-pretty-print.h.
14976 * var-tracking.c: Include tree-pretty-print.h.
14977 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
14978 (tree-diagnostic.o): New dependencies.
14979 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
14980 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
14981 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
14982 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
14983 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
14984 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
14985 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
14986 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
14987 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
14988 tree-ssa-address.o, tree-ssa-loop-niter.o,
14989 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
14990 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
14991 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
14992 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
14993 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
14994 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
14995 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
14996 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
14997 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
14998 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
14999 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
15000 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
15001 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
15002 tree-switch-conversion.o, var-tracking.o, value-prof.o,
15003 cfgexpand.o, pretty-print.o): Update dependencies.
15004
15005 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
15006
15007 * tree-ssa-structalias.c: Remove tm_p.h from include.
15008
15009 2010-05-21 Jeff Law <law@redhat.com>
15010
15011 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
15012
15013 2010-05-21 Jason Merrill <jason@redhat.com>
15014
15015 * tree-eh.c (cleanup_is_dead_in): New.
15016 (lower_try_finally): Don't generate a dead cleanup region.
15017 (lower_cleanup): Likewise.
15018
15019 2010-05-21 Jakub Jelinek <jakub@redhat.com>
15020
15021 PR debug/44223
15022 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
15023 unchain each use from the cyclic next_regno_use chain first.
15024
15025 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
15026
15027 * real: Do not include gmp.h, mpfr.h, and mpc.h.
15028 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
15029 (real_value_negate, real_value_abs): New prototypes.
15030 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
15031 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
15032 new include file for interface between MPFR and REAL_VALUE_TYPE.
15033 * real.c: Include realmpfr.h.
15034 (real_arithmetic2): Remove legacy function.
15035 (real_value_negate): New.
15036 (real_value_abs): New.
15037 (mfpr_from_real, real_from_mpfr): Move from here...
15038 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
15039 * builtins.c: Include realmpfr.h.
15040 * fold-const.c: Include realmpfr.h.
15041 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
15042 (fold_negate_const): Likewise.
15043 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
15044 * toplev.c: Include realmpfr.h.
15045 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
15046 and real_value_negate.
15047 * fixed-value.c (check_real_for_fixed_mode): Likewise.
15048 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
15049 (vfp3_const_double_index): Likewise.
15050 (arm_print_operand): Likewise.
15051 * Makefile.in: Update dependencies.
15052
15053 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15054
15055 * config/s390/s390.c (override_options): Increase the default
15056 of max-completely-peel-times.
15057
15058 2010-05-21 Julian Brown <julian@codesourcery.com>
15059 Mark Mitchell <mark@codesourcery.com>
15060
15061 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
15062 sibling calls for Thumb-1.
15063 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
15064 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
15065 Thumb-2.
15066 (*call_insn, *call_value_insn): Don't use for Thumb-2.
15067 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
15068 for Thumb-2.
15069 (return): New expander.
15070 (*arm_return): New name for ARM return insn.
15071 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
15072
15073 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
15074
15075 * config.gcc (sparc64-*-rtems*): New target.
15076
15077 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
15078
15079 * tree.c (build_function_decl_skip_args): Fix grammar.
15080 (build_function_type_list_1): Fix typos, adjust formatting.
15081
15082 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
15083
15084 * tree.h: Include real.h and fixed-value.h as basic datatypes.
15085 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
15086 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
15087 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
15088 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
15089 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
15090 tree-pretty-print.c, tree-loop-distribution.c,
15091 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
15092 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
15093 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
15094 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
15095 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
15096 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
15097 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
15098 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
15099 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
15100 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
15101 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
15102 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
15103 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
15104 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
15105 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
15106 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
15107 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
15108 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
15109 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
15110 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
15111 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
15112 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
15113 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
15114 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
15115 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
15116 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
15117 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
15118 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
15119 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
15120 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
15121 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
15122 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
15123 config/score/score7.c, config/score/score.c, config/arm/arm.c,
15124 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
15125 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
15126 config/bfin/bfin.c: Clean up redundant includes.
15127 * Makefile.in: Update accordingly.
15128
15129 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
15130
15131 PR middle-end/44204
15132 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
15133 statement has no arguments.
15134
15135 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
15136
15137 PR/44139
15138 * varasm.c (emutls_decl): Merge attributes to new decl.
15139
15140 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
15141
15142 PR middle-end/44101
15143 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
15144 around the uniquized constructor if its type requires a conversion.
15145
15146 2010-05-21 Jakub Jelinek <jakub@redhat.com>
15147
15148 PR debug/44205
15149 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
15150 at -O0 goto_locus of any of the incoming edges differs from
15151 goto_locus of outgoing edge, or gimple_location of any of the
15152 labels differs.
15153
15154 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
15155
15156 * ira.c (ira_non_ordered_class_hard_regs): Define.
15157 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
15158 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
15159 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
15160 cost of unaligned hard regs when allocating multi-reg pseudos.
15161
15162 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15163
15164 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
15165 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
15166 for TARGET_NO_FLOAT.
15167 * config/mips/mips.c (mips_file_start): Expand conditional expression
15168 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
15169 (mips_override_options): Move -mno-float override -msoft-float and
15170 -mhard-float.
15171 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
15172 Condition(TARGET_SUPPORTS_NO_FLOAT).
15173 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
15174 __mips_no_float here.
15175 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
15176 (TARGET_SUPPORTS_NO_FLOAT): Define.
15177 * config/mips/sdemtk.opt: Delete.
15178
15179 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
15180
15181 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
15182
15183 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
15184
15185 PR target/43733
15186 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
15187 * configure: Regenerate.
15188 * config.in: Regenerate.
15189 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
15190 instead of sahf only for 64bit targets.
15191
15192 2010-05-20 Jakub Jelinek <jakub@redhat.com>
15193
15194 PR debug/44178
15195 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
15196 setup_ref_regs for DEBUG_INSNs.
15197
15198 2010-05-20 Jan Hubicka <jh@suse.cz>
15199
15200 PR middle-end/44197
15201 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
15202
15203 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
15204
15205 PR bootstrap/43870
15206 * df-scan.c (df_ref_compare): Stabilize sort.
15207
15208 2010-05-20 Jakub Jelinek <jakub@redhat.com>
15209
15210 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
15211 argument. Don't use DW_OP_piece if offset is non-zero,
15212 put offset into second DW_OP_bit_piece argument.
15213 (dw_sra_loc_expr): Adjust callers. For memory expressions
15214 compute offset.
15215
15216 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
15217
15218 PR target/44202
15219 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
15220 settings for 16-bit-constant "addo" alternative.
15221
15222 2010-05-19 James E. Wilson <wilson@codesourcery.com>
15223
15224 * config/mips/mips-dsp.md (add<DSPV:mode>3,
15225 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
15226
15227 PR target/43764
15228 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
15229 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
15230 Use it.
15231
15232 2010-05-19 Joseph Myers <joseph@codesourcery.com>
15233
15234 * diagnostic.c (FLOAT, FFS): Don't undefine.
15235 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
15236 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
15237 include ordering.
15238
15239 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15240
15241 * combine.c (propagate_for_debug): Call make_compound_operation
15242 on the source value.
15243 (try_combine): When implementing a split chosen by find_split_point,
15244 either copy i2src or set it to null. Assert that i2src is not null
15245 before substituting into CALL_INSN_FUNCTION_USAGE.
15246
15247 2010-05-19 Anatoly Sokolov <aesok@post.ru>
15248
15249 * double-int.h (double_int_ior): New function.
15250 * tree.h (build_int_cst_wide_type): Remove.
15251 * tree.c (build_int_cst_wide_type): Remove.
15252 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
15253 of build_int_cst_wide_type.
15254 * stor-layout.c (set_sizetype): (Ditto.).
15255 * dojump.c (do_jump): Use build_int_cstu instead of
15256 build_int_cst_wide_type.
15257
15258 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
15259
15260 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
15261 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
15262 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
15263 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
15264 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
15265 propagate the 'data' argument to copy_tree_r.
15266 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
15267 Propagate 'data' argument to walk_tree.
15268 (copy_if_shared): New function.
15269 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
15270 (unmark_visited): New function.
15271 (unshare_body): Call copy_if_shared instead of doing it manually.
15272 (unvisit_body): Call unmark_visited instead of doing it manually.
15273
15274 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
15275
15276 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
15277 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
15278 * hooks.c: Likewise.
15279 * target-def.h (TARGET_FOLD_BUILTIN): Define to
15280 hook_tree_tree_int_treep_bool_null.
15281 * target.h (struct gcc_target): Update signature of fold_builtin
15282 field.
15283 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
15284 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
15285 instead of the call expression.
15286 (fold_builtin_call_array): Pass n and argarray directly.
15287 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
15288 consing a list.
15289 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
15290 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
15291 `i' and use it in place of `arity'.
15292 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
15293 Dereference `args' directly.
15294 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
15295
15296 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15297
15298 * doc/sourcebuild.texi (Effective-Target Keywords): Document
15299 3dnow, sse3, sse2.
15300 (Directives): Document optional dg-require-effective-target
15301 selector.
15302
15303 2010-05-19 Richard Guenther <rguenther@suse.de>
15304
15305 PR lto/44196
15306 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
15307
15308 2010-05-19 Richard Guenther <rguenther@suse.de>
15309
15310 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
15311 * common.opt (fwhopr=): New.
15312 * opts.c (common_handle_option): Handle OPT_fwhopr.
15313 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
15314 * collect2.c (main): Match -fwhopr*.
15315 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
15316 Execute ltrans stage in parallel when jobs is bigger than 1.
15317
15318 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15319
15320 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
15321 pentiumpro on Solaris 8/x86 with Sun as.
15322 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
15323 hidden alias bug.
15324 (gcc_cv_as_ix86_quad): Check for .quad directive.
15325 * configure: Regenerate.
15326 * config.in: Regenerate.
15327 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
15328
15329 2010-05-19 Martin Jambor <mjambor@suse.cz>
15330
15331 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
15332 also for indirect edges. Actual printing moved...
15333 (ipa_print_node_jump_functions_for_edge): ...here.
15334 (ipa_compute_jump_functions): Renamed to
15335 ipa_compute_jump_functions_for_edge and made static.
15336 (ipa_compute_jump_functions): New function.
15337 (make_edge_direct_to_target): Check if the number of arguments on
15338 the newly direct edge is the same as the number of parametrs of
15339 the callee.
15340 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
15341 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
15342 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
15343 analysis functions unconditionally, call the new
15344 ipa_analyze_params_uses on the node instead of every edge.
15345
15346 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
15347
15348 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
15349 to tree.
15350 (dump_mem_ref): Adopt debug code to handle a tree as step. This
15351 also checks for a constant int vs. non-constant but
15352 loop-invariant steps.
15353 (find_or_create_group): Change the sort algorithm to only consider
15354 steps that are constant ints.
15355 (idx_analyze_ref): Adopt code to handle a tree instead of a
15356 HOST_WIDE_INT for step.
15357 (gather_memory_references_ref): Handle tree instead of int and be
15358 prepared to see a NULL_TREE.
15359 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
15360 prefetches if the step cannot be calculated at compile time.
15361 (issue_prefetch_ref): Issue prefetches for non-constant but
15362 loop-invariant steps.
15363
15364 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
15365
15366 Revert:
15367 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
15368
15369 * tree.h (build_call_list): Remove.
15370 * tree.c (build_call_list): Remove.
15371
15372 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
15373
15374 * tree.h (build_call_list): Remove.
15375 * tree.c (build_call_list): Remove.
15376
15377 2010-05-18 Jan Hubicka <jh@suse.cz>
15378
15379 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
15380
15381 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
15382
15383 PR rtl-optimization/43332
15384 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
15385
15386 2010-05-18 Anatoly Sokolov <aesok@post.ru>
15387
15388 * tree.h (build_int_cstu): Implement as static inline.
15389 * tree.c (build_int_cstu): Remove function.
15390 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
15391 sign extended.
15392
15393 2010-05-18 Richard Guenther <rguenther@suse.de>
15394
15395 PR lto/44143
15396 * lto-wrapper.c (verbose): New variable. Initialize from -v.
15397 (debug): Initialize from -save-temps.
15398 (collect_execute): Print command-line when verbose.
15399 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
15400 for ltrans invocation. Produce -dumpbase flag again.
15401 (process_args): Remove.
15402 (main): Simplify.
15403 * collect2.c (maybe_run_lto_and_relink): Only pass object
15404 files to lto-wrapper.
15405 * gcc.c (LINK_COMMAND_SPEC): Likewise.
15406
15407 2010-05-18 Jan Hubicka <jh@suse.cz>
15408
15409 * opts.c (decode_options): Do not disable whopr at ipa_cp.
15410 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
15411
15412 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
15413
15414 PR lto/44184
15415 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
15416 in a GIMPLE_ASM.
15417 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
15418 in a GIMPLE_ASM.
15419
15420 2010-05-18 Jakub Jelinek <jakub@redhat.com>
15421
15422 PR debug/41371
15423 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
15424 rtx_equal_p inline.
15425
15426 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
15427
15428 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
15429 lto-macho as lto_binary_reader.
15430
15431 * darwin.c (darwin_asm_named_section): Do not add assembler comment
15432 after .section directive; just print it before the directive instead.
15433
15434 2010-05-17 Jan Hubicka <jh@suse.cz>
15435
15436 * cgraph.c (cgraph_create_virtual_clone): Only check
15437 versionable_function_p when not in wpa and checking is enabled.
15438 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
15439 there are no more functions to materialize.
15440
15441 2010-05-17 Jan Hubicka <jh@suse.cz>
15442
15443 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
15444 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
15445 New functions.
15446 (output_cgraph): Call output_cgraph_opt_summary.
15447 (input_cgrpah): Call input_cgraph_opt_summary.
15448 (output_cgraph_opt_summary_p, output_node_opt_summary,
15449 input_node_opt_summary, input_cgraph_opt_section): New functions.
15450 * lto-section-in.c (lto_section_name): Add cgraphopt.
15451 * tree-inline.c (tree_function_versioning): Handle parm_num.
15452 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
15453 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
15454
15455 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
15456
15457 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
15458 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
15459 the insn to prefetch ratio heuristic to loops with known trip count.
15460
15461 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
15462
15463 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
15464 (schedule_prefetches): Do not generate a prefetch if the unroll factor
15465 is far from what is required by the prefetch.
15466
15467 2010-05-17 Jan Hubicka <jh@suse.cz>
15468
15469 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
15470 (ipcp_estimate_growth): Likewise.
15471 (ipcp_const_param_count): Likewise.
15472 (ipcp_insert_stage): Likewise.
15473 * ipa-prop.c (visit_load_for_mod_analysis): New function.
15474 (visit_store_addr_for_mod_analysis): Set used flag.
15475 (ipa_detect_param_modifications): Set used flag for SSE params;
15476 update use of walk_stmt_load_store_addr_ops.
15477 (ipa_print_node_params): Print used flag.
15478 (ipa_write_node_info): Stream used flag.
15479 (ipa_read_node_info): Likewise.
15480 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
15481 (ipa_is_param_used): New function.
15482 (lto_ipa_fixup_call_notes): Remove unused declaration.
15483
15484 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15485
15486 PR target/44074
15487 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
15488 * configure: Regenerate.
15489 * config.in: Regenerate.
15490 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
15491 !HAVE_AS_IX86_REP_LOCK_PREFIX.
15492 Don't emit whitespace.
15493 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
15494 (*rep_movsi): Likewise.
15495 (*rep_movsi_rex64): Likewise.
15496 (*rep_movqi): Likewise.
15497 (*rep_movqi_rex64): Likewise.
15498 (*rep_stosdi_rex64): Likewise.
15499 (*rep_stossi): Likewise.
15500 (*rep_stossi_rex64): Likewise.
15501 (*rep_stosqi): Likewise.
15502 (*rep_stosqi_rex64): Likewise.
15503 (*cmpstrnqi_nz_1): Use {%;} after repz.
15504 (*cmpstrnqi_nz_rex_1): Likewise.
15505 (*cmpstrnqi_1): Likewise.
15506 (*cmpstrnqi_rex_1): Likewise.
15507 (*strlenqi_1): Use {%;} after repnz.
15508 (*strlenqi_rex_1): Likewise.
15509 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
15510 (*sync_compare_and_swap<mode>): Likewise.
15511 (sync_double_compare_and_swap<mode>): Likewise.
15512 (*sync_double_compare_and_swapdi_pic): Likewise.
15513 (sync_old_add<mode>): Likewise.
15514 (sync_add<mode>): Likewise.
15515 (sync_sub<mode>): Likewise.
15516 (sync_<code><mode>): Likewise.
15517
15518 2010-05-17 Martin Jambor <mjambor@suse.cz>
15519
15520 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
15521 otr_token and polymorphic.
15522 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
15523 (cgraph_clone_edge): Copy the above fields.
15524 * tree.c (get_binfo_at_offset): New function.
15525 * tree.h (get_binfo_at_offset): Declare.
15526 * ipa-prop.h (enum jump_func_type): Added known_type jump function
15527 type, reordered items, updated comments.
15528 (union jump_func_value): Added base_type field, reordered fields.
15529 (enum ipa_lattice_type): Moved down in the file.
15530 (struct ipa_param_descriptor): New field polymorphic.
15531 (ipa_is_param_polymorphic): New function.
15532 * ipa-prop.c: Include gimple.h and gimple-fold.h.
15533 (ipa_print_node_jump_functions): Print known type jump functions.
15534 (compute_complex_pass_through): Renamed to...
15535 (compute_complex_assign_jump_func): this.
15536 (compute_complex_ancestor_jump_func): New function.
15537 (compute_known_type_jump_func): Likewise.
15538 (compute_scalar_jump_functions): Create known type and complex ancestor
15539 jump functions.
15540 (ipa_note_param_call): New parameter polymorphic, set the corresponding
15541 flag in the call note accordingly.
15542 (ipa_analyze_call_uses): Renamed to...
15543 (ipa_analyze_indirect_call_uses): this. New parameter target, define
15544 variable var only in the block where it is used.
15545 (ipa_analyze_virtual_call_uses): New function.
15546 (ipa_analyze_call_uses): Likewise.
15547 (combine_known_type_and_ancestor_jfs): Likewise.
15548 (update_jump_functions_after_inlining): Implemented handling of a
15549 number of new jump function types combination.
15550 (print_edge_addition_message): Removed.
15551 (make_edge_direct_to_target): New function.
15552 (try_make_edge_direct_simple_call): Likewise.
15553 (try_make_edge_direct_virtual_call): Likewise.
15554 (update_call_notes_after_inlining): Renamed to...
15555 (update_indirect_edges_after_inlining): this. Moved edge creation for
15556 indirect calls to try_make_edge_direct_simple_call, also calls
15557 try_make_edge_direct_virtual_call for virtual calls.
15558 (ipa_print_node_params): Changed the header message.
15559 (ipa_write_jump_function): Stream also known type jump functions.
15560 (ipa_read_jump_function): Likewise.
15561 (ipa_write_indirect_edge_info): Stream new fields in
15562 cgraph_indirect_call_info.
15563 (ipa_read_indirect_edge_info): Likewise.
15564 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
15565 GIMPLE_FOLD_H.
15566
15567 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15568
15569 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
15570
15571 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
15572
15573 * tree.h (CALL_EXPR_ARGS): Delete.
15574 (call_expr_arglist): Delete.
15575 * tree.c (call_expr_arglist): Delete.
15576 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
15577 targetm.fold_builtin.
15578 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
15579 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
15580 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
15581 arglist parameter. Use CALL_EXPR_ARG.
15582 (picochip_expand_builtin_3op): Likewise.
15583 (picochip_expand_builtin_2opvoid): Likewise.
15584 (picochip_expand_array_get): Likewise.
15585 (picochip_expand_array_put): Likewise.
15586 (picochip_expand_array_testport): Likewise.
15587 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
15588 rather than arglist.
15589 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
15590 CALL_EXPR_ARGS.
15591 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
15592 than TREE_VALUE and TREE_CHAIN.
15593 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
15594 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
15595 the arglist.
15596
15597 2010-05-17 Jakub Jelinek <jakub@redhat.com>
15598
15599 PR bootstrap/42347
15600 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
15601 to have no fallthru edge.
15602
15603 PR middle-end/44102
15604 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
15605 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
15606 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
15607 add BARRIER after previous bb if needed.
15608
15609 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
15610
15611 * tree.c (build_function_type_list_1): Remove bogus assert condition.
15612
15613 2010-05-17 Alan Modra <amodra@gmail.com>
15614
15615 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
15616 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
15617 with copy_reg rtx param.
15618 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
15619 Correct cases where code for ABI_V4 did not initialise the reg
15620 used to access frame. Also leave frame_reg_rtx as sp for large
15621 frames that save no regs.
15622
15623 2010-05-17 Martin Jambor <mjambor@suse.cz>
15624
15625 PR middle-end/44133
15626 * tree-sra.c (create_access_replacement): New parameter rename, mark
15627 the replaement for renaming only when it is true.
15628 (get_access_replacement): Pass true in the rename parameter of
15629 create_access_replacement.
15630 (get_unrenamed_access_replacement): New function.
15631 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
15632 replacement declaration from it.
15633
15634 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
15635
15636 * function.c (try_fit_stack_local, add_frame_space): New static
15637 functions.
15638 (assign_stack_local_1): Use them. Look for opportunities to use
15639 space previously wasted on alignment.
15640 * function.h (struct frame_space): New.
15641 (struct rtl_data): Add FRAME_SPACE_LIST member.
15642 * reload1.c (something_was_spilled): New static variable.
15643 (alter_reg): Set it.
15644 (reload): Test it in addition to testing if the frame size changed.
15645
15646 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
15647
15648 * config/s390/s390.c: Define sane prefetch settings and activate
15649 flag_prefetch_loop_arrays on -O3.
15650 * config/s390/s390.h: Declare that read can use write prefetch.
15651
15652 2010-05-17 Jakub Jelinek <jakub@redhat.com>
15653
15654 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
15655 build.
15656
15657 2010-05-16 Jan Hubicka <jh@suse.cz>
15658
15659 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
15660 function body; do not check stdarg field of struct function.
15661
15662 2010-05-16 Jan Hubicka <jh@suse.cz>
15663
15664 * cgraph.c (dump_cgraph_node): Dump versionable flag.
15665 * cgraph.h (cgraph_local_info): Add versionable flag.
15666 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
15667 (ipcp_versionable_function_p): Use it.
15668 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
15669 versionable flag.
15670
15671 2010-05-16 Jan Hubicka <jh@suse.cz>
15672
15673 * cgraph.c (cgraph_clone_node): Take decl argument and insert
15674 clone into hash when it is different from orig.
15675 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
15676 * cgraph.h (cgraph_clone_node): Update prototype.
15677 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
15678 (lto_cgraph_encoder_delete): Delete body map.
15679 (lto_cgraph_encoder_size): Move to header.
15680 (lto_cgraph_encoder_encode_body_p,
15681 lto_set_cgraph_encoder_encode_body): New.
15682 (lto_output_node): Do not take written_decls argument; output clone_of
15683 pointer.
15684 (add_node_to): Add include_body_argument; call
15685 lto_set_cgraph_encoder_encode_body on master of the clone.
15686 (add_references): Update use of add_node_to.
15687 (compute_ltrans_boundary): Likewise.
15688 (output_cgraph): Do not create written_decls bitmap.
15689 (input_node): Take nodes argument; stream in clone_of correctly.
15690 (input_cgraph_1): Update use of input_node.
15691 * lto-streamer-out.c (lto_output): Use encoder info to decide
15692 what bodies to output.
15693 * ipa-inline.c (cgraph_clone_inlined_nodes,
15694 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
15695 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
15696 (lto_cgraph_encoder_size): Define here.
15697 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
15698 Declare.
15699
15700 2010-05-16 Richard Guenther <rguenther@suse.de>
15701
15702 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
15703 -fipa-type-escape.
15704 * ipa-type-escape.c (gate_type_escape_vars): Run when
15705 -fipa-struct-reorg runs.
15706 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
15707 * common.opt (fipa-type-escape): Remove.
15708
15709 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
15710
15711 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
15712 (decode_options): Likewise.
15713 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
15714
15715 2010-05-16 Jan Hubicka <jh@suse.cz>
15716
15717 * ipa.c (function_and_variable_visibility): Also bring local all
15718 aliases.
15719
15720 2010-05-16 Richard Guenther <rguenther@suse.de>
15721
15722 * alias.c (nonoverlapping_memrefs_p): Remove use of
15723 IPA type-escape information.
15724
15725 2010-05-16 Joseph Myers <joseph@codesourcery.com>
15726
15727 * c-common.c (c_common_reswords): Add _Static_assert for C.
15728 * c-parser.c (c_token_starts_declaration,
15729 c_parser_next_token_starts_declaration,
15730 c_parser_static_assert_declaration_no_semi,
15731 c_parser_static_assert_declaration): New.
15732 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
15733 Handle static assertions if static_assert_ok.
15734 (c_parser_external_declaration, c_parser_declaration_or_fndef,
15735 c_parser_compound_statement_nostart, c_parser_label,
15736 c_parser_for_statement, c_parser_objc_methodprotolist,
15737 c_parser_omp_for_loop): All callers of
15738 c_parser_declaration_or_fndef changed.
15739 (c_parser_struct_declaration): Handle static assertions.
15740 (c_parser_compound_statement_nostart): Use
15741 c_parser_next_token_starts_declaration and
15742 c_token_starts_declaration to detect start of declarations.
15743 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
15744 Likewise.
15745
15746 2010-05-16 Anatoly Sokolov <aesok@post.ru>
15747
15748 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
15749 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15750 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15751 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15752 (mmix_function_outgoing_value): Rename to...
15753 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
15754 (mmix_function_value_regno_p): Make static.
15755 (mmix_libcall_value): New function.
15756 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
15757 mmix_function_value_regno_p): Remove declaration.
15758
15759 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
15760
15761 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
15762 BUILT_IN_ALLOCA if stack checking is enabled.
15763
15764 2010-05-16 Richard Guenther <rguenther@suse.de>
15765
15766 * var-tracking.c (vars_copy_1): Inline ...
15767 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
15768 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
15769 (variable_merge_over_cur): Adjust. Merge asserts.
15770 (variable_merge_over_src): Likewise.
15771 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
15772 (variable_post_merge_new_vals): Merge asserts.
15773 (variable_post_merge_perm_vals): Likewise.
15774 (find_mem_expr_in_1pdv): Likewise.
15775 (dataflow_set_different_value): Remove.
15776 (onepart_variable_different_p): Merge asserts.
15777 (variable_different_p): Likewise.
15778 (dataflow_set_different_1): Inline ...
15779 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
15780 (emit_notes_for_differences_1): Merge asserts.
15781
15782 2010-05-16 Richard Guenther <rguenther@suse.de>
15783
15784 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
15785 * optabs.c (libfunc_decl_hash): Likewise.
15786 * varasm.c (emutls_decl): Likewise.
15787
15788 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
15789
15790 * c-decl.c: Don't include gimple.h.
15791 (merge_decls): Do not copy gimple_body.
15792
15793 2010-05-15 Jason Merrill <jason@redhat.com>
15794
15795 * c.opt: Add -fnothrow-opt.
15796
15797 2010-05-15 Jan Hubicka <jh@suse.cz>
15798
15799 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
15800 analyzed.
15801 * passes.c (ipa_write_summaries): Write all analyzed nodes.
15802
15803 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
15804
15805 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
15806 * Makefile.in: Add it.
15807 Fix all other Makefile dependencies for changes below.
15808 * tree.h: Include it instead of defining VEC primitives here.
15809 * gimple.h: Likewise.
15810 * rtl.h: Likewise.
15811 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
15812 * except.h: Include vecir.h, break dependence on tree.h.
15813
15814 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
15815 Move from here...
15816 * tree-iterator.c: ...to here.
15817 * tree-iterator.h: Fix file introduction comment. Add extern markers.
15818
15819 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
15820 tm_p.h.
15821 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
15822 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
15823 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
15824 tree-mudflap.h, and target.h.
15825 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
15826 predict.h, tree-inline.h, gimple.h, and langhooks.h.
15827 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
15828 Add FIXME for why gimple.h is still included (should be unnecessary
15829 since GCC 4.5 gimplification unit-at-a-time).
15830 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
15831 * c-pragma.c: Add FIXME for why function.h needs to be included just
15832 for cfun, at front-end level.
15833 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
15834 Do not include ggc.h, but include vecprim.h for VEC(char).
15835 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
15836 Explain why target.h is included.
15837 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
15838 Explain why gimple.h is included.
15839 * c-ppoutput.c: Do not include tm.h.
15840 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
15841 * c-parses.c: Explain why rtl.h is included, and that this (and only
15842 this) is also why tm.h must be included.
15843 Do not include except.h.
15844 * c-lang.c: Do not include ggc.h.
15845
15846 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
15847
15848 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
15849
15850 2010-05-15 Joseph Myers <joseph@codesourcery.com>
15851
15852 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
15853 unions by default if those structs and unions have no tags. Do
15854 not condition anonymous struct and unions handling on flag_iso.
15855 Allow anonymous structs and unions for C1X.
15856 (finish_struct): Do not diagnose lack of named fields when
15857 anonymous structs and unions present for C1X. Accept flexible
15858 array members in structure with anonymous structs or unions but no
15859 directly named fields.
15860 * doc/extend.texi (Unnamed Fields): Update.
15861
15862 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
15863
15864 * gimple.h (compare_field_offset): Rename into...
15865 (gimple_compare_field_offset): ...this.
15866 * gimple.c (compare_field_offset): Rename into...
15867 (gimple_compare_field_offset): ...this. Compare the full access if
15868 the offset is self-referential.
15869 (gimple_types_compatible_p): Adjust for above renaming.
15870 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
15871 DECL_NONADDRESSABLE_P flag of fields before merging them.
15872
15873 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
15874
15875 * tree.h (ctor_to_list): Delete.
15876 * tree.c (ctor_to_list): Delete.
15877
15878 2010-05-15 Jan Hubicka <jh@suse.cz>
15879
15880 * ipa-reference.c: Include toplev.h
15881 (is_proper_for_analysis): Only add to all_module_statics
15882 if it is allocated.
15883 (write_node_summary_p, stream_out_bitmap,
15884 ipa_reference_write_optimization_summary,
15885 ipa_reference_read_optimization_summary): New.
15886 (struct ipa_opt_pass_d pass_ipa_reference): Add
15887 optimization summary streaming.
15888 * lto-cgraph.c (referenced_from_this_partition_p,
15889 reachable_from_this_partition_p): New functions.
15890 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
15891 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
15892 * opts.c (decode_options): Enable ipa_reference.
15893 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
15894 * lto-streamer.h (referenced_from_this_partition_p,
15895 reachable_from_this_partition_p): Declare.
15896
15897 2010-05-15 Richard Guenther <rguenther@suse.de>
15898
15899 PR tree-optimization/44038
15900 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
15901 taking the address of a V_C_E of a constant.
15902
15903 2010-05-14 Jan Hubicka <jh@suse.cz>
15904
15905 * tree.h (memory_identifier_string): Remove.
15906 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
15907 (ipa_reference_global_vars_info_d): Remove statics_not_read and
15908 statics_not_written.
15909 (ipa_reference_optimization_summary_d): New structure.
15910 (ipa_reference_optimization_summary_t): New type and vector.
15911 (ipa_reference_vars_info_d): Embedd structures instead of using
15912 pointers.
15913 (reference_vars_to_consider): Remove out of GGC space.
15914 (module_statics_escape): Remove.
15915 (global_info_obstack): Rename to ...
15916 (optimization_summary_obstack): ... this one.
15917 (initialization_status_t): Remove.
15918 (memory_identifier_string): Remove.
15919 (get_reference_vars_info): Fix indenting.
15920 (set_reference_vars_info): Likewise.
15921 (get_reference_optimization_summary): New.
15922 (set_reference_optimization_summary): New.
15923 (get_global_reference_vars_info): Remove.
15924 (ipa_reference_get_read_global): Remove.
15925 (ipa_reference_get_written_global): Remove.
15926 (ipa_reference_get_not_read_global): Update.
15927 (ipa_reference_get_not_written_global): Update.
15928 (is_proper_for_analysis): Outlaw addressable.
15929 (propagate_bits): Update for new datastructures.
15930 (analyze_variable): Remove.
15931 (init_function_info): Update for new datastructures.
15932 (clean_function_local_data): Remove.
15933 (clean_function): Remove.
15934 (copy_global_bitmap): Use optimizations_summary_obstack.
15935 (duplicate_node_data): Duplicate optimization summary only.
15936 (remove_node_data): Remove optimization summary only.
15937 (generate_summary): Do not analyze variables; do not compute
15938 module_statics_escape; do not prune solutions by it.
15939 (read_write_all_from_decl): Fix typos in comments.
15940 (propagate): Doscover readonly and nonaddressable first;
15941 update for new datastructures; share global bitmaps.
15942 * ipa-reference.h (ipa_reference_get_read_global,
15943 ipa_reference_get_written_global): Remove.
15944 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
15945 * Makefile.in: Remove ipa-refereference from GT files.
15946
15947 2010-05-14 Jakub Jelinek <jakub@redhat.com>
15948
15949 PR debug/44112
15950 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
15951 for all SYMBOL_REF_DECLs.
15952
15953 2010-05-14 Jan Hubicka <jh@suse.cz>
15954
15955 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
15956 (varpool_all_refs_explicit_p): New inline function.
15957 * ipa-reference.c: Update comment.
15958 (module_statics_written): Remove.
15959 (get_static_decl): Remove.
15960 (ipa_init): Do not initialize module_statics_written.
15961 (analyze_function): Likewise.
15962 (generate_summary): Likewise; do not compute module_statics_readonly
15963 and do not update variable flags.
15964 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
15965 * ipa.c: Inlucde flags.h
15966 (cgraph_local_node_p): New.
15967 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
15968 promote functions to local.
15969 (ipa_discover_readonly_nonaddressable_vars): New function.
15970 (function_and_variable_visibility): Use cgraph_local_node_p.
15971 * varpool.c (varpool_finalize_decl): Set force_output for
15972 DECL_PRESERVE_P vars.
15973
15974 2010-05-14 Jan Hubicka <jh@suse.cz>
15975
15976 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
15977
15978 2010-05-14 Richard Guenther <rguenther@suse.de>
15979
15980 PR tree-optimization/44119
15981 * tree-ssa-pre.c (eliminate): Properly mark replacement of
15982 a PHI node necessary.
15983
15984 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
15985
15986 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
15987
15988 2010-05-14 Jason Merrill <jason@redhat.com>
15989
15990 PR c++/44127
15991 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
15992 (gimple_call_set_nothrow): New.
15993 * gimple.c (gimple_build_call_from_tree): Call it.
15994 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
15995
15996 PR c++/44127
15997 * gimplify.c (gimplify_seq_add_stmt): No longer static.
15998 * gimple.h: Declare it.
15999 * gimple.c (gimple_build_eh_filter): No ops.
16000
16001 2010-05-14 Jan Hubicka <jh@suse.cz>
16002
16003 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
16004 nodes already in queue.
16005 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
16006 re-enqueueing node.
16007
16008 2010-05-14 Jakub Jelinek <jakub@redhat.com>
16009
16010 PR debug/44136
16011 * cfgexpand.c (expand_debug_expr): If non-memory op0
16012 has BLKmode, return NULL.
16013
16014 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
16015
16016 * config.gcc: Add support for --with-cpu option for bdver1.
16017 * config/i386/i386.h (TARGET_BDVER1): New macro.
16018 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
16019 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
16020 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
16021 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
16022 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
16023 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
16024 (processor_type): Add PROCESSOR_BDVER1.
16025 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
16026 processor_type in config/i386/i386.h.
16027 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
16028 movaps <reg, reg> instead of movapd <reg, reg> when replacing
16029 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
16030 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
16031 to emit packed xor instead of packed double/packed integer
16032 xor for SSE and AVX when moving a zero value.
16033 * config/i386/sse.md: Add check for
16034 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
16035 movapd/movdqa for SSE and AVX.
16036 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
16037 single logical operations i.e and, or and xor instead of packed double
16038 logical operations for SSE and AVX.
16039 * config/i386/i386-c.c (ix86_target_macros_internal):
16040 Add PROCESSOR_BDVER1.
16041 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
16042 (has_fma4, has_xop): New.
16043 * config/i386/i386.c (bdver1_cost): New variable.
16044 (m_BDVER1): New macro.
16045 (m_AMD_MULTIPLE): Add m_BDVER1.
16046 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
16047 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
16048 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
16049 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
16050 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
16051 x86_tune_sse_partial_reg_dependency,
16052 x86_tune_sse_unaligned_load_optimal,
16053 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
16054 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
16055 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
16056 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
16057 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
16058 Enable/disable for bdver1.
16059 (processor_target_table): Add bdver1_cost.
16060 (cpu_names): Add bdver1.
16061 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
16062 processor_alias_table.
16063 (ix86_expand_vector_move_misalign): Change.
16064 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
16065 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
16066 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
16067 of movupd/movdqu for SSE and AVX.
16068 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
16069 (ix86_tune_adjust_cost): Add code for bdver1.
16070 (standard_sse_constant_opcode): Add check for
16071 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
16072 of packed double xor for SSE and AVX.
16073
16074 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
16075
16076 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
16077 result to unsigned.
16078
16079 2010-05-14 Tristan Gingold <gingold@adacore.com>
16080
16081 * toplev.c (default_debug_hooks): Remove this variable.
16082 (process_options): Remove assignments to default_debug_hooks.
16083
16084 2010-05-14 Martin Jambor <mjambor@suse.cz>
16085
16086 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
16087 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
16088 * langhooks.h (struct lang_hooks_for_decls): Removed field
16089 fold_obj_type_ref.
16090 * tree.c (free_lang_data): Remove assignment to
16091 lang_hooks.fold_obj_type_ref.
16092 * tree.def (OBJ_TYPE_REF): Update comment.
16093
16094 2010-05-14 Richard Guenther <rguenther@suse.de>
16095
16096 PR tree-optimization/44124
16097 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
16098
16099 2010-05-14 Alan Modra <amodra@gmail.com>
16100
16101 PR target/44075
16102 * config/rs6000/rs6000.c (struct machine_function): Reorder
16103 fields for better packing. Add lr_save_state.
16104 (rs6000_ra_ever_killed): Return lr_save_state if set.
16105 (rs6000_emit_eh_reg_restore): Set lr_save_state.
16106
16107 2010-05-13 Jan Hubicka <jh@suse.cz>
16108
16109 * varpool.c (decide_is_variable_needed): Drop code checking
16110 TREE_SYMBOL_REFERENCED.
16111
16112 2010-05-13 Jan Hubicka <jh@suse.cz>
16113
16114 * final.c (output_addr_const): Do not call mark_decl_referenced.
16115 * cgraphunit.c (process_function_and_variable_attributes): Use
16116 mark_needed_node dirrectly.
16117 (assemble_thunk): Do not call mark_decl_referenced.
16118
16119 2010-05-13 Anatoly Sokolov <aesok@post.ru>
16120
16121 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
16122
16123 2010-05-13 Jeff Law <law@redhat.com>
16124
16125 * ira-conflicts.c (print_allocno_conflicts): New function broken out
16126 from...
16127 (print_conflicts): Call print_allocno_conflicts.
16128
16129 2010-05-13 Jakub Jelinek <jakub@redhat.com>
16130
16131 PR debug/44104
16132 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
16133 if it is NULL.
16134
16135 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
16136
16137 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
16138 t-mingw-w64 or t-mingw-w32 for multilib configuration.
16139 * config/i386/t-mingw-w32: New.
16140 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
16141
16142 2010-05-13 Martin Jambor <mjambor@suse.cz>
16143
16144 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
16145 gimple-fold.c).
16146 * gimple-fold.c (get_base_binfo_for_type): New function.
16147 (gimple_get_relevant_ref_binfo): Likewise.
16148 (gimple_fold_obj_type_ref_known_binfo): Likewise.
16149 (gimple_fold_obj_type_ref): Likewise.
16150 (fold_gimple_call): Simplify condition for folding virtual calls
16151 and call gimple_fold_obj_type_ref.
16152 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
16153 (gimple_fold_obj_type_ref_known_binfo): Likewise.
16154
16155 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
16156
16157 * config/rs6000/rs6000-protos.h
16158 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
16159 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
16160 (rs6000_debug_mode_dependent_address)
16161 (rs6000_mode_dependent_address_ptr): Likewise.
16162
16163 2010-05-13 Jakub Jelinek <jakub@redhat.com>
16164
16165 PR debug/43983
16166 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
16167 by SRA.
16168 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
16169 * tree-sra.c (create_access_replacement): Call unshare_expr before
16170 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
16171 * dwarf2out.c: Include tree-flow.h.
16172 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
16173 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
16174 Handle DW_OP_bit_piece.
16175 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
16176 construct_piece_list, adjust_piece_list): New functions.
16177 (add_var_loc_to_decl): Handle SRA optimized variables.
16178 Adjust for var_loc_note to loc field renaming.
16179 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
16180 in VAR_LOCATION note.
16181 (new_loc_descr_op_bit_piece): New function.
16182 (dw_sra_loc_expr): New function.
16183 (dw_loc_list): Use it. Don't handle the last range after the
16184 loop, handle it inside of the loop. Adjust for var_loc_note
16185 to loc field renaming.
16186 (add_location_or_const_value_attribute): Only special case
16187 single entry loc lists if loc is NOTE_P. Adjust for
16188 var_loc_note to loc field renaming.
16189 (dwarf2out_var_location): Don't set newloc->var_loc_note
16190 and newloc->next here.
16191
16192 2010-05-12 Jan Hubicka <jh@suse.cz>
16193
16194 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
16195 flag.
16196 * cgraph.h (cgraph_only_called_directly_p,
16197 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
16198 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
16199 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
16200 (assemble
16201 * ipa.c (cgraph_remove_unreachable_nodes): Use
16202 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
16203 flags.
16204 * tree-inline.c (copy_bb): Check address_taken flag.
16205 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
16206 externally_visible flag.
16207
16208 2010-05-12 Jason Merrill <jason@redhat.com>
16209
16210 PR bootstrap/44048
16211 PR target/44099
16212 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
16213 * sdbout.c (plain_type_1): Likewise.
16214 * dwarf2out.c (is_base_type): Likewise.
16215 (gen_type_die_with_usage): Likewise. Generate
16216 DW_TAG_unspecified_type for any LANG_TYPE.
16217
16218 2010-05-12 Jan Hubicka <jh@suse.cz>
16219
16220 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
16221 indrect edges too.
16222 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
16223 (cgraph_clone_edge): Update.
16224 (cgraph_node_remove_callees): Remove indirect calls too.
16225 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
16226 (cgraph_create_indirect_edge): Update prototype.
16227 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
16228 is_proper_for_analysis.
16229 (add_new_function, visited_nodes, function_insertion_hook_holder,
16230 get_local_reference_vars_info, mark_address_taken, mark_address,
16231 mark_load, mark_store, check_asm_memory_clobber, check_call,
16232 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
16233 (ipa_init): Do not initialize visited_nodes;
16234 function_insertion_hook_holder.
16235 (analyze_variable): Rewrite.
16236 (analyze_function): Rewrite.
16237 (copy_local_bitmap): Remove.
16238 (duplicate_node_dat): Do not duplicate local info.
16239 (generate_summary): Simplify to only walk cgraph.
16240 (write_node_summary_p, ipa_reference_write_summary,
16241 ipa_reference_read_summary): Remove.
16242 (propagate): Do not remove function insertion;
16243 generate summary.
16244 (pass_ipa_reference): NULLify summary handling fields.
16245 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
16246 (input_edge): Input ecf_flags.
16247 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
16248 (update_indirect_edges_after_inlining): Ignore edges with unknown
16249 param.
16250
16251 2010-05-12 Sriraman Tallam <tmsriram@google.com>
16252
16253 * implicit-zee.c: New file.
16254 * tree-pass.h (pass_implicit_zee): Declare.
16255 * passes.c (init_optimization_passes): Add zee pass.
16256 * common.opt (fzee): New flag.
16257 * timevar.def (TV_ZEE): Define.
16258 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
16259 and beyond.
16260 * Makefile.in (implicit-zee.o): Add new build file.
16261
16262 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
16263 Nathan Froyd <froydnj@codesourcery.com>
16264
16265 * c-common.c (sync_resolve_params): Remove write-only variable.
16266
16267 2010-05-12 Anatoly Sokolov <aesok@post.ru>
16268
16269 * target.h (struct gcc_target): Add mode_dependent_address_p field.
16270 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
16271 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
16272 * targhooks.c (default_mode_dependent_address_p): New function.
16273 * targhooks.h (default_mode_dependent_address_p): Declare function.
16274 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
16275 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
16276 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
16277 target hook. Change return type to bool.
16278 * recog.h (mode_dependent_address_p): Change return type to bool.
16279
16280 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
16281 Nathan Froyd <froydnj@codesourcery.com>
16282
16283 * tree-mudflap.c (build_function_type_0, build_function_type_1,
16284 build_function_type_2, build_function_type_3): Remove.
16285 (mudflap_init): Use build_function_type_list.
16286
16287 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
16288 Nathan Froyd <froydnj@codesourcery.com>
16289
16290 * coverage.c (build_fn_info_value): Call build_constructor instead of
16291 build_constructor_from_list.
16292 (build_ctr_info_value): Likewise.
16293 (build_gcov_info): Likewise.
16294
16295 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
16296
16297 * tree.c (build_constructor): Compute TREE_CONSTANT for the
16298 resultant constructor.
16299 (build_constructor_single): Don't set TREE_CONSTANT.
16300 (build_constructor_from_list): Don't compute TREE_CONSTANT.
16301
16302 2010-05-12 Jan Hubicka <jh@suse.cz>
16303
16304 * cgraph.h (struct varpool_node): Add aux.
16305 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
16306 * varpool.c (varpool_remove_node): Do not remove initializer.
16307 (varpool_reset_queue): Export.
16308 (varpool_finalize_decl): Volatile vars are forced to be output.
16309 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
16310 replaced decl.
16311 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
16312 process_references, varpool_can_remove_if_no_refs): New functions.
16313 (cgraph_remove_unreachable_nodes): Handle variables too.
16314
16315 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
16316
16317 PR target/44088
16318 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
16319
16320 2010-05-12 Jakub Jelinek <jakub@redhat.com>
16321
16322 PR middle-end/44085
16323 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
16324 change value of ORT_TASK.
16325 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
16326 (omp_notice_threadprivate_variable): New function.
16327 (omp_notice_variable): Call it for threadprivate variables.
16328 If enclosing ctx is a task, print enclosing task rather than
16329 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
16330 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
16331 if task has untied clause.
16332
16333 PR debug/42278
16334 * dwarf2out.c (base_type_die): Don't add name attribute here.
16335 (modified_type_die): Instead of sizetype use
16336 its underlying original type. If a DW_TAG_base_type doesn't
16337 have name added, add __unknown__.
16338 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
16339 always call force_type_die instead.
16340
16341 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
16342
16343 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
16344 for __stack_chk_guard.
16345
16346 2010-05-11 Jakub Jelinek <jakub@redhat.com>
16347
16348 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
16349 don't call start_source_file debug hook here...
16350 (finish_options): ... but here, after outputting predefined and
16351 command line defines and undefs.
16352
16353 PR middle-end/44071
16354 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
16355 no fallthru edge.
16356 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
16357 optimizing away empty bb with no successors, move over its
16358 footer chain to fallthru predecessor.
16359 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
16360 (rtl_split_edge): For asm goto call patch_jump_insn even if
16361 splitting fallthru edge.
16362
16363 PR c++/44059
16364 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
16365 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
16366 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
16367 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
16368 on DW.ref.* decls.
16369
16370 PR c++/44062
16371 * c-parser.c (c_parser_expression): Mark LHS of a comma
16372 expression as read if it is a decl, handled component or
16373 COMPOUND_EXPR with that on the RHS.
16374 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
16375 if it is a decl or handled component.
16376
16377 2010-05-11 Jan Hubicka <jh@suse.cz>
16378
16379 * lto-symtab.c (lto_symtab_free): New function.
16380 * lto-streamer.h (lto_symtab_free): Declare.
16381
16382 2010-05-11 Jan Hubicka <jh@suse.cz>
16383
16384 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
16385 that if function is needed it is reachable.
16386 (lto_output_node): See if it the function is reachable or referenced.
16387 (output_cgraph): Update call of lto_output_node.
16388 * lto-streamer.h (reachable_from_other_partition_p): Declare.
16389
16390 2010-05-11 Jan Hubicka <jh@suse.cz>
16391
16392 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
16393 Mark as used.
16394
16395 2010-05-11 Jan Hubicka <jh@suse.cz>
16396
16397 PR tree-optimize/44063
16398 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
16399 queue.
16400 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
16401 limits.
16402 (estimate_function_body_sizes): Compute sizes even when disregarding.
16403
16404 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
16405
16406 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
16407
16408 2010-05-11 Jan Hubicka <jh@suse.cz>
16409
16410 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
16411 into every boundary.
16412
16413 2010-05-11 Jan Hubicka <jh@suse.cz>
16414
16415 * matrix-reorg.c (matrix_reorg): Rebuild edges.
16416
16417 2010-05-11 Jan Hubicka <jh@suse.cz>
16418
16419 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
16420 lto_streamer_cache_delete): Put nodes into heap.
16421 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
16422 heap.
16423
16424 2010-05-11 Jan Hubicka <jh@suse.cz>
16425
16426 * cgraphbuild.c (cgraph_rebuild_references): New.
16427 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
16428 out extern inlines.
16429 * cgraph.h (cgraph_rebuild_references): Declare.
16430 * tree-inline.c (tree_function_versioning): Use it.
16431 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
16432
16433 2010-05-11 Jan Hubicka <jh@suse.cz>
16434
16435 * cgraph.c: Include ipa-utils.h
16436 (cgraph_create_virtual_clone): Update references.
16437 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
16438
16439 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
16440
16441 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
16442 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
16443 cache size.
16444
16445 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
16446
16447 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
16448
16449 2010-05-11 Jakub Jelinek <jakub@redhat.com>
16450
16451 * gcc.c (execute): For -### don't quote arguments that
16452 contain just alphanumerics and _/-. characters.
16453 * doc/invoke.texi: Document that change for -###.
16454
16455 PR debug/44023
16456 * df-problems.c (struct dead_debug): Add to_rescan field.
16457 (dead_debug_init): Clear to_rescan field.
16458 (dead_debug_finish): Rescan all debug insns in to_rescan
16459 bitmap and free the bitmap.
16460 (dead_debug_insert_before): Instead of rescanning debug insns
16461 immediately queue their rescanning until dead_debug_finish.
16462 (df_note_bb_compute): After dead_debug_add do continue instead
16463 of break.
16464
16465 2010-05-10 Jakub Jelinek <jakub@redhat.com>
16466
16467 PR debug/44028
16468 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
16469 clear also INSN_REG_USE_LIST.
16470
16471 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16472
16473 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
16474
16475 2010-05-10 Jan Hubicka <jh@suse.cz>
16476
16477 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
16478 commited change.
16479
16480 2010-05-10 Jan Hubicka <jh@suse.cz>
16481
16482 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
16483 Allocate encoders.
16484 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
16485 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
16486 (lto_streamer_cache_create): Init alloc pool.
16487 (lto_streamer_cache_delete): Free alloc pool.
16488 * lto-streamer.h: Include alloc pool.
16489 (lto_streamer_cache_d): Use alloc pool.
16490 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
16491
16492 2010-05-10 Jan Hubicka <jh@suse.cz>
16493
16494 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
16495 * cgraphbuild.c: Include except.h
16496 (record_type_list, record_eh_tables): New function.
16497 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
16498
16499 2010-05-10 Jan Hubicka <jh@suse.cz>
16500
16501 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
16502 __frame_dummy_init_array_entry, force_to_data): Attribute as used
16503 rather than unused.
16504
16505 2010-05-10 Michael Matz <matz@suse.de>
16506
16507 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
16508 (can_reassociate_p): Use FLOAT_TYPE_P.
16509 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
16510 (vect_force_simple_reduction): ... this.
16511 * tree-parloops.c (gather_scalar_reductions): Use
16512 vect_force_simple_reduction.
16513 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
16514 vect_is_simple_reduction, add modify argument, if true rewrite
16515 "a-b" into "a+(-b)".
16516 (vect_is_simple_reduction, vect_force_simple_reduction): New
16517 functions.
16518 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
16519
16520 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
16521 Vladimir Makarov <vmakarov@redhat.com>
16522
16523 PR rtl-optimization/44012
16524 * ira-build.c (remove_unnecessary_allocnos): Nullify
16525 regno_allocno_map of the removed allocno.
16526
16527 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16528
16529 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
16530 to /dev/null.
16531 * configure: Regenerate.
16532
16533 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16534
16535 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
16536 unused.
16537 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
16538 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
16539 support in Sun ld.
16540 * configure: Regenerate.
16541
16542 2010-05-10 Richard Guenther <rguenther@suse.de>
16543
16544 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
16545 marked if the entry identifier is marked.
16546
16547 2010-05-10 Richard Guenther <rguenther@suse.de>
16548
16549 * c-common.c (struct c_common_attributes): Add fnspec attribute.
16550 (handle_fnspec_attribute): New function.
16551 * gimple.h (gimple_call_return_flags): Declare.
16552 (gimple_call_arg_flags): Likewise.
16553 * gimple.c (gimple_call_arg_flags): New function.
16554 (gimple_call_return_flags): Likewise.
16555 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
16556 New argument flags.
16557 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
16558 return value flags.
16559 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
16560 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
16561 main work to ...
16562 (make_heapvar_for): ... this new function.
16563 (handle_rhs_call): Handle fnspec attribute argument specifiers.
16564 (handle_lhs_call): Likewise.
16565 (find_func_aliases): Adjust.
16566
16567 2010-05-10 Richard Guenther <rguenther@suse.de>
16568
16569 PR tree-optimization/44050
16570 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
16571
16572 2010-05-10 Wei Guozhi <carrot@google.com>
16573
16574 PR target/42879
16575 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
16576
16577 2010-05-09 Joseph Myers <joseph@codesourcery.com>
16578
16579 PR c/10676
16580 * c-typeck.c (lookup_field): Take a type directly. Update
16581 recursive calls.
16582 (build_component_ref): Update call to lookup_field.
16583 (set_init_label): Use lookup_field to find initialized field.
16584 Handle returned list of fields like a sequence of designators.
16585
16586 2010-05-09 Richard Guenther <rguenther@suse.de>
16587
16588 PR middle-end/44024
16589 * fold-const.c (tree_single_nonzero_warnv_p): Properly
16590 handle &FUNCTION_DECL.
16591
16592 2010-05-09 Joseph Myers <joseph@codesourcery.com>
16593
16594 PR c/4784
16595 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
16596 structures and unions recursively.
16597 (detect_field_duplicates): Move duplicate detection with a hash to
16598 detect_field_duplicates_hash. Always use a hash if anonymous
16599 structures or unions are present.
16600 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
16601 give errors.
16602
16603 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
16604
16605 PR target/44046
16606 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
16607 detect Atom, Core 2 and Core i7.
16608
16609 2010-05-09 Richard Guenther <rguenther@suse.de>
16610
16611 * gcc.c (store_arg): Handle temporary file deletion for
16612 joined arguments.
16613
16614 2010-05-09 Richard Guenther <rguenther@suse.de>
16615
16616 PR middle-end/44043
16617 * ipa-inline.c (estimate_function_body_sizes): Return after
16618 disregarding inline limits.
16619
16620 2010-05-09 Richard Guenther <rguenther@suse.de>
16621
16622 * gcc.c (store_arg): Revert last change.
16623
16624 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
16625
16626 PR middle-end/28685
16627 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
16628 (optimize_ops_list): Call it.
16629
16630 2010-05-08 Richard Guenther <rguenther@suse.de>
16631
16632 PR tree-optimization/44030
16633 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
16634 NECESSARY flag if we propagate from a inserted expression.
16635
16636 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
16637
16638 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
16639 domain types as equal if they are both PLACEHOLDER_EXPRs.
16640
16641 2010-05-08 Richard Guenther <rguenther@suse.de>
16642
16643 * lto-wrapper.c (run_gcc): Remove linker output from
16644 command line for LTRANS invocation.
16645
16646 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
16647
16648 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
16649 lto-macho as lto_binary_reader.
16650 * target.h (struct gcc_target): New hooks lto_start and lto_end.
16651 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
16652 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
16653 in lto_start and lto_end calls.
16654 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
16655 magic numbers.
16656 (scan_prog_file): Update is_elf_or_coff call.
16657 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
16658
16659 * collect2.c (main): Fix enum comparison.
16660
16661 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
16662 Add prototypes.
16663 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
16664 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
16665 and TARGET_ASM_LTO_END.
16666 * darwin.c: Include obstack.h and lto-streamer.h.
16667 (lto_section_names_offset, lto_section_names_obstack,
16668 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
16669 global variables.
16670 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
16671 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
16672 to a temporary file.
16673 (darwin_asm_lto_end): New function. Restore asm_out_file.
16674 (darwin_asm_named_section): For LTO sections, replace the name with
16675 the offset of the section name in a string table, and build this
16676 table.
16677 (darwin_file_start): Initialize global vars for LTO support.
16678 (darwin_file_end): If output to asm_out_file was redirected, append it
16679 to the proper asm_out_file here. Add the section names section.
16680
16681 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
16682
16683 * c-pragma.c (pending_weak_d, pending_weak): New.
16684 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
16685 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
16686 handle_pragma_weak): Update the uses of pending_weaks.
16687
16688 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16689
16690 PR documentation/44016
16691 * doc/standards.texi (Standards): Link to unversioned
16692 cxx0x_status.html page.
16693
16694 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
16695
16696 PR target/43708
16697 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
16698 in addition to TREE_USED, to avoid "set but unused" warnings.
16699
16700 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
16701
16702 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
16703 (is_loop_prefetching_profitable): Do not insert prefetches
16704 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
16705 times the prefetch ahead distance.
16706
16707 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
16708
16709 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
16710 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
16711 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
16712 the unroll_factor.
16713
16714 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
16715
16716 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
16717 a diagnostic info when the insn-to-mem ratio is too small.
16718
16719 2010-05-07 Richard Guenther <rguenther@suse.de>
16720
16721 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
16722 the linker plugin.
16723 (store_arg): Queue temp_filename for deletion instead of
16724 the whole argument.
16725
16726 2010-05-07 Richard Guenther <rguenther@suse.de>
16727
16728 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
16729 (run_gcc): Handle LTRANS phase invocation.
16730 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
16731
16732 2010-05-07 Jakub Jelinek <jakub@redhat.com>
16733
16734 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
16735 this is also meaningful on PARM_DECLs and RESULT_DECLs.
16736
16737 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16738
16739 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
16740
16741 2010-05-07 Richard Guenther <rguenther@suse.de>
16742
16743 PR tree-optimization/44020
16744 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
16745 code when PRE is not yet initialized.
16746
16747 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16748
16749 * config/mips/dbxmdebug.h: Remove.
16750 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
16751
16752 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
16753
16754 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
16755 with null pointer and also warn about ordered comparison of zero with
16756 pointer if -Wextra.
16757
16758 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16759
16760 * graphite-blocking.c
16761 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
16762 * graphite-clast-to-gimple.c
16763 (clast_to_gcc_expression): Same.
16764 (precision_for_value): Same.
16765 (precision_for_interval): Same.
16766 (gcc_type_for_interval): Same.
16767 (graphite_create_new_guard): Same.
16768 (compute_bounds_for_level): Same.
16769 (graphite_create_new_loop_guard): Same.
16770 * graphite-interchange.c
16771 (build_linearized_memory_access): Same.
16772 (pdr_stride_in_loop): Same.
16773 (memory_strides_in_loop_1): Same.
16774 (memory_strides_in_loop): Same.
16775 (extend_scattering): Same.
16776 (psct_scattering_dim_for_loop_depth): Same.
16777 (pbb_number_of_iterations): Same.
16778 * graphite-poly.h
16779 (debug_iteration_domains): Same.
16780 * graphite-ppl.c
16781 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
16782 (ppl_set_inhomogeneous_gmp): Same.
16783 (ppl_strip_loop): Same.
16784 (ppl_lexico_compare_linear_expressions): Same.
16785 (ppl_read_polyhedron_matrix): Same.
16786 (ppl_max_for_le_pointset): Same.
16787 * graphite-ppl.h
16788 (ppl_read_polyhedron_matrix): Same.
16789 (tree_int_to_gmp): Same.
16790 (gmp_cst_to_tree): Same.
16791 (ppl_set_inhomogeneous): Same.
16792 (ppl_set_inhomogeneous_tree): Same.
16793 (ppl_set_coef): Same.
16794 (ppl_set_coef_tree): Same.
16795 * graphite-sese-to-poly.c
16796 (build_pbb_scattering_polyhedrons): Same.
16797 (build_scop_scattering): Same.
16798 (scan_tree_for_params_right_scev): Same.
16799 (scan_tree_for_params): Same.
16800 (find_params_in_bb): Same.
16801 (find_scop_parameters): Same.
16802 (add_upper_bounds_from_estimated_nit): Same.
16803 (build_loop_iteration_domains): Same.
16804 (add_condition_to_domain): Same.
16805 (pdr_add_memory_accesses): Same.
16806
16807 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
16808
16809 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
16810 CLooG's value_* macros to their respective mpz_* counterparts.
16811 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
16812 (graphite_create_new_loop_guard): Same.
16813 * graphite-interchange.c (build_linearized_memory_access): Same.
16814 (pdr_stride_in_loop): Same.
16815 (memory_strides_in_loop_1): Same.
16816 (1st_interchange_profitable_p): Same.
16817 * graphite-poly.c (extend_scattering): Same.
16818 (psct_scattering_dim_for_loop_depth): Same.
16819 (pbb_number_of_iterations): Same.
16820 (pbb_number_of_iterations_at_time): Same.
16821 * graphite-poly.h (new_1st_loop): Same.
16822 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
16823 (oppose_constraint): Same.
16824 (insert_constraint_into_matrix): Same.
16825 (ppl_set_inhomogeneous_gmp): Same.
16826 (ppl_set_coef_gmp): Same.
16827 (ppl_strip_loop): Same.
16828 (ppl_lexico_compare_linear_expressions): Same.
16829 (ppl_max_for_le_pointset): Same.
16830 (ppl_min_for_le_pointset): Same.
16831 (ppl_build_realtion): Same.
16832 * graphite-ppl.h (gmp_cst_to_tree): Same.
16833 (ppl_set_inhomogeneous): Same.
16834 (ppl_set_inhomogeneous_tree): Same.
16835 (ppl_set_coef): Same.
16836 (ppl_set_coef_tree): Same.
16837 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
16838 (build_scop_scattering): Same.
16839 (add_value_to_dim): Same.
16840 (scan_tree_for_params_right_scev): Same.
16841 (scan_tree_for_params_int): Same.
16842 (scan_tree_for_params): Same.
16843 (find_params_in_bb): Same.
16844 (find_scop_parameters): Same.
16845 (add_upper_bounds_from_estimated_nit): Same.
16846 (build_loop_iteration_domains): Same.
16847 (create_linear_expr_from_tree): Same.
16848 (add_condition_to_domain): Same.
16849 (pdr_add_memory_accesses): Same.
16850
16851 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
16852 Jason Merrill <jason@redhat.com>
16853
16854 * c-common.c (c_common_reswords): Add nullptr.
16855 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
16856 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
16857 (gen_type_die_with_usage): Likewise.
16858 * dbxout.c (dbxout_type): Likewise.
16859 * sdbout.c (plain_type_1): Likewise.
16860
16861 2010-05-06 Jason Merrill <jason@redhat.com>
16862
16863 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
16864 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
16865 ret appropriately.
16866 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
16867
16868 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
16869 stripping WITH_SIZE_EXPR.
16870 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
16871 change.
16872
16873 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16874
16875 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
16876 list of obsolete configurations.
16877 Disabled check for obsolete configurations.
16878 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
16879 Removed support for previous versions.
16880 * config/mips/iris.h: Removed.
16881 * config/mips/iris5.h: Removed.
16882 * config/mips/iris6.h: Merged old iris.h contents.
16883 (TARGET_IRIX): Removed.
16884 (DRIVER_SELF_SPECS): Removed mabi=32.
16885 (IDENT_ASM_OP): Removed undef.
16886 (STARTFILE_SPEC): Removed mabi=32.
16887 (ENDFILE_SPEC): Likewise.
16888 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
16889 (MACHINE_TYPE): Update for IRIX 6.5.
16890 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
16891 TARGET_IRIX by TARGET_IRIX6.
16892 (mips_file_start): Likewise.
16893 (mips_output_external): Remove IRIX 5/6 O32 support.
16894 (mips_output_function_prologue): Likewise.
16895 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
16896 TARGET_IRIX6.
16897 (TARGET_CPU_CPP_BUILTINS): Likewise.
16898 (TARGET_IRIX): Removed.
16899 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
16900 (MULTILIB_DIRNAMES): Removed 32.
16901 (MULTILIB_OSDIRNAMES): Removed ../lib.
16902 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
16903 (Specific, mips-sgi-irix5): Document removal.
16904 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
16905 Remove references to older IRIX 6 releases and the O32 ABI.
16906
16907 2010-05-06 Jakub Jelinek <jakub@redhat.com>
16908
16909 PR bootstrap/43994
16910 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
16911 instead of DF_REF_REAL_REG.
16912
16913 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
16914
16915 PR target/43888
16916 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
16917 handling to still return true for x64 targets.
16918
16919 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
16920
16921 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
16922
16923 2010-05-06 Jan Hubicka <jh@suse.cz>
16924
16925 PR tree-optimization/43791
16926 * ipa-inline.c (update_caller_keys): Remove bogus
16927 disregard_inline_limits check.
16928
16929 2010-05-06 Michael Matz <matz@suse.de>
16930
16931 PR tree-optimization/43984
16932 * tree-ssa-pre.c (inserted_phi_names): Remove.
16933 (inserted_exprs): Change to bitmap.
16934 (create_expression_by_pieces): Set bits, don't append to vector.
16935 (insert_into_preds_of_block): Don't handle inserted_phi_names.
16936 (eliminate): Don't look at inserted_phi_names, remove deleted
16937 insns from inserted_exprs.
16938 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
16939 (init_pre, fini_pre): Allocate and free bitmaps.
16940 (execute_pre): Insert insns on edges before elimination.
16941
16942 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
16943
16944 * tree.c (initializer_zerop): Handle STRING_CST.
16945
16946 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
16947
16948 PR 40989
16949 * doc/invoke.texi (Wimplicit): Document as C only.
16950 * opts.c (common_handle_option): Add argument kind.
16951 (handle_option): Rename as read_cmdline_option. Factor out code to...
16952 (handle_option): ... here. New.
16953 (handle_options): Rename as read_cmdline_options.
16954 (decode_options): Update call.
16955 (set_option): Use option index instead of option pointer. Classify
16956 diagnostics correctly.
16957 (enable_warning_as_error): Call handle_option.
16958 * opts.h (set_option): Update declaration.
16959 (handle_option): Declare.
16960 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
16961 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
16962 * c-opts.c (set_Wimplicit): Delete.
16963 (c_family_lang_mask): New static constant.
16964 (c_common_handle_option): Add argument kind. Use handle_option
16965 instead of set_Wimplicit.
16966 (c_common_post_options): warn_implicit and warn_implicit_int
16967 are disabled by default.
16968 * c-common.c (warn_implicit): Do not define here.
16969 * c-common.h (warn_implicit): Do not declare here.
16970 (c_common_handle_option): Update declaration.
16971 * lto-opts.c (lto_reissue_options): Update call to set_option.
16972
16973 2010-05-06 Richard Guenther <rguenther@suse.de>
16974
16975 PR tree-optimization/43571
16976 * domwalk.c (walk_dominator_tree): Walk the dominator
16977 sons in more optimal order.
16978
16979 2010-05-06 Richard Guenther <rguenther@suse.de>
16980
16981 PR tree-optimization/43934
16982 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
16983 (stmt_cost): Likewise.
16984 (extract_true_false_args_from_phi): New helper.
16985 (determine_max_movement): For PHI nodes verify we can hoist them
16986 and compute their cost.
16987 (determine_invariantness_stmt): Handle PHI nodes.
16988 (move_computations_stmt): Likewise. Hoist PHI nodes in
16989 if-converted form using COND_EXPRs.
16990 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
16991 (tree_ssa_lim): Likewise.
16992 * tree-flow.h (tree_ssa_lim): Adjust prototype.
16993 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
16994
16995 2010-05-06 Richard Guenther <rguenther@suse.de>
16996
16997 PR tree-optimization/43987
16998 * tree-ssa-structalias.c (could_have_pointers): For possibly
16999 address-taken variables force pointers to be recorded.
17000 (create_variable_info_for_1): Likewise.
17001 (push_fields_onto_fieldstack): Pass in wheter all fields
17002 must have pointers.
17003 (find_func_aliases): Query types instead of vars whether
17004 they contain pointers where appropriate.
17005
17006 2010-05-06 Jan Hubicka <jh@suse.cz>
17007
17008 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
17009 (record_reference, mark_address, mark_load, mark_store): Record
17010 references.
17011 (record_references_in_initializer): Update call of record_references.
17012 (rebuild_cgraph_edges): Remove all references before rebuiding.
17013 * cgraph.c (cgraph_create_node): Clear ref list.
17014 (cgraph_remove_node): Remove references.
17015 (dump_cgraph_node): Dump references.
17016 (cgraph_clone_node): Clone references.
17017 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
17018 (struct cgraph_node, varpool_node): Add ref_lst.
17019 * ipa-ref.c: New file.
17020 * ipa-ref.h: New file.
17021 * ipa-ref-inline.h: New file.
17022 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
17023 (referenced_from_other_partition_p): New function.
17024 (lto_output_varpool_node): Take set arugment; call
17025 referenced_from_other_partition.
17026 (lto_output_ref): New.
17027 (add_references): New.
17028 (output_refs): New.
17029 (output_cgraph): Compute boundary based on references; output refs.
17030 (output_varpool): Accept cgraph_node_set argument.
17031 (input_ref): New.
17032 (input_refs): New.
17033 (input_cgraph): Call input_refs.
17034 * lto-section-in.c (lto_section_name): Add refs.
17035 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
17036 (ipa-ref.o): New file.
17037 * varpool.c (varpool_node): Clear ipa ref list.
17038 (varpool_remove_node): Remove references.
17039 (dump_varpool_node): Dump references.
17040 (varpool_assemble_decl): Only compile finalized ones.
17041 (varpool_extra_name_alias): Initialize ref list.
17042 * lto-streamer.c (lto-get_section_name): Add .refs section.
17043 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
17044 (referenced_from_other_partition_p): Declared.
17045
17046 2010-05-06 Ira Rosen <irar@il.ibm.com>
17047
17048 PR tree-optimization/43901
17049 * tree-vect-stmts.c (vectorizable_call): Assert that vector
17050 type is not NULL if it's transformation phase, and return
17051 FALSE if it's analysis.
17052 (vectorizable_conversion, vectorizable_operation,
17053 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
17054
17055 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
17056
17057 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
17058 Delete.
17059 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
17060 New define.
17061 * config/mips/mips-protos.h
17062 (mips_small_register_classes_for_mode_p): Delete prototype.
17063
17064 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
17065
17066 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
17067 * config/arm/arm.c (multiple_operation_profitable_p,
17068 compute_offset_order): New static functions.
17069 (load_multiple_sequence, store_multiple_sequence): Use them.
17070 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
17071 memory offsets, not register numbers.
17072 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
17073
17074 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
17075
17076 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
17077 (get_pending_sizes, put_pending_size, put_pending_sizes):
17078 Update the uses of pending_sizes.
17079 * c-decl.c (store_parm_decls): Likewise.
17080 * c-tree.h (struct c_arg_info): Likewise.
17081 * tree.h: Update the prototype for get_pending_sizes and
17082 put_pending_sizes.
17083
17084 2010-05-05 Jason Merrill <jason@redhat.com>
17085
17086 PR debug/43370
17087 * c-common.c (handle_aligned_attribute): Respect
17088 ATTR_FLAG_TYPE_IN_PLACE.
17089
17090 PR testsuite/43758
17091 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
17092 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
17093 (TARGET_INITIALIZER): Use it.
17094 * c-common.c (attribute_takes_identifier_p): Call it.
17095 * c-common.h: Update prototype.
17096 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
17097 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
17098
17099 2010-05-05 Jakub Jelinek <jakub@redhat.com>
17100
17101 PR debug/43950
17102 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
17103 DW_ID_down_case for Fortran compilation units.
17104
17105 2010-05-05 Jan Hubicka <jh@suse.cz>
17106
17107 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
17108 handle aliases.
17109
17110 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
17111
17112 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
17113 a variable-sized RESULT_DECL.
17114
17115 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
17116
17117 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
17118
17119 2010-05-05 Jason Merrill <jason@redhat.com>
17120
17121 PR c++/43787
17122 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
17123 returns GS_OK.
17124 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
17125
17126 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
17127 Jakub Jelinek <jakub@redhat.com>
17128
17129 PR debug/43478
17130 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
17131 (dead_debug_init, dead_debug_finish): New functions.
17132 (dead_debug_add, dead_debug_insert_before): Likewise.
17133 (df_note_bb_compute): Initialize a dead_debug object, add dead
17134 debug uses to it, insert debug bind insns before death insns,
17135 reset debug insns that refer to pending uses at the end.
17136 * rtl.h (make_debug_expr_from_rtl): New prototype.
17137 * varasm.c (make_debug_expr_from_rtl): New function.
17138
17139 2010-05-05 Jan Hubicka <jh@suse.cz>
17140
17141 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
17142 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
17143 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
17144 lto_varpool_encoder_deref, lto_varpool_encoder_size,
17145 lto_varpool_encoder_encode_initializer_p,
17146 lto_set_varpool_encoder_encode_initializer): New functions.
17147 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
17148 call output_varpool.
17149 (input_varpool_node): Do not always set analyzed.
17150 (input_cgraph_1): Return vector of cgraph nodes.
17151 (input_varpool_1): Return vector of varpools.
17152 (input_cgraph): Free the vectors.
17153 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
17154 output only initializers needed.
17155 (lto_output): Only call output_cgraph.
17156 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
17157 * lto-section-out.c (lto_new_out_decl_state): Initialize
17158 state->varpool_node_encoder.
17159 * lto-streamer.h (lto_varpool_encoder_d): New.
17160 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
17161 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
17162 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
17163 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
17164 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
17165 Declare.
17166 (output_varpool, input_varpool): Remove declarations.
17167
17168 2010-05-05 Jan Hubicka <jh@suse.cz>
17169
17170 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
17171 with body can prevail.
17172
17173 2010-05-05 Jan Hubicka <jh@suse.cz>
17174
17175 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
17176 size.
17177
17178 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
17179
17180 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
17181
17182 * gengtype.h (erro_at_line): Constify pos argument.
17183
17184 * gengtype.c: Include hashtab.h.
17185 (enum gc_used): Document GC_MAYBE_POINTED_TO.
17186 (error_at_line): Constify pos argument.
17187 (do_typedef): Initialize p->opt field.
17188 (get_file_gtfilename): Fix comment typo.
17189 (struct walk_type_data): Constify line field.
17190 (get_output_file_for_structure): New function.
17191 (write_local_func_for_structure): Constify orig_s argument.
17192 Use get_output_file_for_structure.
17193 (write_func_for_structure): Use get_output_file_for_structure.
17194 (INDENT): New define.
17195 (dump_pair, dump_type, dump_type_list, dump_typekind)
17196 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
17197 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
17198 functions.
17199 (seen_types): New variable.
17200 (main): New variable do_dump. Process "-d" command line option.
17201 Call dump_everything if dump requested.
17202
17203 2010-05-05 Jakub Jelinek <jakub@redhat.com>
17204
17205 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
17206 in a temporary instead of invoking the macro multiple times.
17207 (track_expr_p): Likewise.
17208
17209 2010-05-04 Neil Vachharajani <nvachhar@google.com>
17210
17211 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
17212 per new semantics.
17213 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
17214 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
17215 conditions for printing notes.
17216 * common.opt (-Wcoverage-mismatch): Allow negative, default to
17217 true, update documentation.
17218 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
17219
17220 2010-05-04 Jakub Jelinek <jakub@redhat.com>
17221
17222 PR c/43981
17223 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
17224 on dimen.
17225
17226 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
17227
17228 PR target/43799
17229 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
17230 (*sse_prologue_save_insn1): Likewise.
17231 (SSE prologue save splitter): Likewise.
17232
17233 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
17234
17235 * tree.c (free_lang_data_in_one_sizepos): New inline function.
17236 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
17237 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
17238 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
17239 all decls. Call it on DECL_FIELD_OFFSET of fields.
17240 (find_decls_types_r): Follow DECL_VALUE_EXPR.
17241 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
17242
17243 2010-05-04 Martin Jambor <mjambor@suse.cz>
17244
17245 * tree-sra.c (build_access_from_expr_1): The first parameter type
17246 changed to simple tree.
17247 (build_access_from_expr): Likewise, gsi parameter was eliminated.
17248 (scan_assign_result): Renamed to assignment_mod_result, enum elements
17249 renamed as well.
17250 (build_accesses_from_assign): Removed all parameters except for a
17251 simple gimple statement. Now returns a simple bool.
17252 (scan_function): All non-analysis parts moved to separate functions
17253 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
17254 parameters and updated both callers.
17255 (sra_modify_expr): Removed parameter data.
17256 (sra_modify_function_body): New function.
17257 (perform_intra_sra): Call sra_modify_function_body to modify the
17258 function body.
17259 (replace_removed_params_ssa_names): Parameter data changed into
17260 adjustments vector.
17261 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
17262 changed the parameter dont_convert to convert with the opposite
17263 meaning.
17264 (sra_ipa_modify_assign): Parameter data changed into adjustments
17265 vector, return value changed to bool.
17266 (ipa_sra_modify_function_body): New function.
17267 (sra_ipa_reset_debug_stmts): Updated a comment.
17268 (modify_function): Use ipa_sra_modify_function_body to modify function
17269 body.
17270
17271 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
17272
17273 PR middle-end/43671
17274 * alias.c (true_dependence): Handle the same VALUE in x and mem.
17275 (canon_true_dependence): Likewise.
17276 (write_dependence_p): Likewise.
17277
17278 2010-05-04 Jan Hubicka <jh@suse.cz>
17279
17280 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
17281 * cgraphbuild.c: Include ipa-utils.h
17282 (record_reference_ctx): New struct.
17283 (record_reference): Simplify to work on initializers; not statements.
17284 (mark_address, mark_load, mark_store): New.
17285 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
17286 walk PHI nodes too.
17287 (record_references_in_initializer): Update use of record_reference.
17288 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
17289 walk PHI nodes too.
17290
17291 2010-05-04 Jan Hubicka <jh@suse.cz>
17292
17293 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
17294 node will be removed anyway.
17295 (lto_varpool_replace_node): Allow also unanalyzed nodes;
17296 relink aliases of node into prevailing node.
17297 * varpool.c (varpool_remove_node): Remove aliases properly;
17298 when removing node, remove all its aliases too; remove DECL_INITIAL
17299 of removed node; ggc_free the varpool node.
17300
17301 2010-05-04 Richard Guenther <rguenther@suse.de>
17302
17303 PR tree-optimization/43879
17304 * tree-ssa-structalias.c (alias_get_name): Use
17305 DECL_ASSEMBLER_NAME if available.
17306 (create_function_info_for): Return the varinfo node.
17307 (ipa_pta_execute): Associate same-body aliases and extra names
17308 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
17309
17310 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
17311
17312 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
17313
17314 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
17315
17316 PR bootstrap/43964
17317 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
17318 only if HONOR_REG_ALLOC_ORDER is not defined.
17319
17320 2010-05-04 Richard Guenther <rguenther@suse.de>
17321
17322 PR tree-optimization/43949
17323 * tree-vrp.c (extract_range_from_binary_expr): Only handle
17324 TRUNC_MOD_EXPR.
17325
17326 2010-04-26 Jason Merrill <jason@redhat.com>
17327
17328 * c.opt (-fstrict-enums): New.
17329 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
17330
17331 2010-05-03 David Ung <davidu@mips.com>
17332 James E. Wilson <wilson@codesourcery.com>
17333
17334 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
17335 emit the trap instruction before the divide for TUNE_74K.
17336
17337 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
17338
17339 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
17340 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
17341 based on the above, for new target hook.
17342
17343 * hooks.c (hook_bool_mode_true): New generic hook.
17344 * hooks.h (hook_bool_mode_true): Add prototype.
17345
17346 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
17347 target hook.
17348 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
17349 target hook, set to hook_bool_mode_false.
17350 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
17351 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
17352 with targetm.small_register_classes_for_mode_p.
17353 (find_reusable_reload): Likewise.
17354 (combine_reloads): Likewise.
17355 * reload1.c (reload_as_needed): Likewise.
17356 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
17357 * ifcvt.c (noce_process_if_block, check_cond_move_block,
17358 dead_or_predicable): Likewise.
17359 * regmove.c (optimize_reg_copy_1): Likewise.
17360 * calls.c (prepare_call_address): Likewise.
17361 (precompute_register_parameters): Likewise.
17362
17363 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
17364 hook definition.
17365 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
17366 implementation of the hook that considers all register classes
17367 small except for SH64.
17368 (sh_override_options): Use the new hook.
17369 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
17370 Add prototype.
17371
17372 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
17373 hook definition.
17374 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
17375 implementation of the hook that considers all register classes
17376 small for THUMB1.
17377 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
17378 Add prototype.
17379
17380 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
17381 hook definition.
17382 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
17383 implementation of the hook that considers all register classes
17384 small for MIPS16.
17385 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
17386 Add prototype.
17387
17388 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
17389 hook definition.
17390 * config/m32c/m32c.h: Likewise.
17391 * config/pdp11/pdp11.h: Likewise.
17392 * config/avr/avr.h: Likewise.
17393 * config/xtensa/xtensa.h: Likewise.
17394 * config/m68hc11/m68hc11.h: Likewise.
17395 * config/mn10300/mn10300.h: Likewise.
17396 * config/mcore/mcore.h: Likewise.
17397 * config/h8300/h8300.h: Likewise.
17398 * config/bfin/bfin.h: Likewise.
17399
17400 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
17401 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
17402
17403 2010-05-03 Anatoly Sokolov <aesok@post.ru>
17404
17405 * double-int.h (tree_to_double_int): Remove macro.
17406 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
17407 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
17408 (tree_to_double_int): New function.
17409 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
17410 Move ...
17411 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
17412
17413 2010-05-03 Richard Guenther <rguenther@suse.de>
17414
17415 PR tree-optimization/43971
17416 * tree-ssa-structalias.c (get_constraint_for_1): Fix
17417 constraints in the !flag_delete_null_pointer_checks case.
17418
17419 2010-05-03 Jakub Jelinek <jakub@redhat.com>
17420
17421 PR debug/43972
17422 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
17423 result mode matches original rtl mode.
17424
17425 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
17426
17427 PR target/43888
17428 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
17429
17430 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
17431
17432 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
17433 when processing flag options.
17434
17435 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
17436
17437 * gcov-iov.c (main): Change format string placeholder
17438 from %#08x to 0x%08x.
17439 * genchecksum.c (dosum): Change format string placeholder
17440 from %#02x to 0x%02x.
17441
17442 2010-05-02 Richard Guenther <rguenther@suse.de>
17443
17444 PR tree-optimization/43879
17445 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
17446
17447 2010-05-02 Bruno Haible <bruno@clisp.org>
17448
17449 * doc/extend.texi (Function Attributes): Fix a typo.
17450
17451 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
17452
17453 Revert:
17454 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
17455 placeholder from 0x%x to %#x.
17456 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
17457 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
17458 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
17459 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
17460 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
17461 * config/i386/i386.c (ix86_target_string): Ditto.
17462 * config/i386/i386.c (output_pic_addr_const): Ditto.
17463 (print_operand): Ditto.
17464
17465 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
17466
17467 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
17468 placeholder from 0x%x to %#x.
17469 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
17470 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
17471 (ASM_OUTPUT_DEBUG_DATA): Ditto.
17472 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
17473 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
17474 * optc-gen.awk: Ditto.
17475 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
17476 (HOST_WIDE_INT_PRINT_HEX): Ditto.
17477 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
17478 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
17479
17480 2010-05-01 Anatoly Sokolov <aesok@post.ru>
17481
17482 * target.h (struct calls): Add function_value_regno_p field.
17483 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
17484 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
17485 * targhooks.c (default_function_value_regno_p): New function.
17486 * targhooks.h (default_function_value_regno_p): Declare function.
17487 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
17488 * builtins.c. (apply_result_size): (Ditto.).
17489 * combine.c. (likely_spilled_retval_p): (Ditto.).
17490 * mode-switching.c. Include 'target.h'.
17491 (create_pre_exit): Use function_value_regno_p hook.
17492 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
17493 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
17494 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
17495
17496 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
17497 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
17498 (ix86_function_value_regno_p): Declare as static, change argument
17499 type to const unsigned int.
17500 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
17501
17502 2010-05-01 Richard Guenther <rguenther@suse.de>
17503
17504 PR tree-optimization/43949
17505 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
17506 types.
17507 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
17508
17509 2010-05-01 Anatoly Sokolov <aesok@post.ru>
17510
17511 * rtl.h (CONST_DOUBLE_P): Define.
17512 (rtx_to_double_int): Declare.
17513 * emit-rtl.c (rtx_to_double_int): New function.
17514 * dwarf2out.c (insert_double): New function.
17515 (loc_descriptor, add_const_value_attribute): Clean up, use
17516 rtx_to_double_int and insert_double functions.
17517
17518 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
17519
17520 * doc/extend.texi (Inline): Add missing return keyword to examples.
17521 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
17522 "command-line".
17523
17524 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
17525
17526 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
17527 the variable part of the offset as well. Use highest_pow2_factor for
17528 all alignment checks.
17529
17530 2010-04-30 Richard Guenther <rguenther@suse.de>
17531
17532 PR tree-optimization/43879
17533 * tree-ssa-structalias.c (type_could_have_pointers): Functions
17534 can have pointers.
17535
17536 2010-04-30 Jan Hubicka <jh@suse.cz>
17537
17538 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
17539 varpool.
17540 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
17541
17542 2010-04-30 Jan Hubicka <jh@suse.cz>
17543
17544 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
17545 New.
17546 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
17547 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
17548 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
17549 cgraph_node_set_needs_ltrans_p): Remove.
17550
17551 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
17552
17553 * sdbout.c: Include vec.h, do not include varray.h.
17554 (deferred_global_decls, sdbout_global_decl,
17555 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
17556 * toplev.c: Do not include varray.h.
17557 (dump_memory_report): Do not dump VARRAY statistics.
17558 * gengtype.c (open_base_file): Ignore varray.h.
17559 * Makefile.in: Update for abovementioned changes.
17560 Remove all traces of varray.c and varray.h.
17561 * varray.c: Remove file.
17562 * varray.h: Remove file.
17563
17564 2010-04-30 Jan Hubicka <jh@suse.cz>
17565
17566 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
17567 references.
17568
17569 2010-04-30 Jan Hubicka <jh@suse.cz>
17570
17571 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
17572 needed.
17573
17574 2010-04-30 Richard Guenther <rguenther@suse.de>
17575
17576 * tree-ssa-structalias.c (get_constraint_for_1): Generate
17577 constraints for CONSTRUCTOR.
17578
17579 2010-04-30 Richard Guenther <rguenther@suse.de>
17580
17581 PR lto/43946
17582 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
17583 first after all lowering passes.
17584
17585 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
17586
17587 * toplev.c: Include varray.h for statistics dumping.
17588 * tree.h: Do not declare varray_head_tag.
17589 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
17590 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
17591 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
17592 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
17593 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
17594 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
17595 c-common.c, c-common.h, reg-stack.c, basic-block.h,
17596 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
17597 include varray.h.
17598 * Makefile.in: Update for abovementioned changes.
17599
17600 2010-04-30 Jakub Jelinek <jakub@redhat.com>
17601
17602 PR debug/43942
17603 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
17604
17605 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
17606
17607 * config/picochip/picochip.c (picochip_legitimize_address): Define.
17608 Use this function to do machine-specific conversion.
17609 (picochip_legitimize_reload_address): Likewise.
17610 (picochip_legitimate_address_p): Check valid base register only if
17611 strict.
17612 (picochip_check_conditional_copy): Check for modw only if opnd is
17613 register.
17614 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
17615 to call the function in c.
17616 * config/picochip/picochip-protos.h
17617 (picochip_legitimize_reload_address): Define.
17618 * config/picochip/picochip.md (supported_compare1): Define.
17619
17620 2010-04-30 Jan Hubicka <jh@suse.cz>
17621
17622 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
17623 (cgraph_global_info): Remove inlined.
17624 (LTO_cgraph_tag_names): Remove.
17625 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
17626 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
17627 simplify cgraph tags and document.
17628 (lto_output_node): Use only LTO_cgraph_unavail_node and
17629 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
17630 for_functions_valid, global info, process and output flags.
17631 (input_overwrite_node): Initialize estimated stack size and
17632 estimated growth. Do not read flags we no longer store.
17633 (input_node): Likewise do not read info no longer stored.
17634 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
17635 flag.
17636
17637 2010-04-30 Richard Guenther <rguenther@suse.de>
17638
17639 PR tree-optimization/43879
17640 * tree-ssa-structalias.c (get_constraint_for_1): Properly
17641 handle non-zero initializers.
17642
17643 2010-04-30 Richard Guenther <rguenther@suse.de>
17644
17645 * builtins.c (fold_builtin_1): Delete free (0).
17646
17647 2010-04-29 Jan Hubicka <jh@suse.cz>
17648
17649 * gengtype.c (open_base_files): Add lto-streamer.h
17650 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
17651 (pass_ipa_cp): GGC collect.
17652 * toplev. (compile_file): Do not output symbols.
17653 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
17654 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
17655 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
17656 * lto-section-in.c: Include ggc.h
17657 (lto_new_in_decl_state): Alloc in GGC.
17658 (lto_delete_in_decl_state): Likewise.
17659 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
17660 Collect.
17661
17662 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
17663
17664 PR target/42895
17665 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
17666 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
17667 (HONOR_REG_ALLOC_ORDER): Describe new macro.
17668 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
17669 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
17670 account only if HONOR_REG_ALLOC_ORDER is not defined.
17671 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
17672 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
17673
17674 2010-04-29 Jon Grant <04@jguk.org>
17675
17676 * collect2.c (vflag): Change type from int to bool.
17677 (debug): Likewise.
17678 (helpflag): New global bool.
17679 (main): Set vflag and debug with boolean, not integer truth values.
17680 Accept new "--help" option and output usage text if found.
17681 * collect2.h (vflag): Update prototype.
17682 (debug): Likewise.
17683
17684 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
17685
17686 PR bootstrap/43936
17687 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
17688
17689 2010-04-29 Richard Guenther <rguenther@suse.de>
17690
17691 PR bootstrap/43935
17692 * plugin.h (invoke_plugin_callbacks): Annotate arguments
17693 with ATTRIBUTE_UNUSED.
17694
17695 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
17696
17697 PR target/43921
17698 * config/i386/i386.c (get_some_local_dynamic_name): Replace
17699 INSN_P with NONDEBUG_INSN_P.
17700 (distance_non_agu_define): Likewise.
17701 (distance_agu_use): Likewise.
17702
17703 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
17704
17705 From Dominique d'Humieres <dominiq@lps.ens.fr>
17706 PR bootstrap/43858
17707 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
17708 test_set.
17709
17710 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
17711
17712 * plugin.h (invoke_plugin_callbacks): New inline function.
17713 * plugin.c (flag_plugin_added): New global flag.
17714 (add_new_plugin): Initialize above flag.
17715 (invoke_plugin_callbacks): Rename to ...
17716 (invoke_plugin_callbacks_full): ... this.
17717
17718 2010-04-28 Jan Hubicka <jh@suse.cz>
17719
17720 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
17721 (lto_varpool_replace_node): New.
17722 (lto_symtab_resolve_symbols): Resolve varpool nodes.
17723 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
17724 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
17725 * cgraph.h (varpool_node_ptr): New type.
17726 (varpool_node_ptr): New vector.
17727 (varpool_node_set_def): New structure.
17728 (varpool_node_set): New type.
17729 (varpool_node_set): New vector.
17730 (varpool_node_set_element_def): New structure.
17731 (varpool_node_set_element, const_varpool_node_set_element): New types.
17732 (varpool_node_set_iterator): New type.
17733 (varpool_node): Add prev pointers, add used_from_other_partition,
17734 in_other_partition.
17735 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
17736 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
17737 varpool_get_node, varpool_remove_node): Declare.
17738 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
17739 varpool_node_set_size): New inlines.
17740 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
17741 * tree-pass.h (varpool_node_set_def): Forward declare.
17742 (ipa_opt_pass_d): Summary writting takes vnode sets too.
17743 (ipa_write_optimization_summaries): Update prototype.
17744 * ipa-cp.c (ipcp_write_summary): Update.
17745 * ipa-reference.c (ipa_reference_write_summary): Update.
17746 * lto-cgraph.c (lto_output_varpool_node): New static function.
17747 (output_varpool): New function.
17748 (input_varpool_node): New static function.
17749 (input_varpool_1): New function.
17750 (input_cgraph): Input varpool.
17751 * ipa-pure-const.c (pure_const_write_summary): Update.
17752 * lto-streamer-out.c (lto_output): Update, output varpool too.
17753 (write_global_stream): Kill WPA hack.
17754 (produce_asm_for_decls): Update.
17755 (output_alias_pair_p): Handle variables.
17756 (output_unreferenced_globals): Output only needed partition of varpool.
17757 * ipa-inline.c (inline_write_summary): Update.
17758 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
17759 cgraph.
17760 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
17761 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
17762 varpool_node_set_new, varpool_node_set_add,
17763 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
17764 debug_varpool_node_set): New functions.
17765 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
17766 (execute_one_pass): Process new decls too.
17767 (ipa_write_summaries_2): Pass around vsets.
17768 (ipa_write_summaries_1): Likewise.
17769 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
17770 to add.
17771 (ipa_write_optimization_summaries_1): Pass around vsets.
17772 (ipa_write_optimization_summaries): Likewise.
17773 * varpool.c (varpool_get_node): New.
17774 (varpool_node): Update doubly linked lists.
17775 (varpool_remove_node): New.
17776 (dump_varpool_node): More dumping.
17777 (varpool_enqueue_needed_node): Update doubly linked lists.
17778 (decide_is_variable_needed): Kill ltrans hack.
17779 (varpool_finalize_decl): Kill lto hack.
17780 (varpool_assemble_decl): Skip decls in other partitions.
17781 (varpool_assemble_pending_decls): Update doubly linkes lists.
17782 (varpool_empty_needed_queue): Likewise.
17783 (varpool_extra_name_alias): Likewise.
17784 * lto-streamer.c (lto_get_section_name): Add vars section.
17785 * lto-streamer.h (lto_section_type): Update.
17786 (output_varpool, input_varpool): Declare.
17787
17788 2010-04-28 Mike Stump <mikestump@comcast.net>
17789
17790 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
17791
17792 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
17793
17794 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
17795 record or union type with RECORD_OR_UNION_TYPE_P predicate.
17796 (lto_input_ts_type_tree_pointers): Likewise.
17797 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
17798 (lto_output_ts_type_tree_pointers): Likewise.
17799
17800 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
17801
17802 Uniquization of constants at the Tree level
17803 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
17804 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
17805 bit to the end.
17806 (tree_output_constant_def): Declare.
17807 * gimplify.c (gimplify_init_constructor): When using block copy, first
17808 uniquize the constant constructor on the RHS.
17809 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
17810 DECL_IN_CONSTANT_POOL flag.
17811 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
17812 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
17813 constant pool.
17814 (assemble_variable): Deal with symbols belonging to the tree constant
17815 pool.
17816 (get_constant_section): Add ALIGN parameter and simplify.
17817 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
17818 (assemble_constant_contents): Use the expression of the VAR_DECL.
17819 (output_constant_def_contents): Use the alignment of the VAR_DECL.
17820 (tree_output_constant_def): New global function.
17821 (mark_constant): Use the expression of the VAR_DECL.
17822 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
17823 its expression.
17824 (output_object_block): Likewise and assemble the expression.
17825
17826 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
17827
17828 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
17829 hash_tree, eq_tree): New tree hash table.
17830 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
17831 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
17832 lto_orig_address_remove): Reimplement.
17833
17834 2010-04-28 Xinliang David Li <davidxl@google.com>
17835
17836 PR c/42643
17837 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
17838 (compute_uninit_opnds_pos): New function.
17839 (is_non_loop_exit_postdominating): New function.
17840 (compute_control_dep_chain): New function.
17841 (find_pdom): New function.
17842 (convert_control_dep_chain_into_preds): New function.
17843 (find_predicates): New function.
17844 (find_control_equiv_block): New function.
17845 (collect_phi_def_edges): New function.
17846 (find_def_preds): New function.
17847 (find_dom): New function.
17848 (dump_predicates): New function.
17849 (get_cmp_code): New function.
17850 (is_value_included_in): New function.
17851 (find_matching_predicate_in_rest_chains): New function.
17852 (use_pred_not_overlap_with_undef_path_pred): New function.
17853 (is_use_properly_guarded): New function.
17854 (normalize_cond_1): New function.
17855 (is_and_or_or): New function.
17856 (normalize_cond): New function.
17857 (is_gcond_subset_of): New function.
17858 (is_subset_of_any): New function.
17859 (is_or_set_subset_of): New function.
17860 (is_and_set_subset_of): New function.
17861 (is_norm_cond_subset_of): New function.
17862 (is_pred_expr_subset_of): New function.
17863 (is_pred_chain_subset_of): New function.
17864 (is_included_in): New function.
17865 (is_superset_of): New function.
17866 (find_uninit_use): New function.
17867 (warn_uninitialized_phi): New function.
17868 (compute_possibly_undefined_names): New function.
17869 (ssa_undefined_value_p): New function.
17870 (execute_late_warn_uninitialized): New function.
17871 * tree-ssa.c (ssa_undefined_value_p): Removed.
17872 (warn_uninit): Changed to extern.
17873 (warn_uninitialized_phi): Removed.
17874 (warn_uninitialized_vars): Changed to extern.
17875 (execute_late_warn_uninitialized): Removed
17876 * tree-flow.h: Add new prototypes.
17877 * timevar.def: Add new time variable.
17878 * Makefile.in: Add new build file.
17879
17880 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
17881
17882 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
17883 type if available.
17884
17885 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17886
17887 PR target/22224
17888 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
17889
17890 2010-04-28 Martin Jambor <mjambor@suse.cz>
17891
17892 * cgraph.h (struct cgraph_node): New field indirect_calls.
17893 (struct cgraph_indirect_call_info): New type.
17894 (struct cgraph_edge): Removed field indirect_call. New fields
17895 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
17896 (cgraph_create_indirect_edge): Declare.
17897 (cgraph_make_edge_direct): Likewise.
17898 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
17899 * ipa-prop.h (struct ipa_param_call_note): Removed.
17900 (struct ipa_node_params): Removed field param_calls.
17901 (ipa_create_all_structures_for_iinln): Declare.
17902 * cgraph.c: Described indirect edges and uids in initial comment.
17903 (cgraph_add_edge_to_call_site_hash): New function.
17904 (cgraph_edge): Search also among the indirect edges, use
17905 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
17906 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
17907 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
17908 site hash.
17909 (initialize_inline_failed): Assign a reason to indirect edges.
17910 (cgraph_create_edge_1): New function.
17911 (cgraph_create_edge): Moved some functionality to
17912 cgraph_create_edge_1.
17913 (cgraph_create_indirect_edge): New function.
17914 (cgraph_edge_remove_callee): Add an assert checking for
17915 non-indirectness.
17916 (cgraph_edge_remove_caller): Special-case indirect edges.
17917 (cgraph_remove_edge): Likewise.
17918 (cgraph_set_edge_callee): New function.
17919 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
17920 (cgraph_make_edge_direct): New function.
17921 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
17922 the declaration of the call statement matches.
17923 (cgraph_node_remove_callees): Special-case indirect edges.
17924 (cgraph_clone_edge): Likewise.
17925 (cgraph_clone_node): Clone also the indirect edges.
17926 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
17927 indirect_call, dump count of indirect_calls edges.
17928 * ipa-prop.c (iinlining_processed_edges): New variable.
17929 (ipa_note_param_call): Create indirect edges instead of
17930 creating notes. New parameter node.
17931 (ipa_analyze_call_uses): New parameter node, pass it on to
17932 ipa_note_param_call.
17933 (ipa_analyze_stmt_uses): Likewise.
17934 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
17935 (print_edge_addition_message): Work on edges rather than on notes.
17936 (update_call_notes_after_inlining): Likewise, renamed to
17937 update_indirect_edges_after_inlining.
17938 (ipa_create_all_structures_for_iinln): New function.
17939 (ipa_free_node_params_substructures): Do not free notes.
17940 (ipa_edge_duplication_hook): Propagate bits within
17941 iinlining_processed_edges bitmap.
17942 (ipa_node_duplication_hook): Do not duplicate notes.
17943 (free_all_ipa_structures_after_ipa_cp): Renamed to
17944 ipa_free_all_structures_after_ipa_cp.
17945 (free_all_ipa_structures_after_iinln): Renamed to
17946 ipa_free_all_structures_after_iinln.
17947 (ipa_write_param_call_note): Removed.
17948 (ipa_read_param_call_note): Removed.
17949 (ipa_write_indirect_edge_info): New function.
17950 (ipa_read_indirect_edge_info): Likewise.
17951 (ipa_write_node_info): Do not stream notes, do stream information
17952 in indirect edges.
17953 (ipa_read_node_info): Likewise.
17954 (lto_ipa_fixup_call_notes): Removed.
17955 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
17956 * ipa-inline.c (pass_ipa_inline): Likewise.
17957 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
17958 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
17959 * tree-inline.c (copy_bb): Removed an unnecessary double check for
17960 is_gimple_call.
17961 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
17962 edges.
17963 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
17964 (output_cgraph): Stream also indirect edges.
17965 (lto_output_edge): Added capability to stream indirect edges.
17966 (input_edge): Likewise.
17967 (input_cgraph_1): Likewise.
17968 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
17969 of indirect edges.
17970
17971 2010-04-28 Richard Guenther <rguenther@suse.de>
17972
17973 PR tree-optimization/43879
17974 PR tree-optimization/43909
17975 * tree-ssa-structalias.c (struct variable_info): Add
17976 only_restrict_pointers flag.
17977 (new_var_info): Initialize it. Increment stats.total_vars here.
17978 (create_function_info_for): Do not increment stats.total_vars here.
17979 (get_function_part_constraint): Fix build with C++.
17980 (insert_into_field_list): Remove.
17981 (push_fields_onto_fieldstack): Properly merge fields.
17982 (create_variable_info_for): Split and simplify.
17983 (create_variable_info_for_1): New piece.
17984 (intra_create_variable_infos): Properly make restrict constraints
17985 from parameters.
17986
17987 2010-04-28 Richard Guenther <rguenther@suse.de>
17988
17989 PR c++/43880
17990 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
17991
17992 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
17993 Jan Hubicka <hubicka@ucw.cz>
17994
17995 * doc/invoke.texi (-Wsuggest-attribute=const,
17996 -Wsuggest-attribute=pure): Document.
17997 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
17998 (function_always_visible_to_compiler_p,
17999 suggest_attribute, warn_function_pure, warn_function_const):
18000 New functions.
18001 (check_call): Improve debug info.
18002 (analyze_function): Do not check availability.
18003 (add_new_function): Check availability.
18004 (propagate): Output warnings.
18005 (skip_function_for_local_pure_const): New function.
18006 (local_pure_const): Use it; output warnings.
18007 * common.opt (Wsuggest-attribute=const,
18008 Wsuggest-attribute=pure): New.
18009
18010 2010-04-27 Jakub Jelinek <jakub@redhat.com>
18011
18012 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
18013 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
18014 or DW_CFA_def_cfa_offset{,_sf}.
18015
18016 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
18017
18018 * tree.h: Fix truncated long macros.
18019
18020 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
18021
18022 * collect2.c (TARGET_64BIT): Redefine to target's default.
18023 * tlink.c: Likewise.
18024 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
18025 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
18026 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
18027 for underscoring __USER_LABEL_PREFIX__.
18028 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
18029 (SUB_LINK_ENTRY32): New.
18030 (SUB_LINK_ENTRY64): New.
18031 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
18032 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
18033 (SUB_LINK_ENTRY64): New.
18034 (SUB_LINK_ENTRY): New.
18035 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
18036 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
18037 x64 target is choosen.
18038 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
18039 * configure: Regenerated.
18040 * configure.ac (leading-mingw64-underscores): Option added.
18041
18042 2010-04-27 Jan Hubicka <jh@suse.cz>
18043
18044 * doc/invoke.texi (-fipa-profile): Document.
18045 * opts.c (decode_options): Enable ipa-profile at -O1.
18046 * timevar.def (TV_IPA_PROFILE): Define.
18047 * common.opt (fipa-profile): Add.
18048 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
18049 flag for clones.
18050 (cgraph_propagate_frequency): Handle only local ones.
18051 * tree-pass.h (pass_ipa_profile): Declare.
18052 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
18053 (pass_ipa_profile): Use TV_IPA_PROFILE.
18054 * ipa.c (ipa_profile): New function.
18055 (gate_ipa_profile): Likewise.
18056 (pass_ipa_profile): New global variable.
18057 * passes.c (pass_ipa_profile): New.
18058
18059 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
18060
18061 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
18062
18063 2010-04-27 Martin Jambor <mjambor@suse.cz>
18064
18065 PR middle-end/43812
18066 * ipa.c (dissolve_same_comdat_group_list): New function.
18067 (function_and_variable_visibility): Call
18068 dissolve_same_comdat_group_list when comdat group contains external or
18069 newly local nodes.
18070 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
18071 lists are circular and that they contain only DECL_ONE_ONLY nodes.
18072
18073 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
18074
18075 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
18076 (const_hash_1) <VECTOR_CST>: New case.
18077 (compare_constant) <VECTOR_CST>: Likewise.
18078 <ADDR_EXPR>: Deal with LABEL_REFs.
18079 (copy_constant) <VECTOR_CST>: New case.
18080
18081 2010-04-27 Jan Hubicka <jh@suse.cz>
18082
18083 * cgraph.c (cgraph_propagate_frequency): New function.
18084 * cgraph.h (cgraph_propagate_frequency): Declare.
18085 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
18086 cgraph_propagate_frequency.
18087
18088 2010-04-27 Jakub Jelinek <jakub@redhat.com>
18089
18090 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
18091
18092 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
18093
18094 PR target/40657
18095 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
18096 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
18097 here to determine which regs to push and how much stack to reserve.
18098
18099 2010-04-27 Jie Zhang <jie@codesourcery.com>
18100
18101 * doc/gimple.texi (gimple_statement_with_ops): Remove
18102 addresses_taken field.
18103 (gimple_statement_with_memory_ops): Likewise.
18104
18105 2010-04-27 Jan Hubicka <jh@suse.cz>
18106
18107 * tree-inline.c (eni_inlining_weights): Remove.
18108 (estimate_num_insns): Special case more builtins.
18109
18110 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
18111
18112 PR c/32207
18113 * c-typeck.c (build_binary_op): Move forward check for comparison
18114 pointer with null pointer constant and adjust the diagnostic message.
18115
18116 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
18117
18118 PR lto/42776
18119 * configure.ac (gcc_cv_as_section_has_align): Set if installed
18120 binutils supports extended .section directive needed by LTO, or
18121 warn if older binutils found.
18122 (LTO_BINARY_READER): New AC_SUBST'd variable.
18123 (LTO_USE_LIBELF): Likewise.
18124 * gcc/config.gcc (lto_binary_reader): New target-specific configure
18125 variable.
18126 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
18127 (LTO_USE_LIBELF): Likewise.
18128 * configure: Regenerate.
18129
18130 * collect2.c (is_elf): Rename from this ...
18131 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
18132 object files in addition to ELF-formatted ones.
18133 (scan_prog_file): Caller updated. Also allow for LTO info marker
18134 symbol to be prefixed or not by an extra underscore.
18135
18136 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
18137 * config/i386/winnt.c: Also #include lto-streamer.h
18138 (i386_pe_asm_named_section): Specify 1-byte section alignment for
18139 LTO named sections.
18140 (i386_pe_asm_output_aligned_decl_common): Add comment.
18141 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
18142
18143 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
18144
18145 PR target/43889
18146 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
18147 Add missing earlyclobber for second alternative.
18148
18149 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
18150
18151 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
18152 bits for artificial defs at the top of the block.
18153 * fwprop.c (single_def_use_enter_block): Don't call it.
18154
18155 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
18156
18157 PR 43715
18158 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
18159 instead of "$gcc_cv_objdump -T".
18160 Use "-undefined dynamic_lookup" on darwin.
18161 * gcc/configure: Regenerate.
18162
18163 2010-04-26 Jakub Jelinek <jakub@redhat.com>
18164
18165 PR c/43893
18166 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
18167
18168 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
18169
18170 * c-parser.c (struct c_token): Move location field up.
18171 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
18172 (struct c_declspecs): Convert typespec_word, storage_class, and
18173 default_int_p into bitfields.
18174 (struct c_declarator): Move loc field up.
18175
18176 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
18177
18178 * cfgloop.h (struct loop): Move can_be_parallel field up.
18179 * ipa-prop.h (struct ip_node_params): Move bitfields up.
18180 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
18181 down.
18182 (struct iv_cand): Convert pos field into a bitfield.
18183 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
18184 field up.
18185 (struct _stmt_vec_info): Shuffle fields for better packing.
18186
18187 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
18188
18189 * varasm.c (IN_NAMED_SECTION): Remove guard.
18190 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
18191 (IN_NAMED_SECTION_P): ...this.
18192 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
18193 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
18194
18195 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
18196
18197 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
18198 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
18199 of shadowing it. Fix comments.
18200
18201 2010-04-26 Jan Hubicka <jh@suse.cz>
18202
18203 * cgraph.c (cgraph_create_node): Set node frequency to normal.
18204 (cgraph_clone_node): Copy function frequency.
18205 * cgraph.h (node_frequency): New enum
18206 (struct cgraph_node): Add.
18207 * final.c (rest_of_clean_state): Update.
18208 * lto-cgraph.c (lto_output_node): Output node frequency.
18209 (input_overwrite_node): Input node frequency.
18210 * tre-ssa-loop-ivopts (computation_cost): Update.
18211 * lto-streamer-out.c (output_function): Do not output function
18212 frequency.
18213 * predict.c (maybe_hot_frequency_p): Update and handle functions
18214 executed once.
18215 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
18216 attribute lookup.
18217 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
18218 (compute_function_frequency): Set noreturn functions to be executed
18219 once.
18220 (choose_function_section): Update.
18221 * lto-streamer-in.c (input_function): Do not input function frequency.
18222 * function.c (allocate_struct_function): Do not initialize function
18223 frequency.
18224 * function.h (function_frequency): Remove.
18225 (struct function): Remove function frequency.
18226 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
18227 (try_update): Update.
18228 * tree-inline.c (initialize_cfun): Do not update function frequency.
18229 * passes.c (pass_init_dump_file): Update.
18230 * i386.c (ix86_compute_frame_layout): Update.
18231 (ix86_pad_returns): Update.
18232
18233 2010-04-26 Jie Zhang <jie@codesourcery.com>
18234
18235 PR tree-optimization/43833
18236 * tree-vrp.c (range_int_cst_p): New.
18237 (range_int_cst_singleton_p): New.
18238 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
18239 when both operands are constants. Use range_int_cst_p in
18240 BIT_IOR_EXPR case.
18241
18242 2010-04-26 Jan Hubicka <jh@suse.cz>
18243
18244 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
18245
18246 2010-04-26 Richard Guenther <rguenther@suse.de>
18247
18248 PR lto/43080
18249 * gimple.c (gimple_decl_printable_name): Deal gracefully
18250 with a NULL DECL_NAME.
18251
18252 2010-04-26 Richard Guenther <rguenther@suse.de>
18253
18254 PR lto/42425
18255 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
18256 if emitting debug information and it is either a function
18257 or a namespace decl.
18258
18259 2010-04-26 Ira Rosen <irar@il.ibm.com>
18260
18261 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
18262 determine if the statement is vectorizable, and a macro to access it.
18263 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18264 Skip statements that can't be vectorized. If the analysis fails,
18265 mark the statement as unvectorizable if vectorizing basic block.
18266 (vect_compute_data_refs_alignment): Likewise.
18267 (vect_verify_datarefs_alignment): Skip statements marked as
18268 unvectorizable. Add print.
18269 (vect_analyze_group_access): Skip statements that can't be
18270 vectorized. If the analysis fails, mark the statement as
18271 unvectorizable if vectorizing basic block.
18272 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
18273 * tree-vect-stmts.c (vectorizable_store): Fix the number of
18274 generated stmts for SLP.
18275 (new_stmt_vec_info): Initialize the new field.
18276 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
18277 statements marked as unvectorizable.
18278
18279 2010-04-25 Joseph Myers <joseph@codesourcery.com>
18280
18281 * c-common.c (flag_isoc1x): New.
18282 (flag_isoc99): Update comment.
18283 * c-common.h (flag_isoc1x): New.
18284 (flag_isoc99): Update comment.
18285 * c-cppbuiltin.c (builtin_define_float_constants): Also define
18286 __<type>_DECIMAL_DIG__.
18287 * c-opts.c (set_std_c1x): New.
18288 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
18289 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
18290 * c.opt (-std=c1x, -std=gnu1x): New options.
18291 * doc/cpp.texi: Mention -std=c1x.
18292 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
18293 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
18294 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
18295 * doc/standards.texi: Mention C1X.
18296 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
18297 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
18298 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
18299 Define for C1X.
18300
18301 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
18302
18303 * config/i386/gmon-sol2.c (_mcleanup): Change format string
18304 placeholder from 0x%x to %#x.
18305 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
18306 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
18307 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
18308 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
18309 * config/i386/i386.c (ix86_target_string): Ditto.
18310 (output_pic_addr_const): Ditto.
18311 (print_operand): Ditto.
18312
18313 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
18314
18315 * combine.c (find_split_point): Add third argument. Use it
18316 to find nested multiply-accumulate instructions. Adjust calls.
18317 (try_combine): Adjust call to find_split_point.
18318
18319 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
18320
18321 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
18322
18323 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
18324
18325 PR tree-optimization/41442
18326 * fold-const.c (merge_truthop_with_opposite_arm): New function.
18327 (fold_binary_loc): Call it.
18328
18329 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
18330
18331 * toplev.c (general_init): Set default for fdiagnostics-show-option.
18332 * opts.c (common_handle_option): Allow disabling it.
18333 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
18334
18335 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
18336
18337 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
18338 between modes if both types are integral.
18339
18340 2010-04-23 Richard Guenther <rguenther@suse.de>
18341
18342 PR tree-optimization/43572
18343 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
18344
18345 2010-04-23 Richard Guenther <rguenther@suse.de>
18346
18347 PR lto/43455
18348 * tree-inline.c (tree_can_inline_p): Also check compatibility
18349 of return types.
18350
18351 2010-04-23 Martin Jambor <mjambor@suse.cz>
18352
18353 PR tree-optimization/43846
18354 * tree-sra.c (struct access): New flag grp_assignment_read.
18355 (build_accesses_from_assign): Set grp_assignment_read.
18356 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
18357 (enum mark_read_status): New type.
18358 (analyze_access_subtree): Propagate grp_assignment_read, create
18359 accesses also if both direct_read and root->grp_assignment_read.
18360
18361 2010-04-23 Martin Jambor <mjambor@suse.cz>
18362
18363 PR middle-end/43835
18364 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
18365 function does not have type attributes.
18366
18367 2010-04-23 Richard Guenther <rguenther@suse.de>
18368
18369 PR lto/42653
18370 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
18371 of FUNCTION_DECLs.
18372
18373 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
18374
18375 * sese.h (create_if_region_on_edge): Remove.
18376
18377 * sese.c (create_if_region_on_edge): Make static.
18378
18379 * tree-inline.c: Do not include ggc.h.
18380
18381 * expr.c: Do not include ggc.h.
18382
18383 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
18384 dependencies.
18385
18386 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
18387
18388 PR target/43744
18389 * config/sh/sh.c (find_barrier): Don't emit a constant pool
18390 in the middle of insns for casesi_worker_2.
18391
18392 2010-04-22 David Edelsohn <edelsohn@gnu.org>
18393
18394 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
18395
18396 2010-04-22 Ira Rosen <irar@il.ibm.com>
18397
18398 PR tree-optimization/43842
18399 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
18400 loop unrolling in update of exit phis. Fix comment.
18401 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
18402 least two reduction statements in the loop before starting SLP
18403 analysis.
18404
18405 2010-04-22 Nick Clifton <nickc@redhat.com>
18406
18407 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
18408
18409 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
18410
18411 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
18412 to simplify a + ~a.
18413
18414 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
18415
18416 * tree-parloops.c (loop_parallel_p): New argument
18417 parloop_obstack. Pass it down.
18418 (parallelize_loops): New variable parloop_obstack. Initialize it,
18419 pass it down, free it.
18420
18421 * tree-loop-linear.c (linear_transform_loops): Pass down
18422 lambda_obstack.
18423
18424 * tree-data-ref.h (lambda_compute_access_matrices): New argument
18425 of type struct obstack *.
18426
18427 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
18428 scratch_obstack. Initialize it, pass down, free it.
18429
18430 * lambda.h (lambda_loop_new): Remove.
18431 (lambda_matrix_new, lambda_matrix_inverse)
18432 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
18433 argument of type struct obstack *.
18434
18435 * lambda-trans.c (lambda_trans_matrix_new): New argument
18436 lambda_obstack. Pass it down, use obstack allocation for ret.
18437 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
18438 it down.
18439
18440 * lambda-mat.c (lambda_matrix_get_column)
18441 (lambda_matrix_project_to_null): Remove.
18442 (lambda_matrix_new): New argument lambda_obstack. Use obstack
18443 allocation for mat.
18444 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
18445 lambda_obstack.
18446
18447 * lambda-code.c (lambda_loop_new): New function.
18448 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
18449 (lambda_compute_auxillary_space, lambda_compute_target_space)
18450 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
18451 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
18452 (build_access_matrix): New argument lambda_obstack. Use obstack
18453 allocation for am.
18454 (lambda_compute_step_signs, lambda_compute_access_matrices): New
18455 argument lambda_obstack. Pass it down.
18456
18457 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
18458
18459 * optabs.h (expand_widening_mult): Declare.
18460
18461 2010-04-22 Richard Guenther <rguenther@suse.de>
18462
18463 PR tree-optimization/43845
18464 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
18465 lookup the CALL_EXPR function and arguments.
18466
18467 2010-04-22 Nick Clifton <nickc@redhat.com>
18468
18469 * config/stormy16/stormy16.c
18470 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
18471 * config/stormy16/stormy16.h: Tidy up formatting.
18472 (DONT_USE_BUILTIN_SETJMP): Remove definition.
18473 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
18474 (ineqbranchsi): Delete pattern.
18475 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
18476 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
18477 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
18478 stormy16-lib2-ucmpsi2.c.
18479
18480 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
18481
18482 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
18483 df_simulate_find_noclobber_defs as appropriate. Keep track of an
18484 extra set merge_set_noclobber, and use it to relax the final test
18485 slightly.
18486 * df.h (df_simulate_find_noclobber_defs): Declare.
18487 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
18488 conditional defs.
18489 (df_simulate_find_noclobber_defs): New function.
18490
18491 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
18492
18493 * config/i386/i386.md: Use {} around multi-line preparation statements.
18494
18495 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
18496
18497 * c-tree.h (push_init_level, pop_init_level, set_init_index)
18498 (process_init_element): New argument of type struct obstack *.
18499
18500 * c-typeck.c (push_init_level, pop_init_level, set_designator)
18501 (set_init_index, set_init_label, set_nonincremental_init)
18502 (set_nonincremental_init_from_string, find_init_member)
18503 (output_init_element, output_pending_init_elements)
18504 (process_init_element): New argument braced_init_obstack. Pass it
18505 down.
18506 (push_range_stack, add_pending_init): New argument
18507 braced_init_obstack. Use obstack allocation.
18508
18509 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
18510 braced_init_obstack. Pass it down.
18511 (c_parser_braced_init): New variables ret, braced_init_obstack.
18512 Initialize obstack, pass it down and finally free it.
18513
18514 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
18515
18516 PR middle-end/29274
18517 * tree-pass.h (pass_optimize_widening_mul): Declare.
18518 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
18519 gate_optimize_widening_mul): New static functions.
18520 (pass_optimize_widening_mul): New.
18521 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
18522 <case MULT_EXPR>: Remove support for widening multiplies.
18523 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
18524 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
18525 simplify_gen_unary rather than directly building extensions.
18526 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
18527 WIDEN_MULT_EXPR.
18528 * expmed.c (expand_widening_mult): New function.
18529 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
18530
18531 2010-04-21 Jan Hubicka <jh@suse.cz>
18532
18533 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
18534 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
18535 * lto-wpa-fixup.c: Remove.
18536 * Makefile.in (lto-wpa-fixup.o): Remove.
18537 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
18538 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
18539 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
18540
18541 2010-04-21 Jan Hubicka <jh@suse.cz>
18542
18543 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
18544 add write_optimization_summary, read_optimization_summary.
18545 (ipa_write_summaries_of_cgraph_node_set): Remove.
18546 (ipa_write_optimization_summaries): Declare.
18547 (ipa_read_optimization_summaries): Declare.
18548 * ipa-cp.c (pass_ipa_cp): Update.
18549 * ipa-reference.c (pass_ipa_reference): Update.
18550 * ipa-pure-const.c (pass_ipa_pure_const): Update.
18551 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
18552 Update.
18553 * ipa-inline.c (pass_ipa_inline): Update.
18554 * ipa.c (pass_ipa_whole_program): Update.
18555 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
18556 * passes.c (ipa_write_summaries_1): Do not test wpa.
18557 (ipa_write_optimization_summaries_1): New.
18558 (ipa_write_optimization_summaries): New.
18559 (ipa_read_summaries): Do not test ltrans.
18560 (ipa_read_optimization_summaries_1): New.
18561 (ipa_read_optimization_summaries): New.
18562
18563 2010-04-21 Jan Hubicka <jh@suse.cz>
18564
18565 * lto-cgraph.c (lto_output_node): Do not output comdat groups
18566 for boundary nodes.
18567 (output_cgraph): Do not arrange comdat groups for boundary nodes.
18568
18569 2010-04-21 Jakub Jelinek <jakub@redhat.com>
18570
18571 PR debug/40040
18572 * dwarf2out.c (add_name_and_src_coords_attributes): Add
18573 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
18574
18575 2010-04-21 Jan Hubicka <jh@suse.cz>
18576
18577 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
18578
18579 2010-04-21 Jan Hubicka <jh@suse.cz>
18580
18581 * varpool.c (decide_is_variable_needed): Variable is always needed
18582 during ltrans.
18583
18584 2010-04-21 Jan Hubicka <jh@suse.cz>
18585
18586 * opts.c (decode_options): Enable pure-const pass for whopr.
18587
18588 2010-04-21 Jan Hubicka <jh@suse.cz>
18589
18590 * cgraph.c (dump_cgraph_node): Dump also assembler name.
18591 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
18592 at WPA dumping.
18593 (cgraph_decide_inlining): Do not expect callee to be removed in all
18594 cases.
18595
18596 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
18597
18598 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
18599
18600 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
18601
18602 * config/i386/i386.md (x86_shrd): Add athlon_decode and
18603 amdfam10_decode attributes.
18604
18605 2010-04-21 Jakub Jelinek <jakub@redhat.com>
18606
18607 PR middle-end/43570
18608 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
18609 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
18610 (lower_copyprivate_clauses): Use private var in outer
18611 context instead of original var. Make sure the types
18612 are correct for VLAs.
18613
18614 2010-04-21 Richard Guenther <rguenther@suse.de>
18615
18616 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
18617 to non-pointer objects.
18618
18619 2010-04-21 Jakub Jelinek <jakub@redhat.com>
18620
18621 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
18622 last chain entry if it starts with the still current label.
18623 (add_location_or_const_value_attribute): Check that
18624 loc_list->first->next is NULL instead of comparing ->first with ->last.
18625 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
18626 to add_var_loc_to_decl.
18627
18628 * dwarf2out.c (output_call_frame_info): For dw_cie_version
18629 >= 4 add also address size and segment size fields into CIE header.
18630
18631 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
18632 long as address size is the same as sizeof (void *) and
18633 segment size is 0.
18634 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
18635 address size or segment size is unexpected, return DW_EH_PE_omit.
18636 (classify_object_over_fdes): If get_cie_encoding returned
18637 DW_EH_PE_omit, return -1.
18638 (init_object): If classify_object_over_fdes returned -1,
18639 pretend there were no FDEs at all.
18640
18641 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
18642
18643 * config/i386/i386.md (bswap<mode>2): Macroize expander from
18644 bswap{si,di}2 using SWI48 mode iterator.
18645 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
18646 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
18647 set modrm attribute of bswap insn to 0 and remove length attribute.
18648 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
18649 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
18650 set mode attribute to <MODE> and remove length attribute.
18651
18652 2010-04-20 James E. Wilson <wilson@codesourcery.com>
18653
18654 PR rtl-optimization/43520
18655 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
18656 zero available registers.
18657
18658 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18659
18660 * builtins.c (fold_builtin_cproj): Fold more cases.
18661
18662 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18663
18664 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
18665 (fold_builtin_1): Fold builtin cproj.
18666 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
18667 Use ATTR_CONST_NOTHROW_LIST.
18668
18669 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
18670
18671 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
18672 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
18673 ffsi2_no_cmove for !TARGET_CMOVE.
18674 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
18675 (ffssi2): Remove expander.
18676 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
18677 mode iterator.
18678 (ctz<mode>2): Ditto from ctz{si,di}2.
18679 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
18680 mode iterator.
18681 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
18682 mode iterator.
18683
18684 2010-04-20 Jakub Jelinek <jakub@redhat.com>
18685
18686 * dwarf2out.c (AT_linkage_name): Define.
18687 (clone_as_declaration): Handle DW_AT_linkage_name.
18688 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
18689 of DW_AT_MIPS_linkage_name.
18690 (move_linkage_attr): Likewise.
18691 (dwarf2out_finish): Likewise.
18692
18693 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
18694
18695 PR middle-end/41952
18696 * fold-const.c (fold_comparison): New folding rule.
18697
18698 2010-04-20 Anatoly Sokolov <aesok@post.ru>
18699
18700 * double-int.h (double_int_setbit): Declare.
18701 * double-int.c (double_int_setbit): New function.
18702 * rtl.h (immed_double_int_const): Declare.
18703 * emit-rtl.c (immed_double_int_const): New function.
18704 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
18705 and immed_double_int_const functions.
18706 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
18707 expand_copysign_bit): (Ditto.).
18708 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
18709 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
18710 * dojump.c (prefer_and_bit_test): (Ditto.).
18711 * expr.c (convert_modes, reduce_to_bit_field_precision,
18712 const_vector_from_tree): (Ditto.).
18713 * expmed.c (mask_rtx, lshift_value): (Ditto.).
18714
18715 2010-04-20 Jan Hubicka <jh@suse.cz>
18716
18717 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
18718 (dump_cgraph_node): Dump new flags.
18719 * cgraph.h (struct cgraph_node): Add flags
18720 reachable_from_other_partition and in_other_partition.
18721 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
18722 other partition can not be removed.
18723 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
18724 the other partition must be output; silence sanity checking on
18725 leaking functions bodies from other paritition.
18726 * lto-cgraph.c (reachable_from_other_partition_p): New function.
18727 (lto_output_node): Output new flags; do not sanity check that inline
18728 clones are output; drop lto_forced_extern_inline_p code; do not mock
18729 visibility flags at partition boundaries.
18730 (add_node_to): New function.
18731 (output_cgraph): Use it to sort functions so masters appear before
18732 clones.
18733 (input_overwrite_node): Input new flags.
18734 * passes.c (ipa_write_summaries): Do not call
18735 lto_new_extern_inline_states.
18736 * lto-section-out.c (forced_extern_inline,
18737 lto_new_extern_inline_states lto_delete_extern_inline_states,
18738 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
18739 * lto-streamer.h (lto_new_extern_inline_states,
18740 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
18741 lto_forced_extern_inline_p): Kill.
18742
18743 2010-04-20 Richard Guenther <rguenther@suse.de>
18744
18745 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
18746 from vars that can have pointers.
18747 (process_constraint): Dump useless constraints.
18748
18749 2010-04-20 Richard Guenther <rguenther@suse.de>
18750
18751 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
18752 (dump_sa_points_to_info): Remove asserts.
18753 (init_base_vars): nothing_id isn't an escape point nor does it
18754 have pointers.
18755
18756 2010-04-20 Jakub Jelinek <jakub@redhat.com>
18757
18758 * tree.h (TYPE_REF_IS_RVALUE): Define.
18759 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
18760 should_move_die_to_comdat, prune_unused_types_walk): Handle
18761 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
18762 (modified_type_die, gen_reference_type_die): Emit
18763 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
18764 if TYPE_REF_IS_RVALUE and -gdwarf-4.
18765
18766 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18767
18768 PR target/43635
18769 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
18770 calls for -fpic -m31 if they have been sibcall optimized.
18771
18772 2010-04-19 James E. Wilson <wilson@codesourcery.com>
18773
18774 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
18775 ar.lc fixed and call-used.
18776
18777 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
18778
18779 2010-04-19 Jan Hubicka <jh@suse.cz>
18780
18781 * opts.c (decode_options): Disable whpr incompatible passes.
18782 * lto/lto.c (lto_1_to_1_map): Skip clones.
18783 (read_cgraph_and_symbols): Do not mark everything as needed.
18784 (do_whole_program_analysis): Do map only after optimizing;
18785 set proper cgraph_state; use passmanager.
18786
18787 2010-04-19 DJ Delorie <dj@redhat.com>
18788
18789 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
18790 POINTER_PLUS_EXPR and fix them.
18791
18792 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
18793
18794 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
18795 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
18796 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
18797 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
18798 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
18799 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
18800 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
18801 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
18802 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
18803 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
18804 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
18805
18806 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
18807
18808 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
18809 (check_cond_move_block): Likewise.
18810 (cond_move_process_if_block): Likewise.
18811 (noce_find_if_block): Improve formatting.
18812 (find_if_header): Pass 0 to memset and tweak conditions.
18813 (cond_exec_find_if_block): Fix long lines and tweak conditions.
18814
18815 2010-04-19 Jakub Jelinek <jakub@redhat.com>
18816
18817 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
18818 for -gdwarf-4.
18819
18820 PR middle-end/43337
18821 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
18822 with non-local decl doesn't need chain.
18823
18824 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
18825
18826 * ira-color.c (allocno_reload_assign): Avoid accumulating
18827 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
18828
18829 2010-04-19 Martin Jambor <mjambor@suse.cz>
18830
18831 * gimple.h (create_tmp_reg): Declare.
18832 * gimplify.c (create_tmp_reg): New function.
18833 (gimplify_return_expr): Use create_tmp_reg.
18834 (gimplify_omp_atomic): Likewise.
18835 (gimple_regimplify_operands): Likewise.
18836 * tree-dfa.c (make_rename_temp): Likewise.
18837 * tree-predcom.c (predcom_tmp_var): Likewise.
18838 (reassociate_to_the_same_stmt): Likewise.
18839 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
18840 (get_replaced_param_substitute): Likewise.
18841 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
18842 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
18843 * tree-ssa-pre.c (get_representative_for): Likewise.
18844 (create_expression_by_pieces): Likewise.
18845 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
18846 (create_tailcall_accumulator): Likewise.
18847
18848 2010-04-19 Martin Jambor <mjambor@suse.cz>
18849
18850 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
18851 new_stmt.
18852 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
18853
18854 2010-04-19 Richard Guenther <rguenther@suse.de>
18855
18856 PR tree-optimization/43796
18857 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
18858 from SCEV in the lattice.
18859 (vrp_visit_phi_node): Dump change.
18860
18861 2010-04-19 Richard Guenther <rguenther@suse.de>
18862
18863 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
18864 * configure: Re-generated.
18865
18866 2010-04-19 Richard Guenther <rguenther@suse.de>
18867
18868 PR tree-optimization/43783
18869 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
18870 constant ARRAY_REF operands two and three if possible.
18871
18872 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
18873
18874 PR target/43766
18875 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
18876
18877 2010-04-19 Jie Zhang <jie@codesourcery.com>
18878
18879 PR target/43662
18880 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
18881
18882 2010-04-19 Ira Rosen <irar@il.ibm.com>
18883
18884 PR tree-optimization/37027
18885 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
18886 and macro to access it.
18887 (vectorizable_reduction): Add argument.
18888 (vect_get_slp_defs): Likewise.
18889 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
18890 statements for possible use in SLP.
18891 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
18892 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
18893 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
18894 add new argument.
18895 (vectorizable_reduction): Likewise.
18896 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
18897 vect_get_slp_defs.
18898 (vectorizable_type_demotion, vectorizable_type_promotion,
18899 vectorizable_store): Likewise.
18900 (vect_analyze_stmt): Update call to vectorizable_reduction.
18901 (vect_transform_stmt): Likewise.
18902 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
18903 (vect_build_slp_tree): Fix indentation. Check that there are no loads
18904 from different interleaving chains in same node.
18905 (vect_slp_rearrange_stmts): New function.
18906 (vect_supported_load_permutation_p): Allow load permutations for
18907 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
18908 inside SLP nodes if necessary.
18909 (vect_analyze_slp_instance): Handle reductions.
18910 (vect_analyze_slp): Try to build SLP instances originating from groups
18911 of reductions.
18912 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
18913 (vect_get_constant_vectors): Create initial vectors for reductions
18914 according to reduction code. Add new argument.
18915 (vect_get_slp_defs): Add new argument, pass it to
18916 vect_get_constant_vectors.
18917 (vect_schedule_slp_instance): Remove SLP tree root statements.
18918
18919 2010-04-19 Jakub Jelinek <jakub@redhat.com>
18920
18921 * tree.h (ENUM_IS_SCOPED): Define.
18922 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
18923 for ENUM_IS_SCOPED enums.
18924
18925 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
18926
18927 * fold-const.c (fold_comparison): Use ssizetype.
18928 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
18929 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
18930 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
18931 * tree-object-size.c (compute_object_sizes): Use size_type_node.
18932
18933 * tree.h (initialize_sizetypes): Remove parameter.
18934 (build_common_tree_nodes): Remove second parameter.
18935 * stor-layout.c (initialize_sizetypes): Remove parameter.
18936 Always create an unsigned type.
18937 (set_sizetype): Assert that the passed type is unsigned and simplify.
18938 * tree.c (build_common_tree_nodes): Remove second parameter.
18939 Adjust call to initialize_sizetypes.
18940 * c-decl.c (c_init_decl_processing): Remove second argument in call to
18941 build_common_tree_nodes.
18942
18943 2010-04-18 Matthias Klose <doko@ubuntu.com>
18944
18945 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
18946
18947 2010-04-18 Ira Rosen <irar@il.ibm.com>
18948
18949 PR tree-optimization/43771
18950 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
18951 load permutation doesn't have gaps.
18952
18953 2010-04-18 Jan Hubicka <jh@suse.cz>
18954
18955 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
18956 (sse_prologue_save_insn expander): Use new pattern.
18957 (sse_prologue_save_insn1): New pattern and splitter.
18958 (sse_prologue_save_insn): Update to deal also with 64bit aligned
18959 blocks.
18960 * i386.c (setup_incoming_varargs_64): Do not compute jump
18961 destination here.
18962 (ix86_gimplify_va_arg): Update alignment needed.
18963 (ix86_local_alignment): Do not align all local arrays to 128bit.
18964
18965 2010-04-17 Jan Hubicka <jh@suse.cz>
18966
18967 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
18968
18969 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
18970
18971 * arm.md (negdi2): Remove redundant code to force values into a
18972 register.
18973
18974 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
18975
18976 * arm/bpabi.S: Add EABI alignment attributes to objects.
18977 * arm/bpabi-v6m.S: Likewise.
18978 * arm/crti.asm: Likewise.
18979 * arm/crtn.asm: Likewise.
18980 * arm/lib1funcs.asm: Likewise.
18981 * arm/libunwind.S: Likewise.
18982
18983 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
18984
18985 * arm-protos.h (tune_params): New structure.
18986 * arm.c (current_tune): New variable.
18987 (arm_constant_limit): Delete.
18988 (struct processors): Add pointer to the tune parameters.
18989 (arm_slowmul_tune): New tuning option.
18990 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
18991 (all_cores): Adjust to pick up the tuning model.
18992 (arm_constant_limit): New function.
18993 (arm_override_options): Select the appropriate tuning model. Delete
18994 initialization of arm_const_limit.
18995 (arm_split_constant): Use the new constant-limit model.
18996 (arm_rtx_costs): Pick up the current tuning model.
18997 * arm.md (is_strongarm, is_xscale): Delete.
18998 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
18999 for Xscale variant architectures.
19000 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
19001
19002 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19003
19004 * config/arm/arm.c (arm_gen_constant): Remove unused variable
19005 can_shift.
19006 (arm_rtx_costs_1): Remove unused variable extra_cost.
19007 (arm_unwind_emit_set): Use variable offset.
19008 (thumb1_output_casesi): Remove unused variable flags.
19009
19010 2010-04-16 Jeff Law <law@redhat.com>
19011
19012 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
19013 needing assignment rather than doing a two-phase assignment. Remove
19014 unused variable 'm'.
19015
19016 2010-04-16 Jakub Jelinek <jakub@redhat.com>
19017
19018 PR bootstrap/43767
19019 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
19020
19021 2010-04-16 Doug Kwan <dougkwan@google.com>
19022
19023 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
19024 (next_operand_entry_id): New static variable.
19025 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
19026 (add_to_ops_vec): Assigned unique ID to operand entry.
19027 (struct oecount_s): New field ID.
19028 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
19029 (undistribute_ops_list): Assign unique IDs to oecounts.
19030 (init_reassoc): reset next_operand_entry_id.
19031
19032 2010-04-16 Doug Kwan <dougkwan@google.com>
19033
19034 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
19035 missing left parenthesis.
19036
19037 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
19038
19039 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
19040 *btdi_rex64 using SWI48 mode iterator.
19041 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
19042 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
19043 *jcc_btdi_mask_rex64.
19044
19045 2010-04-16 Anatoly Sokolov <aesok@post.ru>
19046
19047 * double-int.h (tree_to_double_int): Convert to macro.
19048 * double-int.c (tree_to_double_int): Remove.
19049
19050 2010-04-16 Jakub Jelinek <jakub@redhat.com>
19051
19052 PR debug/43762
19053 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
19054 with want_address 2 and in case a single element list might be
19055 possible, call it again with want_address 0.
19056
19057 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
19058
19059 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
19060 case 'W' print operands for HI mode.
19061 * config/h8300/h8300.h (Y0, Y2) : New constraints.
19062 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
19063 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
19064 * config/h8300/predicate.md (bit_register_indirect_operand): New.
19065
19066 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
19067
19068 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
19069 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
19070 #xx:3 and #xx:4 mode.
19071
19072 * config/h8300/h8300.md (inverted load with HImode dest): Add
19073 support for H8300SX.
19074
19075 * config/h8300/predicate.md (bit_operand): Allow immediate values that
19076 satisfy 'U' constraint.
19077
19078 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19079
19080 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
19081 * configure: Regenerate.
19082 * config.in: Regenerate.
19083 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
19084 works.
19085
19086 2010-04-16 Richard Guenther <rguenther@suse.de>
19087
19088 * tree.h (struct tree_decl_minimal): Move pt_uid ...
19089 (struct tree_decl_common): ... here.
19090 (DECL_PT_UID): Adjust.
19091 (SET_DECL_PT_UID): Likewise.
19092 (DECL_PT_UID_SET_P): Likewise.
19093
19094 2010-04-16 Richard Guenther <rguenther@suse.de>
19095
19096 PR tree-optimization/43572
19097 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
19098 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
19099 * tree-flow.h (is_call_clobbered): Remove.
19100 * tree-flow-inline.h (is_call_clobbered): Likewise.
19101 * tree-dfa.c (dump_variable): Do not dump call clobber state.
19102 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
19103 (execute_return_slot_opt): Adjust.
19104 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
19105 check for call clobbered vars here.
19106 (find_tail_calls): Move tailcall verification to the
19107 proper place.
19108
19109 2010-04-16 Diego Novillo <dnovillo@google.com>
19110
19111 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
19112
19113 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
19114
19115 PR target/40603
19116 * config/arm/arm.md (cbranchqi4): New pattern.
19117 * config/arm/predicates.md (const0_operand,
19118 cbranchqi4_comparison_operator): New predicates.
19119
19120 2010-04-16 Richard Guenther <rguenther@suse.de>
19121
19122 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
19123 (dump_gimple_stmt): Likewise.
19124
19125 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
19126
19127 * recog.h (struct recog_data): New field is_operator.
19128 (struct insn_operand_data): New field is_operator.
19129 * recog.c (extract_insn): Set recog_data.is_operator.
19130 * genoutput.c (output_operand_data): Emit code to set the
19131 is_operator field.
19132 * reload.c (find_reloads): Use it rather than testing for an
19133 empty constraint string.
19134
19135 PR target/41514
19136 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
19137 If the previous insn is a cbranchsi4_insn with the same arguments,
19138 omit the compare instruction.
19139
19140 * config/arm/arm.md (addsi3_cbranch): If destination is a high
19141 register, inputs must be low registers and we need a low register
19142 scratch. Handle alternative 2 like alternative 3.
19143
19144 2010-04-16 Jakub Jelinek <jakub@redhat.com>
19145
19146 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
19147 don't call get_addr on both. If one expression is a VALUE and
19148 the other a REG, check VALUE's locs if the REG isn't among them.
19149
19150 2010-04-16 Christian Bruel <christian.bruel@st.com>
19151
19152 * config/sh/sh.h (sh_frame_pointer_required): New function.
19153 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
19154 (flag_omit_frame_pointer) Set.
19155 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
19156 (rounded_frame_size): Adjust size with outgoing_args_size.
19157 (sh_set_return_address): Must return from stack pointer.
19158 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
19159 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
19160 (ACCUMULATE_OUTGOING_ARGS): Define.
19161 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
19162 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
19163
19164 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
19165
19166 PR target/43471
19167 * config/sh/sh.c (sh_legitimize_reload_address): Use
19168 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
19169 Remove a unneeded check for offset_base.
19170
19171 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
19172
19173 * configure: Regenerated.
19174
19175 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19176
19177 * config/s390/s390.c (s390_call_save_register_used): Switch back
19178 to HARD_REGNO_NREGS.
19179
19180 2010-04-15 Richard Guenther <rguenther@suse.de>
19181
19182 * alias.c (alias_set_subset_of): Handle alias-set zero
19183 child properly.
19184
19185 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
19186 Julian Brown <julian@codesourcery.com>
19187
19188 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
19189 alternatives according to use of high and low regs.
19190 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
19191 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
19192 optimizing for size on Thumb-2.
19193
19194 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
19195
19196 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
19197
19198 2010-04-15 Richard Guenther <rguenther@suse.de>
19199
19200 * tree-ssa-structalias.c (struct variable_info): Add
19201 is_fn_info flag.
19202 (new_var_info): Initialize it.
19203 (dump_constraints): Support printing last added constraints.
19204 (debug_constraints): Adjust.
19205 (dump_constraint_graph): Likewise.
19206 (make_heapvar_for): Check for NULL cfun.
19207 (get_function_part_constraint): New function.
19208 (get_fi_for_callee): Likewise.
19209 (find_func_aliases): Properly implement IPA PTA constraints.
19210 (process_ipa_clobber): New function.
19211 (find_func_clobbers): Likewise.
19212 (insert_into_field_list_sorted): Remove.
19213 (create_function_info_for): Properly allocate vars for IPA mode.
19214 Do not use insert_into_field_list_sorted.
19215 (create_variable_info_for): Properly generate constraints for
19216 global vars in IPA mode.
19217 (dump_solution_for_var): Always dump the solution.
19218 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
19219 (find_what_var_points_to): Adjust.
19220 (pt_solution_set): Change.
19221 (pt_solution_ior_into): New function.
19222 (pt_solution_empty_p): Export.
19223 (pt_solution_includes_global): Adjust.
19224 (pt_solution_includes_1): Likewise.
19225 (pt_solutions_intersect_1): Likewise.
19226 (dump_sa_points_to_info): Check some invariants.
19227 (solve_constraints): Move constraint dumping ...
19228 (compute_points_to_sets): ... here.
19229 (ipa_pta_execute): ... and here.
19230 (compute_may_aliases): Do not re-compute points-to info
19231 locally if IPA info is available.
19232 (ipa_escaped_pt): New global var.
19233 (ipa_pta_execute): Properly implement IPA PTA.
19234 * tree-into-ssa.c (dump_decl_set): Support dumping
19235 decls not in referenced-vars.
19236 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
19237 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
19238 (dump_points_to_solution): Likewise.
19239 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
19240 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
19241 (remap_gimple_stmt): Reset call clobber/use information if necessary.
19242 (copy_decl_to_var): Copy DECL_PT_UID.
19243 (copy_result_decl_to_var): Likewise.
19244 * tree.c (make_node_stat): Initialize DECL_PT_UID.
19245 (copy_node_stat): Copy it.
19246 * tree.h (DECL_PT_UID): New macro.
19247 (SET_DECL_PT_UID): Likewise.
19248 (DECL_PT_UID_SET_P): Likewise.
19249 (struct tree_decl_minimal): Add pt_uid member.
19250 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
19251 (pt_solution_empty_p): Declare.
19252 (pt_solution_set): Adjust.
19253 (ipa_escaped_pt): Declare.
19254 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
19255 * gimple-pretty-print.c (pp_points_to_solution): New function.
19256 (dump_gimple_call): Dump call clobber/use information.
19257 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
19258 * tree-pass.h (TDF_ALIAS): New dump option.
19259 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
19260 * doc/invoke.texi (-fipa-pta): Update documentation.
19261
19262 2010-04-15 Richard Guenther <rguenther@suse.de>
19263
19264 * Makefile.in (OBJS-common): Add gimple-fold.o.
19265 (gimple-fold.o): New rule.
19266 * tree.h (maybe_fold_offset_to_reference,
19267 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
19268 prototypes ...
19269 * gimple.h: ... here.
19270 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
19271 may_propagate_address_into_dereference): Move prototypes ...
19272 * gimple.h: ... here.
19273 * tree-ssa-ccp.c (get_symbol_constant_value,
19274 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
19275 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
19276 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
19277 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
19278 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
19279 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
19280 gimplify_and_update_call_from_tree): Move ...
19281 * gimple-fold.c: ... here. New file.
19282 (ccp_fold_builtin): Rename to ...
19283 (gimple_fold_builtin): ... this.
19284 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
19285
19286 2010-04-15 Richard Guenther <rguenther@suse.de>
19287
19288 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
19289 fit_double_type, force_fit_type_double, add_double_with_sign,
19290 neg_double, mul_double_with_sign, lshift_double, rshift_double,
19291 lrotate_double, rrotate_double, div_and_round_double): Move ...
19292 * double-int.c: ... here.
19293 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
19294 add_double, neg_double, mul_double_with_sign, mul_double,
19295 lshift_double, rshift_double, lrotate_double, rrotate_double,
19296 div_and_round_double): Move prototypes ...
19297 * double-int.h: ... here.
19298
19299 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
19300
19301 PR target/43742
19302 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
19303 matching constraints to ensure inputs match the output.
19304
19305 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
19306
19307 PR target/43742
19308 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
19309 in an input-only operand.
19310
19311 2010-04-15 Anatoly Sokolov <aesok@post.ru>
19312
19313 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
19314 (double_int_not, double_int_lshift, double_int_rshift): Declare.
19315 (double_int_negative_p): Convert to static inline function.
19316 * double-int.c (double_int_lshift, double_int_lshift): New functions.
19317 (double_int_negative_p): Remove.
19318 * tree.h (lshift_double, rshift_double):
19319 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
19320 * fold-const.c (fold_convert_const_int_from_real,
19321 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
19322 (lshift_double): Change type of arith argument to bool.
19323 (rshift_double): Change type of arith argument to bool. Correct
19324 comment.
19325 * expmed.c (mask_rtx, lshift_value): (Ditto.).
19326
19327 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
19328
19329 PR target/21803
19330 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
19331 at the start and end of the then/else blocks, and omit them from the
19332 conversion.
19333 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
19334 argument; all callers changed. Pass zero to old_insns_match_p instead.
19335 (flow_find_head_matching_sequence): New function.
19336 (old_insns_match_p): Check REG_EH_REGION notes for calls.
19337 * basic-block.h (flow_find_cross_jump,
19338 flow_find_head_matching_sequence): Declare functions.
19339
19340 2010-04-14 Jason Merrill <jason@redhat.com>
19341
19342 PR c++/36625
19343 * c-common.c (attribute_takes_identifier_p): New fn.
19344 * c-common.h: Declare it.
19345
19346 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
19347
19348 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
19349 splitter condition.
19350 (*udivmod<mode>4): Ditto.
19351
19352 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
19353
19354 * config/i386/i386.md (maxmin_int): Rename code attribute from
19355 maxminiprefix and update all users.
19356 (maxmin_float): Ditto from maxminfprefix.
19357 (logic): Ditto from logicprefix.
19358 (absneg_mnemonic): Ditto from absnegprefix.
19359 * config/i386/mmx.md: Update all users of maxminiprefix,
19360 maxminfprefix and logicprefix for rename.
19361 * config/i386/sse.md: Ditto.
19362 * config/i386/sync.md (sync_<code><mode>): Update for
19363 logicprefix rename.
19364
19365 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
19366
19367 PR 42966
19368 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
19369 warnings converted to errors.
19370
19371 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
19372
19373 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
19374 used insn_type variable.
19375 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
19376 to avoid set-but-not-used warning.
19377
19378 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
19379
19380 * df-core.c (df_ref_debug): Change format string placeholder
19381 from 0x%x to %#x.
19382 * dwarf2asm.c (dw2_asm_output_data_raw,
19383 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
19384 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
19385 * dwarf2out.c (output_cfi, output_cfi_directive,
19386 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
19387 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
19388 Ditto.
19389 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
19390 * print-rtl.c (print_rtx): Ditto.
19391
19392 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
19393
19394 PR middle-end/42694
19395 * builtins.c (expand_builtin_pow_root): New function to expand pow
19396 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
19397 series of sqrt and cbrt calls under -ffast-math.
19398 (expand_builtin_pow): Call it.
19399
19400 2010-04-14 Michael Matz <matz@suse.de>
19401
19402 PR tree-optimization/42963
19403 * tree-cfg.c (touched_switch_bbs): New static variable.
19404 (group_case_labels_stmt): New function broken out from ...
19405 (group_case_labels): ... here, use the above.
19406 (start_recording_case_labels): Allocate touched_switch_bbs.
19407 (end_recording_case_labels): Deallocate it, call
19408 group_case_labels_stmt.
19409 (gimple_redirect_edge_and_branch): Remember index of affected BB.
19410
19411 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
19412
19413 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
19414 from insn template.
19415
19416 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
19417
19418 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
19419
19420 2010-04-13 Jan Hubicka <jh@suse.cz>
19421
19422 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
19423 of optimized out static functions.
19424 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
19425 cost computation. Also sanity check for overflows.
19426 (update_caller_keys): Update cgraph_edge_badness call; properly
19427 update fibheap and sanity check that it is up to date.
19428 (add_new_edges_to_heap): Update cgraph_edge_badness.
19429 (cgraph_decide_inlining_of_small_function): Likewise;
19430 add sanity checking that badness in heap is up to date;
19431 improve dumping of reason; Update badness of calls to the
19432 offline copy of function currently inlined; dump badness
19433 of functions not inlined because of unit growth limits.
19434
19435 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
19436
19437 PR middle-end/32628
19438 * c-common.c (pointer_int_sum): Disregard overflow that occured only
19439 because of sign-extension change when converting to sizetype here...
19440 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
19441
19442 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
19443 the folding to constants. Remove redundant final conversion.
19444 (fold_binary) <associate>: Do not associate if the re-association of
19445 constants alone overflows.
19446 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
19447 to the end of the list.
19448 (multiple_of_p) <COND_EXPR>: New case.
19449
19450 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
19451
19452 * opt-functions.awk (opt_sanitized_name): New.
19453 (opt_enum): New.
19454 * optc-gen.awk: Use it
19455 * opth-gen.awk: Use it.
19456
19457 2010-04-13 Martin Jambor <mjambor@suse.cz>
19458
19459 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
19460 (sra_modify_assign): Delete stmts loading dead data even if racc has no
19461 children. Call replace_uses_with_default_def_ssa_name to handle
19462 SSA_NAES on lhs.
19463
19464 2010-04-13 Michael Matz <matz@suse.de>
19465
19466 PR middle-end/43730
19467 * builtins.c (expand_builtin_interclass_mathfn): Also create
19468 a register if the predicate doesn't match.
19469
19470 2010-04-13 Diego Novillo <dnovillo@google.com>
19471
19472 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
19473 * c-pch.c: Include timevar.h.
19474 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
19475 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
19476 * ggc-common.c: Include timevar.h.
19477 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
19478 * timevar.def (TV_PCH_SAVE): Define.
19479 (TV_PCH_CPP_SAVE): Define.
19480 (TV_PCH_PTR_REALLOC): Define.
19481 (TV_PCH_PTR_SORT): Define.
19482 (TV_PCH_RESTORE): Define.
19483 (TV_PCH_CPP_RESTORE): Define.
19484
19485 2010-04-13 Michael Matz <matz@suse.de>
19486
19487 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
19488 into MINUS_EXPRs.
19489 (can_reassociate_p): New function.
19490 (break_up_subtract_bb, reassociate_bb): Use it.
19491
19492 2010-04-13 Richard Guenther <rguenther@suse.de>
19493
19494 PR bootstrap/43737
19495 * builtins.c (c_readstr): Fix assert.
19496
19497 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
19498
19499 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
19500 when generating cltd insn.
19501
19502 (*ashl<mode>3_1): Remove special handling for register operand 2.
19503 (*ashlsi3_1_zext): Ditto.
19504 (*ashlhi3_1): Ditto.
19505 (*ashlhi3_1_lea): Ditto.
19506 (*ashlqi3_1): Ditto.
19507 (*ashlqi3_1_lea): Ditto.
19508 (*<shiftrt_insn><mode>3_1): Ditto.
19509 (*<shiftrt_insn>si3_1_zext): Ditto.
19510 (*<shiftrt_insn>qi3_1_slp): Ditto.
19511 (*<rotate_insn><mode>3_1): Ditto.
19512 (*<rotate_insn>si3_1_zext): Ditto.
19513 (*<rotate_insn>qi3_1_slp): Ditto.
19514
19515 2010-04-13 Richard Guenther <rguenther@suse.de>
19516
19517 * tree-ssa-structalias.c (callused_id): Remove.
19518 (call_stmt_vars): New.
19519 (get_call_vi): Likewise.
19520 (lookup_call_use_vi): Likewise.
19521 (lookup_call_clobber_vi): Likewise.
19522 (get_call_use_vi): Likewise.
19523 (get_call_clobber_vi): Likewise.
19524 (make_transitive_closure_constraints): Likewise.
19525 (handle_const_call): Adjust to do per-call call-used handling.
19526 (handle_pure_call): Likewise.
19527 (find_what_var_points_to): Remove general callused handling.
19528 (init_base_vars): Likewise.
19529 (init_alias_vars): Initialize call_stmt_vars.
19530 (compute_points_to_sets): Process call-used and call-clobbered
19531 vars for call statements.
19532 (delete_points_to_sets): Free call_stmt_vars.
19533
19534 2010-04-13 Richard Guenther <rguenther@suse.de>
19535
19536 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
19537 Only add RW dependence for dependence distance zero.
19538 Adjust maximal vectorization factor according to dependences.
19539 Move alignment handling ...
19540 (vect_find_same_alignment_drs): ... here. New function.
19541 (vect_analyze_data_ref_dependences): Adjust.
19542 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
19543 (vect_analyze_data_refs): Adjust minimal vectorization factor
19544 according to data references.
19545 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
19546 dependences before determining the vectorization factor.
19547 Analyze alignment after determining the vectorization factor.
19548 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
19549 dependences before alignment.
19550 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
19551 Adjust prototype.
19552 (vect_analyze_data_refs): Likewise.
19553 (MAX_VECTORIZATION_FACTOR): New define.
19554
19555 2010-04-13 Duncan Sands <baldrick@free.fr>
19556
19557 * except.h (lang_eh_type_covers): Remove.
19558 * except.c (lang_eh_type_covers): Likewise.
19559
19560 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19561 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19562
19563 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
19564 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
19565 UNITS_PER_LONG where it is ABI relevant.
19566 (s390_return_addr_rtx): Likewise.
19567 (s390_back_chain_rtx): Likewise.
19568 (s390_frame_area): Likewise.
19569 (s390_frame_info): Likewise.
19570 (s390_initial_elimination_offset): Likewise.
19571 (save_gprs): Likewise.
19572 (s390_emit_prologue): Likewise.
19573 (s390_emit_epilogue): Likewise.
19574 (s390_function_arg_advance): Likewise.
19575 (s390_function_arg): Likewise.
19576 (s390_va_start): Likewise.
19577 (s390_gimplify_va_arg): Likewise.
19578 (s390_function_profiler): Likewise.
19579 (s390_optimize_prologue): Likewise.
19580 (s390_rtx_costs): Likewise.
19581 (s390_secondary_reload): Likewise.
19582 (s390_promote_function_mode): Likewise.
19583 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
19584 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
19585 registers available.
19586 (s390_unwind_word_mode): New function.
19587 (s390_function_value): Split 64 bit values into register pair if
19588 used as return value.
19589 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
19590 function call parameters. Handle parallels.
19591 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
19592 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
19593 (DWARF_CIE_DATA_ALIGNMENT): New macro.
19594 (s390_expand_setmem): Remove unused variable src_addr.
19595 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
19596 deal with 64 bit registers.
19597 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
19598 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
19599 (UNITS_PER_LONG): New macro.
19600 * libjava/include/s390-signal.h: Define extended ucontext
19601 structure containing the upper halfs of the 64 bit registers.
19602
19603 2010-04-13 Simon Baldwin <simonb@google.com>
19604
19605 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
19606
19607 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
19608
19609 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
19610 rvalue on the RHS if the LHS is of a non-renamable type.
19611 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
19612
19613 2010-04-13 Matthias Klose <doko@ubuntu.com>
19614
19615 * gcc.c (cc1_options): Handle -iplugindir before processing
19616 the cc1 spec. Only add -iplugindir once.
19617 (cpp_unique_options): Add -iplugindir option if -fplugin* options
19618 found.
19619 * common.opt (iplugindir): Remove `Separate' property, initialize.
19620 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
19621 option.
19622 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
19623 (distclean): Remove plugin dir.
19624 * doc/invoke.texi: Document -iplugindir.
19625
19626 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
19627
19628 * doc/plugins.texi (Loading Plugins): Document short
19629 -fplugin=foo option.
19630 (Plugin API): Mention default_plugin_dir_name function.
19631
19632 * gcc.c (find_file_spec_function): Add new declaration.
19633 (static_spec_func): Use it for "find-file".
19634 (find_file_spec_function): Add new function.
19635 (cc1_options): Add -iplugindir option if -fplugin* options found.
19636
19637 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
19638
19639 * plugin.c (add_new_plugin): Updated comment, and handle short
19640 plugin name.
19641 (default_plugin_dir_name): Added new function.
19642
19643 * common.opt (iplugindir): New option to set the plugin directory.
19644
19645 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
19646
19647 * config/i386/i386.md (any_rotate): New code iterator.
19648 (rotate_insn): New code attribute.
19649 (rotate): Ditto.
19650 (SWIM124): New mode iterator.
19651 (<rotate_insn>ti3): New expander.
19652 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
19653 any_rotate code iterator.
19654 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
19655 using any_rotate code iterator and SWIM124 mode iterator.
19656 (ix86_rotlti3): New insn_and_split pattern.
19657 (ix86_rotrti3): Ditto.
19658 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
19659 ix86_rotl{di,ti}3 patterns.
19660 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
19661 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
19662 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
19663 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
19664 code iterator and SWI mode iterator.
19665 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
19666 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
19667 code iterator.
19668 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
19669 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
19670 (bswap rotatert splitter): Add splitter.
19671 (bswap splitter): Macroize splitter using any_rotate code iterator.
19672 Add insn predicate to split only for TARGET_USE_XCHGB or when
19673 optimizing function for size.
19674
19675 2010-04-12 Steve Ellcey <sje@cup.hp.com>
19676
19677 * config/pa/pa.c (emit_move_sequence): Remove use of
19678 deleted variable flag_argument_noalias.
19679
19680 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19681
19682 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
19683 configurations.
19684 Add to unsupported targets list.
19685 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
19686 sparc*-sun-solaris2.[567]* from target lists.
19687 * configure: Regenerate.
19688 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
19689 removal.
19690 Remove Solaris 7 patch references.
19691 (Specific, sparc-sun-solaris2.7): Removed.
19692 (sparc-sun-solaris2*): Update Solaris 7 example.
19693 (sparc64-*-solaris2*): Likewise.
19694
19695 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19696
19697 * config.build (alpha*-dec-osf4*): Remove.
19698 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
19699 of obsolete configurations.
19700 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
19701 support.
19702 * config/alpha/t-osf4: Renamed to ...
19703 * config/alpha/t-osf5: ... this.
19704 * config/alpha/osf.h: Renamed to ...
19705 * config/alpha/osf5.h: ... this.
19706 Merged old osf5.h contents.
19707 Update comments.
19708 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
19709 (EXTRA_SPECS): Removed.
19710 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
19711 reflect removal of Tru64 UNIX V4.0/V5.0 support.
19712 Document that.
19713
19714 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19715
19716 * doc/contrib.texi (Contributors, Rainer Orth): Update.
19717
19718 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
19719
19720 PR/43702
19721 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
19722 __thiscall convention.
19723
19724 2010-04-12 Steve Ellcey <sje@cup.hp.com>
19725
19726 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
19727 orig_base.
19728 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
19729
19730 2010-04-12 Steve Ellcey <sje@cup.hp.com>
19731
19732 * function.c (assign_parms_initialize_all): Add unused attribute
19733 to fntype.
19734
19735 2010-04-12 Richard Guenther <rguenther@suse.de>
19736
19737 * gsstruct.def (GSS_CALL): New.
19738 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
19739 * gimple.h: Include tree-ssa-alias.h.
19740 (struct gimple_statement_call): New.
19741 (union gimple_statement_struct_d): Add gimple_call member.
19742 (gimple_call_reset_alias_info): Declare.
19743 (gimple_call_use_set): New function.
19744 (gimple_call_clobber_set): Likewise.
19745 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
19746 * gimple.c (gimple_call_reset_alias_info): New function.
19747 (gimple_build_call_1): Call it.
19748 * lto-streamer-in.c (input_gimple_stmt): Likewise.
19749 * tree-inline.c (remap_gimple_stmt): Likewise.
19750 (expand_call_inline): Remove callused handling.
19751 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
19752 * tree-dfa.c (dump_variable): Likewise.
19753 * tree-parloops.c (parallelize_loops): Likewise.
19754 * tree-ssa.c (init_tree_ssa): Likewise.
19755 (delete_tree_ssa): Likewise.
19756 * tree-flow-inline.h (is_call_used): Remove.
19757 * tree-flow.h (struct gimple_df): Remove callused member.
19758 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
19759 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
19760 (ref_maybe_used_by_call_p_1): Simplify.
19761 (call_may_clobber_ref_p_1): Likewise.
19762 * tree-ssa-structalias.c (compute_points_to_sets): Set
19763 the call stmt used and clobbered sets.
19764 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
19765 (find_tail_calls): Verify the tail call.
19766
19767 2010-04-12 Richard Guenther <rguenther@suse.de>
19768
19769 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
19770 single-iteration always-inline inlining.
19771 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
19772 (cgraph_decide_inlining): Do not handle always-inline specially.
19773 (try_inline): Remove always-inline cycle detection special case.
19774 Do not recurse on always-inlines.
19775 (cgraph_early_inlining): Do not iterate if not optimizing.
19776 (cgraph_gate_early_inlining): remove.
19777 (pass_early_inline): Run unconditionally.
19778 (gate_cgraph_decide_inlining): New function.
19779 (pass_ipa_inline): Use it. Do not run the IPA inliner if
19780 not inlining or optimizing.
19781 (cgraph_decide_inlining_of_small_functions): Also consider
19782 always-inline functions.
19783 (cgraph_default_inline_p): Return true for nodes which should
19784 disregard inline limits.
19785 (estimate_function_body_sizes): Assume zero size and time for
19786 nodes which are marked as disregarding inline limits.
19787 (cgraph_decide_recursive_inlining): Do not perform recursive
19788 inlining on always-inline nodes.
19789
19790 2010-04-12 Jakub Jelinek <jakub@redhat.com>
19791
19792 PR bootstrap/43699
19793 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
19794 for exprs satisfying handled_component_p.
19795
19796 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
19797
19798 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
19799 non-constant aggregate elements.
19800
19801 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
19802 is a real initialization.
19803
19804 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
19805
19806 PR c/36774
19807 * c-decl.c (start_function): Move forward check for nested function.
19808
19809 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
19810
19811 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
19812 * config/sh/sh.c: Include reload.h.
19813 (sh_legitimize_reload_address): New.
19814 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
19815 sh_legitimize_reload_address.
19816
19817 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
19818
19819 * config/sh/sh.md (*movqi_pop): New insn pattern.
19820 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
19821
19822 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
19823
19824 * config/i386/i386.md (any_shiftrt): New code iterator.
19825 (shiftrt_insn): New code attribute.
19826 (shiftrt): Ditto.
19827 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
19828 using any_shiftrt code iterator.
19829 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
19830 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
19831 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
19832 pattern from corresponding peephole2 patterns.
19833 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
19834 using any_shiftrt code iterator.
19835 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
19836 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
19837 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
19838 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
19839 *{ashr,lshr}<mode>3_cmp_zext.
19840 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
19841
19842 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
19843
19844 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
19845 scratch register.
19846 (*lshr<mode>3_cconly): Ditto.
19847
19848 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
19849
19850 * config/i386/i386.md (lshr<mode>3): Macroize expander from
19851 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
19852 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
19853 pattern from *lshr{di,ti}3_1 and corresponding splitters using
19854 DWI mode iterator.
19855 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
19856 from corresponding peephole2 patterns.
19857 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
19858 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
19859 and *lshrdi3_1_rex64 using SWI mode iterator.
19860 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
19861 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
19862 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
19863 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
19864 and *lshrdi3_cmp_rex64 using SWI mode iterator.
19865 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
19866 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
19867 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
19868 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
19869 SWI mode iterator.
19870
19871 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
19872
19873 * config/i386/i386.md (ashr<mode>3): Macroize expander from
19874 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
19875 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
19876 pattern from *ashr{di,ti}3_1 and corresponding splitters using
19877 DWI mode iterator.
19878 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
19879 from corresponding peephole2 patterns.
19880 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
19881 (ashrsi3_cvt): Rename from ashrsi3_31.
19882 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
19883 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
19884 and x86_64_shift_adj_3 using SWI48 mode iterator.
19885 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
19886 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
19887 and *ashrdi3_1_rex64 using SWI mode iterator.
19888 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
19889 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
19890 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
19891 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
19892 and *ashrdi3_cmp_rex64 using SWI mode iterator.
19893 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
19894 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
19895 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
19896 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
19897 SWI mode iterator.
19898 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
19899 * config/i386/i386.c (ix86_split_ashr): Update for renamed
19900 x86_shift<mode>_adj_3 expanders.
19901
19902 2010-04-10 Wei Guozhi <carrot@google.com>
19903
19904 PR target/42601
19905 * config/arm/arm.c (arm_pic_static_addr): New function.
19906 (legitimize_pic_address): Call arm_pic_static_addr when it detects
19907 a static symbol.
19908 (arm_output_addr_const_extra): Output expression for new pattern.
19909 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
19910
19911 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
19912
19913 * ira-costs.c (record_reg_classes): Ignore alternatives that are
19914 not enabled.
19915
19916 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
19917 * web.c: Include "insn-config.h" and "recog.h".
19918 (union_match_dups): New function.
19919 (web_main): Call it.
19920 (union_defs): Don't try to recognize match_dups.
19921
19922 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
19923 if doing so would replace the entire pattern.
19924
19925 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
19926
19927 PR target/43707
19928 PR target/43709
19929 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
19930 and splitter pattern. Change splitter operand 1 predicate to
19931 nonmemory_operand.
19932
19933 2010-04-09 Martin Jambor <mjambor@suse.cz>
19934
19935 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
19936 lattices are addresses of CONST_DECLs with the same initial value.
19937 (ipcp_print_all_lattices): Print values of CONST_DECLs.
19938 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
19939
19940 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
19941 Bernd Schmidt <bernds@codesourcery.com>
19942
19943 * loop-invariant.c (replace_uses): New static function.
19944 (move_invariant_reg): Use it to ensure we can replace the uses.
19945
19946 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
19947
19948 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
19949 function template.
19950 (picochip_override_options): Enable section anchors only above -O1.
19951 (picochip_reorg): Fixed a couple of build warnings.
19952
19953 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19954
19955 * configure.ac (plugin -rdynamic test): Log result.
19956 * configure: Regenerate.
19957 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
19958 (RDYNAMIC_SPEC): Define.
19959 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
19960
19961 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19962
19963 * configure.ac: Determine Sun ld version numbers.
19964 (comdat_group): Restrict GNU ld version checks to gld.
19965 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
19966 (enable_comdat): Support --enable-comdat.
19967 * configure: Regenerate.
19968 * doc/install.texi (Configuration): Document --enable-comdat.
19969
19970 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19971
19972 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
19973 * config/sol2-gld.h: ... here.
19974 * config.gcc (sparc*-*-solaris2*): Reflect this.
19975 (i[34567]86-*-solaris2*): Use it.
19976
19977 2010-04-09 Steve Ellcey <sje@cup.hp.com>
19978
19979 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
19980 setup_clocks_p.
19981 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
19982
19983 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
19984
19985 PR 42965
19986 * diagnostic.c (diagnostic_initialize): Initialize
19987 some_warnings_are_errors.
19988 (diagnostic_finish): New.
19989 (diagnostic_action_after_output): Call it before exiting.
19990 (diagnostic_report_diagnostic): Do not print message here. Set
19991 some_warnings_are_errors.
19992 * diagnostic.h (diagnostic_context): Delete
19993 issue_warnings_are_errors_message. Add some_warnings_are_errors.
19994 (diagnostic_finish): Declare.
19995 * toplev.c (toplev_main): Call it before exit.
19996
19997 2010-04-09 Jason Merrill <jason@redhat.com>
19998
19999 PR c++/42623
20000 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
20001 for incomplete type.
20002
20003 PR c++/41788
20004 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
20005 based on a warning flag.
20006
20007 2010-04-09 Richard Guenther <rguenther@suse.de>
20008
20009 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
20010
20011 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
20012
20013 PR bootstrap/43684
20014 * varasm.c (default_assemble_visibility): Wrap vars that are
20015 set, but unused, by targets without GAS.
20016 * config/rs6000/rs6000.c (paired_emit_vector_compare):
20017 Remove set, but unused, vars.
20018 (rs6000_legitimize_tls_address): Likewise.
20019 (altivec_expand_dst_builtin): Likewise.
20020 * config/darwin.c (machopic_classify_symbol): Likewise.
20021 (machopic_indirection_name): Likewise.
20022
20023 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
20024
20025 * config/i386/i386.md (DWI): New mode iterator.
20026 (S): New mode attribute.
20027 (shift_operand): Ditto.
20028 (shift_immediate_operand): Ditto.
20029 (ashl_input_operand): Ditto.
20030 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
20031 using SDWIM mode iterator.
20032 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
20033 pattern from *ashl{di,ti}3_1 and corresponding splitters using
20034 DWI mode iterator.
20035 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
20036 from corresponding peephole2 patterns.
20037 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
20038 and x86_64_shift_adj_1 using SWI48 mode iterator.
20039 (x86_shift<mode>_adj_2): Ditto.
20040 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
20041 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
20042 using SWI48 mode iterator.
20043 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
20044 *ashldi3_cmp_rex64 using SWI mode iterator.
20045 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
20046 *ashldi3_cconly_rex64 using SWI mode iterator.
20047 * config/i386/i386.c (ix86_split_ashl): Update for renamed
20048 x86_shift<mode>_adj_{1,2}.
20049 (ix86_split_ashr): Ditto.
20050 (ix86_split_lshr): Ditto.
20051
20052 2010-04-09 Richard Guenther <rguenther@suse.de>
20053
20054 * target.h (builtin_conversion): Pass in input and output types.
20055 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
20056 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
20057 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
20058 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
20059
20060 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
20061 Handle AVX modes.
20062 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
20063
20064 2010-04-09 Richard Guenther <rguenther@suse.de>
20065
20066 PR target/43152
20067 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
20068
20069 2010-04-09 Richard Guenther <rguenther@suse.de>
20070
20071 * tree-vectorizer.h (struct _stmt_vec_info): Document
20072 that vectype is the type of the LHS.
20073 (supportable_widening_operation, supportable_narrowing_operation):
20074 Get both input and output vector types as arguments.
20075 (vect_is_simple_use_1): Declare.
20076 (get_same_sized_vectype): Likewise.
20077 * tree-vect-loop.c (vect_determine_vectorization_factor):
20078 Set STMT_VINFO_VECTYPE to the vector type of the def.
20079 (vectorizable_reduction): Adjust.
20080 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
20081 Adjust. Specify the output vector type.
20082 (vect_pattern_recog_1): Adjust.
20083 * tree-vect-stmts.c (get_same_sized_vectype): New function.
20084 (vectorizable_call): Adjust.
20085 (vectorizable_conversion): Likewise.
20086 (vectorizable_operation): Likewise.
20087 (vectorizable_type_demotion): Likewise.
20088 (vectorizable_type_promotion): Likewise.
20089 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
20090 the def.
20091 (vect_is_simple_use_1): New function.
20092 (supportable_widening_operation): Get both input and output
20093 vector types.
20094 (supportable_narrowing_operation): Likewise.
20095 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
20096
20097 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
20098
20099 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
20100 __thiscall and _thiscall as predefined macros.
20101 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
20102 thiscall attribute handling.
20103 (ix86_comp_type_attributes): Likewise.
20104 (ix86_function_regparm): Likewise.
20105 (ix86_return_pops_args): Likewise.
20106 (init_cumulative_args): Likewise.
20107 (find_drap_reg): Likewise.
20108 (ix86_static_chain): Likewise.
20109 (x86_this_parameter): Likewise.
20110 (x86_output_mi_thunk): Likewise.
20111 (ix86_attribute_table): Add description for thiscall attribute.
20112 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
20113 * doc/extend.texi: Add documentation for thiscall.
20114
20115 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
20116
20117 PR c++/28584
20118 * c.opt (Wint-to-pointer-cast): Available in C++.
20119 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
20120
20121 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
20122
20123 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
20124 * calls.c (expand_call): Pass the function type to aggregate_value_p.
20125 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
20126 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
20127 function type instead. Reorder and simplify checks.
20128
20129 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
20130
20131 2010-04-08 Jing Yu <jingyu@google.com>
20132 Zdenek Dvorak <ook@ucw.cz>
20133
20134 PR tree-optimization/42720
20135 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
20136 loop unswitch conditions here from ...
20137 (tree_unswitch_single_loop): ... here.
20138
20139 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
20140
20141 * tree-if-conv.c: Fix comments and simplify logic.
20142
20143 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
20144
20145 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
20146 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
20147 (main_tree_if_conversion): Update call to tree_if_conversion.
20148
20149 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
20150
20151 PR 42485
20152 * doc/invoke.texi (-b,-V): Delete.
20153 * doc/tm.texi: Do not mention -b.
20154 * gcc.c (display_help): Delete -b and -V.
20155 (process_command): Delete -b and -V.
20156 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
20157
20158 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
20159 Wolfgang Gellerich <gellerich@de.ibm.com>
20160
20161 Implement target hook for loop unrolling
20162 * target.h (loop_unroll_adjust): Add a new target hook function.
20163 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
20164 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
20165 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
20166 (s390_loop_unroll_adjust): Implement the new target hook for s390.
20167 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
20168 target hook.
20169 (decide_unroll_stupid): Likewise.
20170
20171 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20172
20173 PR target/43643
20174 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
20175
20176 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20177
20178 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
20179 (Specific, *-*-solaris2*): Likewise.
20180 Don't prefer Sun as over GNU as.
20181
20182 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
20183
20184 * config/s390/s390.c (override_options): Adjust the z10 defaults
20185 for max-unroll-times, max-completely-peeled-insns
20186 and max-completely-peel-times.
20187
20188 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20189
20190 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
20191 instructions for z10.
20192 (s390_expand_setmem): Likewise.
20193 (s390_expand_cmpmem): Likewise.
20194
20195 2010-04-08 Richard Guenther <rguenther@suse.de>
20196
20197 PR tree-optimization/43679
20198 * tree-ssa-pre.c (eliminate): Only propagate copies.
20199
20200 2010-04-08 Jakub Jelinek <jakub@redhat.com>
20201
20202 PR bootstrap/43681
20203 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
20204 set but not used variable warning.
20205
20206 2010-04-08 Wei Guozhi <carrot@google.com>
20207
20208 PR target/41653
20209 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
20210 (arm_size_rtx_costs): Call the new function when optimized for size.
20211
20212 2010-04-08 Jakub Jelinek <jakub@redhat.com>
20213
20214 PR debug/43670
20215 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
20216 op0 is not a MEM, just return NULL instead of assertion
20217 failure.
20218 (discover_nonconstant_array_refs): Don't walk debug stmts.
20219
20220 2010-04-08 Doug Kwan <dougkwan@google.com>
20221
20222 * configure.ac: Recognize gold and do not use its version number
20223 to test ld features.
20224 * configure: Regenerate.
20225
20226 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
20227
20228 PR middle-end/40815
20229 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
20230 (negate_value): Move code to push elements to broken_up_substracts ...
20231 (eliminate_plus_minus_pair): ... here. Push operands that have no
20232 negative pair to plus_negates.
20233 (repropagate_negates, init_reassoc, fini_reassoc): Update.
20234
20235 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20236
20237 * doc/install.texi (Configuration): Move description of
20238 --enable-lto, --with-libelf*, --enable-gold from Java section to
20239 general section.
20240
20241 * doc/generic.texi (Working with declarations)
20242 (Function Properties, C and C++ Trees): Fix typos.
20243 * doc/sourcebuild.texi (Top Level): Likewise.
20244
20245 2010-04-07 Jakub Jelinek <jakub@redhat.com>
20246
20247 PR c/18624
20248 * tree.h (DECL_READ_P): Define.
20249 (struct tree_decl_common): Add decl_read_flag.
20250 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
20251 a set but not used warning.
20252 (merge_decls): Merge DECL_READ_P flag.
20253 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
20254 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
20255 * c-common.c (handle_used_attribute, handle_unused_attribute):
20256 Likewise.
20257 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
20258 New prototypes.
20259 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
20260 New functions.
20261 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
20262 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
20263 c_parser_binary_expression, c_parser_cast_expression,
20264 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
20265 Call default_function_array_read_conversion instead of
20266 default_function_array_conversion where needed.
20267 (c_parser_unary_expression, c_parser_conditional_expression,
20268 c_parser_postfix_expression_after_primary, c_parser_initelt):
20269 Likewise. Call mark_exp_read where needed.
20270 (c_parser_statement_after_labels, c_parser_asm_operands,
20271 c_parser_typeof_specifier, c_parser_sizeof_expression,
20272 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
20273 where needed.
20274 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
20275 New.
20276 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
20277 (warn_unused_but_set_parameter): Default to warn_unused
20278 && extra_warnings.
20279 * doc/invoke.texi: Document -Wunused-but-set-variable and
20280 -Wunused-but-set-parameter.
20281
20282 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
20283 used count variable.
20284 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
20285 when operandN variables aren't used in the body of the expander
20286 or splitter.
20287 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
20288 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
20289 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
20290 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
20291 FOR_EACH_IMM_USE_ON_STMT): Likewise.
20292 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
20293 * tree.c (PROCESS_ARG): Likewise.
20294
20295 2010-04-07 Simon Baldwin <simonb@google.com>
20296
20297 * diagnostic.h (diagnostic_override_option_index): New macro to
20298 set a diagnostic's option_index.
20299 * c-tree.h (c_cpp_error): Add warning reason argument.
20300 * opts.c (_warning_as_error_callback): New.
20301 (register_warning_as_error_callback): Store callback for
20302 warnings enabled via enable_warning_as_error.
20303 (enable_warning_as_error): Call callback, minor code tidy.
20304 * opts.h (register_warning_as_error_callback): Declare.
20305 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
20306 response to -Werror=.
20307 (c_common_init_options): Register warning_as_error_callback in opts.c.
20308 * common.opt: Add -Wno-cpp option.
20309 * c-common.c (struct reason_option_codes_t): Map cpp warning
20310 reason codes to gcc option indexes.
20311 * (c_option_controlling_cpp_error): New function, lookup the gcc
20312 option index for a cpp warning reason code.
20313 * (c_cpp_error): Add warning reason argument, call
20314 c_option_controlling_cpp_error for diagnostic_override_option_index.
20315 * doc/invoke.texi: Document -Wno-cpp.
20316
20317 2010-04-07 Richard Guenther <rguenther@suse.de>
20318
20319 * ipa-reference.c (mark_load): Use get_base_address.
20320 (mark_store): Likewise.
20321
20322 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
20323 inserting GIMPLE_NOPs into the IL.
20324 * tree-ssa-structalias.c (get_constraint_for_component_ref):
20325 Explicitly strip handled components and indirect references.
20326
20327 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
20328 folding address expressions.
20329 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
20330 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
20331 operand_equal_p to compare decls.
20332 (ptr_deref_may_alias_decl_p): Likewise.
20333 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
20334 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
20335 Handle reversed comparison ops.
20336 * tree-sra.c (asm_visit_addr): Use get_base_address.
20337 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
20338 * ipa-reference.c (mark_address): Use get_base_address.
20339
20340 2010-04-07 Richard Guenther <rguenther@suse.de>
20341
20342 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
20343 Propagate constants everywhere.
20344
20345 2010-04-07 Jakub Jelinek <jakub@redhat.com>
20346
20347 PR debug/43516
20348 * tree.c (MAX_INT_CACHED_PREC): Define.
20349 (nonstandard_integer_type_cache): New array.
20350 (build_nonstandard_integer_type): Cache results for precision
20351 <= MAX_INT_CACHED_PREC.
20352
20353 2010-04-07 Richard Guenther <rguenther@suse.de>
20354
20355 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
20356 -fargument-noalias-global, -fargument-noalias-anything): Remove.
20357 * common.opt: Likewise.
20358 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
20359 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
20360 (nonoverlapping_memrefs_p): Likewise.
20361 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
20362 * opts.c (common_handle_option): Handle OPT_fargument_alias,
20363 OPT_fargument_noalias, OPT_fargument_noalias_anything and
20364 OPT_fargument_noalias_global for backward compatibility.
20365
20366 2010-04-07 Richard Guenther <rguenther@suse.de>
20367
20368 PR tree-optimization/43270
20369 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
20370 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
20371 * tree-ssa-pre.c (phi_translate_1): Adjust.
20372 (fully_constant_expression): Split out vn_reference handling to ...
20373 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
20374 Fold reads from constant strings.
20375 (vn_reference_lookup): Handle fully constant references.
20376 (vn_reference_lookup_pieces): Likewise.
20377 * Makefile.in (expmed.o-warn): Add -Wno-error.
20378
20379 2010-04-07 Martin Jambor <mjambor@suse.cz>
20380
20381 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
20382
20383 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
20384
20385 PR driver/41594
20386 * gcc.c: Add -static-libstdc++ to list of recognized options.
20387
20388 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20389
20390 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
20391
20392 2010-04-07 Richard Guenther <rguenther@suse.de>
20393
20394 PR middle-end/42617
20395 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
20396 bases build simple mem attributes to retain points-to information.
20397
20398 2010-04-07 Richard Guenther <rguenther@suse.de>
20399
20400 PR middle-end/42617
20401 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
20402 preserve points-to related information.
20403
20404 2010-04-07 Richard Guenther <rguenther@suse.de>
20405
20406 PR middle-end/42617
20407 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
20408 discard plain indirect references.
20409 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
20410 * tree.c (tree_nop_conversion): Likewise.
20411
20412 2010-04-07 Dodji Seketeli <dodji@redhat.com>
20413
20414 PR debug/43628
20415 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
20416
20417 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
20418
20419 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
20420 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
20421
20422 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
20423
20424 * tree-if-conv.c: Fix indentation and comments.
20425
20426 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
20427
20428 * tree-if-conv.c: Sort static functions in topological order.
20429
20430 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
20431
20432 * tree-if-conv.c: Fix indentation and comments.
20433
20434 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
20435
20436 PR middle-end/43519
20437 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
20438 lang_hooks.types.type_for_size instead of
20439 build_nonstandard_integer_type.
20440 When converting an unsigned type to signed, double its precision.
20441 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
20442 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
20443 (graphite_create_new_loop_guard): When ub + 1 wraps around,
20444 use lb <= ub.
20445
20446 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
20447
20448 PR middle-end/43519
20449 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
20450 POINTER_PLUS_EXPR for pointer types.
20451
20452 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
20453
20454 PR middle-end/43519
20455 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
20456 * graphite-clast-to-gimple.c: Include langhooks.h.
20457 (max_signed_precision_type): New.
20458 (max_precision_type): Takes two types as arguments.
20459 (precision_for_value): New.
20460 (precision_for_interval): New.
20461 (gcc_type_for_interval): New.
20462 (gcc_type_for_value): New.
20463 (gcc_type_for_clast_term): New.
20464 (gcc_type_for_clast_red): New.
20465 (gcc_type_for_clast_bin): New.
20466 (gcc_type_for_clast_expr): Split up into several functions.
20467 (gcc_type_for_clast_eq): Rewritten.
20468 (compute_bounds_for_level): New.
20469 (compute_type_for_level_1): New.
20470 (compute_type_for_level): New.
20471 (gcc_type_for_cloog_iv): Removed.
20472 (gcc_type_for_iv_of_clast_loop): Rewritten.
20473 (graphite_create_new_loop): Compute the lower and upper bound types
20474 with gcc_type_for_clast_expr.
20475 (graphite_create_new_loop_guard): Same.
20476 (find_cloog_iv_in_expr): Removed.
20477 (compute_cloog_iv_types_1): Removed.
20478 (compute_cloog_iv_types): Removed.
20479 (gloog): Do not call compute_cloog_iv_types.
20480 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
20481 GBB_CLOOG_IV_TYPES.
20482 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
20483 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
20484 (GBB_CLOOG_IV_TYPES): Removed.
20485
20486 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
20487
20488 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
20489 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
20490 (detect_commutative_reduction): Same.
20491
20492 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
20493
20494 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
20495 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
20496 argument.
20497 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
20498 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
20499 (rewrite_commutative_reductions_out_of_ssa): Same.
20500 * passes.c (execute_function_todo): Call verify_ssa for every pass
20501 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
20502 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
20503 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
20504 with an extra argument.
20505 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
20506 verify_ssa only when the extra argument is true.
20507 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
20508 with an extra argument.
20509 (tree_transform_and_unroll_loop): Same.
20510
20511 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
20512
20513 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
20514 for all the passes of the LNO having LOOP_CLOSED_SSA.
20515 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
20516 * tree-loop-distribution.c (pass_loop_distribution): Same.
20517 * tree-pass.h (TODO_verify_loops): Removed.
20518 * tree-ssa-loop.c (pass_tree_loop_init): Same.
20519 (pass_lim): Same.
20520 (pass_tree_unswitch): Same.
20521 (pass_predcom): Same.
20522 (pass_vectorize): Same.
20523 (pass_linear_transform): Same.
20524 (pass_graphite_transforms): Same.
20525 (pass_iv_canon): Same.
20526 (pass_complete_unroll): Same.
20527 (pass_complete_unrolli): Same.
20528 (pass_parallelize_loops): Same.
20529 (pass_loop_prefetch): Same.
20530 (pass_iv_optimize): Same.
20531
20532 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
20533
20534 PR middle-end/32824
20535 * passes.c (init_optimization_passes): Move pass_lim before
20536 pass_copy_prop and pass_dce_loop.
20537
20538 2010-04-06 Jakub Jelinek <jakub@redhat.com>
20539
20540 PR target/43667
20541 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
20542 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
20543 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
20544 MULTI_* defines for 4 argument vpermil2p* builtins.
20545
20546 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
20547
20548 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
20549 * config/i386/i386.c (x86_maybe_negate_const_int): New.
20550 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
20551 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
20552 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
20553 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
20554 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
20555 Use x86_maybe_negate_const_int to output insn mnemonic.
20556 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
20557 check from instruction predicate. Update comments.
20558 * config/i386/sync.md (sync_add<mode>): Use
20559 x86_maybe_negate_const_int to output insn mnemonic.
20560
20561 2010-04-06 Jan Hubicka <jh@suse.cz>
20562
20563 PR tree-optimization/42906
20564 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
20565 IGNORE_SELF argument. Set visited_control_parents for fully
20566 processed BBs.
20567 (find_obviously_necessary_stmts): Update call of
20568 mark_control_dependent_edges_necessary.
20569 (propagate_necessity): Likewise. Handle PHI edges more curefully.
20570
20571 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
20572
20573 * config/i386/i386.md: Remove comment about 'e' and 'E'
20574 operand modifier.
20575
20576 2010-04-06 Richard Guenther <rguenther@suse.de>
20577
20578 PR tree-optimization/43627
20579 * tree-vrp.c (extract_range_from_unary_expr): Widenings
20580 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
20581 not varying.
20582
20583 2010-04-06 Jakub Jelinek <jakub@redhat.com>
20584
20585 * BASE-VER: Change to 4.6.0.
20586
20587 PR target/43638
20588 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
20589 handling.
20590
20591 2010-04-06 Richard Guenther <rguenther@suse.de>
20592
20593 PR middle-end/43661
20594 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
20595
20596 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20597
20598 * doc/invoke.texi (Optimize Options): Document that LTO
20599 won't remove object access purely due to incompatible
20600 declarations.
20601
20602 2010-04-04 Matthias Klose <doko@ubuntu.com>
20603
20604 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
20605 Initialize variable.
20606
20607 2010-04-03 Richard Guenther <rguenther@suse.de>
20608
20609 PR middle-end/42509
20610 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
20611 require a non-NULL MEM_OFFSET.
20612
20613 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
20614
20615 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
20616 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
20617 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
20618 config/alpha/predicates.md, config/arm/arm.md,
20619 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
20620 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
20621 config/darwin9.h, config/darwin.c, config/darwin.h,
20622 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
20623 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
20624 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
20625 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
20626 config/mips/mips.md, config/mn10300/mn10300.c,
20627 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
20628 config/rs6000/aix.h, config/rs6000/dfp.md,
20629 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
20630 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
20631 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
20632 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
20633 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
20634 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
20635 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
20636 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
20637 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
20638 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
20639 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
20640 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
20641 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
20642 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
20643 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
20644 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
20645 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
20646 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
20647 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
20648 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
20649 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
20650 opt-functions.awk, opth-gen.awk, params.def, passes.c,
20651 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
20652 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
20653 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
20654 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
20655 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
20656 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
20657 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
20658 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
20659 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
20660 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
20661 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
20662 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
20663 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
20664 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
20665
20666 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20667
20668 PR other/43620
20669 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
20670 * aclocal.m4: Regenerate.
20671
20672 2010-04-02 Richard Guenther <rguenther@suse.de>
20673
20674 PR tree-optimization/43629
20675 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
20676 if we have seen a constant value.
20677
20678 2010-04-02 Joseph Myers <joseph@codesourcery.com>
20679
20680 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
20681
20682 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
20683
20684 PR target/43469
20685 * arm.c (legitimize_tls_address): Adjust call to
20686 gen_tls_load_dot_plus_four.
20687 (arm_note_pic_base): New function.
20688 (arm_cannot_copy_insn_p): Use it.
20689 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
20690 constraint.
20691
20692 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20693
20694 PR bootstrap/43531
20695
20696 Revert:
20697 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20698
20699 * Makefile.in ($(out_object_file)): Depend on
20700 gt-$(basename $(notdir $(out_file))).h.
20701
20702 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
20703
20704 * config.gcc (lm32-*-rtems*): Add t-lm32.
20705
20706 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
20707
20708 * config.gcc: Add lm32-*-rtems*.
20709 * config/lm32/rtems.h: New file.
20710
20711 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
20712
20713 PR target/42609
20714 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
20715
20716 2010-04-01 Jakub Jelinek <jakub@redhat.com>
20717
20718 * dwarf2out.c (output_compilation_unit_header): For
20719 -gdwarf-4 use version 4 instead of version 3.
20720 (output_line_info): For version 4 and above emit additional
20721 maximum ops per insn header field.
20722 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
20723
20724 * dwarf2out.c (is_c_family, is_java): Remove.
20725 (lower_bound_default): New function.
20726 (add_bound_info, gen_descr_array_type_die): Use it.
20727
20728 2010-04-01 Dodji Seketeli <dodji@redhat.com>
20729
20730 PR debug/43325
20731 * dwarf2out.c (gen_variable_die): Allow debug info for variable
20732 re-declaration when it happens in a function.
20733
20734 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
20735
20736 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
20737 (cgraph_remove_function_insertion_hook): Same.
20738 (cgraph_call_function_insertion_hooks): Same.
20739
20740 2010-04-01 Richard Guenther <rguenther@suse.de>
20741
20742 PR middle-end/43614
20743 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
20744 and TREE_THIS_VOLATILE.
20745 (copy_ref_info): Likewise.
20746 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
20747 * tree.c (build6_stat): Ignore side-effects of all but arg5
20748 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
20749 TARGET_MEM_REF.
20750
20751 2010-04-01 Richard Guenther <rguenther@suse.de>
20752
20753 PR tree-optimization/43607
20754 * ipa-type-escape.c (check_call): Do not access non-existing
20755 arguments.
20756
20757 2010-04-01 Richard Guenther <rguenther@suse.de>
20758
20759 PR middle-end/43602
20760 Revert
20761 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
20762 Jack Howarth <howarth@bromo.med.uc.edu>
20763
20764 * tree-profile.c (tree_init_ic_make_global_vars): Make static
20765 variables TLS.
20766
20767 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20768
20769 * doc/install.texi (Prerequisites): Document libelf usability on
20770 IRIX 5/6 and Solaris 2.
20771 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
20772 Update GNU as, GNU ld requirements.
20773 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
20774 Document Sun Studio compiler download.
20775 Update and simplify as, ld recommendations.
20776 (Specific, *-*-solaris2.7): Note obsoletion, removal.
20777
20778 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20779
20780 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
20781 with_tune_32 to pentium4.
20782
20783 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
20784
20785 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
20786
20787 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20788
20789 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
20790 obsoletion, removal.
20791 Update IDO URL.
20792 Document GNU as requirement.
20793 Update configure requirements.
20794 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
20795 Recomment IRIX 6.5.18+.
20796 Document IDF/IDL requirement.
20797 Document GNU as requirement.
20798 Document GNU ld bootstrap failure.
20799 Remove freeware.sgi.com reference.
20800
20801 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20802
20803 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
20804 UNIX V4.0, V5.0 obsoletion, removal.
20805 Remove --with-gc=simple reference.
20806 Update VM requirements during bootstrap.
20807 Remove -oldas bootstrap description.
20808 Update binutils reference.
20809 Remove comparison failure note.
20810
20811 2010-03-31 Richard Guenther <rguenther@suse.de>
20812 Zdenek Dvorak <ook@ucw.cz>
20813 Sebastian Pop <sebastian.pop@amd.com>
20814
20815 PR middle-end/43464
20816 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
20817 with multiple arguments.
20818 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
20819
20820 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
20821
20822 * graphite-dependences.c (print_pddr): Call print_pdr with an
20823 extra argument.
20824 * graphite-poly.c (debug_pdr): Add an extra argument for the
20825 verbosity level.
20826 (print_pdr): Same.
20827 (print_pbb_domain): Same.
20828 (print_pbb): Same.
20829 (print_scop_context): Same.
20830 (print_scop): Same.
20831 (print_cloog): Same.
20832 (debug_pbb_domain): Same.
20833 (debug_pbb): Same.
20834 (print_pdrs): Same.
20835 (debug_pdrs): Same.
20836 (debug_scop_context): Same.
20837 (debug_scop): Same.
20838 (debug_cloog): Same.
20839 (print_scop_params): Same.
20840 (debug_scop_params): Same.
20841 (print_iteration_domain): Same.
20842 (print_iteration_domains): Same.
20843 (debug_iteration_domain): Same.
20844 (debug_iteration_domains): Same.
20845 (print_scattering_function): Same.
20846 (print_scattering_functions): Same.
20847 (debug_scattering_function): Same.
20848 (debug_scattering_functions): Same.
20849 * graphite-poly.h (debug_pdr): Update declaration.
20850 (print_pdr): Same.
20851 (print_pbb_domain): Same.
20852 (print_pbb): Same.
20853 (print_scop_context): Same.
20854 (print_scop): Same.
20855 (print_cloog): Same.
20856 (debug_pbb_domain): Same.
20857 (debug_pbb): Same.
20858 (print_pdrs): Same.
20859 (debug_pdrs): Same.
20860 (debug_scop_context): Same.
20861 (debug_scop): Same.
20862 (debug_cloog): Same.
20863 (print_scop_params): Same.
20864 (debug_scop_params): Same.
20865 (print_iteration_domain): Same.
20866 (print_iteration_domains): Same.
20867 (debug_iteration_domain): Same.
20868 (debug_iteration_domains): Same.
20869 (print_scattering_function): Same.
20870 (print_scattering_functions): Same.
20871 (debug_scattering_function): Same.
20872 (debug_scattering_functions): Same.
20873
20874 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
20875
20876 * graphite-poly.c (print_scattering_function_1): New.
20877 (print_scattering_function): Call it.
20878 (print_scop_params): Remove spaces at the end of lines.
20879 (print_cloog): New.
20880 (debug_cloog): New.
20881 * graphite-poly.h (print_cloog): Declared.
20882 (debug_cloog): Declared.
20883
20884 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
20885
20886 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
20887 in loop->header.
20888 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
20889 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
20890 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
20891 to switch between adding the IV bump in loop->latch or in loop->header.
20892
20893 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
20894
20895 * graphite-poly.c (print_scattering_function): Pretty print following
20896 the scoplib format.
20897 (print_pdr): Same.
20898 (print_pbb_domain): Same.
20899 (dump_gbb_cases): Same.
20900 (dump_gbb_conditions): Same.
20901 (print_pdrs): Same.
20902 (print_pbb): Same.
20903 (print_scop_params): Same.
20904 (print_scop_context): Same.
20905 (print_scop): Same.
20906 (print_pbb_body): New.
20907 (lst_indent_to): New.
20908 (print_lst): Start new lines with a #.
20909 * graphite-poly.h (pbb_bb): New.
20910 (pbb_index): Use pbb_bb.
20911 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
20912 disjuncts.
20913 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
20914
20915 2010-03-31 Jakub Jelinek <jakub@redhat.com>
20916
20917 * dwarf2out.c (size_of_die): For -gdwarf-4 use
20918 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
20919 and 0 instead of 1 for dw_val_class_flag.
20920 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
20921 dw_val_class_range_list, dw_val_class_loc_list,
20922 dw_val_class_lineptr and dw_val_class_macptr, use
20923 DW_FORM_flag_present for dw_val_class_flag and
20924 DW_FORM_exprloc for dw_val_class_loc.
20925 (output_die): For -gdwarf-4 print dw_val_class_loc
20926 size as uleb128 instead of 1 or 2 bytes and don't print
20927 anything for dw_val_class_flag.
20928
20929 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
20930 instead of cselib_lookup following by tweaking locs->setting_insn.
20931
20932 PR bootstrap/43596
20933 * cselib.c (cselib_process_insn): Clear cselib_current_insn
20934 even before returning from label, setjmp call or volatile asm
20935 handling.
20936
20937 2010-03-31 Richard Guenther <rguenther@suse.de>
20938
20939 PR middle-end/43600
20940 * cgraphunit.c (cgraph_output_in_order): Do not allocate
20941 temporary data on stack.
20942
20943 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20944
20945 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
20946 (PUSHSECTION_ASM_OP): Remove.
20947 (POPSECTION_ASM_OP): Remove.
20948 (PUSHSECTION_FORMAT): Remove.
20949 * config/sol2.h (PUSHSECTION_FORMAT): Define.
20950 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
20951 * config/sol2.c (solaris_output_init_fini): Use it.
20952
20953 2010-03-31 Jie Zhang <jie@codesourcery.com>
20954
20955 PR 43574
20956 * opt-functions.awk (var_type_struct): Use signed char type
20957 for simple variables.
20958
20959 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20960
20961 * config/sol2.c: Include output.h.
20962 (solaris_assemble_visibility): New function.
20963 * config/t-sol2 (sol2.o): Add output.h dependency.
20964 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
20965 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
20966 Redefine.
20967
20968 2010-03-31 Jakub Jelinek <jakub@redhat.com>
20969
20970 PR target/43580
20971 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
20972 V2SImode or XFmode on PRE_DEC.
20973
20974 PR debug/43557
20975 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
20976 BLKmode.
20977
20978 2010-03-31 Jie Zhang <jie@codesourcery.com>
20979
20980 PR 43562
20981 * reload.h (caller_save_initialized_p): Declare.
20982 * toplev.c (backend_init_target): Don't call
20983 init_caller_save but set caller_save_initialized_p to false.
20984 * caller-save.c (caller_save_initialized_p): Define.
20985 (init_caller_save): Check caller_save_initialized_p.
20986 * ira.c (ira): Call init_caller_save if flag_caller_saves.
20987
20988 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20989
20990 PR target/39048
20991 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
20992 and soft-fp/t-softfp to tmake_file.
20993 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
20994 (LIBGCC2_TF_CEXT): Define.
20995 (TF_SIZE): Define.
20996
20997 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
20998
20999 PR debug/42977
21000 * cselib.c (n_useless_values): Document handling of debug locs.
21001 (n_useless_debug_values, n_debug_values): New variables.
21002 (new_elt_loc_list): Don't add to debug values, keep count.
21003 (promote_debug_loc): New.
21004 (cselib_reset_table): Zero new variables.
21005 (entry_and_rtx_equal_p): Promote debug locs.
21006 (discard_useless_locs): Increment n_useless_debug_values for
21007 debug values.
21008 (remove_useless_values): Adjust n_useless_values and n_debug_values
21009 with n_useless_debug_values.
21010 (add_mem_for_addr): Promote debug locs.
21011 (cselib_lookup_mem): Likewise.
21012 (cselib_lookup_addr): Renamed to...
21013 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
21014 (cselib_log_lookup): ... this. Turn into...
21015 (cselib_lookup_addr): ... new wrapper.
21016 (cselib_lookup_from_insn): New.
21017 (cselib_invalidate_regno): Increment n_useless_debug_values for
21018 debug values.
21019 (cselib_invalidate_mem): Likewise.
21020 (cselib_process_insn): Take n_deleted and n_debug_values into
21021 account to guard remove_useless_value call.
21022 (cselib_finish): Zero n_useless_debug_values.
21023 * cselib.h (cselib_lookup_from_insn): Declare.
21024 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
21025 (sched_analyze_2): Likewise.
21026
21027 2010-03-30 Jakub Jelinek <jakub@redhat.com>
21028
21029 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
21030 functions.
21031 (adjust_mems): Replace narrowing SUBREG of expression containing
21032 just PLUS, MINUS, MULT and ASHIFT of registers and constants
21033 with operations in the narrower mode.
21034
21035 PR debug/43593
21036 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
21037 regs_invalidated_by_call instead all call_used_reg_set registers.
21038
21039 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
21040
21041 PR middle-end/43430
21042 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
21043 pointer comparisons with types_compatible_p.
21044 * tree-vect-stmts.c (vectorizable_call): Same.
21045 (vectorizable_condition): Same.
21046
21047 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21048
21049 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
21050 stack check if the mask would be zero.
21051
21052 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
21053 Jack Howarth <howarth@bromo.med.uc.edu>
21054
21055 * tree-profile.c (tree_init_ic_make_global_vars): Make static
21056 variables TLS.
21057
21058 2010-03-30 Joseph Myers <joseph@codesourcery.com>
21059
21060 PR other/25232
21061 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
21062 and __unordtf2.
21063 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
21064 Include ___unordxf2 and ___unordtf2.
21065 * config/i386/libgcc-glibc.ver: Do not define inheritance from
21066 GCC_4.4.0 here.
21067
21068 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
21069
21070 * config/lm32/t-lm32: New file.
21071 * config.gcc: Use the above file when targetting lm32.
21072
21073 2010-03-28 Duncan Sands <baldrick@free.fr>
21074
21075 * Makefile.in (PLUGIN_HEADERS): Add except.h.
21076
21077 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
21078
21079 PR middle-end/43431
21080 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
21081 Improve vectorization cost model diagnostic.
21082
21083 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
21084
21085 PR middle-end/43436
21086 * tree-vect-data-refs.c (vect_analyze_data_refs): When
21087 compute_data_dependences_for_loop returns false, early exit
21088 and output an extra diagnostic for the failed data reference
21089 analysis.
21090
21091 2010-03-29 Richard Guenther <rguenther@suse.de>
21092
21093 PR tree-optimization/43560
21094 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
21095 (can_sm_ref_p): Treat stores to readonly locations as trapping.
21096
21097 2010-03-29 Jie Zhang <jie@codesourcery.com>
21098
21099 PR 43564
21100 * toplev.c (process_options): Set optimization_default_node
21101 and optimization_current_node.
21102 * opts.c (decode_options): Don't set optimization_default_node
21103 and optimization_current_node.
21104
21105 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
21106
21107 * config/rtems.h: Abandon -qrtems_debug.
21108
21109 2010-03-28 Jan Hubicka <jh@suse.cz>
21110
21111 PR tree-optimization/43505
21112 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
21113 map should not be copied.
21114
21115 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21116
21117 PR middle-end/41674
21118 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
21119 cdtors, set DECL_PRESERVE_P.
21120 * ipa.c (cgraph_externally_visible_p): Return true if declaration
21121 should be preseved.
21122
21123 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
21124
21125 PR tree-optimization/43528
21126 * stor-layout.c (place_field): Check that constant fits into
21127 unsigned HWI when skipping calculation of MS bitfield layout.
21128
21129 2010-03-27 Jan Hubicka <jh@suse.cz>
21130
21131 PR middle-end/43391
21132 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
21133 notice_global_symbol work.
21134
21135 2010-03-27 Jakub Jelinek <jakub@redhat.com>
21136
21137 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
21138 instead of dwarf2out_decl.
21139 (struct var_loc_node): Remove section_label field.
21140 (dwarf2out_function_decl): New function.
21141 (dwarf2out_var_location): Don't set section_label field.
21142 (dwarf2out_begin_function): Don't empty decl_loc_table here.
21143
21144 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
21145
21146 PR tree-optimization/43544
21147 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
21148 First argument for builtin vectorized function hook is now a
21149 tree to be able to distinguish between machine specific and
21150 standard builtins.
21151 * targhooks.c (default_builtin_vectorized_function): Ditto.
21152 * targhooks.h (default_builtin_vectorized_function): Ditto.
21153 * target.h (struct gcc_target): Ditto.
21154 * tree-vect-stmts.c (vectorizable_function): Ditto.
21155 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
21156 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
21157 Ditto.
21158
21159 2010-03-26 Joseph Myers <joseph@codesourcery.com>
21160
21161 PR c/43381
21162 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
21163 nested binding iff it is a FUNCTION_DECL.
21164 (store_parm_decls_newstyle): Pass nested=true to bind for
21165 FUNCTION_DECLs amongst parameters.
21166
21167 2010-03-26 Jakub Jelinek <jakub@redhat.com>
21168
21169 * var-tracking.c (vt_expand_loc_callback): Don't run
21170 cselib_expand_value_rtx_cb in dummy mode if
21171 cselib_dummy_expand_value_rtx_cb returned false.
21172
21173 * var-tracking.c (emit_note_insn_var_location): For one part
21174 notes with offset 0, don't add EXPR_LIST around the location.
21175 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
21176 add_location_or_const_value_attribute): Adjust for that change.
21177
21178 PR debug/43540
21179 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
21180 into first operand and location into second.
21181 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
21182 dw_cfi_oprnd_loc for DW_CFA_expression.
21183 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
21184 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
21185 assume first argument is regnum and second argument is location.
21186
21187 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
21188
21189 PR target/42113
21190 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
21191 of scratch register to DImode. Split to DImode comparison operator.
21192 Use SImode subreg of scratch register in the multiplication.
21193 (*cmp_sadd_sidi): Ditto.
21194 (*cmp_ssub_si): Ditto.
21195 (*cmp_ssub_sidi): Ditto.
21196
21197 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
21198
21199 PR target/43524
21200 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
21201 Remove invalid assert and wrong comment.
21202
21203 2010-03-26 Jakub Jelinek <jakub@redhat.com>
21204
21205 PR debug/43516
21206 * flags.h (final_insns_dump_p): New extern.
21207 * final.c (final_insns_dump_p): New variable.
21208 (rest_of_clean_state): Set it before -fdump-final-insns=
21209 dumping, clear afterwards.
21210 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
21211 MEM_ALIAS_SET on MEMs.
21212
21213 2010-03-26 David S. Miller <davem@davemloft.net>
21214
21215 * configure.ac: Fix sparc GOTDATA_OP bug check.
21216 * configure: Rebuild.
21217
21218 2010-03-26 Alan Modra <amodra@gmail.com>
21219
21220 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
21221
21222 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21223
21224 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
21225 TLS_SECTION_ASM_FLAG.
21226
21227 2010-03-25 Jakub Jelinek <jakub@redhat.com>
21228
21229 PR bootstrap/43511
21230 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
21231 Clear first_function_block_is_cold.
21232
21233 PR c/43385
21234 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
21235 argument if the argument is truth_value_p.
21236
21237 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
21238
21239 * config/rs6000/constraints.md: Update copyright year for my changes.
21240
21241 PR target/43484
21242 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
21243 used in reg+reg addressing, swap registers.
21244
21245 2010-03-24 Jakub Jelinek <jakub@redhat.com>
21246
21247 PR debug/43293
21248 * target.h (struct gcc_target): Add code_end hook.
21249 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
21250 if not yet defined.
21251 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
21252 * toplev.c (compile_file): Call targetm.asm_out.code_end
21253 hook before unwind info/debug info output.
21254 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
21255 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
21256 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
21257 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
21258 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
21259 * config/i386/i386.c (ix86_file_end): Renamed to...
21260 (ix86_code_end): ... this. Make static. Don't call
21261 file_end_indicate_exec_stack. Emit unwind info using
21262 final_start_function/final_end_function.
21263 (darwin_x86_file_end): Remove.
21264 (TARGET_ASM_CODE_END): Define.
21265 * config/i386/i386.h (TARGET_ASM_FILE_END,
21266 NEED_INDICATE_EXEC_STACK): Don't define.
21267 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
21268 (TARGET_ASM_FILE_END): Define to darwin_file_end.
21269 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
21270 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
21271
21272 PR target/43498
21273 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
21274 at the beginning and final_end_function at the end.
21275 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
21276
21277 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21278
21279 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
21280 and Sun as TLS syntax.
21281 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
21282 * configure: Regenerate.
21283 * config.in: Regenerate.
21284 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
21285 (default_elf_asm_named_section): Use it.
21286 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
21287 (i386_output_dwarf_dtprel): Likewise.
21288 (output_addr_const_extra): Likewise.
21289 (output_pic_addr_const): Lowercase @GOTTPOFF.
21290 (output_addr_const_extra): Likewise.
21291 (output_pic_addr_const): Lowercase @GOTNTPOFF.
21292 (output_addr_const_extra): Likewise.
21293 (output_pic_addr_const): Lowercase @INDNTPOFF.
21294 (output_addr_const_extra): Likewise.
21295 (output_pic_addr_const): Lowercase @NTPOFF.
21296 (output_addr_const_extra): Likewise.
21297 (output_pic_addr_const): Lowercase @TPOFF.
21298 (output_addr_const_extra): Likewise.
21299 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
21300 (*tls_global_dynamic_64): Likewise.
21301 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
21302 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
21303
21304 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
21305 (ASM_OUTPUT_TLS_COMMON): Use it.
21306 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
21307
21308 PR target/38118
21309 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
21310 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
21311 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
21312 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
21313 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
21314 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
21315
21316 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21317
21318 * config/i386/i386.c (override_options): Don't accept
21319 -mtls-dialect=sun any longer.
21320 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
21321 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
21322 (*tls_local_dynamic_base_32_sun): Likewise.
21323 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
21324
21325 2010-03-24 Jakub Jelinek <jakub@redhat.com>
21326
21327 PR debug/43508
21328 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
21329 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
21330
21331 PR debug/43479
21332 * ira.c (adjust_cleared_regs): New function.
21333 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
21334
21335 PR debug/19192
21336 PR debug/43479
21337 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
21338 from gimple_block.
21339 * expr.c (expand_expr_real): Restore previous
21340 curr_insn_source_location and curr_insn_block after
21341 expand_expr_real_1 call.
21342 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
21343 instead of expand_expr_real_1.
21344
21345 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
21346
21347 PR rtl-optimization/43413
21348 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
21349 hard regs too.
21350
21351 2010-03-22 James E. Wilson <wilson@codesourcery.com>
21352
21353 PR target/43348
21354 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
21355 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
21356
21357 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
21358
21359 * config/i386/i386.c (ix86_target_string): Add -mfma.
21360 Fix a typo in comment.
21361
21362 2010-03-22 Mike Stump <mikestump@comcast.net>
21363
21364 PR target/23071
21365 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
21366 Don't overly align based upon packed packed fields.
21367
21368 2010-03-22 Jason Merrill <jason@redhat.com>
21369
21370 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
21371 Use () rather than [], and move before the element type.
21372
21373 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21374
21375 * doc/configfiles.texi (Configuration Files): Removed
21376 fixinc/Makefile*, intl/Makefile.*.
21377 * doc/makefile.texi: Fixed markup. Abstract from version
21378 control system used.
21379 (Makefile): Removed obsolete gcc/java/parse.y example.
21380 * doc/sourcebuild.texi: Likewise.
21381 (Top Level): Added config, gnattools, libdecnumber, libgcc,
21382 libgomp, libssp. Removed fastjar.
21383 (Miscellaneous Docs): Clarify location.
21384 Added COPYING3, COPYING3.LIB.
21385 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
21386
21387 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21388
21389 PR target/38085
21390 * config/i386/i386.c (x86_function_profiler)
21391 [!NO_PROFILE_COUNTERS]: Fix typo.
21392 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
21393 instead of callq.
21394
21395 2010-03-22 Janis Johnson <janis187@us.ibm.com>
21396 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21397
21398 * doc/sourcebuild.texi (Test Directives): Split into six
21399 subsections, with most of the current text in new subsections
21400 Directives, Selectors, and Final Actions.
21401 (Directives): Split list of test directives into multiple
21402 subsubsections.
21403 (Selectors): Describe use and syntax of selectors.
21404 (Effective-Target Keywords): Describe all existing keywords.
21405 (Add Options): Describe features for dg-add-options.
21406 (Require Support): Describe variants of dg-require-support.
21407 (Final Actions): Describe commands to use in dg-final.
21408
21409 2010-03-22 Michael Matz <matz@suse.de>
21410
21411 PR middle-end/43475
21412 * recog.c (validate_replace_rtx_group): Replace also in
21413 REG_EQUAL and REG_EQUIV notes.
21414
21415 2010-03-22 Richard Guenther <rguenther@suse.de>
21416
21417 PR tree-optimization/43390
21418 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
21419 sure vector extracts are type correct.
21420
21421 2010-03-22 Richard Guenther <rguenther@suse.de>
21422
21423 PR middle-end/40106
21424 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
21425 x * sqrt (x) even when optimizing for size if the target
21426 has native support for sqrt.
21427
21428 2010-03-22 Jakub Jelinek <jakub@redhat.com>
21429
21430 * varasm.c (make_decl_rtl_for_debug): Also clear
21431 flag_mudflap for the duration of make_decl_rtl call.
21432
21433 PR debug/43443
21434 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
21435 locs from preserved VALUEs.
21436
21437 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21438
21439 PR middle-end/42718
21440 * pa.md (movmemsi): Set align to one if zero.
21441 (movmemdi): Likewise.
21442
21443 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
21444
21445 PR target/42321
21446 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
21447 with their corresponding prologue pushes.
21448
21449 2010-03-20 Andrew Pinski <pinskia@gmail.com>
21450
21451 PR target/43156
21452 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
21453 at the begining or end.
21454 (spu_expand_epilogue): Likewise.
21455
21456 2010-03-20 Richard Guenther <rguenther@suse.de>
21457
21458 PR rtl-optimization/43438
21459 * combine.c (make_extraction): Properly zero-/sign-extend an
21460 extraction of the low part of a CONST_INT. Also handle
21461 CONST_DOUBLE.
21462
21463 2010-03-19 Mike Stump <mikestump@comcast.net>
21464
21465 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
21466 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
21467 (override_options): Use SUBTARGET32_DEFAULT_CPU.
21468
21469 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
21470
21471 PR c/43211
21472 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
21473 an error.
21474
21475 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
21476
21477 PR rtl-optimization/42258
21478 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
21479 use that may match DEF.
21480
21481 PR target/40697
21482 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
21483 the cost of loading the constant rather than assuming
21484 COSTS_N_INSNS (1).
21485 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
21486 outer code is AND, do the same tests as the andsi3 expander and
21487 return COSTS_N_INSNS (1) if and is cheap.
21488
21489 * optabs.c (avoid_expensive_constant): Fix formatting.
21490
21491 2010-03-19 Michael Matz <matz@suse.de>
21492
21493 PR c++/43116
21494 * attribs.c (decl_attributes): When rebuilding a function pointer
21495 type use the same qualifiers as the original pointer type.
21496
21497 2010-03-19 Martin Jambor <mjambor@suse.cz>
21498
21499 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
21500 and is_gimple_ip_invariant_address.
21501
21502 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21503
21504 Revert
21505 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21506
21507 * config/arm/arm.c (arm_override_options): Turn off
21508 flag_dwarf2_cfi_asm for AAPCS variants.
21509
21510 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21511
21512 PR target/43399
21513 * config/arm/arm.c (emit_multi_reg_push): Update comments.
21514 Use PRE_MODIFY instead of PRE_DEC.
21515 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
21516 (vfp_emit_fstmd): Likewise.
21517
21518 2010-03-19 Michael Matz <matz@suse.de>
21519
21520 PR target/43305
21521 * builtins.c (expand_builtin_interclass_mathfn,
21522 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
21523 if that fails.
21524
21525 2010-03-19 Richard Guenther <rguenther@suse.de>
21526
21527 PR tree-optimization/43415
21528 * tree-ssa-pre.c (phi_translate): Split out worker to ...
21529 (phi_translate_1): ... this.
21530 (phi_translate): Move all caching here. Cache all NARY
21531 and REFERENCE translations.
21532
21533 2010-03-19 David S. Miller <davem@davemloft.net>
21534
21535 With help from Eric Botcazou.
21536 * config/sparc/sparc.c: Include dwarf2out.h.
21537 (emit_pic_helper): Delete.
21538 (pic_helper_symbol_name): Delete.
21539 (pic_helper_emitted_p): Delete.
21540 (pic_helper_needed): New.
21541 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
21542 (get_pc_thunk_name): New.
21543 (load_pic_register): Remove 'delay_pic_helper' arg. Use
21544 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
21545 Set pic_helper_needed to true. Don't call emit_pic_helper.
21546 (sparc_expand_prologue): Update load_pic_register call.
21547 (sparc_output_mi_thunk): Likewise.
21548 (sparc_file_end): Emit a hidden comdat symbol for the PIC
21549 thunk if possible. Output CFI information as needed.
21550
21551 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
21552 Jack Howarth <howarth@bromo.med.uc.edu>
21553
21554 PR target/36399
21555 * config/i386/i386.h: Fix ABI on darwin x86-32.
21556
21557 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
21558
21559 * tree.h: Declare make_decl_rtl_for_debug.
21560 * varasm.c (make_decl_rtl_for_debug): New.
21561 * dwarf2out.c (rtl_for_decl_location): Call it.
21562 * cfgexpand.c (expand_debug_expr): Call it.
21563
21564 2010-03-18 Jakub Jelinek <jakub@redhat.com>
21565
21566 PR bootstrap/43399
21567 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
21568 mem_mode.
21569
21570 PR bootstrap/43403
21571 * var-tracking.c (vt_init_cfa_base): Do nothing if
21572 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
21573
21574 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
21575
21576 PR debug/42873
21577 * var-tracking.c (canonicalize_vars_star): New.
21578 (dataflow_post_merge_adjust): Use it.
21579
21580 2010-03-18 Jakub Jelinek <jakub@redhat.com>
21581
21582 PR debug/43058
21583 * var-tracking.c (non_suitable_const): New function.
21584 (add_uses): For DEBUG_INSNs with constants, don't record any
21585 value, instead just the constant value itself.
21586 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
21587 is not VAR_LOC_UNKNOWN_P, set var to the constant.
21588 (emit_notes_in_bb): Likewise.
21589 (emit_note_insn_var_location): For onepart variables if
21590 cur_loc is a VOIDmode constant, use DECL_MODE.
21591
21592 2010-03-18 Martin Jambor <mjambor@suse.cz>
21593
21594 PR middle-end/42450
21595 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
21596 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
21597 all non-clones. Moved call redirection...
21598 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
21599 (cgraph_materialize_all_clones): Dispose of all
21600 combined_args_to_skip bitmaps.
21601 (verify_cgraph_node): Do not check for edges pointing to wrong
21602 nodes in inline clones.
21603 * tree-inline.c (copy_bb): Call
21604 cgraph_redirect_edge_call_stmt_to_callee.
21605 * ipa.c (cgraph_remove_unreachable_nodes): Call
21606 cgraph_node_remove_callees even when there are used clones.
21607
21608 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
21609
21610 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
21611
21612 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
21613
21614 PR target/43383
21615 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
21616 for 32bit.
21617
21618 2010-03-18 Michael Matz <matz@suse.de>
21619
21620 PR middle-end/43419
21621 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
21622 into sqrt(x) if we need to preserve signed zeros.
21623
21624 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
21625 Eric Botcazou <ebotcazou@adacore.com>
21626
21627 PR rtl-optimization/43360
21628 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
21629 note if we don't know its invariant status.
21630
21631 2010-03-18 Michael Matz <matz@suse.de>
21632
21633 PR tree-optimization/43402
21634 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
21635 PHI chains of ssa names registered for update.
21636
21637 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
21638
21639 PR target/42427
21640 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
21641 non-offsettable and pre_modify update addressing.
21642 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
21643 and "2" alternatives "#".
21644 (*movdd_softfloat32): Make all alternatives "#";
21645 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
21646 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
21647 (*movdf_softfloat32): Make all alternatives "#";
21648 (movdi): Use the new DIFD mode iterator to create a common splitter
21649 for movdi, movdf and movdd patterns.
21650
21651 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
21652
21653 * common.opt (dumpdir): Remove redundant tab.
21654
21655 2010-03-17 Martin Jambor <mjambor@suse.cz>
21656
21657 PR tree-optimization/43347
21658 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
21659 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
21660
21661 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
21662
21663 PR rtl-optimization/42216
21664 * regrename.c (create_new_chain): New function, broken out from...
21665 (scan_rtx_reg): ... here. Call it. Handle the case where we are
21666 appending a use to an empty chain.
21667 (build_def_use): Remove previous changes that convert OP_INOUT to
21668 OP_OUT operands; instead detect the case where an OP_INOUT operand
21669 uses a previously untracked register and create an empty chain for it.
21670
21671 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21672
21673 * doc/extend.texi (Function Attributes): Rewrite unfinished
21674 sentence in ms_abi documentation.
21675
21676 2010-03-17 Alan Modra <amodra@gmail.com>
21677
21678 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
21679 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
21680 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
21681 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
21682
21683 2010-03-16 Richard Henderson <rth@redhat.com>
21684
21685 PR middle-end/43365
21686 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
21687 (lower_try_finally): Save and restore eh_seq around the expansion
21688 of the try-finally.
21689
21690 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
21691
21692 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
21693 statements before splitting block.
21694
21695 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21696
21697 * doc/sourcebuild.texi (Testsuites): Fix markup.
21698 Use pathnames relative to gcc/testsuite.
21699 (Test Directives): Move description of how timeout is determined.
21700 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
21701 (C Tests): Correct gcc.misc-tests directory.
21702 Framework tests now live in gcc.test-framework.
21703
21704 2010-03-16 Richard Guenther <rguenther@suse.de>
21705
21706 PR middle-end/43379
21707 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
21708 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
21709
21710 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
21711 Alexandre Oliva <aoliva@redhat.com>
21712
21713 PR tree-optimization/42917
21714 * lambda-code.c (remove_iv): Skip debug statements.
21715 (lambda_loopnest_to_gcc_loopnest): Likewise.
21716 (not_interesting_stmt): Debug statements are not interesting.
21717
21718 2010-03-16 Jakub Jelinek <jakub@redhat.com>
21719
21720 PR debug/43051
21721 PR debug/43092
21722 * cselib.c (cselib_preserve_constants,
21723 cfa_base_preserved_val): New static variables.
21724 (preserve_only_constants): New function.
21725 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
21726 clear its REG_VALUES. If cselib_preserve_constants, don't
21727 empty the whole hash table, but preserve there VALUEs with constants,
21728 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
21729 (cselib_preserve_cfa_base_value): New function.
21730 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
21731 (cselib_init): Change argument to int bitfield. Set
21732 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
21733 is in it.
21734 (cselib_finish): Clear cselib_preserve_constants and
21735 cfa_base_preserved_val.
21736 * cselib.h (enum cselib_record_what): New enum.
21737 (cselib_init): Change argument to int.
21738 (cselib_preserve_cfa_base_value): New prototype.
21739 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
21740 * dse.c (dse_step1): Likewise.
21741 * cfgcleanup.c (thread_jump): Likewise.
21742 * sched-deps.c (sched_analyze): Likewise.
21743 * gcse.c (local_cprop_pass): Likewise.
21744 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
21745 If FN is non-NULL, call the callback always and whenever it returns
21746 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
21747 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
21748 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
21749 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
21750 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
21751 * var-tracking.c: Include recog.h.
21752 (bb_stack_adjust_offset): Remove.
21753 (vt_stack_adjustments): Don't call it, instead just gather the
21754 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
21755 (adjust_stack_reference): Remove.
21756 (compute_cfa_pointer): New function.
21757 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
21758 (struct adjust_mem_data): New type.
21759 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
21760 functions.
21761 (get_address_mode): New function.
21762 (replace_expr_with_values): Use it.
21763 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
21764 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
21765 (adjust_sets): Remove.
21766 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
21767 Use get_address_mode.
21768 (get_adjusted_src): Remove.
21769 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
21770 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
21771 (add_with_sets): Don't call adjust_sets.
21772 (fp_setter, vt_init_cfa_base): New functions.
21773 (vt_initialize): Change return type to bool. Move most of pool etc.
21774 initialization to the beginning of the function from end. Pass
21775 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
21776 If !frame_pointer_needed, call vt_stack_adjustment before mos
21777 vector is filled, call vt_init_cfa_base if argp/framep has been
21778 eliminated to sp. If frame_pointer_needed and argp/framep has
21779 been eliminated to hard frame pointer, set
21780 hard_frame_pointer_adjustment and call vt_init_cfa_base after
21781 encountering fp setter in the prologue. For MO_ADJUST, call
21782 log_op_type before pusing the op into mos vector, not afterwards.
21783 Call adjust_insn before cselib_process_insn/add_with_sets,
21784 call cancel_changes (0) afterwards.
21785 (variable_tracking_main_1): Adjust for vt_initialize calling
21786 vt_stack_adjustments and returning whether it succeeded or not.
21787
21788 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
21789
21790 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
21791 debug statements.
21792
21793 2010-03-15 Jakub Jelinek <jakub@redhat.com>
21794
21795 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
21796 has been set.
21797 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
21798 drap_reg has not been set.
21799
21800 2010-03-15 Michael Matz <matz@suse.de>
21801
21802 PR middle-end/43300
21803 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
21804 use it to expand block copies.
21805 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
21806 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
21807 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
21808
21809 2010-03-15 Richard Guenther <rguenther@suse.de>
21810
21811 PR tree-optimization/43367
21812 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
21813 elimination check.
21814
21815 2010-03-15 Richard Guenther <rguenther@suse.de>
21816
21817 PR tree-optimization/43317
21818 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
21819
21820 2010-03-15 Martin Jambor <mjambor@suse.cz>
21821
21822 PR tree-optimization/43141
21823 * tree-sra.c (create_abstract_origin): New function.
21824 (modify_function): Call create_abstract_origin.
21825
21826 2010-03-15 Chris Demetriou <cgd@google.com>
21827
21828 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
21829 wasn't copied.
21830
21831 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
21832
21833 PR middle-end/43354
21834 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
21835 call insert_out_of_ssa_copy for default definitions.
21836
21837 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
21838
21839 * graphite-clast-to-gimple.c (my_long_long): Defined.
21840 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
21841 * graphite-sese-to-poly.c (my_long_long): Defined.
21842 (scop_ivs_can_be_represented): Use it.
21843
21844 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
21845
21846 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
21847 graphite-max-bbs-per-function, and loop-block-tile-size.
21848 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
21849 with "maximum".
21850 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
21851
21852 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
21853
21854 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
21855 forward declaration.
21856 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
21857 (add_upper_bounds_from_estimated_nit): New.
21858 (build_loop_iteration_domains): Use it.
21859
21860 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
21861
21862 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
21863
21864 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
21865
21866 PR middle-end/43306
21867 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
21868 should be an INTEGER_CST. Also handle CASE_CONVERT.
21869
21870 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
21871
21872 * graphite.c (graphite_initialize): To bound the number of bbs per
21873 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
21874 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
21875 * doc/invoke.texi: Document it.
21876
21877 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
21878
21879 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
21880 * graphite-sese-to-poly.h (build_poly_scop): Same.
21881
21882 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
21883
21884 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
21885 the number of parameters in the scop. Use as an upper bound
21886 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
21887 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
21888 * doc/invoke.texi: Document it.
21889
21890 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
21891
21892 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
21893 * doc/c-tree.texi: Remove.
21894 * doc/generic.texi: Merge c-tree.texi here.
21895 * doc/gccint.texi (Trees): Remove menu entry.
21896 (c-tree.texi): Remove @include.
21897 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
21898 * doc/languages.texi (Reading RTL): Ditto.
21899
21900 2010-03-12 Steve Ellcey <sje@cup.hp.com>
21901
21902 PR target/42869
21903 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
21904
21905 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21906
21907 PR middle-end/42431
21908 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
21909 code added to work around reload clobbering CONST insns.
21910
21911 2010-03-12 Jakub Jelinek <jakub@redhat.com>
21912
21913 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
21914 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
21915 (cselib_preserve_only_values): Remove retain argument, don't
21916 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
21917 * cselib.h (cselib_preserve_only_values): Remove retain argument.
21918 * var-tracking.c (micro_operation): Move insn field before union.
21919 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
21920 (struct variable_tracking_info_def): Remove n_mos field, change
21921 mos into a vector of micro_operations.
21922 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
21923 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
21924 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
21925 changing into a vector.
21926 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
21927 come before all other uops generated by add_stores.
21928 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
21929 argument removal.
21930 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
21931 a vector. Run just one pass over the bbs instead of separate counting
21932 and computation phase.
21933 (vt_finalize): Free VTI (bb)->mos vector instead of array.
21934
21935 PR debug/43329
21936 * tree-inline.c (remap_decls): Put old_var rather than origin_var
21937 into *nonlocalized_list vector.
21938 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
21939 even if origin is non-NULL.
21940 (gen_variable_die): Likewise.
21941 (process_scope_var): Don't change origin.
21942 (gen_decl_die): Likewise.
21943 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
21944 before adding new edges instead of after it, fix moving over
21945 debug stmts.
21946
21947 2010-03-11 David S. Miller <davem@davemloft.net>
21948
21949 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
21950 of four.
21951 * configure: Rebuild.
21952
21953 2010-03-11 Martin Jambor <mjambor@suse.cz>
21954
21955 PR tree-optimization/43257
21956 * tree.c (assign_assembler_name_if_neeeded): New function.
21957 (free_lang_data_in_cgraph): Assembler name assignment moved to the
21958 above new function.
21959 * tree.h (assign_assembler_name_if_neeeded): Declare.
21960 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
21961 the function if needed.
21962
21963 2010-03-11 Chris Demetriou <cgd@google.com>
21964
21965 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
21966 include/stdint-gcc.h, and include/stdint.h world-readable.
21967
21968 2010-03-11 Richard Guenther <rguenther@suse.de>
21969
21970 PR tree-optimization/43255
21971 * tree-vrp.c (process_assert_insertions_for): Do not insert
21972 asserts for trivial conditions.
21973
21974 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21975
21976 PR tree-optimization/43280
21977 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
21978 generation. Move calculation of size out of the if branch.
21979 (find_bswap): Modify compare number generation.
21980
21981 2010-03-11 Richard Guenther <rguenther@suse.de>
21982
21983 PR lto/43200
21984 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
21985 (input_gimple_stmt): Fixup handled component types during
21986 operand read. Also fix up decls in ADDR_EXPRs.
21987
21988 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
21989
21990 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
21991 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
21992
21993 2010-03-10 Jan Hubicka <jh@suse.cz>
21994
21995 PR c/43288
21996 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
21997 * varasm.c (get_variable_section): Don't do that here...
21998 (make_decl_rtl): ... and here.
21999 (do_assemble_alias): Produce decl RTL.
22000 (assemble_alias): Likewise.
22001
22002 2010-03-10 Jakub Jelinek <jakub@redhat.com>
22003
22004 PR debug/43290
22005 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
22006 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
22007 of fde->vdrap_reg.
22008 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
22009 (based_loc_descr): Only express drap or vdrap regno based expressions
22010 using DW_OP_fbreg when not optimizing.
22011 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
22012 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
22013 REG_CFA_SET_VDRAP note.
22014
22015 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
22016
22017 PR tree-optimization/43236
22018 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
22019 error in calculation of base address in reverse iteration case.
22020 (generate_builtin): Take number of latch executions if the statement
22021 is in the latch.
22022
22023 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
22024
22025 PR middle-end/42859
22026 * tree-eh.c: Include pointer-set.h.
22027 (lower_eh_dispatch): Filter out duplicate case labels and
22028 remove the unneeded edge when the label is unused. Return
22029 true when some edges are removed.
22030 (execute_lower_eh_dispatch): When any lowering resulted in
22031 removing an edge, also delete unreachable blocks.
22032
22033 2010-03-10 Jakub Jelinek <jakub@redhat.com>
22034
22035 PR bootstrap/43287
22036 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
22037 UNSPEC_MACHOPIC_OFFSET.
22038
22039 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
22040
22041 PR target/43294
22042 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
22043 (m68k_delegitimize_address): New function.
22044
22045 2010-03-09 Jakub Jelinek <jakub@redhat.com>
22046
22047 PR debug/43299
22048 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
22049
22050 PR debug/43299
22051 * var-tracking.c (adjust_sets): New function.
22052 (count_with_sets, add_with_sets): Use it.
22053 (get_adjusted_src): New inline function.
22054 (add_stores): Use it.
22055
22056 PR debug/43304
22057 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
22058 call cselib_dummy_expand_value_rtx_cb instead of
22059 cselib_expand_value_rtx_cb.
22060
22061 PR debug/43293
22062 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
22063 * config/i386/i386.c: Include debug.h and dwarf2out.h.
22064 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
22065 and .cfi_endproc around the pic thunks.
22066 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
22067 all queued unwind info register saves are saved before the call.
22068 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
22069 considered as sp-=4 for unwind info and the pop as sp+=4 which
22070 also clobbers dest, but doesn't actually restore it.
22071
22072 PR debug/43290
22073 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
22074 RTX_FRAME_RELATED_P.
22075
22076 2010-03-09 Jie Zhang <jie@codesourcery.com>
22077
22078 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
22079 whitespaces in output template.
22080
22081 2010-03-09 Jie Zhang <jie@codesourcery.com>
22082
22083 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
22084 out array boundary.
22085
22086 2010-03-08 Jakub Jelinek <jakub@redhat.com>
22087
22088 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
22089 builtins.exp in a separate job.
22090
22091 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
22092
22093 * graphite-sese-to-poly.c (add_param_constraints): Use
22094 lower_bound_in_type and upper_bound_in_type.
22095
22096 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
22097
22098 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
22099 instead of unsigned_type_node.
22100
22101 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
22102 Reza Yazdani <reza.yazdani@amd.com>
22103
22104 PR middle-end/43065
22105 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
22106 on pointer type parameters.
22107
22108 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
22109
22110 PR middle-end/42644
22111 PR middle-end/42130
22112 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
22113 handle conversions from pointer to integers.
22114 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
22115 induction variable, to be able to work with code generated by CLooG.
22116 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
22117 (build_poly_scop): Bail out if we cannot codegen a loop.
22118
22119 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
22120
22121 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
22122 code generation with gloog_error.
22123
22124 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
22125
22126 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
22127 Call fold_convert on all the returned values.
22128 (expand_scalar_variables_expr): Pass to
22129 expand_scalar_variables_ssa_name the type of the resulting expression.
22130
22131 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
22132
22133 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
22134 ppl_min_for_le_pointset.
22135 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
22136 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
22137
22138 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
22139
22140 * graphite-dependences.c (map_into_dep_poly): Removed.
22141 (dependence_polyhedron_1): Use combine_context_id_scat.
22142
22143 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
22144
22145 * graphite-poly.h (struct poly_scattering): Add layout documentation.
22146 (struct poly_bb): Same.
22147 (combine_context_id_scat): New.
22148
22149 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
22150
22151 PR middle-end/42326
22152 * sese.c (name_defined_in_loop_p): Return false for default
22153 definitions.
22154
22155 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
22156
22157 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
22158 and clean up the logic.
22159
22160 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
22161
22162 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
22163 early return.
22164
22165 2010-03-08 Jakub Jelinek <jakub@redhat.com>
22166
22167 * var-tracking.c (remove_cselib_value_chains): Define only for
22168 ENABLE_CHECKING.
22169 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
22170 delete_slot_part, emit_notes_for_differences_1): Don't call
22171 remove_cselib_value_chains here.
22172 (set_slot_part, emit_notes_for_differences_2): Don't call
22173 add_cselib_value_chains here.
22174 (preserved_values): New vector.
22175 (preserve_value): New function.
22176 (add_uses, add_stores, vt_add_function_parameters): Use it
22177 instead of cselib_preserve_value.
22178 (changed_values_stack): New vector.
22179 (check_changed_vars_0): New function.
22180 (check_changed_vars_1, check_changed_vars_2): Use it.
22181 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
22182 changed_values_stack VALUEs.
22183 (vt_emit_notes): For all preserved_values call
22184 add_cselib_value_chains. If ENABLE_CHECKING call
22185 remove_cselib_value_chains before verifying value_chains is empty.
22186 Initialize and free changed_values_stack.
22187 (vt_initialize): Initialize preserved_values.
22188 (vt_finalize): Free preserved_values.
22189
22190 2010-03-08 Richard Guenther <rguenther@suse.de>
22191
22192 PR tree-optimization/43269
22193 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
22194 region detection.
22195
22196 2010-03-08 Martin Jambor <mjambor@suse.cz>
22197
22198 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
22199 (ipa_is_param_called): Removed.
22200 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
22201 (ipa_print_node_params): Do not print the called flag.
22202 (ipa_write_node_info): Do not stream the called flag.
22203 (ipa_read_node_info): Likewise.
22204
22205 2010-03-07 Jakub Jelinek <jakub@redhat.com>
22206
22207 PR debug/43176
22208 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
22209 * cselib.c (struct expand_value_data): Add dummy field.
22210 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
22211 dummy to false.
22212 (cselib_dummy_expand_value_rtx_cb): New function.
22213 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
22214 any rtl.
22215 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
22216 * var-tracking.c: Include pointer-set.h.
22217 (variable): Change n_var_parts to char from int. Add
22218 cur_loc_changed and in_changed_variables fields.
22219 (variable_canonicalize): Remove.
22220 (shared_var_p): New inline function.
22221 (unshare_variable): Maintain cur_loc_changed and
22222 in_changed_variables fields. If var was in changed_variables,
22223 replace it there with new_var. Just copy cur_loc instead of
22224 resetting it to something else.
22225 (variable_union): Don't recompute cur_loc. Use shared_var_p.
22226 (dataflow_set_union): Don't call variable_canonicalize.
22227 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
22228 of their DEBUG_EXPR_TREE_DECLs.
22229 (canonicalize_loc_order_check): Verify that cur_loc is NULL
22230 and in_changed_variables and cur_loc_changed is false.
22231 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
22232 and cur_loc_changed. Don't update cur_loc here.
22233 (variable_merge_over_src): Don't call variable_canonicalize.
22234 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
22235 removing loc that is equal to cur_loc, clear cur_loc,
22236 set cur_loc_changed and ensure variable_was_changed is called.
22237 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
22238 compare pointers in cur_loc check, if it is equal to loc,
22239 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
22240 (variable_different_p): Remove compare_current_location argument,
22241 don't compare cur_loc.
22242 (dataflow_set_different_1): Adjust variable_different_p caller.
22243 (variable_was_changed): If dv had some var in changed_variables
22244 already, reset in_changed_variables flag for it and propagate
22245 cur_loc_changed over to the new variable. On empty var
22246 always set cur_loc_changed. Set in_changed_variables on whatever
22247 var is added to changed_variables.
22248 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
22249 Use shared_var_p. When removing loc that is equal to cur_loc,
22250 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
22251 end, don't set it to something else, just call variable_was_changed.
22252 (delete_slot_part): Use shared_var_p. When cur_loc equals to
22253 loc being removed, clear cur_loc and set cur_loc_changed.
22254 Set cur_loc_changed if all locations have been removed.
22255 (struct expand_loc_callback_data): New type.
22256 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
22257 allocated. Always create SUBREGs if simplify_subreg failed.
22258 Prefer to use cur_loc, when that fails and still in
22259 changed_variables (and seen first time) recompute it. Set
22260 cur_loc_changed of variables which had to change cur_loc and
22261 compute elcd->cur_loc_changed if any of the subexpressions used
22262 had to change cur_loc.
22263 (vt_expand_loc): Adjust to pass arguments in
22264 expand_loc_callback_data structure.
22265 (vt_expand_loc_dummy): New function.
22266 (emitted_notes): New variable.
22267 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
22268 that weren't used for any other decl in current
22269 emit_notes_for_changes call call vt_expand_loc_dummy to update
22270 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
22271 first loc_chain location if NULL before. Always use just
22272 cur_loc instead of first loc_chain location. When cur_loc_changed
22273 is false, when not --enable-checking=rtl just don't emit any note.
22274 When rtl checking, compute the note and assert it is the same
22275 as previous note. Clear cur_loc_changed and in_changed_variables
22276 at the end before removing from changed_variables.
22277 (check_changed_vars_3): New function.
22278 (emit_notes_for_changes): Traverse changed_vars to call
22279 check_changed_vars_3 on each changed var.
22280 (emit_notes_for_differences_1): Clear cur_loc_changed and
22281 in_changed_variables. Recompute cur_loc of new_var.
22282 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
22283 (vt_emit_notes): Initialize and destroy emitted_notes.
22284
22285 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
22286
22287 PR rtl-optimization/42220
22288 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
22289 Use verify_reg_tracked to determine if we should use OP_OUT rather
22290 than OP_INOUT.
22291 (build_def_use): If we see an in-out operand for a register that we
22292 know nothing about, treat is an output if possible, fail the block if
22293 not.
22294
22295 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
22296
22297 PR debug/42897
22298 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
22299 permanently.
22300
22301 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
22302
22303 PR debug/42897
22304 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
22305 uses of relevant DEFs that are dead outside the loop too.
22306
22307 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
22308
22309 * var-tracking.c (dataflow_set_merge): Swap src and src2.
22310 Reverted:
22311 2010-01-13 Jakub Jelinek <jakub@redhat.com>
22312 PR debug/41371
22313 * var-tracking.c (values_to_unmark): New variable.
22314 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
22315 values_to_unmark vector. Moved body to...
22316 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
22317 instead queue it into values_to_unmark vector.
22318 (vt_find_locations): Free values_to_unmark vector.
22319
22320 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
22321
22322 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
22323 (site.exp): Export them when plugins are enabled.
22324
22325 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
22326
22327 PR middle-end/42326
22328 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
22329 that contain scevs.
22330 (chrec_fold_multiply): Same.
22331
22332 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
22333
22334 PR c/43248
22335 * c-decl.c (build_compound_literal): Return early if init is
22336 an error_mark_node.
22337
22338 2010-03-04 Martin Jambor <mjambor@suse.cz>
22339
22340 PR tree-optimization/43164
22341 PR tree-optimization/43191
22342 * tree-sra.c (type_consists_of_records_p): Reject records with
22343 zero-size bit-fields at the end.
22344
22345 2010-03-04 Mike Stump <mikestump@comcast.net>
22346
22347 * Makefile.in (TAGS): Remove *.y.
22348
22349 2010-03-04 Richard Guenther <rguenther@suse.de>
22350
22351 PR tree-optimization/40761
22352 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
22353 in reverse order.
22354 (my_rev_post_order_compute): New function.
22355 (init_pre): Call it.
22356
22357 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
22358
22359 PR middle-end/43209
22360 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
22361 decrease the cost of an IV candidate when the cost is infinite.
22362
22363 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22364
22365 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
22366 Use '3DNow!' for the extension of that name, ensure normal space
22367 after the string.
22368 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
22369
22370 2010-03-03 Jeff Law <law@redhat.com>
22371
22372 * PR middle-end/32693
22373 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
22374 than gen_rtx_SUBREG.
22375 (extract_bit_field_1): Likewise.
22376
22377 2010-03-03 Janis Johnson <janis187@us.ibm.com>
22378
22379 * doc/sourcebuild.texi (Test directives): Document that arguments
22380 include-opts and exclude-opts are now optional for dg-skip-if,
22381 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
22382
22383 2010-03-03 Jason Merrill <jason@redhat.com>
22384
22385 PR c++/12909
22386 * cgraph.h (varpool_node): Add extra_name field.
22387 * varpool.c (varpool_extra_name_alias): New.
22388 (varpool_assemble_decl): Emit extra name aliases.
22389 (varpool_mark_needed_node): Look past an extra name alias.
22390 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
22391 * lto-streamer-in.c (lto_input_tree): Read it.
22392 * lto-streamer-out.c (output_unreferenced_globals): Write it.
22393
22394 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
22395
22396 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
22397 (sparc*-*-solaris2*): ...this.
22398
22399 2010-03-03 Jakub Jelinek <jakub@redhat.com>
22400
22401 PR debug/43229
22402 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
22403 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
22404 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
22405 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
22406
22407 PR debug/43237
22408 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
22409 fallthrough to default handling, just with want_address 0 instead of 2.
22410 For single element lists, add_AT_loc directly, otherwise create an
22411 artificial variable DIE and stick location list to it.
22412
22413 PR debug/43177
22414 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
22415 (VAL_EXPR_HAS_REVERSE): Define.
22416 (reverse_op): New function.
22417 (add_stores): For reversible operations add an extra MO_VAL_USE.
22418
22419 2010-03-02 Jason Merrill <jason@redhat.com>
22420
22421 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
22422
22423 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
22424
22425 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
22426 (sparc64-*-linux*): Likewise.
22427 (sparc64-*-solaris2*): Include assembler files before linker ones.
22428 (sparc-*-solaris2*): Simplify and reorder to match previous case.
22429 * config/sparc/gas.h: Delete.
22430 * config/sparc/sol2-64.h: Add copyright notice.
22431 * config/sparc/sol2-gas-bi.h: Likewise.
22432 * config/sparc/sol2-gld.h: Likewise.
22433 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
22434 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
22435 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
22436 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
22437 (sparc_elf_asm_named_section): Rename into...
22438 (sparc_solaris_elf_asm_named_section): ...this. Always define.
22439
22440 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
22441
22442 * config/alpha/alpha.c (override_options): Fix -mtune error message.
22443
22444 2010-03-02 Jeff Law <law@redhat.com>
22445
22446 PR middle-end/42431
22447 * reload1.c (rtx_p, substitute_stack): Declare.
22448 (substitute): Record addresses of changed rtxs.
22449 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
22450 Restore the original rtx when complete.
22451 (reload): Free subsitute_stack when complete.
22452
22453 2010-03-02 Janis Johnson <janis187@us.ibm.com>
22454
22455 * doc/gccint.texi (menu): Add Testsuites as a chapter.
22456 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
22457 new chapter.
22458 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
22459 LTO Testing, gcov Testing, profopt Testing, compat Testing,
22460 Torture Tests): Change from subsection to section.
22461
22462 2010-03-02 Jakub Jelinek <jakub@redhat.com>
22463 Steven Bosscher <steven@gcc.gnu.org>
22464
22465 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
22466 instead of bb.
22467
22468 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
22469
22470 PR middle-end/42640
22471 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
22472 the assignment from the new induction variable to the assignment
22473 of the value from the original loop PHI function.
22474
22475 2010-03-01 Janis Johnson <janis187@us.ibm.com>
22476 Daniel Jacobowitz <dan@codesourcery.com>
22477
22478 * doc/sourcebuild.texi (Test directives): Clarify options to
22479 dg-skip-if.
22480
22481 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22482
22483 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
22484 Disable cfi directives unless GCC and gas agree on using read-only
22485 .eh_frame sections for 64-bit.
22486 * configure: Regenerate.
22487
22488 2010-03-01 Richard Guenther <rguenther@suse.de>
22489
22490 PR tree-optimization/43220
22491 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
22492 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
22493
22494 2010-03-01 Richard Guenther <rguenther@suse.de>
22495 Martin Jambor <mjambor@suse.cz>
22496
22497 PR middle-end/41250
22498 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
22499 gimplified parameters.
22500
22501 2010-03-01 Christian Bruel <christian.bruel@st.com>
22502
22503 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
22504
22505 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
22506
22507 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
22508
22509 2010-03-01 Richard Guenther <rguenther@suse.de>
22510
22511 PR middle-end/43213
22512 * expr.c (expand_assignment): Use the alias-oracle to tell
22513 if the rhs aliases the result decl.
22514
22515 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22516
22517 PR pch/14940
22518 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
22519 to sol_gt_pch_get_address.
22520 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
22521 64-bit, SPARC and x86.
22522 (sol_gt_pch_get_address): New function.
22523
22524 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
22525
22526 * toplev.h (inform_n, error_n): Declare.
22527 * diagnostic.c (inform_n, error_n): New function.
22528
22529 2010-03-01 Jakub Jelinek <jakub@redhat.com>
22530
22531 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
22532 has no rtl yet when processing local_decls, queue it and recheck
22533 if deferred stack allocation hasn't assigned it rtl.
22534
22535 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
22536
22537 * config/sh/sh.c (unspec_bbr_uid): New.
22538 (gen_block_redirect): Use it instead of INSN_UID.
22539 (gen_far_branch): Likewise.
22540
22541 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
22542
22543 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
22544 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
22545
22546 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22547
22548 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
22549 (Warning Options): -Wno-conversion-null is valid for
22550 Objective-C++ as well.
22551 * doc/tm.texi (Named Address Spaces): Likewise.
22552 * doc/plugins.texi (Plugins): Replace TABs with spaces.
22553 * doc/tree-ssa.texi (Tree SSA): Likewise.
22554
22555 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
22556
22557 PR bootstrap/43202
22558 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
22559 by default. Don't set the default arch for
22560 i[34567]86-*-darwin*|x86_64-*-darwin*.
22561
22562 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
22563
22564 PR bootstrap/43202
22565 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
22566 default. Set the default 32bit/64bit archs with $with_arch
22567 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
22568
22569 2010-02-27 Richard Guenther <rguenther@suse.de>
22570
22571 PR tree-optimization/43186
22572 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
22573 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
22574 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
22575 unroller iterations.
22576
22577 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
22578
22579 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
22580 required and i[34567]86-*-* targets don't support 64bit ISA.
22581
22582 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
22583
22584 PR ada/43096
22585 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
22586 the same alias set.
22587
22588 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
22589
22590 * config.gcc: Set the default arch at least to Prescott for
22591 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
22592 if SSE math is enabled.
22593
22594 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
22595
22596 * diagnostic.c (diagnostic_initialize): Update.
22597 (diagnostic_report_diagnostic): Test inhibit_notes_p for
22598 informative notes.
22599 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
22600 (diagnostic_inhibit_notes): New.
22601 * toplev.c (process_options): inhibit notes with -fcompare-debug.
22602
22603 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
22604
22605 PR c/20631
22606 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
22607 * doc/standards.texi: Likewise.
22608 * doc/extend.texi: Likewise.
22609 * doc/trouble.texi: Likewise.
22610 * doc/cppopts.texi: Likewise.
22611 * doc/install.texi: Likewise.
22612 * c.opt (std=c90,std=gnu90): New options.
22613 * c-opts.c (c_common_handle_option): Handle them.
22614
22615 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
22616
22617 PR c/24577
22618 * c-decl.c (undeclared_variable): Use an informative note.
22619
22620 2010-02-26 Richard Guenther <rguenther@suse.de>
22621
22622 PR tree-optimization/43186
22623 * gimple.h (gimple_fold): Remove.
22624 * gimple.c (gimple_fold): Remove. Inline into single user ...
22625 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
22626 Try harder for conditions.
22627
22628 2010-02-26 Jakub Jelinek <jakub@redhat.com>
22629
22630 PR debug/43190
22631 * function.c (used_types_insert): Don't skip through named pointer
22632 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
22633 and it is different from the main variant's type.
22634
22635 2010-02-26 Nick Clifton <nickc@redhat.com>
22636
22637 * config/rx/rx.md (sminsi3): Remove bogus alternative.
22638
22639 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
22640
22641 * config.gcc: Support --with-fpmath=sse for x86.
22642
22643 * config/i386/ssemath.h: New.
22644
22645 * doc/install.texi (--with-fpmath=sse): Documented.
22646
22647 2010-02-26 Richard Guenther <rguenther@suse.de>
22648
22649 PR tree-optimization/43188
22650 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
22651 vector types of over-aligned element type.
22652
22653 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
22654
22655 PR target/43175
22656 * config/i386/i386.c (expand_vec_perm_blend): Use correct
22657 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
22658
22659 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
22660
22661 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
22662
22663 2010-02-26 Jakub Jelinek <jakub@redhat.com>
22664
22665 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
22666 * var-tracking.c: Include diagnostic.h.
22667 (debug_dv): New function.
22668 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
22669
22670 PR debug/43160
22671 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
22672 (add_value_chain, add_value_chains, remove_value_chain,
22673 remove_value_chains): Handle DEBUG_EXPRs.
22674 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
22675
22676 PR debug/43161
22677 * regcprop.c (struct queued_debug_insn_change): New type.
22678 (struct value_data_entry): Add debug_insn_changes field.
22679 (struct value_data): Add n_debug_insn_changes field.
22680 (debug_insn_changes_pool): New variable.
22681 (free_debug_insn_changes, apply_debug_insn_changes,
22682 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
22683 (kill_value_one_regno): Call free_debug_insn_changes if needed.
22684 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
22685 fields.
22686 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
22687 changes for them.
22688 (copyprop_hardreg_forward_1): Don't call apply_change_group for
22689 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
22690 changes, call cprop_find_used_regs via note_stores.
22691 (copyprop_hardreg_forward): When copying vd from predecessor
22692 which has any queued DEBUG_INSN changes, make sure the pointers are
22693 cleared. At the end call df_analyze and then if there are any
22694 DEBUG_INSN changes queued at the end of some basic block for still
22695 live registers, apply them.
22696 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
22697
22698 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
22699
22700 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
22701 (arm*-*-*): Ditto.
22702
22703 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
22704
22705 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
22706 targets. Set the default with_cpu/with_arch from arch/cpu.
22707 Allow x86-64 and native for with_cpu/with_arch.
22708
22709 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
22710
22711 * ebitmap.c: Change calls to verify_popcount with calls to
22712 sbitmap_verify_popcount.
22713 (ebitmap_clear_bit): Fixed map->cacheindex test and
22714 map>cache update when bit clearing results in an empty
22715 element.
22716
22717 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
22718
22719 PR target/43154
22720 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
22721 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
22722 and support both V2DF and V2DI modes.
22723 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
22724 support both V2DF and V2DI modes.
22725 (general): Delete trailing whitespace from a few patterns.
22726
22727 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22728 V2DF/V2DI interleave high/low builtins.
22729
22730 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
22731 new VSX builtins.
22732
22733 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
22734 interleave high/low functions.
22735
22736 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
22737
22738 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
22739 #pragma extern_prefix.
22740
22741 2010-02-25 Jakub Jelinek <jakub@redhat.com>
22742
22743 PR debug/43166
22744 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
22745 BLKmode, assert op0 is a MEM and just adjust its mode.
22746
22747 PR debug/43165
22748 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
22749 if bitpos isn't multiple of mode's bitsize.
22750
22751 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
22752
22753 * c.opt (-ftemplate-depth=): New.
22754 (-ftemplate-depth-): Deprecate.
22755 * optc-gen.awk: Handle -ftemplate-depth=.
22756 * opth-gen.awk: Likewise.
22757 * c-opts.c (c_common_handle_option): Likewise.
22758 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
22759
22760 2010-02-24 Jason Merrill <jason@redhat.com>
22761
22762 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
22763
22764 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22765
22766 * cfg.c (alloc_aux_for_block): Remove inline.
22767 (alloc_aux_for_edge): Likewise.
22768
22769 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22770
22771 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
22772
22773 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22774
22775 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
22776 * config/i386/sol2-gas.h: New file.
22777 * config.gcc (i[34567]86-*-solaris2*): Use it.
22778
22779 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
22780
22781 PR c/43128
22782 * c-typeck.c (ep_convert_and_check): New.
22783 (build_conditional_expr): Use it.
22784 (build_binary_op): Likewise.
22785
22786 2010-02-24 Jakub Jelinek <jakub@redhat.com>
22787
22788 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
22789
22790 PR debug/43150
22791 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
22792 bounds even for -O+.
22793 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
22794 expr needs to have DECL_NAME set.
22795
22796 2010-02-24 Nick Clifton <nickc@redhat.com>
22797
22798 * config/mep/mep.c: Include gimple.h.
22799 (mep_function_uses_sp): Delete unused function.
22800 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
22801 parameters. Use unsigned integers to count args. Return a
22802 NULL_RTX instead of an error_mark_node. Toidy up formatting.
22803
22804 2010-02-23 Jakub Jelinek <jakub@redhat.com>
22805
22806 PR target/43107
22807 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
22808 greater or equal to nelt instead of 2 * nelt.
22809 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
22810 with nelt - 1.
22811
22812 2010-02-23 Jason Merrill <jason@redhat.com>
22813
22814 PR debug/42800
22815 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
22816 in cfun->local_decls even if they have register types.
22817
22818 PR c++/42837
22819 * stor-layout.c (place_field): Don't warn about unnecessary
22820 DECL_PACKED if the type is packed.
22821
22822 2010-02-23 Jakub Jelinek <jakub@redhat.com>
22823
22824 PR target/43139
22825 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
22826 GOTOFF relocs, even when the base reg isn't pic pointer.
22827
22828 2010-02-23 Michael Matz <matz@suse.de>
22829
22830 PR debug/43077
22831 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
22832 (expand_gimple_basic_block): Generate and use debug temps if there
22833 are debug uses left after the last real use of TERed ssa names.
22834 Unlink debug immediate uses when they are expanded.
22835
22836 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
22837
22838 PR 43123
22839 * config/i386/i386.c (override_options): Reorganise to provide
22840 better error messages.
22841
22842 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
22843
22844 PR middle-end/43083
22845 * graphite-scop-detection.c (create_single_exit_edge): Move
22846 the call to find_single_exit_edge to....
22847 (create_sese_edges): ...here. Don't handle multiple edges
22848 exiting the function.
22849 (build_graphite_scops): Don't handle multiple edges
22850 exiting the function.
22851
22852 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
22853
22854 PR middle-end/43097
22855 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
22856 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
22857
22858 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
22859
22860 PR middle-end/43026
22861 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
22862
22863 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
22864
22865 PR c++/43126
22866 * c-typeck.c (convert_arguments): Print declaration location.
22867 * c-common.c (validate_nargs): Rename as
22868 builtin_function_validate_nargs.
22869 (check_builtin_function_arguments): Update.
22870
22871 2010-02-22 Richard Guenther <rguenther@suse.de>
22872
22873 PR lto/43045
22874 * tree-inline.c (declare_return_variable): Use the type of
22875 the call stmt lhs if available.
22876
22877 2010-02-22 Duncan Sands <baldrick@free.fr>
22878
22879 * passes.c (register_pass): Always consider all pass lists when
22880 ref_pass_instance_number is zero.
22881
22882 2010-02-22 Richard Guenther <rguenther@suse.de>
22883
22884 PR tree-optimization/42749
22885 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
22886 parameter. Do arithmetic in the original type.
22887 (update_accumulator_with_ops): Likewise.
22888 (adjust_accumulator_values): Adjust.
22889
22890 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22891
22892 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
22893 (QI to BLKmode splitter): New splitter.
22894
22895 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
22896
22897 * config/i386/i386.c (initial_ix86_tune_features): Turn on
22898 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
22899
22900 2010-02-22 Richard Guenther <rguenther@suse.de>
22901
22902 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
22903
22904 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
22905
22906 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
22907 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
22908 ($(T)crti.o, $(T)crtn.o): Remove rules.
22909
22910 2010-02-21 Tobias Burnus <burnus@net-b.de>
22911
22912 PR fortran/35259
22913 * doc/invoke.texi (-fassociative-math): Document that this
22914 option is automatically enabled for Fortran.
22915
22916 2010-02-20 David S. Miller <davem@davemloft.net>
22917
22918 * configure.ac: Test if linker and assembler properly support
22919 GOTDATA_OP relocations.
22920 * configure: Rebuild.
22921 * config.in: Likewise.
22922 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
22923 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
22924 (movsi_high_pic): Likewise.
22925 (movdi_lo_sum_pic): Likewise.
22926 (movdi_high_pic): Likewise.
22927 (movsi_pic_gotdata_op): New pattern.
22928 (movdi_pic_gotdata_op): Likewise.
22929 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
22930 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
22931
22932 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
22933
22934 PR target/43067
22935 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
22936 attribute to ssemul.
22937 (xop_mulv2div2di3_high): Ditto.
22938
22939 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
22940
22941 PR c++/35669
22942 * c.opt (Wconversion-null): New option.
22943 * doc/invoke.texi (Wconversion-null): Document.
22944
22945 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
22946
22947 * common.opt (Wlarger-than-): Add Undocumented.
22948
22949 2010-02-19 Mike Stump <mikestump@comcast.net>
22950
22951 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
22952
22953 2010-02-19 Jason Merrill <jason@redhat.com>
22954
22955 PR target/40332
22956 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
22957 * configure: Likewise.
22958
22959 2010-02-20 Alan Modra <amodra@gmail.com>
22960
22961 PR middle-end/42344
22962 * cgraph.h (cgraph_make_decl_local): Declare.
22963 * cgraph.c (cgraph_make_decl_local): New function.
22964 (cgraph_make_node_local): Use it.
22965 * cgraphunit.c (cgraph_function_versioning): Likewise.
22966 * ipa.c (function_and_variable_visibility): Likewise.
22967
22968 2010-02-19 Jakub Jelinek <jakub@redhat.com>
22969
22970 PR bootstrap/43121
22971 * except.c (sjlj_emit_function_enter): Don't call
22972 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
22973 directly.
22974 * rtl.h (add_reg_br_prob_note): Remove prototype.
22975
22976 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
22977
22978 PR 41779
22979 * c-common.c (conversion_warning): Remove widening conversions
22980 before checking the conversion of integers to reals.
22981
22982 2010-02-19 Mike Stump <mikestump@comcast.net>
22983
22984 PR middle-end/43125
22985 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
22986
22987 PR objc/43061
22988 * cgraphunit.c (process_function_and_variable_attributes): Check
22989 DECL_PRESERVE_P instead of looking up attribute "used".
22990 * ipa-pure-const.c (check_decl): Likewise.
22991 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
22992 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
22993 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
22994 instead of attribute "used".
22995 * config/sol2-c.c (solaris_pragma_init): Likewise.
22996 (solaris_pragma_fini): Likewise.
22997
22998 2010-02-19 Jakub Jelinek <jakub@redhat.com>
22999
23000 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
23001 Use XCNEW instead of xcalloc.
23002 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
23003 XNEW instead of xmalloc.
23004 (get_fields): Use XNEWVEC instead of xmalloc.
23005
23006 PR debug/43084
23007 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
23008 populate vars array.
23009 (create_new_general_access): For debug stmts just reset value.
23010 (get_stmt_accesses): For accesses within debug stmts just record them
23011 using add_access_to_acc_sites instead of preventing the peeling or
23012 counting them as accesses.
23013
23014 PR middle-end/42233
23015 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
23016
23017 2010-02-19 Richard Guenther <rguenther@suse.de>
23018
23019 PR tree-optimization/42916
23020 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
23021 instructions.
23022
23023 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
23024
23025 * configure.ac: Replace all uses of changequote in macro arguments
23026 with proper quoting.
23027
23028 2010-02-19 Jakub Jelinek <jakub@redhat.com>
23029
23030 PR middle-end/42233
23031 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
23032
23033 2010-02-19 Richard Guenther <rguenther@suse.de>
23034
23035 PR tree-optimization/42944
23036 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
23037 test for aliasing with errno.
23038
23039 2010-02-19 Jakub Jelinek <jakub@redhat.com>
23040
23041 PR middle-end/42233
23042 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
23043 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
23044 * dojump.c: Include output.h.
23045 (inv): New inline function.
23046 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
23047 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
23048 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
23049 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
23050 argument, pass it down to other calls.
23051 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
23052 add REG_BR_PROB note to the conditional jump.
23053 * cfgexpand.c (add_reg_br_prob_note): Removed.
23054 (expand_gimple_cond): Don't call it, add the probability
23055 as last argument to jumpif_1/jumpifnot_1.
23056 * Makefile.in (dojump.o): Depend on output.h.
23057 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
23058 callers.
23059 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
23060 * stmt.c (do_jump_if_equal): Likewise.
23061 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
23062 * loop-unswitch.c (compare_and_jump_seq): Likewise.
23063 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
23064 Likewise.
23065 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
23066 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
23067 jumpifnot_1 callers.
23068 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
23069 callers.
23070 (store_expr): Adjust jumpifnot caller.
23071 (store_constructor): Adjust jumpif caller.
23072
23073 PR middle-end/42233
23074 * gimplify.c (gimple_boolify): For __builtin_expect call
23075 gimple_boolify also on its first argument.
23076
23077 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
23078
23079 * configure.ac (gnu-unique-object): Wrap regexps using [] in
23080 changequote block.
23081 (__stack_chk_fail): Ditto. Remove quadrigraphs.
23082 * configure: Regenerated.
23083
23084 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23085
23086 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
23087 lang_hooks.types_compatible_p instead of comptypes.
23088
23089 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
23090
23091 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
23092 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
23093 if __prefer_thumb__ is defined.
23094
23095 2010-02-18 Martin Jambor <mjambor@suse.cz>
23096
23097 PR tree-optimization/43066
23098 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
23099 array with zero-sized element type.
23100
23101 2010-02-18 Jakub Jelinek <jakub@redhat.com>
23102
23103 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
23104 rtx, allocate struct var_loc_node here and return it to the
23105 caller, and only if it is actually needed.
23106 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
23107 move it earlier and return immediately if it returns NULL.
23108
23109 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
23110
23111 * config/sparc/gas.h: New file. Restore
23112 TARGET_ASM_NAMED_SECTION to its ELF default.
23113 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
23114 check !HAVE_GNU_AS.
23115 * config/sparc/sparc.c (sparc_elf_asm_named_section):
23116 Likewise. Add ATTRIBUTE_UNUSED to prototype.
23117 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
23118 after sparc/sysv4.h.
23119
23120 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
23121
23122 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
23123
23124 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
23125
23126 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
23127 patterns from predicated pattern.
23128
23129 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
23130
23131 PR target/43103
23132 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
23133 for insn mnemonic suffix.
23134
23135 2010-02-17 Richard Guenther <rguenther@suse.de>
23136
23137 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
23138 to loop PHI nodes.
23139
23140 2010-02-17 Jakub Jelinek <jakub@redhat.com>
23141
23142 PR debug/42918
23143 * caller-save.c (save_call_clobbered_regs): If BB ends with
23144 a DEBUG_INSN, move any notes in between last real insn and the last
23145 DEBUG_INSN after the last DEBUG_INSN.
23146
23147 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
23148
23149 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
23150 Fix return type. Fix argument type. Explain meaning of return value.
23151
23152 2010-02-16 Richard Guenther <rguenther@suse.de>
23153
23154 PR tree-optimization/41043
23155 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
23156 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
23157 statements ...
23158 (vrp_visit_phi_node): ... but only for loop PHI nodes.
23159
23160 2010-02-16 Ira Rosen <irar@il.ibm.com>
23161
23162 PR tree-optimization/43074
23163 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
23164 * tree-vect-loop.c (vect_analyze_loop_operations): Add
23165 vectorizable cycles in hybrid SLP check.
23166 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
23167
23168 2010-02-16 Richard Guenther <rguenther@suse.de>
23169
23170 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
23171 (true_dependence): If memrefs_conflict_p computes must-alias
23172 trust it. Move TBAA check after offset-based disambiguation.
23173 (canon_true_dependence): Likewise.
23174
23175 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
23176
23177 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
23178 * doc/invoke.texi: Document it.
23179 * var-tracking.c: Include toplev.h and params.h.
23180 (vt_find_locations): Return bool indicating success. Compute
23181 hash sizes unconditionally. Check new parameter, report.
23182 (variable_tracking_main_1): Check vt_find_locations results and
23183 retry. Renamed from...
23184 (variable_tracking_main): ... this. New wrapper to preserve
23185 flag_var_tracking_assignments.
23186 * Makefile.in (var-tracking.o): Adjust dependencies.
23187
23188 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
23189 Jakub Jelinek <jakub@redhat.com>
23190
23191 PR target/42854
23192 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
23193 if weak_import attribute is present.
23194 * config/darwin.c (machopic_select_section): Likewise.
23195
23196 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
23197
23198 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
23199 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
23200 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
23201 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
23202
23203 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
23204 types.
23205
23206 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
23207 Fix argument types.
23208
23209 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
23210 Rewrite text to refer to the names.
23211
23212 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
23213
23214 * config/i386/i386-builtin-types.def
23215 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
23216 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
23217 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
23218 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
23219 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
23220 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
23221 IX86_BUILTIN_VPERMIL2PS256.
23222 (MULTI_ARG_4_DF2_DI_I): Defined.
23223 (MULTI_ARG_4_DF2_DI_I1): Defined.
23224 (MULTI_ARG_4_SF2_SI_I): Defined.
23225 (MULTI_ARG_4_SF2_SI_I1): Defined.
23226 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
23227 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
23228 __builtin_ia32_vpermil2ps256.
23229 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
23230 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
23231 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
23232 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
23233 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
23234 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
23235 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
23236 CODE_FOR_xop_vpermil2v8sf3.
23237 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
23238 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
23239 * config/i386/xopintrin.h (_mm_permute2_pd): New.
23240 (_mm256_permute2_pd): New.
23241 (_mm_permute2_ps): New.
23242 (_mm256_permute2_ps): New.
23243
23244 2010-02-15 Nick Clifton <nickc@redhat.com>
23245
23246 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
23247 boolean parameters. Use emit_jump_insn when emitting a pop
23248 instruction containing a return insn.
23249 (push): Use 'true' rather than '1' as second parameter to F.
23250 (h8300_expand_prologue): Likewise.
23251 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
23252 (h8300_expand_epilogue): Likewise.
23253
23254 2010-02-15 Richard Guenther <rguenther@suse.de>
23255
23256 PR middle-end/43068
23257 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
23258 if that is zero.
23259
23260 2010-02-15 Nick Clifton <nickc@redhat.com>
23261
23262 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
23263 delta.
23264
23265 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
23266
23267 * intl.c (fake_ngettext): New function.
23268 * intl.h (fake_ngettext): Declare.
23269 (ngettext): Define macro.
23270 * collect2.c (notice_translated): New function.
23271 (main): Use notice_translated and ngettext.
23272 * collect2.h (notice_translated): Declare.
23273
23274 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
23275
23276 * reorg.c (delete_computation): Comment fixes.
23277 * caller-save.c (setup_save_areas): Idem.
23278 * sel-sched-dump.c (dump_lv_set): Idem.
23279 * rtl.def: Idem.
23280
23281 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23282
23283 * config/s390/s390.c (s390_sched_init): New function.
23284 (TARGET_SCHED_INIT): Target hook defined.
23285
23286 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
23287 Jack Howarth <howarth@bromo.med.uc.edu>
23288 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
23289
23290 PR target/42982
23291 Partial revert of unintended change in fix for PR41605.
23292 * config/darwin.h: Fix typo.
23293 * config/darwin9.h: Same.
23294
23295 2010-02-11 Jakub Jelinek <jakub@redhat.com>
23296
23297 * c-pch.c (pch_init): Clear v.
23298
23299 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
23300
23301 PR middle-end/42930
23302 * graphite-scop-detection.c (graphite_can_represent_scev): Call
23303 graphite_can_represent_init for MULT_EXPR.
23304
23305 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
23306
23307 PR middle-end/42914
23308 PR middle-end/42530
23309 * graphite-sese-to-poly.c (remove_phi): New.
23310 (translate_scalar_reduction_to_array): Call remove_phi.
23311
23312 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
23313
23314 PR middle-end/42771
23315 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
23316 * graphite-clast-to-gimple.h (gloog): Update declaration.
23317 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
23318 * graphite-poly.h (struct poly_bb): Add missing comments.
23319 (struct scop): Add poly_scop_p field.
23320 (POLY_SCOP_P): New.
23321 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
23322 * graphite.c (graphite_transform_loops): Build the polyhedral
23323 representation for each scop before code generation.
23324 * sese.c (rename_variables_in_operand): Removed.
23325 (rename_variables_in_expr): Return the renamed expression.
23326 (rename_sese_parameters): New.
23327 * sese.h (rename_sese_parameters): Declared.
23328
23329 2010-02-11 Richard Guenther <rguenther@suse.de>
23330
23331 PR tree-optimization/42998
23332 * tree-ssa-pre.c (create_expression_by_pieces): Treat
23333 POINTER_PLUS_EXPR properly.
23334
23335 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
23336 Changpeng Fang <changpeng.fang@amd.com>
23337
23338 PR middle-end/40886
23339 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
23340 the cost of an IV candidate when the IV is used in a test against zero.
23341
23342 * gcc.dg/tree-ssa/ivopts-3.c: New.
23343
23344 2010-02-11 Richard Guenther <rguenther@suse.de>
23345
23346 PR lto/41664
23347 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
23348 pointer-vs-decl case by swapping refs. Handle some cases
23349 of pointer-vs-decl disambiguations more conservatively.
23350 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
23351 to false after expanding.
23352
23353 2010-02-11 Richard Guenther <rguenther@suse.de>
23354
23355 PR driver/43021
23356 * gcc.c (process_command): Handle LTO file@offset case more
23357 appropriately.
23358
23359 2010-02-11 Jakub Jelinek <jakub@redhat.com>
23360
23361 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
23362 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
23363 of DEBUG_INSNs.
23364 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
23365
23366 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
23367 if MEM's mode size isn't DWARF2_ADDR_SIZE.
23368 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
23369 Optimize eq/ne comparisons when both arguments are known to be
23370 zero-extended.
23371 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
23372 Don't mask operands unnecessarily if they are known to be already
23373 zero-extended.
23374
23375 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
23376
23377 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
23378 instead of loop.
23379
23380 2010-02-10 Richard Guenther <rguenther@suse.de>
23381
23382 PR tree-optimization/43017
23383 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
23384 for wrapping signed arithmetic.
23385
23386 2010-02-10 Jakub Jelinek <jakub@redhat.com>
23387
23388 PR debug/43010
23389 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
23390 if no debug info should be emitted for it.
23391
23392 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
23393
23394 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
23395 note when flag_exceptions is set.
23396
23397 2010-02-10 Duncan Sands <baldrick@free.fr>
23398
23399 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
23400
23401 2010-02-10 Richard Guenther <rguenther@suse.de>
23402
23403 PR c/43007
23404 * tree.c (get_unwidened): Handle constants.
23405 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
23406
23407 2010-02-10 Martin Jambor <mjambor@suse.cz>
23408
23409 PR lto/42985
23410 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
23411 check for variable argument counts independently.
23412
23413 2010-02-10 Christian Bruel <christian.bruel@st.com>
23414
23415 PR target/42841
23416 * config/sh/sh.c (find_barrier): Increase length for non delayed
23417 conditional branches.
23418
23419 2010-02-10 Christian Bruel <christian.bruel@st.com>
23420
23421 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
23422
23423 2010-02-10 Jakub Jelinek <jakub@redhat.com>
23424
23425 * builtins.c (set_builtin_user_assembler_name): Also handle
23426 ffs if int is smaller than word.
23427
23428 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
23429
23430 PR middle-end/42973
23431 * ira-conflicts.c (get_dup): Remove.
23432 (process_reg_shuffles): Add new parameter. Use it as an
23433 additional guard for copy generation.
23434 (add_insn_allocno_copies): Rewrite.
23435
23436 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
23437
23438 * common.opt (fsched2-use-traces): Preserved for backward
23439 compatibility.
23440 * doc/invoke.texi: Remove the documentation about option
23441 -fsched2-use-traces.
23442 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
23443 flag_sched2_use_traces.
23444 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
23445 the backward compatibility flag section.
23446
23447 2010-02-09 Richard Guenther <rguenther@suse.de>
23448
23449 PR tree-optimization/43008
23450 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
23451 make HEAP variables initialized from global memory if they
23452 are not known builtin functions.
23453 (find_func_aliases): Adjust.
23454
23455 2010-02-09 Richard Guenther <rguenther@suse.de>
23456
23457 PR tree-optimization/43000
23458 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
23459 arithmetic manually.
23460
23461 2010-02-08 Jakub Jelinek <jakub@redhat.com>
23462
23463 PR tree-optimization/42931
23464 * tree-loop-linear.c (try_interchange_loops): Don't call
23465 double_int_mul if estimated_loop_iterations failed.
23466
23467 2010-02-08 Martin Jambor <mjambor@suse.cz>
23468
23469 PR middle-end/42898
23470 * tree-sra.c (build_accesses_from_assign): Do not mark in
23471 should_scalarize_away_bitmap if stmt has volatile ops.
23472 (sra_modify_assign): Do not process assigns piecemeal if if stmt
23473 has volatile ops.
23474
23475 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
23476
23477 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
23478
23479 2010-02-07 Adam Nemet <adambnmet@gmail.com>
23480
23481 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
23482 before the pattern.
23483
23484 2010-02-07 Andrew Pinski <pinskia@gmail.com>
23485
23486 PR middle-end/42946
23487 * df-core.c (df_finish_pass): Change type of saved_flags to int.
23488
23489 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
23490
23491 PR middle-end/42988
23492 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
23493 to unknown_dependence.
23494 (graphite_legal_transform_dr): Handle the unknown_dependence.
23495 (graphite_carried_dependence_level_k): Same.
23496
23497 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
23498
23499 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
23500
23501 2010-02-07 Richard Guenther <rguenther@suse.de>
23502
23503 PR middle-end/42991
23504 * expr.c (get_inner_reference): Always initialize *pbitsize.
23505
23506 2010-02-07 Richard Guenther <rguenther@suse.de>
23507
23508 PR middle-end/42956
23509 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
23510 new ARRAY_REFs on variable size element or minimal index arrays.
23511 Complete.
23512 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
23513 gimple_fold_indirect_ref.
23514
23515 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
23516
23517 PR target/42957
23518 * arm.c (arm_override_options): Just return if the user has specified
23519 an invalid fpu name.
23520
23521 2010-02-03 Jason Merrill <jason@redhat.com>
23522
23523 PR c++/42870
23524 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
23525 i386_pe_maybe_record_exported_symbol.
23526
23527 2010-02-05 Steve Ellcey <sje@cup.hp.com>
23528
23529 PR target/42924
23530 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
23531 (pa_delegitimize_address): New function.
23532
23533 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
23534
23535 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
23536 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
23537
23538 2010-02-05 Richard Guenther <rguenther@suse.de>
23539
23540 PR lto/42762
23541 * lto-streamer-in.c (get_resolution): Deal with references
23542 to undefined functions.
23543
23544 2010-02-05 Richard Guenther <rguenther@suse.de>
23545
23546 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
23547 (fold_const_aggregate_ref): Likewise.
23548 (ccp_fold_stmt): Substitute loads.
23549 (maybe_fold_reference): Verify types before substituting.
23550 Unshare properly.
23551 (fold_gimple_assign): Unshare properly.
23552 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
23553
23554 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
23555
23556 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
23557 for rs6000_gen_cell_microcode.
23558
23559 2010-02-04 Richard Guenther <rguenther@suse.de>
23560
23561 PR rtl-optimization/42952
23562 * dse.c (const_or_frame_p): Remove MEM handling.
23563
23564 2010-02-04 Nick Clifton <nickc@redhat.com>
23565
23566 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
23567 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
23568 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
23569 (mn10300_asm_output_mi_thunk): New function.
23570 (mn10300_can_output_mu_thunk): New function.
23571 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
23572 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
23573 (FUNCTION_ARG): Delete incorrect comment.
23574
23575 2010-02-03 Jason Merrill <jason@redhat.com>
23576
23577 PR c++/40138
23578 * fold-const.c (operand_equal_p): Handle erroneous types.
23579
23580 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
23581
23582 * config/h8300/h8300.md (can_delay): Fix attibute condition.
23583
23584 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
23585
23586 PR rtl-optimization/42941
23587 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
23588 of xmalloc.
23589
23590 2010-02-03 Jason Merrill <jason@redhat.com>
23591
23592 PR c++/35652
23593 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
23594
23595 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
23596
23597 PR debug/42896
23598 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
23599 (cselib_reset_table): Renamed from...
23600 (cselib_reset_table_with_next_value): ... this.
23601 (cselib_get_next_uid): Renamed from...
23602 (cselib_get_next_unknown_value): ... this.
23603 * cselib.c (next_uid): Renamed from...
23604 (next_unknown_value): ... this.
23605 (cselib_clear_table): Adjust.
23606 (cselib_reset_table): Adjust. Renamed from...
23607 (cselib_reset_table_with_next_value): ... this.
23608 (cselib_get_next_uid): Adjust. Renamed from...
23609 (cselib_get_next_unknown_value): ... this.
23610 (get_value_hash): Use hash.
23611 (cselib_hash_rtx): Likewise.
23612 (new_cselib_val): Adjust. Set and dump uid.
23613 (cselib_lookup_mem): Pass next_uid as hash.
23614 (cselib_subst_to_values): Likewise.
23615 (cselib_log_lookup): Dump uid.
23616 (cselib_lookup): Pass next_uid as hash. Adjust.
23617 (cselib_process_insn): Adjust.
23618 (cselib_init): Initialize next_uid.
23619 (cselib_finish): Adjust.
23620 (dump_cselib_table): Likewise.
23621 * dse.c (canon_address): Dump value uid.
23622 * print-rtl.c (print_rtx): Print value uid.
23623 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
23624 (dvuid): New type.
23625 (dv_uid): New function, sort of renamed from...
23626 (dv_htab_hash): ... this, reimplemented in terms of it and...
23627 (dv_uid2hash): ... this. New.
23628 (variable_htab_eq): Drop excess assertions.
23629 (tie_break_pointers): Removed.
23630 (canon_value_cmp): Compare uids.
23631 (variable_post_merge_New_vals): Print uids.
23632 (vt_add_function_parameters): Adjust.
23633 (vt_initialize): Reset table. Adjust.
23634
23635 2010-02-03 Richard Guenther <rguenther@suse.de>
23636
23637 PR tree-optimization/42944
23638 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
23639 (call_may_clobber_ref_p_1): Likewise. Properly handle
23640 malloc and calloc clobbering errno.
23641
23642 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
23643
23644 * doc/invoke.texi: Fix name of sched1 dump.
23645
23646 * opts.c (decode_options): Set flag_tree_switch_conversion
23647 only conditionally on optimize >= 2.
23648
23649 * gcse.c: Assorted comment fixes in pass description.
23650
23651 2010-02-03 Anthony Green <green@moxielogic.com>
23652
23653 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
23654 nop padding in order to maintain alignment of storage location of
23655 target function address.
23656 (moxie_trampoline_init): Store target function address at newly
23657 aligned location.
23658 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
23659 to 32.
23660 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
23661
23662 2010-02-03 Richard Guenther <rguenther@suse.de>
23663
23664 PR middle-end/42927
23665 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
23666
23667 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23668
23669 * config.gcc: Reenable check for obsolete targets.
23670 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
23671 mips-sgi-irix6.[0-4]*.
23672
23673 2010-02-02 Nick Clifton <nickc@redhat.com>
23674
23675 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
23676 constant size of 4 as being the same as 0.
23677 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
23678 can take values in the range 0..4.
23679
23680 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
23681
23682 PR java/41991
23683 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
23684 as _darwin10_Unwind_FindEnclosingFunction().
23685 * libgcc-libsystem.ver: New.
23686
23687 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
23688
23689 PR target/41399
23690 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
23691 implicitly set registers.
23692
23693 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
23694
23695 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
23696 (arm_override_options): Allow automatic selection of the thread
23697 pointer register if thumb2.
23698 (legitimize_pic_address): Improve code sequences for Thumb2.
23699 (arm_call_tls_get_addr): Likewise.
23700 (legitimize_tls_address): Likewise.
23701 * arm.md (pic_load_addr_arm): Delete. Replace with ...
23702 (pic_load_addr_32bit): ... this. New named pattern.
23703 * thumb2.md (pic_load_addr_thumb2): Delete.
23704 (pic_load_dot_plus_four): Delete.
23705 (tls_load_dot_plus_four): New named pattern.
23706
23707 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23708
23709 PR libgomp/29986
23710 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
23711 Document fix for TLS bug.
23712
23713 2010-01-31 Richard Guenther <rguenther@suse.de>
23714
23715 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
23716 conservatively correct.
23717
23718 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23719
23720 PR target/42850
23721 Revert:
23722 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23723
23724 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
23725
23726 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23727
23728 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
23729
23730 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
23731
23732 * config.gcc: Adjust order of makefile fragments for mingw targets.
23733
23734 2010-01-31 Richard Guenther <rguenther@suse.de>
23735
23736 PR middle-end/42898
23737 * gimplify.c (gimplify_init_constructor): For volatile LHS
23738 initialize a temporary.
23739
23740 2010-01-31 Matthias Klose <doko@ubuntu.com>
23741
23742 * configure.ac: Fix __stack_chk_fail check for cross builds configured
23743 --with-headers
23744 * configure: Regenerate.
23745
23746 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
23747
23748 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
23749 the same alias set and their sizes different constantness.
23750 (aliasing_component_refs_p): Revert 2009-10-24 change.
23751
23752 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23753
23754 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
23755 unused.
23756
23757 2010-01-29 Richard Guenther <rguenther@suse.de>
23758
23759 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
23760 Assert we successfully updated the call.
23761
23762 2010-01-29 Jakub Jelinek <jakub@redhat.com>
23763
23764 PR rtl-optimization/42889
23765 * df.h (df_set_bb_dirty_nonlr): New prototype.
23766 * df-core.c (df_set_bb_dirty_nonlr): New function.
23767 * df-scan.c (df_insn_rescan): Call it instead of
23768 df_set_bb_dirty for DEBUG_INSNs.
23769
23770 2010-01-29 Richard Guenther <rguenther@suse.de>
23771
23772 PR middle-end/37448
23773 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
23774 quadratic behavior in most cases.
23775
23776 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
23777
23778 PR target/42891
23779 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
23780 in the call to gen_x86_movsicc_0_m1.
23781
23782 2010-01-28 Richard Guenther <rguenther@suse.de>
23783
23784 PR tree-optimization/42871
23785 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
23786
23787 2010-01-28 Richard Guenther <rguenther@suse.de>
23788
23789 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
23790 into call arguments.
23791
23792 2010-01-28 Richard Guenther <rguenther@suse.de>
23793
23794 PR middle-end/42883
23795 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
23796 the forwarder if the destination is an EH landing pad.
23797
23798 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
23799
23800 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
23801 block list passed to gimple_duplicate_sese_tail.
23802 (parallelize_loops): Avoid parallelization when the function
23803 has_nonlocal_label.
23804 Avoid parallelization when the preheader is IRREDUCIBLE.
23805 Try to optimize when estimated_loop_iterations_int is unresolved.
23806 Add the loop's location to the dump file.
23807 * tree-cfg.c (add_phi_args_after_redirect): Remove.
23808 (gimple_duplicate_sese_tail): Remove the check for the latch.
23809 Redirect nexits to the exit block.
23810 Remove handling of the incoming edges to the latch.
23811 Redirect the backedge from the copied latch to the exit bb.
23812
23813 2010-01-28 Michael Matz <matz@suse.de>
23814
23815 PR target/42881
23816 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
23817 Wrap force_reg into a sequence, emit it before user.
23818
23819 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
23820
23821 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
23822 (arm_rev): New.
23823 (arm_legacy_rev): Likewise.
23824 (thumb_legacy_rev): Likewise.
23825
23826 2010-01-27 Jakub Jelinek <jakub@redhat.com>
23827
23828 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
23829 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
23830 on MEM's address failed, try avoid_constant_pool_reference and
23831 recurse if it returned something different.
23832 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
23833 address, try avoid_constant_pool_reference and recurse if it
23834 returned something different.
23835 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
23836 address and avoid_constant_pool_reference returned something
23837 different, don't set have_address.
23838
23839 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
23840
23841 PR debug/42861
23842 * var-tracking.c (val_store): Add modified argument, obey it.
23843 Adjust callers.
23844 (count_uses): Move down logging of main.
23845 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
23846 don't need resolution.
23847 (emit_notes_in_bb): Likewise.
23848
23849 2010-01-27 Richard Guenther <rguenther@suse.de>
23850
23851 PR middle-end/42878
23852 * tree-inline.c (remap_decl): Delay remapping of SSA name
23853 default definitions until we need them.
23854
23855 2010-01-27 Jakub Jelinek <jakub@redhat.com>
23856
23857 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
23858 (rs6000_delegitimize_address): New function.
23859
23860 * config/s390/s390.c (s390_delegitimize_address): Call
23861 delegitimize_mem_from_attrs.
23862
23863 PR middle-end/42874
23864 * tree-inline.c (cannot_copy_type_1): Removed.
23865 (copy_forbidden): Don't forbid copying of functions containing
23866 records/unions with variable length fields.
23867
23868 2010-01-27 Christian Bruel <christian.bruel@st.com>
23869
23870 Revert:
23871 PR target/42841
23872 * config/sh/sh.c (find_barrier): Increase length for non delayed
23873 conditional branches.
23874
23875 2010-01-27 Matthias Klose <doko@ubuntu.com>
23876
23877 * configure.ac (gnu-unique-object): Fix ldd version check.
23878 * configure: Regenerate.
23879
23880 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23881
23882 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
23883 HAVE_GNU_AS value.
23884 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
23885 Test for HAVE_GNU_AS value.
23886
23887 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23888
23889 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
23890 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
23891 INT64_TYPE): Define.
23892 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
23893 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
23894 INT_LEAST64_TYPE): Define.
23895 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
23896 UINT_LEAST64_TYPE): Define.
23897 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
23898 INT_FAST64_TYPE): Define.
23899 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
23900 UINT_FAST64_TYPE): Define.
23901 (INTMAX_TYPE, UINTMAX_TYPE): Define.
23902 (INTPTR_TYPE, UINTPTR_TYPE): Define.
23903 (SIG_ATOMIC_TYPE): Define.
23904
23905 2010-01-26 Richard Guenther <rguenther@suse.de>
23906
23907 * df-scan.c (df_scan_set_bb_info): Remove assert.
23908 (df_insn_rescan_debug_internal): Merge asserts.
23909 (df_install_ref): Likewise.
23910 (df_mark_reg): Use bitmap_set_range.
23911 (df_hard_reg_used_p): Remove assert.
23912 (df_hard_reg_used_count): Likewise.
23913
23914 2010-01-26 Richard Guenther <rguenther@suse.de>
23915
23916 PR rtl-optimization/42685
23917 * web.c (web_main): Ignore DEBUG_INSNs.
23918
23919 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
23920
23921 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
23922
23923 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
23924 Fix types of fndecl and arglist parameters.
23925
23926 2010-01-26 Richard Guenther <rguenther@suse.de>
23927
23928 PR middle-end/42806
23929 * tree-eh.c (unsplit_eh): Skip debug insns.
23930
23931 2010-01-26 Richard Guenther <rguenther@suse.de>
23932
23933 PR tree-optimization/42250
23934 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
23935
23936 2010-01-26 Jakub Jelinek <jakub@redhat.com>
23937
23938 PR fortran/42866
23939 * omp-low.c (expand_omp_sections): Only use single_pred if
23940 l2_bb is single_pred_p.
23941
23942 2010-01-25 Christian Bruel <christian.bruel@st.com>
23943
23944 PR target/42841
23945 * config/sh/sh.c (find_barrier): Increase length for non delayed
23946 conditional branches.
23947 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
23948
23949 2010-01-24 David S. Miller <davem@davemloft.net>
23950
23951 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
23952 define if not using GAS.
23953 * config/sparc/sparc.c (sparc_elf_asm_named_section):
23954 Likewise. Delete SECTION_MERGE code, which is only applicable
23955 when using GAS.
23956
23957 2010-01-24 Mark Mitchell <mark@codesourcery.com>
23958
23959 PR c++/42748
23960 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
23961 mangling of va_list in system headers.
23962
23963 2010-01-23 Toon Moene <toon@moene.org>
23964
23965 * tree-predcom.c (combine_chains): Return NULL, not false.
23966
23967 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
23968
23969 * tree-loop-distribution.c (distribute_loop): Fix declaration and
23970 initialization of variable res to agree with return type.
23971
23972 2010-01-22 Steve Ellcey <sje@cup.hp.com>
23973
23974 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
23975 * tree-sra.c: Add include of expr.h.
23976
23977 2010-01-22 Jakub Jelinek <jakub@redhat.com>
23978
23979 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
23980 insert the debug stmt on the single non-EH edge from the stmt.
23981
23982 2010-01-22 Richard Henderson <rth@redhat.com>
23983
23984 PR tree-opt/42833
23985 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
23986 the RHS until after generate_subtree_copies has insertted its
23987 code before the current statement.
23988
23989 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
23990
23991 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
23992
23993 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
23994
23995 2010-01-21 Martin Jambor <mjambor@suse.cz>
23996
23997 PR tree-optimization/42585
23998 * tree-sra.c (struct access): New field grp_total_scalarization.
23999 (dump_access): Dump the new field.
24000 (should_scalarize_away_bitmap): New variable.
24001 (cannot_scalarize_away_bitmap): Likewise.
24002 (sra_initialize): Allocate new bitmaps.
24003 (sra_deinitialize): Free new bitmaps.
24004 (create_access_1): New function.
24005 (create_access): Parts moved to create_access_1.
24006 (type_consists_of_records_p): New function.
24007 (completely_scalarize_record): Likewise.
24008 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
24009 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
24010 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
24011 access.
24012 (analyze_all_variable_accesses): Completely scalarize small eligible
24013 records.
24014
24015 2010-01-21 Martin Jambor <mjambor@suse.cz>
24016
24017 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
24018
24019 2010-01-21 Andrew Haley <aph@redhat.com>
24020
24021 * gcc.c (process_command): Move lang_specific_driver before
24022 setting cc_libexec_prefix.
24023
24024 2010-01-21 Richard Guenther <rguenther@suse.de>
24025
24026 PR middle-end/19988
24027 * fold-const.c (negate_expr_p): Pretend only negative
24028 real constants are easily negatable.
24029
24030 2010-01-20 Janis Johnson <janis187@us.ibm.com>
24031 Jason Merrill <jason@redhat.com>
24032
24033 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
24034 (TYPE_TRANSPARENT_AGGR): this, for union and record.
24035 * calls.c (initialize argument_information): Handle it.
24036 * c-common.c (handle_transparent_union_attribute): Use new name.
24037 * c-decl.c (finish_struct): Ditto.
24038 * c-typeck.c (type_lists_compatible_p): Ditto.
24039 (convert_for_assignment): Use new name and also handle record.
24040 * function.c (aggregate_value_p): Handle it.
24041 (pass_by_reference): Ditto.
24042 (assign_parm_data_types): Ditto.
24043 * print-tree.c (print_node): Ditto.
24044 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
24045 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
24046 * tree.c (first_field): New fn.
24047
24048 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
24049
24050 PR target/42818
24051 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
24052 even when linking statically, for now.
24053
24054 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
24055
24056 PR debug/42715
24057 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
24058 without a cselib val.
24059 (count_uses): Accept MO_VAL_SET with no val on stores.
24060 (add_stores): Likewise.
24061
24062 2010-01-20 Jakub Jelinek <jakub@redhat.com>
24063
24064 * var-tracking.c (check_value_val): Add a compile time assertion.
24065 (dv_is_decl_p): Simplify.
24066 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
24067 gcc_assert if ENABLE_CHECKING.
24068
24069 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
24070
24071 PR debug/42782
24072 * var-tracking.c: Include tree-flow.h.
24073 (mem_dies_at_call): New.
24074 (dataflow_set_preserve_mem_locs): Use it.
24075 (dataflow_set_remove_mem_locs): Likewise.
24076 (dump_var): Renamed from dump_variable. Adjust all callers.
24077 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
24078 * Makefile.in (var-tracking.o): Adjust deps.
24079
24080 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
24081
24082 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
24083
24084 2010-01-20 Richard Guenther <rguenther@suse.de>
24085
24086 PR tree-optimization/42717
24087 * tree-ssa-dce.c (get_live_post_dom): Remove.
24088 (forward_edge_to_pdom): Take an arbitrary edge to copy
24089 degenerate PHI args from.
24090 (remove_dead_stmt): Use the first post-dominator even if it
24091 does not contain live statements as redirection destination.
24092
24093 2010-01-20 Richard Guenther <rguenther@suse.de>
24094
24095 * tree-inline.c (estimate_num_insns): Handle EH builtins.
24096
24097 2010-01-20 Jakub Jelinek <jakub@redhat.com>
24098
24099 * sel-sched.c (create_speculation_check): Remove set but not used
24100 variable twin.
24101 (try_transformation_cache): Remove set but not used variable ds.
24102 (calculate_privileged_insns): Remove set but not used variables
24103 cur_insn and min_spec_insn.
24104 (find_best_expr): Remove set but not used variable avail_n.
24105 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
24106 variable e.
24107 * cgraphunit.c (assemble_thunk): Remove set but not used variable
24108 false_label.
24109 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
24110 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
24111 new_scop_exit_edge.
24112
24113 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
24114
24115 PR bootstrap/42786
24116 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
24117 cpu types. Add support for *-sse3 cpu types.
24118 (x86_64-*-*): Ditto.
24119
24120 2010-01-20 Jakub Jelinek <jakub@redhat.com>
24121
24122 PR middle-end/42803
24123 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
24124 argument, call initializer_constant_valid_p_1 instead of
24125 initializer_constant_valid_p, pass CACHE to it, return NULL
24126 immediately if first call returns NULL.
24127 (initializer_constant_valid_p_1): New function.
24128 (initializer_constant_valid_p): Use it.
24129
24130 2010-01-20 Thomas Quinot <quinot@adacore.com>
24131
24132 * tree.def (PLACEHOLDER_EXPR): Fix comment.
24133
24134 2010-01-20 Jakub Jelinek <jakub@redhat.com>
24135
24136 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
24137 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
24138 (loc_list_from_tree): Don't handle unsigned division. Handle
24139 signed modulo using DW_OP_{over,over,div,mul,minus}.
24140 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
24141 modulo instead of signed.
24142
24143 2010-01-20 DJ Delorie <dj@redhat.com>
24144
24145 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
24146 (Fpa): Pass it
24147 (h8300_emit_stack_adjustment): Propogate it.
24148 (push): Pass it.
24149 (h8300_expand_prologue): Likewise.
24150 (h8300_expand_epilogue): Likewise.
24151
24152 2010-01-19 Michael Matz <matz@suse.de>
24153
24154 PR tree-optimization/41783
24155 * tree-data-ref.c (toplevel): Include flags.h.
24156 (dump_data_dependence_relation): Also dump the inputs if the
24157 result will be unknown.
24158 (split_constant_offset_1): Look through some conversions.
24159 * tree-predcom.c (determine_roots_comp): Restart a new chain if
24160 the offset from last element is too large.
24161 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
24162 (reassociate_to_the_same_stmt): Handle vector registers.
24163 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
24164 (e.g. conversions).
24165 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
24166 wide_prolog_niters argument, emit widening instructions.
24167 (vect_do_peeling_for_alignment): Adjust caller, use widened
24168 variant of the iteration cound.
24169 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
24170
24171 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24172
24173 PR target/38697
24174 * config/arm/neon-testgen.m (emit_automatics): New parameter
24175 features. Adjust for Fixed_return_reg feature.
24176 (test_intrinsic): Call emit_automatics with new feature.
24177 * config/arm/neon.ml: Update copyright years.
24178 (features): New Fixed_return_reg feature.
24179 (ops): Update feature for Vget_low.
24180
24181 2010-01-19 Jakub Jelinek <jakub@redhat.com>
24182
24183 PR tree-optimization/42719
24184 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
24185 stmt uses.
24186
24187 PR debug/42728
24188 * fwprop.c (all_uses_available_at): Return false if def_set dest
24189 is a REG that is used in def_insn.
24190
24191 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
24192
24193 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
24194
24195 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
24196 Add argument names.
24197
24198 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
24199
24200 * target.h (struct gcc_target) <secondary_reload>: Change type
24201 of last argument to secondary_reload_info *.
24202
24203 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
24204
24205 PR target/42774
24206 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
24207 memory references with unaligned offsets. Remove CQImode handling.
24208 (unaligned_memory_operand): Return 1 for memory references with
24209 unaligned offsets. Remove CQImode handling.
24210
24211 2010-01-18 Richard Guenther <rguenther@suse.de>
24212
24213 PR middle-end/39954
24214 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
24215 builtin calls.
24216
24217 2010-01-18 Richard Guenther <rguenther@suse.de>
24218
24219 PR tree-optimization/42781
24220 * tree-ssa-structalias.c (find_what_var_points_to): Skip
24221 restrict processing only if the original variable was artificial.
24222
24223 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
24224
24225 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
24226 find number of popped argument bytes.
24227
24228 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
24229 Fix the text that describes the return value for invalid insns.
24230
24231 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
24232
24233 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
24234 Clarify what 'cost of the -dependence' is. Fix quoting.
24235
24236 * toplev.c (default_get_pch_validity): Rename argument to "sz".
24237 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
24238
24239 2010-01-17 Jakub Jelinek <jakub@redhat.com>
24240
24241 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
24242 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
24243
24244 2010-01-17 Richard Guenther <rguenther@suse.de>
24245
24246 PR middle-end/42248
24247 * function.c (split_complex_args): Take a VEC to modify.
24248 (assign_parms_augmented_arg_list): Build a VEC instead of
24249 a chain of PARM_DECLs.
24250 (assign_parms_unsplit_complex): Take a VEC of arguments.
24251 Do not fixup unmodified parms.
24252 (assign_parms): Deal with the VEC.
24253 (gimplify_parameters): Likewise.
24254
24255 2010-01-17 Richard Guenther <rguenther@suse.de>
24256
24257 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
24258 node existence check.
24259 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
24260 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
24261 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
24262 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
24263 (gimple_execute_on_growing_pred): Likewise.
24264
24265 2010-01-17 Richard Guenther <rguenther@suse.de>
24266
24267 PR tree-optimization/42773
24268 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
24269 (compute_antic_aux): Likewise.
24270 (compute_partial_antic_aux): Likewise.
24271
24272 2010-01-17 Jie Zhang <jie.zhang@analog.com>
24273
24274 PR debug/42767
24275 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
24276 and US_TRUNCATE.
24277
24278 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
24279
24280 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
24281 appearance.
24282
24283 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
24284 Fix markup for strict argument.
24285
24286 (TARGET_SCHED_REORDER2): Fix argument types.
24287
24288 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
24289 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
24290
24291 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
24292 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
24293
24294 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
24295 Add argument name.
24296
24297 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
24298 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
24299 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
24300 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
24301 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
24302
24303 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
24304
24305 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
24306
24307 (TARGET_ASM_RELOC_RW_MASK): Add return type.
24308 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
24309
24310 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
24311
24312 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
24313 Use prototype.
24314
24315 (TARGET_ASM_NAMED_SECTION): Fix argument list.
24316
24317 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
24318 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
24319
24320 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
24321
24322 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
24323
24324 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
24325 referring to it. Fix language.
24326
24327 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
24328
24329 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
24330
24331 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
24332
24333 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
24334
24335 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
24336 '@var{stream}. Remove stray 'and'.
24337
24338 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
24339
24340 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
24341
24342 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
24343
24344 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
24345 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
24346
24347 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
24348 Fix description of return value.
24349 Rename argument "sz" to "len."
24350
24351 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
24352 Clarify meaning of 'true' return value.
24353
24354 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
24355
24356 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
24357 rep_mode versus mode_rep.
24358
24359 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
24360
24361 (TARGET_BUILTIN_DECL): Fix name.
24362
24363 (TARGET_COMMUTATIVE_P): Fix type of first argument.
24364
24365 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
24366
24367 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
24368
24369 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
24370
24371 (TARGET_RELAXED_ORDERING): Use @deftypevr.
24372
24373 (TARGET_GET_DRAP_RTX): Note that this is a hook.
24374 Clarify language.
24375
24376 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
24377 Rename argument tm_fn to md_fn.
24378
24379 (TARGET_OPTION_PRINT): Fix argument list.
24380
24381 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
24382
24383 PR target/42664
24384 * config/i386/i386.c (ix86_fixup_binary_operands):
24385 Revert FMA4 fixup of operands.
24386
24387 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24388
24389 PR gcc/42525
24390 * Makefile.in (write_entries_to_file, install-plugin):
24391 Use \012 instead of \n with tr.
24392
24393 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
24394
24395 * configure.ac (HAVE_AS_REF): New C macro.
24396 * configure: Regenerate.
24397 * config.in: Likewise.
24398 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
24399 if HAVE_AS_REF.
24400 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
24401 if HAVE_AS_REF.
24402
24403 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
24404
24405 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
24406
24407 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
24408
24409 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
24410
24411 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
24412
24413 (TARGET_IN_SMALL_DATA_P): Fix argument type.
24414
24415 (TARGET_BINDS_LOCAL_P): Fix argument type.
24416
24417 (TARGET_ASM_FILE_END): Use prototype.
24418
24419 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
24420
24421 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
24422
24423 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
24424
24425 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
24426
24427 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
24428 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
24429
24430 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
24431 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
24432
24433 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
24434 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
24435 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
24436 (TARGET_ADDR_SPACE_CONVERT): Likewise.
24437
24438 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
24439
24440 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
24441
24442 (TARGET_INIT_BUILTINS): Use prototype.
24443
24444 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
24445 Put 'const char *' in braces. Fix parameter types.
24446 (TARGET_INVALID_CONVERSION): Fix parameter types.
24447 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
24448 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
24449
24450 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
24451 Fix argument type.
24452
24453 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
24454
24455 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
24456
24457 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
24458
24459 * doc/tm.texi (TARGET_HELP): Fix return type.
24460
24461 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
24462 in braces. Fix argument types.
24463
24464 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
24465
24466 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
24467
24468 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
24469
24470 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
24471 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
24472
24473 (TARGET_MANGLE_TYPE): Fix argument types.
24474
24475 (TARGET_IRA_COVER_CLASSES): Use prototype.
24476
24477 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
24478
24479 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
24480
24481 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
24482
24483 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
24484
24485 (TARGET_CALLEE_COPIES): Fix argument types.
24486
24487 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
24488
24489 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
24490
24491 (TARGET_FUNCTION_VALUE): Fix argument types.
24492
24493 (TARGET_RETURN_IN_MSB): Fix argument type.
24494
24495 (TARGET_RETURN_IN_MEMORY): Fix argument types.
24496
24497 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
24498
24499 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
24500
24501 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
24502 agree with return type.
24503
24504 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
24505
24506 2010-01-15 Jing Yu <jingyu@google.com>
24507
24508 PR rtl-optimization/42691
24509 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
24510 a pseudo to a constant and are merged, and adjust comments.
24511
24512 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
24513
24514 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
24515
24516 2010-01-15 Richard Guenther <rguenther@suse.de>
24517
24518 PR middle-end/42739
24519 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
24520 labels of computed or non-local gotos to the destination.
24521 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
24522 landing pad label is the first label.
24523
24524 2010-01-15 Richard Guenther <rguenther@suse.de>
24525
24526 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
24527
24528 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
24529
24530 PR target/42747
24531 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
24532 to allow generation of the xssqrtdp instruction on power7.
24533 (sqrtdf2_fpr): Ditto.
24534
24535 2010-01-14 Jakub Jelinek <jakub@redhat.com>
24536
24537 PR middle-end/42674
24538 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
24539 functions with noreturn attribute.
24540
24541 PR c++/42608
24542 * varasm.c (declare_weak): Add weak attribute to decl if it
24543 doesn't have one already.
24544 (assemble_external): Only add decls to weak_decls if they also
24545 have weak attribute.
24546
24547 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
24548
24549 * var-tracking.c (var_reg_delete): Don't delete the association
24550 between REGs and values or one-part variables if the register
24551 isn't clobbered.
24552
24553 2010-01-14 Jakub Jelinek <jakub@redhat.com>
24554
24555 PR debug/42657
24556 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
24557 because its first operand is a non-localized variable.
24558
24559 2010-01-14 Martin Jambor <mjambor@suse.cz>
24560
24561 PR tree-optimization/42706
24562 * tree-sra.c (encountered_recursive_call): New variable.
24563 (encountered_unchangable_recursive_call): Likewise.
24564 (sra_initialize): Initialize both new variables.
24565 (callsite_has_enough_arguments_p): New function.
24566 (scan_function): Call decl and flags check only for IPA-SRA, check
24567 whether there is a recursive call and whether it has enough arguments.
24568 (all_callers_have_enough_arguments_p): New function.
24569 (convert_callers): Look for recursive calls only when
24570 encountered_recursive_call is set.
24571 (ipa_early_sra): Bail out either if
24572 !all_callers_have_enough_arguments_p or
24573 encountered_unchangable_recursive_call.
24574
24575 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
24576
24577 * sel-sched.c: Add 2010 to copyright years.
24578 * sel-sched-ir.c: Likewise.
24579 * sel-sched-ir.h: Likewise.
24580
24581 2010-01-14 Martin Jambor <mjambor@suse.cz>
24582
24583 PR tree-optimization/42714
24584 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
24585 constructors specially.
24586
24587 2010-01-14 Andi Kleen <ak@linux.intel.com>
24588
24589 * config/i386/drivers-i386.c (detect_caches_intel):
24590 Add l2sizekb parameter and fill in.
24591 (host_detect_local_cpu): Add l2sizekb, fill in.
24592 Add Atom small cache heuristic.
24593
24594 2010-01-14 Andi Kleen <ak@linux.intel.com>
24595
24596 * config/i386/drivers-i386.c (detect_caches_cpuid4):
24597 Add level3 parameter and fill in.
24598 (detect_caches_intel): Handle level3 cache.
24599
24600 2010-01-14 Andi Kleen <ak@linux.intel.com>
24601
24602 * config/i386/drivers-i386.c (host_detect_local_cpu):
24603 Fix core duo detection.
24604
24605 2010-01-14 Andi Kleen <ak@linux.intel.com>
24606
24607 * config/i386/drivers-i386.c (host_detect_local_cpu):
24608 Fix Atom detection.
24609
24610 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
24611
24612 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
24613 (rs6000_variable_issue_1): this. Use...
24614 (rs6000_variable_issue): here. Reimplement. Print debug info.
24615
24616 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
24617
24618 * sel-sched-ir.c (sel_restore_other_notes): Rename to
24619 sel_restore_notes. Update all callers. Call reemit_notes
24620 for all insns.
24621
24622 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
24623
24624 PR rtl-optimization/42246
24625 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
24626 loops.
24627
24628 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
24629
24630 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
24631 all successors is the same as number of successors in current region.
24632
24633 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
24634
24635 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
24636 to rename is not separable. Otherwise check that its LHS is not NULL.
24637
24638 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
24639
24640 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
24641
24642 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
24643
24644 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
24645 available registers when failed to discover LHS register class.
24646 Fix indentation. Update comment.
24647
24648 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
24649 Alexander Monakov <amonakov@ispras.ru>
24650
24651 PR rtl-optimization/42389
24652 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
24653 to can_issue_more.
24654 (advance_state_on_fence): Likewise.
24655 (sel_target_adjust_priority): Print debug output only when
24656 sched_verbose >= 4, not 2.
24657 (get_expr_cost): Do not issue all unique insns on the next cycle.
24658 (fill_insns): Initialize can_issue_more from the value saved
24659 with the fence.
24660 * sel-sched-ir.c (flist_add): New parameter issue_more.
24661 Init FENCE_ISSUE_MORE with it.
24662 (merge_fences): Likewise.
24663 (init_fences): Update call to flist_add.
24664 (add_to_fences, add_clean_fence_to_fences)
24665 (add_dirty_fence_to_fences): Likewise.
24666 (move_fence_to_fences): Update call to merge_fences.
24667 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
24668 sched groups.
24669 * sel-sched-ir.h (struct _fence): New field issue_more.
24670 (FENCE_ISSUE_MORE): New accessor macro.
24671
24672 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
24673
24674 PR rtl-optimization/42388
24675 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
24676 that have no predecessors nor successors. Do not call move_bb_info
24677 for empty blocks outside of current region.
24678
24679 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
24680
24681 PR rtl-optimization/42294
24682 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
24683 * sel-sched.c (move_exprs_to_boundary): Transitively add all
24684 originators' originators.
24685
24686 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
24687
24688 PR rtl-optimization/39453
24689 PR rtl-optimization/42246
24690 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
24691 for pipelining_p.
24692 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
24693
24694 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
24695 Alexander Monakov <amonakov@ispras.ru>
24696
24697 PR middle-end/42245
24698 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
24699 (maybe_tidy_empty_bb): ... here. Make static. Add new
24700 argument. Update all callers.
24701 (tidy_control_flow): ... and here. Recompute topological order
24702 of basic blocks in region if necessary.
24703 (sel_redirect_edge_and_branch): Change return type. Return true
24704 if topological order might have been invalidated.
24705 (purge_empty_blocks): Export and move from...
24706 * sel-sched.c (purge_empty_blocks): ... here.
24707 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
24708 (maybe_tidy_empty_bb): Delete prototype.
24709 (purge_empty_blocks): Declare.
24710
24711 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
24712
24713 PR rtl-optimization/42249
24714 * sel-sched.c (try_replace_dest_reg): When chosen register
24715 and original register is the same, do not bail out early, but
24716 still check all original insns for validity of replacing destination
24717 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
24718 in this case.
24719
24720 2010-01-14 Jakub Jelinek <jakub@redhat.com>
24721
24722 PR c/42721
24723 Port from no-undefined-overflow branch:
24724 2009-03-09 Richard Guenther <rguenther@suse.de>
24725
24726 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
24727
24728 2010-01-14 Richard Guenther <rguenther@suse.de>
24729
24730 PR lto/42665
24731 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
24732
24733 2010-01-14 Ira Rosen <irar@il.ibm.com>
24734
24735 PR tree-optimization/42709
24736 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
24737 as scalar type in creation of constant vector operand.
24738
24739 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24740
24741 PR testsuite/42414
24742 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
24743 (check-parallel-%): Match `testsuite' directory component only
24744 at the end.
24745
24746 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
24747
24748 PR translation/39521
24749 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
24750 strings with _().
24751
24752 2010-01-13 Richard Guenther <rguenther@suse.de>
24753
24754 PR tree-optimization/42730
24755 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
24756 offset zero.
24757
24758 2010-01-13 Steve Ellcey <sje@cup.hp.com>
24759
24760 PR target/pr42542
24761 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
24762 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
24763 them signed.
24764
24765 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
24766
24767 * config/bfin/libgcc-bfin.ver: Regenerate based on current
24768 libgcc-std.ver. Add entries for ___smulsi3_highpart and
24769 ___umulsi3_highpart.
24770
24771 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
24772 rather than schedule_insns if the pass is enabled.
24773
24774 2010-01-13 Martin Jambor <mjambor@suse.cz>
24775
24776 PR tree-optimization/42704
24777 * tree-sra.c (sra_modify_assign): Do not delete assignments to
24778 SSA_NAMEs.
24779
24780 2010-01-13 Martin Jambor <mjambor@suse.cz>
24781
24782 PR tree-optimization/42703
24783 * tree-sra.c (analyze_access_subtree): Check that we can build a
24784 reference to the original data within the aggregate.
24785
24786 2010-01-13 Richard Guenther <rguenther@suse.de>
24787
24788 PR tree-optimization/42705
24789 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
24790
24791 2010-01-13 Richard Guenther <rguenther@suse.de>
24792
24793 PR middle-end/42716
24794 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
24795
24796 2010-01-13 Jakub Jelinek <jakub@redhat.com>
24797
24798 PR debug/41371
24799 * var-tracking.c (values_to_unmark): New variable.
24800 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
24801 values_to_unmark vector. Moved body to...
24802 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
24803 instead queue it into values_to_unmark vector.
24804 (vt_find_locations): Free values_to_unmark vector.
24805
24806 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
24807
24808 * config/s390/s390.c (override_options): Set
24809 default of max-pending-list-length to 256
24810
24811 2010-01-13 Richard Guenther <rguenther@suse.de>
24812
24813 PR lto/42678
24814 * tree-pass.h (PROP_gimple_lcx): New.
24815 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
24816 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
24817 before the final cleanup_eh.
24818 (dump_properties): Dump PROP_gimple_lcx.
24819 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
24820 (tree_lower_complex_O0): Remove.
24821 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
24822 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
24823 tree_lower_complex, schedule TODO_update_ssa.
24824 * lto-streamer-out.c (output_function): Stream the functions
24825 properties.
24826 * lto-streamer-in.c (input_function): Likewise.
24827 (lto_read_body): Do not override them here.
24828
24829 2010-01-12 Joseph Myers <joseph@codesourcery.com>
24830
24831 PR c/42708
24832 * c-typeck.c (build_c_cast): Fold value cast to union type before
24833 wrapping it in a CONSTRUCTOR.
24834
24835 2010-01-12 Jakub Jelinek <jakub@redhat.com>
24836
24837 PR rtl-optimization/42699
24838 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
24839 involved.
24840
24841 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24842
24843 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
24844 SUBTARGET_WARN_UNUSED_SPEC): Move ...
24845 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
24846 SUBTARGET_WARN_UNUSED_SPEC): ... here
24847 * config/mips/iris5.h (LIBGCC_SPEC): Define.
24848
24849 2010-01-12 Julian Brown <julian@codesourcery.com>
24850
24851 * config/arm/neon-schedgen.ml (Utils): Don't try to
24852 open missing module.
24853 (find_with_result): New.
24854
24855 2010-01-12 Jakub Jelinek <jakub@redhat.com>
24856
24857 PR debug/42662
24858 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
24859 sharing when canonicalizing ({lt,ge}u (plus a b) b).
24860
24861 PR tree-optimization/42645
24862 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
24863 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
24864 decl_map, set processing_debug_stmt to -1 and return name without
24865 any remapping.
24866
24867 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
24868
24869 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
24870 binutils version, and reword target configuration description.
24871
24872 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
24873
24874 * config/avr/avr.h (LINKER_NAME): Remove.
24875
24876 2010-01-11 Janis Johnson <janis187@us.ibm.com>
24877
24878 PR target/42416
24879 * config/rs6000/rs6000.c (rs6000_override_options): On targets
24880 that support VSX, warn for -mno-altivec if vsx is not disabled,
24881 and disable vsx.
24882
24883 2010-01-11 Joseph Myers <joseph@codesourcery.com>
24884 Shujing Zhao <pearly.zhao@oracle.com>
24885
24886 PR translation/42469
24887 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
24888 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
24889 character between option name and help text.
24890 * c.opt (imultilib): Likewise.
24891
24892 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
24893
24894 * lto-streamer-out.c (output_unreferenced_globals): Output static
24895 variables.
24896
24897 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
24898
24899 PR rtl-optimization/42621
24900 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
24901 optimizing for size.
24902 (duplicate_computed_gotos): Remove now-redundant check.
24903
24904 2010-01-10 Steve Ellcey <sje@cup.hp.com>
24905
24906 PR target/37454
24907 * configure.ac: Save and restore LDFLAGS and LIBS
24908 * configure: Regenerate.
24909
24910 2010-01-10 Richard Guenther <rguenther@suse.de>
24911
24912 PR middle-end/42667
24913 * builtins.c (fold_builtin_strlen): Add type argument and
24914 convert the resulting length to it.
24915 (fold_builtin_1): Adjust.
24916
24917 2010-01-09 Jakub Jelinek <jakub@redhat.com>
24918
24919 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
24920 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
24921 1 insn.
24922 (num_insns_constant_wide): Adjust for that change.
24923
24924 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
24925
24926 PR debug/42631
24927 * web.c (union_defs): Add used argument, to combine uses of
24928 uninitialized regs.
24929 (entry_register): Adjust type and tests of used argument.
24930 (web_main): Widen used for new use. Pass it to union_defs.
24931 * df.h (union_defs): Adjust prototype.
24932
24933 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
24934
24935 PR debug/42630
24936 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
24937 uses in new incoming argument. Free body.
24938 (reset_debug_uses_in_loop): New.
24939 (analyze_insn_to_expand_var): Call the latter if the former found
24940 anything. Fix whitespace. Reject invalid dest overlaps before
24941 going through all insns in the loop.
24942
24943 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
24944
24945 PR debug/42629
24946 * haifa-sched.c (dying_use_p): Debug insns don't count.
24947
24948 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
24949
24950 PR middle-end/42363
24951 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
24952 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
24953 (verify_gimple_call): Reject LHS in noreturn calls.
24954
24955 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
24956
24957 PR debug/42604
24958 PR debug/42395
24959 * tree-vect-loop-manip.c (adjust_info): New type.
24960 (adjust_vec): New pointer to vector.
24961 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
24962 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
24963 (slpeel_update_phis_for_duplicate_loop): Use them.
24964 (slpeel_update_phi_nodes_for_guard1): Likewise.
24965 (slpeel_update_phi_nodes_for_guard2): Likewise.
24966 (slpeel_tree_peel_loop_to_edge): Likewise.
24967 (vect_update_ivs_after_vectorizer): Likewise.
24968
24969 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
24970
24971 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
24972 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
24973
24974 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
24975
24976 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
24977 bogus uninitialized warning.
24978
24979 2010-01-09 Richard Guenther <rguenther@suse.de>
24980
24981 PR middle-end/42512
24982 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
24983 the evolution is compatible with the initial condition.
24984
24985 2010-01-09 Jakub Jelinek <jakub@redhat.com>
24986
24987 * gcc.c (process_command): Update copyright notice dates.
24988 * gcov.c (print_version): Likewise.
24989 * gcov-dump.c (print_version): Likewise.
24990 * mips-tfile.c (main): Likewise.
24991 * mips-tdump.c (main): Likewise.
24992
24993 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
24994
24995 PR target/41885
24996 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
24997 (rotlhi3): Delete.
24998 (rotlhi3_8): Delete.
24999 (rotlsi3): Delete.
25000 (rotlsi3_8): Delete.
25001 (rotlsi3_16): Delete.
25002 (rotlsi3_24): Delete.
25003 (rotl<mode>3): New.
25004 (*rotw<mode>3): New.
25005 (*rotb<mode>3): New.
25006 * config/avr/avr.c (avr_rotate_bytes): New function.
25007 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
25008
25009 2010-01-08 Steve Ellcey <sje@cup.hp.com>
25010
25011 PR target/37454
25012 * configure.ac: Modify -rdynamic check.
25013 * configure: Regenerate.
25014
25015 2010-01-08 DJ Delorie <dj@redhat.com>
25016
25017 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
25018 register popping order.
25019
25020 2010-01-08 Richard Guenther <rguenther@suse.de>
25021
25022 PR lto/42528
25023 * c.opt (fsigned-char): Also let LTO handle this option.
25024 (funsigned-char): Likewise.
25025
25026 2010-01-07 Richard Guenther <rguenther@suse.de>
25027
25028 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
25029 (gimple_op): Likewise.
25030 (gimple_op_ptr): Likewise.
25031 (gimple_assign_set_lhs): Remove gcc_assert.
25032 (gimple_assign_set_rhs1): Likewise.
25033 (gimple_assign_set_rhs2): Likewise.
25034 (gimple_call_set_lhs): Likewise.
25035 (gimple_call_set_fn): Likewise.
25036 (gimple_call_set_fndecl): Likewise.
25037 (gimple_call_fndecl): Likewise.
25038 (gimple_call_return_type): Likewise.
25039 (gimple_call_set_chain): Likewise.
25040 (gimple_call_num_args): Likewise.
25041 (gimple_call_set_arg): Likewise.
25042 (gimple_cond_set_code): Likewise.
25043 (gimple_cond_set_lhs): Likewise.
25044 (gimple_cond_set_rhs): Likewise.
25045 (gimple_cond_set_true_label): Likewise.
25046 (gimple_cond_set_false_label): Likewise.
25047 (gimple_label_set_label): Likewise.
25048 (gimple_goto_set_dest): Likewise.
25049 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
25050 (gimple_debug_bind_get_value): Likewise.
25051 (gimple_debug_bind_get_value_ptr): Likewise.
25052 (gimple_debug_bind_set_var): Likewise.
25053 (gimple_debug_bind_set_value): Likewise.
25054 (gimple_debug_bind_reset_value): Likewise.
25055 (gimple_debug_bind_has_value_p): Likewise.
25056 (gimple_return_retval_ptr): Remove gcc_assert.
25057 (gimple_return_retval): Likewise.
25058 (gimple_return_set_retval): Likewise.
25059 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
25060 (safe_referenced_var_iterator): Remove.
25061 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
25062 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
25063 (fill_referenced_var_vec): Remove.
25064 (first_readonly_imm_use): Remove redundant gcc_assert.
25065 (phi_arg_index_from_use): Combine gcc_asserts.
25066 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
25067 (first_imm_use_stmt): Remove redundant gcc_assert.
25068 * tree-cfg.c (verify_gimple_call): Verify function and chain
25069 operands. Verify arguments.
25070 (verify_types_in_gimple_stmt): Verify condition code and labels.
25071
25072 2010-01-07 Richard Guenther <rguenther@suse.de>
25073
25074 PR tree-optimization/42641
25075 * sese.c (rename_map_elt_info): Use the SSA name version, do
25076 not hash pointers.
25077
25078 2010-01-07 Jakub Jelinek <jakub@redhat.com>
25079
25080 PR tree-optimization/42625
25081 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
25082 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
25083
25084 2010-01-07 Duncan Sands <baldrick@free.fr>
25085
25086 * Makefile.in (PLUGIN_HEADERS): Add version.h.
25087
25088 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
25089
25090 PR target/42511
25091 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
25092 note itself is not function_invariant_p.
25093
25094 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
25095
25096 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
25097 Do not add the DF_NOTE problem.
25098 * store-motion.c (execute_rtl_store_motion): Likewise.
25099
25100 2010-01-07 Martin Jambor <mjambor@suse.cz>
25101
25102 PR tree-optimization/42157
25103 * tree-sra.c (compare_access_positions): Stabilize sort if both
25104 accesses have integer types, return zero immediately if they are the
25105 same.
25106
25107 2010-01-06 Richard Henderson <rth@redhat.com>
25108
25109 PR middle-end/41883
25110 * haifa-sched.c (add_to_note_list): Merge into ...
25111 (concat_note_lists): ... here, and ...
25112 (unlink_other_notes, rm_other_notes): Merge into...
25113 (remove_notes): ... here. Create REG_SAVE_NOTEs for
25114 NOTE_INSN_EPILOGUE_BEG.
25115
25116 2010-01-06 Richard Guenther <rguenther@suse.de>
25117
25118 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
25119 not inline regular functions into always-inline functions.
25120
25121 2010-01-06 Nick Clifton <nickc@redhat.com>
25122
25123 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
25124 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
25125 used together.
25126 (OVERRIDE_OPTIONS): Delete.
25127 (OPTIMIZATION_OPTIONS): Define.
25128 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
25129 * config/rx/rx.c (rx_handle_option): Issue an error message if
25130 -mcpu=rx200 and -fpu are used together.
25131 (rx_set_optimization_options): New function. Issue an error
25132 message if an optimization attribute attempts to reset the FPU/
25133 math optimization pairing.
25134 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
25135 * config/rx/rx.opt: Set the default to 32-bit doubles.
25136 * config/rx/t-rx: Add multilibs for -nofpu option.
25137 * doc/invoke.texi: Update documentation of RX options.
25138
25139 2010-01-06 Richard Guenther <rguenther@suse.de>
25140
25141 * tree-ssa-pre.c (name_to_id): New global.
25142 (alloc_expression_id): Simplify SSA name handling.
25143 (lookup_expression_id): Likewise.
25144 (init_pre): Zero name_to_id.
25145 (fini_pre): Free it.
25146
25147 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
25148
25149 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
25150
25151 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
25152
25153 PR target/42542
25154 * config/i386/sse.md (smaxv2di3): New.
25155 (umaxv2di3): Likewise.
25156 (sminv2di3): Likewise.
25157 (uminv2di3): Likewise.
25158
25159 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
25160
25161 PR target/42564
25162 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
25163 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
25164 (legitimize_tls_address): Likewise.
25165 (sparc_tls_referenced_p): Likewise.
25166 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
25167 and adjust calls to legitimize_pic_address.
25168 (legitimate_constant_p) Use sparc_tls_referenced_p.
25169 (legitimate_pic_operand_p): Likewise.
25170 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
25171 (sparc_tls_symbol_ref_1): Delete.
25172 (sparc_tls_referenced_p): Make static, recognize specific patterns.
25173 (legitimize_tls_address): Make static, handle CONST patterns.
25174 (legitimize_pic_address): Make static, remove unused parameter and
25175 adjust recursive calls.
25176 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
25177 and adjust call to legitimize_pic_address.
25178 (sparc_output_mi_thunk): Likewise.
25179
25180 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
25181 H.J. Lu <hongjiu.lu@intel.com>
25182
25183 PR target/42542
25184 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
25185 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
25186 operands to make them signed.
25187
25188 Revert:
25189 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
25190
25191 PR target/42542
25192 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
25193 GTU to GT for V4SI and V2DI.
25194
25195 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
25196 (umin<mode>3): Removed.
25197 (uminv8hi3): New.
25198 (uminv4si3): Likewise.
25199
25200 2010-01-05 Martin Jambor <mjambor@suse.cz>
25201
25202 PR tree-optimization/42462
25203 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
25204 current_function_decl to helper functions and macros.
25205
25206 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25207
25208 PR bootstrap/41771
25209 * flags.h: Don't include real.h.
25210 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
25211 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
25212 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
25213 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
25214 * dominance.c: Update copyright.
25215 * gimple.c (walk_gimple_op): Remove inline.
25216 * tree-ssa-reassoc.c: Include real.h.
25217 * Makefile.in (FLAGS_H): Remove $(REAL_H).
25218 (tree-ssa-reassoc.o): Depend on $(REAL_H).
25219
25220 2010-01-05 Nick Clifton <nickc@redhat.com>
25221
25222 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
25223 register to push into the stack frame when the accumulator has to
25224 be saved during interrupts.
25225
25226 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
25227
25228 * doc/invoke.texi: Remove the documentation about option
25229 -Wunreachable-code.
25230 * common.opt (Wunreachable-code): Preserved for backward
25231 compatibility.
25232 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
25233 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
25234 the backward compatibility flag section.
25235
25236 2010-01-05 Richard Guenther <rguenther@suse.de>
25237
25238 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
25239
25240 2010-01-05 Jakub Jelinek <jakub@redhat.com>
25241
25242 PR other/42611
25243 * cfgexpand.c (expand_one_var): Diagnose too large variables.
25244
25245 PR tree-optimization/42508
25246 * tree-sra.c (convert_callers): Check for recursive call
25247 by comparing cgraph nodes instead of decls.
25248 (modify_function): Call ipa_modify_formal_parameters also
25249 on all same_body aliases.
25250
25251 * cgraphunit.c (cgraph_materialize_all_clones): Compare
25252 cgraph nodes when checking for same_body aliases.
25253
25254 2010-01-05 Richard Guenther <rguenther@suse.de>
25255
25256 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
25257 allocation and lookup.
25258 (get_or_alloc_expr_for_constant): Likewise.
25259 (phi_translate): Sink allocation.
25260
25261 2010-01-04 Richard Guenther <rguenther@suse.de>
25262
25263 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
25264 a new entry only if needed.
25265 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
25266 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
25267 hashtable lookup.
25268 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
25269 the result array.
25270 (phi_translate): Handle CONSTANTs early.
25271
25272 2010-01-04 Martin Jambor <mjambor@suse.cz>
25273
25274 PR tree-optimization/42398
25275 * tree-sra.c (struct access): Removed flag grp_different_types.
25276 (dump_access): Do not dump the removed flag.
25277 (sort_and_splice_var_accesses): Do not set the removed flag.
25278 (sra_modify_expr): Check for type compatibility directly.
25279
25280 2010-01-04 Martin Jambor <mjambor@suse.cz>
25281
25282 PR tree-optimization/42366
25283 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
25284 edges with variable number of parameters.
25285 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
25286 flag instead of asserting it.
25287 (ipa_read_node_info): Read uses_analysis_done flag.
25288
25289 2010-01-04 Richard Guenther <rguenther@suse.de>
25290
25291 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
25292 iterative_hash_* as intended.
25293 (vn_reference_compute_hash): Likewise. Simplify hashing
25294 SSA names.
25295 (vn_reference_lookup_2): Likewise.
25296 (vn_nary_op_compute_hash): Likewise.
25297 (vn_phi_compute_hash): Likewise.
25298 (expressions_equal_p): Remove strange code.
25299 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
25300 (pre_expr_hash): Likewise. Simplify hashing SSA names.
25301 (bitmap_insert_into_set_1): Take value-id as parameter.
25302 (add_to_value): Pass it.
25303 (bitmap_insert_into_set): Likewise.
25304 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
25305
25306 2010-01-04 Jakub Jelinek <jakub@redhat.com>
25307
25308 PR driver/42442
25309 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
25310 (do_self_spec): For switches with SWITCH_IGNORE set set also
25311 SWITCH_IGNORE_PERMANENTLY.
25312 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
25313 of SWITCH_IGNORE.
25314
25315 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
25316
25317 * lto-streamer-out.c (output_unreferenced_globals): Output the full
25318 tree of an unreferenced global var.
25319
25320 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
25321
25322 PR target/42542
25323 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
25324 GTU to GT for V4SI and V2DI.
25325
25326 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
25327 (umin<mode>3): Removed.
25328 (uminv8hi3): New.
25329 (uminv4si3): Likewise.
25330
25331 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
25332
25333 PR lto/42581
25334 * collect2.c (main): Turn on trace in collect2 if -v is passed
25335 to gcc with LTO.
25336
25337 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
25338
25339 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
25340 description of expression operand.
25341
25342 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
25343
25344 * configure.ac: Add install-html to target_list for Make-hooks.
25345 * configure: Regenerate.
25346 * fortran/Make-lang.in (F95_HTMLFILES): New.
25347 (fortran.html): Use it.
25348 (fortran.install-html): New.
25349 * Makefile.in (install-html): Add lang.install-html.
25350 * java/Make-lang.in (JAVA_HTMLFILES): New.
25351 (java.html): Use it.
25352 (java.install-html): New.
25353 * objc/Make-lang.in (objc.install-html): New.
25354 * objcp/Make-lang.in (obj-c++.install-html): New.
25355 * cp/Make-lang.in (c++.install-html): New.
25356 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
25357 * lto/Make-lang.in (lto.install-html): New.
25358
25359 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
25360
25361 PR lto/42520
25362 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
25363
25364 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
25365
25366 PR rtl-optimization/41862
25367 * store-motion.c (store_killed_in_insn, compute_store_table,
25368 remove_reachable_equiv_notes, replace_store_insn,
25369 build_store_vectors): Ignore all DEBUG_INSNs.
25370
25371 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
25372
25373 PR lto/41564
25374 * common.opt: Add dumpdir.
25375
25376 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
25377 isn't specified.
25378 (option_map): Add --dumpdir.
25379
25380 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
25381
25382 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
25383
25384 * opts.c (decode_options): Try dump_dir_name first if
25385 dump_base_name isn't an absolute path.
25386 (common_handle_option): Handle OPT_dumpdir.
25387
25388 * toplev.c (dump_dir_name): New.
25389 (print_switch_values): Also ignore -dumpdir.
25390
25391 * toplev.h (dump_dir_name): New.
25392
25393 2010-01-03 Richard Guenther <rguenther@suse.de>
25394
25395 PR tree-optimization/42589
25396 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
25397 double-word expansion of bswap32.
25398
25399 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
25400
25401 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
25402 with BLOCK_FOR_INSN.
25403 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
25404 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
25405 noce_process_if_block): Likewise.
25406 * gcse.c (compute_local_properties, insert_expr_in_table,
25407 insert_set_in_table, canon_list_insert, find_avail_set,
25408 pre_insert_copy_insn): Likewise.
25409
25410 * basic-block.h (BLOCK_NUM): Move from here...
25411 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
25412
25413 2010-01-03 Richard Guenther <rguenther@suse.de>
25414
25415 PR tree-optimization/42438
25416 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
25417 contains_may_not_return_call flag.
25418 (BB_MAY_NOTRETURN): New.
25419 (valid_in_sets): Trapping nary operations are not valid
25420 in blocks that may not return.
25421 (insert_into_preds_of_block): Remove check for trapping expressions.
25422 (compute_avail): Compute also BB_MAY_NOTRETURN.
25423
25424 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
25425
25426 * doc/invoke.texi: Add 2010 to copyright years.
25427
25428 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
25429
25430 * config/sparc/sparc.c: Fix formatting nits.
25431
25432 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
25433 Alexander Monakov <amonakov@ispras.ru>
25434
25435 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
25436
25437 2010-01-02 Richard Guenther <rguenther@suse.de>
25438
25439 PR middle-end/42577
25440 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
25441 (simplify_switch_using_ranges): Mark to be removed edges
25442 as non-executable.
25443
25444 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25445
25446 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
25447
25448 * collect2.c (scan_libraries): Add missing argument in call to
25449 scan_prog_file.
25450
25451 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
25452
25453 PR target/42448
25454 * config/alpha/predicates.md (aligned_memory_operand): Return false
25455 for CQImode.
25456 (unaligned_memory_operand): Return true for CQImode.
25457 * config/alpha/alpha.c (get_aligned_mem): Assert that location
25458 doesn not cross aligned SImode word boundary.
25459
25460 2010-01-02 Anatoly Sokolov <aesok@post.ru>
25461
25462 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
25463 Remove.
25464 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
25465 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
25466
25467 2010-01-02 Richard Guenther <rguenther@suse.de>
25468
25469 PR lto/41597
25470 * toplev.c (compile_file): Emit LTO marker properly. Change
25471 it to __gnu_lto_v1.
25472 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
25473
25474 2010-01-01 Richard Guenther <rguenther@suse.de>
25475
25476 PR debug/42455
25477 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
25478
25479 2010-01-01 Richard Guenther <rguenther@suse.de>
25480
25481 PR c/42570
25482 * c-decl.c (grokdeclarator): For zero-size arrays force
25483 structural equality checks as layout_type does.
25484
25485 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
25486
25487 * builtins.c: Update copyright to 2010.
25488
25489 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
25490
25491 PR lto/42531
25492 * lto-streamer-out.c (produce_asm): Revert the last change.
25493 (copy_function): Likewise.
25494
25495 * lto-streamer.c (lto_get_section_name): Skip any leading
25496 asterisk in name.
25497
25498 2010-01-01 Richard Guenther <rguenther@suse.de>
25499
25500 PR middle-end/42559
25501 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
25502 for LABEL_DECLs.
25503
25504 \f
25505 Copyright (C) 2010 Free Software Foundation, Inc.
25506
25507 Copying and distribution of this file, with or without modification,
25508 are permitted in any medium without royalty provided the copyright
25509 notice and this notice are preserved.
This page took 1.538907 seconds and 4 git commands to generate.