1 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3 * genrecog.c: Include diagnostic-core.h before toplev.h.
4 * genoutput.c: Likewise.
5 * genextract.c: Likewise.
6 * genautomata.c: Likewise.
9 * genattrtab.c: Likewise.
10 * genconditions.c: Likewise.
11 * genpreds.c: Likewise.
13 2010-07-08 Andi Kleen <ak@linux.intel.com>
15 * lto-section-in.c (lto_section_name): Add missing comma.
17 2010-07-08 Anatoly Sokolov <aesok@post.ru>
19 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
20 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
21 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
22 (ia64_override_options): Rename to...
23 (ia64_option_override): ... this one. Make static.
25 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
28 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
29 pointed-to type of the offset in a MEM_REF to compute the alignment.
31 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
33 * final.c (final_scan_insn): Replace
34 TARGET_UNWIND_INFO macro check by unwind_emit
36 * targhooks.c (default_unwind_emit): Removed.
37 * targhooks.h (default_unwind_emit): Likewise.
38 * target.def (unwind_emit): Set default value to NULL.
40 * config/i386/i386-protos.h (ix86_asm_output_function_label):
42 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
43 for NULL fntype argument and allow 64-bit targets.
44 (ix86_asm_output_function_label): New function.
45 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
46 (ix86_handle_fndecl_attribute): Likewise.
47 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
48 * doc/doc/tm.texi: Regenerated.
49 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
50 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
51 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
52 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
53 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
54 * config/elfos.h: Likewise.
55 * config/i386/cygming.h: Likewise.
56 * config/netbsd-aout.h: Likewise.
57 * config/openbsd.h: Likewise.
58 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
59 by ix86_asm_output_function_label function call.
60 * varasm.c (assemble_start_function): Use
61 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
63 2010-07-08 Jan Hubicka <jh@suse.cz>
65 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
67 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
69 * ipa-cp.c (ipcp_estimate_growth): Use it.
70 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
73 2010-07-08 Jan Hubicka <jh@suse.cz>
75 * tree-inline.c (declare_return_variable): Allocate annotation for new
78 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
80 PR tree-optimization/44710
81 * tree-if-conv.c (parse_predicate): New.
82 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
83 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
85 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
87 * common.opt (ftree-loop-if-convert): New flag.
88 * doc/invoke.texi (ftree-loop-if-convert): Documented.
89 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
90 when flag_tree_loop_if_convert is set.
92 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
94 * config/i386/i386.c: Use short syntax for function calls
95 through function pointers.
96 * config/i386/i386.md: Ditto.
98 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
100 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
102 2010-07-08 Richard Guenther <rguenther@suse.de>
104 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
105 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
107 2010-07-08 Jakub Jelinek <jakub@redhat.com>
109 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
110 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
111 (loc_list_from_tree): Likewise.
112 (output_loc_operands): Handle outputting DW_OP_const[48]u
113 with loc->dtprel set.
114 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
116 2010-07-08 Jan Hubicka <jh@suse.cz>
118 * ipa.c: Include pointer-set.h
119 (cgraph_externally_visible_p): New attribute ALIASED;
120 when in LTO, hidden symbols are local unless they are aliased.
121 (function_and_variable_visibility): Compute aliased nodes;
122 handle LTO and hidden symbol on functions and vars.
123 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
124 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
126 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
128 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
129 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
130 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
131 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
132 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
133 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
134 (ix86_gen_probe_stack_range): Likewise.
135 (override_options): Set them.
136 (ix86_target_stack_probe): New function.
137 (ix86_compute_frame_layout): Force use of push instructions to
138 save registers if stack checking with probes is enabled.
139 (get_scratch_register_on_entry): New function.
140 (release_scratch_register_on_entry): Likewise.
141 (ix86_adjust_stack_and_probe): Likewise.
142 (output_adjust_stack_and_probe): Likewise.
143 (ix86_emit_probe_stack_range): Likewise.
144 (output_probe_stack_range): Likewise.
145 (ix86_expand_prologue): Emit stack checking code if static built-in
146 stack checking is enabled.
147 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
148 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
149 (output_adjust_stack_and_probe): Likewise.
150 (output_probe_stack_range): Likewise.
151 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
152 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
154 (allocate_stack_worker_64): Likewise.
155 (allocate_stack): Likewise.
156 (adjust_stack_and_probe): New insn.
157 (probe_stack_range): Likewise.
159 2010-07-08 Richard Guenther <rguenther@suse.de>
161 PR tree-optimization/44831
162 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
163 a MEM_REF preserving TBAA info of the original dereference.
164 Dereference the original pointer if the address is not
166 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
167 at least one invariant address that we are going to dereference.
169 2010-07-08 Richard Guenther <rguenther@suse.de>
171 PR tree-optimization/44861
172 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
173 information when building MEM_REFs.
174 (vectorizable_load): Likewise.
175 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
177 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
179 * config/sol2-c.c: Do not include diagnostic-core.h.
181 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
184 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
185 with respect to current_function_decl. Pass decl of the function.
186 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
187 * ipa-inline.c (compute_inline_parameters): Pass decl to
188 estimated_stack_frame_size.
190 2010-07-08 Richard Guenther <rguenther@suse.de>
192 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
194 (valueize_refs): Call it.
196 2010-07-08 Richard Guenther <rguenther@suse.de>
198 PR rtl-optimization/44838
199 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
200 SSA form do not use pointer equivalence.
202 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
204 * dwarf2out.c (AT_linkage_name): Delete.
205 (add_linkage_attr): New function.
206 (add_linkage_name): Call it to emit the linkage attribute.
207 (dwarf2out_finish): Likewise.
208 (move_linkage_attr): Explicitly accept both attribute variants.
210 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
212 * toplev.h: Do not include diagnostic-core.h.
213 Include diagnostic-core.h in every file that includes toplev.h.
214 * c-tree.h: Do not include toplev.h.
215 * pretty-print.h: Update comment.
216 * Makefile.in: Update dependencies.
217 * alias.c: Include diagnostic-core.h in every file that includes
219 * attribs.c: Likewise.
220 * auto-inc-dec.c: Likewise.
221 * bb-reorder.c: Likewise.
222 * bt-load.c: Likewise.
223 * caller-save.c: Likewise.
226 * cfganal.c: Likewise.
227 * cfgbuild.c: Likewise.
228 * cfgcleanup.c: Likewise.
229 * cfghooks.c: Likewise.
230 * cfgloop.c: Likewise.
231 * combine.c: Likewise.
232 * config/alpha/alpha.c: Likewise.
233 * config/arc/arc.c: Likewise.
234 * config/arm/arm.c: Likewise.
235 * config/arm/pe.c: Likewise.
236 * config/avr/avr.c: Likewise.
237 * config/bfin/bfin.c: Likewise.
238 * config/cris/cris.c: Likewise.
239 * config/crx/crx.c: Likewise.
240 * config/darwin-c.c: Likewise.
241 * config/darwin.c: Likewise.
242 * config/fr30/fr30.c: Likewise.
243 * config/frv/frv.c: Likewise.
244 * config/h8300/h8300.c: Likewise.
245 * config/host-darwin.c: Likewise.
246 * config/i386/i386.c: Likewise.
247 * config/i386/netware.c: Likewise.
248 * config/i386/nwld.c: Likewise.
249 * config/i386/winnt-cxx.c: Likewise.
250 * config/i386/winnt-stubs.c: Likewise.
251 * config/i386/winnt.c: Likewise.
252 * config/ia64/ia64-c.c: Likewise.
253 * config/ia64/ia64.c: Likewise.
254 * config/iq2000/iq2000.c: Likewise.
255 * config/lm32/lm32.c: Likewise.
256 * config/m32c/m32c-pragma.c: Likewise.
257 * config/m32c/m32c.c: Likewise.
258 * config/m32r/m32r.c: Likewise.
259 * config/m68hc11/m68hc11.c: Likewise.
260 * config/m68k/m68k.c: Likewise.
261 * config/mcore/mcore.c: Likewise.
262 * config/mep/mep-pragma.c: Likewise.
263 * config/mep/mep.c: Likewise.
264 * config/mmix/mmix.c: Likewise.
265 * config/mn10300/mn10300.c: Likewise.
266 * config/moxie/moxie.c: Likewise.
267 * config/pa/pa.c: Likewise.
268 * config/pdp11/pdp11.c: Likewise.
269 * config/picochip/picochip.c: Likewise.
270 * config/rs6000/rs6000-c.c: Likewise.
271 * config/rs6000/rs6000.c: Likewise.
272 * config/rx/rx.c: Likewise.
273 * config/s390/s390.c: Likewise.
274 * config/score/score.c: Likewise.
275 * config/score/score3.c: Likewise.
276 * config/score/score7.c: Likewise.
277 * config/sh/sh.c: Likewise.
278 * config/sh/symbian-base.c: Likewise.
279 * config/sh/symbian-c.c: Likewise.
280 * config/sh/symbian-cxx.c: Likewise.
281 * config/sol2-c.c: Likewise.
282 * config/sol2.c: Likewise.
283 * config/sparc/sparc.c: Likewise.
284 * config/spu/spu.c: Likewise.
285 * config/stormy16/stormy16.c: Likewise.
286 * config/v850/v850-c.c: Likewise.
287 * config/v850/v850.c: Likewise.
288 * config/vax/vax.c: Likewise.
289 * config/vxworks.c: Likewise.
290 * config/xtensa/xtensa.c: Likewise.
291 * convert.c: Likewise.
293 * cselib.c: Likewise.
294 * dbgcnt.c: Likewise.
295 * dbxout.c: Likewise.
297 * dominance.c: Likewise.
298 * emit-rtl.c: Likewise.
299 * explow.c: Likewise.
300 * expmed.c: Likewise.
301 * fixed-value.c: Likewise.
302 * fold-const.c: Likewise.
303 * fwprop.c: Likewise.
305 * ggc-common.c: Likewise.
306 * ggc-page.c: Likewise.
307 * ggc-zone.c: Likewise.
308 * gimple-low.c: Likewise.
309 * gimplify.c: Likewise.
311 * haifa-sched.c: Likewise.
313 * implicit-zee.c: Likewise.
314 * integrate.c: Likewise.
315 * ira-build.c: Likewise.
316 * ira-color.c: Likewise.
317 * ira-conflicts.c: Likewise.
318 * ira-costs.c: Likewise.
319 * ira-lives.c: Likewise.
322 * loop-doloop.c: Likewise.
323 * loop-iv.c: Likewise.
324 * lto-opts.c: Likewise.
325 * lto-symtab.c: Likewise.
327 * modulo-sched.c: Likewise.
328 * optabs.c: Likewise.
329 * params.c: Likewise.
330 * plugin.c: Likewise.
331 * postreload-gcse.c: Likewise.
332 * postreload.c: Likewise.
333 * predict.c: Likewise.
334 * profile.c: Likewise.
336 * regcprop.c: Likewise.
337 * reginfo.c: Likewise.
338 * regmove.c: Likewise.
340 * resource.c: Likewise.
342 * rtlanal.c: Likewise.
343 * sched-deps.c: Likewise.
344 * sched-ebb.c: Likewise.
345 * sched-rgn.c: Likewise.
346 * sdbout.c: Likewise.
347 * sel-sched-dump.c: Likewise.
348 * sel-sched-ir.c: Likewise.
349 * simplify-rtx.c: Likewise.
351 * stor-layout.c: Likewise.
352 * store-motion.c: Likewise.
353 * targhooks.c: Likewise.
354 * tree-cfg.c: Likewise.
355 * tree-cfgcleanup.c: Likewise.
356 * tree-dump.c: Likewise.
357 * tree-eh.c: Likewise.
358 * tree-inline.c: Likewise.
359 * tree-nomudflap.c: Likewise.
360 * tree-object-size.c: Likewise.
361 * tree-optimize.c: Likewise.
362 * tree-outof-ssa.c: Likewise.
363 * tree-phinodes.c: Likewise.
364 * tree-profile.c: Likewise.
365 * tree-ssa-ccp.c: Likewise.
366 * tree-ssa-coalesce.c: Likewise.
367 * tree-ssa-live.c: Likewise.
368 * tree-ssa-loop-niter.c: Likewise.
369 * tree-ssa-loop-prefetch.c: Likewise.
370 * tree-ssa-loop.c: Likewise.
371 * tree-ssa-structalias.c: Likewise.
372 * tree-ssa-uninit.c: Likewise.
373 * tree-ssa.c: Likewise.
374 * tree-vect-data-refs.c: Likewise.
375 * tree-vect-loop-manip.c: Likewise.
376 * tree-vect-loop.c: Likewise.
377 * tree-vect-patterns.c: Likewise.
378 * tree-vect-stmts.c: Likewise.
379 * tree-vrp.c: Likewise.
380 * varasm.c: Likewise.
383 * xcoffout.c: Likewise.
385 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
387 * gengtype.c (write_field_root): New function.
388 (write_root): Use it.
390 2010-07-07 Wei Guozhi <carrot@google.com>
392 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
393 of lowest bits to lshift/compare): Add a missing line.
395 2010-07-07 Wei Guozhi <carrot@google.com>
397 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
398 of lowest bits to lshift/compare): New.
400 2010-07-07 Tom Tromey <tromey@redhat.com>
402 * doc/tm.texi: Update.
403 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
405 * target.def (want_debug_pub_sections): New hook.
406 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
407 * dwarf2out.c (add_pubname_string): Check
408 targetm.want_debug_pub_sections.
409 (add_pubname): Likewise.
410 (add_pubtype): Likewise.
412 2010-07-07 Jie Zhang <jie@codesourcery.com>
414 * genautomata.c (output_automata_list_min_issue_delay_code):
415 Correctly decompress min_issue_delay.
417 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
419 PR rtl-optimization/44404
420 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
421 possible, use reg_overlap_mentioned_p instead.
423 2010-07-07 Duncan Sands <baldrick@free.fr>
426 * tree.c (build_function_type_skip_args): Copy the original type using
427 build_distinct_type_copy rather than copy_node.
429 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
432 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
434 (ix86_expand_prologue): Likewise.
435 (ix86_handle_fndecl_attribute): Likewise.
436 (ix86_asm_declare_function_name): Likewise.
437 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
438 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
439 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
440 * config/i386/i386-protos.h (ix86_asm_declare_function_name):
442 * doc/extend.texi: Likewise.
444 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
447 * config/i386/i386.md (rdrand<mode>): Changed to expand to
448 retry if the carry flag isn't valid.
449 (rdrand<mode>_1): New.
451 2010-07-07 Richard Guenther <rguenther@suse.de>
454 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
455 for expanding the constant offset for MEM_REFs.
457 2010-07-07 Richard Guenther <rguenther@suse.de>
459 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
460 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
461 * gimple.h (is_gimple_operand): Remove.
462 * gimple.c (is_gimple_operand): Likewise.
463 (walk_gimple_op): Fix wi->val_only setting for calls.
464 * tree-cfg.c (verify_gimple_call): Fix argument validation.
465 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
466 invalid gimple calls.
468 2010-07-06 Jan Hubicka <jh@suse.cz>
470 * lto-cgraph.c (output_cgraph): Add missing declaration.
472 2010-07-06 Jan Hubicka <jh@suse.cz>
474 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
477 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
479 * doc/gimple.texi (GIMPLE_DEBUG): Document.
480 * doc/rtl.texi (Debug Information): New node.
481 (NOTE_INSN_VAR_LOCATION): Document.
482 (debug_insn): Likewise.
483 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
485 2010-07-07 Jan Hubicka <jh@suse.cz>
487 With parts by Richard Guenther
490 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
491 for functions passed by reference.
492 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
493 in memory when passed by reference.
494 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
496 * ipa-split.c (split_function): Cleanup way return value is passed;
497 handle SSA DECL_BY_REFERENCE retvals.
498 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
499 DECL_BY_REFERENCE is set.
500 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
501 find_what_p_points_to): Handle RESULT_DECL.
502 * tree-inline.c (declare_return_variable): Get new entry_block argument;
503 when passing by reference ensure that RESULT_DECL is gimple_val.
504 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
505 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
507 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
509 PR rtl-optimization/44787
510 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
511 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
513 2010-07-06 Jan Hubicka <jh@suse.cz>
515 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
516 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
517 with body can prevail.
518 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
519 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
520 * cgraph.c (cgraph_get_node_or_alias): New function.
521 * cgraph.h (cgraph_get_node_or_alias): Declare.
523 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
525 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
527 (ix86_expand_prologue): Likewise.
528 (ix86_handle_fndecl_attribute): Likewise.
529 (ix86_asm_declare_function_name): New function for
530 ASM_DECLARE_FUNCTION_NAME.
531 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
532 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
533 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
534 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
535 * doc/extend.texi: Adjust documentation about ms_hook_prologue
538 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
540 * config/i386/i386.md (immediate_operand): New mode attribute.
542 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
543 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
544 using P mode iterator.
545 (pro_epilogue_adjust_stack_di_2): Rename from
546 pro_epilogue_adjust_stack_rex64_2.
548 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
550 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
552 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
553 through gen_mov_insv_1 function pointer.
554 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
555 gen_truncxf<mode>2 through gen_truncxf function pointer.
556 (remainder<mode>3): Ditto.
557 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
558 (allocate_stack): Call gen_allocate_stack_worker_64 or
559 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
561 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
564 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
566 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
567 operand constraint instead of <r><i>m.
569 2010-07-06 Richard Guenther <rguenther@suse.de>
572 * convert.c (convert_to_integer): Watch out for overflowing
575 2010-07-05 Jan Hubicka <jh@suse.cz>
577 * lto-streamer.c (write_symbol_vec): Rename to ...
578 (write_symbol) ... this one; write only symbol given and when
579 present in cache. Sanity check that what is defined is present
580 in cgraph/varpool with body/finalized decl.
581 (write_symbols_of_kind): Remove.
582 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
583 pairs to produce symtab.
584 (produce_asm_for_decls): Update call of produce_symtab; don't do so
585 when doing WPA streaming.
587 2010-07-05 Jan Hubicka <jh@suse.cz>
589 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
590 function is still available to fold into.
592 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
594 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
595 * function.h (struct_function): Change type of local_decls field
597 (add_local_decl): New function.
598 (FOR_EACH_LOCAL_DECL): New macro.
599 * cfgexpand.c (init_vars_expansion): Adjust for new type of
601 (estimated_stack_frame_size): Likewise.
602 (expand_used_vars): Likewise.
603 * cgraphbuild.c (build_cgraph_edges): Likewise.
604 * function.c (instantiate_decls_1): Likewise.
605 * ipa-struct-reorg.c (build_data_structure): Likewise.
606 * ipa-type-escape.c (analyze_function): Likewise.
607 * lto-streamer-in.c (input_function): Likewise.
608 * lto-streamer-out.c (output_function): Likewise.
609 * tree-ssa-live.c (remove_unused_locals): Likewise.
610 * tree.c (free_lang_data_in_decl): Likewise.
611 (find_decls_types_in_node): Likewise.
612 * omp-low.c (remove_exit_barrier): Likewise.
613 (expand_omp_taskreg): Likewise.
614 (list2chain): Rename to...
615 (vec2chain): ...this. Adjust.
616 * cgraphunit.c (assemble_thunk): Call add_local_decl.
617 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
618 * gimple-low.c (record_vars_into): Likewise.
619 * tree-inline.c (remap_decls): Likewise.
620 (declare_return_variable): Likewise.
621 (declare_inline_vars): Likewise.
622 (copy_forbidden): Adjust for new type of cfun->local_decls.
623 (add_local_variables): New function.
624 (expand_call_inline): Call it.
625 (tree_function_versioning): Likewise.
627 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
629 AVX Programming Reference (June, 2010)
630 * config/i386/cpuid.h (bit_F16C): New.
631 (bit_RDRND): Likewise.
632 (bit_FSGSBASE): Likewise.
634 * config/i386/i386-builtin-types.def: Add
635 "DEF_FUNCTION_TYPE (UINT16)", function types for
636 float16 <-> float conversions and
637 "DEF_FUNCTION_TYPE (VOID, UINT64)".
639 * config/i386/i386-c.c (ix86_target_macros_internal): Support
640 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
641 OPTION_MASK_ISA_F16C.
643 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
644 (OPTION_MASK_ISA_RDRND_SET): Likewise.
645 (OPTION_MASK_ISA_F16C_SET): Likewise.
646 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
647 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
648 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
649 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
650 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
651 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
652 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
653 (override_options): Handle them.
654 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
655 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
656 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
657 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
658 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
659 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
660 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
661 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
662 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
663 (bdesc_args): Likewise.
664 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
665 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
666 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
667 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
668 Handle non-memory store.
670 * config/i386/i386.h (TARGET_FSGSBASE): New.
671 (TARGET_RDRND): Likewise.
672 (TARGET_F12C): Likewise.
674 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
675 (UNSPEC_VCVTPS2PH): Likewise.
676 (UNSPECV_RDFSBASE): Likewise.
677 (UNSPECV_RDGSBASE): Likewise.
678 (UNSPECV_WRFSBASE): Likewise.
679 (UNSPECV_WRGSBASE): Likewise.
680 (UNSPECV_RDRAND): Likewise.
681 (rdfsbase<mode>): Likewise.
682 (rdgsbase<mode>): Likewise.
683 (wrfsbase<mode>): Likewise.
684 (wrgsbase<mode>): Likewise.
685 (rdrand<mode>): Likewise.
687 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
689 * config/i386/immintrin.h (_rdrand_u16): New.
690 (_rdrand_u32): Likewise.
691 (_readfsbase_u32): Likewise.
692 (_readfsbase_u64): Likewise.
693 (_readgsbase_u32): Likewise.
694 (_readgsbase_u64): Likewise.
695 (_writefsbase_u32): Likewise.
696 (_writefsbase_u64): Likewise.
697 (_writegsbase_u32): Likewise.
698 (_writegsbase_u64): Likewise.
699 (_rdrand_u64): Likewise.
700 (_cvtsh_ss): Likewise.
701 (_mm_cvtph_ps): Likewise.
702 (_mm256_cvtph_ps): Likewise.
703 (_cvtss_sh): Likewise.
704 (_mm_cvtps_ph): Likewise.
705 (_mm256_cvtps_ph): Likewise.
707 * config/i386/sse.md (vcvtph2ps): New.
708 (*vcvtph2ps_load): Likewise.
709 (vcvtph2ps256): Likewise.
710 (vcvtps2ph): Likewise.
711 (*vcvtps2ph): Likewise.
712 (*vcvtps2ph_store): Likewise.
713 (vcvtps2ph256): Likewise.
715 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
717 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
719 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
722 * genenums.c (main): Output include of insn-constants.h
723 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
725 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
727 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
728 (override_options): Initialize it.
729 (ix86_expand_prologue): Use it.
731 2010-07-05 Jakub Jelinek <jakub@redhat.com>
733 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
735 2010-07-05 Anatoly Sokolov <aesok@post.ru>
737 * double-int.h (fit_double_type): Remove declaration.
738 * double-int.c (fit_double_type): Remove function.
739 * tree.h (int_fits_type_p): Adjust prototype.
740 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
741 instead of fit_double_type.
742 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
743 instead of fit_double_type and build_int_cst_wide.
744 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
745 instead of fit_double_type and build_int_cst_wide.
746 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
749 2010-07-05 Jan Hubicka <jh@suse.cz>
751 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
753 * lto-cgraph.c (referenced_from_other_partition_p,
754 reachable_from_other_partition_p): Use in_other_partition flags.
755 (output_node, output_varpool_node): COMDAT nodes always have private
756 copies and thus are never used from other partition.
758 2010-07-05 Anatoly Sokolov <aesok@post.ru>
760 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
761 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
762 * config/ia64/ia64.c Include reload.h.
763 (ia64_memory_move_cost): New function.
764 (TARGET_MEMORY_MOVE_COST): Define.
765 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
768 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
771 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
772 comments about cost model.
773 (try_add_cand_for): Add second strategy for choosing initial set
774 based on original IVs, controlled by ORIGINALP argument.
775 (get_initial_solution): Add ORIGINALP argument.
776 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
777 (find_optimal_iv_set): Try two different strategies for choosing
778 the IV set, and return the one with lower cost.
780 2010-07-05 Richard Guenther <rguenther@suse.de>
782 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
784 2010-07-05 Richard Guenther <rguenther@suse.de>
786 * tree.c (reference_alias_ptr_type): New function.
787 * tree.h (reference_alias_ptr_type): Declare.
788 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
789 allow non-TARGET_MEM_REF new refs.
790 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
791 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
792 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
793 (create_mem_ref): Get alias pointer type. Adjust calls to
795 (maybe_fold_tmr): Likewise.
796 * tree-flow.h (create_mem_ref): Adjust prototype.
798 2010-07-05 Jakub Jelinek <jakub@redhat.com>
801 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
804 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
806 * tree.h (build_call_list): Remove.
807 * tree.c (build_call_list): Remove.
809 2010-07-05 Richard Guenther <rguenther@suse.de>
811 * double-int.h (double_int_sub): Declare.
812 * double-int.c (double_int_sub): New function.
813 * dwarf2out.c (field_byte_offset): Use it.
814 * fixed-value.c (do_fixed_add): Likewise.
815 (do_fixed_multiply): Likewise.
816 (do_fixed_divide): Likewise.
817 * tree-predcom.c (add_ref_to_chain): Likewise.
818 (determine_roots_comp): Likewise.
819 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
821 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
823 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
826 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
828 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
829 * arm-modes.def (CC_NOTB): Don't define.
830 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
831 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
832 (LTUGEU): New code_iterator.
833 (cnb, optab): New corresponding code_attrs.
834 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
835 to canonical form. Operands 1 and 2 are commutative. Parametrize
837 (addsi3_carryin_shift_<optab>): Likewise.
838 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
839 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
840 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
841 (subsi3_compare): Renamed from subsi3_compare0_c.
842 Change CC_NOTB to CC.
843 (arm_subsi3_insn): Allow constants for operand 0.
844 (compare_scc peephole for eq case): New.
845 (compare_scc splitters): Change CC_NOTB to CC.
847 2010-07-05 Richard Guenther <rguenther@suse.de>
849 * tree-ssa-loop-im.c (for_each_index): Do not handle
851 (gen_lsm_tmp_name): Likewise.
852 * tree-dump.c (dequeue_and_dump): Likewise.
853 * tree-pretty-print.c (dump_generic_node): Likewise.
854 (op_code_prio): Likewise.
855 (op_symbol_code): Likewise.
856 * tree.c (staticp): Likewise.
857 (build1_stat): Likewise.
858 * tree.h (INDIRECT_REF_P): Likewise.
859 * fold-const.c (maybe_lvalue_p): Likewise.
860 (operand_equal_p): Likewise.
861 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
862 (ao_ref_init_from_vn_reference): Likewise.
863 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
864 (find_interesting_uses_address): Likewise.
865 * dwarf2out.c (loc_list_from_tree): Likewise.
866 * gimplify.c (gimplify_expr): Likewise.
867 * tree-eh.c (tree_could_trap_p): Likewise.
868 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
869 * cfgexpand.c (expand_debug_expr): Likewise.
870 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
871 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
872 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
873 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
874 * tree-ssa-operands.c (get_expr_operands): Likewise.
875 * expr.c (safe_from_p): Likewise.
876 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
877 * tree-vect-data-refs.c (vect_setup_realignment): Build
878 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
879 * tree-vect-stmts.c (vectorizable_load): Likewise.
880 * tree.def (ALIGN_INDIRECT_REF): Remove.
882 2010-07-05 Richard Guenther <rguenther@suse.de>
884 PR tree-optimization/44784
885 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
887 (find_or_generate_expression): Fix SCCVN insertion check.
889 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
891 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
892 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
893 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
896 2010-07-05 Ira Rosen <irar@il.ibm.com>
898 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
899 statements that are not vectorized.
900 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
903 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
906 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
908 2010-07-05 Richard Guenther <rguenther@suse.de>
910 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
911 RESULT_DECLs properly.
913 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
915 PR rtl-optimization/44695
916 * config/i386/i386.md (extract_code): Removed.
917 (<u>divmodqi4): Likewise.
919 (udivmodqi4): Likewise.
920 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
921 (udivmodhiqi3): Likewise.
923 2010-07-04 Jan Hubicka <jh@suse.cz>
925 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
927 2010-07-04 Jan Hubicka <jh@suse.cz>
929 * cgraphunit.c (init_cgraph): Only initialize dump file if it
930 is not already initialized.
932 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
934 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
935 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
936 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
937 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
938 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
939 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
940 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
941 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
942 (sync_new_nand_optab): Redefine as macros.
943 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
945 (direct_optab_index): New enum.
946 (direct_optab_d): New structure.
947 (direct_optab): New typedef.
948 (direct_optab_table): Declare.
949 (direct_optab_handler, set_direct_optab_handler): New functions.
950 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
951 (sync_lock_release_optab): New macros.
952 * optabs.c (direct_optab_table): New variable.
953 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
954 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
955 cmpstr_optab and cmpstrn_optab.
956 (emit_conditional_move): Likewise for movcc_optab.
957 (can_conditionally_move_p): Likewise for movcc_gen_code.
958 (init_insn_codes): Clear direct_optab_table.
959 (init_optabs): Don't initialize the new "direct optabs" here.
960 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
962 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
963 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
964 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
965 (expand_sync_operation): Likewise other sync_*_optabs.
966 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
967 to sync_compare_and_swap_optab.
968 (expand_sync_lock_test_and_set): Use direct_optab_handler for
969 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
970 to the names of both.
971 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
972 cmpstr_optab and cmpstrn_optab.
973 (expand_builtin_lock_release): Likewise sync_lock_release.
974 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
975 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
976 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
977 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
978 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
979 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
980 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
981 (sync_lock_test_and_set, sync_lock_release): Delete.
982 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
983 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
984 * genopinit.c (optabs): Use set_direct_optab_handler for the new
986 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
987 the "optab" local variable. Use direct_optab_handler for optab and
988 sync_compare_and_swap_optab.
989 * reload1.c (reload_in_optab, reload_out_optab): Delete.
990 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
991 reload_in_optab and reload_out_optab.
992 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
993 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
994 * config/pa/pa.c (pa_secondary_reload): Likewise.
995 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
996 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
997 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
998 (VMSupportsCS8_builtin): Likewise.
1000 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
1002 * optabs.h (optab_handlers): Change type of insn_code to int.
1003 (optab_handler, set_optab_handler, convert_optab_handler)
1004 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
1006 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
1007 (init_insn_codes): Zero both the above arrays.
1008 (init_optabs): Never call init_insn_codes first time around.
1010 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
1012 * optabs.h (optab_handler, convert_optab_handler): Turn into
1013 inline functions that return an insn code.
1014 (set_optab_handler, set_convert_optab_handler): New functions.
1015 * builtins.c: Replace optab_handler(X)->insn_code with
1016 optab_handler or set_optab_handler thoughout. Likewise
1017 convert_optab_handler(X)->insn_code with convert_optab_handler
1018 and set_convert_optab_handler.
1019 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
1020 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
1021 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
1022 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
1023 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
1024 config/spu/spu.c: Likewise.
1026 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
1029 * config.gcc (sh*-*-*): Use regular expressions instead of
1030 the 'i' modifier for sed substitutions.
1032 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
1034 * gimple.c (gimple_body): Comments added.
1036 2010-07-04 Richard Guenther <rguenther@suse.de>
1039 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
1042 2010-07-04 Richard Guenther <rguenther@suse.de>
1044 PR tree-optimization/44479
1045 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
1046 extra SSA name copy statements which preserves points-to
1048 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1049 Copy points-to information for all pointers. Properly handle
1051 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
1053 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
1056 2010-07-04 Richard Guenther <rguenther@suse.de>
1059 * tree-inline.c (initialize_inlined_parameters): Do not
1060 re-use pointer-map slot over remap_type call.
1062 2010-07-04 Richard Guenther <rguenther@suse.de>
1064 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
1066 2010-07-04 Richard Guenther <rguenther@suse.de>
1068 PR tree-optimization/44656
1069 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
1070 again after value-replacing in the defintions lhs.
1072 2010-07-04 Ira Rosen <irar@il.ibm.com>
1073 Revital Eres <eres@il.ibm.com>
1075 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
1076 Document new arguments.
1077 * doc/tm.texi: Regenerate.
1078 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
1079 Handle unaligned store.
1080 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
1081 * target.def (builtin_vectorization_cost): Add new arguments.
1082 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
1083 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
1084 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
1085 (vect_vfa_segment_size): Fix indentation.
1086 * tree-vectorizer.h (struct _vect_peel_info): New.
1087 (struct _vect_peel_extended_info): New.
1088 (struct _loop_vec_info): Add new field for peeling hash table and a
1089 macro for its access.
1090 (VECT_MAX_COST): Define.
1091 (vect_get_load_cost): Declare.
1092 (vect_get_store_cost, vect_get_known_peeling_cost,
1093 vect_get_single_scalar_iteraion_cost): Likewise.
1094 (vect_supportable_dr_alignment): Add new argument.
1095 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
1097 (destroy_loop_vec_info): Free peeling hash table.
1098 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
1099 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
1100 vect_analyze_slp. Fix indentation.
1101 (vect_get_single_scalar_iteraion_cost): New function.
1102 (vect_get_known_peeling_cost): Likewise.
1103 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
1104 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
1105 statement. Move outside cost calculation inside unknown peeling case.
1106 Call vect_get_known_peeling_cost for known amount of peeling.
1107 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
1108 reference to the print message of forced alignment.
1109 (vect_verify_datarefs_alignment): Update call to
1110 vect_supportable_dr_alignment.
1111 (vect_get_data_access_cost): New function.
1112 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
1113 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
1114 vect_peeling_hash_choose_best_peeling): Likewise.
1115 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
1116 to store all the accesses in the loop and find best possible access to
1117 align using peeling for known alignment case. For unknown alignment
1118 check if stores are preferred or if peeling is worthy.
1119 (vect_find_same_alignment_drs): Analyze pairs of loads too.
1120 (vect_supportable_dr_alignment): Add new argument and check aligned
1121 accesses according to it.
1122 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
1123 (cost_for_stmt): Call vect_get_stmt_cost.
1124 (vect_model_simple_cost): Likewise.
1125 (vect_model_store_cost): Call vect_get_stmt_cost. Call
1126 vect_get_store_cost to calculate the cost of the statement.
1127 (vect_get_store_cost): New function.
1128 (vect_model_load_cost): Call vect_get_stmt_cost. Call
1129 vect_get_load_cost to calculate the cost of the statement.
1130 (vect_get_load_cost): New function.
1131 (vectorizable_store): Update call to vect_supportable_dr_alignment.
1132 (vectorizable_load): Likewise.
1133 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
1134 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
1135 arguments. Handle unaligned store.
1136 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
1137 (rs6000_builtin_support_vector_misalignment): Return true for word and
1138 double word alignments for VSX.
1139 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
1140 vect_supportable_dr_alignment and builtin_vectorization_cost.
1142 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1145 * config/pa/predicates.md (prefetch_cc_operand): Remove.
1146 (prefetch_nocc_operand): Likewise.
1147 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
1148 (prefetch_20): New insn.
1149 (prefetch_cc): Remove.
1150 (prefetch_nocc): Likewise.
1152 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1154 * expr.c (vector_mode_valid_p): Move to c-common.c.
1155 * expr.h (vector_mode_valid_p): Do not declare here.
1156 * system.h: Poison GCC_EXPR_H in front-ends.
1157 * Makefile.in: Update dependencies.
1159 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1162 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
1164 2010-07-03 Jan Hubicka <jh@suse.cz>
1166 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
1167 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
1168 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
1169 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
1172 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
1174 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
1175 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
1176 TV_IPA_LTO_DECL_OUT): New.
1177 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
1179 2010-07-03 Jan Hubicka <jh@suse.cz>
1181 * ipa-inline.c (update_edge_key): Break out from ...
1182 update_callers_keys): ... here;
1183 (update_callee_keys): Update only the edges from caller to callee.
1184 (update_all_calle_keys): Do what update_calle_keys did.
1185 (decide_inlining_of_small_functions): Avoid recomputing of all
1186 callees when badness increase.
1188 2010-07-03 Jie Zhang <jie@codesourcery.com>
1190 * config/arm/arm.c (arm_attr_length_move_neon): New.
1191 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
1192 * config/arm/neon.md (define_mode_attr V_slen): Remove.
1193 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
1194 to compute length attribute.
1196 2010-07-03 Jie Zhang <jie@codesourcery.com>
1198 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
1199 as predicate for operand 1 and remove its constraint.
1200 * config/arm/predicates.md (vfp_register_operand): New.
1201 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
1202 (*push_fp_multi): Likewise.
1204 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
1206 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
1208 2010-07-03 Jan Hubicka <jh@suse.cz>
1210 * config/i386/i386.c (override_options): Revert accidental commit.
1212 2010-07-02 Le-Chun Wu <lcwu@google.com>
1215 * doc/invoke.texi: Update documentation of -Wshadow.
1217 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1218 Julian Brown <julian@codesourcery.com>
1219 Sandra Loosemore <sandra@codesourcery.com>
1221 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
1222 comparisons. Adjust to take both operands.
1223 (arm_select_cc_mode): Handle DImode comparisons.
1224 (arm_gen_compare_reg): Generate a scratch register for DImode
1225 comparisons which require one. Use xor for Thumb equality checks.
1226 (arm_const_double_by_immediates): New.
1227 (arm_print_operand): Allow 'Q' and 'R' for constants.
1228 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
1229 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
1230 arm_canonicalize_comparison.
1231 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
1232 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
1234 (arm_const_double_by_immediates): Declare.
1235 * config/arm/constraints.md (Di): New constraint.
1236 * config/arm/predicates.md (arm_immediate_di_operand)
1237 (arm_di_operand, cmpdi_operand): New.
1238 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
1239 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
1240 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
1241 (cstoredi4): Handle non-Cirrus also.
1243 2010-07-02 Julian Brown <julian@codesourcery.com>
1244 Sandra Loosemore <sandra@codesourcery.com>
1247 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
1248 (smax<mode>3): Disable for NEON float modes when
1249 flag_unsafe_math_optimizations is false.
1250 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
1252 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
1253 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
1254 for NEON float modes when flag_unsafe_math_optimizations is false.
1255 (quad_halves_<code>v4sf): Only enable if
1256 flag_unsafe_math_optimizations is true.
1257 * doc/invoke.texi (ARM Options): Add note about floating point
1258 vectorization requiring -funsafe-math-optimizations.
1260 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1261 Julian Brown <julian@codesourcery.com>
1263 * config/arm/neon.md (UNSPEC_VABA): Delete.
1264 (UNSPEC_VABAL): Delete.
1265 (UNSPEC_VABS): Delete.
1266 (UNSPEC_VMUL_N): Delete.
1269 (mul<mode>3add<mode>_neon): Make the pattern named.
1270 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
1271 (neon_vadd<mode>): Replace with define_expand, and move the remaining
1273 (neon_vadd<mode>_unspec): ...to this.
1274 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
1275 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
1276 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
1277 (neon_vaba<mode>): Rewrite in terms of vabd.
1278 (neon_vabal<mode>): Rewrite in terms of vabdl.
1279 (neon_vabs<mode>): Rewrite without unspec.
1280 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
1281 (*arm_subdi3): Likewise.
1282 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
1283 No_op attribute to disable assembly output checks.
1284 * config/arm/arm_neon.h: Regenerated.
1285 * doc/arm-neon-intrinsics.texi: Regenerated.
1287 2010-07-02 Jan Hubicka <jh@suse.cz>
1289 * ipa-split.c (split_function): For aggregate values, set the return
1290 slot optimization bit. When passing DECL_BY_REFERENCE, produce
1291 *<retval> = fncall.part ().
1292 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
1294 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1296 * config/arm/neon.md (UNSPEC_VAND): Delete.
1297 (UNSPEC_VBIC): Delete.
1298 (UNSPEC_VCLZ): Delete.
1299 (UNSPEC_VCNT): Delete.
1300 (UNSPEC_VEOR): Delete.
1301 (UNSPEC_VORN): Delete.
1302 (UNSPEC_VORR): Delete.
1303 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
1305 (anddi3_neon): Likewise.
1306 (orndi3_neon): Likewise.
1307 (bicdi3_neon): Likewise.
1308 (xordi3_neon): Likewise.
1309 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
1310 rid of unspec and handle unused operand.
1311 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
1312 * config/arm/predicates.md (imm_for_neon_logic_operand):
1313 Require TARGET_NEON.
1314 (imm_for_neon_inv_logic_operand): Likewise.
1315 * config/arm/arm.md (define_split for logical_binary_operator):
1316 Disable for NEON registers.
1317 (anddi3): Add new define_expand, and rename the insn. Disable
1318 this insn for NEON, where anddi3_neon now applies.
1319 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
1320 (iordi3): As for anddi3.
1322 * config/arm/neon.ml (Vand): Split DImode variants and mark them
1323 as No_op to disable testing for exact instruction match.
1328 * config/arm/arm_neon.h: Regenerated.
1329 * doc/arm-neon-intrinsics.texi: Regenerated.
1331 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
1333 * expr.h (emit_stack_probe): Declare.
1334 * explow.c (emit_stack_probe): Make global.
1335 (anti_adjust_stack_and_probe): Fix comments.
1336 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
1337 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1338 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1339 * config/sparc/sparc.c: Include except.h.
1340 (sparc_emit_probe_stack_range): New function.
1341 (output_probe_stack_range): Likewise.
1342 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
1343 built-in stack checking is enabled.
1344 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
1345 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
1346 (probe_stack_range): New insn.
1348 2010-07-02 Richard Guenther <rguenther@suse.de>
1351 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
1352 for argument alignment.
1354 2010-07-02 Jan Hubicka <jh@suse.cz>
1356 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
1357 walk backwards from entry_bb to check only those basic block of header
1358 that might lead to execution of split part.
1359 (consider_split) ... here.
1360 (find_return_bb): Allow assignment in return BB.
1362 (split_function): Fix name of cloned function; take care of updating
1363 return value in return_bb containing move.
1365 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
1368 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
1371 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
1373 * implicit-zee.c (combine_reaching_defs): Fix long lines.
1374 (is_set_with_extension_DI): Delete.
1375 (struct zero_extend_info): New structure.
1376 (add_removable_zero_extend): New function.
1377 (find_removable_zero_extends): Use note_stores to find SETs.
1378 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
1380 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
1382 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
1383 is_miss_rate_acceptable. Pull total_positions computation
1384 out of the loops. Early return if miss_positions exceeds
1385 the acceptable threshold.
1386 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
1387 is_miss_rate_acceptable after renaming of compute_miss_rate.
1389 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
1392 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
1393 of 1000) for miss rate if the address diference is greater than or
1394 equal to the cache line size (the two reference will never hit the
1397 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
1400 * config/arm/arm-modes.def (CC_NOTB): New mode.
1401 * config/arm/arm.c (get_arm_condition_code): Handle it.
1402 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
1403 * config/arm/arm.md (subsi3_compare0_c): New pattern.
1404 (compare_scc): Now a define_and_split. Add a number of extra
1405 splitters before it.
1408 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
1410 (arm_rtx_costs_1): Likewise.
1411 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
1412 * config/arm/arm.md (is_arch6): New attribute.
1413 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
1414 extendqisi2): Tighten the code somewhat, avoiding invalid
1415 RTL to occur in the expander patterns.
1416 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
1417 (thumb1_zero_extendhisi2_v6): Delete.
1418 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
1419 (thumb1_extendhisi2_v6): Delete.
1420 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
1421 (thumb1_extendqisi2_v6): Delete.
1422 (zero_extendhisi2 for register input splitter): New.
1423 (zero_extendqisi2 for register input splitter): New.
1424 (thumb1_extendhisi2 for register input splitter): New.
1425 (extendhisi2 for register input splitter): New.
1426 (extendqisi2 for register input splitter): New.
1427 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
1428 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
1429 and add support for a register alternative requiring a split.
1430 (thumb1_zero_extendqisi2): Likewise.
1431 (arm_zero_extendqisi2): Likewise.
1432 (arm_extendhisi2): Likewise.
1433 (arm_extendqisi2): Likewise.
1435 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1437 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
1438 instead of an unspec.
1439 (neon_expand_vector_init): Likewise.
1440 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
1441 (UNSPEC_VDUP_LANE): Delete.
1442 (UNSPEC VDUP_N): Delete.
1443 (UNSPEC_VGET_HIGH): Delete.
1444 (UNSPEC_VGET_LANE): Delete.
1445 (UNSPEC_VGET_LOW): Delete.
1446 (UNSPEC_VMVN): Delete.
1447 (UNSPEC_VSET_LANE): Delete.
1448 (V_double_vector_mode): New.
1449 (vec_set<mode>_internal): Make code emitted match that for the
1450 corresponding intrinsics.
1451 (vec_setv2di_internal): Likewise.
1452 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
1453 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
1454 (neon_vset_lane<mode>): Combine double and quad patterns and
1455 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
1456 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
1457 (neon_vdup_n<mode>): Rewrite RTL without unspec.
1458 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
1459 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
1460 with neon_vdup_lanev2di, adjusting the pattern from the latter
1461 to be predicable for consistency.
1462 (neon_vdup_lane<mode>_internal): New.
1463 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
1464 to avoid using an unspec.
1465 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
1466 (neon_vdup_lanev2di): Turn into a define_expand.
1467 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
1468 (neon_vget_high<mode>): Replace with....
1469 (neon_vget_highv16qi): New pattern using canonical RTL.
1470 (neon_vget_highv8hi): Likewise.
1471 (neon_vget_highv4si): Likewise.
1472 (neon_vget_highv4sf): Likewise.
1473 (neon_vget_highv2di): Likewise.
1474 (neon_vget_low<mode>): Replace with....
1475 (neon_vget_lowv16qi): New pattern using canonical RTL.
1476 (neon_vget_lowv8hi): Likewise.
1477 (neon_vget_lowv4si): Likewise.
1478 (neon_vget_lowv4sf): Likewise.
1479 (neon_vget_lowv2di): Likewise.
1481 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
1482 test for this emitting vmov.
1483 (Vset_lane): Likewise.
1487 * doc/arm-neon-intrinsics.texi: Regenerated.
1489 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1491 * config/arm/neon.md (vec_extractv2di): Correct error in register
1492 numbering to reconcile with neon_vget_lanev2di.
1494 2010-07-02 Richard Guenther <rguenther@suse.de>
1496 * tree-ssa-structalias.c (pt_solution_set_var): New function.
1497 * tree-ssa-alias.h (pt_solution_set_var): Declare.
1498 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
1499 points-to information.
1501 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
1503 * config/s390/s390.c (override_options): Adopt prefetching
1504 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
1506 2010-07-02 Jan Hubicka <jh@suse.cz>
1508 * df-problems.c (df_kill_notes): Do not collect dead notes.
1509 (df_set_note): Just call add_reg_note.
1510 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
1511 df_create_unused_note): Do not deal with lists of old notes.
1512 (df_note_bb_compute): Likewise.
1514 2010-07-02 Richard Guenther <rguenther@suse.de>
1516 * tree-ssa-structalias.c (find_func_aliases): Handle
1517 pointer alignment via BIT_AND_EXPR.
1518 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
1520 2010-07-02 Richard Guenther <rguenther@suse.de>
1522 * tree-data-ref.c (initialize_data_dependence_relation): Handle
1523 mismatching number of dimensions properly.
1525 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1528 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
1529 (lo_sum (high ...) ...) patterns generated by earlier passes.
1531 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1533 * doc/install.texi (Prerequisites): Document Perl requirement on
1535 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
1537 2010-07-02 Richard Guenther <rguenther@suse.de>
1540 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
1542 2010-07-02 Jan Hubicka <jh@suse.cz>
1545 * predict.c (predict_paths_for_bb): Handle case when control dependence
1546 BB has only abnormal edges.
1548 2010-07-02 Richard Guenther <rguenther@suse.de>
1550 PR tree-optimization/44748
1551 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
1552 the embedded conversion in MEM_REFs.
1554 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
1556 * reload.c: Include toplev.h.
1557 * recog.c: Likewise.
1558 * Makefile.in: Adjust dependencies.
1560 2010-07-01 Jakub Jelinek <jakub@redhat.com>
1563 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
1564 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
1566 2010-07-01 Richard Guenther <rguenther@suse.de>
1568 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
1571 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
1574 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
1577 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
1580 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1581 Make sure operand 0 dies.
1583 2010-07-01 Richard Guenther <rguenther@suse.de>
1587 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
1588 * doc/generic.texi (References to storage): Document MEM_REF.
1589 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
1590 (print_call_name): Likewise.
1591 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
1592 (build_simple_mem_ref_loc): New function.
1593 (mem_ref_offset): Likewise.
1594 * tree.h (build_simple_mem_ref_loc): Declare.
1595 (build_simple_mem_ref): Define.
1596 (mem_ref_offset): Declare.
1597 * fold-const.c: Include tree-flow.h.
1598 (operand_equal_p): Handle MEM_REF.
1599 (build_fold_addr_expr_with_type_loc): Likewise.
1600 (fold_comparison): Likewise.
1601 (fold_unary_loc): Fold
1602 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
1603 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
1604 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
1605 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
1606 (ptr_deref_may_alias_ref_p_1): Likewise.
1607 (ao_ref_base_alias_set): Properly differentiate base object for
1609 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
1610 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
1611 (indirect_refs_may_alias_p): Likewise.
1612 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
1614 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
1615 (call_may_clobber_ref_p_1): Likewise.
1616 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
1617 * expr.c (expand_assignment): Handle MEM_REF.
1618 (store_expr): Handle MEM_REFs from STRING_CSTs.
1619 (store_field): If expanding a MEM_REF of a non-addressable
1620 decl use bitfield operations.
1621 (get_inner_reference): Handle MEM_REF.
1622 (expand_expr_addr_expr_1): Likewise.
1623 (expand_expr_real_1): Likewise.
1624 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
1625 * alias.c (ao_ref_from_mem): Handle MEM_REF.
1626 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
1627 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
1628 (dr_analyze_indices): Likewise.
1629 (dr_analyze_alias): Likewise.
1630 (object_address_invariant_in_loop_p): Likewise.
1631 * gimplify.c (mark_addressable): Handle MEM_REF.
1632 (gimplify_cond_expr): Build MEM_REFs.
1633 (gimplify_modify_expr_to_memcpy): Likewise.
1634 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
1635 (gimple_fold_indirect_ref): Adjust.
1636 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
1637 * tree.def (MEM_REF): New tree code.
1638 * tree-dfa.c: Include toplev.h.
1639 (get_ref_base_and_extent): Handle MEM_REF.
1640 (get_addr_base_and_unit_offset): New function.
1641 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
1642 * gimple-fold.c (may_propagate_address_into_dereference): Handle
1644 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
1645 accesses if the array has just one dimension. Remove always true
1646 parameter. Do not require type compatibility here.
1647 (maybe_fold_offset_to_component_ref): Remove.
1648 (maybe_fold_stmt_indirect): Remove.
1649 (maybe_fold_reference): Remove INDIRECT_REF handling.
1650 Fold back to non-MEM_REF.
1651 (maybe_fold_offset_to_address): Simplify. Deal with type
1653 (maybe_fold_reference): Likewise.
1654 (maybe_fold_stmt_addition): Likewise. Also handle
1655 &ARRAY + I in addition to &ARRAY[0] + I.
1656 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
1657 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
1658 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
1659 * tree-ssa.c (useless_type_conversion_p): Make most pointer
1660 conversions useless.
1661 (warn_uninitialized_var): Handle MEM_REF.
1662 (maybe_rewrite_mem_ref_base): New function.
1663 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
1665 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
1666 INDIRECT_REF handling.
1667 (copy_tree_body_r): Handle MEM_REF.
1668 * gimple.c (is_gimple_addressable): Adjust.
1669 (is_gimple_address): Likewise.
1670 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
1671 invariant base are invariant.
1672 (is_gimple_min_lval): Adjust.
1673 (is_gimple_mem_ref_addr): New function.
1674 (get_base_address): Handle MEM_REF.
1675 (count_ptr_derefs): Likewise.
1676 (get_base_loadstore): Likewise.
1677 * gimple.h (is_gimple_mem_ref_addr): Declare.
1678 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
1679 * tree-cfg.c (verify_address): New function, split out from ...
1680 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
1681 the address operand of MEM_REFs. Verify MEM_REFs. Reject
1683 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
1684 INDIRECT_REF. Allow conversions.
1685 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
1686 a register does not change its size.
1687 (verify_types_in_gimple_reference): Verify MEM_REF.
1688 (verify_gimple_assign_single): Disallow INDIRECT_REF.
1690 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
1692 (mark_address_taken): Handle MEM_REF.
1693 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
1694 (get_asm_expr_operands): Pass opf_not_non_addressable.
1695 (get_expr_operands): Handle opf_[not_]non_addressable.
1696 Handle MEM_REF. Remove INDIRECT_REF handling.
1697 * tree-vrp.c: (check_array_ref): Handle MEM_REF.
1698 (search_for_addr_array): Likewise.
1699 (check_array_bounds): Likewise.
1700 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
1701 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
1702 (ref_always_accessed_p): Likewise.
1703 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
1704 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
1706 * cgraphbuild.c (mark_load): Properly check for NULL result
1707 from get_base_address.
1708 (mark_store): Likewise.
1709 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
1710 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
1711 handling for MEM_REF.
1712 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
1713 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
1714 * builtins.c (stabilize_va_list_loc): Use the function ABI
1715 valist type if we couldn't canonicalize the argument type.
1716 Always dereference with the canonical va-list type.
1717 (maybe_emit_free_warning): Handle MEM_REF.
1718 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
1720 * builtins.c (fold_builtin_memory_op): Use ref-all types
1721 for all memcpy foldings.
1722 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
1723 (build_outer_var_ref): Likewise.
1724 (scan_omp_1_op): Likewise.
1725 (lower_rec_input_clauses): Likewise.
1726 (lower_lastprivate_clauses): Likewise.
1727 (lower_reduction_clauses): Likewise.
1728 (lower_copyprivate_clauses): Likewise.
1729 (expand_omp_atomic_pipeline): Likewise.
1730 (expand_omp_atomic_mutex): Likewise.
1731 (create_task_copyfn): Likewise.
1732 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
1733 Remove old union trick. Initialize constant offsets.
1734 (ao_ref_init_from_vn_reference): Likewise. Do not handle
1735 INDIRECT_REF. Init base_alias_set properly.
1736 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
1737 (vn_reference_fold_indirect): Adjust for MEM_REFs.
1738 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
1740 (may_insert): Remove.
1741 (visit_reference_op_load): Do not test may_insert.
1742 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
1743 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
1744 a field to store the constant offset this op applies.
1745 (run_scc_vn): Adjust prototype.
1746 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
1747 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
1748 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
1749 bother about volatile qualifiers on pointers.
1750 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
1751 * tree-ssa-loop-ivopts.c
1752 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
1753 (strip_offset_1): Likewise.
1754 (find_interesting_uses_address): Replace INDIRECT_REF handling with
1756 (get_computation_cost_at): Likewise.
1757 * ipa-pure-const.c (check_op): Handle MEM_REF.
1758 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
1759 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
1761 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
1762 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
1763 (eliminate_local_variables_1): Likewise.
1764 (create_call_for_reduction_1): Likewise.
1765 (create_loads_for_reductions): Likewise.
1766 (create_loads_and_stores_for_name): Likewise.
1767 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
1768 (ssa_accessed_in_tree): Handle MEM_REF.
1769 (ssa_accessed_in_assign_rhs): Likewise.
1770 (update_type_size): Likewise.
1771 (analyze_accesses_for_call_stmt): Likewise.
1772 (analyze_accesses_for_assign_stmt): Likewise.
1773 (transform_access_sites): Likewise.
1774 (transform_allocation_sites): Likewise.
1775 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
1776 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
1777 not handle INDIRECT_REF.
1778 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
1779 (cond_store_replacement): Likewise.
1780 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
1781 MEM_REF, no not handle INDIRECT_REFs.
1782 (insert_into_preds_of_block): Properly initialize avail.
1783 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
1784 for ARRAY_REFs. Properly handle reference lookups that
1785 require a bit re-interpretation.
1786 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
1787 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
1788 (build_ref_for_offset_1): Remove.
1789 (build_ref_for_offset): Build MEM_REFs.
1790 (gate_intra_sra): Disable for now.
1791 (sra_ipa_modify_expr): Handle MEM_REF.
1792 (ipa_early_sra_gate): Disable for now.
1793 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
1795 (disqualify_base_of_expr): Likewise.
1796 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
1798 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
1799 Use mem_ref_offset. Remove bogus folding.
1800 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
1801 (make_fancy_name_1): Add support for MEM_REF.
1802 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
1803 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
1804 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
1805 (compute_complex_ancestor_jump_func): Likewise.
1806 (ipa_analyze_virtual_call_uses): Likewise.
1807 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
1808 INDIRECT_REF folding with more generalized MEM_REF folding.
1809 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
1810 (forward_propagate_addr_into_variable_array_index): Also handle
1811 &ARRAY + I in addition to &ARRAY[0] + I.
1812 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
1813 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
1814 creates assignments with overlap.
1815 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
1816 (get_frame_field): Likewise.
1817 (get_nonlocal_debug_decl): Likewise.
1818 (convert_nonlocal_reference_op): Likewise.
1819 (struct nesting_info): Add mem_refs pointer-set.
1820 (create_nesting_tree): Allocate it.
1821 (convert_local_reference_op): Insert to be folded mem-refs.
1822 (fold_mem_refs): New function.
1823 (finalize_nesting_tree_1): Perform defered folding of mem-refs
1824 (free_nesting_tree): Free the pointer-set.
1825 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
1826 (vectorizable_load): Likewise.
1827 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
1828 (propagate_with_phi): Likewise.
1829 * tree-object-size.c (addr_object_size): Handle MEM_REFs
1830 instead of INDIRECT_REFs.
1831 (compute_object_offset): Handle MEM_REF.
1832 (plus_stmt_object_size): Handle MEM_REF.
1833 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
1835 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
1836 (symbol_marked_for_renaming): Likewise.
1837 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
1838 (fold-const.o): Add $(TREE_FLOW_H).
1839 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
1840 (find_func_clobbers): Likewise.
1841 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
1842 (decompose_access): Likewise.
1843 (replace_field_acc): Likewise.
1844 (replace_field_access_stmt): Likewise.
1845 (insert_new_var_in_stmt): Likewise.
1846 (get_stmt_accesses): Likewise.
1847 (reorg_structs_drive): Disable.
1848 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
1849 (ix86_canonical_va_list_type): Likewise.
1851 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
1854 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
1855 * target.def (struct gcc_target): Replace enum reg_class with
1856 reg_class_t in hook argument / return types.
1857 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
1858 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
1859 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
1860 * targhooks.h (default_branch_target_register_class): Likewise.
1861 (default_ira_cover_classes, default_secondary_reload): Likewise.
1862 (default_memory_move_cost, default_register_move_cost): Likewise.
1863 * targhooks.c (default_branch_target_register_class): Likewise.
1864 (default_ira_cover_classes, default_secondary_reload): Likewise.
1865 (default_memory_move_cost, default_register_move_cost): Likewise.
1866 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
1867 * bt-load.c (branch_target_load_optimize): Likewise.
1868 * ira.c (setup_cover_and_important_classes): Likewise.
1869 * ira-costs.c (copy_cost): Likewise.
1870 * reload1.c (emit_input_reload_insns): Likewise.
1871 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
1872 * config/frv/frv.c (frv_secondary_reload): Likewise.
1873 * config/s390/s390.c (s390_secondary_reload): Likewise.
1874 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
1875 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
1876 (ix86_register_move_cost): Likewise.
1877 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
1878 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
1879 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
1880 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
1881 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
1882 (rs6000_ira_cover_classes): Likewise.
1883 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
1884 * config/picochip/picochip-protos.h (picochip_secondary_reload):
1886 * config/pa/pa.c (pa_secondary_reload): Likewise.
1887 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
1888 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
1889 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
1890 * doc/tm.texi: Regenerate.
1892 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
1895 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
1897 (build_alias_set_optimal_p): Likewise.
1898 (build_base_obj_set_for_drs): Likewise.
1900 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
1902 * target.def: Remove comment about licensing problems of function
1905 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
1906 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
1907 * doc/tm.texi: Regenerate.
1909 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
1910 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
1912 * target.def (enum_va_list_p): Use DEFHOOK.
1913 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
1914 Rename ptype to ptree.
1915 * doc/tm.texi: Regenerate.
1917 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
1918 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
1919 * doc/tm.texi: Regenerate.
1921 * target.def (memory_move_cost): Use DEFHOOK.
1922 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
1923 Rename regclass AKA class to rclass.
1924 * doc/tm.texi: Regenerate.
1926 * target.def (pragma_parse): Use DEFHOOK.
1927 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
1928 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
1929 * doc/tm.texi: Regenerate.
1931 * target.def (pass_by_reference): Use DEFHOOK.
1932 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
1933 * doc/tm.texi: Regenerate.
1935 * target.def (resolve_overloaded_builtin): Rename params to arglist.
1937 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
1938 * doc/tm.texi: Regenerate.
1940 * target.def (return_pops_args): Use DEFHOOK.
1941 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
1942 Rename stack-size to size.
1943 * doc/tm.texi: Regenerate.
1945 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
1946 last-sched_cycle to last_clock, cur_cycle to clock.
1947 * doc/tm.texi.in: Use @hook.
1948 * doc/tm.texi: Regenerate.
1950 * target.def (print_operand, print_operand_address): Update comment.
1951 (print_operand_punct_valid_p): Likewise.
1953 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1955 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
1957 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
1958 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
1960 * regrename.c: Do not include toplev.h. Include rtl-error.h.
1961 * rtl-error.c: Likewise.
1962 * reload.c: Likewise.
1963 * recog.c: Likewise.
1964 * sel-sched.c: Likewise.
1965 * function.c: Likewise.
1966 * reg-stack.c: Likewise.
1967 * cfgrtl.c: Likewise.
1968 * reload1.c: Likewise.
1969 * final.c: Include rtl-error.
1970 * Makefile.in: Adjust dependencies.
1972 2010-06-30 Jan Hubicka <jh@suse.cz>
1974 PR middle-end/PR44706
1975 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
1976 to return the value.
1978 2010-06-30 Michael Matz <matz@suse.de>
1981 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
1982 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
1983 a gimple reg, attach the original VDEF to the last store in the
1986 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
1989 * config/darwin.c (darwin_override_options): Use renamed
1990 targetm.asm_out.emit_unwind_label.
1992 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
1994 PR tree-optimization/39799
1995 * tree-inline.c (remap_ssa_name): Initialize variable only if
1996 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1998 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
2000 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
2002 2010-06-30 Richard Guenther <rguenther@suse.de>
2005 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
2006 against oscillation with reverse peephole2.
2008 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
2011 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2014 2010-06-30 Nick Clifton <nickc@redhat.com>
2016 * config/rx/rx-modes.def: New file.
2017 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
2018 (CC_REGNUM): Define.
2019 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
2021 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
2022 (SELECT_CC_MODE): Define.
2023 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
2024 (reg:CC CC_REG) instead of (cc0).
2025 (attr "cc"): Delete.
2026 (cbranchsi4): Do not split compare and branch here. Instead move
2028 (cbranchsi4_<code>): ... here. New patterns.
2029 (cmpsi): Call rx-compare_redundant to find out if it is necessary
2030 to emit the compare instruction.
2031 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
2033 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
2034 FIRST_PSEUDO_REGNUM.
2035 (rx_expand_prologue, rx_expand_epilogue): Likewise.
2036 (rx_notice_update_cc): Delete.
2037 (rx_cc_modes_compatible): New function.
2038 (flags_needed_for_conditional): New function.
2039 (flags_from_mode): New function.
2040 (rx_compare_redundant): New function - scans backwards through
2041 insn list to find out if condition flags are already set correctly.
2042 (TARGET_CC_MODES_COMPATIBLE): Define.
2043 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
2045 * config/rx/rx.h (BRANCH_COST): Define.
2046 (REGISTER_MOVE_COST): Define.
2047 * config/rx/predicates (rx_source_operand): Allow all constant types.
2048 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
2049 (tstsi4): New pattern.
2050 * config/rx/rx.c (rx_memory_move_cost): Define.
2051 (TARGET_MEMORY_MOVE_COST): Define.
2053 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2055 * tree.h (block_may_fallthru): Declare here.
2056 * tree-flow.h (block_may_fallthru): Do not declare here.
2057 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
2059 * Makefile.in (c-typeck.o): Update dependencies.
2061 2010-06-30 Jakub Jelinek <jakub@redhat.com>
2064 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
2065 * cselib.c (cfa_base_preserved_regno): New static variable.
2066 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
2067 of REGNO (cfa_base_preserved_val->locs->loc).
2068 (cselib_preserve_cfa_base_value): Add regno argument, set
2069 cfa_base_preserved_regno to it.
2070 (cselib_invalidate_regno): Allow removal of registers other than
2071 cfa_base_preserved_regno from cfa_base_preserved_val.
2072 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
2073 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
2074 of MEM addresses, if not on LHS.
2075 (reverse_op): Don't add reverse ops for cfa_base_rtx.
2076 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
2078 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
2080 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
2082 (peep2_buf_position): New static function.
2083 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
2084 peephole2_optimize): Use it.
2085 (peep2_attempt, peep2_update_life): New static functions, broken out
2086 of peephole2_optimize.
2087 (peep2_fill_buffer): New static function.
2088 (peephole2_optimize): Change the main loop to try to fill the buffer
2089 with the maximum number of insns before matching them against
2090 peepholes. Use a forward scan. Remove special case for targets with
2091 conditional execution.
2092 * genrecog.c (change_state): Delete dead code.
2093 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2094 Rewrite so as not to expect the second insn to have had a peephole
2097 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2099 * genhooks.c (emit_findices): Cast field precision to int.
2100 (emit_documentation): Likewise.
2102 2010-06-29 Jakub Jelinek <jakub@redhat.com>
2104 PR tree-optimization/43801
2105 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
2106 if old_decl was DECL_ONE_ONLY.
2109 * dwarf2out.c (add_accessibility_attribute): New function.
2110 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
2111 instead of adding DW_AT_accessibility manually.
2112 (gen_enumeration_type_die, gen_struct_or_union_type_die,
2113 gen_typedef_die): Use it.
2115 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2117 * vmsdbgout.c (full_name): Just output the file name if not native.
2119 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2121 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
2122 (funcnam_table): New static table.
2123 (funcnum_table): New static table.
2124 (write_rtnbeg): Write value saved in funcnum_table.
2125 (write_rtnend): Write value saved in funcnum_table.
2126 (vmsdbgout_begin_function): Save current function info in
2127 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
2128 (vmsdbgout_finish): Iterate over funcnum_table.
2130 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2132 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
2133 (vmsdbgout_type_decl): Declare
2134 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
2135 (FUNC_EPILOGUE_LABEL): New macro
2136 (vmsdbgout_begin_epilogue): New function.
2137 (vmsdbgout_type_decl): New function.
2139 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2141 * vmsdbg.h: Update copyright.
2143 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2145 * vmsdbg.h (DST_K_TBG): New DST constant.
2146 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
2147 (write_modbeg): Cast module_language to avoid warning.
2148 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
2150 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2153 * target.def, doc/tm.texi.in, genhooks.c: New files.
2154 * target.h: Instead of defining individual hook members,
2155 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
2157 * target-def.h: Instead of defining individual hook initializers,
2158 include target-hooks-def.h.
2159 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
2160 targetm.live_on_entry -> targetm.extra_live_on_entry
2161 targetm.sched.md_finish ->targetm.sched.finish
2162 targetm.sched.md_init -> targetm.sched.init
2163 targetm.sched.md_init_global -> targetm.sched.init_global
2164 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
2165 targetm.asm_out.except_table_label ->
2166 targetm.asm_out.emit_except_table_label
2167 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
2168 targetm.target_help -> targetm.help
2169 targetm.vectorize.builtin_support_vector_misalignment ->
2170 targetm.vectorize.support_vector_misalignment
2171 targetm.file_start_app_off -> targetm.asm_file_start_app_off
2172 targetm.file_start_file_directive ->
2173 targetm.asm_file_start_file_directive
2174 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
2175 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
2176 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
2177 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
2178 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
2179 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
2180 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
2181 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
2182 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
2183 * Makefile.in (TARGET_H): Depend on target.def.
2184 (TARGET_DEF_H): Depend on target-hooks-def.h.
2185 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
2186 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
2187 * doc/tm.texi: Regenerate.
2189 * Makefile.in (s-tm-texi): Remove stray tab / rule.
2191 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
2192 (targetm.sched.init): Likewise.
2194 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2197 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
2198 (function_arg_advance_32): Const-ify TYPE parameter.
2199 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
2200 (ix86_function_arg_advance): Change type of NAMED to bool.
2201 (function_arg_32): Const-ify CUM and TYPE parameters.
2202 (function_arg_64): Likewise. Change type of NAMED to bool.
2203 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
2205 (ix86_function_arg): Change type of NAMED to bool.
2206 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
2207 last argument as a bool.
2209 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2211 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
2212 (OVERRIDE_OPTIONS): Add note of obsolescence.
2213 Replace references with references to TARGET_OPTION_OVERRIDE.
2214 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
2216 * targhooks.c (default_target_option_override): New function.
2217 * targhooks.h (default_target_option_override): Declare.
2218 * target.h (struct gcc_target): Add override member to
2219 target_option member.
2220 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
2221 targetm.target_option.override call.
2222 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
2223 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
2225 2010-06-29 Jan Hubicka <jh@suse.cz>
2227 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
2229 2010-06-29 Jan Hubicka <jh@suse.cz>
2231 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
2233 (rebuild_frequencies): New function.
2234 * predict.h (rebuild_frequencies): Declare.
2235 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
2236 entry block and edge reaching new_entry.
2237 (tree_function_versioning): When doing partial cloning, rebuild
2238 frequencies when done.
2239 * passes.c (execute_function_todo): Use rebild_frequencies.
2241 2010-06-29 Richard Guenther <rguenther@suse.de>
2243 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
2244 * tree-flow.h (enum noalias_state): Remove.
2245 (struct var_ann_d): Remove noalias_state member.
2247 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
2250 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
2251 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
2252 (maddhidi4): Likewise.
2254 Revert parts of the change for PR25130.
2255 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2258 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2260 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
2261 targetm.calls.function_incoming_arg, and
2262 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
2263 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
2264 * target.h (struct gcc_target): Add function_arg_advance,
2265 function_arg, and function_incoming_arg fields.
2266 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
2267 (TARGET_FUNCTION_INCOMING_ARG): Define.
2268 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
2269 and TARGET_FUNCTION_INCOMING_ARG.
2270 * targhooks.h (default_function_arg_advance): Declare.
2271 (default_function_arg, default_function_incoming_arg): Declare.
2272 * targhooks.c (default_function_arg_advance): New function.
2273 (default_function_arg, default_function_incoming_arg): New function.
2274 * config/i386/i386.c (function_arg_advance): Rename to...
2275 (ix86_function_arg_advance): ...this. Make static.
2276 (function_arg): Rename to...
2277 (ix86_function_arg): ...this. Make static.
2278 (TARGET_FUNCTION_ARG_ADVANCE): Define.
2279 (TARGET_FUNCTION_ARG): Define.
2280 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
2281 (FUNCTION_ARG): Delete.
2282 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
2283 (function_arg): Delete prototype.
2285 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2287 * reginfo.c (init_reg_sets_1): Adjust comments.
2288 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
2289 * calls.c (prepare_call_address): Likewise.
2290 (emit_call_1): Use targetm.calls.return_pops_args.
2291 (expand_call): Likewise.
2292 * function.c (assign_parms): Likewise.
2293 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
2294 * target.h (struct gcc_target) [struct calls]: Add
2295 return_pops_args field.
2296 * targhooks.h (default_return_pops_args): Declare.
2297 * targhooks.c (default_return_pops_args): Define.
2298 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
2299 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
2300 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
2301 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
2303 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
2304 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
2305 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
2306 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
2307 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
2308 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
2309 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
2310 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
2311 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
2312 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
2313 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
2314 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
2315 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
2316 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
2317 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
2318 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
2319 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
2320 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
2321 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
2322 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
2323 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
2324 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
2325 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
2326 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
2327 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
2328 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
2329 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
2330 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
2331 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
2332 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
2333 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
2334 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
2335 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
2336 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
2337 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
2338 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
2339 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
2340 * config/i386/i386.c (ix86_return_pops_args): Make static.
2342 (TARGET_RETURN_POPS_ARGS): Define.
2343 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
2344 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
2345 (TARGET_RETURN_POPS_ARGS): Define.
2346 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
2347 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
2348 (TARGET_RETURN_POPS_ARGS): Define.
2350 2010-06-29 Richard Guenther <rguenther@suse.de>
2353 * tree-inline.c (initialize_inlined_parameters): Make sure
2354 to remap the inlined parameter variable substitutions types.
2356 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
2358 PR rtl-optimization/44659
2359 * combine.c (make_compound_operation) <SUBREG>: Do not return the
2360 result of force_to_mode if it partially re-expanded the compound.
2362 2010-06-28 Jan Hubicka <jh@suse.cz>
2365 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
2368 2010-06-28 Anatoly Sokolov <aesok@post.ru>
2370 * double-int.h (force_fit_type_double): Remove declaration.
2371 * double-int.c (force_fit_type_double): Move to tree.c.
2372 * tree.h (force_fit_type_double): Declare.
2373 * tree.h (force_fit_type_double): Moved from double-int.c. Use
2374 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
2375 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
2376 * convert.c (convert_to_pointer): Adjust call to
2377 force_fit_type_double.
2378 * tree-vrp.c (extract_range_from_assert,
2379 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
2380 * fold-const.c: Update comment.
2381 (int_const_binop, fold_convert_const_int_from_int,
2382 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
2383 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
2384 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
2385 round_up_loc): Adjust call to force_fit_type_double.
2387 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2389 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
2391 2010-06-28 Martin Jambor <mjambor@suse.cz>
2393 * tree-sra.c (convert_callers): New parameter, change fndecls of
2395 (modify_function): Pass the old decl to convert_callers.
2397 2010-06-28 Martin Jambor <mjambor@suse.cz>
2399 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
2400 ipa_check_create_node_params and ipa_initialize_node_params with
2401 checking asserts they are not necessary.
2403 2010-06-28 Jan Hubicka <jh@suse.cz>
2405 PR tree-optimization/44687
2406 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
2408 2010-06-28 Martin Jambor <mjambor@suse.cz>
2411 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
2412 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
2413 instead of BINFO_BASE_BINFO.
2415 2010-06-28 Michael Matz <matz@suse.de>
2418 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
2419 proper VDEF chain for intermediate stores in the sequence.
2421 2010-06-28 Jan Hubicka <jh@suse.cz>
2423 PR tree-optimization/44357
2424 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
2425 uninlinable functions.
2427 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2429 * config.gcc (powerpc*-*-*): Handle titan.
2430 * config/rs6000/rs6000.c (titan_cost): New costs.
2431 (rs6000_override_options): Add "titan" to processor_target_table.
2432 Add Titan to branch alignment logic.
2433 Correctly set rs6000_cost for titan.
2434 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
2435 * config/rs6000/titan.md: New file.
2436 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
2438 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
2440 * tree-browser.c (TB_history_stack): Convert to a VEC.
2441 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
2442 (TB_history_prev): Likewise.
2444 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
2446 * vec.h (vec_heap_free): Add parentheses around free.
2448 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2450 * system.h: Poison GCC_EXCEPT_H for front-end files.
2452 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
2454 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
2455 Define to NULL by default.
2456 * except.h: Define GCC_EXCEPT_H.
2457 (doing_eh): Remove prototype.
2458 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
2459 (lang_protect_cleanup_actions): Remove.
2460 * except.c (lang_protect_cleanup_actions): Remove.
2462 (gen_eh_region): Don't check doing_eh here.
2463 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
2464 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
2465 instead of lang_protect_cleanup_actions.
2466 * omp-low.c (maybe_catch_exception): Likewise.
2467 * Makefile.in: Update dependencies.
2469 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
2471 * cgraph.h (struct varpool_node): new used_from_object_file flag.
2472 (struct cgraph_local_info): new used_from_object_file flag.
2473 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
2474 (cgraph_clone_node): initialize used_from_object_file.
2475 (cgraph_create_virtual_clone): initialize used_from_object_file.
2476 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
2477 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
2478 when compiling with -fwhole-program.
2479 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
2481 * ipa.c (function_and_variable_visibility): Set externally_visible
2482 flag of varpool_node if used_from_object_file flag is set.
2483 (cgraph_externally_visible_p): check used_from_object_file flag.
2484 * doc/invoke.texi (-fwhole-program option): Change description of
2485 externally_visible attribute accordingly.
2486 * doc/extend.texi (externally_visible): Ditto.
2488 2010-06-27 Jan Hubicka <jh@suse.cz>
2490 * params.def (max-inline-insns-auto): Default to 40.
2491 * doc/invoke.texi (max-inline-insns-auto): Document the change.
2493 2010-06-27 Jan Hubicka <jh@suse.cz>
2497 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
2499 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
2500 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
2502 2010-06-27 Anatoly Sokolov <aesok@post.ru>
2504 * target.h (struct gcc_target): Add register_move_cost field.
2505 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
2506 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
2507 * targhooks.c (default_register_move_cost): New function.
2508 * targhooks.h (default_register_move_cost): Declare function.
2509 * defaults.h (REGISTER_MOVE_COST): Delete.
2510 * ira-int.h (ira_register_move_cost): Update comment.
2511 * ira.c: (ira_register_move_cost): Update comment.
2512 * reload.h (register_move_cost): Declare.
2513 * reginfo.c (register_move_cost): New function.
2514 (move_cost): Update comment.
2515 (init_move_cost, memory_move_secondary_cost): Replace
2516 REGISTER_MOVE_COST with register_move_cost.
2517 * postreload.c (reload_cse_simplify_set): (Ditto.).
2518 * reload.c (find_valid_class, find_reloads): (Ditto.).
2519 * reload1.c (choose_reload_regs): (Ditto.).
2520 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
2521 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
2522 * doc/md.texi (can_create_pseudo_p): Update documentation.
2524 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
2525 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
2526 * config/i386/i386.h (ix86_memory_move_cost): Make static.
2527 (TARGET_MEMORY_MOVE_COST): Define.
2529 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
2530 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
2531 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
2532 (TARGET_MEMORY_MOVE_COST): Define.
2534 2010-06-27 Richard Guenther <rguenther@suse.de>
2536 PR tree-optimization/44683
2537 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
2538 false edge from the inverted condition.
2540 2010-06-27 Richard Guenther <rguenther@suse.de>
2543 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
2544 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
2545 for register LHS. Or non-store assignments.
2547 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
2549 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
2550 (sparc_emit_set_const64): Likewise. Remove disabled code.
2551 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
2552 (sparc_emit_set_const64): Likewise.
2554 2010-06-26 Catherine Moore <clm@codesourcery.com>
2556 * config/mips/mips.md (alu_type): New attribute.
2557 (type): Infer type from alu_type.
2558 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
2559 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
2560 *subsi3_extended, negsi2, negdi2, *low<mode>,
2561 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
2562 xor<mode>3, *nor<mode>3,
2563 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
2564 *zero_extendhi_truncqi): Set alu_type instead of type.
2566 2010-06-26 Douglas B Rupp <rupp@gnat.com>
2568 * config/alpha/alpha.c (alpha_need_linkage): Adjust
2569 splay_tree_new_ggc call.
2570 (alpha_use_linkage): Likewise.
2572 2010-06-26 Joseph Myers <joseph@codesourcery.com>
2574 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
2575 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
2576 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
2577 (static_specs): Remove switches_need_spaces.
2578 (process_command, do_self_spec): Hardcode handling "-o" instead of
2579 checking switches_need_spaces.
2580 * system.h (SWITCHES_NEED_SPACES): Poison.
2582 2010-06-26 Richard Guenther <rguenther@suse.de>
2584 PR tree-optimization/44393
2585 * tree-loop-distribution.c (generate_loops_for_partition): Fix
2586 stmt removal and VOP renaming.
2587 (generate_memset_zero): Remove redundant stmt updating.
2588 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
2589 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
2591 2010-06-26 Jan Hubicka <jh@suse.cz>
2593 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
2594 edges comming from header are equivalent.
2595 (visit_bb): Handle PHIs correctly.
2596 * tree-inline.c (copy_phis_for_bb): Be able to copy
2597 PHI from entry edge.
2598 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
2600 2010-06-26 Richard Guenther <rguenther@suse.de>
2603 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
2604 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
2606 2010-06-26 Joseph Myers <joseph@codesourcery.com>
2608 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
2609 add_infile, alloc_switch): New.
2610 (process_command): Remove variable lang_n_infiles. Process
2611 options in a single pass. Use new functions for allocating
2612 infiles and switches arrays. Properly skip operands of
2613 -Xpreprocessor and -Xassembler.
2615 2010-06-26 Jan Hubicka <jh@suse.cz>
2618 * cgraphunit.c (cgraph_function_versioning): Remove wrong
2619 cgraph_make_decl_local call; fix typo copying RTL data.
2621 2010-06-25 DJ Delorie <dj@redhat.com>
2623 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
2624 (m32c_output_aligned_common): Likewise.
2625 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
2626 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
2627 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
2628 (m32c_register_pragmas): Register it.
2629 * config/m32c/m32c.c (m32c_get_pragma_address): New.
2630 (m32c_insert_attributes): Set #pragma address decls volatile.
2631 (pragma_entry_eq): New.
2632 (pragma_entry_hash): New.
2633 (m32c_note_pragma_address): New.
2634 (m32c_get_pragma_address): New.
2635 (m32c_output_aligned_common): New.
2636 * doc/extend.texi: Document the new pragma.
2638 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
2640 * config/m32c/predicates.md (m32c_any_operand): Check the code
2641 instead of memory_operand so as to allow matching volatile MEMs.
2642 (m32c_nonimmediate_operand): Likewise.
2643 (mra_operand): Allow volatiles.
2645 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
2648 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
2649 address if the offset is unknown.
2651 2010-06-25 Douglas B Rupp <rupp@gnat.com>
2653 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
2654 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
2655 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
2656 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
2657 to ia64_start_function. Invoke it.
2658 * config/ia64/ia64.c (ia64_start_function): Call new function
2659 dwarf2out_vms_debug_main_pointer.
2661 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2663 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
2664 statements computing the true predicate.
2666 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2668 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
2669 to boolean_true_node.
2670 (reset_bb_predicate): New.
2671 (predicate_bbs): Call reset_bb_predicate.
2673 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2675 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
2676 (tree_if_conversion): Returns true when something has been changed.
2677 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
2680 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2682 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
2683 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
2684 * tree-if-conv.c: Include dbgcnt.h.
2685 (tree_if_conversion): Use if_conversion_tree to count the number of
2686 if-convertible loops.
2688 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
2690 * common.opt (fprefetch-loop-arrays): Re-define
2691 -fprefetch-loop-arrays as a tri-state option with the initial
2693 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
2694 pass only when flag_prefetch_loop_arrays > 0.
2695 * toplev.c (process_options): Note that, with tri-states,
2696 flag_prefetch_loop_arrays>0 means prefetching is enabled.
2697 * config/i386/i386.c (override_options): Enable prefetching at -O3
2698 for a set of CPUs that sw prefetching is helpful.
2699 (software_prefetching_beneficial_p): New. Return TRUE if software
2700 prefetching is beneficial for the given CPU.
2702 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
2704 PR rtl-optimization/44326
2705 * implicit-zee.c (find_removable_zero_extends): Replace
2706 INSN_P with NONDEBUG_INSN_P.
2708 2010-06-25 Martin Jambor <mjambor@suse.cz>
2710 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
2711 (struct ipa_node_params): Removed the modification_analysis_done flag.
2712 (ipa_is_param_modified): Removed.
2713 (ipa_analyze_node): Declare.
2714 (ipa_compute_jump_functions): Remove declaration.
2715 (ipa_count_arguments): Likewise.
2716 (ipa_detect_param_modifications): Likewise.
2717 (ipa_analyze_params_uses): Likewise.
2718 * ipa-prop.c (struct param_analysis_info): New type.
2719 (visit_store_addr_for_mod_analysis): Removed.
2720 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
2721 moved down in the file.
2722 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
2723 (ipa_count_arguments): Made static.
2724 (mark_modified): New function.
2725 (is_parm_modified_before_call): New function.
2726 (compute_pass_through_member_ptrs): New parameter parms_info, call
2727 is_parm_modified_before_call instead of ipa_is_param_modified.
2728 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
2729 it to compute_pass_through_member_ptrs.
2730 (ipa_compute_jump_functions): New parameter parms_info, pass it to
2731 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
2732 on the callee if it is analyzed. Made static.
2733 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
2734 is_parm_modified_before_call instead of ipa_is_param_modified.
2735 (ipa_analyze_call_uses): New parameter parms_info, pass it to
2736 ipa_analyze_indirect_call_uses.
2737 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
2738 ipa_analyze_call_uses.
2739 (ipa_analyze_params_uses): New parameter parms_info, pass it to
2740 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
2741 (ipa_analyze_node): New function.
2742 (ipa_print_node_params): Do not dump the modified flag.
2743 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
2744 it. Do not stream the modified parameter flag.
2745 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
2746 it. Do not stream the modified parameter flag.
2747 * ipa-cp.c (ipcp_analyze_node): Removed.
2748 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
2749 with only a call to ipa_analyze_node.
2750 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
2751 node with only a call to ipa_analyze_node.
2753 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
2755 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
2757 2010-06-25 Jan Hubicka <jh@suse.cz>
2759 * tree-pass.h (pass_split_functions): Declare.
2760 * opts.c (decode_options): Enable function splitting at -O2
2761 * timevar.def (TV_IPA_FNSPLIT): New macro.
2762 * ipa-split.c: New file.
2763 * common.opt (-fpartial-inlining): New flag.
2764 * Makefile.in (ipa-split.o): New object file.
2765 * passes.c (init_optimization_passes): Add ipa-split.
2766 * params.def (partial-inlining-entry-probability): New parameters.
2767 * doc/invoke.texi (-fpartial-inlining): New.
2769 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
2772 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
2773 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
2774 (gimplify_expr): Likewise.
2776 2010-06-25 Martin Jambor <mjambor@suse.cz>
2778 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
2779 statements instead of bailing out on them.
2780 (ipa_analyze_indirect_call_uses): Do not require that loads from the
2781 parameter are in the same BB as the condition. Update comments.
2783 2010-06-25 Jakub Jelinek <jakub@redhat.com>
2786 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
2787 true or always false, return NULL_TREE.
2788 (tree_unswitch_single_loop): Optimize conditions even when reaching
2789 max-unswitch-level parameter. If num > 0, optimize first all conditions
2790 using entry checks, then do still reachable block discovery and consider
2791 only conditions in still reachable basic blocks in the loop.
2793 PR tree-optimization/44539
2794 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
2795 the call doesn't have LHS, but has VDEF.
2797 2010-06-25 Joseph Myers <joseph@codesourcery.com>
2799 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
2800 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
2801 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
2802 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
2803 * system.h (MODIFY_TARGET_NAME): Poison.
2805 2010-06-25 Alan Modra <amodra@gmail.com>
2807 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
2808 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
2809 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
2810 CMODEL_LARGE as default.
2811 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
2812 (offsettable_ok_by_alignment): Delete.
2813 (rs6000_emit_move): Remove mcmodel=medium optimization.
2815 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
2817 With large parts from Jim Wilson:
2819 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
2820 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
2821 * optabs.c (optab_for_tree_code): Likewise.
2822 (expand_widen_pattern_expr): Likewise.
2823 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
2824 out of execute_optimize_widening_mul.
2825 (convert_plusminus_to_widen): New function.
2826 (execute_optimize_widening_mul): Use the two new functions.
2827 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
2828 Remove code to generate widening multiply-accumulate. Add support
2829 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
2830 * gimple-pretty-print.c (dump_ternary_rhs): New function.
2831 (dump_gimple_assign): Call it when appropriate.
2832 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
2833 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
2834 (expand_gimple_stmt_1): Likewise.
2835 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
2836 WIDEN_MULT_MINUS_EXPR.
2837 * tree-ssa-operands.c (get_expr_operands): Likewise.
2838 * tree-inline.c (estimate_operator_cost): Likewise.
2839 * gimple.c (extract_ops_from_tree_1): Renamed from
2840 extract_ops_from_tree. Add new arg for a third operand; fill it.
2841 (gimple_build_assign_stat): Support operations with three operands.
2842 (gimple_build_assign_with_ops_stat): Likewise.
2843 (gimple_assign_set_rhs_from_tree): Likewise.
2844 (gimple_assign_set_rhs_with_ops_1): Renamed from
2845 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
2846 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
2847 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
2848 WIDEN_MULT_MINUS_EXPR.
2849 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
2850 (extract_ops_from_tree_1): Adjust declaration.
2851 (gimple_assign_set_rhs_with_ops_1): Likewise.
2852 (gimple_build_assign_with_ops): Pass NULL for last operand.
2853 (gimple_build_assign_with_ops3): New macro.
2854 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
2855 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
2857 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
2858 (verify_gimple_assign): Call it.
2859 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
2860 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
2861 functions for dealing with three-operand statements.
2862 * tree.c (commutative_ternary_tree_code): New function.
2863 * tree.h (commutative_ternary_tree_code): Declare it.
2864 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
2866 (gimple_assign_nonzero_warnv_p): Likewise.
2867 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
2868 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
2869 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
2870 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
2871 (struct hashtable_expr): New member ternary in the union.
2872 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
2873 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
2874 (iterative_hash_hashable_expr): Likewise.
2875 (print_expr_hash_elt): Handle EXPR_TERNARY.
2876 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
2877 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
2878 statements. Handle GIMPLE_TERNARY_RHS.
2880 2010-06-25 Jan Hubicka <jh@suse.cz>
2882 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
2884 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
2887 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
2888 parameters are not good.
2889 (c_parser_parameter_declaration): Error unknown type name if the type
2890 name can't start declaration specifiers.
2892 2010-06-25 Joseph Myers <joseph@codesourcery.com>
2894 * gcc.c (translate_options): Don't mention +e in comment.
2895 (process_command): Don't handle +e specially.
2897 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
2899 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
2901 * ira-build.c (merge_hard_reg_conflicts): New function.
2902 (create_cap_allocno, copy_info_to_removed_store_destinations,
2903 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
2904 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
2905 (remove_unnecessary_allocnos, remove_low_level_allocnos)
2906 copy_nifo_to_removed_store_destination): Use them.
2907 * ira-lives.c (make_hard_regno_born): New function, split out of
2909 (make_allocno_born): Likewise.
2910 (make_hard_regno_dead): New function, split out of make_regno_dead.
2911 (make_allocno_dead): Likewise.
2912 (inc_register_pressure): New function, split out of set_allocno_live.
2913 (dec_register_pressure): New function, split out of clear_allocno_live.
2914 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
2915 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
2916 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
2917 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
2918 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
2919 mark_pseudo_regno_live.
2920 (process_bb_node_lives): Use mark_pseudo_regno_live,
2921 make_hard_regno_born and make_allocno_dead.
2922 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
2923 set_allocno_live, clear_allocno_live): Delete functions.
2925 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
2926 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
2928 (ira_flattening): Use ira_parent_allocno.
2929 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
2930 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
2932 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
2935 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
2936 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
2937 minmax_set_iter_cond, minmax_set_iter_next,
2938 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
2939 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
2940 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
2941 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
2944 * ira-int.h (struct live_range, live_range_t): Renamed from struct
2945 ira_allocno_live_range and allocno_live_range_t; all uses changed.
2946 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
2949 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
2951 * thumb2.md (thumb2_tlobits_cbranch): Delete.
2952 (peephole2 to convert zero_extract/compare of single bit to
2953 lshift/compare): New.
2955 2010-06-24 Anatoly Sokolov <aesok@post.ru>
2957 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
2958 recursive call and call to 'int_const_binop'.
2959 (build_range_check, fold_cond_expr_with_comparison, unextend,
2960 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
2961 multiple_of_p): Adjust call to const_binop.
2963 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
2965 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
2966 determine size of XFmode operand.
2967 (XFmode extended DFmode push splitter): Ditto.
2968 (XFmode extended SFmode push splitter): Ditto.
2970 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
2973 * config/i386/i386.md (extract_code): New.
2974 (<u>divmodqi4): Likewise.
2975 (divmodhiqi3): Likewise.
2976 (udivmodhiqi3): Likewise.
2977 (<u>divqi3): Remvoved.
2979 2010-06-24 Jakub Jelinek <jakub@redhat.com>
2982 * recog.h (struct recog_data): Add is_asm field.
2983 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
2984 present in constraints of inline-asm operand and memory operand
2985 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
2986 (extract_insn): Initialize recog_data.is_asm.
2987 * doc/md.texi (Constraints): Document operand side-effect rules.
2989 2010-06-24 Andi Kleen <ak@linux.intel.com>
2991 * c-parser.c (c_parser_conditional_expression): Call
2992 warn_for_omitted_condop.
2993 * doc/invoke.texi: Document omitted condop warning.
2995 2010-06-24 Nick Clifton<nickc@redhat.com>
2997 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
2998 insn in the sequence is a jump insn before setting its label.
3000 2010-06-24 Alan Modra <amodra@gmail.com>
3002 * collect2.c (main): Match exactly --version and --help.
3004 2010-06-24 DJ Delorie <dj@redhat.com>
3006 * config/m32c/m32c-pragma.c: Don't include rtl.h.
3008 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
3010 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
3011 using X87MODEF mode iterator.
3012 (pushsf splitter): Macroize splitter using P mode iterator.
3013 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
3016 (*movxf_internal): Rename from *movxf_integer.
3017 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
3018 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
3019 (*movdf_internal): Rename from *movdf_integer.
3020 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
3021 (*movsf_internal): Rename from *movdf_1.
3023 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
3025 * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
3026 (const_gimple_seq_node): Removed typedefs.
3028 * gimple.h: (gimple_seq_node_d, gimple_seq_node)
3029 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
3031 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
3033 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
3034 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
3035 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
3036 and CODE_FOR_vec_extract_lo_v4df.
3038 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
3039 Changed to define_insn_and_split.
3040 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
3041 (vec_extract_lo_v16hi): Likewise.
3042 (vec_extract_lo_v32qi): Likewise.
3043 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
3044 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
3046 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
3049 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
3050 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
3051 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
3052 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
3053 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
3056 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
3059 * df-core.c (struct df): Rename to df_d.
3060 * df.h (struct df): Likewise.
3061 * dse.h (struct df): Remove forward declaration.
3062 * recog.h (struct insn_data): Rename to:
3063 (struct_insn_data_d). Adjusted all users.
3065 2010-06-23 Arnaud Charlet <charlet@adacore.com
3068 * doc/install.texi: Update requirements to build GNAT.
3070 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
3072 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
3074 (m68k_sched_attr_opx_type): Remove unreachable return.
3075 (m68k_sched_attr_opy_type): Likewise.
3076 (m68k_sched_attr_size): Likewise.
3077 (sched_get_opxy_mem_type): Likewise.
3078 (m68k_sched_attr_op_mem): Likewise.
3080 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
3082 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
3083 new statement and adjust VDEF only if necessary. Remove superfluous
3084 call to maybe_clean_or_replace_eh_stmt.
3085 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
3087 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
3088 * tree-inline.c (copy_bb): ...and not there.
3090 2010-06-22 Cary Coutant <ccoutant@google.com>
3092 * dwarf2out.c (is_nested_in_subprogram): New function.
3093 (should_move_die_to_comdat): Use it.
3094 (copy_ancestor_tree): Don't mark DIEs here.
3095 (copy_decls_walk): Start walk from root of newly-added tree;
3096 mark DIEs here instead.
3098 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
3100 * config/i386/i386.md (unit): Also check sseishft1.
3102 2010-06-22 Jan Hubicka <jh@suse.cz>
3104 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
3107 2010-06-22 Jan Hubicka <jh@suse.cz>
3109 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
3110 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
3111 Return true if something changed.
3112 * df.h (df_confluence_function_n): Return bool.
3113 * df-core.c (df_worklist_propagate_forward,
3114 df_worklist_propagate_backward): Track changes and ages.
3115 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
3117 * dse.c (dse_confluence_n): Return always true.
3119 2010-06-22 Jan Hubicka <jh@suse.cz>
3121 * bitmap.c (bitmap_clear_bit): Micro optimize.
3123 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
3125 * config/i386/i386.md (SWI1248x): New mode iterator.
3130 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
3131 SWI1248x mode iterator.
3132 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
3133 using SWI124 mode iterator.
3134 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
3136 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
3137 *pushdi2_prologue_rex64 using P mode iterator.
3138 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
3139 using SWI48 mode iterator.
3140 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
3141 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
3142 using SWI1248x mode iterator.
3143 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
3144 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
3145 SWI48 mode iterator.
3146 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
3148 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
3149 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
3150 SWI12 mode iterator.
3151 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
3152 SWI12 mode iterator.
3153 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
3154 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
3155 SWI24 mode iterator.
3156 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
3157 SWI48 mode iterator.
3158 (mov<mode>_insn_1): New expander.
3159 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
3160 using SWI48x mode iterator.
3162 (*movoi_internal_avx): Rename from *movoi_internal.
3163 (*movti_internal_rex64): Rename from *movti_rex64.
3164 (*movti_internal_sse): Rename from *movti_sse.
3165 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
3166 (*movdi_internal): Rename from *movdi_2.
3167 (*movsi_internal): Rename from *movsi_1.
3168 (*movhi_internal): Rename from *movhi_1.
3169 (*movqi_internal): Rename from *movqi_1.
3171 (insv): Update the call to gen_movsi_insv_1 for rename.
3172 * config/i386/i386.c (promote_duplicated_reg): Ditto.
3174 2010-06-22 Jan Hubicka <jh@suse.cz>
3176 * passes.c (execute_function_todo): Move call of statistics_fini_pass
3178 (execute_todo) ... this one.
3180 2010-06-22 Alan Modra <amodra@gmail.com>
3183 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3184 * caller-save.c (insert_restore, insert_save): Use non-validate
3185 form of adjust_address.
3187 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3190 * config/pa/pa.c (override_options): Disable
3191 -freorder-blocks-and-partition.
3193 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
3196 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
3198 * config/i386/i386.md (type): Add sseishft1
3200 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
3201 (ppro_insn_load): Likewise.
3202 (ppro_insn_store): Likewise.
3203 (ppro_insn_both): Likewise.
3205 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
3206 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
3208 (*vec_extractv2di_1_avx): Likewise.
3209 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
3210 type. Remove atom_unit.
3211 (*vec_extractv2di_1_sse2): Likewise.
3213 2010-06-21 DJ Delorie <dj@redhat.com>
3215 * diagnostic.h (diagnostic_classification_change_t): New.
3216 (diagnostic_context): Add history and push/pop list.
3217 (diagnostic_push_diagnostics): Declare.
3218 (diagnostic_pop_diagnostics): Declare.
3219 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
3220 from pragmas in a history chain instead of the global table.
3221 (diagnostic_push_diagnostics): New.
3222 (diagnostic_pop_diagnostics): New.
3223 (diagnostic_report_diagnostic): Scan history chain to find state
3224 of diagnostics as of the diagnostic location.
3225 * opts.c (set_option): Pass UNKNOWN_LOCATION to
3226 diagnostic_classify_diagnostic.
3227 (enable_warning_as_error): Likewise.
3228 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
3229 use in the history chain.
3230 * doc/extend.texi: Document pragma GCC diagnostic changes.
3232 2010-06-21 Jakub Jelinek <jakub@redhat.com>
3234 * dwarf2out.c (add_linkage_name): New function. Don't add
3235 anything to DW_TAG_member DIEs.
3236 (add_name_and_src_coords_attributes): Use it.
3237 (gen_variable_die): Call it for C++ static data members if
3238 specification is DW_TAG_member.
3240 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
3241 C++ char16_t and char32_t.
3243 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
3244 * genattrtab.c: Include vecprim.h.
3245 (cached_attrs, cached_attr_count, attrs_seen_once,
3246 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
3247 attrs_cached_after): New variables.
3248 (find_attrs_to_cache): New function.
3249 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
3250 (write_test_expr): Add attrs_cached argument, return it too,
3251 attempt to cache non-const attributes used more than once in
3252 a single case handling.
3253 (write_attr_get): Use find_attrs_to_cache, for caching candidates
3254 emit cached_* variables. Adjust write_attr_set callers.
3255 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
3256 to find attributes that should be cached in this block. Adjust
3257 write_test_expr callers.
3258 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
3260 (make_automaton_attrs): Adjust write_test_expr caller.
3262 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
3263 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
3264 (make_automaton_attrs): If find_tune_attr returns non-NULL,
3265 write separate internal_dfa_insn_code_* and insn_default_latency_*
3266 functions for each attribute's value and emit init_sched_attrs
3267 function and function pointers.
3268 * genattr.c (const_attrs, reservations): New variables.
3269 (gen_attr): Add const attributes to const_attrs vector.
3270 (check_tune_attr, find_tune_attr): New functions.
3271 (main): Add reservations to reservations vector. If find_tune_attr
3272 returns true, add prototype for init_sched_attrs and make
3273 internal_dfa_insn_code and insn_default_latency function pointers,
3274 otherwise define init_sched_attrs as dummy macro.
3275 * cfgexpand.c: Include insn-attr.h.
3276 (gimple_expand_cfg): Call init_sched_attrs.
3278 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
3281 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
3282 va_arg from a set of register save slots into a temporary,
3283 if the container is bigger than type size, do the copying
3284 using smaller mode or using memcpy.
3287 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
3289 (sel_print_to_dot): Remove macro.
3290 (sel_print): Likewise. New prototype.
3291 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
3292 (sel_print): New function.
3294 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3296 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
3297 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
3299 2010-06-21 Nick Clifton <nickc@redhat.com>
3301 * config/rx/rx.h (PTRDIFF_TYPE): Define.
3302 (SMALL_REGISTER_CLASS): Define (to zero).
3303 (PRINT_OPERAND): Delete.
3304 (PRINT_OPERAND_ADDRESS): Delete.
3305 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
3306 (rx_print_operand_address): Delete prototype.
3307 * config/rx/rx.c (rx_print_operand): Make static.
3308 Allow %H and %L to handle CONST_DOUBLEs.
3309 (rx_print_operand_address): Make static.
3310 (rx_gen_move_template): Rename local variable 'template' to
3312 (rx_function_arg): Do not pass unknown sized objects in registers.
3313 (TARGET_PRINT_OPERAND): Define.
3314 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3316 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3318 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
3320 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
3322 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
3323 stack-alignment for simple leaf-functions.
3325 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
3327 * doc/install.texi: Document bootstrap-lto.
3329 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
3332 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
3333 (input_function): Drop them here, if VTA is disabled.
3335 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
3338 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
3340 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
3341 ix86_swapped_fp_comparsion_operator instead of
3342 ix86_fp_comparison_operator.
3344 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
3345 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
3346 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
3347 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
3348 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
3349 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
3351 2010-06-20 Joseph Myers <joseph@codesourcery.com>
3354 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
3355 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
3356 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
3357 (decode_cmdline_option): Update for this return value. Set
3358 orig_option_with_args_text field. Set arg field for unknown
3359 options. Make static.
3360 (decode_cmdline_options_to_array): New.
3361 (prune_options): Update handling of find_opt return value.
3362 * opts.c (read_cmdline_option): Take decoded option. Return void.
3363 (read_cmdline_options): Take decoded options.
3364 (decode_options): Add parameters for decoded options. Use
3365 decode_cmdline_options_to_array. Use decoded options for -O
3366 scan. Use integral_argument for -O parameters. Update call to
3367 read_cmdline_options.
3368 (enable_warning_as_error): Update handling of find_opt return value.
3369 * opts.h: Update comment on unknown options.
3370 (struct cl_decoded_option): Update comments on opt_index and arg.
3371 Add orig_option_with_args_text.
3372 (decode_cmdline_option): Remove.
3373 (decode_cmdline_options_to_array): Declare.
3374 (decode_options): Update prototype.
3375 * toplev.c (save_argv): Remove.
3376 (save_decoded_options, save_decoded_options_count): New.
3377 (read_integral_parameter): Remove.
3378 (print_switch_values): Use decoded options.
3379 (toplev_main): Don't set save_argv. Update call to decode_options.
3380 * toplev.h (read_integral_parameter): Remove.
3381 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
3383 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
3386 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
3388 * constraints.md (Pw, Px): New constraints.
3389 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
3391 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
3393 * config/i386/sse.md (fma4modesuffixf4): Removed.
3394 (ssemodesuffixf2s): Likewise.
3395 (ssemodesuffixf4): Likewise.
3396 (ssemodesuffixf2c): Likewise.
3397 (ssescalarmodesuffix2s): Likewise.
3398 (avxmodesuffixf2c): Likewise.
3399 (ssemodesuffix): New.
3400 (ssescalarmodesuffix): Likewise.
3401 Update patterns with ssemodesuffix and ssescalarmodesuffix.
3403 2010-06-19 Philip Herron <herron.philip@googlemail.com>
3405 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
3407 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
3409 * stor-layout.c (debug_rli): Remove unused local variables.
3411 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
3413 PR rtl-optimization/40900
3414 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
3415 original expression for later reuse.
3416 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
3417 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
3419 2010-06-18 Anatoly Sokolov <aesok@post.ru>
3421 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
3422 double_int_fits_in_uhwi_p): Implement as static inline.
3423 (double_int_xor): New inline function.
3424 (double_int_lrotate, double_int_rrotate, double_int_max,
3425 double_int_umax, double_int_smax, double_int_min, double_int_umin,
3426 double_int_smin): Declare.
3427 (lrotate_double, rrotate_double): Remove declaration.
3428 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
3429 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
3430 (double_int_lrotate, double_int_rrotate, double_int_max,
3431 double_int_umax, double_int_smax, double_int_min, double_int_umin,
3432 double_int_smin): New function.
3433 * fold-const.c (int_const_binop): Clean up, use double_int_*
3435 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
3436 double_int_* and immed_double_int_const functions.
3438 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3440 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
3441 * function.c (types_used_by_cur_var_decl): Likewise.
3442 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
3444 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3446 * tree.h (record_layout_info): Change type of pending_statics field
3448 * stor-layout.c (start_record_layout): Store NULL into
3450 (debug_rli): Call debug_vec_tree instead of debug_tree.
3451 (place_field): Likewise.
3452 (finish_record_layout): Likewise.
3454 2010-06-18 Alan Modra <amodra@gmail.com>
3456 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
3458 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3461 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
3462 for SET source operand from SET destination operand.
3464 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
3466 PR rtl-optimization/39871
3467 * reload1.c (init_eliminable_invariants): For flag_pic, disable
3468 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
3469 (function_invariant_p): Rule out a plus of frame or arg pointer with
3471 * ira.c (find_reg_equiv_invariant_const): Likewise.
3473 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
3475 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
3476 print_operand_address and puts to output the operand for CONST.
3478 2010-06-17 Jakub Jelinek <jakub@redhat.com>
3481 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
3484 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3486 * v850-protos.h (print_operand): Delete.
3487 (print_operand_address): Delete.
3488 * v850.h (PRINT_OPERAND): Delete.
3489 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3490 (PRINT_OPERAND_ADDRESS): Delete.
3491 * v850.c (print_operand_address): Rename to...
3492 (v850_print_operand_address): ...this. Make static. Call
3494 (print_operand): Rename to...
3495 (v850_print_operand): ...this. Make static. Call
3496 v850_print_operand_address.
3497 (v850_print_operand_punct_valid_p): New function.
3498 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3499 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3501 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3503 * config/sh/sh-protos.h (print_operand): Delete.
3504 (print_operand_address): Delete.
3505 * config/sh/sh.h (PRINT_OPERAND): Delete.
3506 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3507 (PRINT_OPERAND_ADDRESS): Delete.
3508 * config/sh/sh.c (sh_print_operand_address): Make static.
3509 (sh_print_operand): Make static. Call sh_print_operand_address
3510 and sh_print_operand.
3511 (sh_print_operand_punct_valid_p): New function.
3512 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3513 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3515 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3517 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
3518 (mcore_print_operand_address): Delete.
3519 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
3520 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3521 (PRINT_OPERAND_ADDRESS): Delete.
3522 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
3523 (mcore_print_operand): Make static.
3524 (mcore_print_operand_punct_valid_p): New function.
3525 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
3526 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3528 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3530 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
3531 (print_operand_address): Delete.
3532 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
3533 (PRINT_OPERAND_ADDRESS): Delete.
3534 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
3536 (m68hc11_print_operand): Make static.
3537 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3539 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3541 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
3542 (m32r_print_operand_address): Delete.
3543 * config/m32r/m32r.h (m32r_punct_chars): Delete.
3544 (PRINT_OPERAND): Delete.
3545 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3546 (PRINT_OPERAND_ADDRESS): Delete.
3547 * config/m32r/m32r.c (m32r_punct_chars): Make static.
3548 (m32r_print_operand_address): Make static.
3549 (m32r_print_operand): Make static.
3550 (m32r_print_operand_punct_valid_p): New function.
3551 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3552 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3554 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3556 * config/iq2000/iq2000-protos.h (print_operand): Delete.
3557 (print_operand_address): Delete.
3558 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
3559 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3560 (PRINT_OPERAND_ADDRESS): Delete.
3561 (iq2000_print_operand_punct): Delete.
3562 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
3563 (iq2000_print_operand_address): Make static.
3564 (iq2000_print_operand): Make static.
3565 (iq2000_print_operand_punct_valid_p): New function.
3566 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3567 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3569 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3571 * config/frv/frv-protos.h (frv_print_operand): Delete.
3572 (frv_print_operand_address): Delete.
3573 * config/frv/frv.h (PRINT_OPERAND): Delete.
3574 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3575 (PRINT_OPERAND_ADDRESS): Delete.
3576 * config/frv/frv.c (frv_print_operand_address): Make static.
3577 (frv_print_operand): Make static.
3578 (frv_print_operand_punct_valid_p): New function.
3579 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3580 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3582 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3584 * tree.h (vec_member): Declare.
3585 * tree.c (vec_member): Define.
3587 2010-06-17 Richard Guenther <rguenther@suse.de>
3589 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
3590 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
3592 2010-06-17 Richard Guenther <rguenther@suse.de>
3594 * tree-inline.c (declare_return_variable): Remove bogus code.
3596 2010-06-17 Richard Guenther <rguenther@suse.de>
3598 * gimplify.c (gimplify_bind_expr): Always promote complex
3599 and vector variables to registers if possible.
3601 2010-06-17 Richard Guenther <rguenther@suse.de>
3603 * expr.c (get_inner_reference): Use double_int for bit_offset
3606 2010-06-16 DJ Delorie <dj@redhat.com>
3608 * common.opt (-fstrict-volatile-bitfields): new.
3609 * doc/invoke.texi: Document it.
3610 * fold-const.c (optimize_bit_field_compare): For volatile
3611 bitfields, use the field's type to determine the mode, not the
3613 * expr.c (expand_assignment): Likewise.
3614 (get_inner_reference): Likewise.
3615 (expand_expr_real_1): Likewise.
3616 * expmed.c (store_fixed_bit_field): Likewise.
3617 (extract_bit_field_1): Likewise.
3618 (extract_fixed_bit_field): Likewise.
3620 2010-06-16 Richard Guenther <rguenther@suse.de>
3622 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
3624 2010-06-16 Douglas B Rupp <rupp@gnat.com>
3626 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
3627 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
3628 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
3629 * debug.c: Likewise.
3630 * sdbout.c: Likewise.
3631 * vmsdbgout.c: Likewise.
3632 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
3633 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
3634 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
3635 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
3636 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
3637 * dwarf2out.c (dw_fde_struct): New fields
3638 dw_fde_vms_{end,begin}_prologue.
3639 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
3640 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
3641 (dwarf2out_vms_end_prologue): New function.
3642 (dwarf2out_vms_begin_epilogue): New function.
3643 (dw_val_struct): New value dw_val_class_vms_delta.
3644 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
3645 begin_epilogue for VMS.
3646 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
3647 new static functions.
3648 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
3649 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
3651 (print_die): New case dw_val_class_vms_delta.
3652 (attr_checksum): Likewise.
3653 (same_dw_val_p: Likewise.
3654 (size_of_die): Likewise.
3655 (value_format): Likewise.
3656 (output_die): Likewise.
3657 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
3658 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
3659 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
3660 dwarf2out_cfi_begin_epilogue
3661 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
3663 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
3665 * config/cris/cris-protos.h (cris_print_operand): Delete.
3666 (cris_print_operand_address): Delete.
3667 * config/cris/cris.h (PRINT_OPERAND): Delete.
3668 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3669 (PRINT_OPERAND_ADDRESS): Delete.
3670 * config/cris/cris.c (cris_print_operand_address): Make static.
3671 (cris_print_operand): Make static.
3672 (cris_print_operand_punct_valid_p): New function.
3673 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3674 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3676 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
3678 * config/arm/arm-protos.h (arm_print_operand): Delete.
3679 (arm_print_operand_address): Delete.
3680 * config/arm/arm.h (PRINT_OPERAND): Delete.
3681 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3682 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
3683 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
3684 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
3685 (arm_print_operand): Make static.
3686 (arm_print_operand_punct_valid_p): New function.
3687 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3688 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3690 2010-06-16 Nick Clifton <nickc@redhat.com>
3692 * config/rx/constraints.md (NEGint4): New constraint.
3693 * config/rx/rx.md (attr cc): Add set_zsc.
3694 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
3697 (call_internal): Clobber the cc0 register.
3698 (call_value_internal): Likewise.
3699 (cstoresi4): Likewise.
3700 (movsieq): Likewise.
3701 (movsine): Likewise.
3702 (addsi3): Add alternative to handle small negative constants.
3704 (addsi3): Do not set the O bit in the cc0 register.
3708 (andsi3): Reorder alternatives to prefer shorter forms.
3711 (negsi2): Note that the cc0 flags are set.
3712 (rotlsi3): Note that only the Z and S bits are set in cc0.
3713 (lshrsi3): Likewise.
3714 (ashlsi3): Likewise.
3715 (subsf3): Use %Q for the MEM operand.
3716 (fix_truncsfsi2): Likewise.
3717 (floatsisf2): Likewise.
3718 (bitset): Remove early clobber from destination.
3719 (bitset_in_memory): Likewise.
3720 (lrintsf2): Clobber the cc0 register.
3721 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
3722 (rx_print_operand): Handle %N.
3724 2010-06-16 Jan Hubicka <jh@suse.cz>
3726 * df-core.c (df_compact_blocks): Free problem_temps vector.
3728 2010-06-16 Martin Jambor <mjambor@suse.cz>
3730 PR tree-optimization/43905
3731 * tree-sra.c: Include tree-inline.h.
3732 (create_abstract_origin): Removed.
3733 (modify_function): Version the call graph node instead of creating
3734 abstract origins and dealing with same_body aliases.
3735 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
3736 function is versionable.
3737 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
3739 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
3741 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
3742 (CHOOSE_DYNAMIC_LINKER): Update.
3744 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
3746 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
3747 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
3748 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
3749 *prefetch_3dnow_rex.
3751 2010-06-15 Anatoly Sokolov <aesok@post.ru>
3753 * target.h (struct asm_out):Add declare_constant_name field.
3754 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
3755 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
3756 * output.h (default_asm_declare_constant_name): Declare.
3757 (assemble_label): Update prototype.
3758 * varasm.c (assemble_constant_contents): Use
3759 targetm.asm_out.declare_constant_name target hook.
3760 (assemble_label): Add 'file' argument.
3761 (default_asm_declare_constant_name): New function.
3762 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
3763 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
3764 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
3766 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
3767 * config/darwin.c (darwin_asm_declare_constant_name): New function.
3768 (machopic_output_indirection): Update assemble_label argument list.
3769 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
3770 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
3772 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
3775 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
3776 size_one_node for pointer types. Do not call gmp_cst_to_tree.
3778 2010-06-15 Richard Guenther <rguenther@suse.de>
3780 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
3782 2010-06-15 Paul Brook <paul@codesourcery.com>
3784 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
3787 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
3789 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
3790 don't get a vector type for output.
3792 2010-06-15 Jakub Jelinek <jakub@redhat.com>
3795 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
3796 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
3797 (LANG_HOOKS_DECLS): Add it.
3798 * gimplify.c (omp_notice_variable): Call
3799 lang_hooks.decls.omp_report_decl.
3801 2010-06-15 Martin Jambor <mjambor@suse.cz>
3804 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
3805 on the newly dead SSA name.
3807 2010-06-15 Alan Modra <amodra@gmail.com>
3809 * doc/invoke.texi: Add mcmodel to powerpc options.
3810 * configure.ac: Add HAVE_LD_LARGE_TOC test.
3811 * configure: Regenerate.
3812 * config.in: Regenerate.
3813 * config/rs6000/linux64.opt (mcmodel): New.
3814 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
3815 (TARGET_CMODEL, SET_CMODEL): Define.
3816 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
3817 select CMODEL_MEDIUM default.
3818 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
3819 (TARGET_CMODEL): Define default.
3820 * config/rs6000/rs6000.c (cmodel): New variable.
3821 (rs6000_explicit_options): Add cmodel field.
3822 (rs6000_handle_option): Handle -mcmodel.
3823 (create_TOC_reference): Add largetoc_reg param. Generate high,
3824 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
3825 (rs6000_delegitimize_address): Recognise new toc reference rtl
3826 and minimal-toc rtl.
3827 (rs6000_legitimize_reload_address): Handle new toc references.
3828 (print_operand_address): Handle legitimate_constant_pool_address_p
3829 match before lo_sum.
3830 (rs6000_eliminate_indexed_memrefs): Tidy.
3831 (rs6000_emit_move): Tweak threshold for inlining constants.
3832 Keep rs6000_emit_allocate_stack large stack frame offsets
3833 loaded into r0 inline.
3834 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
3835 (tocrel_base, tocrel_offset): New variables.
3836 (toc_relative_expr_p): Set them here.
3837 (print_operand_address): Skip over any offset on constant pool address.
3838 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
3839 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
3840 (offsettable_ok_by_alignment): New function.
3841 (rs6000_emit_move): Address suitably aligned local symbol_refs
3842 relative to the toc pointer for -mcmodel=medium.
3843 (legitimate_constant_pool_address_p): Make param const_rtx. Add
3844 strict param. Allow lo_sum version of addressing. Verify reg
3845 used for -mminimal-toc and -mcmodel != small. Update all callers.
3846 * config/rs6000/constraints.md: Update for above change.
3847 * config/rs6000/predicates.md: Likewise.
3848 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
3850 (tls_gd): Split for -mcmodel=medium/large.
3851 (tls_gd_high, tls_gd_low): New.
3852 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
3853 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
3854 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
3855 (largetoc_high, largetoc_low): New.
3856 (cmptf_internal2): Add clobber.
3857 * config/rs6000/rs6000-protos.h: Update.
3859 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
3861 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
3862 true if no prefetch is going to be generated for a given group.
3863 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
3864 estimate the prefetch_count.
3865 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
3866 prefetch count by considering the unroll_factor and prefetch_mod
3867 for is_loop_prefetching_profitable.
3869 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
3871 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
3872 anything if the argument is not a MEM.
3874 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
3879 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
3881 (canonicalize_loop_ivs): Likewise.
3883 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
3886 * haifa-sched.c (setup_insn_reg_pressure_info,
3887 update_register_pressure): Reject debug insns.
3888 (ready_sort): Don't setup reg pressure for debug insns.
3889 (schedule_insn): Don't update reg pressure for debug insns.
3891 2010-06-14 Richard Guenther <rguenther@suse.de>
3893 * lto-streamer.c (cached_bp): Remove.
3894 (bitpack_delete): Likewise.
3895 (bitpack_create): Likewise.
3896 (bp_get_next_word): Likewise.
3897 (bp_pack_value, bp_unpack_value): Move ...
3898 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
3900 (struct bitpack_d): Likewise.
3901 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
3902 New inline functions.
3903 * lto-streamer-out.c (lto_output_bitpack): Remove.
3904 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
3905 (pack_value_fields): Adjust.
3906 (lto_write_tree): Likewise.
3907 (output_gimple_stmt): Likewise.
3908 (output_function): Likewise.
3909 * lto-streamer-in.c (input_gimple_stmt): Adjust.
3910 (input_function): Likewise.
3911 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
3912 (lto_input_bitpack): Remove.
3913 (lto_materialize_tree): Adjust.
3914 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
3915 * lto-cgraph.c (lto_output_edge): Adjust.
3916 (lto_output_node): Likewise.
3917 (lto_output_varpool_node): Likewise.
3918 (lto_output_ref): Likewise.
3919 (input_node): Likewise.
3920 (input_varpool_node): Likewise.
3921 (input_ref): Likewise.
3922 (input_edge): Likewise.
3923 (output_node_opt_summary): Likewise.
3924 (input_node_opt_summary): Likewise.
3925 * ipa-pure-const.c (pure_const_write_summary): Likewise.
3926 (pure_const_read_summary): Likewise.
3927 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
3928 (ipa_read_indirect_edge_info): Likewise.
3929 (ipa_write_node_info): Likewise.
3930 (ipa_read_node_info): Likewise.
3932 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
3935 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
3936 (vec_extract_lo_v16hi): Likewise.
3937 (vec_extract_lo_v32qi): Likewise.
3939 2010-06-14 Jakub Jelinek <jakub@redhat.com>
3942 * tree.h (build_call_expr): Don't define as vararg macro, instead
3944 * builtins.c (build_call_nofold): Remove.
3945 (expand_builtin_int_roundingfn, expand_builtin_pow,
3946 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
3947 expand_builtin_memset_args, expand_builtin_strcmp,
3948 expand_builtin_strncmp, expand_builtin_memory_chk): Use
3949 build_call_nofold_loc instead of build_call_nofold.
3950 (build_call_expr): New function.
3952 PR tree-optimization/44508
3953 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
3954 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
3955 don't eliminate trivially dead stmts.
3956 * tree-vrp.c (vrp_finalize): Pass false as last argument
3957 to substitute_and_fold.
3958 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
3959 to substitute_and_fold.
3960 * tree-ssa-ccp.c (ccp_finalize): Likewise.
3963 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
3965 2010-06-14 Ira Rosen <irar@il.ibm.com>
3967 PR tree-optimization/44507
3968 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
3969 to build initial vector for BIT_AND_EXPR.
3970 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3972 2010-06-14 Jakub Jelinek <jakub@redhat.com>
3974 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
3975 adjust z10prop set_attr.
3977 2010-06-13 Jan Hubicka <jh@suse.cz>
3979 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
3980 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
3981 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
3982 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
3983 datastructure checks into checking asserts.
3984 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
3985 * tree-ssa-sccvn.c (VN_INFO): Likewise.
3986 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
3987 df_ref_create_structure): Likewise.
3988 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
3989 pool_free): Use gcc_checking_assert.
3990 * alias.c (get_alias_set): Likewise.
3991 * var-tracking.c (variable_htab_free, shared_hash_copy,
3992 canonicalize_values_mark, variable_merge_over_cur): Likewise.
3993 * lto-streamer.c (bp_unpack_value): Likewise.
3995 2010-06-13 Richard Guenther <rguenther@suse.de>
3997 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
3998 Do not stream but initialize TYPE_CANONICAL to NULL.
3999 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
4000 * gimple.c (gimple_types_compatible_p): Disregard
4001 TYPE_STRUCTURAL_EQUALITY_P.
4002 (gimple_register_type): Use TYPE_CANONICAL as cache.
4003 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
4004 before registering common types.
4005 * config/i386/i386.c (ix86_function_arg_boundary): Do not
4006 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
4007 * tree.h (TYPE_CANONICAL): Clarify documentation.
4009 2010-06-13 Anatoly Sokolov <aesok@post.ru>
4011 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4012 LIBCALL_VALUE): Remove macros.
4013 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
4014 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4015 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4016 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
4017 (ia64_function_value): Make static. Handle receiving the function
4018 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
4020 2010-06-12 Jan Hubicka <jh@suse.cz>
4022 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
4025 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
4027 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
4029 2010-06-12 Jan Hubicka <jh@suse.cz>
4031 * df-core.c (df_clear_bb_info): New function.
4032 (df_set_blocks): bb_info is always allocated.
4033 (df_get_bb_info): Use block_info_elt_size.
4034 (df_set_bb_info): Likewise.
4035 (df_compact_blocks): Update for new block_info.
4036 (grow_bb_info): New function.
4037 * df-problems.c (df_grow_bb_info): Move to df-core.c
4038 (df_rd_set_bb_info): Remove.
4039 (df_rd_free_bb_info): Do not free block pool.
4040 (df_rd_alloc): Do not create pool, use check for
4041 obstack presence instead of NULL pointer for new blocks.
4042 (df_rd_free): DO not free alloc pool; clear block_info.
4043 (problem_RD): Add size of block info structure.
4044 (df_lr_set_bb_info): Remove.
4045 (df_lr_free_bb_info): Do not free block pool.
4046 (df_lr_alloc): Do not create pool, use check for
4047 obstack presence instead of NULL pointer for new blocks.
4048 (df_lr_free): DO not free alloc pool; clear block_info.
4049 (problem_LR): Add size of block info structure.
4050 (df_live_set_bb_info): Remove.
4051 (df_live_free_bb_info): Do not free block pool.
4052 (df_live_alloc): Do not create pool, use check for
4053 obstack presence instead of NULL pointer for new blocks.
4054 (df_live_free): DO not free alloc pool; clear block_info.
4055 (problem_LIVE): Add size of block info structure.
4056 (problem_CHAIN): Add size of block info structure.
4057 (df_byte_lr_set_bb_info): Remove.
4058 (df_byte_lr_free_bb_info): Do not free block pool.
4059 (df_byte_lr_alloc): Do not create pool, use check for
4060 obstack presence instead of NULL pointer for new blocks.
4061 (df_byte_lr_free): DO not free alloc pool; clear block_info.
4062 (problem_BYTE_LR): Add size of block info structure.
4063 (problem_NOTE): Add size of block info structure.
4064 (df_byte_MD_set_bb_info): Remove.
4065 (df_byte_MD_free_bb_info): Do not free block pool.
4066 (df_byte_MD_alloc): Do not create pool, use check for
4067 obstack presence instead of NULL pointer for new blocks.
4068 (df_byte_MD_free): DO not free alloc pool; clear block_info.
4069 (problem_BD): Add size of block info structure.
4070 * df-scan.c (df_scan_free_internal): Free block pool.
4071 (df_scan_set_bb_info): Remove.
4072 (df_scan_free_bb_info): Check for artificial_defs instead
4073 of bb_info being non-NULL.
4074 (df_scan_alloc): DO not create df_scan_block pool.
4075 (problem_SCAN): Set size of block info.
4076 (df_bb_refs_record): Do not allocate bb_info.
4077 * df.h (df_problem): Add block_info_elt_size.
4078 (struct dataflow): Change block_info to void *.
4079 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
4080 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
4083 2010-06-12 Jan Hubicka <jh@suse.cz>
4085 PR tree-optimize/44485
4086 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
4087 containing use of return value of noreturn function.
4089 2010-06-12 Anatoly Sokolov <aesok@post.ru>
4091 * targhooks.c (default_function_value): Don't use
4092 FUNCTION_OUTGOING_VALUE.
4093 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
4094 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
4096 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
4098 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
4099 Add crtfastmath.o to extra_parts.
4100 * config/mips/crtfastmath.c: New.
4101 * config/mips/linux.h (ENDFILE_SPEC): New.
4103 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
4105 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
4106 old_type in parameter.
4107 (gcc_type_for_value): Update call to gcc_type_for_interval.
4108 (compute_type_for_level_1): Renamed compute_type_for_level.
4109 Update call to gcc_type_for_interval.
4111 2010-06-11 Joseph Myers <joseph@codesourcery.com>
4113 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
4114 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
4116 2010-06-11 Joseph Myers <joseph@codesourcery.com>
4118 * opts-common.c: Include options.h.
4119 (integral_argument): Move from opts.c.
4120 (decode_cmdline_option): New. Based on read_cmdline_option.
4121 * opts.c (integral_argument): Move to opts-common.c.
4122 (read_cmdline_option): Move most contents to
4123 decode_cmdline_option. Use %qs in diagnostics.
4124 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
4125 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
4126 decode_cmdline_option): New.
4128 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
4131 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
4132 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
4133 (partiysi2_cmp): Ditto.
4134 (*partiyhi2_cmp): Ditto.
4135 (*parityqi2_cmp): Remove.
4137 2010-06-11 Jan Hubicka <jh@suse.cz>
4139 * bitmap.h (bmp_iter_next_bit): New.
4140 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
4142 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
4143 Eric Botcazou <ebotcazou@adacore.com>
4145 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
4148 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
4150 * config/i386/i386.md (unspec): New define_c_enum.
4153 2010-06-10 Jakub Jelinek <jakub@redhat.com>
4155 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
4157 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
4160 * tree-if-conv.c (bb_predicate_s): New struct.
4161 (bb_predicate_p): New.
4162 (bb_has_predicate): New.
4163 (bb_predicate): New.
4164 (set_bb_predicate): New.
4165 (bb_predicate_gimplified_stmts): New.
4166 (set_bb_predicate_gimplified_stmts): New.
4167 (add_bb_predicate_gimplified_stmts): New.
4168 (init_bb_predicate): New.
4169 (free_bb_predicate): New.
4170 (is_predicated): Use bb_predicate.
4171 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
4172 (predicate_bbs): Same. Gimplify the condition of the basic blocks
4173 before processing their successors.
4174 (clean_predicate_lists): Removed.
4175 (find_phi_replacement_condition): Use bb_predicate.
4176 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
4178 (insert_gimplified_predicates): New.
4179 (combine_blocks): Call insert_gimplified_predicates.
4180 (tree_if_conversion): Call free_bb_predicate instead of
4181 clean_predicate_lists.
4183 2010-10-11 Paul Brook <paul@codesourcery.com>
4185 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
4186 * config/arm/arm.c (all_architectures): Change v7e-m default to
4188 * config/arm/arm-cores.def: Add cortex-m4.
4189 * config/arm/arm-tune.md: Regenerate.
4191 2010-06-11 Jan Hubicka <jh@suse.cz>
4193 * ipa-pure-const.c (special_builtlin_state): New function.
4194 (check_call): Use it instead of special casign BUILT_IN_RETURN.
4195 (propagate_pure_const): Use it.
4197 2010-06-11 Jan Hubicka <jh@suse.cz>
4199 * df-problems.c (df_live_scratch): Convert to bitmap_head.
4200 (df_live_alloc): Initialize df_live_scratch when initializing
4202 (df_live_transfer_function): Update uses of df_live_scratch.
4203 (df_live_free): Free problem_data; clear df_live_scratch before
4204 releasing the obstack.
4205 (df_md_free): Free problem data.
4207 2010-06-11 Jan Hubicka <jh@suse.cz>
4209 * doc/invoke.texi (Wsuggest-attribute): Document.
4210 (Wmissing-noreturn): Remove.
4211 * ipa-pure-const.c (warn_function_noreturn): New function.
4212 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
4213 warn_missing_noreturn.
4214 * common.opt (Wsuggest-attribute=noreturn): New.
4215 * tree-flow.h (warn_function_noreturn): Declare.
4216 * tree-cfg.c (execute_warn_function_noreturn): Use
4217 warn_function_noreturn.
4218 (gate_warn_function_noreturn): New.
4219 (pass_warn_function_noreturn): Update.
4221 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4223 * c-typeck.c (handle_warn_cast_qual): Add loc
4224 parameter. Improve warning message.
4225 (build_c_cast): Pass location to handle_warn_cast_qual.
4227 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
4229 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
4230 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
4232 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
4234 2010-06-10 Dodji Seketeli <dodji@redhat.com>
4236 Fix bootstap on mips
4237 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
4240 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
4242 * system.h (helper_const_non_const_cast): New inline for
4244 (CONST_CAST2): For gcc version <= 4.0 use
4245 new helper to do const/non-const casting.
4247 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4249 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
4250 * Makefile.in (OBJS-common): Include insn-enums.o.
4251 (insn-enums.o): New rule.
4252 (simple_generated_c): Add insn-enums.c.
4253 (build/genenums.o): New rule.
4254 (genprogmd): Add "enums".
4255 * genconstants.c (print_enum_type): Declare a C string array
4257 * genenums.c: New file.
4258 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
4259 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
4260 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
4262 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4264 * doc/md.texi (define_enum_attr): Document.
4265 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
4266 * read-md.h (lookup_enum_type): Declare.
4267 * read-md.c (lookup_enum_type): New function.
4268 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
4269 * genattrtab.c (attr_desc): Add an enum_name field.
4270 (evaluate_eq_attr): Take the associated attribute as argument.
4271 Get the enum prefix from the enum_name field, if defined.
4272 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
4273 (simplify_test_exp): Pass attr to evaluate_eq_attr.
4274 (add_attr_value): New function, split out from...
4275 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
4276 (write_test_expr): Pass attr to evaluate_eq_attr.
4277 (write_attr_get): Use the enum_name as the enum tag, if defined.
4278 (write_attr_valueq): Use the enum_name as a prefix, if defined.
4279 (find_attr): Initialize enum_name.
4280 (main): Handle DEFINE_ENUM_ATTR.
4281 * gensupport.c (process_rtx): Likewise.
4282 * config/mips/mips.h (mips_tune_attr): Delete.
4283 * config/mips/mips.md (cpu): Use define_attr_enum.
4285 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4287 * doc/md.texi (define_c_enum, define_enum): Document.
4288 * read-md.h (md_constant): Add a parent_enum field.
4289 (enum_value, enum_type): New structures.
4290 (upcase_string, traverse_enum_types): Declare.
4291 * read-md.c (enum_types): New variable.
4292 (upcase_string, add_constant): New functions.
4293 (handle_constants): Don't create the hash table here.
4295 (traverse_md_constants): Don't check for a null md_constants.
4296 (decimal_string, handle_enum, traverse_enum_types): New functions.
4297 (read_md_files): Initialize md_constants and md_enums.
4298 * genconstants.c (print_md_constant): Ignore info argument.
4299 Only print constants that belong to no enum.
4300 (print_enum_type): New function.
4301 (main): Don't pass stdout to print_md_constant. Call print_enum_type
4302 for each defined enum type.
4303 * config/mips/mips.md (processor): New define_enum.
4304 (unspec): New define_c_enum.
4305 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
4306 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
4307 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
4308 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
4309 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
4310 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
4311 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
4312 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
4313 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
4314 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
4315 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
4316 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
4317 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
4318 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
4319 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
4320 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
4321 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
4322 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
4323 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
4324 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
4325 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
4326 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
4327 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
4328 (UNSPEC_RDDSP): Move to mips-dsp.md.
4329 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
4330 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
4331 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
4332 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
4333 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
4334 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
4335 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
4336 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
4337 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
4338 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
4339 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
4340 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
4341 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
4342 Moved to mips-dspr2.md.
4343 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
4344 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
4345 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
4346 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
4347 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
4348 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
4349 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
4350 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
4351 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
4352 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
4353 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
4354 UNSPEC_LOONGSON_PSADBH)
4355 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
4356 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
4357 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
4358 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4359 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4360 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4361 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
4362 (cpu): Update comment.
4363 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
4364 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
4365 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
4366 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
4367 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
4368 UNSPEC_LOONGSON_PCMPEQ)
4369 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
4370 UNSPEC_LOONGSON_PINSR_0)
4371 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
4372 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
4373 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
4374 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
4375 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
4376 UNSPEC_LOONGSON_PSADBH)
4377 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
4378 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
4379 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
4380 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4381 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4382 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4383 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
4384 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
4385 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
4386 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
4387 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
4388 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
4389 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
4390 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
4391 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
4392 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
4393 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
4394 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
4395 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
4396 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
4397 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
4398 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
4399 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
4400 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
4401 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
4402 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
4403 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
4404 (UNSPEC_RDDSP): Moved from mips.md.
4405 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
4406 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
4407 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
4408 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
4409 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
4410 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
4411 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
4412 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
4413 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
4414 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
4415 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
4416 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
4417 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
4418 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
4419 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
4420 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
4421 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
4422 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
4423 (UNSPEC_SCC): Moved from mips.md.
4424 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
4425 "processor_type" to "processor".
4426 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
4427 * config/mips/mips.h (processor_type): Delete.
4428 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
4429 "processor_type" to "processor".
4431 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4433 * configure.ac (tm_include_list): Add insn-constants.h.
4434 * configure: Regenerate.
4435 * Makefile.in (GTM_H): Move insn-constants.h here from...
4437 * mkconfig.sh: Remove special handling for insn-constants.h.
4439 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4441 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
4442 (BUILD_MD): ...this new variable.
4443 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
4444 that include the old contents of simple_generated_h and
4446 (simple_generated_h, simple_generated_c): Include them. Add
4448 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
4449 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
4450 Remove these dependencies from the main rule and include
4451 insn-conditions.md in the command line only if it appears
4452 in the dependency list.
4453 (insn-constants.h, s-constants): Delete.
4454 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
4456 (build/genmddeps.o): Likewise.
4457 (genprogrtl): New variable that contains everything from genprogmd
4458 except mddeps and constants.
4459 (genprogmd): Redefine in terms of genprogrtl. Make these programs
4460 depend on $(BUILD_MD)
4461 (genprog): New variable. Make these programs depend on
4463 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
4464 (main): Use read_md_files instead of init_rtx_reader_args.
4465 * genconstants.c: As for genmddeps.c.
4466 * read-md.h (read_skip_construct): Declare.
4467 * read-md.c (read_skip_construct): New function.
4468 (handle_file): Allow a null handle_directive, skipping the
4470 (parse_include): Update the comment accordingly.
4472 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4474 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
4475 * genmddeps.c: Include read-md.h.
4476 (main): Call init_rtx_reader_args instead of init_md_reader_args.
4477 * genattr.c (main): Likewise.
4478 * genattrtab.c (main): Likewise.
4479 * genautomata.c (main): Likewise.
4480 * gencodes.c (main): Likewise.
4481 * genconditions.c (main): Likewise.
4482 * genconfig.c (main): Likewise.
4483 * genconstants.c (main): Likewise.
4484 * genemit.c (main): Likewise.
4485 * genextract.c (main): Likewise.
4486 * genflags.c (main): Likewise.
4487 * genopinit.c (main): Likewise.
4488 * genoutput.c (main): Likewise.
4489 * genpeep.c (main): Likewise.
4490 * genrecog.c (main): Likewise.
4491 * genpreds.c (main): Likewise.
4492 * gensupport.h (in_fname): Move to read-md.h.
4493 (init_md_reader_args_cb): Rename to...
4494 (init_rtx_reader_args_cb): ...this and return a bool.
4495 (init_md_reader_args): Rename to...
4496 (init_rtx_reader_args): ...this and return a bool.
4497 (include_callback): Move to read-md.h.
4498 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
4499 (file_name_list, first_dir_md_include): Move to read-md.c
4500 (first_bracket_include): Delete unused variable.
4501 (last_dir_md_include): Move to read-md.c.
4502 (process_include): Delete, moving code to read-md.c:handle_include.
4503 (process_rtx): Don't handle INCLUDE.
4504 (save_string): Delete.
4505 (rtx_handle_directive): New function.
4506 (init_md_reader_args_cb): Rename to...
4507 (init_rtx_reader_args_cb): ...this and return a boolean success value.
4509 (init_md_reader_args): Rename to...
4510 (init_rtx_reader_args): ...this and return a boolean success value.
4511 * rtl.def (INCLUDE): Delete.
4512 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
4514 * read-rtl.c (read_conditions): Don't gobble ')' here.
4515 (read_mapping): Likewise.
4516 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
4517 Handle top-level non-rtx constructs here rather than in read_rtx_1.
4518 Store the whole queue in *X. Remove call to init_md_reader.
4519 (read_rtx_1): Rename to...
4520 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
4521 Don't handle top-level non-rtx constructs here. Don't handle (nil)
4523 (read_nested_rtx): New function. Handle (nil) here rather than
4525 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
4527 * read-md.h (directive_handler_t): New type.
4528 (in_fname, include_callback): Moved from read-md.h.
4529 (read_constants, init_md_reader): Delete.
4530 (read_md_files): Declare.
4531 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
4532 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
4534 (read_constants): Rename to...
4535 (handle_constants): ...this. Don't gobble ')' here.
4536 (handle_include, handle_file, handle_toplevel_file)
4537 (parse_include): New functions, mostly taken from gensupport.c.
4538 (init_md_reader): Subsume into...
4539 (read_md_files): ...this new function.
4541 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4543 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
4544 (unread_char): Decrement read_md_lineno after putting back '\n'.
4545 * read-md.c (fatal_with_file_and_line): Push back any characters
4546 that we decide not to add to the context.
4547 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
4548 fatal_expected_char in cases where '/' ends a line (for example).
4549 (read_name): Don't increment read_md_lineno here.
4550 (read_escape): Likewise.
4551 (read_quoted_string): Likewise.
4552 (read_braced_string): Likewise.
4554 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4556 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
4557 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
4558 * genconstants.c: Include read-md.h.
4559 * read-rtl.c (md_constants): Move to read-md.c.
4560 (md_name): Move to read-md.h.
4561 (initialize_iterators): Use leading_string_hash instead of def_hash
4562 and leading_string_eq_p instead of def_name_eq_p.
4563 (read_name): Move to read-md.c.
4564 (def_hash, def_name_eq_p): Delete.
4565 (read_constants, traverse_md_constants): Move to read-md.c.
4566 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
4567 * read-md.h: Include hashtab.h.
4568 (md_name): Moved from read-rtl.c.
4569 (md_constant): Moved from read-md.h.
4570 (leading_string_hash, leading_string_eq_p, read_name)
4571 (read_constants, traverse_md_constants): Declare.
4572 * read-md.c (md_constants): Moved from read-rtl.c.
4573 (leading_string_hash, leading_string_eq_p): New functions.
4574 (read_name, read_constants, traverse_md_constants): Moved from
4577 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4579 * read-rtl.c (md_name): New structure.
4580 (read_name): Take an md_name instead of a buffer pointer.
4581 Use the "string" field instead of strcpy when expanding constants.
4582 (read_constants): Remove the tmp_char argument. Update the calls
4583 to read_name, using two local name buffers instead of the tmp_char
4584 argument. Merge the constant-creation code.
4585 (read_conditions): Remove the tmp_char argument. Update the calls
4586 to read_name, using a local name buffer instead of the tmp_char
4588 (read_mapping): Replace tmp_char variable with a local name buffer.
4589 Update the calls to read_name.
4590 (read_rtx_1): Likewise. Update the calls to read_constants and
4593 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4595 * Makefile.in (build/read-md.o): Depend on errors.h.
4596 * read-md.h (error_with_line): Declare.
4597 * read-md.c: Include errors.h.
4598 (message_with_line_1): New function, extracted from...
4599 (message_with_line): ...here.
4600 (error_with_line): New function.
4601 * genattrtab.c: If a call to message_with_line is followed by
4602 "have_error = 1;", replace both statements with a call to
4604 * genoutput.c: Likewise.
4605 * genpreds.c: Likewise.
4606 * genrecog.c: If a call to message_with_line is followed by
4607 "error_count++;", replace both statements with a call to
4609 (errorcount): Delete.
4610 (main): Don't check it.
4611 * gensupport.c: If a call to message_with_line is followed by
4612 "errors = 1;", replace both statements with a call to error_with_line.
4614 (process_define_cond_exec): Check have_error instead of errors.
4615 (init_md_reader_args_cb): Likewise. Don't set errors.
4617 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4619 * read-md.h (read_md_file): Declare.
4620 (read_char, unread_char): New functions.
4621 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
4622 (read_quoted_string, read_string): Remove FILE * argument.
4623 * read-md.c (read_md_file): New variable.
4624 (read_md_filename, read_md_lineno): Update comments and remove
4625 unnecessary initialization.
4626 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
4627 (read_escape, read_quoted_string, read_braced_string, read_string):
4628 Remove FILE * argument. Update calls accordingly, using read_char
4629 and unread_char instead of getc and ungetc.
4630 * rtl.h (read_rtx): Remove FILE * argument.
4631 * read-rtl.c (iterator_group): Remove FILE * argument from
4633 (iterator_traverse_data): Remove "infile" field.
4634 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
4635 (add_mapping, read_name, read_constants, read_conditions)
4636 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
4637 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
4638 Remove file arguments from all calls, using read_char and unread_char
4639 instead of getc and ungetc.
4640 * gensupport.c (process_include): Preserve read_md_file around
4641 the include. Set read_md_file to the handle of the included file.
4642 Update call to read_rtx.
4643 (init_md_reader_args_cb): Set read_md_file to the handle of the file
4644 and remove local FILE *. Update calls to read_rtx.
4646 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4648 * read-md.h (read_rtx_lineno): Rename to...
4649 (read_md_lineno): ...this.
4650 (read_rtx_filename): Rename to...
4651 (read_md_filename): ...this.
4652 (copy_rtx_ptr_loc): Rename to...
4653 (copy_md_ptr_loc): ...this.
4654 (print_rtx_ptr_loc): Rename to...
4655 (print_md_ptr_loc): ...this.
4656 * read-md.c: Likewise. Update references after renaming.
4657 (string_obstack): Replace RTL with MD in comment.
4658 (set_rtx_ptr_loc): Rename to...
4659 (set_md_ptr_loc): ...this.
4660 (get_rtx_ptr_loc): Rename to...
4661 (get_md_ptr_loc): ...this.
4662 * genconditions.c: Update references after renaming.
4663 * genemit.c: Likewise.
4664 * genoutput.c: Likewise.
4665 * genpreds.c: Likewise.
4666 * gensupport.c: Likewise.
4667 * read-rtl.c: Likewise.
4669 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4671 * Makefile.in (READ_MD_H): New variable.
4672 (BUILD_RTL): Add build/read-md.o.
4673 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
4674 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
4675 (build/genattrtab.o, build/genconditions.o build/genemit.o)
4676 (build/genextract.o, build/genflags.o, build/genoutput.o)
4677 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
4678 (build/read-md.o): New rule.
4679 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
4680 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
4681 * coretypes.h: ...here.
4682 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
4683 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
4684 * genattr.c: Include read-md.h.
4685 * genattrtab.c: Likewise.
4686 * genconditions.c: Likewise.
4687 * genemit.c: Likewise.
4688 * genextract.c: Likewise.
4689 * genflags.c: Likewise.
4690 * genoutput.c: Likewise.
4691 * genpreds.c: Likewise.
4692 * genrecog.c: Likewise.
4693 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
4694 (join_c_conditions, print_c_condition, read_rtx_filename)
4695 (read_rtx_lineno): Move to read-md.h.
4696 * read-rtl.c: Include read-md.h.
4697 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
4698 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
4699 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
4700 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
4701 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
4702 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
4703 (read_braced_string, read_string): Move to read-md.c.
4704 (read_rtx): Move some initialization to init_md_reader and call
4705 init_md_reader here.
4706 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
4708 * gensupport.c: Include read-md.h.
4709 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
4710 * read-md.h, read-md.c: New files.
4712 2010-06-10 Anatoly Sokolov <aesok@post.ru>
4714 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4715 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4716 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
4717 * config/moxie/moxie.c (moxie_function_value): Make static.
4718 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
4719 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
4721 2010-06-10 Martin Jambor <mjambor@suse.cz>
4723 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
4724 * dbgcnt.def (tree_sra): New counter.
4725 * tree-sra.c: Include dbgcnt.h.
4726 (gate_intra_sra): Check tree_sra debug counter.
4728 2010-06-10 Martin Jambor <mjambor@suse.cz>
4730 PR tree-optimization/44258
4731 * tree-sra.c (build_access_subtree): Return false iff there is a
4733 (build_access_trees): Likewise.
4734 (analyze_all_variable_accesses): Disqualify candidates if
4735 build_access_trees returns true for them.
4737 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
4740 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
4741 tail-recurse into canonical node. Fast-forward over
4742 non-canonical VALUEs.
4744 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
4747 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
4748 (*addsi_1_zext) <TYPE_LEA>: Likewise.
4749 (add lea splitter): Likewise.
4750 (add_zext lea splitter): Likewise.
4752 2010-06-10 Joseph Myers <joseph@codesourcery.com>
4754 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
4756 2010-06-10 Jan Hubicka <jh@suse.cz>
4758 * df-problems.c (df_live_problem_data): Add live_bitmaps.
4759 (df_live_alloc): Initialize problem data and live_osbtacks.
4760 (df_live_finalize): Remove obstack, problem data; do not
4762 (df_live_top_dump, df_live_bottom_dump): Do not dump old
4763 data when not allocated.
4764 (df_live_verify_solution_start): Do not allocate problem data.
4765 (df_live_verify_solution_end): Check if out is allocated.
4766 (struct df_md_problem_data): New structure.
4767 (df_md_alloc): Allocate problem data.
4768 (df_md_free): Free problem data; do not clear bitmaps.
4770 2010-06-10 Jan Beulich <jbeulich@novell.com>
4773 * configure.ac: Replace $() with ${} when intending to expand
4774 variables rather than invoking commands.
4775 * configure: Re-generate.
4777 2010-06-10 Jan Hubicka <jh@suse.cz>
4779 PR rtl-optimization/44460
4780 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
4781 TYPE_NEEDS_CONSTRUCTING sanity check.
4783 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
4785 * doc/include/fdl.texi: Move to GFDL version 1.3.
4787 * doc/cpp.texi: Move to GFDL version 1.3.
4788 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
4789 * doc/gccint.texi: Move to GFDL version 1.3.
4790 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
4791 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
4792 * doc/invoke.texi: Move to GFDL version 1.3.
4794 2010-06-09 Jan Hubicka <jh@suse.cz>
4796 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
4798 (propagate) ... here; swap the order.
4800 2010-06-09 Jan Hubicka <jh@suse.cz>
4802 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
4803 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
4804 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
4805 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
4807 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
4809 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
4810 Do not the gather memory reference in the outer loop if the step
4813 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
4815 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
4816 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
4817 8 to 4. Minor change of the related comments.
4819 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
4821 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
4822 the scev analysis when the variable is not used outside the loop
4823 in a close phi node: call compute_overall_effect_of_inner_loop.
4825 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
4827 * graphite-sese-to-poly.c (single_pred_cond): Renamed
4828 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
4829 (build_sese_conditions_before): Renamed call to single_pred_cond.
4830 (build_sese_conditions_after): Same.
4832 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
4834 * graphite-poly.h: Fix comments and indentation.
4835 * graphite-sese-to-poly.c: Same.
4836 (build_sese_conditions_before): Compute stmt and gbb only when needed.
4837 * tree-chrec.c: Fix comments and indentation.
4838 (tree-ssa-loop-niter.c): Same.
4840 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
4842 PR rtl-optimization/42461
4843 * dce.c (deletable_insn_p): Return true for const or pure calls again.
4844 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
4846 2010-06-09 Jan Hubicka <jh@suse.cz>
4848 * bitmap.c (bitmap_and): Walk array forward.
4849 (bitmap_and_compl_into): Likewise.
4850 (bitmap_xor): Likewise.
4851 (bitmap_xor_into): Likewise.
4852 (bitmap_equal_p): Likewise.
4853 (bitmap_intersect_p): Likewise.
4854 (bitmap_intersect_compl_p): Likewise.
4855 (bitmap_ior_and_into): Likewise.
4856 (bitmap_elt_copy): Likewise.
4857 (bitmap_and_compl): Likewise.
4858 (bitmap_elt_ior): Likewise.
4860 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
4862 * opts-common.c (prune_options): Ensure replacement argv array
4863 is correctly terminated by a NULL entry.
4865 2010-06-09 Jan Hubicka <jh@suse.cz>
4867 * cgraph.h (varpool_first_static_initializer,
4868 varpool_next_static_initializer): Make checking only when
4870 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
4871 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
4872 gcc_assert to gcc_checking_assert.
4873 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
4874 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
4875 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
4876 op_iter_init_phiuse, op_iter_init_phidef,
4877 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
4878 gcc_checking_assert.
4879 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
4880 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
4881 partition_is_global, live_on_entry, live_on_exit,
4882 live_merge_and_clear): Likewise.
4883 * system.h (gcc_checking_assert): New macro.
4884 * gimple.h (set_bb_seq): Use gcc_checking_assert.
4886 2010-06-09 Jason Merrill <jason@redhat.com>
4888 * Makefile.in (TAGS): Collect tags info from c-family.
4890 2010-06-09 Jan Hubicka <jh@suse.cz>
4892 * gimple.h (gcc_gimple_checking_assert): New macro.
4893 (gimple_set_def_ops, gimple_set_use_ops,
4894 gimple_set_vuse, gimple_set_vdef,
4895 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
4896 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
4897 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
4898 gimple_asm_output_op, gimple_asm_output_op_ptr,
4899 gimple_asm_set_output_op, gimple_asm_clobber_op,
4900 gimple_asm_set_clobber_op, gimple_asm_label_op,
4901 gimple_asm_set_label_op, gimple_try_set_kind,
4902 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
4903 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
4904 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
4905 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
4906 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
4907 gimple_omp_for_set_initial, gimple_omp_for_final,
4908 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
4909 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
4910 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
4911 conditional with ENABLE_GIMPLE_CHECKING.
4912 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
4914 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
4916 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
4917 (get_computation_cost_at): Use it.
4918 (determine_use_iv_cost_condition): Likewise.
4919 (determine_iv_cost): Likewise.
4921 2010-06-09 Richard Guenther <rguenther@suse.de>
4923 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
4926 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
4928 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
4930 2010-06-09 Martin Jambor <mjambor@suse.cz>
4932 PR tree-optimization/44423
4933 * tree-sra.c (dump_access): Dump also grp_assignment_read.
4934 (analyze_access_subtree): Pass negative allow_replacements to children
4935 if the current type is scalar.
4937 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
4940 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
4941 * doc/plugins.texi (Plugin license check): Update information
4942 on type of plugin_is_GPL_compatible.
4943 * Makefile.in (PLUGINCC): Define as $(COMPILER).
4944 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
4946 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
4948 * config/arm/arm.c (thumb2_reorg): New function.
4949 (arm_reorg): Call it.
4950 * config/arm/thumb2.md (define_peephole2 for flag clobbering
4951 arithmetic operations): Delete.
4953 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
4956 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
4959 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
4962 * gcc-plugin.h: Encapsulate all declarations in extern "C".
4964 2010-06-08 Jan Hubicka <jh@suse.cz>
4966 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
4967 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
4969 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
4971 PR tree-optimization/39874
4973 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
4975 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
4976 same_bool_result_p): New.
4977 (and_var_with_comparison, and_var_with_comparison_1,
4978 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
4979 (or_var_with_comparison, or_var_with_comparison_1,
4980 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
4981 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
4982 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
4983 of combine_comparisons.
4984 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
4986 2010-06-08 Anatoly Sokolov <aesok@post.ru>
4988 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4989 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4990 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
4991 pdp11_function_value_regno_p): New functions.
4992 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4993 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4995 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
4997 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
4998 Thumb-2 in the MINUS case.
5000 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5002 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
5004 * doc/gty.texi (GTY Options): Document typed GC allocation and
5005 variable_size GTY option.
5007 * ggc-internal.h: New.
5009 * ggc.h: Update copyright year.
5010 (digit_string): Move to stringpool.c.
5011 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
5012 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
5013 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
5014 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
5015 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
5016 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
5017 (ggc_force_collect, ggc_get_size, ggc_statistics)
5018 (ggc_print_common_statistics): Move to ggc-internal.h.
5019 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
5020 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
5021 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
5022 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
5023 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
5024 (ggc_alloc_zone_pass_stat): Remove.
5025 (ggc_internal_alloc_stat, ggc_internal_alloc)
5026 (ggc_internal_cleared_alloc_stat): New.
5027 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
5028 (ggc_internal_vec_alloc_stat)
5029 (ggc_internal_cleared_vec_alloc_stat)
5030 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
5031 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
5032 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
5033 (ggc_cleared_alloc_ptr_array_two_args): New.
5034 (htab_create_ggc, splay_tree_new_ggc): Redefine.
5035 (ggc_splay_alloc): Change the type of the first argument to
5037 (ggc_alloc_string): Make macro.
5038 (ggc_alloc_string_stat): New.
5039 (ggc_strdup): Redefine.
5040 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
5041 (ggc_alloc_rtvec_sized): New.
5042 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
5043 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
5044 (ggc_internal_cleared_alloc_zone_stat)
5045 (ggc_internal_zone_alloc_stat)
5046 (ggc_internal_zone_cleared_alloc_stat)
5047 (ggc_internal_zone_vec_alloc_stat)
5048 (ggc_alloc_zone_rtx_def_stat)
5049 (ggc_alloc_zone_tree_node_stat)
5050 (ggc_alloc_zone_cleared_tree_node_stat)
5051 (ggc_alloc_cleared_gimple_statement_d_stat): New.
5053 * ggc-common.c: Include ggc-internal.h.
5054 (ggc_internal_cleared_alloc_stat): Rename from
5055 ggc_alloc_cleared_stat.
5056 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
5057 (ggc_calloc): Remove.
5058 (ggc_cleared_alloc_htab_ignore_args): New.
5059 (ggc_cleared_alloc_ptr_array_two_args): New.
5060 (ggc_splay_alloc): Add obj_type parameter.
5061 (init_ggc_heuristics): Formatting fixes.
5063 * ggc-none.c: Update copyright year.
5064 (ggc_alloc_stat): Rename to ggc_alloc_stat.
5065 (ggc_alloc_cleared_stat): Rename to
5066 ggc_internal_cleared_alloc_stat.
5067 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
5069 * ggc-page.c: Update copyright year. Include ggc-internal.h.
5070 Remove references to ggc_alloc in comments.
5071 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
5072 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
5073 (new_ggc_zone, destroy_ggc_zone): Remove.
5074 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
5076 * ggc-zone.c: Include ggc-internal.h. Remove references to
5077 ggc_alloc in comments.
5078 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
5079 (ggc_internal_alloc_zone_pass_stat): New.
5080 (ggc_internal_cleared_alloc_zone_stat): New.
5081 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
5082 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
5083 (new_ggc_zone, destroy_ggc_zone): Remove.
5085 * stringpool.c: Update copyright year. Include ggc-internal.h
5086 (digit_vector): Make static.
5087 (digit_string): Moved from ggc.h.
5088 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
5089 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
5091 * Makefile.in (GGC_INTERNAL_H): New.
5092 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
5093 $(GGC_INTERNAL_H) to dependencies.
5095 * gentype.c: Update copyright year.
5096 (walk_type): Accept variable_size GTY option.
5097 (USED_BY_TYPED_GC_P): New macro.
5098 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
5099 whitespace at the end of strings.
5100 (get_type_specifier, variable_size_p): New functions.
5101 (alloc_quantity, alloc_zone): New enums.
5102 (write_typed_alloc_def): New function.
5103 (write_typed_struct_alloc_def): Likewise.
5104 (write_typed_typed_typedef_alloc_def): Likewise.
5105 (write_typed_alloc_defns): Likewise.
5106 (output_typename, write_splay_tree_allocator_def): Likewise.
5107 (write_splay_tree_allocators): Likewise.
5108 (main): Call write_typed_alloc_defns and
5109 write_splay_tree_allocators.
5111 * lto-streamer.h (lto_file_decl_data_ptr): New.
5113 * passes.c (order): Define using cgraph_node_ptr.
5115 * strinpool.c (struct string_pool_data): Declare nested_ptr using
5118 * gimple.h (union gimple_statement_d): Likewise.
5120 * rtl.h (struct rtx_def): Likewise.
5121 (struct rtvec_def): Likewise.
5123 * tree.h (union tree_node): Likewise.
5125 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
5127 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
5129 * tree-scalar-evolution.c (scev_initialize): Likewise.
5131 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
5133 * dwarf2asm.c (dw2_force_const_mem): Likewise.
5135 * omp-low.c (lower_omp_critical): Likewise.
5137 * bitmap.h (struct bitmap_head_def): Update comment to not
5138 reference ggc_alloc.
5140 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
5142 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
5144 * ipa-prop.c (duplicate_ggc_array): Rename to
5145 duplicate_ipa_jump_func_array. Use typed GC allocation.
5146 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
5148 * gimple.c (gimple_alloc_stat): Use
5149 ggc_alloc_cleared_gimple_statement_d_stat.
5151 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
5153 * tree.c (make_node_stat): Use
5154 ggc_alloc_zone_cleared_tree_node_stat.
5155 (make_tree_vec_stat): Likewise.
5156 (build_vl_exp_stat): Likewise.
5157 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
5158 (make_tree_binfo_stat): Likewise.
5159 (tree_cons_stat): Likewise.
5161 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
5162 (shallow_copy_rtx_stat): Likewise.
5163 (make_node_stat): Likewise.
5165 * lto-symtab.c: Fix comment.
5167 * tree-cfg.c (create_bb): Update comment to not reference
5169 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
5171 * varpool.c (varpool_node): Use typed GC allocation.
5172 (varpool_extra_name_alias): Likewise.
5174 * varasm.c (emutls_decl): Likewise.
5175 (get_unnamed_section): Likewise.
5176 (get_noswitch_section): Likewise.
5177 (get_section): Likewise.
5178 (get_block_for_section): Likewise.
5179 (build_constant_desc): Likewise.
5180 (create_constant_pool): Likewise.
5181 (force_const_mem): Likewise.
5183 * tree.c (build_vl_exp_stat): Likewise.
5184 (build_real): Likewise.
5185 (build_string): Likewise.
5186 (decl_debug_expr_insert): Likewise.
5187 (decl_value_expr_insert): Likewise.
5188 (type_hash_add): Likewise.
5189 (build_omp_clause): Likewise.
5191 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
5193 * tree-ssa.c (init_tree_ssa): Likewise.
5195 * tree-ssa-structalias.c (heapvar_insert): Likewise.
5197 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
5199 * tree-ssa-loop-niter.c (record_estimate): Likewise.
5201 * tree-ssa-alias.c (get_ptr_info): Likewise.
5203 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
5205 * tree-phinodes.c (allocate_phi_node): Likewise.
5207 * tree-iterator.c (tsi_link_before): Likewise.
5208 (tsi_link_after): Likewise.
5210 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
5212 * tree-dfa.c (create_var_ann): Likewise.
5214 * tree-cfg.c (create_bb): Likewise.
5216 * toplev.c (alloc_for_identifier_to_locale): Likewise.
5217 (general_init): Likewise.
5219 * stringpool.c (stringpool_ggc_alloc): Likewise.
5220 (gt_pch_save_stringpool): Likewise.
5222 * sese.c (if_region_set_false_region): Likewise.
5224 * passes.c (do_per_function_toporder): Likewise.
5226 * optabs.c (set_optab_libfunc): Likewise.
5227 (set_conv_libfunc): Likewise.
5229 * lto-symtab.c (lto_symtab_register_decl): Likewise.
5231 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
5232 (input_eh_region): Likewise.
5233 (input_eh_lp): Likewise.
5234 (make_new_block): Likewise.
5235 (unpack_ts_real_cst_value_fields): Likewise.
5237 * lto-section-in.c (lto_new_in_decl_state): Likewise.
5239 * lto-cgraph.c (input_node_opt_summary): Likewise.
5241 * loop-init.c (loop_optimizer_init): Likewise.
5243 * lambda.h (lambda_vector_new): Likewise.
5245 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
5247 * ira.c (update_equiv_regs): Likewise.
5249 * ipa.c (cgraph_node_set_new): Likewise.
5250 (cgraph_node_set_add): Likewise.
5251 (varpool_node_set_new): Likewise.
5252 (varpool_node_set_add): Likewise.
5254 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
5255 (duplicate_ipa_jump_func_array): Likewise.
5256 (ipa_read_node_info): Likewise.
5258 * ipa-cp.c (ipcp_create_replace_map): Likewise.
5260 * integrate.c (get_hard_reg_initial_val): Likewise.
5262 * gimple.c (gimple_alloc_stat): Likewise.
5263 (gimple_build_omp_for): Likewise.
5264 (gimple_seq_alloc): Likewise.
5265 (gimple_copy): Likewise.
5267 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
5268 (gsi_insert_after_without_update): Likewise.
5270 * function.c (add_frame_space): Likewise.
5271 (insert_temp_slot_address): Likewise.
5272 (assign_stack_temp_for_type): Likewise.
5273 (allocate_struct_function): Likewise.
5274 (types_used_by_var_decl_insert): Likewise.
5276 * except.c (init_eh_for_function): Likewise.
5277 (gen_eh_region): Likewise.
5278 (gen_eh_region_catch): Likewise.
5279 (gen_eh_landing_pad): Likewise.
5280 (add_call_site): Likewise.
5282 * emit-rtl.c (get_mem_attrs): Likewise.
5283 (get_reg_attrs): Likewise.
5284 (start_sequence): Likewise.
5285 (init_emit): Likewise.
5287 * dwarf2out.c (new_cfi): Likewise.
5288 (queue_reg_save): Likewise.
5289 (dwarf2out_frame_init): Likewise.
5290 (new_loc_descr): Likewise.
5291 (find_AT_string): Likewise.
5292 (new_die): Likewise.
5293 (add_var_loc_to_decl): Likewise.
5294 (clone_die): Likewise.
5295 (clone_as_declaration): Likewise.
5296 (break_out_comdat_types): Likewise.
5297 (new_loc_list): Likewise.
5298 (loc_descriptor): Likewise.
5299 (add_loc_descr_to_each): Likewise.
5300 (add_const_value_attribute): Likewise.
5301 (tree_add_const_value_attribute): Likewise.
5302 (add_comp_dir_attribute): Likewise.
5303 (add_name_and_src_coords_attributes): Likewise.
5304 (lookup_filename): Likewise.
5305 (store_vcall_insn): Likewise.
5306 (dwarf2out_init): Likewise.
5308 * dbxout.c (dbxout_init): Likewise.
5310 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
5312 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
5314 * config/score/score7.c (score7_output_external): Likewise.
5316 * config/score/score3.c (score3_output_external): Likewise.
5318 * config/s390/s390.c (s390_init_machine_status): Likewise.
5320 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
5321 (rs6000_init_machine_status): Likewise.
5322 (output_toc): Likewise.
5324 * config/pa/pa.c (pa_init_machine_status): Likewise.
5325 (get_deferred_plabel): Likewise.
5327 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
5329 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
5331 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
5333 * config/mep/mep.c (mep_init_machine_status): Likewise.
5334 (mep_note_pragma_flag): Likewise.
5336 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
5338 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
5340 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
5342 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
5343 (i386_pe_maybe_record_exported_symbol): Likewise.
5345 * config/i386/i386.c (get_dllimport_decl): Likewise.
5346 (ix86_init_machine_status): Likewise.
5347 (assign_386_stack_local): Likewise.
5349 * config/frv/frv.c (frv_init_machine_status): Likewise.
5351 * config/darwin.c (machopic_indirection_name): Likewise.
5353 * config/cris/cris.c (cris_init_machine_status): Likewise.
5355 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
5357 * config/avr/avr.c (avr_init_machine_status): Likewise.
5359 * config/arm/arm.c (arm_init_machine_status): Likewise.
5361 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
5362 (alpha_need_linkage): Likewise.
5363 (alpha_use_linkage): Likewise.
5365 * cgraph.c (cgraph_allocate_node): Likewise.
5366 (cgraph_create_edge_1): Likewise.
5367 (cgraph_create_indirect_edge): Likewise.
5368 (cgraph_add_asm_node): Likewise.
5370 * cfgrtl.c (init_rtl_bb_info): Likewise.
5372 * cfgloop.c (alloc_loop): Likewise.
5373 (rescan_loop_exit): Likewise.
5375 * cfg.c (init_flow): Likewise.
5376 (alloc_block): Likewise.
5377 (unchecked_make_edge): Likewise.
5379 * c-parser.c (c_parse_init): Likewise.
5380 (c_parse_file): Likewise.
5382 * c-decl.c (bind): Likewise.
5383 (record_inline_static): Likewise.
5384 (push_scope): Likewise.
5385 (make_label): Likewise.
5386 (lookup_label_for_goto): Likewise.
5387 (finish_struct): Likewise.
5388 (finish_enum): Likewise.
5389 (c_push_function_context): Likewise.
5391 * bitmap.c (bitmap_element_allocate): Likewise.
5392 (bitmap_gc_alloc_stat): Likewise.
5394 * alias.c (record_alias_subset): Likewise.
5395 (init_alias_analysis): Likewise.
5397 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
5399 * fold-const.c (fold_comparison): Remove redundant parenthesis.
5400 * tree-inline.c (expand_call_inline): Pass translated return value of
5401 cgraph_inline_failed_string to diagnostic function.
5403 2010-06-08 Andrew Pinski <pinskia@gmail.com>
5404 Shujing Zhao <pearly.zhao@oracle.com>
5407 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
5408 implicit bad conversions is initialization.
5409 (error_init): Use gmsgid instead of msgid for argument name and change
5411 (pedwarn_init): Use gmsgid instead of msgid for argument name and
5412 change the call for pedwarn.
5413 (warning_init): Use gmsgid instead of msgid for argument name and
5414 change the call for warning.
5416 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
5418 * config/mips/mips-protos.h (mips_print_operand): Delete.
5419 (mips_print_operand_address): Delete.
5420 * config/mips/mips.h (mips_print_operand_punct): Delete.
5421 (PRINT_OPERAND): Delete.
5422 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5423 (PRINT_OPERAND_ADDRESS): Delete.
5424 * config/mips/mips.c (mips_print_operand_punct): Make static.
5425 (mips_print_operand_address): Make static.
5426 (mips_print_operand): Make static. Call
5427 mips_print_operand_punct_valid_p.
5428 (mips_print_operand_punct_valid_p): New function.
5429 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5430 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5432 2010-06-07 Jan Hubicka <jh@suse.cz>
5435 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
5438 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
5440 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
5443 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5445 * doc/sourcebuild.texi (Effective-Target Keywords, Other
5446 attributes): Document gas.
5448 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
5450 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
5451 <TYPE_LEA>: Split instruction.
5452 <default>: Remove alternative 2 handling.
5453 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
5454 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
5455 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
5457 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
5458 (ashift_zext lea splitter): Use DImode for multiplication.
5460 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
5461 to generate addition.
5463 2010-06-07 Joseph Myers <joseph@codesourcery.com>
5465 * common.opt (fira-verbose): Use Var.
5466 (fpcc-struct-return): Use Init instead of VarExists.
5467 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
5469 * flags.h (flag_signed_char, flag_short_enums,
5470 flag_pcc_struct_return, flag_ira_verbose,
5471 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
5472 * toplev.c (flag_detailed_statistics, flag_signed_char,
5473 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
5474 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
5475 * toplev.h (flag_crossjumping, flag_if_conversion,
5476 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
5477 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
5478 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
5479 flag_cprop_registers, time_report, flag_ira_loop_pressure,
5480 flag_ira_coalesce, flag_ira_move_spills,
5481 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
5483 2010-06-07 Jan Hubicka <jh@suse.cz>
5485 * df-core.c (df_analyze_problem): Do verification after allocation.
5487 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
5488 (df_lr_alloc): Initialize problem data; move bitmaps to
5490 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
5491 (df_lr_verify_solution_start): Do not initialize problem data;
5492 allocate bitmaps in lr_bitmaps.
5493 (df_lr_verify_solution_end): Do not free problem data.
5495 2010-06-07 Jan Hubicka <jh@suse.cz>
5497 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
5498 if caller is noreturn.
5499 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
5500 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
5501 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
5502 * ipa-pure-const.c (check_decl): Add IPA parameter.
5503 (state_from_flags): New function.
5504 (better_state, worse_state): New functions.
5505 (check_call): When in IPA mode, do not care about callees.
5506 (check_load, check_store): Update.
5507 (check_ipa_load, check_ipa_store): New.
5508 (check_stmt): When in IPA mode, use IPA checkers.
5509 (analyze_function): Use state_from_flags.
5510 (propagate): Check indirect edges and references.
5512 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
5514 PR rtl-optimization/44404
5515 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
5516 of count_occurrences to see if it's safe to modify mem_insn.
5518 2010-06-07 Richard Guenther <rguenther@suse.de>
5520 * gimplify.c (gimplify_cleanup_point_expr): For empty body
5521 and EH-only cleanup drop the cleanup instead of inserting it
5524 2010-06-07 Ira Rosen <irar@il.ibm.com>
5526 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
5528 * targhooks.c (default_builtin_vectorization_cost): New function.
5529 * targhooks.h (default_builtin_vectorization_cost): Declare.
5530 * target.h (enum vect_cost_for_stmt): Define.
5531 (builtin_vectorization_cost): Change argument and comment.
5532 * tree-vectorizer.h: Remove cost model macros.
5533 * tree-vect-loop.c: Include target.h.
5534 (vect_get_cost): New function.
5535 (vect_estimate_min_profitable_iters): Replace cost model macros with
5536 calls to vect_get_cost.
5537 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
5538 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
5539 default implementation.
5540 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
5541 calls to target hook builtin_vectorization_cost.
5542 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
5544 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
5545 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
5546 implementation to return costs.
5547 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
5548 * config/spu/spu.h: Remove vectorizer cost model macros.
5549 * config/i386/i386.h: Likewise.
5550 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
5551 a call to target hook builtin_vectorization_cost.
5553 2010-06-06 Sriraman Tallam <tmsriram@google.com>
5556 * config/i386/i386.c (override_options): Turn zee pass on for level 2
5557 and above and defer till target is known.
5558 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
5561 2010-05-25 Jan Hubicka <jh@suse.cz>
5563 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
5564 (df_compact_blocks): Likewise.
5565 * df.h (struct df): Turn hardware_regs_used,
5566 regular_block_artificial_uses, eh_block_artificial_uses,
5567 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
5569 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
5570 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
5571 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
5572 df_scan_blocks, df_insn_delete, df_insn_rescan,
5573 df_insn_rescan_debug_internal, df_insn_rescan_all,
5574 df_process_deferred_rescans, df_process_deferred_rescans,
5575 df_notes_rescan, df_get_call_refs, df_get_call_refs,
5576 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
5577 df_record_entry_block_defs, df_record_exit_block_uses,
5578 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
5579 df_scan_verify): Update.
5581 2010-05-25 Dodji Seketeli <dodji@redhat.com>
5584 * c-common.c (is_typedef_decl): Move this definition ...
5585 * tree.c (is_typedef_decl): ... here.
5586 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
5587 * c-common.h (is_typedef_decl): Move this declaration ...
5588 * tree.h (is_typedef_decl): ... here.
5589 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
5590 * dwarf2out.c (is_naming_typedef_decl): New function.
5591 (gen_tagged_type_die): Split out of ...
5592 (gen_type_die_with_usage): ... this function. When an anonymous
5593 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
5594 is emitted for the typedef.
5595 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
5596 anonymous tagged types.
5598 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
5601 * c-decl.c (grokdeclarator): Delete warning.
5603 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
5605 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
5606 newly built CALL_EXPR.
5607 * tree-profile.c (tree_profiling): Don't profile functions produced
5610 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
5614 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
5615 endianness-independent.
5617 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5619 * c-common.c: Move to c-family/.
5620 * c-common.def: Likewise.
5621 * c-common.h: Likewise.
5622 * c-cppbuiltin.c: Likewise.
5623 * c-dump.c: Likewise.
5624 * c-format.c: Likewise.
5625 * c-format.h : Likewise.
5626 * c-gimplify.c: Likewise.
5627 * c-lex.c: Likewise.
5628 * c-omp.c: Likewise.
5630 * c-opts.c: Likewise.
5631 * c-pch.c: Likewise.
5632 * c-ppoutput.c: Likewise.
5633 * c-pragma.c: Likewise.
5634 * c-pragma.h: Likewise.
5635 * c-pretty-print.c: Likewise.
5636 * c-pretty-print.h: Likewise.
5637 * c-semantics.c: Likewise.
5638 * stub-objc.c: Likewise.
5640 * gengtype.c (get_file_langdir): Special-case files in c-family/.
5641 (get_output_file_with_visibility): Fix name for c-common.h.
5642 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
5644 * c-tree.h: Update include path for moved files.
5645 * c-lang.c: Likewise.
5646 * c-lang.h: Likewise.
5647 * c-parser.c: Likewise.
5648 * c-convert.c: Likewise.
5649 * c-decl.c: Likewise.
5650 * c-objc-common.c: Likewise.
5651 * configure.ac: Make sure c-family/ exists in the build directory.
5652 * configure: Regenerate.
5653 * Makefile.in: Update paths for moved files. Regroup files per
5654 location and update dependencies. Move generated_files down after
5657 * config/spu/spu-c.c: Update paths for moved files.
5658 * config/mep/mep-pragma.c: Likewise.
5659 * config/darwin-c.c: Likewise.
5660 * config/i386/msformat-c.c: Likewise.
5661 * config/i386/i386-c.c: Likewise.
5662 * config/avr/avr-c.c: Likewise.
5663 * config/sol2-c.c: Likewise.
5664 * config/ia64/ia64-c.c: Likewise.
5665 * config/rs6000/rs6000-c.c: Likewise.
5666 * config/arm/arm.c: Likewise.
5667 * config/arm/arm-c.c: Likewise.
5668 * config/h8300/h8300.c: Likewise.
5669 * config/v850/v850-c.c: Likewise.
5671 * config/t-darwin: Fix dependencies for moved files.
5672 * config/t-sol2: Fix dependencies for moved files.
5673 * config/mep/t-mep: Fix dependencies for moved files.
5674 * config/ia64/t-ia64: Fix dependencies for moved files.
5675 * config/rs6000/t-rs6000: Fix dependencies for moved files.
5676 * config/v850/t-v850: Fix dependencies for moved files.
5677 * config/v850/t-v850e: Fix dependencies for moved files.
5679 * config/m32c/m32c-pragma.c
5681 * po/exgettext: Look in c-family/ also.
5683 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
5685 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
5686 (mark_control_dependent_edges_necessary): Call it instead of marking
5687 the last statement manually.
5688 (propagate_necessity): Likewise.
5690 2010-06-05 Jan Hubicka <jh@suse.cz>
5692 * basic-block.h (compute_dominance_frontiers): Updated.
5693 (compute_idf): Likewise.
5695 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
5696 for dominance frontiers.
5697 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
5698 (insert_updated_phi_nodes_for): Likewise.
5699 (update_ssa): Likewise.
5700 * cfganal.c (compute_dominance_frontiers_1): Likewise.
5701 (compute_dominance_frontiers): Likewise.
5702 (compute_idf): Likewise.
5703 * df-problems.c (df_md_local_compute): Likewise.
5705 2010-06-05 Anatoly Sokolov <aesok@post.ru>
5707 * target.h (struct gcc_target): Add memory_move_cost field.
5708 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
5709 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
5710 * targhooks.c (default_memory_move_cost): New function.
5711 * targhooks.h (default_memory_move_cost): Declare function.
5712 * reload.h (memory_move_cost): Declare.
5713 (memory_move_secondary_cost): Change type of 'in' argument to bool.
5714 * reginfo.c (memory_move_cost): New function.
5715 (memory_move_secondary_cost): Change type of 'in' argument to bool.
5716 * ira.h (ira_memory_move_cost): Update comment.
5717 * ira.c: (ira_memory_move_cost): Update comment.
5718 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
5719 with memory_move_cost.
5720 * postreload.c (reload_cse_simplify_set): (Ditto.).
5721 * reload1.c (choose_reload_regs): (Ditto.).
5722 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
5723 (MEMORY_MOVE_COST): Revise documentation.
5725 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
5726 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
5727 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
5728 type of 'in' argument to bool.
5729 (TARGET_MEMORY_MOVE_COST): Define.
5731 2010-06-05 Jan Hubicka <jh@suse.cz>
5733 * ipa-pure-const.c (propagate): Fix typo in handling of functions
5734 that cannot return. Be more careful when merging the results with
5735 previously known ones.
5737 2010-06-05 Matthias Klose <doko@ubuntu.com>
5739 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
5740 function to add the -iplugindir option.
5741 (find_plugindir_spec_function): Add new declaration and function.
5742 (static_spec_func): Use it for "find-plugindir".
5744 2010-06-05 Jakub Jelinek <jakub@redhat.com>
5747 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
5748 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
5749 statement expression.
5751 2010-06-05 Jan Hubicka <jh@suse.cz>
5753 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
5754 (df_rd_problem_data): Convert sparse_invalidated_by_call,
5755 dense_invalidated_by_call to bitmap head.
5756 (df_rd_alloc, df_rd_bb_local_compute_process_def,
5757 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
5758 df_rd_start_dump, df_lr_verify_transfer_functions,
5759 df_live_verify_transfer_functions, df_chain_create_bb,
5760 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
5761 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
5762 df_simulate_one_insn_forwards, df_md_alloc,
5763 df_md_bb_local_compute_process_def,
5764 df_md_bb_local_compute_process_def, df_md_local_compute,
5765 df_md_transfer_function df_md_free): Update.
5767 2010-06-05 Joseph Myers <joseph@codesourcery.com>
5770 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
5771 target type for ADDR_EXPR; require no changes to qualifiers except
5773 * c-tree.h (c_build_type_variant): Remove.
5775 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
5777 * genautomata.c (get_excl_set): Do work per element, not per char.
5778 (check_presence_pattern_sets): Similar.
5779 (check_absence_pattern_sets): Similar.
5781 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
5783 * genautomata.c (curr_state_pass_num): Delete.
5784 (min_issue_delay_pass_states): Delete.
5785 (min_issue_delay): Delete.
5786 (initiate_min_issue_delay_pass_states): Delete.
5787 (output_min_issue_delay_table): Compute min_issue_delay_vect
5788 using a breadth-first search variant.
5789 (output_tables): Don't call initiate_min_issue_delay_pass_states.
5791 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
5794 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
5795 (df_byte_lr_bb_local_compute): Likewise.
5797 2010-06-03 Jason Merrill <jason@redhat.com>
5799 Implement noexcept operator (5.3.7)
5800 * c-common.c (c_common_reswords): Add noexcept.
5801 * c-common.h (enum rid): Add RID_NOEXCEPT.
5803 2010-06-04 Joseph Myers <joseph@codesourcery.com>
5805 * config/darwin-driver.c (darwin_default_min_version): Use
5806 GCC-specific formats in diagnostics.
5807 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
5809 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
5810 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
5811 eval_spec_function, handle_braces, process_brace_body, main,
5812 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
5813 getenv_spec_function, compare_version_strings,
5814 version_compare_spec_function): Use GCC-specific formats in
5817 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
5819 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
5820 that operand 0 and operand 1 are equal.
5821 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
5822 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
5823 and operand 1 are equal.
5824 <default>: Ditto. Remove ??? comment.
5825 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
5826 and operand 1 are equal.
5827 <default>: Ditto. Remove ??? comment.
5828 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
5830 (*add<mode>_4) <default>: Ditto.
5831 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
5833 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
5835 * config/i386/i386-protos.h (ix86_print_operand): Declare.
5836 * config/i386/i386.c (ix86_print_operand): Make non-static.
5837 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
5838 * output.h (output_operand): Declare.
5839 * final.c (output_operand): Make non-static.
5841 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
5843 PR rtl-optimization/44013
5844 * sched-deps.c (add_dependence_list_and_free): Don't free lists
5845 when processing debug insns.
5848 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
5849 recursing. Check that recursion is bounded. Rename inner var
5850 to avoid hiding incoming argument.
5852 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
5854 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
5859 (*addqi_ext_1_rex64): Ditto.
5860 (*addqi_ext_1): Ditto.
5862 (*addqi_4): Check for incdec_operand in QImode.
5864 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
5865 using SWI mode iterator.
5866 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
5867 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
5869 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
5870 using SWI mode iterator.
5872 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5875 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
5876 * c-format.c (gcc_diag_flag_specs): Add hash.
5877 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
5878 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
5879 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
5880 pp_c_cv_qualifiers. Handle qualifiers spelling here.
5881 (pp_c_type_qualifier_list): Call the function above.
5882 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
5883 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
5884 (WARN_FOR_QUALIFIERS): New macro.
5885 (convert_for_assignment): Use it.
5887 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
5889 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
5891 2010-06-04 Jan Hubicka <jh@suse.cz>
5893 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
5894 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
5895 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
5896 DF_BYTE_LR_OUT): Update for embedded bitmaps.
5897 * fwprop.c (single_def_use_enter_block): Likewise.
5898 * ddg.c (create_ddg_dep_from_intra_loop_link,
5899 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
5900 * loop-iv.c (latch_dominating_def): Likewise.
5901 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
5902 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
5903 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
5904 df_rd_transfer_function, df_rd_top_dump,
5905 df_rd_bottom_dump): Update.
5906 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
5907 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
5908 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
5909 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
5910 df_lr_verify_solution_start, df_lr_verify_solution_end,
5911 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
5912 df_live_free_bb_info, df_live_alloc, df_live_reset,
5913 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
5914 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
5915 df_live_verify_solution_start, df_live_verify_solution_end,
5916 df_live_verify_transfer_functions, df_chain_create_bb,
5917 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
5918 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
5919 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
5920 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
5921 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
5922 df_byte_lr_transfer_function, df_byte_lr_top_dump,
5923 df_byte_lr_bottom_dump, df_create_unused_note,
5924 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
5925 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
5926 df_md_transfer_function, df_md_init, df_md_confluence_0,
5928 df_md_top_dump, df_md_bottom_dump): Update.
5929 (struct df_lr_problem_data): Embedd bitmap headers.
5931 2010-06-04 Jan Hubicka <jh@suse.cz>
5933 * dce.c (dce_process_block): Do not re-scan already marked
5936 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
5938 PR rtl-optimization/39871
5939 PR rtl-optimization/40615
5940 PR rtl-optimization/42500
5941 PR rtl-optimization/42502
5942 * ira.c (init_reg_equiv_memory_loc: New function.
5943 (ira): Call it twice.
5944 * reload.h (calculate_elim_costs_all_insns): Declare.
5945 * ira-costs.c: Include "reload.h".
5946 (regno_equiv_gains): New static variable.
5947 (init_costs): Allocate it.
5948 (finish_costs): Free it.
5949 (ira_costs): Call calculate_elim_costs_all_insns.
5950 (find_costs_and_classes): Take estimated elimination costs
5952 (ira_adjust_equiv_reg_cost): New function.
5953 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
5954 * reload1.c (init_eliminable_invariants, free_reg_equiv,
5955 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
5956 (elim_bb): New static variable.
5957 (reload): Move code out of here into init_eliminable_invariants and
5958 free_reg_equiv. Call them.
5959 (calculate_elim_costs_all_insns): New function.
5960 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
5961 all callers changed. If FOR_COSTS is true, don't call alter_reg,
5962 but call note_reg_elim_costly if we turned a valid memory address
5963 into an invalid one.
5964 * Makefile.in (ira-costs.o): Depend on reload.h.
5966 2010-06-04 Julian Brown <julian@codesourcery.com>
5968 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
5971 2010-06-04 Richard Guenther <rguenther@suse.de>
5974 * cgraph.h (struct varpool_node): Add lto_file_data field.
5975 * lto-cgraph.c (input_varpool_node): Initialize it.
5977 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
5979 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
5980 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
5981 predicate in "type" attribute calculation.
5982 (*addsi_1_zext): Ditto.
5983 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
5984 (*addsi_2_zext): Ditto.
5985 (*add<mode>_3): Ditto.
5986 (*addsi_3_zext): Ditto.
5987 (*add<mode>_5): Ditto.
5989 2010-06-03 Jan Hubicka <jh@suse.cz>
5991 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
5993 * cfganal.c (compute_dominance_frontiers_1): Likewise.
5995 2010-06-03 Jan Hubicka <jh@suse.cz>
5997 * df-problems.c (df_create_unused_note, df_note_bb_compute):
5998 micro-optimize the checks when to add new note.
6000 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
6002 * final.c (output_asm_insn): Call
6003 targetm.asm_out.print_operand_punct_valid_p. Update comments.
6004 (output_operand): Call targetm.asm_out.print_operand. Update comments.
6005 (output_address): Call targetm.asm_out.print_operand_address.
6007 * target.h (struct gcc_target): Add print_operand,
6008 print_operand_address, and print_operand_punct_valid_p fields.
6009 * targhooks.h (default_print_operand): Declare.
6010 (default_print_operand_address): Declare.
6011 (default_print_operand_punct_valid_p): Declare.
6012 * targhooks.c (default_print_operand): Define.
6013 (default_print_operand_address): Define.
6014 (default_print_operand_punct_valid_p): Define.
6015 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
6016 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
6017 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
6018 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
6019 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
6020 * vmsdbgout.c (addr_const_to_string): Update comment.
6021 * config/i386/i386.c (print_operand): Rename to...
6022 (ix86_print_operand): ...this. Make static.
6023 (print_operand_address): Rename to...
6024 (ix86_print_operand_address): ...this. Make static. Call
6025 ix86_print_operand instead of PRINT_OPERAND.
6026 (ix86_print_operand_punct_valid_p): New function.
6027 (TARGET_PRINT_OPERAND): Define.
6028 (TARGET_PRINT_OPERAND_ADDRESS): Define.
6029 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6030 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
6031 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6032 (PRINT_OPERAND): Delete.
6033 (PRINT_OPERAND_ADDRESS): Delete.
6034 * config/i386/i386-protos.h (print_operand): Delete prototype.
6035 (print_operand_address): Delete prototype.
6037 2010-06-03 Richard Guenther <rguenther@suse.de>
6039 PR tree-optimization/44403
6040 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6041 Preserve pointer qualifiers.
6042 (vect_create_data_ref_ptr): Likewise.
6044 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
6047 * defaults.h (MAX_FIXED_MODE_SIZE): New.
6049 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
6051 2010-06-03 Jakub Jelinek <jakub@redhat.com>
6054 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
6055 return false if merging the bbs would lead to goto_locus
6056 location being lost from the IL.
6058 2010-06-03 Jan Hubicka <jh@suse.cz>
6059 Jakub Jelinek <jakub@redhat.com>
6061 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
6062 set->regs[i] is NULL or has just one entry.
6064 2010-06-03 Jan Hubicka <jh@suse.cz>
6066 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
6067 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
6069 2010-06-03 Paul Brook <paul@codesourcery.com>
6071 * config/arm/arm.c (FL_TUNE): Define.
6072 (arm_default_cpu, arm_cpu_select): Remove.
6073 (all_cores): Populate core field.
6074 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
6075 (arm_find_cpu): New function.
6076 (arm_handle_option): Lookup cpu/architecture names.
6077 (arm_override_options): Cleanup mcpu/march/mtune handling.
6078 (arm_file_start): Ditto.
6080 2010-06-03 Alan Modra <amodra@gmail.com>
6083 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
6084 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
6085 rtx to gen_load_toc_v4_PIC_1b. Tidy.
6086 (rs6000_emit_load_toc_table): Likewise.
6088 2010-06-02 Jan Hubicka <jh@suse.cz>
6090 * passes.c (init_optimization_passes): Put ipa reference
6091 after ipa pure-const.
6093 2010-06-02 Jan Hubicka <jh@suse.cz>
6095 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
6096 calls_read_all and calls_write_all.
6097 (get_reference_optimization_summary): Fix formatting.
6098 (is_proper_for_analysis): Check that decl is not readonly.
6099 (propagate_bits): Check CONST/PURE/noreturn flags.
6100 (ipa_init): Move all_module_statics to optimization_summary_obstack.
6101 (analyze_function): Ignore indirect edges.
6102 (copy_global_bitmap): For all module statics, do nothing.
6103 (generate_summary): Do not print calls_read_all/calls_write_all.
6104 (read_write_all_from_decl): Take node as argument; check
6105 cgraph_node_cannot_return.
6106 (propagate): Reorganize read_all/write_all computation;
6107 check indirect edges; check ecf flags; use all_module_statics
6108 in the results; do not free all_module_statics.
6109 (stream_out_bitmap): Handle all_module_statics.
6110 (ipa_reference_write_optimization_summary): Likewise; use
6111 varpool/cgraph encoders to get boundaries.
6112 (ipa_reference_read_optimization_summary): Read in all_module_statics;
6113 use it when possible.
6115 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
6118 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
6119 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
6121 * doc/extend.texi (powerpc builtins): Document vec_recip,
6122 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
6124 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
6125 (rs6000_emit_swrsqrt): Ditto.
6126 (rs6000_emit_swdivsf): Delete.
6127 (rs6000_emit_swdivdf): Ditto.
6128 (rs6000_emit_swrsqrtsf): Ditto.
6130 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
6131 describe the reciprocal estimate support for each type.
6132 (recip_options): Map -mrecip=<opt> into option bits.
6133 (gen_2arg_fn_t): New typedef for binary rtx gen function.
6134 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
6135 reciprocal estimate instructions.
6136 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
6137 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
6138 Set up rs6000_recip_bits based on the -mrecip* options. Print the
6139 cost information if -mdebug=cost or -mdebug=reg.
6140 (rs6000_override_options): Set -mrecip-precision for power6, and
6141 power7 machines. If -mvsx or -mdfp, enable various options that
6142 came in previous instruction set ISAs, unless the option was
6143 explicitly disabled by the command line option. Parse
6144 -mrecip=<opt> options.
6145 (rs6000_builtin_vectorized_function): Add support for vectorizing
6146 the reciprocal estimate builtins and expansions.
6147 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
6148 (bdesc_2arg): Add reciprocal estimate builtins.
6149 (bdesc_1arg): Add reciprocal square root estimate builtins.
6150 (rs6000_expand_builtin): Rewrite to use a switch statement,
6151 instead of multiple if/then/elses. Add reciprocal estimate builtins.
6152 (rs6000_init_builtins): Create declarations for reciprocal
6154 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
6155 sized, prefer traditional floating point registers, if integer
6156 vector types, prefer altivec registers. Don't actually look at
6157 the memory address any more.
6158 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
6160 (rs6000_load_constant_and_splat): New helper function to load up
6161 the constant for reciprocal estimate instructions.
6162 (rs6000_emit_madd): New helper function for generating
6163 multiply/add type instructions, based on the current switches.
6164 (rs6000_emit_msub): Ditto.
6165 (rs6000_emit_mnsub): Ditto.
6166 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
6167 replace a divide with a reciprocal estimate and fixup, adding
6168 support for machines with high precision and vectors.
6169 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
6170 low precision machines.
6171 (rs6000_emit_swdiv): New common function to be called to replace a
6172 division with reciprocal estimate and fixup.
6173 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
6174 for double and vector types. Add support for high precision machines.
6176 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
6177 the reciprocal estimate instructions can be generated.
6178 (TARGET_FRE): Ditto.
6179 (TARGET_FRSQRTES): Ditto.
6180 (TARGET_FRSQRTE): Ditto.
6181 (RS6000_RECIP_*): New macros for reciprocal estimate support.
6183 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
6184 square root estimate on vectors.
6185 (re<mode>2): New insn for reciprocal division estimate on vectors.
6187 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
6189 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
6190 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
6191 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
6192 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
6193 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
6194 (RS6000_BUILTIN_RSQRT): Ditto.
6195 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
6196 floating point builtin.
6198 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6199 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
6200 __RECIP_PRECISION__ based on the command line switches.
6201 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
6203 * config/rs6000/rs6000.opt (-mrecip): Document add support for
6204 replacing division instructions with reciprocal estimate and fixup.
6205 (-mrecip=<opt>): New option.
6206 (-mrecip-precision): Ditto.
6208 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
6209 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
6210 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
6213 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
6214 (UNSPEC_VREFP): Ditto.
6215 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
6216 conterparts with regard to support of -mno-fused-madd and -ffast-math.
6217 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
6218 reciprocal estimate instructions to be generated.
6219 (altivec_vrefp): Ditto.
6221 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
6223 (rreg): New mode attribute for reciprocal estimate support.
6224 (recip<mode>3): New insn for division using reciprocal estimate
6226 (divide define_split): New define_split to convert floating point
6227 division to use reciprocal estimate if the user used the
6228 appropriate options and the split is run when we can add new
6229 pseudo registers for the fixup.
6230 (rsqrt<mode>2): New insn for reciprocal square root support.
6231 (recipsf3): Move into recip<mode>3.
6233 (fres): Use TARGET_FRES.
6234 (rsqrtsf2): Move into rsqrt<mode>2.
6235 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
6236 (copysignsf3): Add support for VSX.
6237 (fred): Use TARGET_FRE.
6239 (rsqrtdf_internal1): New function for frsqrte instruciton.
6241 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
6244 2010-06-03 Richard Guenther <rguenther@suse.de>
6247 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
6248 (set_user_assembler_libfunc): Likewise.
6250 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
6252 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
6254 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
6256 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
6257 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
6258 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
6259 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
6260 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
6261 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
6262 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
6263 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
6264 * defaults.h: Updated for above mentioned changes.
6266 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
6268 * c-common.c: Remove header include of tm_p.h.
6269 * Makefile.in (c-common.o): Remove TM_P_H dependency.
6271 2010-06-02 Jakub Jelinek <jakub@redhat.com>
6273 * tree.h (struct tree_decl_map): New type.
6274 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
6275 (tree_decl_map_hash): New prototype.
6276 (debug_expr_for_decl, value_expr_for_decl): Change into
6277 tree_decl_map hashtab from tree_map.
6278 (init_ttree): Adjust initialization.
6279 (tree_decl_map_hash): New function.
6280 (decl_debug_expr_lookup, decl_debug_expr_insert,
6281 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
6283 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6285 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
6287 * configure: Regenerate.
6288 * config.in: Regenerate.
6290 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
6291 (X86_64_EMULATION): Define.
6292 (TARGET_LD_EMULATION): Use them.
6294 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
6295 (SPARC64_EMULATION): Define.
6296 (LINK_ARCH_SPEC): Use them.
6298 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
6300 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
6301 smallest_mode_for_size for computing the precision types of new
6302 graphite IVs. Do not call lang_hooks.types.type_for_size.
6304 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
6306 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
6308 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
6310 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
6313 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
6314 return false instead.
6316 2010-06-02 Jan Hubicka <jh@suse.cz>
6319 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
6320 create new cgraph node to check callee.
6322 2010-06-02 Richard Guenther <rguenther@suse.de>
6324 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
6326 2010-06-02 Richard Guenther <rguenther@suse.de>
6328 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
6329 (lto_wrapper_cleanup): ... this. Do not exit.
6330 (fatal): Adjust. Exit here.
6331 (fatal_perror): Likewise.
6332 (fatal_signal): New function.
6333 (main): Set up signal handlers to cleanup temporary files.
6334 * Makefile.in (lto-wrapper.o): Adjust dependencies.
6336 2010-06-02 Richard Guenther <rguenther@suse.de>
6338 PR tree-optimization/44377
6339 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
6341 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6343 * config/s390/2097.md (z10_fhex): Remove insn reservation.
6344 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
6345 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
6346 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
6348 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
6350 2010-06-02 Jan Hubicka <jh@suse.cz>
6352 * bitmap.c (bitmap_descriptor): Add search_iter.
6353 (bitmap_find_bit): Increment it.
6354 (print_statistics): Print it.
6356 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
6358 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
6359 instead of gimple_build_call_vec. Delete unnecessary local variable.
6361 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
6363 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
6364 change from yesterday.
6366 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
6368 * c-ada-spec.c: Clean up redundant includes.
6370 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
6372 * gimplify.c: Do not include except.h and optabs.h.
6373 (gimplify_body): Do not initialize RTL profiling.
6374 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
6375 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
6376 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
6377 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
6380 * tree-pretty-print.h: Include pretty-print.h.
6381 * gimple-pretty-print.h: Include pretty-print.h.
6383 * tree-pretty-print.c: Do not include diagnostic.h.
6384 * tree-vrp.c: Likewise.
6385 * tree-tailcall.c: Likewise
6386 * tree-scalar-evolution.c: Likewise
6387 * tree-ssa-dse.c: Likewise
6388 * tree-chrec.c: Likewise
6389 * tree-ssa-sccvn.c: Likewise
6390 * tree-ssa-copyrename.c: Likewise
6391 * tree-nomudflap.c: Likewise
6392 * tree-call-cdce.c: Likewise
6393 * tree-stdarg.c: Likewise
6394 * tree-ssa-math-opts.c: Likewise
6395 * tree-nrv.c: Likewise
6396 * tree-ssa-sink.c: Likewise
6397 * tree-browser.c: Likewise
6398 * tree-ssa-loop-ivcanon.c: Likewise
6399 * tree-ssa-loop.c: Likewise
6400 * tree-parloops.c: Likewise
6401 * tree-ssa-address.c: Likewise
6402 * tree-ssa-ifcombine.c: Likewise
6403 * tree-if-conv.c: Likewise
6404 * tree-data-ref.c: Likewise
6405 * tree-affine.c: Likewise
6406 * tree-ssa-phiopt.c: Likewise
6407 * tree-ssa-coalesce.c: Likewise
6408 * tree-ssa-pre.c: Likewise
6409 * tree-ssa-live.c: Likewise
6410 * tree-predcom.c: Likewise
6411 * tree-ssa-forwprop.c: Likewise
6412 * tree-ssa-dce.c: Likewise
6413 * tree-ssa-ter.c: Likewise
6414 * tree-ssa-loop-prefetch.c: Likewise
6415 * tree-optimize.c: Likewise
6416 * tree-ssa-phiprop.c: Likewise
6417 * tree-object-size.c: Likewise
6418 * tree-outof-ssa.c: Likewise
6419 * tree-ssa-structalias.c: Likewise
6420 * tree-switch-conversion.c: Likewise
6421 * tree-ssa-reassoc.c: Likewise
6422 * tree-ssa-operands.c: Likewise
6423 * tree-vectorizer.c: Likewise
6424 * tree-vect-data-refs.c: Likewise
6425 * tree-vect-generic.c: Likewise
6426 * tree-vect-stmts.c: Likewise
6427 * tree-vect-patterns.c: Likewise
6428 * tree-vect-slp.c: Likewise
6429 * tree-vect-loop.c: Likewise
6430 * tree-ssa-loop-ivopts.c: Likewise
6431 * tree-ssa-loop-im.c: Likewise
6432 * tree-ssa-loop-niter.c: Likewise
6433 * tree-ssa-loop-unswitch.c: Likewise
6434 * tree-ssa-loop-manip.c: Likewise
6435 * tree-ssa-loop-ch.c: Likewise
6436 * tree-dump.c: Likewise
6437 * tree-complex.c: Likewise
6439 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
6440 * tree-ssa-uninit.c: Likewise
6441 * tree-ssa-threadupdate.c: Likewise
6442 * tree-ssa-uncprop.c: Likewise
6443 * tree-ssa-ccp.c: Likewise
6444 * tree-ssa-dom.c: Likewise
6445 * tree-ssa-propagate.c: Likewise
6446 * tree-ssa-alias.c: Likewise
6447 * tree-dfa.c: Likewise
6448 * tree-cfgcleanup.c: Likewise
6449 * tree-sra.c: Likewise
6450 * tree-ssa-copy.c: Likewise
6451 * tree-ssa.c: Likewise
6452 * tree-profile.c: Likewise
6453 * tree-cfg.c: Likewise
6454 * tree-ssa-threadedge.c: Likewise
6455 * tree-vect-loop-manip.c: Likewise
6457 * tree-inline.c: Do not include diagnostic.h and expr.h.
6459 (copy_decl_for_dup_finish): Do not use NULL_RTX.
6461 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
6462 * tree-loop-distribution.c: Likewise.
6464 2010-06-01 Jan Hubicka <jh@suse.cz>
6466 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
6468 2010-06-01 Jan Hubicka <jh@suse.cz>
6470 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
6471 remove return value.
6472 (split_bbs_on_noreturn_calls) .... here.
6473 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
6474 * tree-flow.h (fixup_noreturn_call): New.
6476 2010-06-01 Jan Hubicka <jh@suse.cz>
6478 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
6480 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
6482 * tree.h (build_nt_call_list): Delete.
6483 * tree.c (build_nt_call_list): Delete.
6485 2010-06-01 Jan Hubicka <jh@suse.cz>
6487 * fwprop.c: Make emit-rtl.h include last.
6488 * rtlanal.c: Include emit-rtl.h.
6489 * genautomata.c: Output emit-rtl include into insn-automata.c
6490 * df-scan.c: Include emit-rtl.h.
6491 * haifa-sched.c: Indlude emit-rtl.h.
6492 * mode-switching.c: Indlude emit-rtl.h.
6493 * graph.c: Indlude emit-rtl.h.
6494 * sel-sched.c: Include emit-rtl.h.
6495 * sel-sched-ir.c: Include emit-rtl.h.
6496 * ira-build.c: Include emit-rtl.h.
6497 * emit-rtl.c: (first_insn, last_insn): Remove defines.
6498 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
6500 (set_new_first_and_last_insn, get_last_insn_anywhere,
6501 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
6502 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
6503 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
6504 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
6505 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
6506 Use accessor functions.
6507 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
6508 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
6509 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
6510 mem_expr_equal_p): Move here from rtl.h.
6511 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
6512 Move here from emit-rtl.c; make inline.
6513 * cfglayout.h: Include emit-rtl.h.
6514 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
6515 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
6516 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
6517 mem_expr_equal_p, get_insns, set_first-insn,
6518 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
6519 * reg-stack.c: Include emit-rtl.h.
6522 2010-06-01 Jan Hubicka <jh@suse.cz>
6524 * cgraph.h (tree_function_versioning): Update prototype.
6525 (cgraph_function_versioning): Update prototype.
6526 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
6528 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
6529 (cgraph_materialize_clone, save_inline_function_body): Update use of
6530 tree_function_versioning.
6531 * tree-inline.c (copy_bb): Look for previous copied block to link
6532 after; fix debug output.
6533 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
6534 (copy_body): Likewise.
6535 (expand_call_inline): Update use of copy_body.
6536 (tree_function_versioning): Update use of copy body; accept
6537 blocks_to_copy and new_entry.
6539 2010-06-01 Jan Hubicka <jh@suse.cz>
6541 * gegenrtl.c: Remove unnecesary prototypes.
6543 (gendef): Produce static inline.
6545 (main): Do not decode parameters; generate header only.
6546 * Makefile.in (genrtl.c): Remove.
6548 2010-06-01 Jan Hubicka <jh@suse.cz>
6550 * tree-switch-conversion.c (build_one_array): Make it readonly.
6552 2010-06-01 Richard Guenther <rguenther@suse.de>
6554 * optabs.c (init_optabs): Guard all accesses to reinit.
6555 * ipa-pure-const.c (propagate): Fix another typo.
6556 * opts.c (common_handle_option): Split assignment to bool.
6557 * c-opts.c (c_common_handle_option): Likewise.
6559 2010-06-01 Arnaud Charlet <charlet@adacore.com>
6560 Matthew Gingell <gingell@adacore.com>
6562 * doc/invoke.texi: Mention -fdump-ada-spec.
6563 * tree-dump.c (dump_files): Add ada-spec.
6564 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
6565 * tree-pass.h (tree_dump_index): Add TDI_ada.
6566 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
6567 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
6568 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
6569 * c-decl.c: Include c-ada-spec.h.
6570 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
6572 (c_write_global_declarations): Add handling of -fdump-ada-spec.
6573 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
6574 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
6575 * c-ada-spec.h, c-ada-spec.c: New files.
6577 2010-06-01 Richard Guenther <rguenther@suse.de>
6580 * ipa-pure-const.c (get_function_state): Hand back varying state
6581 if we do not have one.
6582 (has_function_state): New function.
6583 (duplicate_node_data): Adjust.
6584 (remove_node_data): Likewise.
6585 (pure_const_write_summary): Likewise.
6586 (propagate): Likewise. Fix typo.
6588 2010-06-01 Jan Hubicka <jh@suse.cz>
6590 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
6591 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
6592 (execute_all_ipa_transforms): Do not play with the states.
6594 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
6596 * config/arm/t-linux-androideabi: New.
6597 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
6599 2010-06-01 Jan Hubicka <jh@suse.cz>
6601 * tree-inline.c (estimate_num_insns): For stdarg functions look
6602 into call statement to count cost of argument passing.
6604 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
6606 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
6607 argument for fprintf.
6608 (ix86_output_addr_diff_elt): Likewise.
6609 (x86_function_profiler): Likewise.
6610 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
6611 (LPREFIX): Likewise.
6612 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6614 2010-05-31 Jakub Jelinek <jakub@redhat.com>
6617 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
6618 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
6619 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
6620 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
6621 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
6622 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
6623 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
6624 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
6627 2010-05-31 Jan Hubicka <jh@suse.cz>
6629 * tree.h (tree_range_check_failed): Declare noreturn.
6631 2010-05-31 Jan Hubicka <jh@suse.cz>
6633 * gimple.c (gimple_call_builtin_p): New function.
6634 * gimple.h (gimple_call_builtin_p): Declare.
6635 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
6637 (execute_warn_function_return): BUILT_IN_RETURN is return.
6638 (split_critical_edges): Return edges are not critical.
6639 (is_ctrl_altering_stmt): Builtin_in_return is altering.
6640 (gimple_verify_flow_info): Handle built_in_return.
6641 (execute_warn_function_return): Handle built_in_return.
6642 * ipa-pure-const.c (check_call): Ignore builtin_return.
6644 2010-05-31 Jakub Jelinek <jakub@redhat.com>
6647 * expr.c (expand_assignment): Don't store anything for out-of-bounds
6648 array accesses with non-MEM.
6650 PR tree-optimization/44182
6651 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
6652 newly needs to end a bb is followed by debug stmts, instead return
6653 true from the function at the end.
6654 (maybe_move_debug_stmts_to_successors): New function.
6655 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
6657 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
6660 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
6662 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
6664 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
6665 for nested functions in non-optimized compilation.
6667 2010-05-31 Richard Guenther <rguenther@suse.de>
6669 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
6671 2010-05-30 Jan Hubicka <jh@suse.cz>
6673 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
6675 2010-05-30 Richard Guenther <rguenther@suse.de>
6678 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
6679 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
6682 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
6684 * config/darwin.c (output_objc_section_asm_op): Add comment.
6685 (name_needs_quotes): Add '_' to list of valid comment chars.
6686 (machopic_output_function_base_name): Remove unneeded quotes.
6687 (darwin_encode_section_info): Adjust asm whitespace.
6688 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
6689 (ASM_OUTPUT_LOCAL): Ditto.
6690 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
6691 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
6692 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
6694 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
6696 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
6697 RS6000_OUTPUT_BASENAME unconditionally.
6698 (rs6000_output_function_epilogue): Likewise.
6700 2010-05-30 Jan Hubicka <jh@suse.cz>
6702 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
6705 2010-05-30 Richard Guenther <rguenther@suse.de>
6707 * tree-cfg.c (verify_gimple_assign_single): Implement
6708 verification for COND_EXPR rhs.
6710 2010-05-30 Jan Hubicka <jh@suse.cz>
6712 * cgraph.h (cgraph_dump_file): Declare.
6713 * cgraphunit.c (cgraph_dump_file): Export.
6714 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
6716 2010-05-30 Jan Hubicka <jh@suse.cz>
6718 * dwarf2out.c (reference_to_unused,
6719 premark_types_used_by_global_vars_helper): Avoid creation of new
6722 2010-05-30 Jan Hubicka <jh@suse.cz>
6724 * cgraph.h (cgraph_node_cannot_return,
6725 cgraph_edge_cannot_lead_to_return): New functions.
6726 * cgraph.c (cgraph_node_cannot_return,
6727 cgraph_edge_cannot_lead_to_return): Use them.
6728 * ipa-pure-const.c (pure_const_names): New static var.
6729 (check_call): Handle calls not leading to return.
6730 (pure_const_read_summary): Dump info read.
6731 (propagate): Dump info about propagation process; ignore side effects
6732 of functions not leading to exit; fix handling of pure functions.
6734 2010-05-30 Jan Hubicka <jh@suse.cz>
6736 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
6737 for tail call epilogues.
6739 2010-05-30 Jan Hubicka <jh@suse.cz>
6741 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
6742 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
6745 2010-05-29 Jan Hubicka <jh@suse.cz>
6747 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
6748 node; remove references in node we no longer keep in cgrpah but need
6751 2010-05-29 Jan Hubicka <jh@suse.cz>
6753 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
6755 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6758 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
6760 2010-05-29 Jan Hubicka <jh@suse.cz>
6762 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
6763 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
6764 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
6765 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
6766 debug_names_replaced_by, debug_update_ssa): Likewise.
6767 * sbitmap.c (debug_sbitmap): Likewise.
6768 * genrecog.c (debug_decision, debug_decision_list): Likewise.
6769 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
6770 debug_tree_chain): Likewise.
6771 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
6772 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
6773 * optabs.c (debug_optab_libfuncs): Likewise.
6774 (verify_loop_closed_ssa): Likewise.
6775 * value-prof.c (verify_histograms): Likewise.
6776 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
6777 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
6778 * cfghooks.c (verify_flow_info): Likewise.
6779 * fold-const.c (debug_fold_checksum): Likewise.
6780 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
6781 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
6783 * omega.c (debug_omega_problem): Likewise.
6784 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
6785 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
6786 * dominance.c (verify_dominators, debug_dominance_info,
6787 debug_dominance_tree): Likewise.
6788 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
6789 * df_regno_debug, df_ref_debug,
6790 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
6791 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
6792 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
6793 * sel-sched.c (debug_state): Likewise.
6794 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
6796 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
6797 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
6798 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
6799 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
6801 * c-pretty-print.c (debug_c_tree): Likewise.
6802 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
6803 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
6804 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
6805 * ebitmap.c (debug_ebitmap): Likewise.
6806 * function.c (debug_find_var_in_block_tree): Likewise.
6807 * print-rtl.c (debug_rtx): Likewise.
6808 (debug_rtx_count): Likewise.
6809 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
6810 * stor-layout.c (debug_rli): Likewise.
6811 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
6812 * tree-data-ref.c (debug_data_references,
6813 debug_data_dependence_relations, debug_data_reference,
6814 debug_data_dependence_relation, debug_rdg_vertex,
6815 debug_rdg_component, debug_rdg): Likewise.
6816 * tree-affine.c (debug_aff): Likewise.
6817 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
6819 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
6820 * emit-rtl.c (verify_rtl_sharing): Likewise.
6821 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
6822 debug_value_expressions): Likewise.
6823 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
6824 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
6825 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
6826 * cfglayout.c (verify_insn_chain): Likewise.
6827 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
6828 debug_clast_stmt, debug_generated_program): Likewise.
6829 * ggc-page.c (debug_print_page_list): Likewise.
6830 * tree-ssa-ter.c (debug_ter): Likewise.
6831 * graphite-dependences.c (debug_pddr): Likewise.
6832 * sched-deps.c (debug_ds): Likewise.
6833 * tree-ssa.c (verify_ssa): Likewise.
6834 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
6835 debug_scattering_functions, debug_iteration_domains, debug_pdr,
6836 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
6837 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
6838 * tree-inline.c (debug_find_tree): Likewise.
6839 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
6840 debug_ppl_powerset_matrix): Likewise.
6841 * var-tracking.c (debug_dv): Likewise.
6842 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
6843 * cfgloop.c (verify_loop_structure): Likewise.
6844 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
6845 * c-common.c (verify_sequence_points): Likewise.
6846 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
6847 debug_candidates, debug_rgn_dependencies): Likewise.
6848 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
6849 * debug_constraint_graph, debug_solution_for_var,
6850 debug_sa_points_to_info): Likewise.
6851 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
6853 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
6854 debug_loops, debug_loop, debug_loop_num): Likewise.
6855 * passes.c (debug_pass): Likewise.
6856 (dump_properties): Likewise; add cfglayout property.
6857 (debug_properties): Likewise.
6858 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
6859 * varpool.c (debug_varpool): Likewise.
6860 * regcprop.c (debug_value_data): Likewise.
6861 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
6862 debug_immediate_uses_for): Likewise.
6864 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
6867 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
6868 Filter out insn-flags.h.
6870 2010-05-29 Jan Hubicka <jh@suse.cz>
6872 * cgraph.h (struct varpool_node_set_def,
6873 struct cgraph_node_set_def): Remove unused AUX pointer.
6874 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
6877 2010-05-29 Jan Hubicka <jh@suse.cz>
6880 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
6882 2010-05-29 Richard Guenther <rguenther@suse.de>
6884 * lto-streamer.c (cached_bp): New global variable.
6885 (bitpack_create): Return the cached bitpack, if available.
6886 (bitpack_delete): Clear and cache the bitpack, if appropriate.
6887 (bp_pack_value): Remove redundant asserts.
6889 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
6892 * tree-if-conv.c (is_true_predicate): New.
6893 (is_predicated): Use is_true_predicate.
6894 (add_to_predicate_list): Same. Do not use unshare_expr.
6895 (add_to_dst_predicate_list): Same.
6897 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
6899 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
6901 (predicate_bbs): Same.
6902 (clean_predicate_lists): Same.
6903 (find_phi_replacement_condition): Do not AND the predicate from
6906 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
6909 * Makefile.in (build/gencondmd.o): Add a missing `\'.
6911 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6914 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
6915 (negdf2): Adjust expander pattern and use negdf2_slow.
6918 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
6920 * basic-block.h (struct control_flow_graph): Move last_label_uid field
6922 * df.h (struct df_base_ref): Move regno field up.
6923 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
6924 * expr.h (struct separate_ops): Move location field up.
6925 * optabs.h (struct optab_d): Move libcall_basename field down.
6926 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
6927 * config/i386/i386.h (struct machine_function): Convert call_abi field
6928 into a bitfield. Move cfa field to the end of the structure.
6930 2010-05-29 Jan Hubicka <jh@suse.cz>
6932 * varpool.c (varpool_get_node): Fix lookup.
6934 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6936 * config/spu/spu-protos.h: Do not include rtl.h. Protect
6937 RTL specific prototypes with #ifdef RTX_CODE.
6938 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
6939 * config/spu/t-spu-elf: Fix dependencies.
6941 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
6943 2010-05-29 Mike Stump <mikestump@comcast.net>
6946 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
6947 TM_H when building to avoid dependency loops.
6949 2010-05-29 Jan Hubicka <jh@suse.cz>
6951 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
6952 refs and body; not the whole node for masters of materialized clones.
6954 2010-05-29 Mike Stump <mikestump@comcast.net>
6956 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
6958 2010-05-29 Jan Hubicka <jh@suse.cz>
6960 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
6961 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
6962 use of clone_function_name.
6963 * cgraph.h (cgraph_create_virtual_clone,
6964 cgraph_function_versioning): update prototypes.
6965 (clone_function_name): Declare.
6966 * ipa-cp.c (ipcp_insert_stage): Update call of
6967 cgraph_create_virtual_clone.
6968 * omp-low.c (create_omp_child_function_name): Use
6969 cgraph_create_virtual_clone.
6970 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
6971 (cgraph_function_versioning): Take SUFFIX argument; produce new name
6972 and make decl local.
6974 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6976 * vec.h: Include statistics.h
6977 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
6980 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6982 * c-lex.c: Do not include c-tree.h.
6983 * c-pretty-print.c: Likewise.
6984 * c-opts.c: Likewise.
6985 * c-gimplify.c: Likewise.
6986 * c-common.c: Likewise.
6987 * c-dump.c: Likewise. Include c-common.h.
6989 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6991 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
6992 before including diagnostic-core.h.
6993 (c_cpp_error): New prototype moved from c-tree.h.
6994 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
6995 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
6996 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
6997 (c_cpp_error): Prototype moved to c-common.h.
6998 * Makefile.in: Update dependency for C_COMMON_H.
7000 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7002 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
7003 * c-common.c (c_register_addr_space): Remove here.
7004 * c-decl.c (c_register_addr_space): Re-add here.
7006 2010-05-28 Mike Stump <mikestump@comcast.net>
7008 * config/darwin-c.c: Remove c-tree.h include.
7010 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7012 * gcc.c: Include diagnostic.h.
7013 (error_count): Remove. All users changed to use errorcount.
7014 (programname): Remove. All users changed to use progname.
7015 (fancy_abort, internal_error, fatal_error, error, warning, inform,
7017 (execute): Don't include "Internal error" and bug reporting
7018 information in argument of internal_error call.
7019 (process_command): Don't increment error_count after calling
7021 (input_filename): Rename to gcc_input_filename. All users
7023 (main): Call diagnostic_initialize. Register delete_temp_files
7024 with atexit. Use seen_error to test for errors.
7025 * gcc.h: Include diagnostic-core.h.
7026 (fatal_error, error, warning): Remove.
7027 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
7028 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
7029 (gcc.o): Update dependencies.
7031 2010-05-28 Jeff Law <law@redhat.com>
7033 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
7035 * ira.h (ira_bad_reload_regno): Declare
7036 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
7038 * ira-color.c (update_curr_costs): Free updated hard reg costs.
7039 (ira_reassign_conflict_allocnos): Remove bogus asserts.
7040 (allocno_reload_assign): Likewise.
7042 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
7044 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
7047 2010-05-28 Richard Guenther <rguenther@suse.de>
7050 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
7051 Stream fixed-point constants mode.
7052 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
7054 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
7055 Stream fixed-point constants mode.
7056 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
7059 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
7061 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
7062 only place it was called from.
7063 (number_of_latch_executions): Do not return chrec_dont_know when the
7064 may_be_zero is a runtime condition: instead, return a COND_EXPR
7065 including the may_be_zero condition.
7066 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
7068 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
7071 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
7073 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
7074 generate COND_EXPRs for degenerate_phi_result.
7076 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
7079 * tree-if-conv.c (if_convertible_loop_p): Check the
7080 if-convertibility of phi nodes in non predicated BBs.
7082 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7084 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
7086 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7089 * gcc.c (inform, warning, inform): New functions.
7090 (fatal_ice): Rename to internal_error; change cmsgid parameter to
7091 gmsgid. All callers changed.
7092 (notice): Rename to fnotice; add parameter fp. All callers changed.
7093 (fatal_error): Rename to fatal_signal. All users changed.
7094 (fatal): Rename to fatal_error; change cmsgid parameter to
7095 gmsgid. All callers changed.
7096 (process_command): Use warning instead of error for warnings.
7097 (end_going_arg): Don't use _() around argument of error.
7098 (do_spec_1): Use inform for message from %n specs. Use warning
7099 instead of error for warnings.
7100 (main): Use inform for comparison messages. Use warning for
7101 message about unused linker input.
7102 (error): Increment error_count. Print "error: ".
7103 * gcc.h (fatal): Change to fatal_error.
7105 * config/darwin-driver.c (darwin_default_min_version): Use warning
7106 instead of fprintf for warnings.
7107 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
7109 2010-05-28 Julian Brown <julian@codesourcery.com>
7111 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
7112 (*thumb2_addsi3_compare0_scratch): New.
7113 * config/arm/constraints.md (Pv): New.
7114 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
7116 (*addsi3_compare0_scratch): Likewise.
7118 2010-05-28 Jan Hubicka <jh@suse.cz>
7120 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
7122 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
7123 only on local statics.
7125 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
7127 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
7129 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
7132 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
7133 (OPTION_GLIBC): Define.
7135 2010-05-28 Jakub Jelinek <jakub@redhat.com>
7138 * dwarf2out.c (double_int_type_size_in_bits): New function.
7139 (round_up_to_align): Change first argument and return value to
7141 (field_byte_offset): Work internally on double_ints.
7144 * builtins.c (expand_movstr): Use a temporary pseudo instead
7145 of target even when target is not NULL and not const0_rtx, but
7146 fails movstr predicate.
7147 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
7149 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7151 * final.c (rest_of_clean_state): Use %m in errors instead of
7153 * gengtype.c (read_input_list, close_output_files): Use xstrerror
7154 instead of strerror.
7155 * toplev.c (process_options): Use %m in errors instead of strerror
7157 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
7160 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
7162 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
7163 (ix86_canonical_va_list_type): Make static. Add declaration.
7164 (ix86_enum_va_list): Make static. Reindent.
7165 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
7166 (ix86_canonical_va_list_type): Ditto.
7167 (ix86_enum_va_list): Ditto.
7169 2010-05-28 Richard Guenther <rguenther@suse.de>
7171 * lto-wrapper.c (run_gcc): With -save-temps generate a
7172 user-visible ltrans filename. Fixup ltrans unit numbering.
7174 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
7176 * c-common.c (c_common_nodes_and_builtins): Replace use
7177 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
7178 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
7179 to ix86_enum_va_list.
7180 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
7181 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
7182 (TARGET_ENUM_VA_LIST_P): Add hook description.
7183 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
7184 * target.h (gcc_target): Add enum_va_list hook.
7187 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
7188 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
7189 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
7191 2010-05-28 Alan Modra <amodra@gmail.com>
7194 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
7195 emit_library_call machinery to set up __tls_get_addr calls.
7197 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7199 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
7201 2010-05-28 Dodji Seketeli <dodji@redhat.com>
7203 Revert fix for PR c++/44188
7204 * c-common.c (is_typedef_decl): Revert the moving of this
7206 * tree.c (is_typedef_decl): ... here.
7207 (typdef_variant_p): Revert the moving of this definition
7208 here from gcc/cp/tree.c.
7209 * c-common.h (is_typedef_decl): Revert the moving of this
7211 * tree.h (is_typedef_decl): ... here.
7212 (typedef_variant_p): Revert the moving of this declaration here
7213 from gcc/cp/cp-tree.h
7214 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
7215 (gen_tagged_type_die): Revert the splitting out of ...
7216 (gen_type_die_with_usage): ... this function. Revert the anonymous
7217 tagged type handling.
7218 (gen_typedef_die): Revert emitting DW_TAG_typedef for
7219 typedefs naming anonymous tagged types.
7221 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
7223 * config/rs6000/rs6000-modes.def (PSImode): Delete.
7225 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
7227 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
7228 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
7230 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
7232 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
7233 XER_REGS to CA_REGS throughout.
7234 * config/rs6000/rs6000.h: Same.
7235 (ADDITIONAL_REGISTER_NAMES): Add "xer".
7236 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
7237 that mode_iterator "P" is the size for arithmetic carries as well.
7238 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
7240 2010-05-28 Jakub Jelinek <jakub@redhat.com>
7243 * combine.c (struct rtx_subst_pair): Define unconditionally.
7244 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
7245 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
7246 Call make_compound_operation on pair->to.
7247 (propagate_for_debug): Don't call make_compound_operation here.
7248 Always use simplify_replace_fn_rtx.
7250 2010-05-27 Sterling Augustine <sterling@tensilica.com>
7252 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
7253 * config/xtensa/xtensa.c (override_options): Check
7254 TARGET_FORCE_NO_PIC and set flag_pic.
7255 * config/xtensa/xtensa.opt: Document -mforce-no-pic
7257 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
7260 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
7261 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
7263 2010-05-27 Joseph Myers <joseph@codesourcery.com>
7265 * diagnostic-core.h: New. Contents moved from diagnostic.h and
7267 * diagnostic.c: Don't include toplev.h.
7268 (progname): Define. Moved from toplev.c.
7269 (seen_error): New function.
7270 * diagnostic.h: Include diagnostic-core.h.
7271 (diagnostic_t, emit_diagnostic): Don't declare here.
7272 * toplev.c (progname): Move to toplev.c.
7273 (emit_debug_global_declarations, compile_file, finalize,
7274 do_compile, toplev_main): Use seen_error.
7275 * toplev.h: Include diagnostic-core.h.
7276 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
7277 internal_error, warning, warning_at, error, error_n, error_at,
7278 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
7279 verbatim, fnotice, progname): Move to diagnostic-core.h.
7280 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
7281 (expand_builtin_expect): Use seen_error.
7282 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
7283 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
7284 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
7285 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
7286 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
7287 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
7288 errorcount for errors.
7289 * c-opts.c (c_common_finish): Use seen_error.
7290 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
7291 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
7292 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
7293 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
7294 (get_coverage_counts): Use seen_error.
7295 * dwarf2out.c (dwarf2out_finish): Use seen_error.
7296 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
7297 gimplify_body): Use seen_error.
7298 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
7299 * ipa-pure-const.c (gate_pure_const): Use seen_error.
7300 * ipa-reference.c (gate_reference): Use seen_error.
7301 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
7302 * lambda-code.c: Include diagnostic-core.h instead of
7304 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
7305 * lto-compress.c: Include diagnostic-core.h instead of
7307 * lto-section-in.c: Include diagnostic-core.h instead of
7309 * lto-streamer-out.c: Include diagnostic-core.h instead of
7311 * lto-streamer.c: Include diagnostic-core.h instead of
7313 (gate_lto_out): Use seen_error.
7314 * matrix-reorg.c: Include diagnostic-core.h instead of
7316 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
7317 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
7318 (gate_expand_omp, lower_omp_1): Use seen_error.
7319 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
7320 (rest_of_decl_compilation, rest_of_type_compilation,
7321 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
7322 * tree-cfg.c (label_to_block_fn): Use seen_error.
7323 * tree-inline.c (optimize_inline_calls): Use seen_error.
7324 * tree-mudflap.c (mudflap_finish_file): Use
7326 * tree-optimize.c (gate_all_optimizations,
7327 gate_all_early_local_passes, gate_all_early_optimizations): Use
7329 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
7330 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
7331 (varpool_remove_unreferenced_decls,
7332 varpool_assemble_pending_decls): Use seen_error.
7333 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
7334 (TOPLEV_H, DIAGNOSTIC_H): Update.
7335 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
7336 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
7337 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
7338 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
7339 coverage.o, lambda-code.o): Update dependencies.
7341 2010-05-25 Dodji Seketeli <dodji@redhat.com>
7344 * c-common.c (is_typedef_decl): Move this definition ...
7345 * tree.c (is_typedef_decl): ... here.
7346 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
7347 * c-common.h (is_typedef_decl): Move this declaration ...
7348 * tree.h (is_typedef_decl): ... here.
7349 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
7350 * dwarf2out.c (is_naming_typedef_decl): New function.
7351 (gen_tagged_type_die): Split out of ...
7352 (gen_type_die_with_usage): ... this function. When an anonymous
7353 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
7354 is emitted for the typedef.
7355 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
7356 anonymous tagged types.
7358 2010-05-27 Jason Merrill <jason@redhat.com>
7360 * print-tree.c (debug_vec_tree): New fn.
7361 (print_vec_tree): New fn.
7362 * tree.h: Declare them.
7363 * gdbinit.in (pvt): New command.
7365 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
7367 * gdbinit.in (pdd): New command.
7369 2010-05-27 Jan Hubicka <jh@suse.cz>
7371 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
7372 (update_caller_keys): Return early if there are no callers;
7373 only update fibheap when decresing the key.
7374 (update_callee_keys): Avoid recursion.
7375 (decide_inlining_of_small_functions): When badness does not match;
7376 re-insert into fibheap.
7378 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
7380 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
7381 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
7382 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
7383 (ALL_HOST_OBJS): Now a union of the above two.
7384 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
7385 all files in ALL_HOST_FRONTEND_OBJS.
7386 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
7388 * c-common.c: Pretend to be a backend file by undefining
7389 IN_GCC_FRONTEND (still need rtl.h here).
7391 2010-05-27 Jan Hubicka <jh@suse.cz>
7393 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
7394 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
7396 2010-05-27 Jan Hubicka <jh@suse.cz>
7398 * sched-ebb.c: Rename struct deps to struct deps_desc.
7400 * sel-sched-ir.c: Likewise.
7401 * sched-deps.c: Likewise.
7402 * sched-int.h: Likewise.
7403 * sched-rgn.c: Likewise.
7405 2010-05-27 Jon Beniston <jon@beniston.com>
7408 * config/lm32/lm32.h: Remove definition of
7409 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
7411 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
7414 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
7416 2010-05-27 Richard Guenther <rguenther@suse.de>
7418 PR tree-optimization/44284
7419 * tree-vect-stmts.c (vectorizable_assignment): Handle
7420 sign-changing conversions as simple copy.
7422 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7424 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
7426 (__gthread_active_p): Check for pthread_create if compiling against
7429 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7431 Support compilation for Android platform. Reimplement -mandroid.
7433 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
7434 (*android*): Set ANDROID_DEFAULT.
7435 (arm*-*-linux*): Include linux-android.h.
7436 (arm*-*-eabi*): Don't include previous -mandroid implementation.
7437 * config/arm/eabi.h: Remove, move Android-specific parts ...
7438 * config/linux-android.h: ... here. New file.
7439 * config/arm/eabi.opt: Rename to ...
7440 * config/linux-android.opt: ... this.
7441 (mandroid): Allow -mno-android option. Initialize based on
7443 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
7444 Move logic to corresponding LINUX_TARGET_* macros.
7445 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
7446 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
7447 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
7448 Android definitions.
7449 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
7450 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
7453 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7455 Add support for Bionic C library
7457 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
7459 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
7460 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
7462 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
7463 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
7464 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
7465 to support multiple C libraries. Handle Bionic.
7466 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
7467 (BIONIC_DYNAMIC_LINKER64): Define.
7468 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
7470 (TARGET_HAS_SINCOS): Enable for Bionic.
7472 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
7473 the last option specified on command line take effect.
7474 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
7476 (mglibc, muclibc): Update.
7478 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
7479 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
7482 * doc/invoke.texi (-mglibc, -muclibc): Update.
7483 (-mbionic): Document.
7485 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7487 * c-common.h (c_register_addr_space): Add prototype.
7488 (ADDR_SPACE_KEYWORD): Remove.
7489 * c-common.c (c_register_addr_space): New function.
7490 (c_addr_space_name): Reimplement.
7491 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
7493 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
7494 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
7496 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
7497 Remove TARGET_ADDR_SPACE_KEYWORDS.
7499 2010-05-27 Joseph Myers <joseph@codesourcery.com>
7501 * input.c: New file.
7502 * input.h (main_input_filename): Move declaration to toplev.h.
7503 * toplev.c (input_location, line_table): Move to input.c
7504 * toplev.h (main_input_filename): Move declaration from input.h.
7505 * tree.c (expand_location): Move to input.c.
7506 * Makefile.in (OBJS-common): Add input.o.
7507 (input.o): Add dependencies.
7509 2010-05-27 Richard Guenther <rguenther@suse.de>
7511 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
7512 for non-existant files.
7513 (fork_execute): Mark args_name file as deleted.
7515 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
7518 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
7519 (narrow_signed_type): Likewise.
7521 2010-05-26 Jan Hubicka <jh@suse.cz>
7523 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
7524 edge only when checking is enabled; check using former_clone_of;
7525 check inline clones too.
7526 (cgraph_materialize_clone): Record former_clone_of pointer.
7527 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
7528 combining redirections; dump args_to_skip bitmap
7529 (cgraph_materialize_all_clones): Do no redirection here.
7530 * ipa-inline.c (inline_transform): Do redirection here.
7531 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
7534 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7536 * config/avr/avr-c.c: Do not include regs.h.
7537 Include cpplib.h for cpp_define and tree.h for c-common.h.
7538 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
7539 * config/avr/t-avr: Fix dependencies for avr-c.o.
7541 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7543 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
7544 string instead of SYMBOL_REF rtx.
7545 * rtl.h (set_stack_check_libfunc): Move prototype from here...
7546 * libfuncs.h: ...to here. Adjust for explow.c change.
7548 2010-05-26 Joseph Myers <joseph@codesourcery.com>
7550 * pretty-print.c: Don't include ggc.h.
7551 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
7552 (identifier_to_locale): Use them for allocation.
7553 * pretty-print.h (identifier_to_locale_alloc,
7554 identifier_to_locale_free): Declare.
7555 * toplev.c (alloc_for_identifier_to_locale): New.
7556 (general_init): Set identifier_to_locale_alloc and
7557 identifier_to_locale_free.
7558 * Makefile.in (pretty-print.o): Update dependencies.
7560 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
7562 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
7563 pointer types if they have different alignment or mode.
7565 2010-05-26 Anatoly Sokolov <aesok@post.ru>
7567 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7568 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7569 * config/sparc/sparc-protos.h (function_value): Remove declaration.
7570 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
7571 sparc_function_value_regno_p): New functions.
7572 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7573 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7574 (function_value): Rename to...
7575 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
7576 argument to 'outgoing'.
7577 (function_arg_record_value, function_arg_union_value,
7578 function_arg_vector_value): Update comment.
7580 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
7582 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
7583 (fde_needed_for_eh_p): New predicate.
7584 (output_call_frame_info): Use it throughout to decide whether FDEs
7585 are needed for EH purpose.
7586 (dwarf2out_begin_prologue): Reorder assignments.
7588 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7590 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
7591 special case loop->header.
7592 (is_predicated): New.
7593 (if_convertible_loop_p): Call it.
7595 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7597 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
7598 iterator in parameter. Do not generate code during the analysis.
7599 (tree_if_convert_cond_stmt): Removed.
7600 (tree_if_convert_stmt): Removed.
7601 (predicate_bbs): New.
7602 (if_convertible_loop_p): Call predicate_bbs.
7603 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
7604 now contains all the analysis part.
7606 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7608 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
7609 statements in the analysis part.
7610 (tree_if_convert_stmt): Update comment.
7611 (remove_conditions_and_labels): New.
7612 (combine_blocks): Call remove_conditions_and_labels.
7613 (tree_if_conversion): Update comment.
7615 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7617 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
7618 than 2 predecessors or more than 2 successors.
7620 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7622 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
7623 of loops in which the data dependence analysis fails.
7625 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7627 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
7628 CDI_POST_DOMINATORS.
7629 (tree_if_conversion): Same.
7631 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7633 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
7635 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7637 * tree-if-conv.c: Update copyright years. Fix comments.
7640 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
7642 * builtin-types.def (BT_INT128): New primitive type.
7643 (BT_UINT128): Likewise.
7644 * c-common.c (c_common_r): Add __int128 keyword.
7645 (c_common_type_for_size): Handle __int128.
7646 (c_common_type_for_mode): Likewise.
7647 (c_common_signed_or_unsigned_type): Likewise.
7648 (c_common_nodes_and_builtins): Add builtin type
7649 if target supports 128-bit integer scalar.
7650 * c-common.h (enum rid): Add RID_INT128.
7651 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
7652 if target supports 128-bit integer scalar.
7653 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
7654 (finish_declspecs): Likewise.
7655 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
7656 (c_token_starts_declspecs): Likewise.
7657 (c_parser_declspecs): Likewise.
7658 (c_parser_attributes): Likewise.
7659 (c_parser_objc_selector): Likewise.
7660 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
7661 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
7662 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
7663 * tree.c (make_or_reuse_type): Likewise.
7664 (make_unsigned_type): Likewise.
7665 (build_common_tree_nodes_2): Likewise.
7666 * tree.h (enum integer_type_kind): Add itk_int128 and
7667 itk_unsigned_int128.
7668 (int128_integer_type_node): New define.
7669 (int128_unsigned_type_node): New define.
7670 * doc/extend.texi: Add documentation about __int128 type.
7672 2010-05-26 Richard Guenther <rguenther@suse.de>
7674 * tree-ssa-sccvn.c (copy_nary): Adjust.
7675 (copy_phis): Rename to ...
7676 (copy_phi): ... this. Adjust.
7677 (copy_references): Rename to ...
7678 (copy_reference): ... this. Adjust.
7679 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
7680 result into the valid table.
7682 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7684 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
7685 insn-config.h, insn-codes.h, recog.h, and optabs.h.
7687 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7689 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
7691 2010-05-26 Richard Guenther <rguenther@suse.de>
7693 * opts.c (common_handle_option): Handle OPT_Ofast.
7695 2010-05-26 Joseph Myers <joseph@codesourcery.com>
7697 * diagnostic.c: Don't include opts.h.
7698 (permissive_error_option): Define.
7699 (diagnostic_initialize): Take n_opts parameter. Allocate memory
7700 for classify_diagnostic. Don't use memset for
7701 classify_diagnostic. Initialize new and recently added fields.
7702 (diagnostic_classify_diagnostic): Use context->n_opts instead of
7704 (diagnostic_report_diagnostic): Pass context parameter to
7705 diagnostic_report_warnings_p. Use option_enabled and option_name
7707 (emit_diagnostic): Use permissive_error_option.
7708 (permerror): Likewise.
7709 * diagnostic.h: Don't include options.h.
7710 (struct diagnostic_context): Add n_opts, opt_permissive,
7711 inhibit_warnings, warn_system_headers, option_enabled and
7712 option_name fields. Change classify_diagnostic to a pointer.
7713 * opts-diagnostic.h: New file.
7714 * opts.c: Include opts-diagnostic.h.
7715 (common_handle_option): Set global_dc fields for -Wfatal-errors,
7716 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
7717 (option_name): New function.
7718 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
7719 (c_common_handle_option): Set global_dc->permissive for
7721 * c-common.c (c_cpp_error): Save and restore
7722 global_dc->warn_system_headers, not variable warn_system_headers.
7723 * toplev.c: Include opts-diagnostic.h.
7724 (general_init): Update call to diagnostic_initialize. Set
7725 global_dc->show_column, global_dc->option_enabled and
7726 global_dc->option_name.
7727 (process_options): Don't set global_dc fields here.
7728 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
7729 (diagnostic.o, opts.o, toplev.o): Update dependencies.
7731 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
7733 * config/picochip/picochip.md (movsi): Split a movsi from a
7736 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7738 * ggc-zone.c: Update copyright year.
7739 (poison_region): Mark memory for Valgrind as undefined before
7740 memset () call and inaccessible afterwards.
7741 (ggc_pch_total_size): Change type of i to int.
7743 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7745 * ggc-common.c (ggc_free_overhead): Allow empty slot.
7747 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7749 * ggc-common.c: Update copyright year.
7750 (ggc_rlimit_bound): Remove prototype. Compile only if
7751 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
7752 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
7753 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
7754 (ggc_min_heapsize_heuristic): Likewise.
7756 2010-05-26 Richard Guenther <rguenther@suse.de>
7758 PR rtl-optimization/44164
7759 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
7760 no-common access-path disambiguation.
7761 (indirect_ref_may_alias_decl_p): Adjust.
7762 (indirect_refs_may_alias_p): Likewise.
7763 (refs_may_alias_p_1): Likewise.
7765 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7767 * c-typeck.c: Do not include expr.h.
7769 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7771 * rtl.h (decl_default_tls_model): Move prototype from here...
7772 * output.h: ...to here.
7773 * c-decl.c: Do not include rtl.h.
7774 * c-pragma.c: Likewise.
7775 * c-parser.c: Likewise.
7776 * c-gimplify.c: Likewise. And also not hard-reg-set.
7777 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
7778 FIXME note for it. Add a FIXME note for expr.h.
7779 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
7780 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
7783 2010-05-26 Jakub Jelinek <jakub@redhat.com>
7786 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
7787 or total_size is larger than red zone size for non-V4 ABI, emit a
7788 stack_tie resp. frame_tie insn before stack pointer restore.
7789 * config/rs6000/rs6000.md (frame_tie): New insn.
7791 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
7793 * function.h (struct function): Add can_throw_non_call_exceptions bit.
7794 * lto-streamer-in.c (input_function): Stream it in.
7795 * lto-streamer-out.c (output_function): Stream it out.
7796 * function.c (allocate_struct_function): Set it.
7797 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
7798 for flag_non_call_exceptions.
7799 * cfgbuild.c (control_flow_insn_p): Likewise.
7800 (make_edges): Likewise.
7801 * cfgexpand.c (expand_stack_alignment): Likewise.
7802 * combine.c (distribute_notes): Likewise.
7803 * cse.c (cse_extended_basic_block): Likewise.
7804 * except.c (insn_could_throw_p): Likewise.
7805 * gcse.c (simple_mem): Likewise.
7806 * ipa-pure-const.c (check_call): Likewise.
7807 (check_stmt ): Likewise.
7808 * lower-subreg.c (lower-subreg.c): Likewise.
7809 * optabs.c (emit_libcall_block): Likewise.
7810 (prepare_cmp_insn): Likewise.
7811 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
7812 * postreload.c (rest_of_handle_postreload): Likewise.
7813 * reload1.c (reload_as_needed): Likewise.
7814 (emit_input_reload_insns): Likewise.
7815 (emit_output_reload_insns): Likewise.
7816 (fixup_abnormal_edges): Likewise.
7817 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
7818 * store-motion.c (find_moveable_store): Likewise.
7819 * tree-eh.c (stmt_could_throw_p): Likewise.
7820 (tree_could_throw_p): Likewise.
7821 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7822 * config/arm/arm.c (arm_expand_prologue): Likewise.
7823 (thumb1_expand_prologue): Likewise.
7824 * config/rx/rx.md (cbranchsf4): Likewise.
7826 * config/s390/s390.c (s390_emit_prologue): Likewise.
7827 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
7828 (inline_forbidden_into_p): New predicate.
7829 (expand_call_inline): Use it to forbid inlining.
7830 (tree_can_inline_p): Likewise.
7832 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
7834 * config/i386/i386-c.c: Do not include rtl.h.
7835 * config/i386/t-i386: Update dependencies.
7837 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
7839 * attribs.c: Do not include rtl.h.
7840 * Makefile.in: Update dependencies.
7842 2010-05-25 Anatoly Sokolov <aesok@post.ru>
7844 * double-int.h (double_int_and): New.
7845 * combine.c (try_combine): Clean up, use double_int_* and
7846 immed_double_int_const functions.
7848 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7850 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
7851 stderr to /dev/null instead of grep -q.
7852 * configure: Regenerate.
7854 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
7856 * Makefile.in (EXCEPT_H): Fix typo.
7858 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
7860 * ira-build.c (update_conflict_hard_reg_costs): New.
7861 (ira_build): Call update_conflict_hard_reg_costs.
7863 2010-05-25 Jakub Jelinek <jakub@redhat.com>
7866 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
7868 (intersect_loc_chains): Walk the s2var's loc_chain together
7869 with s1node chain as long as the locations are equal, don't
7870 call find_loc_in_1pdv in that case.
7873 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
7874 (copy_bind_expr): ... instead of here.
7875 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
7876 if the block hasn't been remapped.
7877 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
7878 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
7880 2010-05-25 Richard Guenther <rguenther@suse.de>
7883 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
7884 out-of-bounds array accesses.
7886 2010-05-25 Richard Guenther <rguenther@suse.de>
7888 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
7889 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
7890 (run_gcc): Re-organize to make cleanup easier.
7892 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7894 * config/s390/s390.c (optimization_options): Fix and move the
7895 flag_prefetch_loop_arrays override ...
7896 (override_options): ... here.
7898 2010-05-25 Joseph Myers <joseph@codesourcery.com>
7900 * diagnostic.c: Don't include plugin.h.
7901 (diagnostic_report_diagnostic): Don't handle plugins specially
7902 here. Pass context to internal_error callback.
7903 * diagnostic.h (struct diagnostic_context): Add context parameter
7904 to internal_error callback.
7905 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
7906 * plugin.h (struct diagnostic_context): Declare.
7907 (warn_if_plugins, plugins_internal_error_function): Declare.
7908 * toplev.c (general_init): Set global_dc->internal_error.
7909 * Makefile.in (diagnostic.o): Update dependencies.
7911 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
7913 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
7914 * config/rs6000/t-darwin64: New.
7915 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
7918 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
7921 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
7922 match the original (and intended) behaviour before r159557. This
7923 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
7926 2010-05-25 Richard Guenther <rguenther@suse.de>
7928 * doc/invoke.texi: Document -Ofast.
7929 * target.h (struct gcc_target): Add handle_ofast.
7930 * target-def.h (TARGET_HANDLE_OFAST): Add.
7931 (TARGET_INITIALIZER): Adjust.
7932 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
7933 * common.opt (Ofast): Add.
7935 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
7937 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
7938 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
7940 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
7943 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
7944 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
7945 false_rtx. Use false_rtx to compute the correct *ptest for reversed
7946 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
7948 2010-05-25 Jakub Jelinek <jakub@redhat.com>
7950 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
7951 DW_OP_minus with negated offset instead of DW_OP_plus.
7952 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
7954 2010-05-25 Wei Guozhi <carrot@google.com>
7956 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
7957 tst instruction and a new alternative.
7958 * config/arm/constraints.md (Pu): New constraint.
7960 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
7962 * function.c (assign_stack_local_1): Initialize variable
7963 to avoid warning when bootstrapping at -O3.
7965 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
7967 * configure.ac (all_lang_makefiles): Remove everything related to it.
7968 * configure: Regenerate.
7969 * Makefile.in: Fix reference to ada Make-lang.in.
7970 Remove support for LANG_MAKEFILES.
7972 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
7973 Sandra Loosemore <sandra@codesourcery.com>
7975 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
7976 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
7977 description. Add arm_neon_fp16_ok.
7978 (Add Options): Add arm_neon and arm_neon_fp16.
7980 2010-05-24 Joseph Myers <joseph@codesourcery.com>
7982 * diagnostic.c: Don't include flags.h.
7983 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
7984 context parameters. Check flags in the context passed as a parameter.
7985 (diagnostic_build_prefix): Add context parameter. Check
7986 show_column flag in context.
7987 (diagnostic_action_after_output): Check fatal_errors flag in context.
7988 (diagnostic_report_current_module): Check show_column flag in context.
7989 (default_diagnostic_starter): Update call to
7990 diagnostic_build_prefix.
7991 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
7992 (emit_diagnostic): Pass context to permissive_error_kind.
7993 (permerror): Pass context to permissive_error_kind.
7994 * diagnostic.h (struct diagnostic_context): Add show_column,
7995 pedantic_errors, permissive and fatal_errors fields.
7996 (diagnostic_build_prefix): Update prototype.
7998 * toplev.c (process_options): Set flags in global_dc from
7999 flag_show_column, flag_pedantic_errors, flag_permissive,
8001 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
8002 to diagnostic_build_prefix.
8003 * Makefile.in (diagnostic.o): Update dependencies.
8005 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
8007 * config/i386/ia32intrin.h (__crc32q): Define only if
8008 __SSE4_2__ is defined.
8010 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
8014 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
8015 DECL_VISIBILITY_SPECIFIED.
8016 (emutls_decl): Set DECL_PRESERVE_P and copy
8017 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
8018 (emutls_finalize_control_var): New callback.
8019 (emutls_finish): Finalize emutls control variables.
8020 * toplev.c (compile_file): Move the call to emutls_finish ()
8021 before varpool_assemble_pending_decls ().
8023 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
8025 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
8026 added to the preprocessor condition.
8028 2010-05-24 Paul Brook <paul@codesourcery.com>
8030 * gengtype-lex.l: Add HARD_REG_SET.
8031 * expr.c (expand_expr_real_1): Record writes to hard registers.
8032 * function.c (rtl_data): Add asm_clobbers.
8033 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
8034 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
8035 Use crtl->asm_clobbers.
8037 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8039 * doc/makefile.texi (Makefile): Mention stages 'profile'
8040 and 'feedback' for profiledbootstrap.
8042 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
8045 * config/i386/i386.c (def_builtin): Properly check
8046 OPTION_MASK_ISA_64BIT.
8048 2010-05-23 Joseph Myers <joseph@codesourcery.com>
8050 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
8051 typedefs with different but compatible types. Allow duplicate
8052 typedefs with the same type except for pedantic non-C1X, but give
8053 warning for variably modified types.
8054 * c-typeck.c (tagged_types_tu_compatible_p,
8055 function_types_compatible_p, type_lists_compatible_p,
8056 comptypes_internal): Add parameter different_types_p; set
8057 *different_types_p for different but compatible types. All
8059 (comptypes_check_different_types): New.
8060 * c-tree.h (comptypes_check_different_types): Declare.
8062 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
8064 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
8065 * jump.c: Include basic-block.h.
8066 * profile.c: Likewise.
8067 * tree-profile.c: Likewise.
8068 * coverage.c: Likewise.
8069 * basic-block.h (optimize_function_for_size_p): Move to function.h.
8070 (optimize_function_for_speed_p): Likewise.
8071 * function.h (optimize_function_for_size_p,
8072 optimize_function_for_speed_p): Moved here from basic-block.h.
8073 * Makefile.in: Update dependencies.
8075 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8077 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
8078 before calling make; allow override through $MAKE.
8079 * doc/invoke.texi (Optimize Options): Document override.
8081 2010-05-23 Anatoly Sokolov <aesok@post.ru>
8083 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
8084 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8085 (rs6000_mode_dependent_address_ptr): Make static.
8086 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8087 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
8090 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
8093 * config/i386/i386.c: Make sure that the correct regparm is passed.
8095 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
8097 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
8098 * sbitmap.c: ...to here to internalize sbitmap element access.
8099 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
8100 Explain why basic-block.h is included.
8101 * function.h: Include tm.h for CUMULATIVE_ARGS.
8102 * Makefile.in: Update dependencies.
8104 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
8106 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
8108 * sbitmap.h (struct sbitmap_def): Do not typedef here.
8109 * sbitmap.c: Include sbitmap.h.
8110 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
8111 hard-reg-set.h. Split everything related to regsets out from here...
8112 * regset.h: ...to here. New file.
8113 * df.h: Include regset.h and sbitmap.h.
8114 * tree-flow.h: Likewise.
8115 * cfgloop.h: Likewise.
8116 * except.h: Do not include sbitmap.h. Include hashtab.h.
8117 * cgraph.h: Include vec.h and function.h.
8118 * reload.h (struct insn_chain): Change types of live_throughout
8119 and dead_or_set from regset_head to bitmap_head.
8120 (compute_use_by_pseudos): Be defined also if regset.h is not included.
8121 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
8122 spilled_regs from regset_head to bitmap_head to avoid dependency
8124 * sel-sched-ir.h: Include regset.h.
8125 * reload.c: Include df.h before reload.h.
8126 * caller-save.c: Likewise.
8127 * reload1.c: Likewise.
8129 (mark_elimination): Update type of r to bitmap, consistent with
8131 * dominance.c: Include bitmap.h.
8132 * modulo-sched.c: Include df.h.
8133 * cfganal.c: Include bitmap.h and sbitmap.h.
8134 * cfgbuild.c: Include sbitmap.h.
8135 * lcm.c: Include sbitmap.h.
8136 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
8137 * domwalk.c: Include sbitmap.h, exclude ggc.h.
8138 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
8139 * cselib.c: Include bitmap.h.
8140 * tree-optimize.c: Include regset.h.
8141 * stmt.c: Include bitmap.h.
8142 * Makefile.in: Update dependencies.
8144 2010-05-22 Jan Hubicka <jh@suse.cz>
8146 * cgraph.h (struct varpool_node): Add same_comdat_group.
8147 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
8149 (output_varpool): Update call of lto_output_varpool_node.
8150 (input_varpool): Read same_comdat_group pointer.
8151 (input_varpool_1): Fixup same_comdat_group pointer.
8152 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
8153 group is needed, all are.
8154 * varpool.c (varpool_remove_node): Remove node from same comdat group
8156 (varpool_analyze_pending_decls): Walk same comdat groups.
8158 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
8160 * rtl.h (union rtunion_def): Remove rt_bit member.
8161 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
8162 * print-rtl (print_rtx): Do not print the member.
8163 * gengtype.c (adjust_field_rtx_def): Do not handle it.
8164 * gengenrtl.c (type_from_format): Likewise.
8165 (accessor_from_format): Likewise.
8167 2010-05-22 Joseph Myers <joseph@codesourcery.com>
8169 * dbgcnt.c: Include toplev.h instead of errors.h.
8170 * ira-emit.c: Don't include errors.h.
8171 * ira.c: Include toplev.h instead of errors.h.
8172 * lto-compress.c: Include toplev.h instead of errors.h.
8173 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
8174 ira.o, dbgcnt.o): Update dependencies.
8176 2010-05-22 Richard Guenther <rguenther@suse.de>
8178 * gimple.c (gimple_types_compatible_p): Check type qualifications
8179 before merging pointer to complete and pointer to incomplete type.
8180 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
8181 we use our own resolution algorithm. The gold linker plugin
8182 doesn't do the job we want it to do here.
8184 2010-05-22 Anatoly Sokolov <aesok@post.ru>
8186 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8187 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8188 (sparc_mode_dependent_address_p): New function.
8190 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
8192 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
8194 * timevar.c: Do not include any core headers.
8195 (timevar_print): De-i18n-ize.
8196 (print_time): Likewise.
8197 * timevar.h (timevar_push, timevar_pop): Make inline functions.
8199 2010-05-21 Joseph Myers <joseph@codesourcery.com>
8201 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
8203 (diagnostic_initialize): Initialize x_data not last_function.
8204 (diagnostic_report_current_function): Move to tree-diagnostic.c.
8205 (default_diagnostic_starter): Call
8206 diagnostic_report_current_module not
8207 diagnostic_report_current_function.
8208 (diagnostic_report_diagnostic): Initialize x_data not
8210 (verbatim): Likewise.
8211 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
8213 (struct diagnostic_context): Change last_function to x_data.
8214 (diagnostic_auxiliary_data): Replace with
8215 diagnostic_context_auxiliary_data and
8216 diagnostic_info_auxiliary_data.
8217 (diagnostic_last_function_changed, diagnostic_set_last_function,
8218 diagnostic_report_current_function): Move to tree-diagnostic.h.
8219 (print_declaration, dump_generic_node, print_generic_stmt,
8220 print_generic_stmt_indented, print_generic_expr,
8221 print_generic_decl, debug_c_tree, dump_omp_clauses,
8222 print_call_name, debug_generic_expr, debug_generic_stmt,
8223 debug_tree_chain, default_tree_printer): Move to
8224 tree-pretty-print.h.
8225 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
8226 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
8227 gimple-pretty-print.h.
8228 * pretty-print.c: Don't include tree.h
8229 (pp_base_format): Don't handle %K here.
8230 (pp_base_tree_identifier): Move to tree-pretty-print.c.
8231 * pretty-print.h (text_info): Change abstract_origin to x_data.
8232 (pp_tree_identifier, pp_unsupported_tree,
8233 pp_base_tree_identifier): Move to tree-pretty-print.h.
8234 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
8235 tree-pretty-print.h: New files.
8236 * tree-pretty-print.c: Include tree-pretty-print.h.
8237 (percent_K_format): New. Moved from pretty-print.c.
8238 (pp_base_tree_identifier): Move from pretty-print.c.
8239 * c-objc-common.c: Include tree-pretty-print.h.
8240 (c_tree_printer): Handle %K here.
8241 * langhooks.c: Include tree-diagnostic.h.
8242 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
8243 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
8244 (default_tree_printer): Handle %K using percent_K_format.
8245 (general_init): Use default_tree_diagnostic_starter.
8246 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
8247 (free_lang_data): Use default_tree_diagnostic_starter.
8248 * c-pretty-print.c: Include tree-pretty-print.h.
8249 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8250 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8251 * dwarf2out.c: Include tree-pretty-print.h.
8252 * except.c: Include tree-pretty-print.h.
8253 * gimple-pretty-print.c: Include tree-pretty-print.h and
8254 gimple-pretty-print.h.
8255 * gimplify.c: Include tree-pretty-print.h.
8256 * graphite-poly.c: Include tree-pretty-print.h and
8257 gimple-pretty-print.h.
8258 * ipa-cp.c: Include tree-pretty-print.h.
8259 * ipa-inline.c: Include gimple-pretty-print.h.
8260 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8261 * ipa-pure-const.c: Include gimple-pretty-print.h.
8262 * ipa-struct-reorg.c: Include tree-pretty-print.h and
8263 gimple-pretty-print.h.
8264 * ipa-type-escape.c: Include tree-pretty-print.h.
8265 * print-rtl.c: Include tree-pretty-print.h.
8266 * print-tree.c: Include gimple-pretty-print.h.
8267 * sese.c: Include tree-pretty-print.h.
8268 * tree-affine.c: Include tree-pretty-print.h.
8269 * tree-browser.c: Include tree-pretty-print.h.
8270 * tree-call-cdce.c: Include gimple-pretty-print.h.
8271 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8272 * tree-chrec.c: Include tree-pretty-print.h.
8273 * tree-data-ref.c: Include tree-pretty-print.h and
8274 gimple-pretty-print.h.
8275 * tree-dfa.c: Include tree-pretty-print.h.
8276 * tree-if-conv.c: Include tree-pretty-print.h and
8277 gimple-pretty-print.h.
8278 * tree-inline.c: Include tree-pretty-print.h.
8279 * tree-into-ssa.c: Include tree-pretty-print.h and
8280 gimple-pretty-print.h.
8281 * tree-nrv.c: Include tree-pretty-print.h.
8282 * tree-object-size.c: Include tree-pretty-print.h and
8283 gimple-pretty-print.h.
8284 * tree-outof-ssa.c: Include tree-pretty-print.h and
8285 gimple-pretty-print.h.
8286 * tree-parloops.c: Include tree-pretty-print.h and
8287 gimple-pretty-print.h.
8288 * tree-predcom.c: Include tree-pretty-print.h and
8289 gimple-pretty-print.h.
8290 * tree-scalar-evolution.c: Include tree-pretty-print.h and
8291 gimple-pretty-print.h.
8292 * tree-sra.c: Include tree-pretty-print.h.
8293 * tree-ssa-address.c: Include tree-pretty-print.h.
8294 * tree-ssa-alias.c: Include tree-pretty-print.h.
8295 * tree-ssa-ccp.c: Include tree-pretty-print.h and
8296 gimple-pretty-print.h.
8297 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
8298 * tree-ssa-copy.c: Include tree-pretty-print.h and
8299 gimple-pretty-print.h.
8300 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
8301 * tree-ssa-dce.c: Include tree-pretty-print.h and
8302 gimple-pretty-print.h.
8303 * tree-ssa-dom.c: Include tree-pretty-print.h and
8304 gimple-pretty-print.h.
8305 * tree-ssa-dse.c: Include gimple-pretty-print.h.
8306 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
8307 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
8308 * tree-ssa-live.c: Include tree-pretty-print.h and
8309 gimple-pretty-print.h.
8310 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
8311 gimple-pretty-print.h.
8312 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
8313 gimple-pretty-print.h.
8314 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
8315 gimple-pretty-print.h.
8316 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
8317 gimple-pretty-print.h.
8318 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
8319 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
8320 * tree-ssa-operands.c: Include tree-pretty-print.h and
8321 gimple-pretty-print.h.
8322 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
8323 gimple-pretty-print.h.
8324 * tree-ssa-pre.c: Include tree-pretty-print.h and
8325 gimple-pretty-print.h.
8326 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
8327 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
8328 gimple-pretty-print.h.
8329 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
8330 gimple-pretty-print.h.
8331 * tree-ssa-sink.c: Include gimple-pretty-print.h.
8332 * tree-ssa-ter.c: Include tree-pretty-print.h and
8333 gimple-pretty-print.h.
8334 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
8335 * tree-ssa.c: Include tree-pretty-print.h and
8336 gimple-pretty-print.h.
8337 * tree-stdarg.c: Include gimple-pretty-print.h.
8338 * tree-switch-conversion.c: Include gimple-pretty-print.h.
8339 * tree-tailcall.c: Include tree-pretty-print.h and
8340 gimple-pretty-print.h.
8341 * tree-vect-data-refs.c: Include tree-pretty-print.h and
8342 gimple-pretty-print.h.
8343 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
8344 gimple-pretty-print.h.
8345 * tree-vect-loop.c: Include tree-pretty-print.h and
8346 gimple-pretty-print.h.
8347 * tree-vect-patterns.c: Include gimple-pretty-print.h.
8348 * tree-vect-slp.c: Include tree-pretty-print.h and
8349 gimple-pretty-print.h.
8350 * tree-vect-stmts.c: Include tree-pretty-print.h and
8351 gimple-pretty-print.h.
8352 * tree-vectorizer.c: Include tree-pretty-print.h.
8353 * tree-vrp.c: Include tree-pretty-print.h and
8354 gimple-pretty-print.h.
8355 * value-prof.c: Include tree-pretty-print.h and
8356 gimple-pretty-print.h.
8357 * var-tracking.c: Include tree-pretty-print.h.
8358 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
8359 (tree-diagnostic.o): New dependencies.
8360 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
8361 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
8362 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
8363 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
8364 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
8365 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
8366 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
8367 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
8368 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
8369 tree-ssa-address.o, tree-ssa-loop-niter.o,
8370 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
8371 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
8372 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
8373 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
8374 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
8375 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
8376 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
8377 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
8378 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
8379 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
8380 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
8381 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
8382 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
8383 tree-switch-conversion.o, var-tracking.o, value-prof.o,
8384 cfgexpand.o, pretty-print.o): Update dependencies.
8386 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
8388 * tree-ssa-structalias.c: Remove tm_p.h from include.
8390 2010-05-21 Jeff Law <law@redhat.com>
8392 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
8394 2010-05-21 Jason Merrill <jason@redhat.com>
8396 * tree-eh.c (cleanup_is_dead_in): New.
8397 (lower_try_finally): Don't generate a dead cleanup region.
8398 (lower_cleanup): Likewise.
8400 2010-05-21 Jakub Jelinek <jakub@redhat.com>
8403 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
8404 unchain each use from the cyclic next_regno_use chain first.
8406 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
8408 * real: Do not include gmp.h, mpfr.h, and mpc.h.
8409 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
8410 (real_value_negate, real_value_abs): New prototypes.
8411 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
8412 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
8413 new include file for interface between MPFR and REAL_VALUE_TYPE.
8414 * real.c: Include realmpfr.h.
8415 (real_arithmetic2): Remove legacy function.
8416 (real_value_negate): New.
8417 (real_value_abs): New.
8418 (mfpr_from_real, real_from_mpfr): Move from here...
8419 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
8420 * builtins.c: Include realmpfr.h.
8421 * fold-const.c: Include realmpfr.h.
8422 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
8423 (fold_negate_const): Likewise.
8424 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
8425 * toplev.c: Include realmpfr.h.
8426 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
8427 and real_value_negate.
8428 * fixed-value.c (check_real_for_fixed_mode): Likewise.
8429 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
8430 (vfp3_const_double_index): Likewise.
8431 (arm_print_operand): Likewise.
8432 * Makefile.in: Update dependencies.
8434 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8436 * config/s390/s390.c (override_options): Increase the default
8437 of max-completely-peel-times.
8439 2010-05-21 Julian Brown <julian@codesourcery.com>
8440 Mark Mitchell <mark@codesourcery.com>
8442 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
8443 sibling calls for Thumb-1.
8444 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
8445 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
8447 (*call_insn, *call_value_insn): Don't use for Thumb-2.
8448 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
8450 (return): New expander.
8451 (*arm_return): New name for ARM return insn.
8452 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
8454 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
8456 * config.gcc (sparc64-*-rtems*): New target.
8458 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
8460 * tree.c (build_function_decl_skip_args): Fix grammar.
8461 (build_function_type_list_1): Fix typos, adjust formatting.
8463 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
8465 * tree.h: Include real.h and fixed-value.h as basic datatypes.
8466 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
8467 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
8468 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
8469 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
8470 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
8471 tree-pretty-print.c, tree-loop-distribution.c,
8472 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
8473 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
8474 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
8475 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
8476 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
8477 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
8478 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
8479 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
8480 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
8481 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
8482 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
8483 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
8484 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
8485 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
8486 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
8487 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
8488 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
8489 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
8490 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
8491 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
8492 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
8493 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
8494 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
8495 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
8496 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
8497 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
8498 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
8499 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
8500 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
8501 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
8502 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
8503 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
8504 config/score/score7.c, config/score/score.c, config/arm/arm.c,
8505 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
8506 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
8507 config/bfin/bfin.c: Clean up redundant includes.
8508 * Makefile.in: Update accordingly.
8510 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
8513 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
8514 statement has no arguments.
8516 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
8519 * varasm.c (emutls_decl): Merge attributes to new decl.
8521 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
8524 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
8525 around the uniquized constructor if its type requires a conversion.
8527 2010-05-21 Jakub Jelinek <jakub@redhat.com>
8530 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
8531 at -O0 goto_locus of any of the incoming edges differs from
8532 goto_locus of outgoing edge, or gimple_location of any of the
8535 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
8537 * ira.c (ira_non_ordered_class_hard_regs): Define.
8538 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
8539 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
8540 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
8541 cost of unaligned hard regs when allocating multi-reg pseudos.
8543 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
8545 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
8546 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
8547 for TARGET_NO_FLOAT.
8548 * config/mips/mips.c (mips_file_start): Expand conditional expression
8549 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
8550 (mips_override_options): Move -mno-float override -msoft-float and
8552 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
8553 Condition(TARGET_SUPPORTS_NO_FLOAT).
8554 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
8555 __mips_no_float here.
8556 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
8557 (TARGET_SUPPORTS_NO_FLOAT): Define.
8558 * config/mips/sdemtk.opt: Delete.
8560 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
8562 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
8564 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
8567 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
8568 * configure: Regenerate.
8569 * config.in: Regenerate.
8570 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
8571 instead of sahf only for 64bit targets.
8573 2010-05-20 Jakub Jelinek <jakub@redhat.com>
8576 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
8577 setup_ref_regs for DEBUG_INSNs.
8579 2010-05-20 Jan Hubicka <jh@suse.cz>
8582 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
8584 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
8587 * df-scan.c (df_ref_compare): Stabilize sort.
8589 2010-05-20 Jakub Jelinek <jakub@redhat.com>
8591 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
8592 argument. Don't use DW_OP_piece if offset is non-zero,
8593 put offset into second DW_OP_bit_piece argument.
8594 (dw_sra_loc_expr): Adjust callers. For memory expressions
8597 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
8600 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
8601 settings for 16-bit-constant "addo" alternative.
8603 2010-05-19 James E. Wilson <wilson@codesourcery.com>
8605 * config/mips/mips-dsp.md (add<DSPV:mode>3,
8606 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
8609 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
8610 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
8613 2010-05-19 Joseph Myers <joseph@codesourcery.com>
8615 * diagnostic.c (FLOAT, FFS): Don't undefine.
8616 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
8617 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
8620 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
8622 * combine.c (propagate_for_debug): Call make_compound_operation
8623 on the source value.
8624 (try_combine): When implementing a split chosen by find_split_point,
8625 either copy i2src or set it to null. Assert that i2src is not null
8626 before substituting into CALL_INSN_FUNCTION_USAGE.
8628 2010-05-19 Anatoly Sokolov <aesok@post.ru>
8630 * double-int.h (double_int_ior): New function.
8631 * tree.h (build_int_cst_wide_type): Remove.
8632 * tree.c (build_int_cst_wide_type): Remove.
8633 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
8634 of build_int_cst_wide_type.
8635 * stor-layout.c (set_sizetype): (Ditto.).
8636 * dojump.c (do_jump): Use build_int_cstu instead of
8637 build_int_cst_wide_type.
8639 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
8641 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
8642 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
8643 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
8644 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
8645 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
8646 propagate the 'data' argument to copy_tree_r.
8647 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
8648 Propagate 'data' argument to walk_tree.
8649 (copy_if_shared): New function.
8650 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
8651 (unmark_visited): New function.
8652 (unshare_body): Call copy_if_shared instead of doing it manually.
8653 (unvisit_body): Call unmark_visited instead of doing it manually.
8655 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
8657 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
8658 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
8659 * hooks.c: Likewise.
8660 * target-def.h (TARGET_FOLD_BUILTIN): Define to
8661 hook_tree_tree_int_treep_bool_null.
8662 * target.h (struct gcc_target): Update signature of fold_builtin
8664 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
8665 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
8666 instead of the call expression.
8667 (fold_builtin_call_array): Pass n and argarray directly.
8668 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
8670 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
8671 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
8672 `i' and use it in place of `arity'.
8673 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
8674 Dereference `args' directly.
8675 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
8677 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8679 * doc/sourcebuild.texi (Effective-Target Keywords): Document
8681 (Directives): Document optional dg-require-effective-target
8684 2010-05-19 Richard Guenther <rguenther@suse.de>
8687 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
8689 2010-05-19 Richard Guenther <rguenther@suse.de>
8691 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
8692 * common.opt (fwhopr=): New.
8693 * opts.c (common_handle_option): Handle OPT_fwhopr.
8694 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
8695 * collect2.c (main): Match -fwhopr*.
8696 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
8697 Execute ltrans stage in parallel when jobs is bigger than 1.
8699 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8701 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
8702 pentiumpro on Solaris 8/x86 with Sun as.
8703 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
8705 (gcc_cv_as_ix86_quad): Check for .quad directive.
8706 * configure: Regenerate.
8707 * config.in: Regenerate.
8708 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
8710 2010-05-19 Martin Jambor <mjambor@suse.cz>
8712 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
8713 also for indirect edges. Actual printing moved...
8714 (ipa_print_node_jump_functions_for_edge): ...here.
8715 (ipa_compute_jump_functions): Renamed to
8716 ipa_compute_jump_functions_for_edge and made static.
8717 (ipa_compute_jump_functions): New function.
8718 (make_edge_direct_to_target): Check if the number of arguments on
8719 the newly direct edge is the same as the number of parametrs of
8721 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
8722 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
8723 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
8724 analysis functions unconditionally, call the new
8725 ipa_analyze_params_uses on the node instead of every edge.
8727 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
8729 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
8731 (dump_mem_ref): Adopt debug code to handle a tree as step. This
8732 also checks for a constant int vs. non-constant but
8733 loop-invariant steps.
8734 (find_or_create_group): Change the sort algorithm to only consider
8735 steps that are constant ints.
8736 (idx_analyze_ref): Adopt code to handle a tree instead of a
8737 HOST_WIDE_INT for step.
8738 (gather_memory_references_ref): Handle tree instead of int and be
8739 prepared to see a NULL_TREE.
8740 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
8741 prefetches if the step cannot be calculated at compile time.
8742 (issue_prefetch_ref): Issue prefetches for non-constant but
8743 loop-invariant steps.
8745 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8748 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8750 * tree.h (build_call_list): Remove.
8751 * tree.c (build_call_list): Remove.
8753 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8755 * tree.h (build_call_list): Remove.
8756 * tree.c (build_call_list): Remove.
8758 2010-05-18 Jan Hubicka <jh@suse.cz>
8760 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
8762 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
8764 PR rtl-optimization/43332
8765 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
8767 2010-05-18 Anatoly Sokolov <aesok@post.ru>
8769 * tree.h (build_int_cstu): Implement as static inline.
8770 * tree.c (build_int_cstu): Remove function.
8771 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
8774 2010-05-18 Richard Guenther <rguenther@suse.de>
8777 * lto-wrapper.c (verbose): New variable. Initialize from -v.
8778 (debug): Initialize from -save-temps.
8779 (collect_execute): Print command-line when verbose.
8780 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
8781 for ltrans invocation. Produce -dumpbase flag again.
8782 (process_args): Remove.
8784 * collect2.c (maybe_run_lto_and_relink): Only pass object
8785 files to lto-wrapper.
8786 * gcc.c (LINK_COMMAND_SPEC): Likewise.
8788 2010-05-18 Jan Hubicka <jh@suse.cz>
8790 * opts.c (decode_options): Do not disable whopr at ipa_cp.
8791 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
8793 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
8796 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
8798 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
8801 2010-05-18 Jakub Jelinek <jakub@redhat.com>
8804 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
8807 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
8809 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
8810 lto-macho as lto_binary_reader.
8812 * darwin.c (darwin_asm_named_section): Do not add assembler comment
8813 after .section directive; just print it before the directive instead.
8815 2010-05-17 Jan Hubicka <jh@suse.cz>
8817 * cgraph.c (cgraph_create_virtual_clone): Only check
8818 versionable_function_p when not in wpa and checking is enabled.
8819 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
8820 there are no more functions to materialize.
8822 2010-05-17 Jan Hubicka <jh@suse.cz>
8824 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
8825 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
8827 (output_cgraph): Call output_cgraph_opt_summary.
8828 (input_cgrpah): Call input_cgraph_opt_summary.
8829 (output_cgraph_opt_summary_p, output_node_opt_summary,
8830 input_node_opt_summary, input_cgraph_opt_section): New functions.
8831 * lto-section-in.c (lto_section_name): Add cgraphopt.
8832 * tree-inline.c (tree_function_versioning): Handle parm_num.
8833 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
8834 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
8836 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
8838 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
8839 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
8840 the insn to prefetch ratio heuristic to loops with known trip count.
8842 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
8844 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
8845 (schedule_prefetches): Do not generate a prefetch if the unroll factor
8846 is far from what is required by the prefetch.
8848 2010-05-17 Jan Hubicka <jh@suse.cz>
8850 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
8851 (ipcp_estimate_growth): Likewise.
8852 (ipcp_const_param_count): Likewise.
8853 (ipcp_insert_stage): Likewise.
8854 * ipa-prop.c (visit_load_for_mod_analysis): New function.
8855 (visit_store_addr_for_mod_analysis): Set used flag.
8856 (ipa_detect_param_modifications): Set used flag for SSE params;
8857 update use of walk_stmt_load_store_addr_ops.
8858 (ipa_print_node_params): Print used flag.
8859 (ipa_write_node_info): Stream used flag.
8860 (ipa_read_node_info): Likewise.
8861 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
8862 (ipa_is_param_used): New function.
8863 (lto_ipa_fixup_call_notes): Remove unused declaration.
8865 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8868 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
8869 * configure: Regenerate.
8870 * config.in: Regenerate.
8871 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
8872 !HAVE_AS_IX86_REP_LOCK_PREFIX.
8873 Don't emit whitespace.
8874 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
8875 (*rep_movsi): Likewise.
8876 (*rep_movsi_rex64): Likewise.
8877 (*rep_movqi): Likewise.
8878 (*rep_movqi_rex64): Likewise.
8879 (*rep_stosdi_rex64): Likewise.
8880 (*rep_stossi): Likewise.
8881 (*rep_stossi_rex64): Likewise.
8882 (*rep_stosqi): Likewise.
8883 (*rep_stosqi_rex64): Likewise.
8884 (*cmpstrnqi_nz_1): Use {%;} after repz.
8885 (*cmpstrnqi_nz_rex_1): Likewise.
8886 (*cmpstrnqi_1): Likewise.
8887 (*cmpstrnqi_rex_1): Likewise.
8888 (*strlenqi_1): Use {%;} after repnz.
8889 (*strlenqi_rex_1): Likewise.
8890 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
8891 (*sync_compare_and_swap<mode>): Likewise.
8892 (sync_double_compare_and_swap<mode>): Likewise.
8893 (*sync_double_compare_and_swapdi_pic): Likewise.
8894 (sync_old_add<mode>): Likewise.
8895 (sync_add<mode>): Likewise.
8896 (sync_sub<mode>): Likewise.
8897 (sync_<code><mode>): Likewise.
8899 2010-05-17 Martin Jambor <mjambor@suse.cz>
8901 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
8902 otr_token and polymorphic.
8903 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
8904 (cgraph_clone_edge): Copy the above fields.
8905 * tree.c (get_binfo_at_offset): New function.
8906 * tree.h (get_binfo_at_offset): Declare.
8907 * ipa-prop.h (enum jump_func_type): Added known_type jump function
8908 type, reordered items, updated comments.
8909 (union jump_func_value): Added base_type field, reordered fields.
8910 (enum ipa_lattice_type): Moved down in the file.
8911 (struct ipa_param_descriptor): New field polymorphic.
8912 (ipa_is_param_polymorphic): New function.
8913 * ipa-prop.c: Include gimple.h and gimple-fold.h.
8914 (ipa_print_node_jump_functions): Print known type jump functions.
8915 (compute_complex_pass_through): Renamed to...
8916 (compute_complex_assign_jump_func): this.
8917 (compute_complex_ancestor_jump_func): New function.
8918 (compute_known_type_jump_func): Likewise.
8919 (compute_scalar_jump_functions): Create known type and complex ancestor
8921 (ipa_note_param_call): New parameter polymorphic, set the corresponding
8922 flag in the call note accordingly.
8923 (ipa_analyze_call_uses): Renamed to...
8924 (ipa_analyze_indirect_call_uses): this. New parameter target, define
8925 variable var only in the block where it is used.
8926 (ipa_analyze_virtual_call_uses): New function.
8927 (ipa_analyze_call_uses): Likewise.
8928 (combine_known_type_and_ancestor_jfs): Likewise.
8929 (update_jump_functions_after_inlining): Implemented handling of a
8930 number of new jump function types combination.
8931 (print_edge_addition_message): Removed.
8932 (make_edge_direct_to_target): New function.
8933 (try_make_edge_direct_simple_call): Likewise.
8934 (try_make_edge_direct_virtual_call): Likewise.
8935 (update_call_notes_after_inlining): Renamed to...
8936 (update_indirect_edges_after_inlining): this. Moved edge creation for
8937 indirect calls to try_make_edge_direct_simple_call, also calls
8938 try_make_edge_direct_virtual_call for virtual calls.
8939 (ipa_print_node_params): Changed the header message.
8940 (ipa_write_jump_function): Stream also known type jump functions.
8941 (ipa_read_jump_function): Likewise.
8942 (ipa_write_indirect_edge_info): Stream new fields in
8943 cgraph_indirect_call_info.
8944 (ipa_read_indirect_edge_info): Likewise.
8945 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
8948 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8950 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
8952 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
8954 * tree.h (CALL_EXPR_ARGS): Delete.
8955 (call_expr_arglist): Delete.
8956 * tree.c (call_expr_arglist): Delete.
8957 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
8958 targetm.fold_builtin.
8959 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
8960 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
8961 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
8962 arglist parameter. Use CALL_EXPR_ARG.
8963 (picochip_expand_builtin_3op): Likewise.
8964 (picochip_expand_builtin_2opvoid): Likewise.
8965 (picochip_expand_array_get): Likewise.
8966 (picochip_expand_array_put): Likewise.
8967 (picochip_expand_array_testport): Likewise.
8968 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
8969 rather than arglist.
8970 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
8972 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
8973 than TREE_VALUE and TREE_CHAIN.
8974 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8975 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
8978 2010-05-17 Jakub Jelinek <jakub@redhat.com>
8981 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
8982 to have no fallthru edge.
8985 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
8986 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
8987 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
8988 add BARRIER after previous bb if needed.
8990 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
8992 * tree.c (build_function_type_list_1): Remove bogus assert condition.
8994 2010-05-17 Alan Modra <amodra@gmail.com>
8996 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
8997 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
8998 with copy_reg rtx param.
8999 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
9000 Correct cases where code for ABI_V4 did not initialise the reg
9001 used to access frame. Also leave frame_reg_rtx as sp for large
9002 frames that save no regs.
9004 2010-05-17 Martin Jambor <mjambor@suse.cz>
9007 * tree-sra.c (create_access_replacement): New parameter rename, mark
9008 the replaement for renaming only when it is true.
9009 (get_access_replacement): Pass true in the rename parameter of
9010 create_access_replacement.
9011 (get_unrenamed_access_replacement): New function.
9012 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
9013 replacement declaration from it.
9015 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
9017 * function.c (try_fit_stack_local, add_frame_space): New static
9019 (assign_stack_local_1): Use them. Look for opportunities to use
9020 space previously wasted on alignment.
9021 * function.h (struct frame_space): New.
9022 (struct rtl_data): Add FRAME_SPACE_LIST member.
9023 * reload1.c (something_was_spilled): New static variable.
9024 (alter_reg): Set it.
9025 (reload): Test it in addition to testing if the frame size changed.
9027 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
9029 * config/s390/s390.c: Define sane prefetch settings and activate
9030 flag_prefetch_loop_arrays on -O3.
9031 * config/s390/s390.h: Declare that read can use write prefetch.
9033 2010-05-17 Jakub Jelinek <jakub@redhat.com>
9035 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
9038 2010-05-16 Jan Hubicka <jh@suse.cz>
9040 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
9041 function body; do not check stdarg field of struct function.
9043 2010-05-16 Jan Hubicka <jh@suse.cz>
9045 * cgraph.c (dump_cgraph_node): Dump versionable flag.
9046 * cgraph.h (cgraph_local_info): Add versionable flag.
9047 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
9048 (ipcp_versionable_function_p): Use it.
9049 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
9052 2010-05-16 Jan Hubicka <jh@suse.cz>
9054 * cgraph.c (cgraph_clone_node): Take decl argument and insert
9055 clone into hash when it is different from orig.
9056 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
9057 * cgraph.h (cgraph_clone_node): Update prototype.
9058 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
9059 (lto_cgraph_encoder_delete): Delete body map.
9060 (lto_cgraph_encoder_size): Move to header.
9061 (lto_cgraph_encoder_encode_body_p,
9062 lto_set_cgraph_encoder_encode_body): New.
9063 (lto_output_node): Do not take written_decls argument; output clone_of
9065 (add_node_to): Add include_body_argument; call
9066 lto_set_cgraph_encoder_encode_body on master of the clone.
9067 (add_references): Update use of add_node_to.
9068 (compute_ltrans_boundary): Likewise.
9069 (output_cgraph): Do not create written_decls bitmap.
9070 (input_node): Take nodes argument; stream in clone_of correctly.
9071 (input_cgraph_1): Update use of input_node.
9072 * lto-streamer-out.c (lto_output): Use encoder info to decide
9073 what bodies to output.
9074 * ipa-inline.c (cgraph_clone_inlined_nodes,
9075 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
9076 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
9077 (lto_cgraph_encoder_size): Define here.
9078 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
9081 2010-05-16 Richard Guenther <rguenther@suse.de>
9083 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
9085 * ipa-type-escape.c (gate_type_escape_vars): Run when
9086 -fipa-struct-reorg runs.
9087 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
9088 * common.opt (fipa-type-escape): Remove.
9090 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
9092 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
9093 (decode_options): Likewise.
9094 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
9096 2010-05-16 Jan Hubicka <jh@suse.cz>
9098 * ipa.c (function_and_variable_visibility): Also bring local all
9101 2010-05-16 Richard Guenther <rguenther@suse.de>
9103 * alias.c (nonoverlapping_memrefs_p): Remove use of
9104 IPA type-escape information.
9106 2010-05-16 Joseph Myers <joseph@codesourcery.com>
9108 * c-common.c (c_common_reswords): Add _Static_assert for C.
9109 * c-parser.c (c_token_starts_declaration,
9110 c_parser_next_token_starts_declaration,
9111 c_parser_static_assert_declaration_no_semi,
9112 c_parser_static_assert_declaration): New.
9113 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
9114 Handle static assertions if static_assert_ok.
9115 (c_parser_external_declaration, c_parser_declaration_or_fndef,
9116 c_parser_compound_statement_nostart, c_parser_label,
9117 c_parser_for_statement, c_parser_objc_methodprotolist,
9118 c_parser_omp_for_loop): All callers of
9119 c_parser_declaration_or_fndef changed.
9120 (c_parser_struct_declaration): Handle static assertions.
9121 (c_parser_compound_statement_nostart): Use
9122 c_parser_next_token_starts_declaration and
9123 c_token_starts_declaration to detect start of declarations.
9124 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
9127 2010-05-16 Anatoly Sokolov <aesok@post.ru>
9129 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9130 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9131 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9132 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9133 (mmix_function_outgoing_value): Rename to...
9134 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
9135 (mmix_function_value_regno_p): Make static.
9136 (mmix_libcall_value): New function.
9137 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
9138 mmix_function_value_regno_p): Remove declaration.
9140 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
9142 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
9143 BUILT_IN_ALLOCA if stack checking is enabled.
9145 2010-05-16 Richard Guenther <rguenther@suse.de>
9147 * var-tracking.c (vars_copy_1): Inline ...
9148 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
9149 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
9150 (variable_merge_over_cur): Adjust. Merge asserts.
9151 (variable_merge_over_src): Likewise.
9152 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
9153 (variable_post_merge_new_vals): Merge asserts.
9154 (variable_post_merge_perm_vals): Likewise.
9155 (find_mem_expr_in_1pdv): Likewise.
9156 (dataflow_set_different_value): Remove.
9157 (onepart_variable_different_p): Merge asserts.
9158 (variable_different_p): Likewise.
9159 (dataflow_set_different_1): Inline ...
9160 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
9161 (emit_notes_for_differences_1): Merge asserts.
9163 2010-05-16 Richard Guenther <rguenther@suse.de>
9165 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
9166 * optabs.c (libfunc_decl_hash): Likewise.
9167 * varasm.c (emutls_decl): Likewise.
9169 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
9171 * c-decl.c: Don't include gimple.h.
9172 (merge_decls): Do not copy gimple_body.
9174 2010-05-15 Jason Merrill <jason@redhat.com>
9176 * c.opt: Add -fnothrow-opt.
9178 2010-05-15 Jan Hubicka <jh@suse.cz>
9180 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
9182 * passes.c (ipa_write_summaries): Write all analyzed nodes.
9184 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
9186 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
9187 * Makefile.in: Add it.
9188 Fix all other Makefile dependencies for changes below.
9189 * tree.h: Include it instead of defining VEC primitives here.
9190 * gimple.h: Likewise.
9192 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
9193 * except.h: Include vecir.h, break dependence on tree.h.
9195 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
9197 * tree-iterator.c: ...to here.
9198 * tree-iterator.h: Fix file introduction comment. Add extern markers.
9200 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
9202 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
9203 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
9204 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
9205 tree-mudflap.h, and target.h.
9206 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
9207 predict.h, tree-inline.h, gimple.h, and langhooks.h.
9208 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
9209 Add FIXME for why gimple.h is still included (should be unnecessary
9210 since GCC 4.5 gimplification unit-at-a-time).
9211 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
9212 * c-pragma.c: Add FIXME for why function.h needs to be included just
9213 for cfun, at front-end level.
9214 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
9215 Do not include ggc.h, but include vecprim.h for VEC(char).
9216 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
9217 Explain why target.h is included.
9218 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
9219 Explain why gimple.h is included.
9220 * c-ppoutput.c: Do not include tm.h.
9221 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
9222 * c-parses.c: Explain why rtl.h is included, and that this (and only
9223 this) is also why tm.h must be included.
9224 Do not include except.h.
9225 * c-lang.c: Do not include ggc.h.
9227 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
9229 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
9231 2010-05-15 Joseph Myers <joseph@codesourcery.com>
9233 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
9234 unions by default if those structs and unions have no tags. Do
9235 not condition anonymous struct and unions handling on flag_iso.
9236 Allow anonymous structs and unions for C1X.
9237 (finish_struct): Do not diagnose lack of named fields when
9238 anonymous structs and unions present for C1X. Accept flexible
9239 array members in structure with anonymous structs or unions but no
9240 directly named fields.
9241 * doc/extend.texi (Unnamed Fields): Update.
9243 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
9245 * gimple.h (compare_field_offset): Rename into...
9246 (gimple_compare_field_offset): ...this.
9247 * gimple.c (compare_field_offset): Rename into...
9248 (gimple_compare_field_offset): ...this. Compare the full access if
9249 the offset is self-referential.
9250 (gimple_types_compatible_p): Adjust for above renaming.
9251 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
9252 DECL_NONADDRESSABLE_P flag of fields before merging them.
9254 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
9256 * tree.h (ctor_to_list): Delete.
9257 * tree.c (ctor_to_list): Delete.
9259 2010-05-15 Jan Hubicka <jh@suse.cz>
9261 * ipa-reference.c: Include toplev.h
9262 (is_proper_for_analysis): Only add to all_module_statics
9264 (write_node_summary_p, stream_out_bitmap,
9265 ipa_reference_write_optimization_summary,
9266 ipa_reference_read_optimization_summary): New.
9267 (struct ipa_opt_pass_d pass_ipa_reference): Add
9268 optimization summary streaming.
9269 * lto-cgraph.c (referenced_from_this_partition_p,
9270 reachable_from_this_partition_p): New functions.
9271 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
9272 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
9273 * opts.c (decode_options): Enable ipa_reference.
9274 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
9275 * lto-streamer.h (referenced_from_this_partition_p,
9276 reachable_from_this_partition_p): Declare.
9278 2010-05-15 Richard Guenther <rguenther@suse.de>
9280 PR tree-optimization/44038
9281 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
9282 taking the address of a V_C_E of a constant.
9284 2010-05-14 Jan Hubicka <jh@suse.cz>
9286 * tree.h (memory_identifier_string): Remove.
9287 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
9288 (ipa_reference_global_vars_info_d): Remove statics_not_read and
9289 statics_not_written.
9290 (ipa_reference_optimization_summary_d): New structure.
9291 (ipa_reference_optimization_summary_t): New type and vector.
9292 (ipa_reference_vars_info_d): Embedd structures instead of using
9294 (reference_vars_to_consider): Remove out of GGC space.
9295 (module_statics_escape): Remove.
9296 (global_info_obstack): Rename to ...
9297 (optimization_summary_obstack): ... this one.
9298 (initialization_status_t): Remove.
9299 (memory_identifier_string): Remove.
9300 (get_reference_vars_info): Fix indenting.
9301 (set_reference_vars_info): Likewise.
9302 (get_reference_optimization_summary): New.
9303 (set_reference_optimization_summary): New.
9304 (get_global_reference_vars_info): Remove.
9305 (ipa_reference_get_read_global): Remove.
9306 (ipa_reference_get_written_global): Remove.
9307 (ipa_reference_get_not_read_global): Update.
9308 (ipa_reference_get_not_written_global): Update.
9309 (is_proper_for_analysis): Outlaw addressable.
9310 (propagate_bits): Update for new datastructures.
9311 (analyze_variable): Remove.
9312 (init_function_info): Update for new datastructures.
9313 (clean_function_local_data): Remove.
9314 (clean_function): Remove.
9315 (copy_global_bitmap): Use optimizations_summary_obstack.
9316 (duplicate_node_data): Duplicate optimization summary only.
9317 (remove_node_data): Remove optimization summary only.
9318 (generate_summary): Do not analyze variables; do not compute
9319 module_statics_escape; do not prune solutions by it.
9320 (read_write_all_from_decl): Fix typos in comments.
9321 (propagate): Doscover readonly and nonaddressable first;
9322 update for new datastructures; share global bitmaps.
9323 * ipa-reference.h (ipa_reference_get_read_global,
9324 ipa_reference_get_written_global): Remove.
9325 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
9326 * Makefile.in: Remove ipa-refereference from GT files.
9328 2010-05-14 Jakub Jelinek <jakub@redhat.com>
9331 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
9332 for all SYMBOL_REF_DECLs.
9334 2010-05-14 Jan Hubicka <jh@suse.cz>
9336 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
9337 (varpool_all_refs_explicit_p): New inline function.
9338 * ipa-reference.c: Update comment.
9339 (module_statics_written): Remove.
9340 (get_static_decl): Remove.
9341 (ipa_init): Do not initialize module_statics_written.
9342 (analyze_function): Likewise.
9343 (generate_summary): Likewise; do not compute module_statics_readonly
9344 and do not update variable flags.
9345 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
9346 * ipa.c: Inlucde flags.h
9347 (cgraph_local_node_p): New.
9348 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
9349 promote functions to local.
9350 (ipa_discover_readonly_nonaddressable_vars): New function.
9351 (function_and_variable_visibility): Use cgraph_local_node_p.
9352 * varpool.c (varpool_finalize_decl): Set force_output for
9353 DECL_PRESERVE_P vars.
9355 2010-05-14 Jan Hubicka <jh@suse.cz>
9357 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
9359 2010-05-14 Richard Guenther <rguenther@suse.de>
9361 PR tree-optimization/44119
9362 * tree-ssa-pre.c (eliminate): Properly mark replacement of
9363 a PHI node necessary.
9365 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
9367 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
9369 2010-05-14 Jason Merrill <jason@redhat.com>
9372 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
9373 (gimple_call_set_nothrow): New.
9374 * gimple.c (gimple_build_call_from_tree): Call it.
9375 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
9378 * gimplify.c (gimplify_seq_add_stmt): No longer static.
9379 * gimple.h: Declare it.
9380 * gimple.c (gimple_build_eh_filter): No ops.
9382 2010-05-14 Jan Hubicka <jh@suse.cz>
9384 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
9385 nodes already in queue.
9386 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
9389 2010-05-14 Jakub Jelinek <jakub@redhat.com>
9392 * cfgexpand.c (expand_debug_expr): If non-memory op0
9393 has BLKmode, return NULL.
9395 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
9397 * config.gcc: Add support for --with-cpu option for bdver1.
9398 * config/i386/i386.h (TARGET_BDVER1): New macro.
9399 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
9400 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
9401 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
9402 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
9403 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
9404 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
9405 (processor_type): Add PROCESSOR_BDVER1.
9406 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
9407 processor_type in config/i386/i386.h.
9408 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
9409 movaps <reg, reg> instead of movapd <reg, reg> when replacing
9410 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
9411 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
9412 to emit packed xor instead of packed double/packed integer
9413 xor for SSE and AVX when moving a zero value.
9414 * config/i386/sse.md: Add check for
9415 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
9416 movapd/movdqa for SSE and AVX.
9417 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
9418 single logical operations i.e and, or and xor instead of packed double
9419 logical operations for SSE and AVX.
9420 * config/i386/i386-c.c (ix86_target_macros_internal):
9421 Add PROCESSOR_BDVER1.
9422 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
9423 (has_fma4, has_xop): New.
9424 * config/i386/i386.c (bdver1_cost): New variable.
9425 (m_BDVER1): New macro.
9426 (m_AMD_MULTIPLE): Add m_BDVER1.
9427 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
9428 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
9429 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
9430 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
9431 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
9432 x86_tune_sse_partial_reg_dependency,
9433 x86_tune_sse_unaligned_load_optimal,
9434 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
9435 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
9436 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
9437 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
9438 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
9439 Enable/disable for bdver1.
9440 (processor_target_table): Add bdver1_cost.
9441 (cpu_names): Add bdver1.
9442 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
9443 processor_alias_table.
9444 (ix86_expand_vector_move_misalign): Change.
9445 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
9446 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
9447 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
9448 of movupd/movdqu for SSE and AVX.
9449 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
9450 (ix86_tune_adjust_cost): Add code for bdver1.
9451 (standard_sse_constant_opcode): Add check for
9452 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
9453 of packed double xor for SSE and AVX.
9455 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
9457 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
9460 2010-05-14 Tristan Gingold <gingold@adacore.com>
9462 * toplev.c (default_debug_hooks): Remove this variable.
9463 (process_options): Remove assignments to default_debug_hooks.
9465 2010-05-14 Martin Jambor <mjambor@suse.cz>
9467 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
9468 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
9469 * langhooks.h (struct lang_hooks_for_decls): Removed field
9471 * tree.c (free_lang_data): Remove assignment to
9472 lang_hooks.fold_obj_type_ref.
9473 * tree.def (OBJ_TYPE_REF): Update comment.
9475 2010-05-14 Richard Guenther <rguenther@suse.de>
9477 PR tree-optimization/44124
9478 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
9480 2010-05-14 Alan Modra <amodra@gmail.com>
9483 * config/rs6000/rs6000.c (struct machine_function): Reorder
9484 fields for better packing. Add lr_save_state.
9485 (rs6000_ra_ever_killed): Return lr_save_state if set.
9486 (rs6000_emit_eh_reg_restore): Set lr_save_state.
9488 2010-05-13 Jan Hubicka <jh@suse.cz>
9490 * varpool.c (decide_is_variable_needed): Drop code checking
9491 TREE_SYMBOL_REFERENCED.
9493 2010-05-13 Jan Hubicka <jh@suse.cz>
9495 * final.c (output_addr_const): Do not call mark_decl_referenced.
9496 * cgraphunit.c (process_function_and_variable_attributes): Use
9497 mark_needed_node dirrectly.
9498 (assemble_thunk): Do not call mark_decl_referenced.
9500 2010-05-13 Anatoly Sokolov <aesok@post.ru>
9502 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
9504 2010-05-13 Jeff Law <law@redhat.com>
9506 * ira-conflicts.c (print_allocno_conflicts): New function broken out
9508 (print_conflicts): Call print_allocno_conflicts.
9510 2010-05-13 Jakub Jelinek <jakub@redhat.com>
9513 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
9516 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
9518 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
9519 t-mingw-w64 or t-mingw-w32 for multilib configuration.
9520 * config/i386/t-mingw-w32: New.
9521 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
9523 2010-05-13 Martin Jambor <mjambor@suse.cz>
9525 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
9527 * gimple-fold.c (get_base_binfo_for_type): New function.
9528 (gimple_get_relevant_ref_binfo): Likewise.
9529 (gimple_fold_obj_type_ref_known_binfo): Likewise.
9530 (gimple_fold_obj_type_ref): Likewise.
9531 (fold_gimple_call): Simplify condition for folding virtual calls
9532 and call gimple_fold_obj_type_ref.
9533 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
9534 (gimple_fold_obj_type_ref_known_binfo): Likewise.
9536 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
9538 * config/rs6000/rs6000-protos.h
9539 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
9540 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
9541 (rs6000_debug_mode_dependent_address)
9542 (rs6000_mode_dependent_address_ptr): Likewise.
9544 2010-05-13 Jakub Jelinek <jakub@redhat.com>
9547 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
9549 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
9550 * tree-sra.c (create_access_replacement): Call unshare_expr before
9551 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
9552 * dwarf2out.c: Include tree-flow.h.
9553 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
9554 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
9555 Handle DW_OP_bit_piece.
9556 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
9557 construct_piece_list, adjust_piece_list): New functions.
9558 (add_var_loc_to_decl): Handle SRA optimized variables.
9559 Adjust for var_loc_note to loc field renaming.
9560 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
9561 in VAR_LOCATION note.
9562 (new_loc_descr_op_bit_piece): New function.
9563 (dw_sra_loc_expr): New function.
9564 (dw_loc_list): Use it. Don't handle the last range after the
9565 loop, handle it inside of the loop. Adjust for var_loc_note
9566 to loc field renaming.
9567 (add_location_or_const_value_attribute): Only special case
9568 single entry loc lists if loc is NOTE_P. Adjust for
9569 var_loc_note to loc field renaming.
9570 (dwarf2out_var_location): Don't set newloc->var_loc_note
9571 and newloc->next here.
9573 2010-05-12 Jan Hubicka <jh@suse.cz>
9575 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
9577 * cgraph.h (cgraph_only_called_directly_p,
9578 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
9579 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
9580 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
9582 * ipa.c (cgraph_remove_unreachable_nodes): Use
9583 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
9585 * tree-inline.c (copy_bb): Check address_taken flag.
9586 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
9587 externally_visible flag.
9589 2010-05-12 Jason Merrill <jason@redhat.com>
9593 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
9594 * sdbout.c (plain_type_1): Likewise.
9595 * dwarf2out.c (is_base_type): Likewise.
9596 (gen_type_die_with_usage): Likewise. Generate
9597 DW_TAG_unspecified_type for any LANG_TYPE.
9599 2010-05-12 Jan Hubicka <jh@suse.cz>
9601 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
9603 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
9604 (cgraph_clone_edge): Update.
9605 (cgraph_node_remove_callees): Remove indirect calls too.
9606 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
9607 (cgraph_create_indirect_edge): Update prototype.
9608 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
9609 is_proper_for_analysis.
9610 (add_new_function, visited_nodes, function_insertion_hook_holder,
9611 get_local_reference_vars_info, mark_address_taken, mark_address,
9612 mark_load, mark_store, check_asm_memory_clobber, check_call,
9613 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
9614 (ipa_init): Do not initialize visited_nodes;
9615 function_insertion_hook_holder.
9616 (analyze_variable): Rewrite.
9617 (analyze_function): Rewrite.
9618 (copy_local_bitmap): Remove.
9619 (duplicate_node_dat): Do not duplicate local info.
9620 (generate_summary): Simplify to only walk cgraph.
9621 (write_node_summary_p, ipa_reference_write_summary,
9622 ipa_reference_read_summary): Remove.
9623 (propagate): Do not remove function insertion;
9625 (pass_ipa_reference): NULLify summary handling fields.
9626 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
9627 (input_edge): Input ecf_flags.
9628 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
9629 (update_indirect_edges_after_inlining): Ignore edges with unknown
9632 2010-05-12 Sriraman Tallam <tmsriram@google.com>
9634 * implicit-zee.c: New file.
9635 * tree-pass.h (pass_implicit_zee): Declare.
9636 * passes.c (init_optimization_passes): Add zee pass.
9637 * common.opt (fzee): New flag.
9638 * timevar.def (TV_ZEE): Define.
9639 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
9641 * Makefile.in (implicit-zee.o): Add new build file.
9643 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
9644 Nathan Froyd <froydnj@codesourcery.com>
9646 * c-common.c (sync_resolve_params): Remove write-only variable.
9648 2010-05-12 Anatoly Sokolov <aesok@post.ru>
9650 * target.h (struct gcc_target): Add mode_dependent_address_p field.
9651 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
9652 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
9653 * targhooks.c (default_mode_dependent_address_p): New function.
9654 * targhooks.h (default_mode_dependent_address_p): Declare function.
9655 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
9656 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
9657 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
9658 target hook. Change return type to bool.
9659 * recog.h (mode_dependent_address_p): Change return type to bool.
9661 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
9662 Nathan Froyd <froydnj@codesourcery.com>
9664 * tree-mudflap.c (build_function_type_0, build_function_type_1,
9665 build_function_type_2, build_function_type_3): Remove.
9666 (mudflap_init): Use build_function_type_list.
9668 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
9669 Nathan Froyd <froydnj@codesourcery.com>
9671 * coverage.c (build_fn_info_value): Call build_constructor instead of
9672 build_constructor_from_list.
9673 (build_ctr_info_value): Likewise.
9674 (build_gcov_info): Likewise.
9676 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
9678 * tree.c (build_constructor): Compute TREE_CONSTANT for the
9679 resultant constructor.
9680 (build_constructor_single): Don't set TREE_CONSTANT.
9681 (build_constructor_from_list): Don't compute TREE_CONSTANT.
9683 2010-05-12 Jan Hubicka <jh@suse.cz>
9685 * cgraph.h (struct varpool_node): Add aux.
9686 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
9687 * varpool.c (varpool_remove_node): Do not remove initializer.
9688 (varpool_reset_queue): Export.
9689 (varpool_finalize_decl): Volatile vars are forced to be output.
9690 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
9692 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
9693 process_references, varpool_can_remove_if_no_refs): New functions.
9694 (cgraph_remove_unreachable_nodes): Handle variables too.
9696 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
9699 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
9701 2010-05-12 Jakub Jelinek <jakub@redhat.com>
9704 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
9705 change value of ORT_TASK.
9706 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
9707 (omp_notice_threadprivate_variable): New function.
9708 (omp_notice_variable): Call it for threadprivate variables.
9709 If enclosing ctx is a task, print enclosing task rather than
9710 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
9711 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
9712 if task has untied clause.
9715 * dwarf2out.c (base_type_die): Don't add name attribute here.
9716 (modified_type_die): Instead of sizetype use
9717 its underlying original type. If a DW_TAG_base_type doesn't
9718 have name added, add __unknown__.
9719 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
9720 always call force_type_die instead.
9722 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
9724 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
9725 for __stack_chk_guard.
9727 2010-05-11 Jakub Jelinek <jakub@redhat.com>
9729 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
9730 don't call start_source_file debug hook here...
9731 (finish_options): ... but here, after outputting predefined and
9732 command line defines and undefs.
9735 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
9737 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
9738 optimizing away empty bb with no successors, move over its
9739 footer chain to fallthru predecessor.
9740 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
9741 (rtl_split_edge): For asm goto call patch_jump_insn even if
9742 splitting fallthru edge.
9745 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
9746 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
9747 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
9748 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
9752 * c-parser.c (c_parser_expression): Mark LHS of a comma
9753 expression as read if it is a decl, handled component or
9754 COMPOUND_EXPR with that on the RHS.
9755 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
9756 if it is a decl or handled component.
9758 2010-05-11 Jan Hubicka <jh@suse.cz>
9760 * lto-symtab.c (lto_symtab_free): New function.
9761 * lto-streamer.h (lto_symtab_free): Declare.
9763 2010-05-11 Jan Hubicka <jh@suse.cz>
9765 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
9766 that if function is needed it is reachable.
9767 (lto_output_node): See if it the function is reachable or referenced.
9768 (output_cgraph): Update call of lto_output_node.
9769 * lto-streamer.h (reachable_from_other_partition_p): Declare.
9771 2010-05-11 Jan Hubicka <jh@suse.cz>
9773 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
9776 2010-05-11 Jan Hubicka <jh@suse.cz>
9778 PR tree-optimize/44063
9779 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
9781 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
9783 (estimate_function_body_sizes): Compute sizes even when disregarding.
9785 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
9787 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
9789 2010-05-11 Jan Hubicka <jh@suse.cz>
9791 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
9792 into every boundary.
9794 2010-05-11 Jan Hubicka <jh@suse.cz>
9796 * matrix-reorg.c (matrix_reorg): Rebuild edges.
9798 2010-05-11 Jan Hubicka <jh@suse.cz>
9800 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
9801 lto_streamer_cache_delete): Put nodes into heap.
9802 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
9805 2010-05-11 Jan Hubicka <jh@suse.cz>
9807 * cgraphbuild.c (cgraph_rebuild_references): New.
9808 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
9810 * cgraph.h (cgraph_rebuild_references): Declare.
9811 * tree-inline.c (tree_function_versioning): Use it.
9812 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
9814 2010-05-11 Jan Hubicka <jh@suse.cz>
9816 * cgraph.c: Include ipa-utils.h
9817 (cgraph_create_virtual_clone): Update references.
9818 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
9820 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
9822 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
9823 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
9826 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
9828 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
9830 2010-05-11 Jakub Jelinek <jakub@redhat.com>
9832 * gcc.c (execute): For -### don't quote arguments that
9833 contain just alphanumerics and _/-. characters.
9834 * doc/invoke.texi: Document that change for -###.
9837 * df-problems.c (struct dead_debug): Add to_rescan field.
9838 (dead_debug_init): Clear to_rescan field.
9839 (dead_debug_finish): Rescan all debug insns in to_rescan
9840 bitmap and free the bitmap.
9841 (dead_debug_insert_before): Instead of rescanning debug insns
9842 immediately queue their rescanning until dead_debug_finish.
9843 (df_note_bb_compute): After dead_debug_add do continue instead
9846 2010-05-10 Jakub Jelinek <jakub@redhat.com>
9849 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
9850 clear also INSN_REG_USE_LIST.
9852 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9854 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
9856 2010-05-10 Jan Hubicka <jh@suse.cz>
9858 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
9861 2010-05-10 Jan Hubicka <jh@suse.cz>
9863 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
9865 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
9866 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
9867 (lto_streamer_cache_create): Init alloc pool.
9868 (lto_streamer_cache_delete): Free alloc pool.
9869 * lto-streamer.h: Include alloc pool.
9870 (lto_streamer_cache_d): Use alloc pool.
9871 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
9873 2010-05-10 Jan Hubicka <jh@suse.cz>
9875 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
9876 * cgraphbuild.c: Include except.h
9877 (record_type_list, record_eh_tables): New function.
9878 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
9880 2010-05-10 Jan Hubicka <jh@suse.cz>
9882 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
9883 __frame_dummy_init_array_entry, force_to_data): Attribute as used
9886 2010-05-10 Michael Matz <matz@suse.de>
9888 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
9889 (can_reassociate_p): Use FLOAT_TYPE_P.
9890 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
9891 (vect_force_simple_reduction): ... this.
9892 * tree-parloops.c (gather_scalar_reductions): Use
9893 vect_force_simple_reduction.
9894 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
9895 vect_is_simple_reduction, add modify argument, if true rewrite
9896 "a-b" into "a+(-b)".
9897 (vect_is_simple_reduction, vect_force_simple_reduction): New
9899 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
9901 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
9902 Vladimir Makarov <vmakarov@redhat.com>
9904 PR rtl-optimization/44012
9905 * ira-build.c (remove_unnecessary_allocnos): Nullify
9906 regno_allocno_map of the removed allocno.
9908 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9910 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
9912 * configure: Regenerate.
9914 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9916 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
9918 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
9919 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
9921 * configure: Regenerate.
9923 2010-05-10 Richard Guenther <rguenther@suse.de>
9925 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
9926 marked if the entry identifier is marked.
9928 2010-05-10 Richard Guenther <rguenther@suse.de>
9930 * c-common.c (struct c_common_attributes): Add fnspec attribute.
9931 (handle_fnspec_attribute): New function.
9932 * gimple.h (gimple_call_return_flags): Declare.
9933 (gimple_call_arg_flags): Likewise.
9934 * gimple.c (gimple_call_arg_flags): New function.
9935 (gimple_call_return_flags): Likewise.
9936 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
9938 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
9940 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
9941 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
9943 (make_heapvar_for): ... this new function.
9944 (handle_rhs_call): Handle fnspec attribute argument specifiers.
9945 (handle_lhs_call): Likewise.
9946 (find_func_aliases): Adjust.
9948 2010-05-10 Richard Guenther <rguenther@suse.de>
9950 PR tree-optimization/44050
9951 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
9953 2010-05-10 Wei Guozhi <carrot@google.com>
9956 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
9958 2010-05-09 Joseph Myers <joseph@codesourcery.com>
9961 * c-typeck.c (lookup_field): Take a type directly. Update
9963 (build_component_ref): Update call to lookup_field.
9964 (set_init_label): Use lookup_field to find initialized field.
9965 Handle returned list of fields like a sequence of designators.
9967 2010-05-09 Richard Guenther <rguenther@suse.de>
9970 * fold-const.c (tree_single_nonzero_warnv_p): Properly
9971 handle &FUNCTION_DECL.
9973 2010-05-09 Joseph Myers <joseph@codesourcery.com>
9976 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
9977 structures and unions recursively.
9978 (detect_field_duplicates): Move duplicate detection with a hash to
9979 detect_field_duplicates_hash. Always use a hash if anonymous
9980 structures or unions are present.
9981 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
9984 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
9987 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
9988 detect Atom, Core 2 and Core i7.
9990 2010-05-09 Richard Guenther <rguenther@suse.de>
9992 * gcc.c (store_arg): Handle temporary file deletion for
9995 2010-05-09 Richard Guenther <rguenther@suse.de>
9998 * ipa-inline.c (estimate_function_body_sizes): Return after
9999 disregarding inline limits.
10001 2010-05-09 Richard Guenther <rguenther@suse.de>
10003 * gcc.c (store_arg): Revert last change.
10005 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
10007 PR middle-end/28685
10008 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
10009 (optimize_ops_list): Call it.
10011 2010-05-08 Richard Guenther <rguenther@suse.de>
10013 PR tree-optimization/44030
10014 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
10015 NECESSARY flag if we propagate from a inserted expression.
10017 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
10019 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
10020 domain types as equal if they are both PLACEHOLDER_EXPRs.
10022 2010-05-08 Richard Guenther <rguenther@suse.de>
10024 * lto-wrapper.c (run_gcc): Remove linker output from
10025 command line for LTRANS invocation.
10027 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
10029 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
10030 lto-macho as lto_binary_reader.
10031 * target.h (struct gcc_target): New hooks lto_start and lto_end.
10032 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
10033 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
10034 in lto_start and lto_end calls.
10035 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
10037 (scan_prog_file): Update is_elf_or_coff call.
10038 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
10040 * collect2.c (main): Fix enum comparison.
10042 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
10044 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
10045 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
10046 and TARGET_ASM_LTO_END.
10047 * darwin.c: Include obstack.h and lto-streamer.h.
10048 (lto_section_names_offset, lto_section_names_obstack,
10049 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
10051 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
10052 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
10053 to a temporary file.
10054 (darwin_asm_lto_end): New function. Restore asm_out_file.
10055 (darwin_asm_named_section): For LTO sections, replace the name with
10056 the offset of the section name in a string table, and build this
10058 (darwin_file_start): Initialize global vars for LTO support.
10059 (darwin_file_end): If output to asm_out_file was redirected, append it
10060 to the proper asm_out_file here. Add the section names section.
10062 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
10064 * c-pragma.c (pending_weak_d, pending_weak): New.
10065 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
10066 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
10067 handle_pragma_weak): Update the uses of pending_weaks.
10069 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10071 PR documentation/44016
10072 * doc/standards.texi (Standards): Link to unversioned
10073 cxx0x_status.html page.
10075 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
10078 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
10079 in addition to TREE_USED, to avoid "set but unused" warnings.
10081 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
10083 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
10084 (is_loop_prefetching_profitable): Do not insert prefetches
10085 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
10086 times the prefetch ahead distance.
10088 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
10090 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
10091 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
10092 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
10095 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
10097 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
10098 a diagnostic info when the insn-to-mem ratio is too small.
10100 2010-05-07 Richard Guenther <rguenther@suse.de>
10102 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
10104 (store_arg): Queue temp_filename for deletion instead of
10105 the whole argument.
10107 2010-05-07 Richard Guenther <rguenther@suse.de>
10109 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
10110 (run_gcc): Handle LTRANS phase invocation.
10111 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
10113 2010-05-07 Jakub Jelinek <jakub@redhat.com>
10115 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
10116 this is also meaningful on PARM_DECLs and RESULT_DECLs.
10118 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10120 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
10122 2010-05-07 Richard Guenther <rguenther@suse.de>
10124 PR tree-optimization/44020
10125 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
10126 code when PRE is not yet initialized.
10128 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10130 * config/mips/dbxmdebug.h: Remove.
10131 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
10133 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
10135 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
10136 with null pointer and also warn about ordered comparison of zero with
10137 pointer if -Wextra.
10139 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10141 * graphite-blocking.c
10142 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
10143 * graphite-clast-to-gimple.c
10144 (clast_to_gcc_expression): Same.
10145 (precision_for_value): Same.
10146 (precision_for_interval): Same.
10147 (gcc_type_for_interval): Same.
10148 (graphite_create_new_guard): Same.
10149 (compute_bounds_for_level): Same.
10150 (graphite_create_new_loop_guard): Same.
10151 * graphite-interchange.c
10152 (build_linearized_memory_access): Same.
10153 (pdr_stride_in_loop): Same.
10154 (memory_strides_in_loop_1): Same.
10155 (memory_strides_in_loop): Same.
10156 (extend_scattering): Same.
10157 (psct_scattering_dim_for_loop_depth): Same.
10158 (pbb_number_of_iterations): Same.
10160 (debug_iteration_domains): Same.
10162 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10163 (ppl_set_inhomogeneous_gmp): Same.
10164 (ppl_strip_loop): Same.
10165 (ppl_lexico_compare_linear_expressions): Same.
10166 (ppl_read_polyhedron_matrix): Same.
10167 (ppl_max_for_le_pointset): Same.
10169 (ppl_read_polyhedron_matrix): Same.
10170 (tree_int_to_gmp): Same.
10171 (gmp_cst_to_tree): Same.
10172 (ppl_set_inhomogeneous): Same.
10173 (ppl_set_inhomogeneous_tree): Same.
10174 (ppl_set_coef): Same.
10175 (ppl_set_coef_tree): Same.
10176 * graphite-sese-to-poly.c
10177 (build_pbb_scattering_polyhedrons): Same.
10178 (build_scop_scattering): Same.
10179 (scan_tree_for_params_right_scev): Same.
10180 (scan_tree_for_params): Same.
10181 (find_params_in_bb): Same.
10182 (find_scop_parameters): Same.
10183 (add_upper_bounds_from_estimated_nit): Same.
10184 (build_loop_iteration_domains): Same.
10185 (add_condition_to_domain): Same.
10186 (pdr_add_memory_accesses): Same.
10188 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10190 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
10191 CLooG's value_* macros to their respective mpz_* counterparts.
10192 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
10193 (graphite_create_new_loop_guard): Same.
10194 * graphite-interchange.c (build_linearized_memory_access): Same.
10195 (pdr_stride_in_loop): Same.
10196 (memory_strides_in_loop_1): Same.
10197 (1st_interchange_profitable_p): Same.
10198 * graphite-poly.c (extend_scattering): Same.
10199 (psct_scattering_dim_for_loop_depth): Same.
10200 (pbb_number_of_iterations): Same.
10201 (pbb_number_of_iterations_at_time): Same.
10202 * graphite-poly.h (new_1st_loop): Same.
10203 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
10204 (oppose_constraint): Same.
10205 (insert_constraint_into_matrix): Same.
10206 (ppl_set_inhomogeneous_gmp): Same.
10207 (ppl_set_coef_gmp): Same.
10208 (ppl_strip_loop): Same.
10209 (ppl_lexico_compare_linear_expressions): Same.
10210 (ppl_max_for_le_pointset): Same.
10211 (ppl_min_for_le_pointset): Same.
10212 (ppl_build_realtion): Same.
10213 * graphite-ppl.h (gmp_cst_to_tree): Same.
10214 (ppl_set_inhomogeneous): Same.
10215 (ppl_set_inhomogeneous_tree): Same.
10216 (ppl_set_coef): Same.
10217 (ppl_set_coef_tree): Same.
10218 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
10219 (build_scop_scattering): Same.
10220 (add_value_to_dim): Same.
10221 (scan_tree_for_params_right_scev): Same.
10222 (scan_tree_for_params_int): Same.
10223 (scan_tree_for_params): Same.
10224 (find_params_in_bb): Same.
10225 (find_scop_parameters): Same.
10226 (add_upper_bounds_from_estimated_nit): Same.
10227 (build_loop_iteration_domains): Same.
10228 (create_linear_expr_from_tree): Same.
10229 (add_condition_to_domain): Same.
10230 (pdr_add_memory_accesses): Same.
10232 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
10233 Jason Merrill <jason@redhat.com>
10235 * c-common.c (c_common_reswords): Add nullptr.
10236 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
10237 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
10238 (gen_type_die_with_usage): Likewise.
10239 * dbxout.c (dbxout_type): Likewise.
10240 * sdbout.c (plain_type_1): Likewise.
10242 2010-05-06 Jason Merrill <jason@redhat.com>
10244 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
10245 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
10247 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
10249 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
10250 stripping WITH_SIZE_EXPR.
10251 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
10254 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10256 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
10257 list of obsolete configurations.
10258 Disabled check for obsolete configurations.
10259 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
10260 Removed support for previous versions.
10261 * config/mips/iris.h: Removed.
10262 * config/mips/iris5.h: Removed.
10263 * config/mips/iris6.h: Merged old iris.h contents.
10264 (TARGET_IRIX): Removed.
10265 (DRIVER_SELF_SPECS): Removed mabi=32.
10266 (IDENT_ASM_OP): Removed undef.
10267 (STARTFILE_SPEC): Removed mabi=32.
10268 (ENDFILE_SPEC): Likewise.
10269 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
10270 (MACHINE_TYPE): Update for IRIX 6.5.
10271 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
10272 TARGET_IRIX by TARGET_IRIX6.
10273 (mips_file_start): Likewise.
10274 (mips_output_external): Remove IRIX 5/6 O32 support.
10275 (mips_output_function_prologue): Likewise.
10276 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
10278 (TARGET_CPU_CPP_BUILTINS): Likewise.
10279 (TARGET_IRIX): Removed.
10280 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
10281 (MULTILIB_DIRNAMES): Removed 32.
10282 (MULTILIB_OSDIRNAMES): Removed ../lib.
10283 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
10284 (Specific, mips-sgi-irix5): Document removal.
10285 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
10286 Remove references to older IRIX 6 releases and the O32 ABI.
10288 2010-05-06 Jakub Jelinek <jakub@redhat.com>
10291 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
10292 instead of DF_REF_REAL_REG.
10294 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
10297 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
10298 handling to still return true for x64 targets.
10300 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
10302 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
10304 2010-05-06 Jan Hubicka <jh@suse.cz>
10306 PR tree-optimization/43791
10307 * ipa-inline.c (update_caller_keys): Remove bogus
10308 disregard_inline_limits check.
10310 2010-05-06 Michael Matz <matz@suse.de>
10312 PR tree-optimization/43984
10313 * tree-ssa-pre.c (inserted_phi_names): Remove.
10314 (inserted_exprs): Change to bitmap.
10315 (create_expression_by_pieces): Set bits, don't append to vector.
10316 (insert_into_preds_of_block): Don't handle inserted_phi_names.
10317 (eliminate): Don't look at inserted_phi_names, remove deleted
10318 insns from inserted_exprs.
10319 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
10320 (init_pre, fini_pre): Allocate and free bitmaps.
10321 (execute_pre): Insert insns on edges before elimination.
10323 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
10325 * tree.c (initializer_zerop): Handle STRING_CST.
10327 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
10330 * doc/invoke.texi (Wimplicit): Document as C only.
10331 * opts.c (common_handle_option): Add argument kind.
10332 (handle_option): Rename as read_cmdline_option. Factor out code to...
10333 (handle_option): ... here. New.
10334 (handle_options): Rename as read_cmdline_options.
10335 (decode_options): Update call.
10336 (set_option): Use option index instead of option pointer. Classify
10337 diagnostics correctly.
10338 (enable_warning_as_error): Call handle_option.
10339 * opts.h (set_option): Update declaration.
10340 (handle_option): Declare.
10341 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
10342 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
10343 * c-opts.c (set_Wimplicit): Delete.
10344 (c_family_lang_mask): New static constant.
10345 (c_common_handle_option): Add argument kind. Use handle_option
10346 instead of set_Wimplicit.
10347 (c_common_post_options): warn_implicit and warn_implicit_int
10348 are disabled by default.
10349 * c-common.c (warn_implicit): Do not define here.
10350 * c-common.h (warn_implicit): Do not declare here.
10351 (c_common_handle_option): Update declaration.
10352 * lto-opts.c (lto_reissue_options): Update call to set_option.
10354 2010-05-06 Richard Guenther <rguenther@suse.de>
10356 PR tree-optimization/43571
10357 * domwalk.c (walk_dominator_tree): Walk the dominator
10358 sons in more optimal order.
10360 2010-05-06 Richard Guenther <rguenther@suse.de>
10362 PR tree-optimization/43934
10363 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
10364 (stmt_cost): Likewise.
10365 (extract_true_false_args_from_phi): New helper.
10366 (determine_max_movement): For PHI nodes verify we can hoist them
10367 and compute their cost.
10368 (determine_invariantness_stmt): Handle PHI nodes.
10369 (move_computations_stmt): Likewise. Hoist PHI nodes in
10370 if-converted form using COND_EXPRs.
10371 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
10372 (tree_ssa_lim): Likewise.
10373 * tree-flow.h (tree_ssa_lim): Adjust prototype.
10374 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
10376 2010-05-06 Richard Guenther <rguenther@suse.de>
10378 PR tree-optimization/43987
10379 * tree-ssa-structalias.c (could_have_pointers): For possibly
10380 address-taken variables force pointers to be recorded.
10381 (create_variable_info_for_1): Likewise.
10382 (push_fields_onto_fieldstack): Pass in wheter all fields
10383 must have pointers.
10384 (find_func_aliases): Query types instead of vars whether
10385 they contain pointers where appropriate.
10387 2010-05-06 Jan Hubicka <jh@suse.cz>
10389 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
10390 (record_reference, mark_address, mark_load, mark_store): Record
10392 (record_references_in_initializer): Update call of record_references.
10393 (rebuild_cgraph_edges): Remove all references before rebuiding.
10394 * cgraph.c (cgraph_create_node): Clear ref list.
10395 (cgraph_remove_node): Remove references.
10396 (dump_cgraph_node): Dump references.
10397 (cgraph_clone_node): Clone references.
10398 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
10399 (struct cgraph_node, varpool_node): Add ref_lst.
10400 * ipa-ref.c: New file.
10401 * ipa-ref.h: New file.
10402 * ipa-ref-inline.h: New file.
10403 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
10404 (referenced_from_other_partition_p): New function.
10405 (lto_output_varpool_node): Take set arugment; call
10406 referenced_from_other_partition.
10407 (lto_output_ref): New.
10408 (add_references): New.
10409 (output_refs): New.
10410 (output_cgraph): Compute boundary based on references; output refs.
10411 (output_varpool): Accept cgraph_node_set argument.
10414 (input_cgraph): Call input_refs.
10415 * lto-section-in.c (lto_section_name): Add refs.
10416 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
10417 (ipa-ref.o): New file.
10418 * varpool.c (varpool_node): Clear ipa ref list.
10419 (varpool_remove_node): Remove references.
10420 (dump_varpool_node): Dump references.
10421 (varpool_assemble_decl): Only compile finalized ones.
10422 (varpool_extra_name_alias): Initialize ref list.
10423 * lto-streamer.c (lto-get_section_name): Add .refs section.
10424 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
10425 (referenced_from_other_partition_p): Declared.
10427 2010-05-06 Ira Rosen <irar@il.ibm.com>
10429 PR tree-optimization/43901
10430 * tree-vect-stmts.c (vectorizable_call): Assert that vector
10431 type is not NULL if it's transformation phase, and return
10432 FALSE if it's analysis.
10433 (vectorizable_conversion, vectorizable_operation,
10434 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
10436 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
10438 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
10440 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
10442 * config/mips/mips-protos.h
10443 (mips_small_register_classes_for_mode_p): Delete prototype.
10445 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
10447 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
10448 * config/arm/arm.c (multiple_operation_profitable_p,
10449 compute_offset_order): New static functions.
10450 (load_multiple_sequence, store_multiple_sequence): Use them.
10451 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
10452 memory offsets, not register numbers.
10453 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
10455 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
10457 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
10458 (get_pending_sizes, put_pending_size, put_pending_sizes):
10459 Update the uses of pending_sizes.
10460 * c-decl.c (store_parm_decls): Likewise.
10461 * c-tree.h (struct c_arg_info): Likewise.
10462 * tree.h: Update the prototype for get_pending_sizes and
10465 2010-05-05 Jason Merrill <jason@redhat.com>
10468 * c-common.c (handle_aligned_attribute): Respect
10469 ATTR_FLAG_TYPE_IN_PLACE.
10472 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
10473 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10474 (TARGET_INITIALIZER): Use it.
10475 * c-common.c (attribute_takes_identifier_p): Call it.
10476 * c-common.h: Update prototype.
10477 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
10478 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10480 2010-05-05 Jakub Jelinek <jakub@redhat.com>
10483 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
10484 DW_ID_down_case for Fortran compilation units.
10486 2010-05-05 Jan Hubicka <jh@suse.cz>
10488 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
10491 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
10493 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
10494 a variable-sized RESULT_DECL.
10496 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
10498 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
10500 2010-05-05 Jason Merrill <jason@redhat.com>
10503 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
10505 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
10507 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
10508 Jakub Jelinek <jakub@redhat.com>
10511 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
10512 (dead_debug_init, dead_debug_finish): New functions.
10513 (dead_debug_add, dead_debug_insert_before): Likewise.
10514 (df_note_bb_compute): Initialize a dead_debug object, add dead
10515 debug uses to it, insert debug bind insns before death insns,
10516 reset debug insns that refer to pending uses at the end.
10517 * rtl.h (make_debug_expr_from_rtl): New prototype.
10518 * varasm.c (make_debug_expr_from_rtl): New function.
10520 2010-05-05 Jan Hubicka <jh@suse.cz>
10522 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
10523 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
10524 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
10525 lto_varpool_encoder_deref, lto_varpool_encoder_size,
10526 lto_varpool_encoder_encode_initializer_p,
10527 lto_set_varpool_encoder_encode_initializer): New functions.
10528 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
10529 call output_varpool.
10530 (input_varpool_node): Do not always set analyzed.
10531 (input_cgraph_1): Return vector of cgraph nodes.
10532 (input_varpool_1): Return vector of varpools.
10533 (input_cgraph): Free the vectors.
10534 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10535 output only initializers needed.
10536 (lto_output): Only call output_cgraph.
10537 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
10538 * lto-section-out.c (lto_new_out_decl_state): Initialize
10539 state->varpool_node_encoder.
10540 * lto-streamer.h (lto_varpool_encoder_d): New.
10541 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
10542 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
10543 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
10544 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
10545 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
10547 (output_varpool, input_varpool): Remove declarations.
10549 2010-05-05 Jan Hubicka <jh@suse.cz>
10551 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
10552 with body can prevail.
10554 2010-05-05 Jan Hubicka <jh@suse.cz>
10556 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
10559 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10561 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
10563 * gengtype.h (erro_at_line): Constify pos argument.
10565 * gengtype.c: Include hashtab.h.
10566 (enum gc_used): Document GC_MAYBE_POINTED_TO.
10567 (error_at_line): Constify pos argument.
10568 (do_typedef): Initialize p->opt field.
10569 (get_file_gtfilename): Fix comment typo.
10570 (struct walk_type_data): Constify line field.
10571 (get_output_file_for_structure): New function.
10572 (write_local_func_for_structure): Constify orig_s argument.
10573 Use get_output_file_for_structure.
10574 (write_func_for_structure): Use get_output_file_for_structure.
10575 (INDENT): New define.
10576 (dump_pair, dump_type, dump_type_list, dump_typekind)
10577 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
10578 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
10580 (seen_types): New variable.
10581 (main): New variable do_dump. Process "-d" command line option.
10582 Call dump_everything if dump requested.
10584 2010-05-05 Jakub Jelinek <jakub@redhat.com>
10586 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
10587 in a temporary instead of invoking the macro multiple times.
10588 (track_expr_p): Likewise.
10590 2010-05-04 Neil Vachharajani <nvachhar@google.com>
10592 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
10594 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
10595 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
10596 conditions for printing notes.
10597 * common.opt (-Wcoverage-mismatch): Allow negative, default to
10598 true, update documentation.
10599 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
10601 2010-05-04 Jakub Jelinek <jakub@redhat.com>
10604 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
10607 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
10610 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
10611 (*sse_prologue_save_insn1): Likewise.
10612 (SSE prologue save splitter): Likewise.
10614 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
10616 * tree.c (free_lang_data_in_one_sizepos): New inline function.
10617 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
10618 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
10619 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
10620 all decls. Call it on DECL_FIELD_OFFSET of fields.
10621 (find_decls_types_r): Follow DECL_VALUE_EXPR.
10622 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
10624 2010-05-04 Martin Jambor <mjambor@suse.cz>
10626 * tree-sra.c (build_access_from_expr_1): The first parameter type
10627 changed to simple tree.
10628 (build_access_from_expr): Likewise, gsi parameter was eliminated.
10629 (scan_assign_result): Renamed to assignment_mod_result, enum elements
10631 (build_accesses_from_assign): Removed all parameters except for a
10632 simple gimple statement. Now returns a simple bool.
10633 (scan_function): All non-analysis parts moved to separate functions
10634 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
10635 parameters and updated both callers.
10636 (sra_modify_expr): Removed parameter data.
10637 (sra_modify_function_body): New function.
10638 (perform_intra_sra): Call sra_modify_function_body to modify the
10640 (replace_removed_params_ssa_names): Parameter data changed into
10641 adjustments vector.
10642 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
10643 changed the parameter dont_convert to convert with the opposite
10645 (sra_ipa_modify_assign): Parameter data changed into adjustments
10646 vector, return value changed to bool.
10647 (ipa_sra_modify_function_body): New function.
10648 (sra_ipa_reset_debug_stmts): Updated a comment.
10649 (modify_function): Use ipa_sra_modify_function_body to modify function
10652 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
10654 PR middle-end/43671
10655 * alias.c (true_dependence): Handle the same VALUE in x and mem.
10656 (canon_true_dependence): Likewise.
10657 (write_dependence_p): Likewise.
10659 2010-05-04 Jan Hubicka <jh@suse.cz>
10661 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
10662 * cgraphbuild.c: Include ipa-utils.h
10663 (record_reference_ctx): New struct.
10664 (record_reference): Simplify to work on initializers; not statements.
10665 (mark_address, mark_load, mark_store): New.
10666 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
10667 walk PHI nodes too.
10668 (record_references_in_initializer): Update use of record_reference.
10669 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
10670 walk PHI nodes too.
10672 2010-05-04 Jan Hubicka <jh@suse.cz>
10674 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
10675 node will be removed anyway.
10676 (lto_varpool_replace_node): Allow also unanalyzed nodes;
10677 relink aliases of node into prevailing node.
10678 * varpool.c (varpool_remove_node): Remove aliases properly;
10679 when removing node, remove all its aliases too; remove DECL_INITIAL
10680 of removed node; ggc_free the varpool node.
10682 2010-05-04 Richard Guenther <rguenther@suse.de>
10684 PR tree-optimization/43879
10685 * tree-ssa-structalias.c (alias_get_name): Use
10686 DECL_ASSEMBLER_NAME if available.
10687 (create_function_info_for): Return the varinfo node.
10688 (ipa_pta_execute): Associate same-body aliases and extra names
10689 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
10691 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
10693 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
10695 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
10698 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
10699 only if HONOR_REG_ALLOC_ORDER is not defined.
10701 2010-05-04 Richard Guenther <rguenther@suse.de>
10703 PR tree-optimization/43949
10704 * tree-vrp.c (extract_range_from_binary_expr): Only handle
10707 2010-04-26 Jason Merrill <jason@redhat.com>
10709 * c.opt (-fstrict-enums): New.
10710 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
10712 2010-05-03 David Ung <davidu@mips.com>
10713 James E. Wilson <wilson@codesourcery.com>
10715 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
10716 emit the trap instruction before the divide for TUNE_74K.
10718 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
10720 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
10721 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
10722 based on the above, for new target hook.
10724 * hooks.c (hook_bool_mode_true): New generic hook.
10725 * hooks.h (hook_bool_mode_true): Add prototype.
10727 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
10729 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
10730 target hook, set to hook_bool_mode_false.
10731 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
10732 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
10733 with targetm.small_register_classes_for_mode_p.
10734 (find_reusable_reload): Likewise.
10735 (combine_reloads): Likewise.
10736 * reload1.c (reload_as_needed): Likewise.
10737 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
10738 * ifcvt.c (noce_process_if_block, check_cond_move_block,
10739 dead_or_predicable): Likewise.
10740 * regmove.c (optimize_reg_copy_1): Likewise.
10741 * calls.c (prepare_call_address): Likewise.
10742 (precompute_register_parameters): Likewise.
10744 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
10746 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
10747 implementation of the hook that considers all register classes
10748 small except for SH64.
10749 (sh_override_options): Use the new hook.
10750 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
10753 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
10755 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
10756 implementation of the hook that considers all register classes
10758 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
10761 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
10763 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
10764 implementation of the hook that considers all register classes
10766 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
10769 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
10771 * config/m32c/m32c.h: Likewise.
10772 * config/pdp11/pdp11.h: Likewise.
10773 * config/avr/avr.h: Likewise.
10774 * config/xtensa/xtensa.h: Likewise.
10775 * config/m68hc11/m68hc11.h: Likewise.
10776 * config/mn10300/mn10300.h: Likewise.
10777 * config/mcore/mcore.h: Likewise.
10778 * config/h8300/h8300.h: Likewise.
10779 * config/bfin/bfin.h: Likewise.
10781 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
10782 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
10784 2010-05-03 Anatoly Sokolov <aesok@post.ru>
10786 * double-int.h (tree_to_double_int): Remove macro.
10787 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
10788 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
10789 (tree_to_double_int): New function.
10790 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
10792 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
10794 2010-05-03 Richard Guenther <rguenther@suse.de>
10796 PR tree-optimization/43971
10797 * tree-ssa-structalias.c (get_constraint_for_1): Fix
10798 constraints in the !flag_delete_null_pointer_checks case.
10800 2010-05-03 Jakub Jelinek <jakub@redhat.com>
10803 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
10804 result mode matches original rtl mode.
10806 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
10809 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
10811 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10813 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
10814 when processing flag options.
10816 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10818 * gcov-iov.c (main): Change format string placeholder
10819 from %#08x to 0x%08x.
10820 * genchecksum.c (dosum): Change format string placeholder
10821 from %#02x to 0x%02x.
10823 2010-05-02 Richard Guenther <rguenther@suse.de>
10825 PR tree-optimization/43879
10826 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
10828 2010-05-02 Bruno Haible <bruno@clisp.org>
10830 * doc/extend.texi (Function Attributes): Fix a typo.
10832 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10835 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
10836 placeholder from 0x%x to %#x.
10837 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
10838 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
10839 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
10840 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
10841 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
10842 * config/i386/i386.c (ix86_target_string): Ditto.
10843 * config/i386/i386.c (output_pic_addr_const): Ditto.
10844 (print_operand): Ditto.
10846 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10848 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
10849 placeholder from 0x%x to %#x.
10850 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
10851 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
10852 (ASM_OUTPUT_DEBUG_DATA): Ditto.
10853 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
10854 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
10855 * optc-gen.awk: Ditto.
10856 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
10857 (HOST_WIDE_INT_PRINT_HEX): Ditto.
10858 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
10859 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
10861 2010-05-01 Anatoly Sokolov <aesok@post.ru>
10863 * target.h (struct calls): Add function_value_regno_p field.
10864 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
10865 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
10866 * targhooks.c (default_function_value_regno_p): New function.
10867 * targhooks.h (default_function_value_regno_p): Declare function.
10868 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
10869 * builtins.c. (apply_result_size): (Ditto.).
10870 * combine.c. (likely_spilled_retval_p): (Ditto.).
10871 * mode-switching.c. Include 'target.h'.
10872 (create_pre_exit): Use function_value_regno_p hook.
10873 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
10874 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
10875 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
10877 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
10878 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
10879 (ix86_function_value_regno_p): Declare as static, change argument
10880 type to const unsigned int.
10881 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
10883 2010-05-01 Richard Guenther <rguenther@suse.de>
10885 PR tree-optimization/43949
10886 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
10888 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
10890 2010-05-01 Anatoly Sokolov <aesok@post.ru>
10892 * rtl.h (CONST_DOUBLE_P): Define.
10893 (rtx_to_double_int): Declare.
10894 * emit-rtl.c (rtx_to_double_int): New function.
10895 * dwarf2out.c (insert_double): New function.
10896 (loc_descriptor, add_const_value_attribute): Clean up, use
10897 rtx_to_double_int and insert_double functions.
10899 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
10901 * doc/extend.texi (Inline): Add missing return keyword to examples.
10902 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
10905 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
10907 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
10908 the variable part of the offset as well. Use highest_pow2_factor for
10909 all alignment checks.
10911 2010-04-30 Richard Guenther <rguenther@suse.de>
10913 PR tree-optimization/43879
10914 * tree-ssa-structalias.c (type_could_have_pointers): Functions
10917 2010-04-30 Jan Hubicka <jh@suse.cz>
10919 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
10921 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
10923 2010-04-30 Jan Hubicka <jh@suse.cz>
10925 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
10927 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
10928 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
10929 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
10930 cgraph_node_set_needs_ltrans_p): Remove.
10932 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
10934 * sdbout.c: Include vec.h, do not include varray.h.
10935 (deferred_global_decls, sdbout_global_decl,
10936 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
10937 * toplev.c: Do not include varray.h.
10938 (dump_memory_report): Do not dump VARRAY statistics.
10939 * gengtype.c (open_base_file): Ignore varray.h.
10940 * Makefile.in: Update for abovementioned changes.
10941 Remove all traces of varray.c and varray.h.
10942 * varray.c: Remove file.
10943 * varray.h: Remove file.
10945 2010-04-30 Jan Hubicka <jh@suse.cz>
10947 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
10950 2010-04-30 Jan Hubicka <jh@suse.cz>
10952 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
10955 2010-04-30 Richard Guenther <rguenther@suse.de>
10957 * tree-ssa-structalias.c (get_constraint_for_1): Generate
10958 constraints for CONSTRUCTOR.
10960 2010-04-30 Richard Guenther <rguenther@suse.de>
10963 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
10964 first after all lowering passes.
10966 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
10968 * toplev.c: Include varray.h for statistics dumping.
10969 * tree.h: Do not declare varray_head_tag.
10970 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
10971 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
10972 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
10973 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
10974 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
10975 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
10976 c-common.c, c-common.h, reg-stack.c, basic-block.h,
10977 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
10979 * Makefile.in: Update for abovementioned changes.
10981 2010-04-30 Jakub Jelinek <jakub@redhat.com>
10984 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
10986 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
10988 * config/picochip/picochip.c (picochip_legitimize_address): Define.
10989 Use this function to do machine-specific conversion.
10990 (picochip_legitimize_reload_address): Likewise.
10991 (picochip_legitimate_address_p): Check valid base register only if
10993 (picochip_check_conditional_copy): Check for modw only if opnd is
10995 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
10996 to call the function in c.
10997 * config/picochip/picochip-protos.h
10998 (picochip_legitimize_reload_address): Define.
10999 * config/picochip/picochip.md (supported_compare1): Define.
11001 2010-04-30 Jan Hubicka <jh@suse.cz>
11003 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
11004 (cgraph_global_info): Remove inlined.
11005 (LTO_cgraph_tag_names): Remove.
11006 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
11007 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
11008 simplify cgraph tags and document.
11009 (lto_output_node): Use only LTO_cgraph_unavail_node and
11010 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
11011 for_functions_valid, global info, process and output flags.
11012 (input_overwrite_node): Initialize estimated stack size and
11013 estimated growth. Do not read flags we no longer store.
11014 (input_node): Likewise do not read info no longer stored.
11015 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
11018 2010-04-30 Richard Guenther <rguenther@suse.de>
11020 PR tree-optimization/43879
11021 * tree-ssa-structalias.c (get_constraint_for_1): Properly
11022 handle non-zero initializers.
11024 2010-04-30 Richard Guenther <rguenther@suse.de>
11026 * builtins.c (fold_builtin_1): Delete free (0).
11028 2010-04-29 Jan Hubicka <jh@suse.cz>
11030 * gengtype.c (open_base_files): Add lto-streamer.h
11031 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
11032 (pass_ipa_cp): GGC collect.
11033 * toplev. (compile_file): Do not output symbols.
11034 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
11035 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
11036 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
11037 * lto-section-in.c: Include ggc.h
11038 (lto_new_in_decl_state): Alloc in GGC.
11039 (lto_delete_in_decl_state): Likewise.
11040 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
11043 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
11046 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
11047 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
11048 (HONOR_REG_ALLOC_ORDER): Describe new macro.
11049 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
11050 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
11051 account only if HONOR_REG_ALLOC_ORDER is not defined.
11052 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
11053 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
11055 2010-04-29 Jon Grant <04@jguk.org>
11057 * collect2.c (vflag): Change type from int to bool.
11059 (helpflag): New global bool.
11060 (main): Set vflag and debug with boolean, not integer truth values.
11061 Accept new "--help" option and output usage text if found.
11062 * collect2.h (vflag): Update prototype.
11065 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
11068 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
11070 2010-04-29 Richard Guenther <rguenther@suse.de>
11073 * plugin.h (invoke_plugin_callbacks): Annotate arguments
11074 with ATTRIBUTE_UNUSED.
11076 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
11079 * config/i386/i386.c (get_some_local_dynamic_name): Replace
11080 INSN_P with NONDEBUG_INSN_P.
11081 (distance_non_agu_define): Likewise.
11082 (distance_agu_use): Likewise.
11084 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
11086 From Dominique d'Humieres <dominiq@lps.ens.fr>
11088 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
11091 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
11093 * plugin.h (invoke_plugin_callbacks): New inline function.
11094 * plugin.c (flag_plugin_added): New global flag.
11095 (add_new_plugin): Initialize above flag.
11096 (invoke_plugin_callbacks): Rename to ...
11097 (invoke_plugin_callbacks_full): ... this.
11099 2010-04-28 Jan Hubicka <jh@suse.cz>
11101 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
11102 (lto_varpool_replace_node): New.
11103 (lto_symtab_resolve_symbols): Resolve varpool nodes.
11104 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
11105 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
11106 * cgraph.h (varpool_node_ptr): New type.
11107 (varpool_node_ptr): New vector.
11108 (varpool_node_set_def): New structure.
11109 (varpool_node_set): New type.
11110 (varpool_node_set): New vector.
11111 (varpool_node_set_element_def): New structure.
11112 (varpool_node_set_element, const_varpool_node_set_element): New types.
11113 (varpool_node_set_iterator): New type.
11114 (varpool_node): Add prev pointers, add used_from_other_partition,
11115 in_other_partition.
11116 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
11117 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
11118 varpool_get_node, varpool_remove_node): Declare.
11119 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
11120 varpool_node_set_size): New inlines.
11121 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
11122 * tree-pass.h (varpool_node_set_def): Forward declare.
11123 (ipa_opt_pass_d): Summary writting takes vnode sets too.
11124 (ipa_write_optimization_summaries): Update prototype.
11125 * ipa-cp.c (ipcp_write_summary): Update.
11126 * ipa-reference.c (ipa_reference_write_summary): Update.
11127 * lto-cgraph.c (lto_output_varpool_node): New static function.
11128 (output_varpool): New function.
11129 (input_varpool_node): New static function.
11130 (input_varpool_1): New function.
11131 (input_cgraph): Input varpool.
11132 * ipa-pure-const.c (pure_const_write_summary): Update.
11133 * lto-streamer-out.c (lto_output): Update, output varpool too.
11134 (write_global_stream): Kill WPA hack.
11135 (produce_asm_for_decls): Update.
11136 (output_alias_pair_p): Handle variables.
11137 (output_unreferenced_globals): Output only needed partition of varpool.
11138 * ipa-inline.c (inline_write_summary): Update.
11139 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
11141 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
11142 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
11143 varpool_node_set_new, varpool_node_set_add,
11144 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
11145 debug_varpool_node_set): New functions.
11146 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
11147 (execute_one_pass): Process new decls too.
11148 (ipa_write_summaries_2): Pass around vsets.
11149 (ipa_write_summaries_1): Likewise.
11150 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
11152 (ipa_write_optimization_summaries_1): Pass around vsets.
11153 (ipa_write_optimization_summaries): Likewise.
11154 * varpool.c (varpool_get_node): New.
11155 (varpool_node): Update doubly linked lists.
11156 (varpool_remove_node): New.
11157 (dump_varpool_node): More dumping.
11158 (varpool_enqueue_needed_node): Update doubly linked lists.
11159 (decide_is_variable_needed): Kill ltrans hack.
11160 (varpool_finalize_decl): Kill lto hack.
11161 (varpool_assemble_decl): Skip decls in other partitions.
11162 (varpool_assemble_pending_decls): Update doubly linkes lists.
11163 (varpool_empty_needed_queue): Likewise.
11164 (varpool_extra_name_alias): Likewise.
11165 * lto-streamer.c (lto_get_section_name): Add vars section.
11166 * lto-streamer.h (lto_section_type): Update.
11167 (output_varpool, input_varpool): Declare.
11169 2010-04-28 Mike Stump <mikestump@comcast.net>
11171 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
11173 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
11175 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
11176 record or union type with RECORD_OR_UNION_TYPE_P predicate.
11177 (lto_input_ts_type_tree_pointers): Likewise.
11178 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
11179 (lto_output_ts_type_tree_pointers): Likewise.
11181 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
11183 Uniquization of constants at the Tree level
11184 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
11185 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
11187 (tree_output_constant_def): Declare.
11188 * gimplify.c (gimplify_init_constructor): When using block copy, first
11189 uniquize the constant constructor on the RHS.
11190 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
11191 DECL_IN_CONSTANT_POOL flag.
11192 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
11193 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
11195 (assemble_variable): Deal with symbols belonging to the tree constant
11197 (get_constant_section): Add ALIGN parameter and simplify.
11198 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
11199 (assemble_constant_contents): Use the expression of the VAR_DECL.
11200 (output_constant_def_contents): Use the alignment of the VAR_DECL.
11201 (tree_output_constant_def): New global function.
11202 (mark_constant): Use the expression of the VAR_DECL.
11203 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
11205 (output_object_block): Likewise and assemble the expression.
11207 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
11209 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
11210 hash_tree, eq_tree): New tree hash table.
11211 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
11212 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
11213 lto_orig_address_remove): Reimplement.
11215 2010-04-28 Xinliang David Li <davidxl@google.com>
11218 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
11219 (compute_uninit_opnds_pos): New function.
11220 (is_non_loop_exit_postdominating): New function.
11221 (compute_control_dep_chain): New function.
11222 (find_pdom): New function.
11223 (convert_control_dep_chain_into_preds): New function.
11224 (find_predicates): New function.
11225 (find_control_equiv_block): New function.
11226 (collect_phi_def_edges): New function.
11227 (find_def_preds): New function.
11228 (find_dom): New function.
11229 (dump_predicates): New function.
11230 (get_cmp_code): New function.
11231 (is_value_included_in): New function.
11232 (find_matching_predicate_in_rest_chains): New function.
11233 (use_pred_not_overlap_with_undef_path_pred): New function.
11234 (is_use_properly_guarded): New function.
11235 (normalize_cond_1): New function.
11236 (is_and_or_or): New function.
11237 (normalize_cond): New function.
11238 (is_gcond_subset_of): New function.
11239 (is_subset_of_any): New function.
11240 (is_or_set_subset_of): New function.
11241 (is_and_set_subset_of): New function.
11242 (is_norm_cond_subset_of): New function.
11243 (is_pred_expr_subset_of): New function.
11244 (is_pred_chain_subset_of): New function.
11245 (is_included_in): New function.
11246 (is_superset_of): New function.
11247 (find_uninit_use): New function.
11248 (warn_uninitialized_phi): New function.
11249 (compute_possibly_undefined_names): New function.
11250 (ssa_undefined_value_p): New function.
11251 (execute_late_warn_uninitialized): New function.
11252 * tree-ssa.c (ssa_undefined_value_p): Removed.
11253 (warn_uninit): Changed to extern.
11254 (warn_uninitialized_phi): Removed.
11255 (warn_uninitialized_vars): Changed to extern.
11256 (execute_late_warn_uninitialized): Removed
11257 * tree-flow.h: Add new prototypes.
11258 * timevar.def: Add new time variable.
11259 * Makefile.in: Add new build file.
11261 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
11263 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
11266 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11269 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
11271 2010-04-28 Martin Jambor <mjambor@suse.cz>
11273 * cgraph.h (struct cgraph_node): New field indirect_calls.
11274 (struct cgraph_indirect_call_info): New type.
11275 (struct cgraph_edge): Removed field indirect_call. New fields
11276 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
11277 (cgraph_create_indirect_edge): Declare.
11278 (cgraph_make_edge_direct): Likewise.
11279 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
11280 * ipa-prop.h (struct ipa_param_call_note): Removed.
11281 (struct ipa_node_params): Removed field param_calls.
11282 (ipa_create_all_structures_for_iinln): Declare.
11283 * cgraph.c: Described indirect edges and uids in initial comment.
11284 (cgraph_add_edge_to_call_site_hash): New function.
11285 (cgraph_edge): Search also among the indirect edges, use
11286 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
11287 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
11288 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
11290 (initialize_inline_failed): Assign a reason to indirect edges.
11291 (cgraph_create_edge_1): New function.
11292 (cgraph_create_edge): Moved some functionality to
11293 cgraph_create_edge_1.
11294 (cgraph_create_indirect_edge): New function.
11295 (cgraph_edge_remove_callee): Add an assert checking for
11297 (cgraph_edge_remove_caller): Special-case indirect edges.
11298 (cgraph_remove_edge): Likewise.
11299 (cgraph_set_edge_callee): New function.
11300 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
11301 (cgraph_make_edge_direct): New function.
11302 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
11303 the declaration of the call statement matches.
11304 (cgraph_node_remove_callees): Special-case indirect edges.
11305 (cgraph_clone_edge): Likewise.
11306 (cgraph_clone_node): Clone also the indirect edges.
11307 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
11308 indirect_call, dump count of indirect_calls edges.
11309 * ipa-prop.c (iinlining_processed_edges): New variable.
11310 (ipa_note_param_call): Create indirect edges instead of
11311 creating notes. New parameter node.
11312 (ipa_analyze_call_uses): New parameter node, pass it on to
11313 ipa_note_param_call.
11314 (ipa_analyze_stmt_uses): Likewise.
11315 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
11316 (print_edge_addition_message): Work on edges rather than on notes.
11317 (update_call_notes_after_inlining): Likewise, renamed to
11318 update_indirect_edges_after_inlining.
11319 (ipa_create_all_structures_for_iinln): New function.
11320 (ipa_free_node_params_substructures): Do not free notes.
11321 (ipa_edge_duplication_hook): Propagate bits within
11322 iinlining_processed_edges bitmap.
11323 (ipa_node_duplication_hook): Do not duplicate notes.
11324 (free_all_ipa_structures_after_ipa_cp): Renamed to
11325 ipa_free_all_structures_after_ipa_cp.
11326 (free_all_ipa_structures_after_iinln): Renamed to
11327 ipa_free_all_structures_after_iinln.
11328 (ipa_write_param_call_note): Removed.
11329 (ipa_read_param_call_note): Removed.
11330 (ipa_write_indirect_edge_info): New function.
11331 (ipa_read_indirect_edge_info): Likewise.
11332 (ipa_write_node_info): Do not stream notes, do stream information
11334 (ipa_read_node_info): Likewise.
11335 (lto_ipa_fixup_call_notes): Removed.
11336 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
11337 * ipa-inline.c (pass_ipa_inline): Likewise.
11338 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
11339 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
11340 * tree-inline.c (copy_bb): Removed an unnecessary double check for
11342 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
11344 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
11345 (output_cgraph): Stream also indirect edges.
11346 (lto_output_edge): Added capability to stream indirect edges.
11347 (input_edge): Likewise.
11348 (input_cgraph_1): Likewise.
11349 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
11352 2010-04-28 Richard Guenther <rguenther@suse.de>
11354 PR tree-optimization/43879
11355 PR tree-optimization/43909
11356 * tree-ssa-structalias.c (struct variable_info): Add
11357 only_restrict_pointers flag.
11358 (new_var_info): Initialize it. Increment stats.total_vars here.
11359 (create_function_info_for): Do not increment stats.total_vars here.
11360 (get_function_part_constraint): Fix build with C++.
11361 (insert_into_field_list): Remove.
11362 (push_fields_onto_fieldstack): Properly merge fields.
11363 (create_variable_info_for): Split and simplify.
11364 (create_variable_info_for_1): New piece.
11365 (intra_create_variable_infos): Properly make restrict constraints
11368 2010-04-28 Richard Guenther <rguenther@suse.de>
11371 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
11373 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
11374 Jan Hubicka <hubicka@ucw.cz>
11376 * doc/invoke.texi (-Wsuggest-attribute=const,
11377 -Wsuggest-attribute=pure): Document.
11378 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
11379 (function_always_visible_to_compiler_p,
11380 suggest_attribute, warn_function_pure, warn_function_const):
11382 (check_call): Improve debug info.
11383 (analyze_function): Do not check availability.
11384 (add_new_function): Check availability.
11385 (propagate): Output warnings.
11386 (skip_function_for_local_pure_const): New function.
11387 (local_pure_const): Use it; output warnings.
11388 * common.opt (Wsuggest-attribute=const,
11389 Wsuggest-attribute=pure): New.
11391 2010-04-27 Jakub Jelinek <jakub@redhat.com>
11393 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
11394 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
11395 or DW_CFA_def_cfa_offset{,_sf}.
11397 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
11399 * tree.h: Fix truncated long macros.
11401 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
11403 * collect2.c (TARGET_64BIT): Redefine to target's default.
11404 * tlink.c: Likewise.
11405 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
11406 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
11407 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
11408 for underscoring __USER_LABEL_PREFIX__.
11409 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
11410 (SUB_LINK_ENTRY32): New.
11411 (SUB_LINK_ENTRY64): New.
11412 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
11413 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
11414 (SUB_LINK_ENTRY64): New.
11415 (SUB_LINK_ENTRY): New.
11416 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
11417 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
11418 x64 target is choosen.
11419 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
11420 * configure: Regenerated.
11421 * configure.ac (leading-mingw64-underscores): Option added.
11423 2010-04-27 Jan Hubicka <jh@suse.cz>
11425 * doc/invoke.texi (-fipa-profile): Document.
11426 * opts.c (decode_options): Enable ipa-profile at -O1.
11427 * timevar.def (TV_IPA_PROFILE): Define.
11428 * common.opt (fipa-profile): Add.
11429 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
11431 (cgraph_propagate_frequency): Handle only local ones.
11432 * tree-pass.h (pass_ipa_profile): Declare.
11433 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
11434 (pass_ipa_profile): Use TV_IPA_PROFILE.
11435 * ipa.c (ipa_profile): New function.
11436 (gate_ipa_profile): Likewise.
11437 (pass_ipa_profile): New global variable.
11438 * passes.c (pass_ipa_profile): New.
11440 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
11442 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
11444 2010-04-27 Martin Jambor <mjambor@suse.cz>
11446 PR middle-end/43812
11447 * ipa.c (dissolve_same_comdat_group_list): New function.
11448 (function_and_variable_visibility): Call
11449 dissolve_same_comdat_group_list when comdat group contains external or
11451 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
11452 lists are circular and that they contain only DECL_ONE_ONLY nodes.
11454 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
11456 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
11457 (const_hash_1) <VECTOR_CST>: New case.
11458 (compare_constant) <VECTOR_CST>: Likewise.
11459 <ADDR_EXPR>: Deal with LABEL_REFs.
11460 (copy_constant) <VECTOR_CST>: New case.
11462 2010-04-27 Jan Hubicka <jh@suse.cz>
11464 * cgraph.c (cgraph_propagate_frequency): New function.
11465 * cgraph.h (cgraph_propagate_frequency): Declare.
11466 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
11467 cgraph_propagate_frequency.
11469 2010-04-27 Jakub Jelinek <jakub@redhat.com>
11471 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
11473 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
11476 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
11477 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
11478 here to determine which regs to push and how much stack to reserve.
11480 2010-04-27 Jie Zhang <jie@codesourcery.com>
11482 * doc/gimple.texi (gimple_statement_with_ops): Remove
11483 addresses_taken field.
11484 (gimple_statement_with_memory_ops): Likewise.
11486 2010-04-27 Jan Hubicka <jh@suse.cz>
11488 * tree-inline.c (eni_inlining_weights): Remove.
11489 (estimate_num_insns): Special case more builtins.
11491 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
11494 * c-typeck.c (build_binary_op): Move forward check for comparison
11495 pointer with null pointer constant and adjust the diagnostic message.
11497 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
11500 * configure.ac (gcc_cv_as_section_has_align): Set if installed
11501 binutils supports extended .section directive needed by LTO, or
11502 warn if older binutils found.
11503 (LTO_BINARY_READER): New AC_SUBST'd variable.
11504 (LTO_USE_LIBELF): Likewise.
11505 * gcc/config.gcc (lto_binary_reader): New target-specific configure
11507 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
11508 (LTO_USE_LIBELF): Likewise.
11509 * configure: Regenerate.
11511 * collect2.c (is_elf): Rename from this ...
11512 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
11513 object files in addition to ELF-formatted ones.
11514 (scan_prog_file): Caller updated. Also allow for LTO info marker
11515 symbol to be prefixed or not by an extra underscore.
11517 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
11518 * config/i386/winnt.c: Also #include lto-streamer.h
11519 (i386_pe_asm_named_section): Specify 1-byte section alignment for
11520 LTO named sections.
11521 (i386_pe_asm_output_aligned_decl_common): Add comment.
11522 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
11524 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
11527 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
11528 Add missing earlyclobber for second alternative.
11530 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
11532 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
11533 bits for artificial defs at the top of the block.
11534 * fwprop.c (single_def_use_enter_block): Don't call it.
11536 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
11539 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
11540 instead of "$gcc_cv_objdump -T".
11541 Use "-undefined dynamic_lookup" on darwin.
11542 * gcc/configure: Regenerate.
11544 2010-04-26 Jakub Jelinek <jakub@redhat.com>
11547 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
11549 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
11551 * c-parser.c (struct c_token): Move location field up.
11552 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
11553 (struct c_declspecs): Convert typespec_word, storage_class, and
11554 default_int_p into bitfields.
11555 (struct c_declarator): Move loc field up.
11557 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
11559 * cfgloop.h (struct loop): Move can_be_parallel field up.
11560 * ipa-prop.h (struct ip_node_params): Move bitfields up.
11561 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
11563 (struct iv_cand): Convert pos field into a bitfield.
11564 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
11566 (struct _stmt_vec_info): Shuffle fields for better packing.
11568 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
11570 * varasm.c (IN_NAMED_SECTION): Remove guard.
11571 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
11572 (IN_NAMED_SECTION_P): ...this.
11573 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
11574 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
11576 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
11578 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
11579 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
11580 of shadowing it. Fix comments.
11582 2010-04-26 Jan Hubicka <jh@suse.cz>
11584 * cgraph.c (cgraph_create_node): Set node frequency to normal.
11585 (cgraph_clone_node): Copy function frequency.
11586 * cgraph.h (node_frequency): New enum
11587 (struct cgraph_node): Add.
11588 * final.c (rest_of_clean_state): Update.
11589 * lto-cgraph.c (lto_output_node): Output node frequency.
11590 (input_overwrite_node): Input node frequency.
11591 * tre-ssa-loop-ivopts (computation_cost): Update.
11592 * lto-streamer-out.c (output_function): Do not output function
11594 * predict.c (maybe_hot_frequency_p): Update and handle functions
11596 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
11598 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
11599 (compute_function_frequency): Set noreturn functions to be executed
11601 (choose_function_section): Update.
11602 * lto-streamer-in.c (input_function): Do not input function frequency.
11603 * function.c (allocate_struct_function): Do not initialize function
11605 * function.h (function_frequency): Remove.
11606 (struct function): Remove function frequency.
11607 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
11608 (try_update): Update.
11609 * tree-inline.c (initialize_cfun): Do not update function frequency.
11610 * passes.c (pass_init_dump_file): Update.
11611 * i386.c (ix86_compute_frame_layout): Update.
11612 (ix86_pad_returns): Update.
11614 2010-04-26 Jie Zhang <jie@codesourcery.com>
11616 PR tree-optimization/43833
11617 * tree-vrp.c (range_int_cst_p): New.
11618 (range_int_cst_singleton_p): New.
11619 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
11620 when both operands are constants. Use range_int_cst_p in
11623 2010-04-26 Jan Hubicka <jh@suse.cz>
11625 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
11627 2010-04-26 Richard Guenther <rguenther@suse.de>
11630 * gimple.c (gimple_decl_printable_name): Deal gracefully
11631 with a NULL DECL_NAME.
11633 2010-04-26 Richard Guenther <rguenther@suse.de>
11636 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
11637 if emitting debug information and it is either a function
11638 or a namespace decl.
11640 2010-04-26 Ira Rosen <irar@il.ibm.com>
11642 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
11643 determine if the statement is vectorizable, and a macro to access it.
11644 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11645 Skip statements that can't be vectorized. If the analysis fails,
11646 mark the statement as unvectorizable if vectorizing basic block.
11647 (vect_compute_data_refs_alignment): Likewise.
11648 (vect_verify_datarefs_alignment): Skip statements marked as
11649 unvectorizable. Add print.
11650 (vect_analyze_group_access): Skip statements that can't be
11651 vectorized. If the analysis fails, mark the statement as
11652 unvectorizable if vectorizing basic block.
11653 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
11654 * tree-vect-stmts.c (vectorizable_store): Fix the number of
11655 generated stmts for SLP.
11656 (new_stmt_vec_info): Initialize the new field.
11657 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
11658 statements marked as unvectorizable.
11660 2010-04-25 Joseph Myers <joseph@codesourcery.com>
11662 * c-common.c (flag_isoc1x): New.
11663 (flag_isoc99): Update comment.
11664 * c-common.h (flag_isoc1x): New.
11665 (flag_isoc99): Update comment.
11666 * c-cppbuiltin.c (builtin_define_float_constants): Also define
11667 __<type>_DECIMAL_DIG__.
11668 * c-opts.c (set_std_c1x): New.
11669 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
11670 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
11671 * c.opt (-std=c1x, -std=gnu1x): New options.
11672 * doc/cpp.texi: Mention -std=c1x.
11673 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
11674 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
11675 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
11676 * doc/standards.texi: Mention C1X.
11677 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
11678 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
11679 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
11682 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
11684 * config/i386/gmon-sol2.c (_mcleanup): Change format string
11685 placeholder from 0x%x to %#x.
11686 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
11687 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
11688 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
11689 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
11690 * config/i386/i386.c (ix86_target_string): Ditto.
11691 (output_pic_addr_const): Ditto.
11692 (print_operand): Ditto.
11694 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
11696 * combine.c (find_split_point): Add third argument. Use it
11697 to find nested multiply-accumulate instructions. Adjust calls.
11698 (try_combine): Adjust call to find_split_point.
11700 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
11702 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
11704 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
11706 PR tree-optimization/41442
11707 * fold-const.c (merge_truthop_with_opposite_arm): New function.
11708 (fold_binary_loc): Call it.
11710 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
11712 * toplev.c (general_init): Set default for fdiagnostics-show-option.
11713 * opts.c (common_handle_option): Allow disabling it.
11714 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
11716 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
11718 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
11719 between modes if both types are integral.
11721 2010-04-23 Richard Guenther <rguenther@suse.de>
11723 PR tree-optimization/43572
11724 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
11726 2010-04-23 Richard Guenther <rguenther@suse.de>
11729 * tree-inline.c (tree_can_inline_p): Also check compatibility
11732 2010-04-23 Martin Jambor <mjambor@suse.cz>
11734 PR tree-optimization/43846
11735 * tree-sra.c (struct access): New flag grp_assignment_read.
11736 (build_accesses_from_assign): Set grp_assignment_read.
11737 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
11738 (enum mark_read_status): New type.
11739 (analyze_access_subtree): Propagate grp_assignment_read, create
11740 accesses also if both direct_read and root->grp_assignment_read.
11742 2010-04-23 Martin Jambor <mjambor@suse.cz>
11744 PR middle-end/43835
11745 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
11746 function does not have type attributes.
11748 2010-04-23 Richard Guenther <rguenther@suse.de>
11751 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
11754 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11756 * sese.h (create_if_region_on_edge): Remove.
11758 * sese.c (create_if_region_on_edge): Make static.
11760 * tree-inline.c: Do not include ggc.h.
11762 * expr.c: Do not include ggc.h.
11764 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
11767 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
11770 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11771 in the middle of insns for casesi_worker_2.
11773 2010-04-22 David Edelsohn <edelsohn@gnu.org>
11775 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
11777 2010-04-22 Ira Rosen <irar@il.ibm.com>
11779 PR tree-optimization/43842
11780 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
11781 loop unrolling in update of exit phis. Fix comment.
11782 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
11783 least two reduction statements in the loop before starting SLP
11786 2010-04-22 Nick Clifton <nickc@redhat.com>
11788 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
11790 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
11792 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
11793 to simplify a + ~a.
11795 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11797 * tree-parloops.c (loop_parallel_p): New argument
11798 parloop_obstack. Pass it down.
11799 (parallelize_loops): New variable parloop_obstack. Initialize it,
11800 pass it down, free it.
11802 * tree-loop-linear.c (linear_transform_loops): Pass down
11805 * tree-data-ref.h (lambda_compute_access_matrices): New argument
11806 of type struct obstack *.
11808 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
11809 scratch_obstack. Initialize it, pass down, free it.
11811 * lambda.h (lambda_loop_new): Remove.
11812 (lambda_matrix_new, lambda_matrix_inverse)
11813 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
11814 argument of type struct obstack *.
11816 * lambda-trans.c (lambda_trans_matrix_new): New argument
11817 lambda_obstack. Pass it down, use obstack allocation for ret.
11818 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
11821 * lambda-mat.c (lambda_matrix_get_column)
11822 (lambda_matrix_project_to_null): Remove.
11823 (lambda_matrix_new): New argument lambda_obstack. Use obstack
11824 allocation for mat.
11825 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
11828 * lambda-code.c (lambda_loop_new): New function.
11829 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
11830 (lambda_compute_auxillary_space, lambda_compute_target_space)
11831 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
11832 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
11833 (build_access_matrix): New argument lambda_obstack. Use obstack
11835 (lambda_compute_step_signs, lambda_compute_access_matrices): New
11836 argument lambda_obstack. Pass it down.
11838 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
11840 * optabs.h (expand_widening_mult): Declare.
11842 2010-04-22 Richard Guenther <rguenther@suse.de>
11844 PR tree-optimization/43845
11845 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
11846 lookup the CALL_EXPR function and arguments.
11848 2010-04-22 Nick Clifton <nickc@redhat.com>
11850 * config/stormy16/stormy16.c
11851 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
11852 * config/stormy16/stormy16.h: Tidy up formatting.
11853 (DONT_USE_BUILTIN_SETJMP): Remove definition.
11854 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
11855 (ineqbranchsi): Delete pattern.
11856 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
11857 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
11858 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
11859 stormy16-lib2-ucmpsi2.c.
11861 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
11863 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
11864 df_simulate_find_noclobber_defs as appropriate. Keep track of an
11865 extra set merge_set_noclobber, and use it to relax the final test
11867 * df.h (df_simulate_find_noclobber_defs): Declare.
11868 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
11870 (df_simulate_find_noclobber_defs): New function.
11872 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
11874 * config/i386/i386.md: Use {} around multi-line preparation statements.
11876 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11878 * c-tree.h (push_init_level, pop_init_level, set_init_index)
11879 (process_init_element): New argument of type struct obstack *.
11881 * c-typeck.c (push_init_level, pop_init_level, set_designator)
11882 (set_init_index, set_init_label, set_nonincremental_init)
11883 (set_nonincremental_init_from_string, find_init_member)
11884 (output_init_element, output_pending_init_elements)
11885 (process_init_element): New argument braced_init_obstack. Pass it
11887 (push_range_stack, add_pending_init): New argument
11888 braced_init_obstack. Use obstack allocation.
11890 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
11891 braced_init_obstack. Pass it down.
11892 (c_parser_braced_init): New variables ret, braced_init_obstack.
11893 Initialize obstack, pass it down and finally free it.
11895 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
11897 PR middle-end/29274
11898 * tree-pass.h (pass_optimize_widening_mul): Declare.
11899 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
11900 gate_optimize_widening_mul): New static functions.
11901 (pass_optimize_widening_mul): New.
11902 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
11903 <case MULT_EXPR>: Remove support for widening multiplies.
11904 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
11905 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
11906 simplify_gen_unary rather than directly building extensions.
11907 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
11909 * expmed.c (expand_widening_mult): New function.
11910 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
11912 2010-04-21 Jan Hubicka <jh@suse.cz>
11914 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
11915 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
11916 * lto-wpa-fixup.c: Remove.
11917 * Makefile.in (lto-wpa-fixup.o): Remove.
11918 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
11919 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
11920 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
11922 2010-04-21 Jan Hubicka <jh@suse.cz>
11924 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
11925 add write_optimization_summary, read_optimization_summary.
11926 (ipa_write_summaries_of_cgraph_node_set): Remove.
11927 (ipa_write_optimization_summaries): Declare.
11928 (ipa_read_optimization_summaries): Declare.
11929 * ipa-cp.c (pass_ipa_cp): Update.
11930 * ipa-reference.c (pass_ipa_reference): Update.
11931 * ipa-pure-const.c (pass_ipa_pure_const): Update.
11932 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
11934 * ipa-inline.c (pass_ipa_inline): Update.
11935 * ipa.c (pass_ipa_whole_program): Update.
11936 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
11937 * passes.c (ipa_write_summaries_1): Do not test wpa.
11938 (ipa_write_optimization_summaries_1): New.
11939 (ipa_write_optimization_summaries): New.
11940 (ipa_read_summaries): Do not test ltrans.
11941 (ipa_read_optimization_summaries_1): New.
11942 (ipa_read_optimization_summaries): New.
11944 2010-04-21 Jan Hubicka <jh@suse.cz>
11946 * lto-cgraph.c (lto_output_node): Do not output comdat groups
11947 for boundary nodes.
11948 (output_cgraph): Do not arrange comdat groups for boundary nodes.
11950 2010-04-21 Jakub Jelinek <jakub@redhat.com>
11953 * dwarf2out.c (add_name_and_src_coords_attributes): Add
11954 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
11956 2010-04-21 Jan Hubicka <jh@suse.cz>
11958 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
11960 2010-04-21 Jan Hubicka <jh@suse.cz>
11962 * varpool.c (decide_is_variable_needed): Variable is always needed
11965 2010-04-21 Jan Hubicka <jh@suse.cz>
11967 * opts.c (decode_options): Enable pure-const pass for whopr.
11969 2010-04-21 Jan Hubicka <jh@suse.cz>
11971 * cgraph.c (dump_cgraph_node): Dump also assembler name.
11972 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
11974 (cgraph_decide_inlining): Do not expect callee to be removed in all
11977 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
11979 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
11981 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
11983 * config/i386/i386.md (x86_shrd): Add athlon_decode and
11984 amdfam10_decode attributes.
11986 2010-04-21 Jakub Jelinek <jakub@redhat.com>
11988 PR middle-end/43570
11989 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
11990 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
11991 (lower_copyprivate_clauses): Use private var in outer
11992 context instead of original var. Make sure the types
11993 are correct for VLAs.
11995 2010-04-21 Richard Guenther <rguenther@suse.de>
11997 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
11998 to non-pointer objects.
12000 2010-04-21 Jakub Jelinek <jakub@redhat.com>
12002 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
12003 last chain entry if it starts with the still current label.
12004 (add_location_or_const_value_attribute): Check that
12005 loc_list->first->next is NULL instead of comparing ->first with ->last.
12006 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
12007 to add_var_loc_to_decl.
12009 * dwarf2out.c (output_call_frame_info): For dw_cie_version
12010 >= 4 add also address size and segment size fields into CIE header.
12012 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
12013 long as address size is the same as sizeof (void *) and
12015 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
12016 address size or segment size is unexpected, return DW_EH_PE_omit.
12017 (classify_object_over_fdes): If get_cie_encoding returned
12018 DW_EH_PE_omit, return -1.
12019 (init_object): If classify_object_over_fdes returned -1,
12020 pretend there were no FDEs at all.
12022 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
12024 * config/i386/i386.md (bswap<mode>2): Macroize expander from
12025 bswap{si,di}2 using SWI48 mode iterator.
12026 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
12027 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
12028 set modrm attribute of bswap insn to 0 and remove length attribute.
12029 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
12030 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
12031 set mode attribute to <MODE> and remove length attribute.
12033 2010-04-20 James E. Wilson <wilson@codesourcery.com>
12035 PR rtl-optimization/43520
12036 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
12037 zero available registers.
12039 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12041 * builtins.c (fold_builtin_cproj): Fold more cases.
12043 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12045 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
12046 (fold_builtin_1): Fold builtin cproj.
12047 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
12048 Use ATTR_CONST_NOTHROW_LIST.
12050 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
12052 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
12053 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
12054 ffsi2_no_cmove for !TARGET_CMOVE.
12055 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
12056 (ffssi2): Remove expander.
12057 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
12059 (ctz<mode>2): Ditto from ctz{si,di}2.
12060 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
12062 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
12065 2010-04-20 Jakub Jelinek <jakub@redhat.com>
12067 * dwarf2out.c (AT_linkage_name): Define.
12068 (clone_as_declaration): Handle DW_AT_linkage_name.
12069 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
12070 of DW_AT_MIPS_linkage_name.
12071 (move_linkage_attr): Likewise.
12072 (dwarf2out_finish): Likewise.
12074 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
12076 PR middle-end/41952
12077 * fold-const.c (fold_comparison): New folding rule.
12079 2010-04-20 Anatoly Sokolov <aesok@post.ru>
12081 * double-int.h (double_int_setbit): Declare.
12082 * double-int.c (double_int_setbit): New function.
12083 * rtl.h (immed_double_int_const): Declare.
12084 * emit-rtl.c (immed_double_int_const): New function.
12085 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
12086 and immed_double_int_const functions.
12087 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
12088 expand_copysign_bit): (Ditto.).
12089 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
12090 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
12091 * dojump.c (prefer_and_bit_test): (Ditto.).
12092 * expr.c (convert_modes, reduce_to_bit_field_precision,
12093 const_vector_from_tree): (Ditto.).
12094 * expmed.c (mask_rtx, lshift_value): (Ditto.).
12096 2010-04-20 Jan Hubicka <jh@suse.cz>
12098 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
12099 (dump_cgraph_node): Dump new flags.
12100 * cgraph.h (struct cgraph_node): Add flags
12101 reachable_from_other_partition and in_other_partition.
12102 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
12103 other partition can not be removed.
12104 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
12105 the other partition must be output; silence sanity checking on
12106 leaking functions bodies from other paritition.
12107 * lto-cgraph.c (reachable_from_other_partition_p): New function.
12108 (lto_output_node): Output new flags; do not sanity check that inline
12109 clones are output; drop lto_forced_extern_inline_p code; do not mock
12110 visibility flags at partition boundaries.
12111 (add_node_to): New function.
12112 (output_cgraph): Use it to sort functions so masters appear before
12114 (input_overwrite_node): Input new flags.
12115 * passes.c (ipa_write_summaries): Do not call
12116 lto_new_extern_inline_states.
12117 * lto-section-out.c (forced_extern_inline,
12118 lto_new_extern_inline_states lto_delete_extern_inline_states,
12119 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
12120 * lto-streamer.h (lto_new_extern_inline_states,
12121 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
12122 lto_forced_extern_inline_p): Kill.
12124 2010-04-20 Richard Guenther <rguenther@suse.de>
12126 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
12127 from vars that can have pointers.
12128 (process_constraint): Dump useless constraints.
12130 2010-04-20 Richard Guenther <rguenther@suse.de>
12132 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
12133 (dump_sa_points_to_info): Remove asserts.
12134 (init_base_vars): nothing_id isn't an escape point nor does it
12137 2010-04-20 Jakub Jelinek <jakub@redhat.com>
12139 * tree.h (TYPE_REF_IS_RVALUE): Define.
12140 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
12141 should_move_die_to_comdat, prune_unused_types_walk): Handle
12142 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
12143 (modified_type_die, gen_reference_type_die): Emit
12144 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
12145 if TYPE_REF_IS_RVALUE and -gdwarf-4.
12147 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12150 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
12151 calls for -fpic -m31 if they have been sibcall optimized.
12153 2010-04-19 James E. Wilson <wilson@codesourcery.com>
12155 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
12156 ar.lc fixed and call-used.
12158 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
12160 2010-04-19 Jan Hubicka <jh@suse.cz>
12162 * opts.c (decode_options): Disable whpr incompatible passes.
12163 * lto/lto.c (lto_1_to_1_map): Skip clones.
12164 (read_cgraph_and_symbols): Do not mark everything as needed.
12165 (do_whole_program_analysis): Do map only after optimizing;
12166 set proper cgraph_state; use passmanager.
12168 2010-04-19 DJ Delorie <dj@redhat.com>
12170 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
12171 POINTER_PLUS_EXPR and fix them.
12173 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
12175 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
12176 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
12177 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
12178 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
12179 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
12180 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
12181 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
12182 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
12183 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
12184 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
12185 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
12187 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
12189 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
12190 (check_cond_move_block): Likewise.
12191 (cond_move_process_if_block): Likewise.
12192 (noce_find_if_block): Improve formatting.
12193 (find_if_header): Pass 0 to memset and tweak conditions.
12194 (cond_exec_find_if_block): Fix long lines and tweak conditions.
12196 2010-04-19 Jakub Jelinek <jakub@redhat.com>
12198 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
12201 PR middle-end/43337
12202 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
12203 with non-local decl doesn't need chain.
12205 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
12207 * ira-color.c (allocno_reload_assign): Avoid accumulating
12208 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
12210 2010-04-19 Martin Jambor <mjambor@suse.cz>
12212 * gimple.h (create_tmp_reg): Declare.
12213 * gimplify.c (create_tmp_reg): New function.
12214 (gimplify_return_expr): Use create_tmp_reg.
12215 (gimplify_omp_atomic): Likewise.
12216 (gimple_regimplify_operands): Likewise.
12217 * tree-dfa.c (make_rename_temp): Likewise.
12218 * tree-predcom.c (predcom_tmp_var): Likewise.
12219 (reassociate_to_the_same_stmt): Likewise.
12220 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
12221 (get_replaced_param_substitute): Likewise.
12222 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
12223 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
12224 * tree-ssa-pre.c (get_representative_for): Likewise.
12225 (create_expression_by_pieces): Likewise.
12226 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
12227 (create_tailcall_accumulator): Likewise.
12229 2010-04-19 Martin Jambor <mjambor@suse.cz>
12231 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
12233 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
12235 2010-04-19 Richard Guenther <rguenther@suse.de>
12237 PR tree-optimization/43796
12238 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
12239 from SCEV in the lattice.
12240 (vrp_visit_phi_node): Dump change.
12242 2010-04-19 Richard Guenther <rguenther@suse.de>
12244 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
12245 * configure: Re-generated.
12247 2010-04-19 Richard Guenther <rguenther@suse.de>
12249 PR tree-optimization/43783
12250 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
12251 constant ARRAY_REF operands two and three if possible.
12253 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
12256 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
12258 2010-04-19 Jie Zhang <jie@codesourcery.com>
12261 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
12263 2010-04-19 Ira Rosen <irar@il.ibm.com>
12265 PR tree-optimization/37027
12266 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
12267 and macro to access it.
12268 (vectorizable_reduction): Add argument.
12269 (vect_get_slp_defs): Likewise.
12270 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
12271 statements for possible use in SLP.
12272 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
12273 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
12274 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
12276 (vectorizable_reduction): Likewise.
12277 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
12279 (vectorizable_type_demotion, vectorizable_type_promotion,
12280 vectorizable_store): Likewise.
12281 (vect_analyze_stmt): Update call to vectorizable_reduction.
12282 (vect_transform_stmt): Likewise.
12283 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
12284 (vect_build_slp_tree): Fix indentation. Check that there are no loads
12285 from different interleaving chains in same node.
12286 (vect_slp_rearrange_stmts): New function.
12287 (vect_supported_load_permutation_p): Allow load permutations for
12288 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
12289 inside SLP nodes if necessary.
12290 (vect_analyze_slp_instance): Handle reductions.
12291 (vect_analyze_slp): Try to build SLP instances originating from groups
12293 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
12294 (vect_get_constant_vectors): Create initial vectors for reductions
12295 according to reduction code. Add new argument.
12296 (vect_get_slp_defs): Add new argument, pass it to
12297 vect_get_constant_vectors.
12298 (vect_schedule_slp_instance): Remove SLP tree root statements.
12300 2010-04-19 Jakub Jelinek <jakub@redhat.com>
12302 * tree.h (ENUM_IS_SCOPED): Define.
12303 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
12304 for ENUM_IS_SCOPED enums.
12306 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
12308 * fold-const.c (fold_comparison): Use ssizetype.
12309 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
12310 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
12311 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
12312 * tree-object-size.c (compute_object_sizes): Use size_type_node.
12314 * tree.h (initialize_sizetypes): Remove parameter.
12315 (build_common_tree_nodes): Remove second parameter.
12316 * stor-layout.c (initialize_sizetypes): Remove parameter.
12317 Always create an unsigned type.
12318 (set_sizetype): Assert that the passed type is unsigned and simplify.
12319 * tree.c (build_common_tree_nodes): Remove second parameter.
12320 Adjust call to initialize_sizetypes.
12321 * c-decl.c (c_init_decl_processing): Remove second argument in call to
12322 build_common_tree_nodes.
12324 2010-04-18 Matthias Klose <doko@ubuntu.com>
12326 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
12328 2010-04-18 Ira Rosen <irar@il.ibm.com>
12330 PR tree-optimization/43771
12331 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
12332 load permutation doesn't have gaps.
12334 2010-04-18 Jan Hubicka <jh@suse.cz>
12336 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
12337 (sse_prologue_save_insn expander): Use new pattern.
12338 (sse_prologue_save_insn1): New pattern and splitter.
12339 (sse_prologue_save_insn): Update to deal also with 64bit aligned
12341 * i386.c (setup_incoming_varargs_64): Do not compute jump
12343 (ix86_gimplify_va_arg): Update alignment needed.
12344 (ix86_local_alignment): Do not align all local arrays to 128bit.
12346 2010-04-17 Jan Hubicka <jh@suse.cz>
12348 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
12350 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
12352 * arm.md (negdi2): Remove redundant code to force values into a
12355 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
12357 * arm/bpabi.S: Add EABI alignment attributes to objects.
12358 * arm/bpabi-v6m.S: Likewise.
12359 * arm/crti.asm: Likewise.
12360 * arm/crtn.asm: Likewise.
12361 * arm/lib1funcs.asm: Likewise.
12362 * arm/libunwind.S: Likewise.
12364 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
12366 * arm-protos.h (tune_params): New structure.
12367 * arm.c (current_tune): New variable.
12368 (arm_constant_limit): Delete.
12369 (struct processors): Add pointer to the tune parameters.
12370 (arm_slowmul_tune): New tuning option.
12371 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
12372 (all_cores): Adjust to pick up the tuning model.
12373 (arm_constant_limit): New function.
12374 (arm_override_options): Select the appropriate tuning model. Delete
12375 initialization of arm_const_limit.
12376 (arm_split_constant): Use the new constant-limit model.
12377 (arm_rtx_costs): Pick up the current tuning model.
12378 * arm.md (is_strongarm, is_xscale): Delete.
12379 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
12380 for Xscale variant architectures.
12381 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
12383 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12385 * config/arm/arm.c (arm_gen_constant): Remove unused variable
12387 (arm_rtx_costs_1): Remove unused variable extra_cost.
12388 (arm_unwind_emit_set): Use variable offset.
12389 (thumb1_output_casesi): Remove unused variable flags.
12391 2010-04-16 Jeff Law <law@redhat.com>
12393 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
12394 needing assignment rather than doing a two-phase assignment. Remove
12395 unused variable 'm'.
12397 2010-04-16 Jakub Jelinek <jakub@redhat.com>
12400 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
12402 2010-04-16 Doug Kwan <dougkwan@google.com>
12404 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
12405 (next_operand_entry_id): New static variable.
12406 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
12407 (add_to_ops_vec): Assigned unique ID to operand entry.
12408 (struct oecount_s): New field ID.
12409 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
12410 (undistribute_ops_list): Assign unique IDs to oecounts.
12411 (init_reassoc): reset next_operand_entry_id.
12413 2010-04-16 Doug Kwan <dougkwan@google.com>
12415 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
12416 missing left parenthesis.
12418 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
12420 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
12421 *btdi_rex64 using SWI48 mode iterator.
12422 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
12423 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
12424 *jcc_btdi_mask_rex64.
12426 2010-04-16 Anatoly Sokolov <aesok@post.ru>
12428 * double-int.h (tree_to_double_int): Convert to macro.
12429 * double-int.c (tree_to_double_int): Remove.
12431 2010-04-16 Jakub Jelinek <jakub@redhat.com>
12434 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
12435 with want_address 2 and in case a single element list might be
12436 possible, call it again with want_address 0.
12438 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12440 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
12441 case 'W' print operands for HI mode.
12442 * config/h8300/h8300.h (Y0, Y2) : New constraints.
12443 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
12444 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
12445 * config/h8300/predicate.md (bit_register_indirect_operand): New.
12447 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
12449 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
12450 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
12451 #xx:3 and #xx:4 mode.
12453 * config/h8300/h8300.md (inverted load with HImode dest): Add
12454 support for H8300SX.
12456 * config/h8300/predicate.md (bit_operand): Allow immediate values that
12457 satisfy 'U' constraint.
12459 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12461 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
12462 * configure: Regenerate.
12463 * config.in: Regenerate.
12464 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
12467 2010-04-16 Richard Guenther <rguenther@suse.de>
12469 * tree.h (struct tree_decl_minimal): Move pt_uid ...
12470 (struct tree_decl_common): ... here.
12471 (DECL_PT_UID): Adjust.
12472 (SET_DECL_PT_UID): Likewise.
12473 (DECL_PT_UID_SET_P): Likewise.
12475 2010-04-16 Richard Guenther <rguenther@suse.de>
12477 PR tree-optimization/43572
12478 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
12479 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
12480 * tree-flow.h (is_call_clobbered): Remove.
12481 * tree-flow-inline.h (is_call_clobbered): Likewise.
12482 * tree-dfa.c (dump_variable): Do not dump call clobber state.
12483 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
12484 (execute_return_slot_opt): Adjust.
12485 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
12486 check for call clobbered vars here.
12487 (find_tail_calls): Move tailcall verification to the
12490 2010-04-16 Diego Novillo <dnovillo@google.com>
12492 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
12494 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
12497 * config/arm/arm.md (cbranchqi4): New pattern.
12498 * config/arm/predicates.md (const0_operand,
12499 cbranchqi4_comparison_operator): New predicates.
12501 2010-04-16 Richard Guenther <rguenther@suse.de>
12503 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
12504 (dump_gimple_stmt): Likewise.
12506 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
12508 * recog.h (struct recog_data): New field is_operator.
12509 (struct insn_operand_data): New field is_operator.
12510 * recog.c (extract_insn): Set recog_data.is_operator.
12511 * genoutput.c (output_operand_data): Emit code to set the
12513 * reload.c (find_reloads): Use it rather than testing for an
12514 empty constraint string.
12517 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
12518 If the previous insn is a cbranchsi4_insn with the same arguments,
12519 omit the compare instruction.
12521 * config/arm/arm.md (addsi3_cbranch): If destination is a high
12522 register, inputs must be low registers and we need a low register
12523 scratch. Handle alternative 2 like alternative 3.
12525 2010-04-16 Jakub Jelinek <jakub@redhat.com>
12527 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
12528 don't call get_addr on both. If one expression is a VALUE and
12529 the other a REG, check VALUE's locs if the REG isn't among them.
12531 2010-04-16 Christian Bruel <christian.bruel@st.com>
12533 * config/sh/sh.h (sh_frame_pointer_required): New function.
12534 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
12535 (flag_omit_frame_pointer) Set.
12536 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
12537 (rounded_frame_size): Adjust size with outgoing_args_size.
12538 (sh_set_return_address): Must return from stack pointer.
12539 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
12540 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
12541 (ACCUMULATE_OUTGOING_ARGS): Define.
12542 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
12543 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
12545 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
12548 * config/sh/sh.c (sh_legitimize_reload_address): Use
12549 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
12550 Remove a unneeded check for offset_base.
12552 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
12554 * configure: Regenerated.
12556 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12558 * config/s390/s390.c (s390_call_save_register_used): Switch back
12559 to HARD_REGNO_NREGS.
12561 2010-04-15 Richard Guenther <rguenther@suse.de>
12563 * alias.c (alias_set_subset_of): Handle alias-set zero
12566 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
12567 Julian Brown <julian@codesourcery.com>
12569 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
12570 alternatives according to use of high and low regs.
12571 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
12572 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
12573 optimizing for size on Thumb-2.
12575 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
12577 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
12579 2010-04-15 Richard Guenther <rguenther@suse.de>
12581 * tree-ssa-structalias.c (struct variable_info): Add
12583 (new_var_info): Initialize it.
12584 (dump_constraints): Support printing last added constraints.
12585 (debug_constraints): Adjust.
12586 (dump_constraint_graph): Likewise.
12587 (make_heapvar_for): Check for NULL cfun.
12588 (get_function_part_constraint): New function.
12589 (get_fi_for_callee): Likewise.
12590 (find_func_aliases): Properly implement IPA PTA constraints.
12591 (process_ipa_clobber): New function.
12592 (find_func_clobbers): Likewise.
12593 (insert_into_field_list_sorted): Remove.
12594 (create_function_info_for): Properly allocate vars for IPA mode.
12595 Do not use insert_into_field_list_sorted.
12596 (create_variable_info_for): Properly generate constraints for
12597 global vars in IPA mode.
12598 (dump_solution_for_var): Always dump the solution.
12599 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
12600 (find_what_var_points_to): Adjust.
12601 (pt_solution_set): Change.
12602 (pt_solution_ior_into): New function.
12603 (pt_solution_empty_p): Export.
12604 (pt_solution_includes_global): Adjust.
12605 (pt_solution_includes_1): Likewise.
12606 (pt_solutions_intersect_1): Likewise.
12607 (dump_sa_points_to_info): Check some invariants.
12608 (solve_constraints): Move constraint dumping ...
12609 (compute_points_to_sets): ... here.
12610 (ipa_pta_execute): ... and here.
12611 (compute_may_aliases): Do not re-compute points-to info
12612 locally if IPA info is available.
12613 (ipa_escaped_pt): New global var.
12614 (ipa_pta_execute): Properly implement IPA PTA.
12615 * tree-into-ssa.c (dump_decl_set): Support dumping
12616 decls not in referenced-vars.
12617 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
12618 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
12619 (dump_points_to_solution): Likewise.
12620 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
12621 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
12622 (remap_gimple_stmt): Reset call clobber/use information if necessary.
12623 (copy_decl_to_var): Copy DECL_PT_UID.
12624 (copy_result_decl_to_var): Likewise.
12625 * tree.c (make_node_stat): Initialize DECL_PT_UID.
12626 (copy_node_stat): Copy it.
12627 * tree.h (DECL_PT_UID): New macro.
12628 (SET_DECL_PT_UID): Likewise.
12629 (DECL_PT_UID_SET_P): Likewise.
12630 (struct tree_decl_minimal): Add pt_uid member.
12631 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
12632 (pt_solution_empty_p): Declare.
12633 (pt_solution_set): Adjust.
12634 (ipa_escaped_pt): Declare.
12635 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
12636 * gimple-pretty-print.c (pp_points_to_solution): New function.
12637 (dump_gimple_call): Dump call clobber/use information.
12638 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
12639 * tree-pass.h (TDF_ALIAS): New dump option.
12640 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
12641 * doc/invoke.texi (-fipa-pta): Update documentation.
12643 2010-04-15 Richard Guenther <rguenther@suse.de>
12645 * Makefile.in (OBJS-common): Add gimple-fold.o.
12646 (gimple-fold.o): New rule.
12647 * tree.h (maybe_fold_offset_to_reference,
12648 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
12650 * gimple.h: ... here.
12651 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
12652 may_propagate_address_into_dereference): Move prototypes ...
12653 * gimple.h: ... here.
12654 * tree-ssa-ccp.c (get_symbol_constant_value,
12655 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
12656 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
12657 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
12658 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
12659 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
12660 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
12661 gimplify_and_update_call_from_tree): Move ...
12662 * gimple-fold.c: ... here. New file.
12663 (ccp_fold_builtin): Rename to ...
12664 (gimple_fold_builtin): ... this.
12665 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
12667 2010-04-15 Richard Guenther <rguenther@suse.de>
12669 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
12670 fit_double_type, force_fit_type_double, add_double_with_sign,
12671 neg_double, mul_double_with_sign, lshift_double, rshift_double,
12672 lrotate_double, rrotate_double, div_and_round_double): Move ...
12673 * double-int.c: ... here.
12674 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
12675 add_double, neg_double, mul_double_with_sign, mul_double,
12676 lshift_double, rshift_double, lrotate_double, rrotate_double,
12677 div_and_round_double): Move prototypes ...
12678 * double-int.h: ... here.
12680 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
12683 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
12684 matching constraints to ensure inputs match the output.
12686 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
12689 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
12690 in an input-only operand.
12692 2010-04-15 Anatoly Sokolov <aesok@post.ru>
12694 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
12695 (double_int_not, double_int_lshift, double_int_rshift): Declare.
12696 (double_int_negative_p): Convert to static inline function.
12697 * double-int.c (double_int_lshift, double_int_lshift): New functions.
12698 (double_int_negative_p): Remove.
12699 * tree.h (lshift_double, rshift_double):
12700 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
12701 * fold-const.c (fold_convert_const_int_from_real,
12702 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
12703 (lshift_double): Change type of arith argument to bool.
12704 (rshift_double): Change type of arith argument to bool. Correct
12706 * expmed.c (mask_rtx, lshift_value): (Ditto.).
12708 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
12711 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
12712 at the start and end of the then/else blocks, and omit them from the
12714 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
12715 argument; all callers changed. Pass zero to old_insns_match_p instead.
12716 (flow_find_head_matching_sequence): New function.
12717 (old_insns_match_p): Check REG_EH_REGION notes for calls.
12718 * basic-block.h (flow_find_cross_jump,
12719 flow_find_head_matching_sequence): Declare functions.
12721 2010-04-14 Jason Merrill <jason@redhat.com>
12724 * c-common.c (attribute_takes_identifier_p): New fn.
12725 * c-common.h: Declare it.
12727 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12729 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
12730 splitter condition.
12731 (*udivmod<mode>4): Ditto.
12733 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12735 * config/i386/i386.md (maxmin_int): Rename code attribute from
12736 maxminiprefix and update all users.
12737 (maxmin_float): Ditto from maxminfprefix.
12738 (logic): Ditto from logicprefix.
12739 (absneg_mnemonic): Ditto from absnegprefix.
12740 * config/i386/mmx.md: Update all users of maxminiprefix,
12741 maxminfprefix and logicprefix for rename.
12742 * config/i386/sse.md: Ditto.
12743 * config/i386/sync.md (sync_<code><mode>): Update for
12744 logicprefix rename.
12746 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
12749 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
12750 warnings converted to errors.
12752 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12754 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
12755 used insn_type variable.
12756 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
12757 to avoid set-but-not-used warning.
12759 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12761 * df-core.c (df_ref_debug): Change format string placeholder
12763 * dwarf2asm.c (dw2_asm_output_data_raw,
12764 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
12765 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
12766 * dwarf2out.c (output_cfi, output_cfi_directive,
12767 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
12768 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
12770 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
12771 * print-rtl.c (print_rtx): Ditto.
12773 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12775 PR middle-end/42694
12776 * builtins.c (expand_builtin_pow_root): New function to expand pow
12777 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
12778 series of sqrt and cbrt calls under -ffast-math.
12779 (expand_builtin_pow): Call it.
12781 2010-04-14 Michael Matz <matz@suse.de>
12783 PR tree-optimization/42963
12784 * tree-cfg.c (touched_switch_bbs): New static variable.
12785 (group_case_labels_stmt): New function broken out from ...
12786 (group_case_labels): ... here, use the above.
12787 (start_recording_case_labels): Allocate touched_switch_bbs.
12788 (end_recording_case_labels): Deallocate it, call
12789 group_case_labels_stmt.
12790 (gimple_redirect_edge_and_branch): Remember index of affected BB.
12792 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12794 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
12795 from insn template.
12797 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12799 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
12801 2010-04-13 Jan Hubicka <jh@suse.cz>
12803 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
12804 of optimized out static functions.
12805 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
12806 cost computation. Also sanity check for overflows.
12807 (update_caller_keys): Update cgraph_edge_badness call; properly
12808 update fibheap and sanity check that it is up to date.
12809 (add_new_edges_to_heap): Update cgraph_edge_badness.
12810 (cgraph_decide_inlining_of_small_function): Likewise;
12811 add sanity checking that badness in heap is up to date;
12812 improve dumping of reason; Update badness of calls to the
12813 offline copy of function currently inlined; dump badness
12814 of functions not inlined because of unit growth limits.
12816 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
12818 PR middle-end/32628
12819 * c-common.c (pointer_int_sum): Disregard overflow that occured only
12820 because of sign-extension change when converting to sizetype here...
12821 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
12823 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
12824 the folding to constants. Remove redundant final conversion.
12825 (fold_binary) <associate>: Do not associate if the re-association of
12826 constants alone overflows.
12827 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
12828 to the end of the list.
12829 (multiple_of_p) <COND_EXPR>: New case.
12831 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
12833 * opt-functions.awk (opt_sanitized_name): New.
12835 * optc-gen.awk: Use it
12836 * opth-gen.awk: Use it.
12838 2010-04-13 Martin Jambor <mjambor@suse.cz>
12840 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
12841 (sra_modify_assign): Delete stmts loading dead data even if racc has no
12842 children. Call replace_uses_with_default_def_ssa_name to handle
12845 2010-04-13 Michael Matz <matz@suse.de>
12847 PR middle-end/43730
12848 * builtins.c (expand_builtin_interclass_mathfn): Also create
12849 a register if the predicate doesn't match.
12851 2010-04-13 Diego Novillo <dnovillo@google.com>
12853 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
12854 * c-pch.c: Include timevar.h.
12855 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
12856 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
12857 * ggc-common.c: Include timevar.h.
12858 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
12859 * timevar.def (TV_PCH_SAVE): Define.
12860 (TV_PCH_CPP_SAVE): Define.
12861 (TV_PCH_PTR_REALLOC): Define.
12862 (TV_PCH_PTR_SORT): Define.
12863 (TV_PCH_RESTORE): Define.
12864 (TV_PCH_CPP_RESTORE): Define.
12866 2010-04-13 Michael Matz <matz@suse.de>
12868 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
12870 (can_reassociate_p): New function.
12871 (break_up_subtract_bb, reassociate_bb): Use it.
12873 2010-04-13 Richard Guenther <rguenther@suse.de>
12876 * builtins.c (c_readstr): Fix assert.
12878 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
12880 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
12881 when generating cltd insn.
12883 (*ashl<mode>3_1): Remove special handling for register operand 2.
12884 (*ashlsi3_1_zext): Ditto.
12885 (*ashlhi3_1): Ditto.
12886 (*ashlhi3_1_lea): Ditto.
12887 (*ashlqi3_1): Ditto.
12888 (*ashlqi3_1_lea): Ditto.
12889 (*<shiftrt_insn><mode>3_1): Ditto.
12890 (*<shiftrt_insn>si3_1_zext): Ditto.
12891 (*<shiftrt_insn>qi3_1_slp): Ditto.
12892 (*<rotate_insn><mode>3_1): Ditto.
12893 (*<rotate_insn>si3_1_zext): Ditto.
12894 (*<rotate_insn>qi3_1_slp): Ditto.
12896 2010-04-13 Richard Guenther <rguenther@suse.de>
12898 * tree-ssa-structalias.c (callused_id): Remove.
12899 (call_stmt_vars): New.
12900 (get_call_vi): Likewise.
12901 (lookup_call_use_vi): Likewise.
12902 (lookup_call_clobber_vi): Likewise.
12903 (get_call_use_vi): Likewise.
12904 (get_call_clobber_vi): Likewise.
12905 (make_transitive_closure_constraints): Likewise.
12906 (handle_const_call): Adjust to do per-call call-used handling.
12907 (handle_pure_call): Likewise.
12908 (find_what_var_points_to): Remove general callused handling.
12909 (init_base_vars): Likewise.
12910 (init_alias_vars): Initialize call_stmt_vars.
12911 (compute_points_to_sets): Process call-used and call-clobbered
12912 vars for call statements.
12913 (delete_points_to_sets): Free call_stmt_vars.
12915 2010-04-13 Richard Guenther <rguenther@suse.de>
12917 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12918 Only add RW dependence for dependence distance zero.
12919 Adjust maximal vectorization factor according to dependences.
12920 Move alignment handling ...
12921 (vect_find_same_alignment_drs): ... here. New function.
12922 (vect_analyze_data_ref_dependences): Adjust.
12923 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
12924 (vect_analyze_data_refs): Adjust minimal vectorization factor
12925 according to data references.
12926 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
12927 dependences before determining the vectorization factor.
12928 Analyze alignment after determining the vectorization factor.
12929 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
12930 dependences before alignment.
12931 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
12933 (vect_analyze_data_refs): Likewise.
12934 (MAX_VECTORIZATION_FACTOR): New define.
12936 2010-04-13 Duncan Sands <baldrick@free.fr>
12938 * except.h (lang_eh_type_covers): Remove.
12939 * except.c (lang_eh_type_covers): Likewise.
12941 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12942 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12944 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
12945 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
12946 UNITS_PER_LONG where it is ABI relevant.
12947 (s390_return_addr_rtx): Likewise.
12948 (s390_back_chain_rtx): Likewise.
12949 (s390_frame_area): Likewise.
12950 (s390_frame_info): Likewise.
12951 (s390_initial_elimination_offset): Likewise.
12952 (save_gprs): Likewise.
12953 (s390_emit_prologue): Likewise.
12954 (s390_emit_epilogue): Likewise.
12955 (s390_function_arg_advance): Likewise.
12956 (s390_function_arg): Likewise.
12957 (s390_va_start): Likewise.
12958 (s390_gimplify_va_arg): Likewise.
12959 (s390_function_profiler): Likewise.
12960 (s390_optimize_prologue): Likewise.
12961 (s390_rtx_costs): Likewise.
12962 (s390_secondary_reload): Likewise.
12963 (s390_promote_function_mode): Likewise.
12964 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
12965 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
12966 registers available.
12967 (s390_unwind_word_mode): New function.
12968 (s390_function_value): Split 64 bit values into register pair if
12969 used as return value.
12970 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
12971 function call parameters. Handle parallels.
12972 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
12973 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
12974 (DWARF_CIE_DATA_ALIGNMENT): New macro.
12975 (s390_expand_setmem): Remove unused variable src_addr.
12976 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
12977 deal with 64 bit registers.
12978 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
12979 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
12980 (UNITS_PER_LONG): New macro.
12981 * libjava/include/s390-signal.h: Define extended ucontext
12982 structure containing the upper halfs of the 64 bit registers.
12984 2010-04-13 Simon Baldwin <simonb@google.com>
12986 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
12988 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
12990 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
12991 rvalue on the RHS if the LHS is of a non-renamable type.
12992 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
12994 2010-04-13 Matthias Klose <doko@ubuntu.com>
12996 * gcc.c (cc1_options): Handle -iplugindir before processing
12997 the cc1 spec. Only add -iplugindir once.
12998 (cpp_unique_options): Add -iplugindir option if -fplugin* options
13000 * common.opt (iplugindir): Remove `Separate' property, initialize.
13001 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
13003 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
13004 (distclean): Remove plugin dir.
13005 * doc/invoke.texi: Document -iplugindir.
13007 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
13009 * doc/plugins.texi (Loading Plugins): Document short
13010 -fplugin=foo option.
13011 (Plugin API): Mention default_plugin_dir_name function.
13013 * gcc.c (find_file_spec_function): Add new declaration.
13014 (static_spec_func): Use it for "find-file".
13015 (find_file_spec_function): Add new function.
13016 (cc1_options): Add -iplugindir option if -fplugin* options found.
13018 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
13020 * plugin.c (add_new_plugin): Updated comment, and handle short
13022 (default_plugin_dir_name): Added new function.
13024 * common.opt (iplugindir): New option to set the plugin directory.
13026 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
13028 * config/i386/i386.md (any_rotate): New code iterator.
13029 (rotate_insn): New code attribute.
13031 (SWIM124): New mode iterator.
13032 (<rotate_insn>ti3): New expander.
13033 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
13034 any_rotate code iterator.
13035 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
13036 using any_rotate code iterator and SWIM124 mode iterator.
13037 (ix86_rotlti3): New insn_and_split pattern.
13038 (ix86_rotrti3): Ditto.
13039 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
13040 ix86_rotl{di,ti}3 patterns.
13041 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
13042 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
13043 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
13044 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
13045 code iterator and SWI mode iterator.
13046 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
13047 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
13049 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
13050 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
13051 (bswap rotatert splitter): Add splitter.
13052 (bswap splitter): Macroize splitter using any_rotate code iterator.
13053 Add insn predicate to split only for TARGET_USE_XCHGB or when
13054 optimizing function for size.
13056 2010-04-12 Steve Ellcey <sje@cup.hp.com>
13058 * config/pa/pa.c (emit_move_sequence): Remove use of
13059 deleted variable flag_argument_noalias.
13061 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13063 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
13065 Add to unsupported targets list.
13066 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
13067 sparc*-sun-solaris2.[567]* from target lists.
13068 * configure: Regenerate.
13069 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
13071 Remove Solaris 7 patch references.
13072 (Specific, sparc-sun-solaris2.7): Removed.
13073 (sparc-sun-solaris2*): Update Solaris 7 example.
13074 (sparc64-*-solaris2*): Likewise.
13076 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13078 * config.build (alpha*-dec-osf4*): Remove.
13079 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
13080 of obsolete configurations.
13081 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
13083 * config/alpha/t-osf4: Renamed to ...
13084 * config/alpha/t-osf5: ... this.
13085 * config/alpha/osf.h: Renamed to ...
13086 * config/alpha/osf5.h: ... this.
13087 Merged old osf5.h contents.
13089 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
13090 (EXTRA_SPECS): Removed.
13091 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
13092 reflect removal of Tru64 UNIX V4.0/V5.0 support.
13095 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13097 * doc/contrib.texi (Contributors, Rainer Orth): Update.
13099 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
13102 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
13103 __thiscall convention.
13105 2010-04-12 Steve Ellcey <sje@cup.hp.com>
13107 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
13109 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
13111 2010-04-12 Steve Ellcey <sje@cup.hp.com>
13113 * function.c (assign_parms_initialize_all): Add unused attribute
13116 2010-04-12 Richard Guenther <rguenther@suse.de>
13118 * gsstruct.def (GSS_CALL): New.
13119 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
13120 * gimple.h: Include tree-ssa-alias.h.
13121 (struct gimple_statement_call): New.
13122 (union gimple_statement_struct_d): Add gimple_call member.
13123 (gimple_call_reset_alias_info): Declare.
13124 (gimple_call_use_set): New function.
13125 (gimple_call_clobber_set): Likewise.
13126 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
13127 * gimple.c (gimple_call_reset_alias_info): New function.
13128 (gimple_build_call_1): Call it.
13129 * lto-streamer-in.c (input_gimple_stmt): Likewise.
13130 * tree-inline.c (remap_gimple_stmt): Likewise.
13131 (expand_call_inline): Remove callused handling.
13132 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
13133 * tree-dfa.c (dump_variable): Likewise.
13134 * tree-parloops.c (parallelize_loops): Likewise.
13135 * tree-ssa.c (init_tree_ssa): Likewise.
13136 (delete_tree_ssa): Likewise.
13137 * tree-flow-inline.h (is_call_used): Remove.
13138 * tree-flow.h (struct gimple_df): Remove callused member.
13139 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
13140 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
13141 (ref_maybe_used_by_call_p_1): Simplify.
13142 (call_may_clobber_ref_p_1): Likewise.
13143 * tree-ssa-structalias.c (compute_points_to_sets): Set
13144 the call stmt used and clobbered sets.
13145 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
13146 (find_tail_calls): Verify the tail call.
13148 2010-04-12 Richard Guenther <rguenther@suse.de>
13150 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
13151 single-iteration always-inline inlining.
13152 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
13153 (cgraph_decide_inlining): Do not handle always-inline specially.
13154 (try_inline): Remove always-inline cycle detection special case.
13155 Do not recurse on always-inlines.
13156 (cgraph_early_inlining): Do not iterate if not optimizing.
13157 (cgraph_gate_early_inlining): remove.
13158 (pass_early_inline): Run unconditionally.
13159 (gate_cgraph_decide_inlining): New function.
13160 (pass_ipa_inline): Use it. Do not run the IPA inliner if
13161 not inlining or optimizing.
13162 (cgraph_decide_inlining_of_small_functions): Also consider
13163 always-inline functions.
13164 (cgraph_default_inline_p): Return true for nodes which should
13165 disregard inline limits.
13166 (estimate_function_body_sizes): Assume zero size and time for
13167 nodes which are marked as disregarding inline limits.
13168 (cgraph_decide_recursive_inlining): Do not perform recursive
13169 inlining on always-inline nodes.
13171 2010-04-12 Jakub Jelinek <jakub@redhat.com>
13174 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
13175 for exprs satisfying handled_component_p.
13177 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
13179 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
13180 non-constant aggregate elements.
13182 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
13183 is a real initialization.
13185 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
13188 * c-decl.c (start_function): Move forward check for nested function.
13190 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
13192 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
13193 * config/sh/sh.c: Include reload.h.
13194 (sh_legitimize_reload_address): New.
13195 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
13196 sh_legitimize_reload_address.
13198 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
13200 * config/sh/sh.md (*movqi_pop): New insn pattern.
13201 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
13203 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
13205 * config/i386/i386.md (any_shiftrt): New code iterator.
13206 (shiftrt_insn): New code attribute.
13208 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
13209 using any_shiftrt code iterator.
13210 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
13211 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
13212 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
13213 pattern from corresponding peephole2 patterns.
13214 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
13215 using any_shiftrt code iterator.
13216 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
13217 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
13218 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
13219 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
13220 *{ashr,lshr}<mode>3_cmp_zext.
13221 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
13223 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
13225 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
13227 (*lshr<mode>3_cconly): Ditto.
13229 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
13231 * config/i386/i386.md (lshr<mode>3): Macroize expander from
13232 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
13233 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
13234 pattern from *lshr{di,ti}3_1 and corresponding splitters using
13236 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
13237 from corresponding peephole2 patterns.
13238 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
13239 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
13240 and *lshrdi3_1_rex64 using SWI mode iterator.
13241 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
13242 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
13243 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
13244 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
13245 and *lshrdi3_cmp_rex64 using SWI mode iterator.
13246 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
13247 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
13248 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
13249 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
13252 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
13254 * config/i386/i386.md (ashr<mode>3): Macroize expander from
13255 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
13256 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
13257 pattern from *ashr{di,ti}3_1 and corresponding splitters using
13259 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
13260 from corresponding peephole2 patterns.
13261 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
13262 (ashrsi3_cvt): Rename from ashrsi3_31.
13263 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
13264 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
13265 and x86_64_shift_adj_3 using SWI48 mode iterator.
13266 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
13267 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
13268 and *ashrdi3_1_rex64 using SWI mode iterator.
13269 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
13270 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
13271 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
13272 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
13273 and *ashrdi3_cmp_rex64 using SWI mode iterator.
13274 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
13275 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
13276 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
13277 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
13279 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
13280 * config/i386/i386.c (ix86_split_ashr): Update for renamed
13281 x86_shift<mode>_adj_3 expanders.
13283 2010-04-10 Wei Guozhi <carrot@google.com>
13286 * config/arm/arm.c (arm_pic_static_addr): New function.
13287 (legitimize_pic_address): Call arm_pic_static_addr when it detects
13289 (arm_output_addr_const_extra): Output expression for new pattern.
13290 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
13292 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
13294 * ira-costs.c (record_reg_classes): Ignore alternatives that are
13297 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
13298 * web.c: Include "insn-config.h" and "recog.h".
13299 (union_match_dups): New function.
13300 (web_main): Call it.
13301 (union_defs): Don't try to recognize match_dups.
13303 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
13304 if doing so would replace the entire pattern.
13306 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
13310 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
13311 and splitter pattern. Change splitter operand 1 predicate to
13314 2010-04-09 Martin Jambor <mjambor@suse.cz>
13316 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
13317 lattices are addresses of CONST_DECLs with the same initial value.
13318 (ipcp_print_all_lattices): Print values of CONST_DECLs.
13319 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
13321 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
13322 Bernd Schmidt <bernds@codesourcery.com>
13324 * loop-invariant.c (replace_uses): New static function.
13325 (move_invariant_reg): Use it to ensure we can replace the uses.
13327 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
13329 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
13331 (picochip_override_options): Enable section anchors only above -O1.
13332 (picochip_reorg): Fixed a couple of build warnings.
13334 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13336 * configure.ac (plugin -rdynamic test): Log result.
13337 * configure: Regenerate.
13338 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
13339 (RDYNAMIC_SPEC): Define.
13340 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
13342 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13344 * configure.ac: Determine Sun ld version numbers.
13345 (comdat_group): Restrict GNU ld version checks to gld.
13346 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
13347 (enable_comdat): Support --enable-comdat.
13348 * configure: Regenerate.
13349 * doc/install.texi (Configuration): Document --enable-comdat.
13351 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13353 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
13354 * config/sol2-gld.h: ... here.
13355 * config.gcc (sparc*-*-solaris2*): Reflect this.
13356 (i[34567]86-*-solaris2*): Use it.
13358 2010-04-09 Steve Ellcey <sje@cup.hp.com>
13360 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
13362 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
13364 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
13367 * diagnostic.c (diagnostic_initialize): Initialize
13368 some_warnings_are_errors.
13369 (diagnostic_finish): New.
13370 (diagnostic_action_after_output): Call it before exiting.
13371 (diagnostic_report_diagnostic): Do not print message here. Set
13372 some_warnings_are_errors.
13373 * diagnostic.h (diagnostic_context): Delete
13374 issue_warnings_are_errors_message. Add some_warnings_are_errors.
13375 (diagnostic_finish): Declare.
13376 * toplev.c (toplev_main): Call it before exit.
13378 2010-04-09 Jason Merrill <jason@redhat.com>
13381 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
13382 for incomplete type.
13385 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
13386 based on a warning flag.
13388 2010-04-09 Richard Guenther <rguenther@suse.de>
13390 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
13392 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
13395 * varasm.c (default_assemble_visibility): Wrap vars that are
13396 set, but unused, by targets without GAS.
13397 * config/rs6000/rs6000.c (paired_emit_vector_compare):
13398 Remove set, but unused, vars.
13399 (rs6000_legitimize_tls_address): Likewise.
13400 (altivec_expand_dst_builtin): Likewise.
13401 * config/darwin.c (machopic_classify_symbol): Likewise.
13402 (machopic_indirection_name): Likewise.
13404 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
13406 * config/i386/i386.md (DWI): New mode iterator.
13407 (S): New mode attribute.
13408 (shift_operand): Ditto.
13409 (shift_immediate_operand): Ditto.
13410 (ashl_input_operand): Ditto.
13411 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
13412 using SDWIM mode iterator.
13413 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
13414 pattern from *ashl{di,ti}3_1 and corresponding splitters using
13416 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
13417 from corresponding peephole2 patterns.
13418 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
13419 and x86_64_shift_adj_1 using SWI48 mode iterator.
13420 (x86_shift<mode>_adj_2): Ditto.
13421 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
13422 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
13423 using SWI48 mode iterator.
13424 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
13425 *ashldi3_cmp_rex64 using SWI mode iterator.
13426 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
13427 *ashldi3_cconly_rex64 using SWI mode iterator.
13428 * config/i386/i386.c (ix86_split_ashl): Update for renamed
13429 x86_shift<mode>_adj_{1,2}.
13430 (ix86_split_ashr): Ditto.
13431 (ix86_split_lshr): Ditto.
13433 2010-04-09 Richard Guenther <rguenther@suse.de>
13435 * target.h (builtin_conversion): Pass in input and output types.
13436 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
13437 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
13438 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
13439 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
13441 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
13443 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
13445 2010-04-09 Richard Guenther <rguenther@suse.de>
13448 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
13450 2010-04-09 Richard Guenther <rguenther@suse.de>
13452 * tree-vectorizer.h (struct _stmt_vec_info): Document
13453 that vectype is the type of the LHS.
13454 (supportable_widening_operation, supportable_narrowing_operation):
13455 Get both input and output vector types as arguments.
13456 (vect_is_simple_use_1): Declare.
13457 (get_same_sized_vectype): Likewise.
13458 * tree-vect-loop.c (vect_determine_vectorization_factor):
13459 Set STMT_VINFO_VECTYPE to the vector type of the def.
13460 (vectorizable_reduction): Adjust.
13461 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
13462 Adjust. Specify the output vector type.
13463 (vect_pattern_recog_1): Adjust.
13464 * tree-vect-stmts.c (get_same_sized_vectype): New function.
13465 (vectorizable_call): Adjust.
13466 (vectorizable_conversion): Likewise.
13467 (vectorizable_operation): Likewise.
13468 (vectorizable_type_demotion): Likewise.
13469 (vectorizable_type_promotion): Likewise.
13470 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
13472 (vect_is_simple_use_1): New function.
13473 (supportable_widening_operation): Get both input and output
13475 (supportable_narrowing_operation): Likewise.
13476 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
13478 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
13480 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
13481 __thiscall and _thiscall as predefined macros.
13482 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
13483 thiscall attribute handling.
13484 (ix86_comp_type_attributes): Likewise.
13485 (ix86_function_regparm): Likewise.
13486 (ix86_return_pops_args): Likewise.
13487 (init_cumulative_args): Likewise.
13488 (find_drap_reg): Likewise.
13489 (ix86_static_chain): Likewise.
13490 (x86_this_parameter): Likewise.
13491 (x86_output_mi_thunk): Likewise.
13492 (ix86_attribute_table): Add description for thiscall attribute.
13493 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
13494 * doc/extend.texi: Add documentation for thiscall.
13496 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
13499 * c.opt (Wint-to-pointer-cast): Available in C++.
13500 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
13502 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
13504 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
13505 * calls.c (expand_call): Pass the function type to aggregate_value_p.
13506 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
13507 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
13508 function type instead. Reorder and simplify checks.
13510 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
13512 2010-04-08 Jing Yu <jingyu@google.com>
13513 Zdenek Dvorak <ook@ucw.cz>
13515 PR tree-optimization/42720
13516 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
13517 loop unswitch conditions here from ...
13518 (tree_unswitch_single_loop): ... here.
13520 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
13522 * tree-if-conv.c: Fix comments and simplify logic.
13524 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
13526 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
13527 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
13528 (main_tree_if_conversion): Update call to tree_if_conversion.
13530 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
13533 * doc/invoke.texi (-b,-V): Delete.
13534 * doc/tm.texi: Do not mention -b.
13535 * gcc.c (display_help): Delete -b and -V.
13536 (process_command): Delete -b and -V.
13537 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
13539 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
13540 Wolfgang Gellerich <gellerich@de.ibm.com>
13542 Implement target hook for loop unrolling
13543 * target.h (loop_unroll_adjust): Add a new target hook function.
13544 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
13545 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
13546 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
13547 (s390_loop_unroll_adjust): Implement the new target hook for s390.
13548 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
13550 (decide_unroll_stupid): Likewise.
13552 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13555 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
13557 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13559 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
13560 (Specific, *-*-solaris2*): Likewise.
13561 Don't prefer Sun as over GNU as.
13563 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
13565 * config/s390/s390.c (override_options): Adjust the z10 defaults
13566 for max-unroll-times, max-completely-peeled-insns
13567 and max-completely-peel-times.
13569 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13571 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
13572 instructions for z10.
13573 (s390_expand_setmem): Likewise.
13574 (s390_expand_cmpmem): Likewise.
13576 2010-04-08 Richard Guenther <rguenther@suse.de>
13578 PR tree-optimization/43679
13579 * tree-ssa-pre.c (eliminate): Only propagate copies.
13581 2010-04-08 Jakub Jelinek <jakub@redhat.com>
13584 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
13585 set but not used variable warning.
13587 2010-04-08 Wei Guozhi <carrot@google.com>
13590 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
13591 (arm_size_rtx_costs): Call the new function when optimized for size.
13593 2010-04-08 Jakub Jelinek <jakub@redhat.com>
13596 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
13597 op0 is not a MEM, just return NULL instead of assertion
13599 (discover_nonconstant_array_refs): Don't walk debug stmts.
13601 2010-04-08 Doug Kwan <dougkwan@google.com>
13603 * configure.ac: Recognize gold and do not use its version number
13604 to test ld features.
13605 * configure: Regenerate.
13607 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
13609 PR middle-end/40815
13610 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
13611 (negate_value): Move code to push elements to broken_up_substracts ...
13612 (eliminate_plus_minus_pair): ... here. Push operands that have no
13613 negative pair to plus_negates.
13614 (repropagate_negates, init_reassoc, fini_reassoc): Update.
13616 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13618 * doc/install.texi (Configuration): Move description of
13619 --enable-lto, --with-libelf*, --enable-gold from Java section to
13622 * doc/generic.texi (Working with declarations)
13623 (Function Properties, C and C++ Trees): Fix typos.
13624 * doc/sourcebuild.texi (Top Level): Likewise.
13626 2010-04-07 Jakub Jelinek <jakub@redhat.com>
13629 * tree.h (DECL_READ_P): Define.
13630 (struct tree_decl_common): Add decl_read_flag.
13631 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
13632 a set but not used warning.
13633 (merge_decls): Merge DECL_READ_P flag.
13634 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
13635 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
13636 * c-common.c (handle_used_attribute, handle_unused_attribute):
13638 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
13640 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
13642 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
13643 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
13644 c_parser_binary_expression, c_parser_cast_expression,
13645 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
13646 Call default_function_array_read_conversion instead of
13647 default_function_array_conversion where needed.
13648 (c_parser_unary_expression, c_parser_conditional_expression,
13649 c_parser_postfix_expression_after_primary, c_parser_initelt):
13650 Likewise. Call mark_exp_read where needed.
13651 (c_parser_statement_after_labels, c_parser_asm_operands,
13652 c_parser_typeof_specifier, c_parser_sizeof_expression,
13653 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
13655 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
13657 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
13658 (warn_unused_but_set_parameter): Default to warn_unused
13660 * doc/invoke.texi: Document -Wunused-but-set-variable and
13661 -Wunused-but-set-parameter.
13663 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
13664 used count variable.
13665 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
13666 when operandN variables aren't used in the body of the expander
13668 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
13669 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
13670 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
13671 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
13672 FOR_EACH_IMM_USE_ON_STMT): Likewise.
13673 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
13674 * tree.c (PROCESS_ARG): Likewise.
13676 2010-04-07 Simon Baldwin <simonb@google.com>
13678 * diagnostic.h (diagnostic_override_option_index): New macro to
13679 set a diagnostic's option_index.
13680 * c-tree.h (c_cpp_error): Add warning reason argument.
13681 * opts.c (_warning_as_error_callback): New.
13682 (register_warning_as_error_callback): Store callback for
13683 warnings enabled via enable_warning_as_error.
13684 (enable_warning_as_error): Call callback, minor code tidy.
13685 * opts.h (register_warning_as_error_callback): Declare.
13686 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
13687 response to -Werror=.
13688 (c_common_init_options): Register warning_as_error_callback in opts.c.
13689 * common.opt: Add -Wno-cpp option.
13690 * c-common.c (struct reason_option_codes_t): Map cpp warning
13691 reason codes to gcc option indexes.
13692 * (c_option_controlling_cpp_error): New function, lookup the gcc
13693 option index for a cpp warning reason code.
13694 * (c_cpp_error): Add warning reason argument, call
13695 c_option_controlling_cpp_error for diagnostic_override_option_index.
13696 * doc/invoke.texi: Document -Wno-cpp.
13698 2010-04-07 Richard Guenther <rguenther@suse.de>
13700 * ipa-reference.c (mark_load): Use get_base_address.
13701 (mark_store): Likewise.
13703 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
13704 inserting GIMPLE_NOPs into the IL.
13705 * tree-ssa-structalias.c (get_constraint_for_component_ref):
13706 Explicitly strip handled components and indirect references.
13708 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
13709 folding address expressions.
13710 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
13711 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
13712 operand_equal_p to compare decls.
13713 (ptr_deref_may_alias_decl_p): Likewise.
13714 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
13715 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
13716 Handle reversed comparison ops.
13717 * tree-sra.c (asm_visit_addr): Use get_base_address.
13718 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
13719 * ipa-reference.c (mark_address): Use get_base_address.
13721 2010-04-07 Richard Guenther <rguenther@suse.de>
13723 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
13724 Propagate constants everywhere.
13726 2010-04-07 Jakub Jelinek <jakub@redhat.com>
13729 * tree.c (MAX_INT_CACHED_PREC): Define.
13730 (nonstandard_integer_type_cache): New array.
13731 (build_nonstandard_integer_type): Cache results for precision
13732 <= MAX_INT_CACHED_PREC.
13734 2010-04-07 Richard Guenther <rguenther@suse.de>
13736 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
13737 -fargument-noalias-global, -fargument-noalias-anything): Remove.
13738 * common.opt: Likewise.
13739 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
13740 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
13741 (nonoverlapping_memrefs_p): Likewise.
13742 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13743 * opts.c (common_handle_option): Handle OPT_fargument_alias,
13744 OPT_fargument_noalias, OPT_fargument_noalias_anything and
13745 OPT_fargument_noalias_global for backward compatibility.
13747 2010-04-07 Richard Guenther <rguenther@suse.de>
13749 PR tree-optimization/43270
13750 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
13751 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
13752 * tree-ssa-pre.c (phi_translate_1): Adjust.
13753 (fully_constant_expression): Split out vn_reference handling to ...
13754 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
13755 Fold reads from constant strings.
13756 (vn_reference_lookup): Handle fully constant references.
13757 (vn_reference_lookup_pieces): Likewise.
13758 * Makefile.in (expmed.o-warn): Add -Wno-error.
13760 2010-04-07 Martin Jambor <mjambor@suse.cz>
13762 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
13764 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
13767 * gcc.c: Add -static-libstdc++ to list of recognized options.
13769 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13771 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
13773 2010-04-07 Richard Guenther <rguenther@suse.de>
13775 PR middle-end/42617
13776 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
13777 bases build simple mem attributes to retain points-to information.
13779 2010-04-07 Richard Guenther <rguenther@suse.de>
13781 PR middle-end/42617
13782 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
13783 preserve points-to related information.
13785 2010-04-07 Richard Guenther <rguenther@suse.de>
13787 PR middle-end/42617
13788 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
13789 discard plain indirect references.
13790 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
13791 * tree.c (tree_nop_conversion): Likewise.
13793 2010-04-07 Dodji Seketeli <dodji@redhat.com>
13796 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
13798 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
13800 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
13801 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
13803 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
13805 * tree-if-conv.c: Fix indentation and comments.
13807 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
13809 * tree-if-conv.c: Sort static functions in topological order.
13811 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
13813 * tree-if-conv.c: Fix indentation and comments.
13815 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13817 PR middle-end/43519
13818 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
13819 lang_hooks.types.type_for_size instead of
13820 build_nonstandard_integer_type.
13821 When converting an unsigned type to signed, double its precision.
13822 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
13823 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
13824 (graphite_create_new_loop_guard): When ub + 1 wraps around,
13827 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13829 PR middle-end/43519
13830 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
13831 POINTER_PLUS_EXPR for pointer types.
13833 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13835 PR middle-end/43519
13836 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
13837 * graphite-clast-to-gimple.c: Include langhooks.h.
13838 (max_signed_precision_type): New.
13839 (max_precision_type): Takes two types as arguments.
13840 (precision_for_value): New.
13841 (precision_for_interval): New.
13842 (gcc_type_for_interval): New.
13843 (gcc_type_for_value): New.
13844 (gcc_type_for_clast_term): New.
13845 (gcc_type_for_clast_red): New.
13846 (gcc_type_for_clast_bin): New.
13847 (gcc_type_for_clast_expr): Split up into several functions.
13848 (gcc_type_for_clast_eq): Rewritten.
13849 (compute_bounds_for_level): New.
13850 (compute_type_for_level_1): New.
13851 (compute_type_for_level): New.
13852 (gcc_type_for_cloog_iv): Removed.
13853 (gcc_type_for_iv_of_clast_loop): Rewritten.
13854 (graphite_create_new_loop): Compute the lower and upper bound types
13855 with gcc_type_for_clast_expr.
13856 (graphite_create_new_loop_guard): Same.
13857 (find_cloog_iv_in_expr): Removed.
13858 (compute_cloog_iv_types_1): Removed.
13859 (compute_cloog_iv_types): Removed.
13860 (gloog): Do not call compute_cloog_iv_types.
13861 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
13862 GBB_CLOOG_IV_TYPES.
13863 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
13864 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
13865 (GBB_CLOOG_IV_TYPES): Removed.
13867 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13869 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
13870 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
13871 (detect_commutative_reduction): Same.
13873 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13875 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
13876 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
13878 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
13879 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
13880 (rewrite_commutative_reductions_out_of_ssa): Same.
13881 * passes.c (execute_function_todo): Call verify_ssa for every pass
13882 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
13883 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
13884 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
13885 with an extra argument.
13886 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
13887 verify_ssa only when the extra argument is true.
13888 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
13889 with an extra argument.
13890 (tree_transform_and_unroll_loop): Same.
13892 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13894 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
13895 for all the passes of the LNO having LOOP_CLOSED_SSA.
13896 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
13897 * tree-loop-distribution.c (pass_loop_distribution): Same.
13898 * tree-pass.h (TODO_verify_loops): Removed.
13899 * tree-ssa-loop.c (pass_tree_loop_init): Same.
13901 (pass_tree_unswitch): Same.
13902 (pass_predcom): Same.
13903 (pass_vectorize): Same.
13904 (pass_linear_transform): Same.
13905 (pass_graphite_transforms): Same.
13906 (pass_iv_canon): Same.
13907 (pass_complete_unroll): Same.
13908 (pass_complete_unrolli): Same.
13909 (pass_parallelize_loops): Same.
13910 (pass_loop_prefetch): Same.
13911 (pass_iv_optimize): Same.
13913 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
13915 PR middle-end/32824
13916 * passes.c (init_optimization_passes): Move pass_lim before
13917 pass_copy_prop and pass_dce_loop.
13919 2010-04-06 Jakub Jelinek <jakub@redhat.com>
13922 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
13923 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
13924 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
13925 MULTI_* defines for 4 argument vpermil2p* builtins.
13927 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
13929 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
13930 * config/i386/i386.c (x86_maybe_negate_const_int): New.
13931 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
13932 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
13933 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
13934 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
13935 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
13936 Use x86_maybe_negate_const_int to output insn mnemonic.
13937 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
13938 check from instruction predicate. Update comments.
13939 * config/i386/sync.md (sync_add<mode>): Use
13940 x86_maybe_negate_const_int to output insn mnemonic.
13942 2010-04-06 Jan Hubicka <jh@suse.cz>
13944 PR tree-optimization/42906
13945 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
13946 IGNORE_SELF argument. Set visited_control_parents for fully
13948 (find_obviously_necessary_stmts): Update call of
13949 mark_control_dependent_edges_necessary.
13950 (propagate_necessity): Likewise. Handle PHI edges more curefully.
13952 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
13954 * config/i386/i386.md: Remove comment about 'e' and 'E'
13957 2010-04-06 Richard Guenther <rguenther@suse.de>
13959 PR tree-optimization/43627
13960 * tree-vrp.c (extract_range_from_unary_expr): Widenings
13961 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
13964 2010-04-06 Jakub Jelinek <jakub@redhat.com>
13966 * BASE-VER: Change to 4.6.0.
13969 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
13972 2010-04-06 Richard Guenther <rguenther@suse.de>
13974 PR middle-end/43661
13975 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
13977 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13979 * doc/invoke.texi (Optimize Options): Document that LTO
13980 won't remove object access purely due to incompatible
13983 2010-04-04 Matthias Klose <doko@ubuntu.com>
13985 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
13986 Initialize variable.
13988 2010-04-03 Richard Guenther <rguenther@suse.de>
13990 PR middle-end/42509
13991 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
13992 require a non-NULL MEM_OFFSET.
13994 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
13996 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
13997 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
13998 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
13999 config/alpha/predicates.md, config/arm/arm.md,
14000 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
14001 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
14002 config/darwin9.h, config/darwin.c, config/darwin.h,
14003 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
14004 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
14005 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
14006 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
14007 config/mips/mips.md, config/mn10300/mn10300.c,
14008 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
14009 config/rs6000/aix.h, config/rs6000/dfp.md,
14010 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
14011 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
14012 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
14013 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
14014 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
14015 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
14016 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
14017 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
14018 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
14019 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
14020 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
14021 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
14022 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
14023 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
14024 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
14025 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
14026 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
14027 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
14028 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
14029 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
14030 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
14031 opt-functions.awk, opth-gen.awk, params.def, passes.c,
14032 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
14033 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
14034 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
14035 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
14036 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
14037 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
14038 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
14039 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
14040 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
14041 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
14042 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
14043 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
14044 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
14045 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
14047 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14050 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
14051 * aclocal.m4: Regenerate.
14053 2010-04-02 Richard Guenther <rguenther@suse.de>
14055 PR tree-optimization/43629
14056 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
14057 if we have seen a constant value.
14059 2010-04-02 Joseph Myers <joseph@codesourcery.com>
14061 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
14063 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
14066 * arm.c (legitimize_tls_address): Adjust call to
14067 gen_tls_load_dot_plus_four.
14068 (arm_note_pic_base): New function.
14069 (arm_cannot_copy_insn_p): Use it.
14070 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
14073 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14078 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14080 * Makefile.in ($(out_object_file)): Depend on
14081 gt-$(basename $(notdir $(out_file))).h.
14083 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
14085 * config.gcc (lm32-*-rtems*): Add t-lm32.
14087 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
14089 * config.gcc: Add lm32-*-rtems*.
14090 * config/lm32/rtems.h: New file.
14092 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
14095 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
14097 2010-04-01 Jakub Jelinek <jakub@redhat.com>
14099 * dwarf2out.c (output_compilation_unit_header): For
14100 -gdwarf-4 use version 4 instead of version 3.
14101 (output_line_info): For version 4 and above emit additional
14102 maximum ops per insn header field.
14103 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
14105 * dwarf2out.c (is_c_family, is_java): Remove.
14106 (lower_bound_default): New function.
14107 (add_bound_info, gen_descr_array_type_die): Use it.
14109 2010-04-01 Dodji Seketeli <dodji@redhat.com>
14112 * dwarf2out.c (gen_variable_die): Allow debug info for variable
14113 re-declaration when it happens in a function.
14115 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
14117 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
14118 (cgraph_remove_function_insertion_hook): Same.
14119 (cgraph_call_function_insertion_hooks): Same.
14121 2010-04-01 Richard Guenther <rguenther@suse.de>
14123 PR middle-end/43614
14124 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
14125 and TREE_THIS_VOLATILE.
14126 (copy_ref_info): Likewise.
14127 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
14128 * tree.c (build6_stat): Ignore side-effects of all but arg5
14129 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
14132 2010-04-01 Richard Guenther <rguenther@suse.de>
14134 PR tree-optimization/43607
14135 * ipa-type-escape.c (check_call): Do not access non-existing
14138 2010-04-01 Richard Guenther <rguenther@suse.de>
14140 PR middle-end/43602
14142 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
14143 Jack Howarth <howarth@bromo.med.uc.edu>
14145 * tree-profile.c (tree_init_ic_make_global_vars): Make static
14148 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14150 * doc/install.texi (Prerequisites): Document libelf usability on
14151 IRIX 5/6 and Solaris 2.
14152 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
14153 Update GNU as, GNU ld requirements.
14154 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
14155 Document Sun Studio compiler download.
14156 Update and simplify as, ld recommendations.
14157 (Specific, *-*-solaris2.7): Note obsoletion, removal.
14159 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14161 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
14162 with_tune_32 to pentium4.
14164 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
14166 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
14168 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14170 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
14171 obsoletion, removal.
14173 Document GNU as requirement.
14174 Update configure requirements.
14175 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
14176 Recomment IRIX 6.5.18+.
14177 Document IDF/IDL requirement.
14178 Document GNU as requirement.
14179 Document GNU ld bootstrap failure.
14180 Remove freeware.sgi.com reference.
14182 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14184 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
14185 UNIX V4.0, V5.0 obsoletion, removal.
14186 Remove --with-gc=simple reference.
14187 Update VM requirements during bootstrap.
14188 Remove -oldas bootstrap description.
14189 Update binutils reference.
14190 Remove comparison failure note.
14192 2010-03-31 Richard Guenther <rguenther@suse.de>
14193 Zdenek Dvorak <ook@ucw.cz>
14194 Sebastian Pop <sebastian.pop@amd.com>
14196 PR middle-end/43464
14197 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
14198 with multiple arguments.
14199 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
14201 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14203 * graphite-dependences.c (print_pddr): Call print_pdr with an
14205 * graphite-poly.c (debug_pdr): Add an extra argument for the
14208 (print_pbb_domain): Same.
14210 (print_scop_context): Same.
14211 (print_scop): Same.
14212 (print_cloog): Same.
14213 (debug_pbb_domain): Same.
14215 (print_pdrs): Same.
14216 (debug_pdrs): Same.
14217 (debug_scop_context): Same.
14218 (debug_scop): Same.
14219 (debug_cloog): Same.
14220 (print_scop_params): Same.
14221 (debug_scop_params): Same.
14222 (print_iteration_domain): Same.
14223 (print_iteration_domains): Same.
14224 (debug_iteration_domain): Same.
14225 (debug_iteration_domains): Same.
14226 (print_scattering_function): Same.
14227 (print_scattering_functions): Same.
14228 (debug_scattering_function): Same.
14229 (debug_scattering_functions): Same.
14230 * graphite-poly.h (debug_pdr): Update declaration.
14232 (print_pbb_domain): Same.
14234 (print_scop_context): Same.
14235 (print_scop): Same.
14236 (print_cloog): Same.
14237 (debug_pbb_domain): Same.
14239 (print_pdrs): Same.
14240 (debug_pdrs): Same.
14241 (debug_scop_context): Same.
14242 (debug_scop): Same.
14243 (debug_cloog): Same.
14244 (print_scop_params): Same.
14245 (debug_scop_params): Same.
14246 (print_iteration_domain): Same.
14247 (print_iteration_domains): Same.
14248 (debug_iteration_domain): Same.
14249 (debug_iteration_domains): Same.
14250 (print_scattering_function): Same.
14251 (print_scattering_functions): Same.
14252 (debug_scattering_function): Same.
14253 (debug_scattering_functions): Same.
14255 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14257 * graphite-poly.c (print_scattering_function_1): New.
14258 (print_scattering_function): Call it.
14259 (print_scop_params): Remove spaces at the end of lines.
14260 (print_cloog): New.
14261 (debug_cloog): New.
14262 * graphite-poly.h (print_cloog): Declared.
14263 (debug_cloog): Declared.
14265 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14267 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
14269 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
14270 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
14271 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
14272 to switch between adding the IV bump in loop->latch or in loop->header.
14274 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14276 * graphite-poly.c (print_scattering_function): Pretty print following
14277 the scoplib format.
14279 (print_pbb_domain): Same.
14280 (dump_gbb_cases): Same.
14281 (dump_gbb_conditions): Same.
14282 (print_pdrs): Same.
14284 (print_scop_params): Same.
14285 (print_scop_context): Same.
14286 (print_scop): Same.
14287 (print_pbb_body): New.
14288 (lst_indent_to): New.
14289 (print_lst): Start new lines with a #.
14290 * graphite-poly.h (pbb_bb): New.
14291 (pbb_index): Use pbb_bb.
14292 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
14294 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
14296 2010-03-31 Jakub Jelinek <jakub@redhat.com>
14298 * dwarf2out.c (size_of_die): For -gdwarf-4 use
14299 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
14300 and 0 instead of 1 for dw_val_class_flag.
14301 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
14302 dw_val_class_range_list, dw_val_class_loc_list,
14303 dw_val_class_lineptr and dw_val_class_macptr, use
14304 DW_FORM_flag_present for dw_val_class_flag and
14305 DW_FORM_exprloc for dw_val_class_loc.
14306 (output_die): For -gdwarf-4 print dw_val_class_loc
14307 size as uleb128 instead of 1 or 2 bytes and don't print
14308 anything for dw_val_class_flag.
14310 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
14311 instead of cselib_lookup following by tweaking locs->setting_insn.
14314 * cselib.c (cselib_process_insn): Clear cselib_current_insn
14315 even before returning from label, setjmp call or volatile asm
14318 2010-03-31 Richard Guenther <rguenther@suse.de>
14320 PR middle-end/43600
14321 * cgraphunit.c (cgraph_output_in_order): Do not allocate
14322 temporary data on stack.
14324 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14326 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
14327 (PUSHSECTION_ASM_OP): Remove.
14328 (POPSECTION_ASM_OP): Remove.
14329 (PUSHSECTION_FORMAT): Remove.
14330 * config/sol2.h (PUSHSECTION_FORMAT): Define.
14331 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
14332 * config/sol2.c (solaris_output_init_fini): Use it.
14334 2010-03-31 Jie Zhang <jie@codesourcery.com>
14337 * opt-functions.awk (var_type_struct): Use signed char type
14338 for simple variables.
14340 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14342 * config/sol2.c: Include output.h.
14343 (solaris_assemble_visibility): New function.
14344 * config/t-sol2 (sol2.o): Add output.h dependency.
14345 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
14346 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
14349 2010-03-31 Jakub Jelinek <jakub@redhat.com>
14352 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
14353 V2SImode or XFmode on PRE_DEC.
14356 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
14359 2010-03-31 Jie Zhang <jie@codesourcery.com>
14362 * reload.h (caller_save_initialized_p): Declare.
14363 * toplev.c (backend_init_target): Don't call
14364 init_caller_save but set caller_save_initialized_p to false.
14365 * caller-save.c (caller_save_initialized_p): Define.
14366 (init_caller_save): Check caller_save_initialized_p.
14367 * ira.c (ira): Call init_caller_save if flag_caller_saves.
14369 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14372 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
14373 and soft-fp/t-softfp to tmake_file.
14374 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
14375 (LIBGCC2_TF_CEXT): Define.
14378 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
14381 * cselib.c (n_useless_values): Document handling of debug locs.
14382 (n_useless_debug_values, n_debug_values): New variables.
14383 (new_elt_loc_list): Don't add to debug values, keep count.
14384 (promote_debug_loc): New.
14385 (cselib_reset_table): Zero new variables.
14386 (entry_and_rtx_equal_p): Promote debug locs.
14387 (discard_useless_locs): Increment n_useless_debug_values for
14389 (remove_useless_values): Adjust n_useless_values and n_debug_values
14390 with n_useless_debug_values.
14391 (add_mem_for_addr): Promote debug locs.
14392 (cselib_lookup_mem): Likewise.
14393 (cselib_lookup_addr): Renamed to...
14394 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
14395 (cselib_log_lookup): ... this. Turn into...
14396 (cselib_lookup_addr): ... new wrapper.
14397 (cselib_lookup_from_insn): New.
14398 (cselib_invalidate_regno): Increment n_useless_debug_values for
14400 (cselib_invalidate_mem): Likewise.
14401 (cselib_process_insn): Take n_deleted and n_debug_values into
14402 account to guard remove_useless_value call.
14403 (cselib_finish): Zero n_useless_debug_values.
14404 * cselib.h (cselib_lookup_from_insn): Declare.
14405 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
14406 (sched_analyze_2): Likewise.
14408 2010-03-30 Jakub Jelinek <jakub@redhat.com>
14410 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
14412 (adjust_mems): Replace narrowing SUBREG of expression containing
14413 just PLUS, MINUS, MULT and ASHIFT of registers and constants
14414 with operations in the narrower mode.
14417 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
14418 regs_invalidated_by_call instead all call_used_reg_set registers.
14420 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
14422 PR middle-end/43430
14423 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
14424 pointer comparisons with types_compatible_p.
14425 * tree-vect-stmts.c (vectorizable_call): Same.
14426 (vectorizable_condition): Same.
14428 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14430 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
14431 stack check if the mask would be zero.
14433 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
14434 Jack Howarth <howarth@bromo.med.uc.edu>
14436 * tree-profile.c (tree_init_ic_make_global_vars): Make static
14439 2010-03-30 Joseph Myers <joseph@codesourcery.com>
14442 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
14444 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
14445 Include ___unordxf2 and ___unordtf2.
14446 * config/i386/libgcc-glibc.ver: Do not define inheritance from
14449 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
14451 * config/lm32/t-lm32: New file.
14452 * config.gcc: Use the above file when targetting lm32.
14454 2010-03-28 Duncan Sands <baldrick@free.fr>
14456 * Makefile.in (PLUGIN_HEADERS): Add except.h.
14458 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
14460 PR middle-end/43431
14461 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
14462 Improve vectorization cost model diagnostic.
14464 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
14466 PR middle-end/43436
14467 * tree-vect-data-refs.c (vect_analyze_data_refs): When
14468 compute_data_dependences_for_loop returns false, early exit
14469 and output an extra diagnostic for the failed data reference
14472 2010-03-29 Richard Guenther <rguenther@suse.de>
14474 PR tree-optimization/43560
14475 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
14476 (can_sm_ref_p): Treat stores to readonly locations as trapping.
14478 2010-03-29 Jie Zhang <jie@codesourcery.com>
14481 * toplev.c (process_options): Set optimization_default_node
14482 and optimization_current_node.
14483 * opts.c (decode_options): Don't set optimization_default_node
14484 and optimization_current_node.
14486 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
14488 * config/rtems.h: Abandon -qrtems_debug.
14490 2010-03-28 Jan Hubicka <jh@suse.cz>
14492 PR tree-optimization/43505
14493 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
14494 map should not be copied.
14496 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14498 PR middle-end/41674
14499 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
14500 cdtors, set DECL_PRESERVE_P.
14501 * ipa.c (cgraph_externally_visible_p): Return true if declaration
14502 should be preseved.
14504 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
14506 PR tree-optimization/43528
14507 * stor-layout.c (place_field): Check that constant fits into
14508 unsigned HWI when skipping calculation of MS bitfield layout.
14510 2010-03-27 Jan Hubicka <jh@suse.cz>
14512 PR middle-end/43391
14513 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
14514 notice_global_symbol work.
14516 2010-03-27 Jakub Jelinek <jakub@redhat.com>
14518 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
14519 instead of dwarf2out_decl.
14520 (struct var_loc_node): Remove section_label field.
14521 (dwarf2out_function_decl): New function.
14522 (dwarf2out_var_location): Don't set section_label field.
14523 (dwarf2out_begin_function): Don't empty decl_loc_table here.
14525 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
14527 PR tree-optimization/43544
14528 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
14529 First argument for builtin vectorized function hook is now a
14530 tree to be able to distinguish between machine specific and
14532 * targhooks.c (default_builtin_vectorized_function): Ditto.
14533 * targhooks.h (default_builtin_vectorized_function): Ditto.
14534 * target.h (struct gcc_target): Ditto.
14535 * tree-vect-stmts.c (vectorizable_function): Ditto.
14536 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
14537 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
14540 2010-03-26 Joseph Myers <joseph@codesourcery.com>
14543 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
14544 nested binding iff it is a FUNCTION_DECL.
14545 (store_parm_decls_newstyle): Pass nested=true to bind for
14546 FUNCTION_DECLs amongst parameters.
14548 2010-03-26 Jakub Jelinek <jakub@redhat.com>
14550 * var-tracking.c (vt_expand_loc_callback): Don't run
14551 cselib_expand_value_rtx_cb in dummy mode if
14552 cselib_dummy_expand_value_rtx_cb returned false.
14554 * var-tracking.c (emit_note_insn_var_location): For one part
14555 notes with offset 0, don't add EXPR_LIST around the location.
14556 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
14557 add_location_or_const_value_attribute): Adjust for that change.
14560 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
14561 into first operand and location into second.
14562 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
14563 dw_cfi_oprnd_loc for DW_CFA_expression.
14564 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
14565 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
14566 assume first argument is regnum and second argument is location.
14568 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
14571 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
14572 of scratch register to DImode. Split to DImode comparison operator.
14573 Use SImode subreg of scratch register in the multiplication.
14574 (*cmp_sadd_sidi): Ditto.
14575 (*cmp_ssub_si): Ditto.
14576 (*cmp_ssub_sidi): Ditto.
14578 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
14581 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
14582 Remove invalid assert and wrong comment.
14584 2010-03-26 Jakub Jelinek <jakub@redhat.com>
14587 * flags.h (final_insns_dump_p): New extern.
14588 * final.c (final_insns_dump_p): New variable.
14589 (rest_of_clean_state): Set it before -fdump-final-insns=
14590 dumping, clear afterwards.
14591 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
14592 MEM_ALIAS_SET on MEMs.
14594 2010-03-26 David S. Miller <davem@davemloft.net>
14596 * configure.ac: Fix sparc GOTDATA_OP bug check.
14597 * configure: Rebuild.
14599 2010-03-26 Alan Modra <amodra@gmail.com>
14601 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
14603 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14605 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
14606 TLS_SECTION_ASM_FLAG.
14608 2010-03-25 Jakub Jelinek <jakub@redhat.com>
14611 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
14612 Clear first_function_block_is_cold.
14615 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
14616 argument if the argument is truth_value_p.
14618 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14620 * config/rs6000/constraints.md: Update copyright year for my changes.
14623 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
14624 used in reg+reg addressing, swap registers.
14626 2010-03-24 Jakub Jelinek <jakub@redhat.com>
14629 * target.h (struct gcc_target): Add code_end hook.
14630 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
14631 if not yet defined.
14632 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
14633 * toplev.c (compile_file): Call targetm.asm_out.code_end
14634 hook before unwind info/debug info output.
14635 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
14636 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
14637 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
14638 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
14639 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
14640 * config/i386/i386.c (ix86_file_end): Renamed to...
14641 (ix86_code_end): ... this. Make static. Don't call
14642 file_end_indicate_exec_stack. Emit unwind info using
14643 final_start_function/final_end_function.
14644 (darwin_x86_file_end): Remove.
14645 (TARGET_ASM_CODE_END): Define.
14646 * config/i386/i386.h (TARGET_ASM_FILE_END,
14647 NEED_INDICATE_EXEC_STACK): Don't define.
14648 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
14649 (TARGET_ASM_FILE_END): Define to darwin_file_end.
14650 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
14651 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
14654 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
14655 at the beginning and final_end_function at the end.
14656 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
14658 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14660 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
14661 and Sun as TLS syntax.
14662 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
14663 * configure: Regenerate.
14664 * config.in: Regenerate.
14665 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
14666 (default_elf_asm_named_section): Use it.
14667 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
14668 (i386_output_dwarf_dtprel): Likewise.
14669 (output_addr_const_extra): Likewise.
14670 (output_pic_addr_const): Lowercase @GOTTPOFF.
14671 (output_addr_const_extra): Likewise.
14672 (output_pic_addr_const): Lowercase @GOTNTPOFF.
14673 (output_addr_const_extra): Likewise.
14674 (output_pic_addr_const): Lowercase @INDNTPOFF.
14675 (output_addr_const_extra): Likewise.
14676 (output_pic_addr_const): Lowercase @NTPOFF.
14677 (output_addr_const_extra): Likewise.
14678 (output_pic_addr_const): Lowercase @TPOFF.
14679 (output_addr_const_extra): Likewise.
14680 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
14681 (*tls_global_dynamic_64): Likewise.
14682 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
14683 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
14685 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
14686 (ASM_OUTPUT_TLS_COMMON): Use it.
14687 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
14690 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
14691 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
14692 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
14693 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
14694 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
14695 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
14697 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14699 * config/i386/i386.c (override_options): Don't accept
14700 -mtls-dialect=sun any longer.
14701 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
14702 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
14703 (*tls_local_dynamic_base_32_sun): Likewise.
14704 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
14706 2010-03-24 Jakub Jelinek <jakub@redhat.com>
14709 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
14710 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
14713 * ira.c (adjust_cleared_regs): New function.
14714 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
14718 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
14720 * expr.c (expand_expr_real): Restore previous
14721 curr_insn_source_location and curr_insn_block after
14722 expand_expr_real_1 call.
14723 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
14724 instead of expand_expr_real_1.
14726 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
14728 PR rtl-optimization/43413
14729 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
14732 2010-03-22 James E. Wilson <wilson@codesourcery.com>
14735 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
14736 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
14738 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
14740 * config/i386/i386.c (ix86_target_string): Add -mfma.
14741 Fix a typo in comment.
14743 2010-03-22 Mike Stump <mikestump@comcast.net>
14746 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
14747 Don't overly align based upon packed packed fields.
14749 2010-03-22 Jason Merrill <jason@redhat.com>
14751 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
14752 Use () rather than [], and move before the element type.
14754 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14756 * doc/configfiles.texi (Configuration Files): Removed
14757 fixinc/Makefile*, intl/Makefile.*.
14758 * doc/makefile.texi: Fixed markup. Abstract from version
14759 control system used.
14760 (Makefile): Removed obsolete gcc/java/parse.y example.
14761 * doc/sourcebuild.texi: Likewise.
14762 (Top Level): Added config, gnattools, libdecnumber, libgcc,
14763 libgomp, libssp. Removed fastjar.
14764 (Miscellaneous Docs): Clarify location.
14765 Added COPYING3, COPYING3.LIB.
14766 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
14768 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14771 * config/i386/i386.c (x86_function_profiler)
14772 [!NO_PROFILE_COUNTERS]: Fix typo.
14773 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
14776 2010-03-22 Janis Johnson <janis187@us.ibm.com>
14777 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14779 * doc/sourcebuild.texi (Test Directives): Split into six
14780 subsections, with most of the current text in new subsections
14781 Directives, Selectors, and Final Actions.
14782 (Directives): Split list of test directives into multiple
14784 (Selectors): Describe use and syntax of selectors.
14785 (Effective-Target Keywords): Describe all existing keywords.
14786 (Add Options): Describe features for dg-add-options.
14787 (Require Support): Describe variants of dg-require-support.
14788 (Final Actions): Describe commands to use in dg-final.
14790 2010-03-22 Michael Matz <matz@suse.de>
14792 PR middle-end/43475
14793 * recog.c (validate_replace_rtx_group): Replace also in
14794 REG_EQUAL and REG_EQUIV notes.
14796 2010-03-22 Richard Guenther <rguenther@suse.de>
14798 PR tree-optimization/43390
14799 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
14800 sure vector extracts are type correct.
14802 2010-03-22 Richard Guenther <rguenther@suse.de>
14804 PR middle-end/40106
14805 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
14806 x * sqrt (x) even when optimizing for size if the target
14807 has native support for sqrt.
14809 2010-03-22 Jakub Jelinek <jakub@redhat.com>
14811 * varasm.c (make_decl_rtl_for_debug): Also clear
14812 flag_mudflap for the duration of make_decl_rtl call.
14815 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
14816 locs from preserved VALUEs.
14818 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14820 PR middle-end/42718
14821 * pa.md (movmemsi): Set align to one if zero.
14822 (movmemdi): Likewise.
14824 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
14827 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
14828 with their corresponding prologue pushes.
14830 2010-03-20 Andrew Pinski <pinskia@gmail.com>
14833 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
14834 at the begining or end.
14835 (spu_expand_epilogue): Likewise.
14837 2010-03-20 Richard Guenther <rguenther@suse.de>
14839 PR rtl-optimization/43438
14840 * combine.c (make_extraction): Properly zero-/sign-extend an
14841 extraction of the low part of a CONST_INT. Also handle
14844 2010-03-19 Mike Stump <mikestump@comcast.net>
14846 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
14847 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
14848 (override_options): Use SUBTARGET32_DEFAULT_CPU.
14850 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
14853 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
14856 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
14858 PR rtl-optimization/42258
14859 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
14860 use that may match DEF.
14863 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
14864 the cost of loading the constant rather than assuming
14866 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
14867 outer code is AND, do the same tests as the andsi3 expander and
14868 return COSTS_N_INSNS (1) if and is cheap.
14870 * optabs.c (avoid_expensive_constant): Fix formatting.
14872 2010-03-19 Michael Matz <matz@suse.de>
14875 * attribs.c (decl_attributes): When rebuilding a function pointer
14876 type use the same qualifiers as the original pointer type.
14878 2010-03-19 Martin Jambor <mjambor@suse.cz>
14880 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
14881 and is_gimple_ip_invariant_address.
14883 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14886 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14888 * config/arm/arm.c (arm_override_options): Turn off
14889 flag_dwarf2_cfi_asm for AAPCS variants.
14891 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14894 * config/arm/arm.c (emit_multi_reg_push): Update comments.
14895 Use PRE_MODIFY instead of PRE_DEC.
14896 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
14897 (vfp_emit_fstmd): Likewise.
14899 2010-03-19 Michael Matz <matz@suse.de>
14902 * builtins.c (expand_builtin_interclass_mathfn,
14903 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
14906 2010-03-19 Richard Guenther <rguenther@suse.de>
14908 PR tree-optimization/43415
14909 * tree-ssa-pre.c (phi_translate): Split out worker to ...
14910 (phi_translate_1): ... this.
14911 (phi_translate): Move all caching here. Cache all NARY
14912 and REFERENCE translations.
14914 2010-03-19 David S. Miller <davem@davemloft.net>
14916 With help from Eric Botcazou.
14917 * config/sparc/sparc.c: Include dwarf2out.h.
14918 (emit_pic_helper): Delete.
14919 (pic_helper_symbol_name): Delete.
14920 (pic_helper_emitted_p): Delete.
14921 (pic_helper_needed): New.
14922 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
14923 (get_pc_thunk_name): New.
14924 (load_pic_register): Remove 'delay_pic_helper' arg. Use
14925 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
14926 Set pic_helper_needed to true. Don't call emit_pic_helper.
14927 (sparc_expand_prologue): Update load_pic_register call.
14928 (sparc_output_mi_thunk): Likewise.
14929 (sparc_file_end): Emit a hidden comdat symbol for the PIC
14930 thunk if possible. Output CFI information as needed.
14932 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14933 Jack Howarth <howarth@bromo.med.uc.edu>
14936 * config/i386/i386.h: Fix ABI on darwin x86-32.
14938 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
14940 * tree.h: Declare make_decl_rtl_for_debug.
14941 * varasm.c (make_decl_rtl_for_debug): New.
14942 * dwarf2out.c (rtl_for_decl_location): Call it.
14943 * cfgexpand.c (expand_debug_expr): Call it.
14945 2010-03-18 Jakub Jelinek <jakub@redhat.com>
14948 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
14952 * var-tracking.c (vt_init_cfa_base): Do nothing if
14953 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
14955 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
14958 * var-tracking.c (canonicalize_vars_star): New.
14959 (dataflow_post_merge_adjust): Use it.
14961 2010-03-18 Jakub Jelinek <jakub@redhat.com>
14964 * var-tracking.c (non_suitable_const): New function.
14965 (add_uses): For DEBUG_INSNs with constants, don't record any
14966 value, instead just the constant value itself.
14967 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
14968 is not VAR_LOC_UNKNOWN_P, set var to the constant.
14969 (emit_notes_in_bb): Likewise.
14970 (emit_note_insn_var_location): For onepart variables if
14971 cur_loc is a VOIDmode constant, use DECL_MODE.
14973 2010-03-18 Martin Jambor <mjambor@suse.cz>
14975 PR middle-end/42450
14976 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
14977 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
14978 all non-clones. Moved call redirection...
14979 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
14980 (cgraph_materialize_all_clones): Dispose of all
14981 combined_args_to_skip bitmaps.
14982 (verify_cgraph_node): Do not check for edges pointing to wrong
14983 nodes in inline clones.
14984 * tree-inline.c (copy_bb): Call
14985 cgraph_redirect_edge_call_stmt_to_callee.
14986 * ipa.c (cgraph_remove_unreachable_nodes): Call
14987 cgraph_node_remove_callees even when there are used clones.
14989 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
14991 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
14993 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
14996 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
14999 2010-03-18 Michael Matz <matz@suse.de>
15001 PR middle-end/43419
15002 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
15003 into sqrt(x) if we need to preserve signed zeros.
15005 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
15006 Eric Botcazou <ebotcazou@adacore.com>
15008 PR rtl-optimization/43360
15009 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
15010 note if we don't know its invariant status.
15012 2010-03-18 Michael Matz <matz@suse.de>
15014 PR tree-optimization/43402
15015 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
15016 PHI chains of ssa names registered for update.
15018 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
15021 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
15022 non-offsettable and pre_modify update addressing.
15023 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
15024 and "2" alternatives "#".
15025 (*movdd_softfloat32): Make all alternatives "#";
15026 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
15027 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
15028 (*movdf_softfloat32): Make all alternatives "#";
15029 (movdi): Use the new DIFD mode iterator to create a common splitter
15030 for movdi, movdf and movdd patterns.
15032 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
15034 * common.opt (dumpdir): Remove redundant tab.
15036 2010-03-17 Martin Jambor <mjambor@suse.cz>
15038 PR tree-optimization/43347
15039 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
15040 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
15042 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
15044 PR rtl-optimization/42216
15045 * regrename.c (create_new_chain): New function, broken out from...
15046 (scan_rtx_reg): ... here. Call it. Handle the case where we are
15047 appending a use to an empty chain.
15048 (build_def_use): Remove previous changes that convert OP_INOUT to
15049 OP_OUT operands; instead detect the case where an OP_INOUT operand
15050 uses a previously untracked register and create an empty chain for it.
15052 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15054 * doc/extend.texi (Function Attributes): Rewrite unfinished
15055 sentence in ms_abi documentation.
15057 2010-03-17 Alan Modra <amodra@gmail.com>
15059 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
15060 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
15061 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
15062 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
15064 2010-03-16 Richard Henderson <rth@redhat.com>
15066 PR middle-end/43365
15067 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
15068 (lower_try_finally): Save and restore eh_seq around the expansion
15069 of the try-finally.
15071 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
15073 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
15074 statements before splitting block.
15076 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15078 * doc/sourcebuild.texi (Testsuites): Fix markup.
15079 Use pathnames relative to gcc/testsuite.
15080 (Test Directives): Move description of how timeout is determined.
15081 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
15082 (C Tests): Correct gcc.misc-tests directory.
15083 Framework tests now live in gcc.test-framework.
15085 2010-03-16 Richard Guenther <rguenther@suse.de>
15087 PR middle-end/43379
15088 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
15089 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
15091 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
15092 Alexandre Oliva <aoliva@redhat.com>
15094 PR tree-optimization/42917
15095 * lambda-code.c (remove_iv): Skip debug statements.
15096 (lambda_loopnest_to_gcc_loopnest): Likewise.
15097 (not_interesting_stmt): Debug statements are not interesting.
15099 2010-03-16 Jakub Jelinek <jakub@redhat.com>
15103 * cselib.c (cselib_preserve_constants,
15104 cfa_base_preserved_val): New static variables.
15105 (preserve_only_constants): New function.
15106 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
15107 clear its REG_VALUES. If cselib_preserve_constants, don't
15108 empty the whole hash table, but preserve there VALUEs with constants,
15109 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
15110 (cselib_preserve_cfa_base_value): New function.
15111 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
15112 (cselib_init): Change argument to int bitfield. Set
15113 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
15115 (cselib_finish): Clear cselib_preserve_constants and
15116 cfa_base_preserved_val.
15117 * cselib.h (enum cselib_record_what): New enum.
15118 (cselib_init): Change argument to int.
15119 (cselib_preserve_cfa_base_value): New prototype.
15120 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
15121 * dse.c (dse_step1): Likewise.
15122 * cfgcleanup.c (thread_jump): Likewise.
15123 * sched-deps.c (sched_analyze): Likewise.
15124 * gcse.c (local_cprop_pass): Likewise.
15125 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
15126 If FN is non-NULL, call the callback always and whenever it returns
15127 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
15128 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
15129 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
15130 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
15131 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
15132 * var-tracking.c: Include recog.h.
15133 (bb_stack_adjust_offset): Remove.
15134 (vt_stack_adjustments): Don't call it, instead just gather the
15135 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
15136 (adjust_stack_reference): Remove.
15137 (compute_cfa_pointer): New function.
15138 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
15139 (struct adjust_mem_data): New type.
15140 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
15142 (get_address_mode): New function.
15143 (replace_expr_with_values): Use it.
15144 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
15145 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
15146 (adjust_sets): Remove.
15147 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
15148 Use get_address_mode.
15149 (get_adjusted_src): Remove.
15150 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
15151 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
15152 (add_with_sets): Don't call adjust_sets.
15153 (fp_setter, vt_init_cfa_base): New functions.
15154 (vt_initialize): Change return type to bool. Move most of pool etc.
15155 initialization to the beginning of the function from end. Pass
15156 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
15157 If !frame_pointer_needed, call vt_stack_adjustment before mos
15158 vector is filled, call vt_init_cfa_base if argp/framep has been
15159 eliminated to sp. If frame_pointer_needed and argp/framep has
15160 been eliminated to hard frame pointer, set
15161 hard_frame_pointer_adjustment and call vt_init_cfa_base after
15162 encountering fp setter in the prologue. For MO_ADJUST, call
15163 log_op_type before pusing the op into mos vector, not afterwards.
15164 Call adjust_insn before cselib_process_insn/add_with_sets,
15165 call cancel_changes (0) afterwards.
15166 (variable_tracking_main_1): Adjust for vt_initialize calling
15167 vt_stack_adjustments and returning whether it succeeded or not.
15169 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
15171 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
15174 2010-03-15 Jakub Jelinek <jakub@redhat.com>
15176 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
15178 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
15179 drap_reg has not been set.
15181 2010-03-15 Michael Matz <matz@suse.de>
15183 PR middle-end/43300
15184 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
15185 use it to expand block copies.
15186 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
15187 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
15188 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
15190 2010-03-15 Richard Guenther <rguenther@suse.de>
15192 PR tree-optimization/43367
15193 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
15196 2010-03-15 Richard Guenther <rguenther@suse.de>
15198 PR tree-optimization/43317
15199 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
15201 2010-03-15 Martin Jambor <mjambor@suse.cz>
15203 PR tree-optimization/43141
15204 * tree-sra.c (create_abstract_origin): New function.
15205 (modify_function): Call create_abstract_origin.
15207 2010-03-15 Chris Demetriou <cgd@google.com>
15209 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
15212 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15214 PR middle-end/43354
15215 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
15216 call insert_out_of_ssa_copy for default definitions.
15218 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15220 * graphite-clast-to-gimple.c (my_long_long): Defined.
15221 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
15222 * graphite-sese-to-poly.c (my_long_long): Defined.
15223 (scop_ivs_can_be_represented): Use it.
15225 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15227 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
15228 graphite-max-bbs-per-function, and loop-block-tile-size.
15229 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
15231 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
15233 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15235 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
15236 forward declaration.
15237 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
15238 (add_upper_bounds_from_estimated_nit): New.
15239 (build_loop_iteration_domains): Use it.
15241 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15243 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
15245 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15247 PR middle-end/43306
15248 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
15249 should be an INTEGER_CST. Also handle CASE_CONVERT.
15251 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15253 * graphite.c (graphite_initialize): To bound the number of bbs per
15254 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
15255 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
15256 * doc/invoke.texi: Document it.
15258 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15260 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
15261 * graphite-sese-to-poly.h (build_poly_scop): Same.
15263 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15265 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
15266 the number of parameters in the scop. Use as an upper bound
15267 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
15268 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
15269 * doc/invoke.texi: Document it.
15271 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
15273 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
15274 * doc/c-tree.texi: Remove.
15275 * doc/generic.texi: Merge c-tree.texi here.
15276 * doc/gccint.texi (Trees): Remove menu entry.
15277 (c-tree.texi): Remove @include.
15278 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
15279 * doc/languages.texi (Reading RTL): Ditto.
15281 2010-03-12 Steve Ellcey <sje@cup.hp.com>
15284 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
15286 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
15288 PR middle-end/42431
15289 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
15290 code added to work around reload clobbering CONST insns.
15292 2010-03-12 Jakub Jelinek <jakub@redhat.com>
15294 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
15295 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
15296 (cselib_preserve_only_values): Remove retain argument, don't
15297 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
15298 * cselib.h (cselib_preserve_only_values): Remove retain argument.
15299 * var-tracking.c (micro_operation): Move insn field before union.
15300 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
15301 (struct variable_tracking_info_def): Remove n_mos field, change
15302 mos into a vector of micro_operations.
15303 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
15304 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
15305 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
15306 changing into a vector.
15307 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
15308 come before all other uops generated by add_stores.
15309 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
15311 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
15312 a vector. Run just one pass over the bbs instead of separate counting
15313 and computation phase.
15314 (vt_finalize): Free VTI (bb)->mos vector instead of array.
15317 * tree-inline.c (remap_decls): Put old_var rather than origin_var
15318 into *nonlocalized_list vector.
15319 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
15320 even if origin is non-NULL.
15321 (gen_variable_die): Likewise.
15322 (process_scope_var): Don't change origin.
15323 (gen_decl_die): Likewise.
15324 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
15325 before adding new edges instead of after it, fix moving over
15328 2010-03-11 David S. Miller <davem@davemloft.net>
15330 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
15332 * configure: Rebuild.
15334 2010-03-11 Martin Jambor <mjambor@suse.cz>
15336 PR tree-optimization/43257
15337 * tree.c (assign_assembler_name_if_neeeded): New function.
15338 (free_lang_data_in_cgraph): Assembler name assignment moved to the
15339 above new function.
15340 * tree.h (assign_assembler_name_if_neeeded): Declare.
15341 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
15342 the function if needed.
15344 2010-03-11 Chris Demetriou <cgd@google.com>
15346 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
15347 include/stdint-gcc.h, and include/stdint.h world-readable.
15349 2010-03-11 Richard Guenther <rguenther@suse.de>
15351 PR tree-optimization/43255
15352 * tree-vrp.c (process_assert_insertions_for): Do not insert
15353 asserts for trivial conditions.
15355 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15357 PR tree-optimization/43280
15358 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
15359 generation. Move calculation of size out of the if branch.
15360 (find_bswap): Modify compare number generation.
15362 2010-03-11 Richard Guenther <rguenther@suse.de>
15365 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
15366 (input_gimple_stmt): Fixup handled component types during
15367 operand read. Also fix up decls in ADDR_EXPRs.
15369 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
15371 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
15372 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
15374 2010-03-10 Jan Hubicka <jh@suse.cz>
15377 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
15378 * varasm.c (get_variable_section): Don't do that here...
15379 (make_decl_rtl): ... and here.
15380 (do_assemble_alias): Produce decl RTL.
15381 (assemble_alias): Likewise.
15383 2010-03-10 Jakub Jelinek <jakub@redhat.com>
15386 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
15387 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
15389 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
15390 (based_loc_descr): Only express drap or vdrap regno based expressions
15391 using DW_OP_fbreg when not optimizing.
15392 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
15393 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
15394 REG_CFA_SET_VDRAP note.
15396 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
15398 PR tree-optimization/43236
15399 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
15400 error in calculation of base address in reverse iteration case.
15401 (generate_builtin): Take number of latch executions if the statement
15404 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
15406 PR middle-end/42859
15407 * tree-eh.c: Include pointer-set.h.
15408 (lower_eh_dispatch): Filter out duplicate case labels and
15409 remove the unneeded edge when the label is unused. Return
15410 true when some edges are removed.
15411 (execute_lower_eh_dispatch): When any lowering resulted in
15412 removing an edge, also delete unreachable blocks.
15414 2010-03-10 Jakub Jelinek <jakub@redhat.com>
15417 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15418 UNSPEC_MACHOPIC_OFFSET.
15420 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
15423 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
15424 (m68k_delegitimize_address): New function.
15426 2010-03-09 Jakub Jelinek <jakub@redhat.com>
15429 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
15432 * var-tracking.c (adjust_sets): New function.
15433 (count_with_sets, add_with_sets): Use it.
15434 (get_adjusted_src): New inline function.
15435 (add_stores): Use it.
15438 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
15439 call cselib_dummy_expand_value_rtx_cb instead of
15440 cselib_expand_value_rtx_cb.
15443 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
15444 * config/i386/i386.c: Include debug.h and dwarf2out.h.
15445 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
15446 and .cfi_endproc around the pic thunks.
15447 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
15448 all queued unwind info register saves are saved before the call.
15449 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
15450 considered as sp-=4 for unwind info and the pop as sp+=4 which
15451 also clobbers dest, but doesn't actually restore it.
15454 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
15455 RTX_FRAME_RELATED_P.
15457 2010-03-09 Jie Zhang <jie@codesourcery.com>
15459 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
15460 whitespaces in output template.
15462 2010-03-09 Jie Zhang <jie@codesourcery.com>
15464 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
15465 out array boundary.
15467 2010-03-08 Jakub Jelinek <jakub@redhat.com>
15469 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
15470 builtins.exp in a separate job.
15472 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15474 * graphite-sese-to-poly.c (add_param_constraints): Use
15475 lower_bound_in_type and upper_bound_in_type.
15477 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15479 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
15480 instead of unsigned_type_node.
15482 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15483 Reza Yazdani <reza.yazdani@amd.com>
15485 PR middle-end/43065
15486 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
15487 on pointer type parameters.
15489 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
15491 PR middle-end/42644
15492 PR middle-end/42130
15493 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
15494 handle conversions from pointer to integers.
15495 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
15496 induction variable, to be able to work with code generated by CLooG.
15497 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
15498 (build_poly_scop): Bail out if we cannot codegen a loop.
15500 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
15502 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
15503 code generation with gloog_error.
15505 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15507 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
15508 Call fold_convert on all the returned values.
15509 (expand_scalar_variables_expr): Pass to
15510 expand_scalar_variables_ssa_name the type of the resulting expression.
15512 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15514 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
15515 ppl_min_for_le_pointset.
15516 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
15517 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
15519 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15521 * graphite-dependences.c (map_into_dep_poly): Removed.
15522 (dependence_polyhedron_1): Use combine_context_id_scat.
15524 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15526 * graphite-poly.h (struct poly_scattering): Add layout documentation.
15527 (struct poly_bb): Same.
15528 (combine_context_id_scat): New.
15530 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15532 PR middle-end/42326
15533 * sese.c (name_defined_in_loop_p): Return false for default
15536 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15538 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
15539 and clean up the logic.
15541 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15543 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
15546 2010-03-08 Jakub Jelinek <jakub@redhat.com>
15548 * var-tracking.c (remove_cselib_value_chains): Define only for
15550 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
15551 delete_slot_part, emit_notes_for_differences_1): Don't call
15552 remove_cselib_value_chains here.
15553 (set_slot_part, emit_notes_for_differences_2): Don't call
15554 add_cselib_value_chains here.
15555 (preserved_values): New vector.
15556 (preserve_value): New function.
15557 (add_uses, add_stores, vt_add_function_parameters): Use it
15558 instead of cselib_preserve_value.
15559 (changed_values_stack): New vector.
15560 (check_changed_vars_0): New function.
15561 (check_changed_vars_1, check_changed_vars_2): Use it.
15562 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
15563 changed_values_stack VALUEs.
15564 (vt_emit_notes): For all preserved_values call
15565 add_cselib_value_chains. If ENABLE_CHECKING call
15566 remove_cselib_value_chains before verifying value_chains is empty.
15567 Initialize and free changed_values_stack.
15568 (vt_initialize): Initialize preserved_values.
15569 (vt_finalize): Free preserved_values.
15571 2010-03-08 Richard Guenther <rguenther@suse.de>
15573 PR tree-optimization/43269
15574 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
15577 2010-03-08 Martin Jambor <mjambor@suse.cz>
15579 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
15580 (ipa_is_param_called): Removed.
15581 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
15582 (ipa_print_node_params): Do not print the called flag.
15583 (ipa_write_node_info): Do not stream the called flag.
15584 (ipa_read_node_info): Likewise.
15586 2010-03-07 Jakub Jelinek <jakub@redhat.com>
15589 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
15590 * cselib.c (struct expand_value_data): Add dummy field.
15591 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
15593 (cselib_dummy_expand_value_rtx_cb): New function.
15594 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
15596 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
15597 * var-tracking.c: Include pointer-set.h.
15598 (variable): Change n_var_parts to char from int. Add
15599 cur_loc_changed and in_changed_variables fields.
15600 (variable_canonicalize): Remove.
15601 (shared_var_p): New inline function.
15602 (unshare_variable): Maintain cur_loc_changed and
15603 in_changed_variables fields. If var was in changed_variables,
15604 replace it there with new_var. Just copy cur_loc instead of
15605 resetting it to something else.
15606 (variable_union): Don't recompute cur_loc. Use shared_var_p.
15607 (dataflow_set_union): Don't call variable_canonicalize.
15608 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
15609 of their DEBUG_EXPR_TREE_DECLs.
15610 (canonicalize_loc_order_check): Verify that cur_loc is NULL
15611 and in_changed_variables and cur_loc_changed is false.
15612 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
15613 and cur_loc_changed. Don't update cur_loc here.
15614 (variable_merge_over_src): Don't call variable_canonicalize.
15615 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
15616 removing loc that is equal to cur_loc, clear cur_loc,
15617 set cur_loc_changed and ensure variable_was_changed is called.
15618 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
15619 compare pointers in cur_loc check, if it is equal to loc,
15620 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
15621 (variable_different_p): Remove compare_current_location argument,
15622 don't compare cur_loc.
15623 (dataflow_set_different_1): Adjust variable_different_p caller.
15624 (variable_was_changed): If dv had some var in changed_variables
15625 already, reset in_changed_variables flag for it and propagate
15626 cur_loc_changed over to the new variable. On empty var
15627 always set cur_loc_changed. Set in_changed_variables on whatever
15628 var is added to changed_variables.
15629 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
15630 Use shared_var_p. When removing loc that is equal to cur_loc,
15631 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
15632 end, don't set it to something else, just call variable_was_changed.
15633 (delete_slot_part): Use shared_var_p. When cur_loc equals to
15634 loc being removed, clear cur_loc and set cur_loc_changed.
15635 Set cur_loc_changed if all locations have been removed.
15636 (struct expand_loc_callback_data): New type.
15637 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
15638 allocated. Always create SUBREGs if simplify_subreg failed.
15639 Prefer to use cur_loc, when that fails and still in
15640 changed_variables (and seen first time) recompute it. Set
15641 cur_loc_changed of variables which had to change cur_loc and
15642 compute elcd->cur_loc_changed if any of the subexpressions used
15643 had to change cur_loc.
15644 (vt_expand_loc): Adjust to pass arguments in
15645 expand_loc_callback_data structure.
15646 (vt_expand_loc_dummy): New function.
15647 (emitted_notes): New variable.
15648 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
15649 that weren't used for any other decl in current
15650 emit_notes_for_changes call call vt_expand_loc_dummy to update
15651 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
15652 first loc_chain location if NULL before. Always use just
15653 cur_loc instead of first loc_chain location. When cur_loc_changed
15654 is false, when not --enable-checking=rtl just don't emit any note.
15655 When rtl checking, compute the note and assert it is the same
15656 as previous note. Clear cur_loc_changed and in_changed_variables
15657 at the end before removing from changed_variables.
15658 (check_changed_vars_3): New function.
15659 (emit_notes_for_changes): Traverse changed_vars to call
15660 check_changed_vars_3 on each changed var.
15661 (emit_notes_for_differences_1): Clear cur_loc_changed and
15662 in_changed_variables. Recompute cur_loc of new_var.
15663 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
15664 (vt_emit_notes): Initialize and destroy emitted_notes.
15666 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
15668 PR rtl-optimization/42220
15669 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
15670 Use verify_reg_tracked to determine if we should use OP_OUT rather
15672 (build_def_use): If we see an in-out operand for a register that we
15673 know nothing about, treat is an output if possible, fail the block if
15676 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
15679 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
15682 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
15685 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
15686 uses of relevant DEFs that are dead outside the loop too.
15688 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
15690 * var-tracking.c (dataflow_set_merge): Swap src and src2.
15692 2010-01-13 Jakub Jelinek <jakub@redhat.com>
15694 * var-tracking.c (values_to_unmark): New variable.
15695 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
15696 values_to_unmark vector. Moved body to...
15697 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
15698 instead queue it into values_to_unmark vector.
15699 (vt_find_locations): Free values_to_unmark vector.
15701 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
15703 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
15704 (site.exp): Export them when plugins are enabled.
15706 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
15708 PR middle-end/42326
15709 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
15710 that contain scevs.
15711 (chrec_fold_multiply): Same.
15713 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
15716 * c-decl.c (build_compound_literal): Return early if init is
15717 an error_mark_node.
15719 2010-03-04 Martin Jambor <mjambor@suse.cz>
15721 PR tree-optimization/43164
15722 PR tree-optimization/43191
15723 * tree-sra.c (type_consists_of_records_p): Reject records with
15724 zero-size bit-fields at the end.
15726 2010-03-04 Mike Stump <mikestump@comcast.net>
15728 * Makefile.in (TAGS): Remove *.y.
15730 2010-03-04 Richard Guenther <rguenther@suse.de>
15732 PR tree-optimization/40761
15733 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
15735 (my_rev_post_order_compute): New function.
15736 (init_pre): Call it.
15738 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
15740 PR middle-end/43209
15741 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
15742 decrease the cost of an IV candidate when the cost is infinite.
15744 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15746 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
15747 Use '3DNow!' for the extension of that name, ensure normal space
15749 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
15751 2010-03-03 Jeff Law <law@redhat.com>
15753 * PR middle-end/32693
15754 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
15755 than gen_rtx_SUBREG.
15756 (extract_bit_field_1): Likewise.
15758 2010-03-03 Janis Johnson <janis187@us.ibm.com>
15760 * doc/sourcebuild.texi (Test directives): Document that arguments
15761 include-opts and exclude-opts are now optional for dg-skip-if,
15762 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
15764 2010-03-03 Jason Merrill <jason@redhat.com>
15767 * cgraph.h (varpool_node): Add extra_name field.
15768 * varpool.c (varpool_extra_name_alias): New.
15769 (varpool_assemble_decl): Emit extra name aliases.
15770 (varpool_mark_needed_node): Look past an extra name alias.
15771 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
15772 * lto-streamer-in.c (lto_input_tree): Read it.
15773 * lto-streamer-out.c (output_unreferenced_globals): Write it.
15775 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
15777 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
15778 (sparc*-*-solaris2*): ...this.
15780 2010-03-03 Jakub Jelinek <jakub@redhat.com>
15783 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
15784 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
15785 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
15786 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
15789 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
15790 fallthrough to default handling, just with want_address 0 instead of 2.
15791 For single element lists, add_AT_loc directly, otherwise create an
15792 artificial variable DIE and stick location list to it.
15795 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
15796 (VAL_EXPR_HAS_REVERSE): Define.
15797 (reverse_op): New function.
15798 (add_stores): For reversible operations add an extra MO_VAL_USE.
15800 2010-03-02 Jason Merrill <jason@redhat.com>
15802 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
15804 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
15806 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
15807 (sparc64-*-linux*): Likewise.
15808 (sparc64-*-solaris2*): Include assembler files before linker ones.
15809 (sparc-*-solaris2*): Simplify and reorder to match previous case.
15810 * config/sparc/gas.h: Delete.
15811 * config/sparc/sol2-64.h: Add copyright notice.
15812 * config/sparc/sol2-gas-bi.h: Likewise.
15813 * config/sparc/sol2-gld.h: Likewise.
15814 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
15815 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
15816 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
15817 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
15818 (sparc_elf_asm_named_section): Rename into...
15819 (sparc_solaris_elf_asm_named_section): ...this. Always define.
15821 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
15823 * config/alpha/alpha.c (override_options): Fix -mtune error message.
15825 2010-03-02 Jeff Law <law@redhat.com>
15827 PR middle-end/42431
15828 * reload1.c (rtx_p, substitute_stack): Declare.
15829 (substitute): Record addresses of changed rtxs.
15830 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
15831 Restore the original rtx when complete.
15832 (reload): Free subsitute_stack when complete.
15834 2010-03-02 Janis Johnson <janis187@us.ibm.com>
15836 * doc/gccint.texi (menu): Add Testsuites as a chapter.
15837 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
15839 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
15840 LTO Testing, gcov Testing, profopt Testing, compat Testing,
15841 Torture Tests): Change from subsection to section.
15843 2010-03-02 Jakub Jelinek <jakub@redhat.com>
15844 Steven Bosscher <steven@gcc.gnu.org>
15846 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
15849 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
15851 PR middle-end/42640
15852 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
15853 the assignment from the new induction variable to the assignment
15854 of the value from the original loop PHI function.
15856 2010-03-01 Janis Johnson <janis187@us.ibm.com>
15857 Daniel Jacobowitz <dan@codesourcery.com>
15859 * doc/sourcebuild.texi (Test directives): Clarify options to
15862 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15864 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
15865 Disable cfi directives unless GCC and gas agree on using read-only
15866 .eh_frame sections for 64-bit.
15867 * configure: Regenerate.
15869 2010-03-01 Richard Guenther <rguenther@suse.de>
15871 PR tree-optimization/43220
15872 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
15873 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
15875 2010-03-01 Richard Guenther <rguenther@suse.de>
15876 Martin Jambor <mjambor@suse.cz>
15878 PR middle-end/41250
15879 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
15880 gimplified parameters.
15882 2010-03-01 Christian Bruel <christian.bruel@st.com>
15884 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
15886 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
15888 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
15890 2010-03-01 Richard Guenther <rguenther@suse.de>
15892 PR middle-end/43213
15893 * expr.c (expand_assignment): Use the alias-oracle to tell
15894 if the rhs aliases the result decl.
15896 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15899 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
15900 to sol_gt_pch_get_address.
15901 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
15902 64-bit, SPARC and x86.
15903 (sol_gt_pch_get_address): New function.
15905 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
15907 * toplev.h (inform_n, error_n): Declare.
15908 * diagnostic.c (inform_n, error_n): New function.
15910 2010-03-01 Jakub Jelinek <jakub@redhat.com>
15912 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
15913 has no rtl yet when processing local_decls, queue it and recheck
15914 if deferred stack allocation hasn't assigned it rtl.
15916 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
15918 * config/sh/sh.c (unspec_bbr_uid): New.
15919 (gen_block_redirect): Use it instead of INSN_UID.
15920 (gen_far_branch): Likewise.
15922 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
15924 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
15925 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
15927 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15929 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
15930 (Warning Options): -Wno-conversion-null is valid for
15931 Objective-C++ as well.
15932 * doc/tm.texi (Named Address Spaces): Likewise.
15933 * doc/plugins.texi (Plugins): Replace TABs with spaces.
15934 * doc/tree-ssa.texi (Tree SSA): Likewise.
15936 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
15939 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
15940 by default. Don't set the default arch for
15941 i[34567]86-*-darwin*|x86_64-*-darwin*.
15943 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
15946 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
15947 default. Set the default 32bit/64bit archs with $with_arch
15948 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
15950 2010-02-27 Richard Guenther <rguenther@suse.de>
15952 PR tree-optimization/43186
15953 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
15954 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
15955 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
15956 unroller iterations.
15958 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
15960 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
15961 required and i[34567]86-*-* targets don't support 64bit ISA.
15963 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
15966 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
15967 the same alias set.
15969 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
15971 * config.gcc: Set the default arch at least to Prescott for
15972 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
15973 if SSE math is enabled.
15975 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
15977 * diagnostic.c (diagnostic_initialize): Update.
15978 (diagnostic_report_diagnostic): Test inhibit_notes_p for
15980 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
15981 (diagnostic_inhibit_notes): New.
15982 * toplev.c (process_options): inhibit notes with -fcompare-debug.
15984 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
15987 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
15988 * doc/standards.texi: Likewise.
15989 * doc/extend.texi: Likewise.
15990 * doc/trouble.texi: Likewise.
15991 * doc/cppopts.texi: Likewise.
15992 * doc/install.texi: Likewise.
15993 * c.opt (std=c90,std=gnu90): New options.
15994 * c-opts.c (c_common_handle_option): Handle them.
15996 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
15999 * c-decl.c (undeclared_variable): Use an informative note.
16001 2010-02-26 Richard Guenther <rguenther@suse.de>
16003 PR tree-optimization/43186
16004 * gimple.h (gimple_fold): Remove.
16005 * gimple.c (gimple_fold): Remove. Inline into single user ...
16006 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
16007 Try harder for conditions.
16009 2010-02-26 Jakub Jelinek <jakub@redhat.com>
16012 * function.c (used_types_insert): Don't skip through named pointer
16013 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
16014 and it is different from the main variant's type.
16016 2010-02-26 Nick Clifton <nickc@redhat.com>
16018 * config/rx/rx.md (sminsi3): Remove bogus alternative.
16020 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
16022 * config.gcc: Support --with-fpmath=sse for x86.
16024 * config/i386/ssemath.h: New.
16026 * doc/install.texi (--with-fpmath=sse): Documented.
16028 2010-02-26 Richard Guenther <rguenther@suse.de>
16030 PR tree-optimization/43188
16031 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
16032 vector types of over-aligned element type.
16034 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
16037 * config/i386/i386.c (expand_vec_perm_blend): Use correct
16038 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
16040 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
16042 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
16044 2010-02-26 Jakub Jelinek <jakub@redhat.com>
16046 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
16047 * var-tracking.c: Include diagnostic.h.
16048 (debug_dv): New function.
16049 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
16052 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
16053 (add_value_chain, add_value_chains, remove_value_chain,
16054 remove_value_chains): Handle DEBUG_EXPRs.
16055 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
16058 * regcprop.c (struct queued_debug_insn_change): New type.
16059 (struct value_data_entry): Add debug_insn_changes field.
16060 (struct value_data): Add n_debug_insn_changes field.
16061 (debug_insn_changes_pool): New variable.
16062 (free_debug_insn_changes, apply_debug_insn_changes,
16063 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
16064 (kill_value_one_regno): Call free_debug_insn_changes if needed.
16065 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
16067 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
16069 (copyprop_hardreg_forward_1): Don't call apply_change_group for
16070 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
16071 changes, call cprop_find_used_regs via note_stores.
16072 (copyprop_hardreg_forward): When copying vd from predecessor
16073 which has any queued DEBUG_INSN changes, make sure the pointers are
16074 cleared. At the end call df_analyze and then if there are any
16075 DEBUG_INSN changes queued at the end of some basic block for still
16076 live registers, apply them.
16077 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
16079 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
16081 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
16084 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
16086 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
16087 targets. Set the default with_cpu/with_arch from arch/cpu.
16088 Allow x86-64 and native for with_cpu/with_arch.
16090 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
16092 * ebitmap.c: Change calls to verify_popcount with calls to
16093 sbitmap_verify_popcount.
16094 (ebitmap_clear_bit): Fixed map->cacheindex test and
16095 map>cache update when bit clearing results in an empty
16098 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
16101 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
16102 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
16103 and support both V2DF and V2DI modes.
16104 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
16105 support both V2DF and V2DI modes.
16106 (general): Delete trailing whitespace from a few patterns.
16108 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16109 V2DF/V2DI interleave high/low builtins.
16111 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
16114 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
16115 interleave high/low functions.
16117 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
16119 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
16120 #pragma extern_prefix.
16122 2010-02-25 Jakub Jelinek <jakub@redhat.com>
16125 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
16126 BLKmode, assert op0 is a MEM and just adjust its mode.
16129 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
16130 if bitpos isn't multiple of mode's bitsize.
16132 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
16134 * c.opt (-ftemplate-depth=): New.
16135 (-ftemplate-depth-): Deprecate.
16136 * optc-gen.awk: Handle -ftemplate-depth=.
16137 * opth-gen.awk: Likewise.
16138 * c-opts.c (c_common_handle_option): Likewise.
16139 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
16141 2010-02-24 Jason Merrill <jason@redhat.com>
16143 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
16145 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16147 * cfg.c (alloc_aux_for_block): Remove inline.
16148 (alloc_aux_for_edge): Likewise.
16150 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16152 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
16154 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16156 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
16157 * config/i386/sol2-gas.h: New file.
16158 * config.gcc (i[34567]86-*-solaris2*): Use it.
16160 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
16163 * c-typeck.c (ep_convert_and_check): New.
16164 (build_conditional_expr): Use it.
16165 (build_binary_op): Likewise.
16167 2010-02-24 Jakub Jelinek <jakub@redhat.com>
16169 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
16172 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
16173 bounds even for -O+.
16174 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
16175 expr needs to have DECL_NAME set.
16177 2010-02-24 Nick Clifton <nickc@redhat.com>
16179 * config/mep/mep.c: Include gimple.h.
16180 (mep_function_uses_sp): Delete unused function.
16181 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
16182 parameters. Use unsigned integers to count args. Return a
16183 NULL_RTX instead of an error_mark_node. Toidy up formatting.
16185 2010-02-23 Jakub Jelinek <jakub@redhat.com>
16188 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
16189 greater or equal to nelt instead of 2 * nelt.
16190 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
16193 2010-02-23 Jason Merrill <jason@redhat.com>
16196 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
16197 in cfun->local_decls even if they have register types.
16200 * stor-layout.c (place_field): Don't warn about unnecessary
16201 DECL_PACKED if the type is packed.
16203 2010-02-23 Jakub Jelinek <jakub@redhat.com>
16206 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
16207 GOTOFF relocs, even when the base reg isn't pic pointer.
16209 2010-02-23 Michael Matz <matz@suse.de>
16212 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
16213 (expand_gimple_basic_block): Generate and use debug temps if there
16214 are debug uses left after the last real use of TERed ssa names.
16215 Unlink debug immediate uses when they are expanded.
16217 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
16220 * config/i386/i386.c (override_options): Reorganise to provide
16221 better error messages.
16223 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
16225 PR middle-end/43083
16226 * graphite-scop-detection.c (create_single_exit_edge): Move
16227 the call to find_single_exit_edge to....
16228 (create_sese_edges): ...here. Don't handle multiple edges
16229 exiting the function.
16230 (build_graphite_scops): Don't handle multiple edges
16231 exiting the function.
16233 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
16235 PR middle-end/43097
16236 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
16237 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
16239 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
16241 PR middle-end/43026
16242 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
16244 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
16247 * c-typeck.c (convert_arguments): Print declaration location.
16248 * c-common.c (validate_nargs): Rename as
16249 builtin_function_validate_nargs.
16250 (check_builtin_function_arguments): Update.
16252 2010-02-22 Richard Guenther <rguenther@suse.de>
16255 * tree-inline.c (declare_return_variable): Use the type of
16256 the call stmt lhs if available.
16258 2010-02-22 Duncan Sands <baldrick@free.fr>
16260 * passes.c (register_pass): Always consider all pass lists when
16261 ref_pass_instance_number is zero.
16263 2010-02-22 Richard Guenther <rguenther@suse.de>
16265 PR tree-optimization/42749
16266 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
16267 parameter. Do arithmetic in the original type.
16268 (update_accumulator_with_ops): Likewise.
16269 (adjust_accumulator_values): Adjust.
16271 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16273 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
16274 (QI to BLKmode splitter): New splitter.
16276 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
16278 * config/i386/i386.c (initial_ix86_tune_features): Turn on
16279 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
16281 2010-02-22 Richard Guenther <rguenther@suse.de>
16283 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
16285 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
16287 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
16288 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
16289 ($(T)crti.o, $(T)crtn.o): Remove rules.
16291 2010-02-21 Tobias Burnus <burnus@net-b.de>
16294 * doc/invoke.texi (-fassociative-math): Document that this
16295 option is automatically enabled for Fortran.
16297 2010-02-20 David S. Miller <davem@davemloft.net>
16299 * configure.ac: Test if linker and assembler properly support
16300 GOTDATA_OP relocations.
16301 * configure: Rebuild.
16302 * config.in: Likewise.
16303 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
16304 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
16305 (movsi_high_pic): Likewise.
16306 (movdi_lo_sum_pic): Likewise.
16307 (movdi_high_pic): Likewise.
16308 (movsi_pic_gotdata_op): New pattern.
16309 (movdi_pic_gotdata_op): Likewise.
16310 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
16311 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
16313 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
16316 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
16317 attribute to ssemul.
16318 (xop_mulv2div2di3_high): Ditto.
16320 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
16323 * c.opt (Wconversion-null): New option.
16324 * doc/invoke.texi (Wconversion-null): Document.
16326 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
16328 * common.opt (Wlarger-than-): Add Undocumented.
16330 2010-02-19 Mike Stump <mikestump@comcast.net>
16332 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
16334 2010-02-19 Jason Merrill <jason@redhat.com>
16337 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
16338 * configure: Likewise.
16340 2010-02-20 Alan Modra <amodra@gmail.com>
16342 PR middle-end/42344
16343 * cgraph.h (cgraph_make_decl_local): Declare.
16344 * cgraph.c (cgraph_make_decl_local): New function.
16345 (cgraph_make_node_local): Use it.
16346 * cgraphunit.c (cgraph_function_versioning): Likewise.
16347 * ipa.c (function_and_variable_visibility): Likewise.
16349 2010-02-19 Jakub Jelinek <jakub@redhat.com>
16352 * except.c (sjlj_emit_function_enter): Don't call
16353 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
16355 * rtl.h (add_reg_br_prob_note): Remove prototype.
16357 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
16360 * c-common.c (conversion_warning): Remove widening conversions
16361 before checking the conversion of integers to reals.
16363 2010-02-19 Mike Stump <mikestump@comcast.net>
16365 PR middle-end/43125
16366 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
16369 * cgraphunit.c (process_function_and_variable_attributes): Check
16370 DECL_PRESERVE_P instead of looking up attribute "used".
16371 * ipa-pure-const.c (check_decl): Likewise.
16372 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
16373 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
16374 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
16375 instead of attribute "used".
16376 * config/sol2-c.c (solaris_pragma_init): Likewise.
16377 (solaris_pragma_fini): Likewise.
16379 2010-02-19 Jakub Jelinek <jakub@redhat.com>
16381 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
16382 Use XCNEW instead of xcalloc.
16383 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
16384 XNEW instead of xmalloc.
16385 (get_fields): Use XNEWVEC instead of xmalloc.
16388 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
16389 populate vars array.
16390 (create_new_general_access): For debug stmts just reset value.
16391 (get_stmt_accesses): For accesses within debug stmts just record them
16392 using add_access_to_acc_sites instead of preventing the peeling or
16393 counting them as accesses.
16395 PR middle-end/42233
16396 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
16398 2010-02-19 Richard Guenther <rguenther@suse.de>
16400 PR tree-optimization/42916
16401 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
16404 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
16406 * configure.ac: Replace all uses of changequote in macro arguments
16407 with proper quoting.
16409 2010-02-19 Jakub Jelinek <jakub@redhat.com>
16411 PR middle-end/42233
16412 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
16414 2010-02-19 Richard Guenther <rguenther@suse.de>
16416 PR tree-optimization/42944
16417 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
16418 test for aliasing with errno.
16420 2010-02-19 Jakub Jelinek <jakub@redhat.com>
16422 PR middle-end/42233
16423 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
16424 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
16425 * dojump.c: Include output.h.
16426 (inv): New inline function.
16427 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
16428 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
16429 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
16430 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
16431 argument, pass it down to other calls.
16432 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
16433 add REG_BR_PROB note to the conditional jump.
16434 * cfgexpand.c (add_reg_br_prob_note): Removed.
16435 (expand_gimple_cond): Don't call it, add the probability
16436 as last argument to jumpif_1/jumpifnot_1.
16437 * Makefile.in (dojump.o): Depend on output.h.
16438 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
16440 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
16441 * stmt.c (do_jump_if_equal): Likewise.
16442 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
16443 * loop-unswitch.c (compare_and_jump_seq): Likewise.
16444 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
16446 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
16447 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
16448 jumpifnot_1 callers.
16449 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
16451 (store_expr): Adjust jumpifnot caller.
16452 (store_constructor): Adjust jumpif caller.
16454 PR middle-end/42233
16455 * gimplify.c (gimple_boolify): For __builtin_expect call
16456 gimple_boolify also on its first argument.
16458 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
16460 * configure.ac (gnu-unique-object): Wrap regexps using [] in
16462 (__stack_chk_fail): Ditto. Remove quadrigraphs.
16463 * configure: Regenerated.
16465 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16467 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
16468 lang_hooks.types_compatible_p instead of comptypes.
16470 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
16472 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
16473 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
16474 if __prefer_thumb__ is defined.
16476 2010-02-18 Martin Jambor <mjambor@suse.cz>
16478 PR tree-optimization/43066
16479 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
16480 array with zero-sized element type.
16482 2010-02-18 Jakub Jelinek <jakub@redhat.com>
16484 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
16485 rtx, allocate struct var_loc_node here and return it to the
16486 caller, and only if it is actually needed.
16487 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
16488 move it earlier and return immediately if it returns NULL.
16490 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
16492 * config/sparc/gas.h: New file. Restore
16493 TARGET_ASM_NAMED_SECTION to its ELF default.
16494 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
16495 check !HAVE_GNU_AS.
16496 * config/sparc/sparc.c (sparc_elf_asm_named_section):
16497 Likewise. Add ATTRIBUTE_UNUSED to prototype.
16498 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
16499 after sparc/sysv4.h.
16501 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
16503 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
16505 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
16507 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
16508 patterns from predicated pattern.
16510 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
16513 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
16514 for insn mnemonic suffix.
16516 2010-02-17 Richard Guenther <rguenther@suse.de>
16518 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
16521 2010-02-17 Jakub Jelinek <jakub@redhat.com>
16524 * caller-save.c (save_call_clobbered_regs): If BB ends with
16525 a DEBUG_INSN, move any notes in between last real insn and the last
16526 DEBUG_INSN after the last DEBUG_INSN.
16528 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
16530 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
16531 Fix return type. Fix argument type. Explain meaning of return value.
16533 2010-02-16 Richard Guenther <rguenther@suse.de>
16535 PR tree-optimization/41043
16536 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
16537 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
16539 (vrp_visit_phi_node): ... but only for loop PHI nodes.
16541 2010-02-16 Ira Rosen <irar@il.ibm.com>
16543 PR tree-optimization/43074
16544 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
16545 * tree-vect-loop.c (vect_analyze_loop_operations): Add
16546 vectorizable cycles in hybrid SLP check.
16547 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
16549 2010-02-16 Richard Guenther <rguenther@suse.de>
16551 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
16552 (true_dependence): If memrefs_conflict_p computes must-alias
16553 trust it. Move TBAA check after offset-based disambiguation.
16554 (canon_true_dependence): Likewise.
16556 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
16558 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
16559 * doc/invoke.texi: Document it.
16560 * var-tracking.c: Include toplev.h and params.h.
16561 (vt_find_locations): Return bool indicating success. Compute
16562 hash sizes unconditionally. Check new parameter, report.
16563 (variable_tracking_main_1): Check vt_find_locations results and
16564 retry. Renamed from...
16565 (variable_tracking_main): ... this. New wrapper to preserve
16566 flag_var_tracking_assignments.
16567 * Makefile.in (var-tracking.o): Adjust dependencies.
16569 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
16570 Jakub Jelinek <jakub@redhat.com>
16573 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
16574 if weak_import attribute is present.
16575 * config/darwin.c (machopic_select_section): Likewise.
16577 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
16579 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
16580 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
16581 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
16582 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
16584 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
16587 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
16588 Fix argument types.
16590 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
16591 Rewrite text to refer to the names.
16593 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
16595 * config/i386/i386-builtin-types.def
16596 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
16597 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
16598 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
16599 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
16600 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
16601 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
16602 IX86_BUILTIN_VPERMIL2PS256.
16603 (MULTI_ARG_4_DF2_DI_I): Defined.
16604 (MULTI_ARG_4_DF2_DI_I1): Defined.
16605 (MULTI_ARG_4_SF2_SI_I): Defined.
16606 (MULTI_ARG_4_SF2_SI_I1): Defined.
16607 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
16608 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
16609 __builtin_ia32_vpermil2ps256.
16610 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
16611 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
16612 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
16613 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
16614 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
16615 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
16616 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
16617 CODE_FOR_xop_vpermil2v8sf3.
16618 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
16619 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
16620 * config/i386/xopintrin.h (_mm_permute2_pd): New.
16621 (_mm256_permute2_pd): New.
16622 (_mm_permute2_ps): New.
16623 (_mm256_permute2_ps): New.
16625 2010-02-15 Nick Clifton <nickc@redhat.com>
16627 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
16628 boolean parameters. Use emit_jump_insn when emitting a pop
16629 instruction containing a return insn.
16630 (push): Use 'true' rather than '1' as second parameter to F.
16631 (h8300_expand_prologue): Likewise.
16632 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
16633 (h8300_expand_epilogue): Likewise.
16635 2010-02-15 Richard Guenther <rguenther@suse.de>
16637 PR middle-end/43068
16638 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
16641 2010-02-15 Nick Clifton <nickc@redhat.com>
16643 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
16646 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
16648 * intl.c (fake_ngettext): New function.
16649 * intl.h (fake_ngettext): Declare.
16650 (ngettext): Define macro.
16651 * collect2.c (notice_translated): New function.
16652 (main): Use notice_translated and ngettext.
16653 * collect2.h (notice_translated): Declare.
16655 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
16657 * reorg.c (delete_computation): Comment fixes.
16658 * caller-save.c (setup_save_areas): Idem.
16659 * sel-sched-dump.c (dump_lv_set): Idem.
16662 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16664 * config/s390/s390.c (s390_sched_init): New function.
16665 (TARGET_SCHED_INIT): Target hook defined.
16667 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
16668 Jack Howarth <howarth@bromo.med.uc.edu>
16669 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16672 Partial revert of unintended change in fix for PR41605.
16673 * config/darwin.h: Fix typo.
16674 * config/darwin9.h: Same.
16676 2010-02-11 Jakub Jelinek <jakub@redhat.com>
16678 * c-pch.c (pch_init): Clear v.
16680 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16682 PR middle-end/42930
16683 * graphite-scop-detection.c (graphite_can_represent_scev): Call
16684 graphite_can_represent_init for MULT_EXPR.
16686 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16688 PR middle-end/42914
16689 PR middle-end/42530
16690 * graphite-sese-to-poly.c (remove_phi): New.
16691 (translate_scalar_reduction_to_array): Call remove_phi.
16693 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16695 PR middle-end/42771
16696 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
16697 * graphite-clast-to-gimple.h (gloog): Update declaration.
16698 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
16699 * graphite-poly.h (struct poly_bb): Add missing comments.
16700 (struct scop): Add poly_scop_p field.
16701 (POLY_SCOP_P): New.
16702 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
16703 * graphite.c (graphite_transform_loops): Build the polyhedral
16704 representation for each scop before code generation.
16705 * sese.c (rename_variables_in_operand): Removed.
16706 (rename_variables_in_expr): Return the renamed expression.
16707 (rename_sese_parameters): New.
16708 * sese.h (rename_sese_parameters): Declared.
16710 2010-02-11 Richard Guenther <rguenther@suse.de>
16712 PR tree-optimization/42998
16713 * tree-ssa-pre.c (create_expression_by_pieces): Treat
16714 POINTER_PLUS_EXPR properly.
16716 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16717 Changpeng Fang <changpeng.fang@amd.com>
16719 PR middle-end/40886
16720 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
16721 the cost of an IV candidate when the IV is used in a test against zero.
16723 * gcc.dg/tree-ssa/ivopts-3.c: New.
16725 2010-02-11 Richard Guenther <rguenther@suse.de>
16728 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
16729 pointer-vs-decl case by swapping refs. Handle some cases
16730 of pointer-vs-decl disambiguations more conservatively.
16731 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
16732 to false after expanding.
16734 2010-02-11 Richard Guenther <rguenther@suse.de>
16737 * gcc.c (process_command): Handle LTO file@offset case more
16740 2010-02-11 Jakub Jelinek <jakub@redhat.com>
16742 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
16743 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
16745 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
16747 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
16748 if MEM's mode size isn't DWARF2_ADDR_SIZE.
16749 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
16750 Optimize eq/ne comparisons when both arguments are known to be
16752 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
16753 Don't mask operands unnecessarily if they are known to be already
16756 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
16758 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
16761 2010-02-10 Richard Guenther <rguenther@suse.de>
16763 PR tree-optimization/43017
16764 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
16765 for wrapping signed arithmetic.
16767 2010-02-10 Jakub Jelinek <jakub@redhat.com>
16770 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
16771 if no debug info should be emitted for it.
16773 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
16775 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
16776 note when flag_exceptions is set.
16778 2010-02-10 Duncan Sands <baldrick@free.fr>
16780 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
16782 2010-02-10 Richard Guenther <rguenther@suse.de>
16785 * tree.c (get_unwidened): Handle constants.
16786 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
16788 2010-02-10 Martin Jambor <mjambor@suse.cz>
16791 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
16792 check for variable argument counts independently.
16794 2010-02-10 Christian Bruel <christian.bruel@st.com>
16797 * config/sh/sh.c (find_barrier): Increase length for non delayed
16798 conditional branches.
16800 2010-02-10 Christian Bruel <christian.bruel@st.com>
16802 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
16804 2010-02-10 Jakub Jelinek <jakub@redhat.com>
16806 * builtins.c (set_builtin_user_assembler_name): Also handle
16807 ffs if int is smaller than word.
16809 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
16811 PR middle-end/42973
16812 * ira-conflicts.c (get_dup): Remove.
16813 (process_reg_shuffles): Add new parameter. Use it as an
16814 additional guard for copy generation.
16815 (add_insn_allocno_copies): Rewrite.
16817 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
16819 * common.opt (fsched2-use-traces): Preserved for backward
16821 * doc/invoke.texi: Remove the documentation about option
16822 -fsched2-use-traces.
16823 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
16824 flag_sched2_use_traces.
16825 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
16826 the backward compatibility flag section.
16828 2010-02-09 Richard Guenther <rguenther@suse.de>
16830 PR tree-optimization/43008
16831 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
16832 make HEAP variables initialized from global memory if they
16833 are not known builtin functions.
16834 (find_func_aliases): Adjust.
16836 2010-02-09 Richard Guenther <rguenther@suse.de>
16838 PR tree-optimization/43000
16839 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
16840 arithmetic manually.
16842 2010-02-08 Jakub Jelinek <jakub@redhat.com>
16844 PR tree-optimization/42931
16845 * tree-loop-linear.c (try_interchange_loops): Don't call
16846 double_int_mul if estimated_loop_iterations failed.
16848 2010-02-08 Martin Jambor <mjambor@suse.cz>
16850 PR middle-end/42898
16851 * tree-sra.c (build_accesses_from_assign): Do not mark in
16852 should_scalarize_away_bitmap if stmt has volatile ops.
16853 (sra_modify_assign): Do not process assigns piecemeal if if stmt
16856 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
16858 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
16860 2010-02-07 Adam Nemet <adambnmet@gmail.com>
16862 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
16863 before the pattern.
16865 2010-02-07 Andrew Pinski <pinskia@gmail.com>
16867 PR middle-end/42946
16868 * df-core.c (df_finish_pass): Change type of saved_flags to int.
16870 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
16872 PR middle-end/42988
16873 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
16874 to unknown_dependence.
16875 (graphite_legal_transform_dr): Handle the unknown_dependence.
16876 (graphite_carried_dependence_level_k): Same.
16878 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
16880 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
16882 2010-02-07 Richard Guenther <rguenther@suse.de>
16884 PR middle-end/42991
16885 * expr.c (get_inner_reference): Always initialize *pbitsize.
16887 2010-02-07 Richard Guenther <rguenther@suse.de>
16889 PR middle-end/42956
16890 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
16891 new ARRAY_REFs on variable size element or minimal index arrays.
16893 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
16894 gimple_fold_indirect_ref.
16896 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
16899 * arm.c (arm_override_options): Just return if the user has specified
16900 an invalid fpu name.
16902 2010-02-03 Jason Merrill <jason@redhat.com>
16905 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
16906 i386_pe_maybe_record_exported_symbol.
16908 2010-02-05 Steve Ellcey <sje@cup.hp.com>
16911 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
16912 (pa_delegitimize_address): New function.
16914 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
16916 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
16917 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
16919 2010-02-05 Richard Guenther <rguenther@suse.de>
16922 * lto-streamer-in.c (get_resolution): Deal with references
16923 to undefined functions.
16925 2010-02-05 Richard Guenther <rguenther@suse.de>
16927 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
16928 (fold_const_aggregate_ref): Likewise.
16929 (ccp_fold_stmt): Substitute loads.
16930 (maybe_fold_reference): Verify types before substituting.
16932 (fold_gimple_assign): Unshare properly.
16933 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
16935 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
16937 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
16938 for rs6000_gen_cell_microcode.
16940 2010-02-04 Richard Guenther <rguenther@suse.de>
16942 PR rtl-optimization/42952
16943 * dse.c (const_or_frame_p): Remove MEM handling.
16945 2010-02-04 Nick Clifton <nickc@redhat.com>
16947 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
16948 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
16949 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
16950 (mn10300_asm_output_mi_thunk): New function.
16951 (mn10300_can_output_mu_thunk): New function.
16952 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
16953 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
16954 (FUNCTION_ARG): Delete incorrect comment.
16956 2010-02-03 Jason Merrill <jason@redhat.com>
16959 * fold-const.c (operand_equal_p): Handle erroneous types.
16961 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
16963 * config/h8300/h8300.md (can_delay): Fix attibute condition.
16965 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
16967 PR rtl-optimization/42941
16968 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
16971 2010-02-03 Jason Merrill <jason@redhat.com>
16974 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
16976 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
16979 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
16980 (cselib_reset_table): Renamed from...
16981 (cselib_reset_table_with_next_value): ... this.
16982 (cselib_get_next_uid): Renamed from...
16983 (cselib_get_next_unknown_value): ... this.
16984 * cselib.c (next_uid): Renamed from...
16985 (next_unknown_value): ... this.
16986 (cselib_clear_table): Adjust.
16987 (cselib_reset_table): Adjust. Renamed from...
16988 (cselib_reset_table_with_next_value): ... this.
16989 (cselib_get_next_uid): Adjust. Renamed from...
16990 (cselib_get_next_unknown_value): ... this.
16991 (get_value_hash): Use hash.
16992 (cselib_hash_rtx): Likewise.
16993 (new_cselib_val): Adjust. Set and dump uid.
16994 (cselib_lookup_mem): Pass next_uid as hash.
16995 (cselib_subst_to_values): Likewise.
16996 (cselib_log_lookup): Dump uid.
16997 (cselib_lookup): Pass next_uid as hash. Adjust.
16998 (cselib_process_insn): Adjust.
16999 (cselib_init): Initialize next_uid.
17000 (cselib_finish): Adjust.
17001 (dump_cselib_table): Likewise.
17002 * dse.c (canon_address): Dump value uid.
17003 * print-rtl.c (print_rtx): Print value uid.
17004 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
17006 (dv_uid): New function, sort of renamed from...
17007 (dv_htab_hash): ... this, reimplemented in terms of it and...
17008 (dv_uid2hash): ... this. New.
17009 (variable_htab_eq): Drop excess assertions.
17010 (tie_break_pointers): Removed.
17011 (canon_value_cmp): Compare uids.
17012 (variable_post_merge_New_vals): Print uids.
17013 (vt_add_function_parameters): Adjust.
17014 (vt_initialize): Reset table. Adjust.
17016 2010-02-03 Richard Guenther <rguenther@suse.de>
17018 PR tree-optimization/42944
17019 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
17020 (call_may_clobber_ref_p_1): Likewise. Properly handle
17021 malloc and calloc clobbering errno.
17023 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
17025 * doc/invoke.texi: Fix name of sched1 dump.
17027 * opts.c (decode_options): Set flag_tree_switch_conversion
17028 only conditionally on optimize >= 2.
17030 * gcse.c: Assorted comment fixes in pass description.
17032 2010-02-03 Anthony Green <green@moxielogic.com>
17034 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
17035 nop padding in order to maintain alignment of storage location of
17036 target function address.
17037 (moxie_trampoline_init): Store target function address at newly
17039 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
17041 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
17043 2010-02-03 Richard Guenther <rguenther@suse.de>
17045 PR middle-end/42927
17046 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
17048 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17050 * config.gcc: Reenable check for obsolete targets.
17051 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
17052 mips-sgi-irix6.[0-4]*.
17054 2010-02-02 Nick Clifton <nickc@redhat.com>
17056 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
17057 constant size of 4 as being the same as 0.
17058 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
17059 can take values in the range 0..4.
17061 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
17064 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
17065 as _darwin10_Unwind_FindEnclosingFunction().
17066 * libgcc-libsystem.ver: New.
17068 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
17071 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
17072 implicitly set registers.
17074 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
17076 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
17077 (arm_override_options): Allow automatic selection of the thread
17078 pointer register if thumb2.
17079 (legitimize_pic_address): Improve code sequences for Thumb2.
17080 (arm_call_tls_get_addr): Likewise.
17081 (legitimize_tls_address): Likewise.
17082 * arm.md (pic_load_addr_arm): Delete. Replace with ...
17083 (pic_load_addr_32bit): ... this. New named pattern.
17084 * thumb2.md (pic_load_addr_thumb2): Delete.
17085 (pic_load_dot_plus_four): Delete.
17086 (tls_load_dot_plus_four): New named pattern.
17088 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17091 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
17092 Document fix for TLS bug.
17094 2010-01-31 Richard Guenther <rguenther@suse.de>
17096 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
17097 conservatively correct.
17099 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17103 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17105 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
17107 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17109 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
17111 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
17113 * config.gcc: Adjust order of makefile fragments for mingw targets.
17115 2010-01-31 Richard Guenther <rguenther@suse.de>
17117 PR middle-end/42898
17118 * gimplify.c (gimplify_init_constructor): For volatile LHS
17119 initialize a temporary.
17121 2010-01-31 Matthias Klose <doko@ubuntu.com>
17123 * configure.ac: Fix __stack_chk_fail check for cross builds configured
17125 * configure: Regenerate.
17127 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
17129 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
17130 the same alias set and their sizes different constantness.
17131 (aliasing_component_refs_p): Revert 2009-10-24 change.
17133 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17135 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
17138 2010-01-29 Richard Guenther <rguenther@suse.de>
17140 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
17141 Assert we successfully updated the call.
17143 2010-01-29 Jakub Jelinek <jakub@redhat.com>
17145 PR rtl-optimization/42889
17146 * df.h (df_set_bb_dirty_nonlr): New prototype.
17147 * df-core.c (df_set_bb_dirty_nonlr): New function.
17148 * df-scan.c (df_insn_rescan): Call it instead of
17149 df_set_bb_dirty for DEBUG_INSNs.
17151 2010-01-29 Richard Guenther <rguenther@suse.de>
17153 PR middle-end/37448
17154 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
17155 quadratic behavior in most cases.
17157 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
17160 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
17161 in the call to gen_x86_movsicc_0_m1.
17163 2010-01-28 Richard Guenther <rguenther@suse.de>
17165 PR tree-optimization/42871
17166 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
17168 2010-01-28 Richard Guenther <rguenther@suse.de>
17170 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
17171 into call arguments.
17173 2010-01-28 Richard Guenther <rguenther@suse.de>
17175 PR middle-end/42883
17176 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
17177 the forwarder if the destination is an EH landing pad.
17179 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
17181 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
17182 block list passed to gimple_duplicate_sese_tail.
17183 (parallelize_loops): Avoid parallelization when the function
17184 has_nonlocal_label.
17185 Avoid parallelization when the preheader is IRREDUCIBLE.
17186 Try to optimize when estimated_loop_iterations_int is unresolved.
17187 Add the loop's location to the dump file.
17188 * tree-cfg.c (add_phi_args_after_redirect): Remove.
17189 (gimple_duplicate_sese_tail): Remove the check for the latch.
17190 Redirect nexits to the exit block.
17191 Remove handling of the incoming edges to the latch.
17192 Redirect the backedge from the copied latch to the exit bb.
17194 2010-01-28 Michael Matz <matz@suse.de>
17197 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
17198 Wrap force_reg into a sequence, emit it before user.
17200 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
17202 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
17204 (arm_legacy_rev): Likewise.
17205 (thumb_legacy_rev): Likewise.
17207 2010-01-27 Jakub Jelinek <jakub@redhat.com>
17209 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
17210 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
17211 on MEM's address failed, try avoid_constant_pool_reference and
17212 recurse if it returned something different.
17213 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
17214 address, try avoid_constant_pool_reference and recurse if it
17215 returned something different.
17216 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
17217 address and avoid_constant_pool_reference returned something
17218 different, don't set have_address.
17220 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
17223 * var-tracking.c (val_store): Add modified argument, obey it.
17225 (count_uses): Move down logging of main.
17226 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
17227 don't need resolution.
17228 (emit_notes_in_bb): Likewise.
17230 2010-01-27 Richard Guenther <rguenther@suse.de>
17232 PR middle-end/42878
17233 * tree-inline.c (remap_decl): Delay remapping of SSA name
17234 default definitions until we need them.
17236 2010-01-27 Jakub Jelinek <jakub@redhat.com>
17238 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
17239 (rs6000_delegitimize_address): New function.
17241 * config/s390/s390.c (s390_delegitimize_address): Call
17242 delegitimize_mem_from_attrs.
17244 PR middle-end/42874
17245 * tree-inline.c (cannot_copy_type_1): Removed.
17246 (copy_forbidden): Don't forbid copying of functions containing
17247 records/unions with variable length fields.
17249 2010-01-27 Christian Bruel <christian.bruel@st.com>
17253 * config/sh/sh.c (find_barrier): Increase length for non delayed
17254 conditional branches.
17256 2010-01-27 Matthias Klose <doko@ubuntu.com>
17258 * configure.ac (gnu-unique-object): Fix ldd version check.
17259 * configure: Regenerate.
17261 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17263 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
17265 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
17266 Test for HAVE_GNU_AS value.
17268 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17270 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
17271 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
17272 INT64_TYPE): Define.
17273 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
17274 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
17275 INT_LEAST64_TYPE): Define.
17276 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
17277 UINT_LEAST64_TYPE): Define.
17278 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
17279 INT_FAST64_TYPE): Define.
17280 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
17281 UINT_FAST64_TYPE): Define.
17282 (INTMAX_TYPE, UINTMAX_TYPE): Define.
17283 (INTPTR_TYPE, UINTPTR_TYPE): Define.
17284 (SIG_ATOMIC_TYPE): Define.
17286 2010-01-26 Richard Guenther <rguenther@suse.de>
17288 * df-scan.c (df_scan_set_bb_info): Remove assert.
17289 (df_insn_rescan_debug_internal): Merge asserts.
17290 (df_install_ref): Likewise.
17291 (df_mark_reg): Use bitmap_set_range.
17292 (df_hard_reg_used_p): Remove assert.
17293 (df_hard_reg_used_count): Likewise.
17295 2010-01-26 Richard Guenther <rguenther@suse.de>
17297 PR rtl-optimization/42685
17298 * web.c (web_main): Ignore DEBUG_INSNs.
17300 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
17302 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
17304 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
17305 Fix types of fndecl and arglist parameters.
17307 2010-01-26 Richard Guenther <rguenther@suse.de>
17309 PR middle-end/42806
17310 * tree-eh.c (unsplit_eh): Skip debug insns.
17312 2010-01-26 Richard Guenther <rguenther@suse.de>
17314 PR tree-optimization/42250
17315 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
17317 2010-01-26 Jakub Jelinek <jakub@redhat.com>
17320 * omp-low.c (expand_omp_sections): Only use single_pred if
17321 l2_bb is single_pred_p.
17323 2010-01-25 Christian Bruel <christian.bruel@st.com>
17326 * config/sh/sh.c (find_barrier): Increase length for non delayed
17327 conditional branches.
17328 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
17330 2010-01-24 David S. Miller <davem@davemloft.net>
17332 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
17333 define if not using GAS.
17334 * config/sparc/sparc.c (sparc_elf_asm_named_section):
17335 Likewise. Delete SECTION_MERGE code, which is only applicable
17338 2010-01-24 Mark Mitchell <mark@codesourcery.com>
17341 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
17342 mangling of va_list in system headers.
17344 2010-01-23 Toon Moene <toon@moene.org>
17346 * tree-predcom.c (combine_chains): Return NULL, not false.
17348 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
17350 * tree-loop-distribution.c (distribute_loop): Fix declaration and
17351 initialization of variable res to agree with return type.
17353 2010-01-22 Steve Ellcey <sje@cup.hp.com>
17355 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
17356 * tree-sra.c: Add include of expr.h.
17358 2010-01-22 Jakub Jelinek <jakub@redhat.com>
17360 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
17361 insert the debug stmt on the single non-EH edge from the stmt.
17363 2010-01-22 Richard Henderson <rth@redhat.com>
17366 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
17367 the RHS until after generate_subtree_copies has insertted its
17368 code before the current statement.
17370 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
17372 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
17374 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
17376 2010-01-21 Martin Jambor <mjambor@suse.cz>
17378 PR tree-optimization/42585
17379 * tree-sra.c (struct access): New field grp_total_scalarization.
17380 (dump_access): Dump the new field.
17381 (should_scalarize_away_bitmap): New variable.
17382 (cannot_scalarize_away_bitmap): Likewise.
17383 (sra_initialize): Allocate new bitmaps.
17384 (sra_deinitialize): Free new bitmaps.
17385 (create_access_1): New function.
17386 (create_access): Parts moved to create_access_1.
17387 (type_consists_of_records_p): New function.
17388 (completely_scalarize_record): Likewise.
17389 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
17390 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
17391 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
17393 (analyze_all_variable_accesses): Completely scalarize small eligible
17396 2010-01-21 Martin Jambor <mjambor@suse.cz>
17398 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
17400 2010-01-21 Andrew Haley <aph@redhat.com>
17402 * gcc.c (process_command): Move lang_specific_driver before
17403 setting cc_libexec_prefix.
17405 2010-01-21 Richard Guenther <rguenther@suse.de>
17407 PR middle-end/19988
17408 * fold-const.c (negate_expr_p): Pretend only negative
17409 real constants are easily negatable.
17411 2010-01-20 Janis Johnson <janis187@us.ibm.com>
17412 Jason Merrill <jason@redhat.com>
17414 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
17415 (TYPE_TRANSPARENT_AGGR): this, for union and record.
17416 * calls.c (initialize argument_information): Handle it.
17417 * c-common.c (handle_transparent_union_attribute): Use new name.
17418 * c-decl.c (finish_struct): Ditto.
17419 * c-typeck.c (type_lists_compatible_p): Ditto.
17420 (convert_for_assignment): Use new name and also handle record.
17421 * function.c (aggregate_value_p): Handle it.
17422 (pass_by_reference): Ditto.
17423 (assign_parm_data_types): Ditto.
17424 * print-tree.c (print_node): Ditto.
17425 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
17426 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
17427 * tree.c (first_field): New fn.
17429 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
17432 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
17433 even when linking statically, for now.
17435 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
17438 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
17439 without a cselib val.
17440 (count_uses): Accept MO_VAL_SET with no val on stores.
17441 (add_stores): Likewise.
17443 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17445 * var-tracking.c (check_value_val): Add a compile time assertion.
17446 (dv_is_decl_p): Simplify.
17447 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
17448 gcc_assert if ENABLE_CHECKING.
17450 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
17453 * var-tracking.c: Include tree-flow.h.
17454 (mem_dies_at_call): New.
17455 (dataflow_set_preserve_mem_locs): Use it.
17456 (dataflow_set_remove_mem_locs): Likewise.
17457 (dump_var): Renamed from dump_variable. Adjust all callers.
17458 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
17459 * Makefile.in (var-tracking.o): Adjust deps.
17461 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
17463 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
17465 2010-01-20 Richard Guenther <rguenther@suse.de>
17467 PR tree-optimization/42717
17468 * tree-ssa-dce.c (get_live_post_dom): Remove.
17469 (forward_edge_to_pdom): Take an arbitrary edge to copy
17470 degenerate PHI args from.
17471 (remove_dead_stmt): Use the first post-dominator even if it
17472 does not contain live statements as redirection destination.
17474 2010-01-20 Richard Guenther <rguenther@suse.de>
17476 * tree-inline.c (estimate_num_insns): Handle EH builtins.
17478 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17480 * sel-sched.c (create_speculation_check): Remove set but not used
17482 (try_transformation_cache): Remove set but not used variable ds.
17483 (calculate_privileged_insns): Remove set but not used variables
17484 cur_insn and min_spec_insn.
17485 (find_best_expr): Remove set but not used variable avail_n.
17486 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
17488 * cgraphunit.c (assemble_thunk): Remove set but not used variable
17490 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
17491 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
17492 new_scop_exit_edge.
17494 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
17497 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
17498 cpu types. Add support for *-sse3 cpu types.
17499 (x86_64-*-*): Ditto.
17501 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17503 PR middle-end/42803
17504 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
17505 argument, call initializer_constant_valid_p_1 instead of
17506 initializer_constant_valid_p, pass CACHE to it, return NULL
17507 immediately if first call returns NULL.
17508 (initializer_constant_valid_p_1): New function.
17509 (initializer_constant_valid_p): Use it.
17511 2010-01-20 Thomas Quinot <quinot@adacore.com>
17513 * tree.def (PLACEHOLDER_EXPR): Fix comment.
17515 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17517 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
17518 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
17519 (loc_list_from_tree): Don't handle unsigned division. Handle
17520 signed modulo using DW_OP_{over,over,div,mul,minus}.
17521 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
17522 modulo instead of signed.
17524 2010-01-20 DJ Delorie <dj@redhat.com>
17526 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
17528 (h8300_emit_stack_adjustment): Propogate it.
17530 (h8300_expand_prologue): Likewise.
17531 (h8300_expand_epilogue): Likewise.
17533 2010-01-19 Michael Matz <matz@suse.de>
17535 PR tree-optimization/41783
17536 * tree-data-ref.c (toplevel): Include flags.h.
17537 (dump_data_dependence_relation): Also dump the inputs if the
17538 result will be unknown.
17539 (split_constant_offset_1): Look through some conversions.
17540 * tree-predcom.c (determine_roots_comp): Restart a new chain if
17541 the offset from last element is too large.
17542 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
17543 (reassociate_to_the_same_stmt): Handle vector registers.
17544 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
17545 (e.g. conversions).
17546 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
17547 wide_prolog_niters argument, emit widening instructions.
17548 (vect_do_peeling_for_alignment): Adjust caller, use widened
17549 variant of the iteration cound.
17550 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
17552 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17555 * config/arm/neon-testgen.m (emit_automatics): New parameter
17556 features. Adjust for Fixed_return_reg feature.
17557 (test_intrinsic): Call emit_automatics with new feature.
17558 * config/arm/neon.ml: Update copyright years.
17559 (features): New Fixed_return_reg feature.
17560 (ops): Update feature for Vget_low.
17562 2010-01-19 Jakub Jelinek <jakub@redhat.com>
17564 PR tree-optimization/42719
17565 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
17569 * fwprop.c (all_uses_available_at): Return false if def_set dest
17570 is a REG that is used in def_insn.
17572 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
17574 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
17576 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
17577 Add argument names.
17579 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
17581 * target.h (struct gcc_target) <secondary_reload>: Change type
17582 of last argument to secondary_reload_info *.
17584 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
17587 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
17588 memory references with unaligned offsets. Remove CQImode handling.
17589 (unaligned_memory_operand): Return 1 for memory references with
17590 unaligned offsets. Remove CQImode handling.
17592 2010-01-18 Richard Guenther <rguenther@suse.de>
17594 PR middle-end/39954
17595 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
17598 2010-01-18 Richard Guenther <rguenther@suse.de>
17600 PR tree-optimization/42781
17601 * tree-ssa-structalias.c (find_what_var_points_to): Skip
17602 restrict processing only if the original variable was artificial.
17604 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
17606 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
17607 find number of popped argument bytes.
17609 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
17610 Fix the text that describes the return value for invalid insns.
17612 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
17614 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
17615 Clarify what 'cost of the -dependence' is. Fix quoting.
17617 * toplev.c (default_get_pch_validity): Rename argument to "sz".
17618 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
17620 2010-01-17 Jakub Jelinek <jakub@redhat.com>
17622 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
17623 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
17625 2010-01-17 Richard Guenther <rguenther@suse.de>
17627 PR middle-end/42248
17628 * function.c (split_complex_args): Take a VEC to modify.
17629 (assign_parms_augmented_arg_list): Build a VEC instead of
17630 a chain of PARM_DECLs.
17631 (assign_parms_unsplit_complex): Take a VEC of arguments.
17632 Do not fixup unmodified parms.
17633 (assign_parms): Deal with the VEC.
17634 (gimplify_parameters): Likewise.
17636 2010-01-17 Richard Guenther <rguenther@suse.de>
17638 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
17639 node existence check.
17640 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
17641 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
17642 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
17643 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
17644 (gimple_execute_on_growing_pred): Likewise.
17646 2010-01-17 Richard Guenther <rguenther@suse.de>
17648 PR tree-optimization/42773
17649 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
17650 (compute_antic_aux): Likewise.
17651 (compute_partial_antic_aux): Likewise.
17653 2010-01-17 Jie Zhang <jie.zhang@analog.com>
17656 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
17659 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
17661 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
17664 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
17665 Fix markup for strict argument.
17667 (TARGET_SCHED_REORDER2): Fix argument types.
17669 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
17670 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
17672 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
17673 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
17675 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
17678 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
17679 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
17680 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
17681 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
17682 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
17684 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
17686 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
17688 (TARGET_ASM_RELOC_RW_MASK): Add return type.
17689 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
17691 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
17693 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
17696 (TARGET_ASM_NAMED_SECTION): Fix argument list.
17698 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
17699 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
17701 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
17703 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
17705 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
17706 referring to it. Fix language.
17708 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
17710 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
17712 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
17714 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
17716 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
17717 '@var{stream}. Remove stray 'and'.
17719 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
17721 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
17723 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
17725 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
17726 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
17728 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
17729 Fix description of return value.
17730 Rename argument "sz" to "len."
17732 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
17733 Clarify meaning of 'true' return value.
17735 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
17737 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
17738 rep_mode versus mode_rep.
17740 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
17742 (TARGET_BUILTIN_DECL): Fix name.
17744 (TARGET_COMMUTATIVE_P): Fix type of first argument.
17746 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
17748 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
17750 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
17752 (TARGET_RELAXED_ORDERING): Use @deftypevr.
17754 (TARGET_GET_DRAP_RTX): Note that this is a hook.
17757 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
17758 Rename argument tm_fn to md_fn.
17760 (TARGET_OPTION_PRINT): Fix argument list.
17762 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
17765 * config/i386/i386.c (ix86_fixup_binary_operands):
17766 Revert FMA4 fixup of operands.
17768 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17771 * Makefile.in (write_entries_to_file, install-plugin):
17772 Use \012 instead of \n with tr.
17774 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
17776 * configure.ac (HAVE_AS_REF): New C macro.
17777 * configure: Regenerate.
17778 * config.in: Likewise.
17779 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
17781 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
17784 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
17786 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
17788 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
17790 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
17792 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
17794 (TARGET_IN_SMALL_DATA_P): Fix argument type.
17796 (TARGET_BINDS_LOCAL_P): Fix argument type.
17798 (TARGET_ASM_FILE_END): Use prototype.
17800 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
17802 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
17804 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
17806 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
17808 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
17809 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
17811 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
17812 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
17814 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
17815 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
17816 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
17817 (TARGET_ADDR_SPACE_CONVERT): Likewise.
17819 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
17821 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
17823 (TARGET_INIT_BUILTINS): Use prototype.
17825 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
17826 Put 'const char *' in braces. Fix parameter types.
17827 (TARGET_INVALID_CONVERSION): Fix parameter types.
17828 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
17829 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
17831 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
17834 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
17836 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
17838 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
17840 * doc/tm.texi (TARGET_HELP): Fix return type.
17842 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
17843 in braces. Fix argument types.
17845 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
17847 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
17849 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
17851 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
17852 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
17854 (TARGET_MANGLE_TYPE): Fix argument types.
17856 (TARGET_IRA_COVER_CLASSES): Use prototype.
17858 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
17860 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
17862 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
17864 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
17866 (TARGET_CALLEE_COPIES): Fix argument types.
17868 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
17870 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
17872 (TARGET_FUNCTION_VALUE): Fix argument types.
17874 (TARGET_RETURN_IN_MSB): Fix argument type.
17876 (TARGET_RETURN_IN_MEMORY): Fix argument types.
17878 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
17880 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
17882 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
17883 agree with return type.
17885 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
17887 2010-01-15 Jing Yu <jingyu@google.com>
17889 PR rtl-optimization/42691
17890 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
17891 a pseudo to a constant and are merged, and adjust comments.
17893 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
17895 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
17897 2010-01-15 Richard Guenther <rguenther@suse.de>
17899 PR middle-end/42739
17900 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
17901 labels of computed or non-local gotos to the destination.
17902 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
17903 landing pad label is the first label.
17905 2010-01-15 Richard Guenther <rguenther@suse.de>
17907 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
17909 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
17912 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
17913 to allow generation of the xssqrtdp instruction on power7.
17914 (sqrtdf2_fpr): Ditto.
17916 2010-01-14 Jakub Jelinek <jakub@redhat.com>
17918 PR middle-end/42674
17919 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
17920 functions with noreturn attribute.
17923 * varasm.c (declare_weak): Add weak attribute to decl if it
17924 doesn't have one already.
17925 (assemble_external): Only add decls to weak_decls if they also
17926 have weak attribute.
17928 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
17930 * var-tracking.c (var_reg_delete): Don't delete the association
17931 between REGs and values or one-part variables if the register
17934 2010-01-14 Jakub Jelinek <jakub@redhat.com>
17937 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
17938 because its first operand is a non-localized variable.
17940 2010-01-14 Martin Jambor <mjambor@suse.cz>
17942 PR tree-optimization/42706
17943 * tree-sra.c (encountered_recursive_call): New variable.
17944 (encountered_unchangable_recursive_call): Likewise.
17945 (sra_initialize): Initialize both new variables.
17946 (callsite_has_enough_arguments_p): New function.
17947 (scan_function): Call decl and flags check only for IPA-SRA, check
17948 whether there is a recursive call and whether it has enough arguments.
17949 (all_callers_have_enough_arguments_p): New function.
17950 (convert_callers): Look for recursive calls only when
17951 encountered_recursive_call is set.
17952 (ipa_early_sra): Bail out either if
17953 !all_callers_have_enough_arguments_p or
17954 encountered_unchangable_recursive_call.
17956 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17958 * sel-sched.c: Add 2010 to copyright years.
17959 * sel-sched-ir.c: Likewise.
17960 * sel-sched-ir.h: Likewise.
17962 2010-01-14 Martin Jambor <mjambor@suse.cz>
17964 PR tree-optimization/42714
17965 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
17966 constructors specially.
17968 2010-01-14 Andi Kleen <ak@linux.intel.com>
17970 * config/i386/drivers-i386.c (detect_caches_intel):
17971 Add l2sizekb parameter and fill in.
17972 (host_detect_local_cpu): Add l2sizekb, fill in.
17973 Add Atom small cache heuristic.
17975 2010-01-14 Andi Kleen <ak@linux.intel.com>
17977 * config/i386/drivers-i386.c (detect_caches_cpuid4):
17978 Add level3 parameter and fill in.
17979 (detect_caches_intel): Handle level3 cache.
17981 2010-01-14 Andi Kleen <ak@linux.intel.com>
17983 * config/i386/drivers-i386.c (host_detect_local_cpu):
17984 Fix core duo detection.
17986 2010-01-14 Andi Kleen <ak@linux.intel.com>
17988 * config/i386/drivers-i386.c (host_detect_local_cpu):
17989 Fix Atom detection.
17991 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17993 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
17994 (rs6000_variable_issue_1): this. Use...
17995 (rs6000_variable_issue): here. Reimplement. Print debug info.
17997 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17999 * sel-sched-ir.c (sel_restore_other_notes): Rename to
18000 sel_restore_notes. Update all callers. Call reemit_notes
18003 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18005 PR rtl-optimization/42246
18006 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
18009 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18011 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
18012 all successors is the same as number of successors in current region.
18014 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18016 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
18017 to rename is not separable. Otherwise check that its LHS is not NULL.
18019 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18021 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
18023 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18025 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
18026 available registers when failed to discover LHS register class.
18027 Fix indentation. Update comment.
18029 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18030 Alexander Monakov <amonakov@ispras.ru>
18032 PR rtl-optimization/42389
18033 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
18035 (advance_state_on_fence): Likewise.
18036 (sel_target_adjust_priority): Print debug output only when
18037 sched_verbose >= 4, not 2.
18038 (get_expr_cost): Do not issue all unique insns on the next cycle.
18039 (fill_insns): Initialize can_issue_more from the value saved
18041 * sel-sched-ir.c (flist_add): New parameter issue_more.
18042 Init FENCE_ISSUE_MORE with it.
18043 (merge_fences): Likewise.
18044 (init_fences): Update call to flist_add.
18045 (add_to_fences, add_clean_fence_to_fences)
18046 (add_dirty_fence_to_fences): Likewise.
18047 (move_fence_to_fences): Update call to merge_fences.
18048 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
18050 * sel-sched-ir.h (struct _fence): New field issue_more.
18051 (FENCE_ISSUE_MORE): New accessor macro.
18053 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18055 PR rtl-optimization/42388
18056 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
18057 that have no predecessors nor successors. Do not call move_bb_info
18058 for empty blocks outside of current region.
18060 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18062 PR rtl-optimization/42294
18063 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
18064 * sel-sched.c (move_exprs_to_boundary): Transitively add all
18065 originators' originators.
18067 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18069 PR rtl-optimization/39453
18070 PR rtl-optimization/42246
18071 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
18073 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
18075 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18076 Alexander Monakov <amonakov@ispras.ru>
18078 PR middle-end/42245
18079 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
18080 (maybe_tidy_empty_bb): ... here. Make static. Add new
18081 argument. Update all callers.
18082 (tidy_control_flow): ... and here. Recompute topological order
18083 of basic blocks in region if necessary.
18084 (sel_redirect_edge_and_branch): Change return type. Return true
18085 if topological order might have been invalidated.
18086 (purge_empty_blocks): Export and move from...
18087 * sel-sched.c (purge_empty_blocks): ... here.
18088 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
18089 (maybe_tidy_empty_bb): Delete prototype.
18090 (purge_empty_blocks): Declare.
18092 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18094 PR rtl-optimization/42249
18095 * sel-sched.c (try_replace_dest_reg): When chosen register
18096 and original register is the same, do not bail out early, but
18097 still check all original insns for validity of replacing destination
18098 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
18101 2010-01-14 Jakub Jelinek <jakub@redhat.com>
18104 Port from no-undefined-overflow branch:
18105 2009-03-09 Richard Guenther <rguenther@suse.de>
18107 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
18109 2010-01-14 Richard Guenther <rguenther@suse.de>
18112 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
18114 2010-01-14 Ira Rosen <irar@il.ibm.com>
18116 PR tree-optimization/42709
18117 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
18118 as scalar type in creation of constant vector operand.
18120 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18123 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
18124 (check-parallel-%): Match `testsuite' directory component only
18127 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
18129 PR translation/39521
18130 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
18133 2010-01-13 Richard Guenther <rguenther@suse.de>
18135 PR tree-optimization/42730
18136 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
18139 2010-01-13 Steve Ellcey <sje@cup.hp.com>
18142 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
18143 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
18146 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
18148 * config/bfin/libgcc-bfin.ver: Regenerate based on current
18149 libgcc-std.ver. Add entries for ___smulsi3_highpart and
18150 ___umulsi3_highpart.
18152 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
18153 rather than schedule_insns if the pass is enabled.
18155 2010-01-13 Martin Jambor <mjambor@suse.cz>
18157 PR tree-optimization/42704
18158 * tree-sra.c (sra_modify_assign): Do not delete assignments to
18161 2010-01-13 Martin Jambor <mjambor@suse.cz>
18163 PR tree-optimization/42703
18164 * tree-sra.c (analyze_access_subtree): Check that we can build a
18165 reference to the original data within the aggregate.
18167 2010-01-13 Richard Guenther <rguenther@suse.de>
18169 PR tree-optimization/42705
18170 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
18172 2010-01-13 Richard Guenther <rguenther@suse.de>
18174 PR middle-end/42716
18175 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
18177 2010-01-13 Jakub Jelinek <jakub@redhat.com>
18180 * var-tracking.c (values_to_unmark): New variable.
18181 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
18182 values_to_unmark vector. Moved body to...
18183 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
18184 instead queue it into values_to_unmark vector.
18185 (vt_find_locations): Free values_to_unmark vector.
18187 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
18189 * config/s390/s390.c (override_options): Set
18190 default of max-pending-list-length to 256
18192 2010-01-13 Richard Guenther <rguenther@suse.de>
18195 * tree-pass.h (PROP_gimple_lcx): New.
18196 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
18197 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
18198 before the final cleanup_eh.
18199 (dump_properties): Dump PROP_gimple_lcx.
18200 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
18201 (tree_lower_complex_O0): Remove.
18202 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
18203 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
18204 tree_lower_complex, schedule TODO_update_ssa.
18205 * lto-streamer-out.c (output_function): Stream the functions
18207 * lto-streamer-in.c (input_function): Likewise.
18208 (lto_read_body): Do not override them here.
18210 2010-01-12 Joseph Myers <joseph@codesourcery.com>
18213 * c-typeck.c (build_c_cast): Fold value cast to union type before
18214 wrapping it in a CONSTRUCTOR.
18216 2010-01-12 Jakub Jelinek <jakub@redhat.com>
18218 PR rtl-optimization/42699
18219 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
18222 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18224 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
18225 SUBTARGET_WARN_UNUSED_SPEC): Move ...
18226 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
18227 SUBTARGET_WARN_UNUSED_SPEC): ... here
18228 * config/mips/iris5.h (LIBGCC_SPEC): Define.
18230 2010-01-12 Julian Brown <julian@codesourcery.com>
18232 * config/arm/neon-schedgen.ml (Utils): Don't try to
18233 open missing module.
18234 (find_with_result): New.
18236 2010-01-12 Jakub Jelinek <jakub@redhat.com>
18239 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
18240 sharing when canonicalizing ({lt,ge}u (plus a b) b).
18242 PR tree-optimization/42645
18243 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
18244 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
18245 decl_map, set processing_debug_stmt to -1 and return name without
18248 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
18250 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
18251 binutils version, and reword target configuration description.
18253 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
18255 * config/avr/avr.h (LINKER_NAME): Remove.
18257 2010-01-11 Janis Johnson <janis187@us.ibm.com>
18260 * config/rs6000/rs6000.c (rs6000_override_options): On targets
18261 that support VSX, warn for -mno-altivec if vsx is not disabled,
18264 2010-01-11 Joseph Myers <joseph@codesourcery.com>
18265 Shujing Zhao <pearly.zhao@oracle.com>
18267 PR translation/42469
18268 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
18269 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
18270 character between option name and help text.
18271 * c.opt (imultilib): Likewise.
18273 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
18275 * lto-streamer-out.c (output_unreferenced_globals): Output static
18278 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
18280 PR rtl-optimization/42621
18281 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
18282 optimizing for size.
18283 (duplicate_computed_gotos): Remove now-redundant check.
18285 2010-01-10 Steve Ellcey <sje@cup.hp.com>
18288 * configure.ac: Save and restore LDFLAGS and LIBS
18289 * configure: Regenerate.
18291 2010-01-10 Richard Guenther <rguenther@suse.de>
18293 PR middle-end/42667
18294 * builtins.c (fold_builtin_strlen): Add type argument and
18295 convert the resulting length to it.
18296 (fold_builtin_1): Adjust.
18298 2010-01-09 Jakub Jelinek <jakub@redhat.com>
18300 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
18301 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
18303 (num_insns_constant_wide): Adjust for that change.
18305 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18308 * web.c (union_defs): Add used argument, to combine uses of
18309 uninitialized regs.
18310 (entry_register): Adjust type and tests of used argument.
18311 (web_main): Widen used for new use. Pass it to union_defs.
18312 * df.h (union_defs): Adjust prototype.
18314 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18317 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
18318 uses in new incoming argument. Free body.
18319 (reset_debug_uses_in_loop): New.
18320 (analyze_insn_to_expand_var): Call the latter if the former found
18321 anything. Fix whitespace. Reject invalid dest overlaps before
18322 going through all insns in the loop.
18324 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18327 * haifa-sched.c (dying_use_p): Debug insns don't count.
18329 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18331 PR middle-end/42363
18332 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
18333 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
18334 (verify_gimple_call): Reject LHS in noreturn calls.
18336 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18340 * tree-vect-loop-manip.c (adjust_info): New type.
18341 (adjust_vec): New pointer to vector.
18342 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
18343 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
18344 (slpeel_update_phis_for_duplicate_loop): Use them.
18345 (slpeel_update_phi_nodes_for_guard1): Likewise.
18346 (slpeel_update_phi_nodes_for_guard2): Likewise.
18347 (slpeel_tree_peel_loop_to_edge): Likewise.
18348 (vect_update_ivs_after_vectorizer): Likewise.
18350 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18352 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
18353 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
18355 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18357 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
18358 bogus uninitialized warning.
18360 2010-01-09 Richard Guenther <rguenther@suse.de>
18362 PR middle-end/42512
18363 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
18364 the evolution is compatible with the initial condition.
18366 2010-01-09 Jakub Jelinek <jakub@redhat.com>
18368 * gcc.c (process_command): Update copyright notice dates.
18369 * gcov.c (print_version): Likewise.
18370 * gcov-dump.c (print_version): Likewise.
18371 * mips-tfile.c (main): Likewise.
18372 * mips-tdump.c (main): Likewise.
18374 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
18377 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
18379 (rotlhi3_8): Delete.
18381 (rotlsi3_8): Delete.
18382 (rotlsi3_16): Delete.
18383 (rotlsi3_24): Delete.
18384 (rotl<mode>3): New.
18385 (*rotw<mode>3): New.
18386 (*rotb<mode>3): New.
18387 * config/avr/avr.c (avr_rotate_bytes): New function.
18388 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
18390 2010-01-08 Steve Ellcey <sje@cup.hp.com>
18393 * configure.ac: Modify -rdynamic check.
18394 * configure: Regenerate.
18396 2010-01-08 DJ Delorie <dj@redhat.com>
18398 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
18399 register popping order.
18401 2010-01-08 Richard Guenther <rguenther@suse.de>
18404 * c.opt (fsigned-char): Also let LTO handle this option.
18405 (funsigned-char): Likewise.
18407 2010-01-07 Richard Guenther <rguenther@suse.de>
18409 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
18410 (gimple_op): Likewise.
18411 (gimple_op_ptr): Likewise.
18412 (gimple_assign_set_lhs): Remove gcc_assert.
18413 (gimple_assign_set_rhs1): Likewise.
18414 (gimple_assign_set_rhs2): Likewise.
18415 (gimple_call_set_lhs): Likewise.
18416 (gimple_call_set_fn): Likewise.
18417 (gimple_call_set_fndecl): Likewise.
18418 (gimple_call_fndecl): Likewise.
18419 (gimple_call_return_type): Likewise.
18420 (gimple_call_set_chain): Likewise.
18421 (gimple_call_num_args): Likewise.
18422 (gimple_call_set_arg): Likewise.
18423 (gimple_cond_set_code): Likewise.
18424 (gimple_cond_set_lhs): Likewise.
18425 (gimple_cond_set_rhs): Likewise.
18426 (gimple_cond_set_true_label): Likewise.
18427 (gimple_cond_set_false_label): Likewise.
18428 (gimple_label_set_label): Likewise.
18429 (gimple_goto_set_dest): Likewise.
18430 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
18431 (gimple_debug_bind_get_value): Likewise.
18432 (gimple_debug_bind_get_value_ptr): Likewise.
18433 (gimple_debug_bind_set_var): Likewise.
18434 (gimple_debug_bind_set_value): Likewise.
18435 (gimple_debug_bind_reset_value): Likewise.
18436 (gimple_debug_bind_has_value_p): Likewise.
18437 (gimple_return_retval_ptr): Remove gcc_assert.
18438 (gimple_return_retval): Likewise.
18439 (gimple_return_set_retval): Likewise.
18440 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
18441 (safe_referenced_var_iterator): Remove.
18442 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
18443 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
18444 (fill_referenced_var_vec): Remove.
18445 (first_readonly_imm_use): Remove redundant gcc_assert.
18446 (phi_arg_index_from_use): Combine gcc_asserts.
18447 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
18448 (first_imm_use_stmt): Remove redundant gcc_assert.
18449 * tree-cfg.c (verify_gimple_call): Verify function and chain
18450 operands. Verify arguments.
18451 (verify_types_in_gimple_stmt): Verify condition code and labels.
18453 2010-01-07 Richard Guenther <rguenther@suse.de>
18455 PR tree-optimization/42641
18456 * sese.c (rename_map_elt_info): Use the SSA name version, do
18459 2010-01-07 Jakub Jelinek <jakub@redhat.com>
18461 PR tree-optimization/42625
18462 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
18463 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
18465 2010-01-07 Duncan Sands <baldrick@free.fr>
18467 * Makefile.in (PLUGIN_HEADERS): Add version.h.
18469 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
18472 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
18473 note itself is not function_invariant_p.
18475 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
18477 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
18478 Do not add the DF_NOTE problem.
18479 * store-motion.c (execute_rtl_store_motion): Likewise.
18481 2010-01-07 Martin Jambor <mjambor@suse.cz>
18483 PR tree-optimization/42157
18484 * tree-sra.c (compare_access_positions): Stabilize sort if both
18485 accesses have integer types, return zero immediately if they are the
18488 2010-01-06 Richard Henderson <rth@redhat.com>
18490 PR middle-end/41883
18491 * haifa-sched.c (add_to_note_list): Merge into ...
18492 (concat_note_lists): ... here, and ...
18493 (unlink_other_notes, rm_other_notes): Merge into...
18494 (remove_notes): ... here. Create REG_SAVE_NOTEs for
18495 NOTE_INSN_EPILOGUE_BEG.
18497 2010-01-06 Richard Guenther <rguenther@suse.de>
18499 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
18500 not inline regular functions into always-inline functions.
18502 2010-01-06 Nick Clifton <nickc@redhat.com>
18504 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
18505 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
18507 (OVERRIDE_OPTIONS): Delete.
18508 (OPTIMIZATION_OPTIONS): Define.
18509 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
18510 * config/rx/rx.c (rx_handle_option): Issue an error message if
18511 -mcpu=rx200 and -fpu are used together.
18512 (rx_set_optimization_options): New function. Issue an error
18513 message if an optimization attribute attempts to reset the FPU/
18514 math optimization pairing.
18515 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
18516 * config/rx/rx.opt: Set the default to 32-bit doubles.
18517 * config/rx/t-rx: Add multilibs for -nofpu option.
18518 * doc/invoke.texi: Update documentation of RX options.
18520 2010-01-06 Richard Guenther <rguenther@suse.de>
18522 * tree-ssa-pre.c (name_to_id): New global.
18523 (alloc_expression_id): Simplify SSA name handling.
18524 (lookup_expression_id): Likewise.
18525 (init_pre): Zero name_to_id.
18526 (fini_pre): Free it.
18528 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
18530 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
18532 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
18535 * config/i386/sse.md (smaxv2di3): New.
18536 (umaxv2di3): Likewise.
18537 (sminv2di3): Likewise.
18538 (uminv2di3): Likewise.
18540 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
18543 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
18544 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
18545 (legitimize_tls_address): Likewise.
18546 (sparc_tls_referenced_p): Likewise.
18547 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
18548 and adjust calls to legitimize_pic_address.
18549 (legitimate_constant_p) Use sparc_tls_referenced_p.
18550 (legitimate_pic_operand_p): Likewise.
18551 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
18552 (sparc_tls_symbol_ref_1): Delete.
18553 (sparc_tls_referenced_p): Make static, recognize specific patterns.
18554 (legitimize_tls_address): Make static, handle CONST patterns.
18555 (legitimize_pic_address): Make static, remove unused parameter and
18556 adjust recursive calls.
18557 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
18558 and adjust call to legitimize_pic_address.
18559 (sparc_output_mi_thunk): Likewise.
18561 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
18562 H.J. Lu <hongjiu.lu@intel.com>
18565 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
18566 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
18567 operands to make them signed.
18570 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18573 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
18574 GTU to GT for V4SI and V2DI.
18576 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
18577 (umin<mode>3): Removed.
18579 (uminv4si3): Likewise.
18581 2010-01-05 Martin Jambor <mjambor@suse.cz>
18583 PR tree-optimization/42462
18584 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
18585 current_function_decl to helper functions and macros.
18587 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18590 * flags.h: Don't include real.h.
18591 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
18592 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
18593 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
18594 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
18595 * dominance.c: Update copyright.
18596 * gimple.c (walk_gimple_op): Remove inline.
18597 * tree-ssa-reassoc.c: Include real.h.
18598 * Makefile.in (FLAGS_H): Remove $(REAL_H).
18599 (tree-ssa-reassoc.o): Depend on $(REAL_H).
18601 2010-01-05 Nick Clifton <nickc@redhat.com>
18603 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
18604 register to push into the stack frame when the accumulator has to
18605 be saved during interrupts.
18607 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
18609 * doc/invoke.texi: Remove the documentation about option
18610 -Wunreachable-code.
18611 * common.opt (Wunreachable-code): Preserved for backward
18613 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
18614 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
18615 the backward compatibility flag section.
18617 2010-01-05 Richard Guenther <rguenther@suse.de>
18619 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
18621 2010-01-05 Jakub Jelinek <jakub@redhat.com>
18624 * cfgexpand.c (expand_one_var): Diagnose too large variables.
18626 PR tree-optimization/42508
18627 * tree-sra.c (convert_callers): Check for recursive call
18628 by comparing cgraph nodes instead of decls.
18629 (modify_function): Call ipa_modify_formal_parameters also
18630 on all same_body aliases.
18632 * cgraphunit.c (cgraph_materialize_all_clones): Compare
18633 cgraph nodes when checking for same_body aliases.
18635 2010-01-05 Richard Guenther <rguenther@suse.de>
18637 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
18638 allocation and lookup.
18639 (get_or_alloc_expr_for_constant): Likewise.
18640 (phi_translate): Sink allocation.
18642 2010-01-04 Richard Guenther <rguenther@suse.de>
18644 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
18645 a new entry only if needed.
18646 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
18647 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
18649 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
18651 (phi_translate): Handle CONSTANTs early.
18653 2010-01-04 Martin Jambor <mjambor@suse.cz>
18655 PR tree-optimization/42398
18656 * tree-sra.c (struct access): Removed flag grp_different_types.
18657 (dump_access): Do not dump the removed flag.
18658 (sort_and_splice_var_accesses): Do not set the removed flag.
18659 (sra_modify_expr): Check for type compatibility directly.
18661 2010-01-04 Martin Jambor <mjambor@suse.cz>
18663 PR tree-optimization/42366
18664 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
18665 edges with variable number of parameters.
18666 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
18667 flag instead of asserting it.
18668 (ipa_read_node_info): Read uses_analysis_done flag.
18670 2010-01-04 Richard Guenther <rguenther@suse.de>
18672 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
18673 iterative_hash_* as intended.
18674 (vn_reference_compute_hash): Likewise. Simplify hashing
18676 (vn_reference_lookup_2): Likewise.
18677 (vn_nary_op_compute_hash): Likewise.
18678 (vn_phi_compute_hash): Likewise.
18679 (expressions_equal_p): Remove strange code.
18680 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
18681 (pre_expr_hash): Likewise. Simplify hashing SSA names.
18682 (bitmap_insert_into_set_1): Take value-id as parameter.
18683 (add_to_value): Pass it.
18684 (bitmap_insert_into_set): Likewise.
18685 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
18687 2010-01-04 Jakub Jelinek <jakub@redhat.com>
18690 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
18691 (do_self_spec): For switches with SWITCH_IGNORE set set also
18692 SWITCH_IGNORE_PERMANENTLY.
18693 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
18696 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
18698 * lto-streamer-out.c (output_unreferenced_globals): Output the full
18699 tree of an unreferenced global var.
18701 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18704 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
18705 GTU to GT for V4SI and V2DI.
18707 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
18708 (umin<mode>3): Removed.
18710 (uminv4si3): Likewise.
18712 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18715 * collect2.c (main): Turn on trace in collect2 if -v is passed
18718 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
18720 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
18721 description of expression operand.
18723 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
18725 * configure.ac: Add install-html to target_list for Make-hooks.
18726 * configure: Regenerate.
18727 * fortran/Make-lang.in (F95_HTMLFILES): New.
18728 (fortran.html): Use it.
18729 (fortran.install-html): New.
18730 * Makefile.in (install-html): Add lang.install-html.
18731 * java/Make-lang.in (JAVA_HTMLFILES): New.
18732 (java.html): Use it.
18733 (java.install-html): New.
18734 * objc/Make-lang.in (objc.install-html): New.
18735 * objcp/Make-lang.in (obj-c++.install-html): New.
18736 * cp/Make-lang.in (c++.install-html): New.
18737 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
18738 * lto/Make-lang.in (lto.install-html): New.
18740 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
18743 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
18745 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
18747 PR rtl-optimization/41862
18748 * store-motion.c (store_killed_in_insn, compute_store_table,
18749 remove_reachable_equiv_notes, replace_store_insn,
18750 build_store_vectors): Ignore all DEBUG_INSNs.
18752 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
18755 * common.opt: Add dumpdir.
18757 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
18759 (option_map): Add --dumpdir.
18761 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
18763 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
18765 * opts.c (decode_options): Try dump_dir_name first if
18766 dump_base_name isn't an absolute path.
18767 (common_handle_option): Handle OPT_dumpdir.
18769 * toplev.c (dump_dir_name): New.
18770 (print_switch_values): Also ignore -dumpdir.
18772 * toplev.h (dump_dir_name): New.
18774 2010-01-03 Richard Guenther <rguenther@suse.de>
18776 PR tree-optimization/42589
18777 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
18778 double-word expansion of bswap32.
18780 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
18782 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
18783 with BLOCK_FOR_INSN.
18784 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
18785 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
18786 noce_process_if_block): Likewise.
18787 * gcse.c (compute_local_properties, insert_expr_in_table,
18788 insert_set_in_table, canon_list_insert, find_avail_set,
18789 pre_insert_copy_insn): Likewise.
18791 * basic-block.h (BLOCK_NUM): Move from here...
18792 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
18794 2010-01-03 Richard Guenther <rguenther@suse.de>
18796 PR tree-optimization/42438
18797 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
18798 contains_may_not_return_call flag.
18799 (BB_MAY_NOTRETURN): New.
18800 (valid_in_sets): Trapping nary operations are not valid
18801 in blocks that may not return.
18802 (insert_into_preds_of_block): Remove check for trapping expressions.
18803 (compute_avail): Compute also BB_MAY_NOTRETURN.
18805 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
18807 * doc/invoke.texi: Add 2010 to copyright years.
18809 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
18811 * config/sparc/sparc.c: Fix formatting nits.
18813 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
18814 Alexander Monakov <amonakov@ispras.ru>
18816 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
18818 2010-01-02 Richard Guenther <rguenther@suse.de>
18820 PR middle-end/42577
18821 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
18822 (simplify_switch_using_ranges): Mark to be removed edges
18825 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18827 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
18829 * collect2.c (scan_libraries): Add missing argument in call to
18832 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
18835 * config/alpha/predicates.md (aligned_memory_operand): Return false
18837 (unaligned_memory_operand): Return true for CQImode.
18838 * config/alpha/alpha.c (get_aligned_mem): Assert that location
18839 doesn not cross aligned SImode word boundary.
18841 2010-01-02 Anatoly Sokolov <aesok@post.ru>
18843 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
18845 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
18846 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
18848 2010-01-02 Richard Guenther <rguenther@suse.de>
18851 * toplev.c (compile_file): Emit LTO marker properly. Change
18852 it to __gnu_lto_v1.
18853 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
18855 2010-01-01 Richard Guenther <rguenther@suse.de>
18858 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
18860 2010-01-01 Richard Guenther <rguenther@suse.de>
18863 * c-decl.c (grokdeclarator): For zero-size arrays force
18864 structural equality checks as layout_type does.
18866 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
18868 * builtins.c: Update copyright to 2010.
18870 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
18873 * lto-streamer-out.c (produce_asm): Revert the last change.
18874 (copy_function): Likewise.
18876 * lto-streamer.c (lto_get_section_name): Skip any leading
18879 2010-01-01 Richard Guenther <rguenther@suse.de>
18881 PR middle-end/42559
18882 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
18886 Copyright (C) 2010 Free Software Foundation, Inc.
18888 Copying and distribution of this file, with or without modification,
18889 are permitted in any medium without royalty provided the copyright
18890 notice and this notice are preserved.